LLVMFuzzerTestOneInput:
  143|  26.7k|{
  144|  26.7k|   const std::string_view input{reinterpret_cast<const char*>(Data), Size};
  145|       |
  146|       |   // Raw bytes: the batch split, the syntax check, and the envelope read.
  147|  26.7k|   {
  148|  26.7k|      const auto buf = exact_buffer(input);
  149|  26.7k|      drive({buf.data(), buf.size()});
  150|  26.7k|   }
  151|       |
  152|  26.7k|   if (Size < 1) {
  ------------------
  |  Branch (152:8): [True: 0, False: 26.7k]
  ------------------
  153|      0|      return 0;
  154|      0|   }
  155|       |
  156|       |   // Wrapped: the input becomes the params of an envelope that is otherwise well formed, so the
  157|       |   // params reader is reached even when the fuzzer has not yet learned the envelope's shape. The
  158|       |   // first byte picks the method, since which one is registered decides what the params must parse
  159|       |   // as, and a params reader is only interesting once it has a destination type.
  160|       |   // "" is the root method, which reads the whole registered object in one document -- every nested
  161|       |   // struct, container, optional and variant at once, and the deepest reader nesting on offer.
  162|  26.7k|   static constexpr std::string_view methods[] = {
  163|  26.7k|      "",        "value", "name",     "position", "position/x", "inner",   "series", "table", "maybe", "measure",
  164|  26.7k|      "doubled", "greet", "midpoint", "total",    "reset",      "counter", "scale",  "bump",  "shift", "absent"};
  165|  26.7k|   const std::string_view method = methods[Data[0] % (sizeof(methods) / sizeof(methods[0]))];
  166|  26.7k|   const std::string_view params = input.substr(1);
  167|       |
  168|  26.7k|   {
  169|  26.7k|      std::string request;
  170|  26.7k|      request += R"({"jsonrpc":"2.0","method":")";
  171|  26.7k|      request += method;
  172|  26.7k|      request += R"(","params":)";
  173|  26.7k|      request += params;
  174|  26.7k|      request += R"(,"id":1})";
  175|       |
  176|  26.7k|      const auto buf = exact_buffer(request);
  177|  26.7k|      drive({buf.data(), buf.size()});
  178|  26.7k|   }
  179|       |
  180|       |   // The same envelope inside a batch, which takes a different path: the array is split into raw
  181|       |   // views first and each element is read on its own.
  182|  26.7k|   {
  183|  26.7k|      std::string request;
  184|  26.7k|      request += R"([{"jsonrpc":"2.0","method":")";
  185|  26.7k|      request += method;
  186|  26.7k|      request += R"(","params":)";
  187|  26.7k|      request += params;
  188|  26.7k|      request += R"(,"id":1},{"jsonrpc":"2.0","method":")";
  189|  26.7k|      request += method;
  190|  26.7k|      request += R"("}])"; // second element is a notification, so it takes the no-response path
  191|       |
  192|  26.7k|      const auto buf = exact_buffer(request);
  193|  26.7k|      drive({buf.data(), buf.size()});
  194|  26.7k|   }
  195|       |
  196|  26.7k|   return 0;
  197|  26.7k|}
jsonrpc_registry.cpp:_ZN12_GLOBAL__N_112exact_bufferENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  111|   156k|   {
  112|   156k|      std::vector<char> buf(bytes.size());
  113|   156k|      if (!bytes.empty()) {
  ------------------
  |  Branch (113:11): [True: 156k, False: 0]
  ------------------
  114|   156k|         std::memcpy(buf.data(), bytes.data(), bytes.size());
  115|   156k|      }
  116|   156k|      return buf;
  117|   156k|   }
jsonrpc_registry.cpp:_ZN12_GLOBAL__N_15driveENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  120|  80.3k|   {
  121|  80.3k|      glz::registry<glz::opts{}, glz::JSONRPC> registry;
  122|  80.3k|      fuzz_api api{};
  123|  80.3k|      jsonrpc_fuzz::member_api members{};
  124|       |      // members first, so the last registration -- and therefore the root endpoint -- is the wider
  125|       |      // of the two objects. Root reads the whole object in one document, so it should be the one
  126|       |      // with the nested struct, containers, optional and variant in it.
  127|  80.3k|      registry.on(members);
  128|  80.3k|      registry.on(api);
  129|       |
  130|  80.3k|      const auto response = registry.call(request);
  131|  80.3k|      if (!response.empty()) {
  ------------------
  |  Branch (131:11): [True: 76.2k, False: 4.04k]
  ------------------
  132|       |         // The response is JSON the registry itself produced, so reading it back checks that what
  133|       |         // goes out is well formed even when what came in was not.
  134|  76.2k|         const auto buf = exact_buffer(response);
  135|  76.2k|         glz::generic parsed{};
  136|  76.2k|         [[maybe_unused]] auto ec =
  137|  76.2k|            glz::read<glz::opts{.null_terminated = false}>(parsed, std::string_view{buf.data(), buf.size()});
  138|  76.2k|      }
  139|  80.3k|   }
_ZNK12jsonrpc_fuzz8fuzz_api7doubledMUliE_clEi:
   66|  1.24k|      std::function<int32_t(int32_t)> doubled = [](int32_t v) { return int32_t(uint32_t(v) * 2u); };
_ZNK12jsonrpc_fuzz8fuzz_api5greetMUlRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE_clESA_:
   67|  2.94k|      std::function<std::string(const std::string&)> greet = [](const std::string& who) { return "hi " + who; };
_ZNK12jsonrpc_fuzz8fuzz_api8midpointMUlRKNS_5pointEE_clES4_:
   68|  1.10k|      std::function<point(const point&)> midpoint = [](const point& p) -> point { return {p.x / 2, p.y / 2}; };
_ZNK12jsonrpc_fuzz8fuzz_api5totalMUlRNSt3__16vectorIdNS2_9allocatorIdEEEEE_clES7_:
   69|  4.24k|      std::function<double(std::vector<double>&)> total = [](std::vector<double>& v) {
   70|  4.24k|         double sum{};
   71|  13.1k|         for (auto d : v) sum += d;
  ------------------
  |  Branch (71:22): [True: 13.1k, False: 4.24k]
  ------------------
   72|  4.24k|         return sum;
   73|  4.24k|      };
_ZNK12jsonrpc_fuzz8fuzz_api5resetMUlvE_clEv:
   74|    694|      std::function<void()> reset = [] {};
_ZN12jsonrpc_fuzz10member_api5scaleEi:
   89|    766|      {
   90|    766|         counter = int32_t(uint32_t(counter) + uint32_t(v));
   91|    766|         return int32_t(uint32_t(v) * 3u);
   92|    766|      }
_ZN12jsonrpc_fuzz10member_api4bumpEv:
   93|    396|      void bump() { counter = int32_t(uint32_t(counter) + 1u); }
_ZN12jsonrpc_fuzz10member_api5shiftERKNS_5pointE:
   94|    656|      point shift(const point& p) { return {p.x + 1, p.y + 1}; }

_ZN3glz11empty_rangeITkNS_5rangeERNSt3__16vectorIiNS1_9allocatorIiEEEEEEbOT_:
  304|    149|   {
  305|    149|#ifdef __cpp_lib_ranges
  306|    149|      return std::ranges::empty(rng);
  307|       |#else
  308|       |      // in lieu of std::ranges::empty
  309|       |      if constexpr (requires() {
  310|       |                       { rng.empty() } -> std::convertible_to<bool>;
  311|       |                    }) {
  312|       |         return rng.empty();
  313|       |      }
  314|       |      else if constexpr (requires() {
  315|       |                            { rng.size() } -> std::same_as<std::size_t>;
  316|       |                         }) {
  317|       |         return rng.size() == std::size_t{0};
  318|       |      }
  319|       |      else {
  320|       |         return std::cbegin(rng) == std::cend(rng);
  321|       |      }
  322|       |#endif
  323|    149|   }
_ZN3glz11empty_rangeITkNS_5rangeERNSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEEEbOT_:
  304|    134|   {
  305|    134|#ifdef __cpp_lib_ranges
  306|    134|      return std::ranges::empty(rng);
  307|       |#else
  308|       |      // in lieu of std::ranges::empty
  309|       |      if constexpr (requires() {
  310|       |                       { rng.empty() } -> std::convertible_to<bool>;
  311|       |                    }) {
  312|       |         return rng.empty();
  313|       |      }
  314|       |      else if constexpr (requires() {
  315|       |                            { rng.size() } -> std::same_as<std::size_t>;
  316|       |                         }) {
  317|       |         return rng.size() == std::size_t{0};
  318|       |      }
  319|       |      else {
  320|       |         return std::cbegin(rng) == std::cend(rng);
  321|       |      }
  322|       |#endif
  323|    134|   }

_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEEC2Ev:
  566|   632k|      ordered_small_map() = default;
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE9free_dataEv:
  266|  1.63M|      {
  267|  1.63M|         destroy_all();
  268|  1.63M|         ::operator delete(data_);
  269|  1.63M|         data_ = nullptr;
  270|  1.63M|         size_ = 0;
  271|  1.63M|         capacity_ = 0;
  272|  1.63M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE11destroy_allEv:
  259|  2.27M|      {
  260|  4.14M|         for (uint32_t i = 0; i < size_; ++i) {
  ------------------
  |  Branch (260:31): [True: 1.87M, False: 2.27M]
  ------------------
  261|  1.87M|            std::destroy_at(data_ + i);
  262|  1.87M|         }
  263|  2.27M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE10free_indexEv:
  308|  1.63M|      {
  309|  1.63M|         std::free(index_);
  310|  1.63M|         index_ = nullptr;
  311|  1.63M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEEC2EOS4_:
  610|  1.00M|         : data_(other.data_), size_(other.size_), capacity_(other.capacity_), index_(other.index_)
  611|  1.00M|      {
  612|  1.00M|         other.data_ = nullptr;
  613|  1.00M|         other.size_ = 0;
  614|  1.00M|         other.capacity_ = 0;
  615|  1.00M|         other.index_ = nullptr;
  616|  1.00M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEED2Ev:
  569|  1.63M|      {
  570|  1.63M|         free_data();
  571|  1.63M|         free_index();
  572|  1.63M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEEixERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
  932|  1.87M|      {
  933|  1.87M|         return subscript_or_insert(key, [&] { emplace_back_impl(key, mapped_type{}); });
  934|  1.87M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE19subscript_or_insertINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEZNS4_ixERKSC_EUlvE_EERS3_RKT_OT0_:
  491|  1.87M|      {
  492|  1.87M|         if (size_ <= linear_search_threshold) {
  ------------------
  |  Branch (492:14): [True: 1.87M, False: 210]
  ------------------
  493|  1.87M|            auto it = linear_find(key);
  494|  1.87M|            if (it != end()) return it->second;
  ------------------
  |  Branch (494:17): [True: 0, False: 1.87M]
  ------------------
  495|  1.87M|            append_fn();
  496|  1.87M|            return data_[size_ - 1].second;
  497|  1.87M|         }
  498|       |
  499|    210|         const uint32_t h = hash_key(key);
  500|    210|         if (try_bloom_insert(h, append_fn)) {
  ------------------
  |  Branch (500:14): [True: 140, False: 70]
  ------------------
  501|    140|            return data_[size_ - 1].second;
  502|    140|         }
  503|       |
  504|     70|         auto [it, pos, _] = index_find_or_pos(key, h);
  505|     70|         if (it != end()) return it->second;
  ------------------
  |  Branch (505:14): [True: 0, False: 70]
  ------------------
  506|       |
  507|     70|         append_fn();
  508|     70|         bloom_set(h);
  509|     70|         if (index_size() > 0) {
  ------------------
  |  Branch (509:14): [True: 70, False: 0]
  ------------------
  510|     70|            const uint32_t n = index_->size;
  511|     70|            ensure_index_capacity(static_cast<size_type>(n) + 1);
  512|     70|            auto* entries = index_entries();
  513|     70|            if (pos < n) {
  ------------------
  |  Branch (513:17): [True: 0, False: 70]
  ------------------
  514|      0|               std::memmove(entries + pos + 1, entries + pos, (n - pos) * sizeof(hash_index_entry));
  515|      0|            }
  516|     70|            entries[pos] = {h, size_ - 1};
  517|     70|            index_->size = size_;
  518|     70|         }
  519|     70|         return data_[size_ - 1].second;
  520|     70|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE11linear_findINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEEPNS6_4pairISC_S3_EERKT_:
  421|  1.87M|      {
  422|  3.71M|         for (uint32_t i = 0; i < size_; ++i) {
  ------------------
  |  Branch (422:31): [True: 1.84M, False: 1.87M]
  ------------------
  423|  1.84M|            if (data_[i].first == key) return data_ + i;
  ------------------
  |  Branch (423:17): [True: 0, False: 1.84M]
  ------------------
  424|  1.84M|         }
  425|  1.87M|         return data_ + size_;
  426|  1.87M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE3endEv:
  649|  1.87M|      iterator end() noexcept { return data_ + size_; }
_ZZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEEixERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEENKUlvE_clEv:
  933|  1.87M|         return subscript_or_insert(key, [&] { emplace_back_impl(key, mapped_type{}); });
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE17emplace_back_implIJRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEES3_EEEvDpOT_:
  243|  1.87M|      {
  244|  1.87M|         grow_if_needed();
  245|  1.87M|         std::construct_at(data_ + size_, std::forward<Args>(args)...);
  246|  1.87M|         ++size_;
  247|  1.87M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE14grow_if_neededEv:
  217|  1.87M|      {
  218|  1.87M|         if (size_ == capacity_) {
  ------------------
  |  Branch (218:14): [True: 632k, False: 1.23M]
  ------------------
  219|   632k|            if (size_ == max_u32) {
  ------------------
  |  Branch (219:17): [True: 0, False: 632k]
  ------------------
  220|      0|               throw_capacity_overflow();
  221|      0|            }
  222|   632k|            const uint32_t new_cap = next_data_capacity(capacity_);
  223|   632k|            reallocate_data(new_cap);
  224|   632k|         }
  225|  1.87M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE18next_data_capacityEj:
  120|   632k|      {
  121|   632k|         if (current == 0) return 4;
  ------------------
  |  Branch (121:14): [True: 632k, False: 140]
  ------------------
  122|    140|         if (current > (max_u32 / 2)) return max_u32;
  ------------------
  |  Branch (122:14): [True: 0, False: 140]
  ------------------
  123|    140|         return current * 2;
  124|    140|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE15reallocate_dataEj:
  205|   632k|      {
  206|   632k|         if (new_cap < size_) {
  ------------------
  |  Branch (206:14): [True: 0, False: 632k]
  ------------------
  207|      0|            throw_capacity_overflow();
  208|      0|         }
  209|   632k|         auto* new_data = allocate_and_relocate(new_cap);
  210|   632k|         destroy_all();
  211|   632k|         ::operator delete(data_);
  212|   632k|         data_ = new_data;
  213|   632k|         capacity_ = new_cap;
  214|   632k|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE21allocate_and_relocateEj:
  159|   632k|      {
  160|   632k|         auto* new_data = static_cast<value_type*>(::operator new(checked_data_allocation_bytes(new_cap)));
  161|   632k|#if __cpp_exceptions
  162|   632k|         uint32_t constructed = 0;
  163|   632k|         try {
  164|   633k|            for (; constructed < size_; ++constructed) {
  ------------------
  |  Branch (164:20): [True: 840, False: 632k]
  ------------------
  165|    840|               std::construct_at(new_data + constructed, std::move_if_noexcept(data_[constructed]));
  166|    840|            }
  167|   632k|         }
  168|   632k|         catch (...) {
  169|      0|            destroy_range(new_data, constructed);
  170|      0|            ::operator delete(new_data);
  171|      0|            throw;
  172|      0|         }
  173|       |#else
  174|       |         for (uint32_t i = 0; i < size_; ++i) {
  175|       |            std::construct_at(new_data + i, std::move_if_noexcept(data_[i]));
  176|       |         }
  177|       |#endif
  178|   632k|         return new_data;
  179|   632k|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE29checked_data_allocation_bytesEj:
  134|   632k|      {
  135|   632k|         if (count > ((std::numeric_limits<size_t>::max)() / sizeof(value_type))) {
  ------------------
  |  Branch (135:14): [True: 0, False: 632k]
  ------------------
  136|      0|            GLZ_THROW_OR_ABORT(std::bad_alloc{});
  ------------------
  |  |    8|      0|#define GLZ_THROW_OR_ABORT(EXC) (throw(EXC))
  ------------------
  137|      0|         }
  138|   632k|         return static_cast<size_t>(count) * sizeof(value_type);
  139|   632k|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE8hash_keyENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEE:
   97|    840|      static uint32_t hash_key(std::string_view key) noexcept { return sweethash::sweet32(key); }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE16try_bloom_insertIRZNS4_ixERKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEUlvE_EEbjOT_:
  529|    210|      {
  530|    210|         if (index_ && size_ <= bloom_threshold && !bloom_maybe_contains(h)) {
  ------------------
  |  Branch (530:14): [True: 140, False: 70]
  |  Branch (530:24): [True: 140, False: 0]
  |  Branch (530:52): [True: 140, False: 0]
  ------------------
  531|       |            // Definitely not present — skip the search
  532|    140|            append_fn();
  533|    140|            bloom_set(h);
  534|       |            // Index is now stale (index_->size < size_), will rebuild on next lookup or false positive
  535|    140|            return true;
  536|    140|         }
  537|     70|         return false;
  538|    210|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE20bloom_maybe_containsEj:
  285|    140|      {
  286|    140|         const uint32_t a = h & bloom_mask;
  287|    140|         const uint32_t b = (h >> 10) & bloom_mask;
  288|    140|         return (index_->bloom[a >> 3] & (uint8_t(1) << (a & 7))) && (index_->bloom[b >> 3] & (uint8_t(1) << (b & 7)));
  ------------------
  |  Branch (288:17): [True: 0, False: 140]
  |  Branch (288:70): [True: 0, False: 0]
  ------------------
  289|    140|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE17index_find_or_posINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEENS4_17index_find_resultERKT_j:
  400|     70|      {
  401|     70|         ensure_index();
  402|       |
  403|     70|         const auto* base = index_entries();
  404|     70|         const auto* idx_end = base + index_->size;
  405|     70|         const auto* p = branchless_lower_bound(base, index_->size, h);
  406|     70|         const size_t pos = static_cast<size_t>(p - base);
  407|       |
  408|       |         // Scan adjacent entries with matching hash
  409|     70|         for (auto* scan = p; scan != idx_end && scan->key_hash == h; ++scan) {
  ------------------
  |  Branch (409:31): [True: 0, False: 70]
  |  Branch (409:50): [True: 0, False: 0]
  ------------------
  410|      0|            if (data_[scan->index].first == key) {
  ------------------
  |  Branch (410:17): [True: 0, False: 0]
  ------------------
  411|      0|               return {data_ + scan->index, pos, h};
  412|      0|            }
  413|      0|         }
  414|       |
  415|     70|         return {data_ + size_, pos, h};
  416|     70|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE12ensure_indexEv:
  360|     70|      {
  361|     70|         if (size_ <= linear_search_threshold) return;
  ------------------
  |  Branch (361:14): [True: 0, False: 70]
  ------------------
  362|     70|         const auto current = index_size();
  363|     70|         if (current == size_) return; // fully current
  ------------------
  |  Branch (363:14): [True: 0, False: 70]
  ------------------
  364|       |
  365|     70|         if (current == 0 || (size_ - current) > linear_search_threshold) {
  ------------------
  |  Branch (365:14): [True: 70, False: 0]
  |  Branch (365:30): [True: 0, False: 0]
  ------------------
  366|     70|            rebuild_index(); // full rebuild
  367|     70|            return;
  368|     70|         }
  369|       |
  370|       |         // Incrementally insert-sort the few new entries
  371|      0|         for (uint32_t i = current; i < size_; ++i) {
  ------------------
  |  Branch (371:37): [True: 0, False: 0]
  ------------------
  372|      0|            const hash_index_entry entry{hash_key(data_[i].first), i};
  373|      0|            const auto* base = index_entries();
  374|      0|            const auto* p = branchless_lower_bound(base, index_->size, entry.key_hash);
  375|      0|            auto pos = static_cast<size_t>(p - base);
  376|       |
  377|      0|            const uint32_t m = index_->size;
  378|      0|            ensure_index_capacity(static_cast<size_type>(m) + 1);
  379|      0|            auto* entries = index_entries();
  380|      0|            if (pos < m) {
  ------------------
  |  Branch (380:17): [True: 0, False: 0]
  ------------------
  381|      0|               std::memmove(entries + pos + 1, entries + pos, (m - pos) * sizeof(hash_index_entry));
  382|      0|            }
  383|      0|            entries[pos] = entry;
  384|      0|            index_->size = i + 1;
  385|      0|         }
  386|      0|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE13rebuild_indexEv:
  343|     70|      {
  344|     70|         ensure_index_capacity(static_cast<size_type>(size_));
  345|     70|         bloom_clear();
  346|     70|         auto* entries = index_entries();
  347|    700|         for (uint32_t i = 0; i < size_; ++i) {
  ------------------
  |  Branch (347:31): [True: 630, False: 70]
  ------------------
  348|    630|            const uint32_t h = hash_key(data_[i].first);
  349|    630|            entries[i] = {h, i};
  350|    630|            bloom_set(h);
  351|    630|         }
  352|     70|         std::sort(entries, entries + size_, [](const auto& a, const auto& b) { return a.key_hash < b.key_hash; });
  353|     70|         index_->size = size_;
  354|     70|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE11bloom_clearEv:
  291|     70|      void bloom_clear() const noexcept { std::memset(index_->bloom, 0, bloom_bytes); }
_ZZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE13rebuild_indexEvENKUlRKT_RKT0_E_clINS4_16hash_index_entryESD_EEDaS7_SA_:
  352|  1.75k|         std::sort(entries, entries + size_, [](const auto& a, const auto& b) { return a.key_hash < b.key_hash; });
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE22branchless_lower_boundEPKNS4_16hash_index_entryEmj:
  440|     70|      {
  441|    350|         while (len > 1) {
  ------------------
  |  Branch (441:17): [True: 280, False: 70]
  ------------------
  442|    280|            size_t half = len / 2;
  443|    280|            p += (p[half - 1].key_hash < target) * half;
  444|    280|            len -= half;
  445|    280|         }
  446|       |         // Final element check: advance past it if it's less than target
  447|     70|         p += (len == 1 && p->key_hash < target);
  ------------------
  |  Branch (447:16): [True: 70, False: 0]
  |  Branch (447:28): [True: 70, False: 0]
  ------------------
  448|     70|         return p;
  449|     70|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE9bloom_setEj:
  277|    840|      {
  278|    840|         const uint32_t a = h & bloom_mask;
  279|    840|         const uint32_t b = (h >> 10) & bloom_mask;
  280|    840|         index_->bloom[a >> 3] |= uint8_t(1) << (a & 7);
  281|    840|         index_->bloom[b >> 3] |= uint8_t(1) << (b & 7);
  282|    840|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE10index_sizeEv:
  300|    140|      uint32_t index_size() const noexcept { return index_ ? index_->size : 0; }
  ------------------
  |  Branch (300:53): [True: 70, False: 70]
  ------------------
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE21ensure_index_capacityEm:
  314|    140|      {
  315|    140|         if (needed == 0) return;
  ------------------
  |  Branch (315:14): [True: 0, False: 140]
  ------------------
  316|    140|         if (needed > static_cast<size_type>(max_u32)) {
  ------------------
  |  Branch (316:14): [True: 0, False: 140]
  ------------------
  317|      0|            throw_index_overflow();
  318|      0|         }
  319|    140|         const auto needed_u32 = static_cast<uint32_t>(needed);
  320|    140|         if (index_ && index_->capacity >= needed_u32) return;
  ------------------
  |  Branch (320:14): [True: 70, False: 70]
  |  Branch (320:24): [True: 70, False: 0]
  ------------------
  321|     70|         uint32_t cap = index_ ? index_->capacity : 0;
  ------------------
  |  Branch (321:25): [True: 0, False: 70]
  ------------------
  322|    140|         while (cap < needed_u32) {
  ------------------
  |  Branch (322:17): [True: 70, False: 70]
  ------------------
  323|     70|            const uint32_t next = next_index_capacity(cap);
  324|     70|            if (next <= cap) {
  ------------------
  |  Branch (324:17): [True: 0, False: 70]
  ------------------
  325|      0|               throw_index_overflow();
  326|      0|            }
  327|     70|            cap = next;
  328|     70|         }
  329|     70|         auto* block = static_cast<index_header*>(std::realloc(index_, checked_index_allocation_bytes(cap)));
  330|     70|         if (!block) GLZ_THROW_OR_ABORT(std::bad_alloc{});
  ------------------
  |  |    8|      0|#define GLZ_THROW_OR_ABORT(EXC) (throw(EXC))
  ------------------
  |  Branch (330:14): [True: 0, False: 70]
  ------------------
  331|     70|         if (!index_) {
  ------------------
  |  Branch (331:14): [True: 70, False: 0]
  ------------------
  332|     70|            block->size = 0;
  333|     70|            std::memset(block->bloom, 0, bloom_bytes);
  334|     70|         }
  335|     70|         block->capacity = cap;
  336|     70|         index_ = block;
  337|     70|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE19next_index_capacityEj:
  127|     70|      {
  128|     70|         if (current == 0) return 16;
  ------------------
  |  Branch (128:14): [True: 70, False: 0]
  ------------------
  129|      0|         if (current > (max_u32 / 2)) return max_u32;
  ------------------
  |  Branch (129:14): [True: 0, False: 0]
  ------------------
  130|      0|         return current * 2;
  131|      0|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE30checked_index_allocation_bytesEj:
  142|     70|      {
  143|     70|         constexpr size_t header = sizeof(index_header);
  144|     70|         constexpr size_t entry = sizeof(hash_index_entry);
  145|     70|         if (count > (((std::numeric_limits<size_t>::max)() - header) / entry)) {
  ------------------
  |  Branch (145:14): [True: 0, False: 70]
  ------------------
  146|      0|            GLZ_THROW_OR_ABORT(std::bad_alloc{});
  ------------------
  |  |    8|      0|#define GLZ_THROW_OR_ABORT(EXC) (throw(EXC))
  ------------------
  147|      0|         }
  148|     70|         return header + static_cast<size_t>(count) * entry;
  149|     70|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE13index_entriesEv:
  296|    210|      {
  297|    210|         return static_cast<hash_index_entry*>(static_cast<void*>(index_ + 1));
  298|    210|      }

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

_ZN3glz20inert_key_bits_scopeC2IRNS_7contextEEEOT_Pv:
  192|   794k|      constexpr inert_key_bits_scope(auto&&, void*) noexcept {}
_ZN3glz10get_memberIRN12jsonrpc_fuzz10member_apiERKMS2_iEEDcOT_OT0_:
  677|  80.3k|   {
  678|  80.3k|      using V = std::decay_t<decltype(element)>;
  679|  80.3k|      if constexpr (std::is_member_object_pointer_v<V>) {
  680|  80.3k|         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|       |      else {
  700|       |         return element;
  701|       |      }
  702|  80.3k|   }
_ZN3glz8str_viewINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKS7_EENS1_17basic_string_viewIcS4_EEOT0_:
  341|  45.3k|   {
  342|       |      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  343|       |         return value; // already the answer; rebuilding it from data() and size() costs instructions
  344|       |      }
  345|       |      else if constexpr (!char_array_t<T> && std::is_pointer_v<std::decay_t<T>>) {
  346|       |         return value ? std::string_view{value} : std::string_view{};
  347|       |      }
  348|  45.3k|      else if constexpr (has_data<T> && has_size<T>) {
  349|  45.3k|         return std::string_view{value.data(), value.size()};
  350|       |      }
  351|       |      else {
  352|       |         return std::string_view{value};
  353|       |      }
  354|  45.3k|   }
_ZN3glz8str_viewINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERS5_EES5_OT0_:
  341|  5.12k|   {
  342|  5.12k|      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  343|  5.12k|         return value; // already the answer; rebuilding it from data() and size() costs instructions
  344|       |      }
  345|       |      else if constexpr (!char_array_t<T> && std::is_pointer_v<std::decay_t<T>>) {
  346|       |         return value ? std::string_view{value} : std::string_view{};
  347|       |      }
  348|       |      else if constexpr (has_data<T> && has_size<T>) {
  349|       |         return std::string_view{value.data(), value.size()};
  350|       |      }
  351|       |      else {
  352|       |         return std::string_view{value};
  353|       |      }
  354|  5.12k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz10member_apiERKMS2_FiiEEEDcOT_OT0_:
  677|  80.3k|   {
  678|  80.3k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|  80.3k|      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|  80.3k|         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|       |      else {
  700|       |         return element;
  701|       |      }
  702|  80.3k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz10member_apiERKMS2_FvvEEEDcOT_OT0_:
  677|  80.3k|   {
  678|  80.3k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|  80.3k|      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|  80.3k|         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|       |      else {
  700|       |         return element;
  701|       |      }
  702|  80.3k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz10member_apiERKMS2_FNS1_5pointERKS4_EEEDcOT_OT0_:
  677|  80.3k|   {
  678|  80.3k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|  80.3k|      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|  80.3k|         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|       |      else {
  700|       |         return element;
  701|       |      }
  702|  80.3k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz5pointERdEEDcOT_OT0_:
  677|   168k|   {
  678|   168k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|   168k|      else {
  700|   168k|         return element;
  701|   168k|      }
  702|   168k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERiEEDcOT_OT0_:
  677|   106k|   {
  678|   106k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|   106k|      else {
  700|   106k|         return element;
  701|   106k|      }
  702|   106k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEDcOT_OT0_:
  677|  80.4k|   {
  678|  80.4k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  80.4k|      else {
  700|  80.4k|         return element;
  701|  80.4k|      }
  702|  80.4k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNS1_5pointEEEDcOT_OT0_:
  677|  81.2k|   {
  678|  81.2k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  81.2k|      else {
  700|  81.2k|         return element;
  701|  81.2k|      }
  702|  81.2k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz6nestedERiEEDcOT_OT0_:
  677|  96.5k|   {
  678|  96.5k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  96.5k|      else {
  700|  96.5k|         return element;
  701|  96.5k|      }
  702|  96.5k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz6nestedERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEDcOT_OT0_:
  677|  81.1k|   {
  678|  81.1k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  81.1k|      else {
  700|  81.1k|         return element;
  701|  81.1k|      }
  702|  81.1k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNS1_6nestedEEEDcOT_OT0_:
  677|  81.1k|   {
  678|  81.1k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  81.1k|      else {
  700|  81.1k|         return element;
  701|  81.1k|      }
  702|  81.1k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__16vectorIiNS4_9allocatorIiEEEEEEDcOT_OT0_:
  677|  88.1k|   {
  678|  88.1k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  88.1k|      else {
  700|  88.1k|         return element;
  701|  88.1k|      }
  702|  88.1k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__13mapINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiNS4_4lessISB_EENS9_INS4_4pairIKSB_iEEEEEEEEDcOT_OT0_:
  677|  81.6k|   {
  678|  81.6k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  81.6k|      else {
  700|  81.6k|         return element;
  701|  81.6k|      }
  702|  81.6k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__18optionalIdEEEEDcOT_OT0_:
  677|  81.7k|   {
  678|  81.7k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  81.7k|      else {
  700|  81.7k|         return element;
  701|  81.7k|      }
  702|  81.7k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz6amountERdEEDcOT_OT0_:
  677|    300|   {
  678|    300|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|    300|      else {
  700|    300|         return element;
  701|    300|      }
  702|    300|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__17variantIJNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS1_6amountEEEEEEDcOT_OT0_:
  677|  82.1k|   {
  678|  82.1k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  82.1k|      else {
  700|  82.1k|         return element;
  701|  82.1k|      }
  702|  82.1k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__18functionIFiiEEEEEDcOT_OT0_:
  677|  80.6k|   {
  678|  80.6k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  80.6k|      else {
  700|  80.6k|         return element;
  701|  80.6k|      }
  702|  80.6k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__18functionIFNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKSB_EEEEEDcOT_OT0_:
  677|  80.7k|   {
  678|  80.7k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  80.7k|      else {
  700|  80.7k|         return element;
  701|  80.7k|      }
  702|  80.7k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__18functionIFNS1_5pointERKS6_EEEEEDcOT_OT0_:
  677|  80.7k|   {
  678|  80.7k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  80.7k|      else {
  700|  80.7k|         return element;
  701|  80.7k|      }
  702|  80.7k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__18functionIFdRNS4_6vectorIdNS4_9allocatorIdEEEEEEEEEDcOT_OT0_:
  677|  80.6k|   {
  678|  80.6k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  80.6k|      else {
  700|  80.6k|         return element;
  701|  80.6k|      }
  702|  80.6k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__18functionIFvvEEEEEDcOT_OT0_:
  677|  80.5k|   {
  678|  80.5k|      using V = std::decay_t<decltype(element)>;
  679|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  680|       |         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|  80.5k|      else {
  700|  80.5k|         return element;
  701|  80.5k|      }
  702|  80.5k|   }
_ZN3glz8str_viewINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS7_EENS1_17basic_string_viewIcS4_EEOT0_:
  341|  4.10M|   {
  342|       |      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  343|       |         return value; // already the answer; rebuilding it from data() and size() costs instructions
  344|       |      }
  345|       |      else if constexpr (!char_array_t<T> && std::is_pointer_v<std::decay_t<T>>) {
  346|       |         return value ? std::string_view{value} : std::string_view{};
  347|       |      }
  348|  4.10M|      else if constexpr (has_data<T> && has_size<T>) {
  349|  4.10M|         return std::string_view{value.data(), value.size()};
  350|       |      }
  351|       |      else {
  352|       |         return std::string_view{value};
  353|       |      }
  354|  4.10M|   }
_ZN3glz14basic_raw_jsonINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEC2Ev:
  231|  8.99M|      basic_raw_json() = default;
_ZN3glz10get_memberIRNS_3rpc18request_envelope_tERKMS2_NSt3__18optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEEEEDcOT_OT0_:
  677|   137k|   {
  678|   137k|      using V = std::decay_t<decltype(element)>;
  679|   137k|      if constexpr (std::is_member_object_pointer_v<V>) {
  680|   137k|         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|       |      else {
  700|       |         return element;
  701|       |      }
  702|   137k|   }
_ZN3glz10get_memberIRNS_3rpc18request_envelope_tERKMS2_NS_14basic_raw_jsonINSt3__117basic_string_viewIcNS5_11char_traitsIcEEEEEEEEDcOT_OT0_:
  677|  46.3k|   {
  678|  46.3k|      using V = std::decay_t<decltype(element)>;
  679|  46.3k|      if constexpr (std::is_member_object_pointer_v<V>) {
  680|  46.3k|         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|       |      else {
  700|       |         return element;
  701|       |      }
  702|  46.3k|   }
_ZN3glz10get_memberIRNS_3rpc18request_envelope_tERKMS2_NSt3__17variantIJDnNS4_17basic_string_viewIcNS4_11char_traitsIcEEEElEEEEEDcOT_OT0_:
  677|  78.7k|   {
  678|  78.7k|      using V = std::decay_t<decltype(element)>;
  679|  78.7k|      if constexpr (std::is_member_object_pointer_v<V>) {
  680|  78.7k|         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|       |      else {
  700|       |         return element;
  701|       |      }
  702|  78.7k|   }
_ZN3glz8str_viewINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKS5_EES5_OT0_:
  341|     67|   {
  342|     67|      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  343|     67|         return value; // already the answer; rebuilding it from data() and size() costs instructions
  344|       |      }
  345|       |      else if constexpr (!char_array_t<T> && std::is_pointer_v<std::decay_t<T>>) {
  346|       |         return value ? std::string_view{value} : std::string_view{};
  347|       |      }
  348|       |      else if constexpr (has_data<T> && has_size<T>) {
  349|       |         return std::string_view{value.data(), value.size()};
  350|       |      }
  351|       |      else {
  352|       |         return std::string_view{value};
  353|       |      }
  354|     67|   }
_ZN3glz10get_memberIRNS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEERKMS4_NSt3__17variantIJDndNS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEbNS6_6vectorIS4_NSB_IS4_EEEENS3_IS4_EEEEEEEDcOT_OT0_:
  677|  2.21M|   {
  678|  2.21M|      using V = std::decay_t<decltype(element)>;
  679|  2.21M|      if constexpr (std::is_member_object_pointer_v<V>) {
  680|  2.21M|         return value.*element;
  681|       |      }
  682|       |      else if constexpr (std::is_member_function_pointer_v<V>) {
  683|       |         return element;
  684|       |      }
  685|       |      else if constexpr (std::invocable<Element, Value> && not eigen_t<Element>) {
  686|       |         // Eigen places a static_assert inside of the operator()(), so we must target
  687|       |         // matrix types and reject them from the invocable check
  688|       |         // Eigen ought to put the check in the `enable_if` for operator()()
  689|       |         return std::invoke(std::forward<Element>(element), std::forward<Value>(value));
  690|       |      }
  691|       |      else if constexpr (std::is_pointer_v<V> && !std::is_reference_v<Element>) {
  692|       |         if constexpr (std::invocable<decltype(*element), Value>) {
  693|       |            return std::invoke(*element, std::forward<Value>(value));
  694|       |         }
  695|       |         else {
  696|       |            return *element;
  697|       |         }
  698|       |      }
  699|       |      else {
  700|       |         return element;
  701|       |      }
  702|  2.21M|   }

_ZN3glz10call_scopeINS_7contextEEC2ERS1_:
  272|  12.6M|      explicit call_scope(Ctx& c) noexcept : ctx(c), depth(c.depth)
  273|  12.6M|      {
  274|  12.6M|         ctx.error = error_code::none;
  275|  12.6M|         ctx.custom_error_message = {};
  276|  12.6M|      }
_ZN3glz11enter_depthITkNS_10is_contextENS_7contextEEEbRT_:
  344|  1.16M|   {
  345|  1.16M|      if (ctx.depth >= max_recursive_depth_limit) [[unlikely]] {
  ------------------
  |  Branch (345:11): [True: 435, False: 1.16M]
  ------------------
  346|    435|         ctx.error = error_code::exceeded_max_recursive_depth;
  347|    435|         return true;
  348|    435|      }
  349|  1.16M|      ++ctx.depth;
  350|  1.16M|      return false;
  351|  1.16M|   }
_ZN3glz10call_scopeINS_7contextEED2Ev:
  277|  12.6M|      ~call_scope() { ctx.depth = depth; }
_ZNK3glz9error_ctxcvbEv:
  148|  12.5M|      operator bool() const noexcept { return ec != error_code::none; }
_ZN3glz18charge_speculationITkNS_10is_contextENS_7contextEEEbRT_m:
  311|  53.8k|   {
  312|  53.8k|      if constexpr (requires { ctx.speculation_budget; }) {
  313|  53.8k|         if (ctx.speculation_budget == 0) {
  ------------------
  |  Branch (313:14): [True: 0, False: 53.8k]
  ------------------
  314|      0|            return true;
  315|      0|         }
  316|  53.8k|         ctx.speculation_budget = consumed >= ctx.speculation_budget ? 1 : ctx.speculation_budget - consumed;
  ------------------
  |  Branch (316:35): [True: 0, False: 53.8k]
  ------------------
  317|  53.8k|         return ctx.speculation_budget > 1;
  318|       |      }
  319|       |      else {
  320|       |         return true;
  321|       |      }
  322|  53.8k|   }
_ZN3glz21speculation_exhaustedITkNS_10is_contextENS_7contextEEEbRT_:
  328|  3.23k|   {
  329|  3.23k|      if constexpr (requires { ctx.speculation_budget; }) {
  330|  3.23k|         return ctx.speculation_budget == 1; // the latched floor; 0 means unbudgeted
  331|       |      }
  332|       |      else {
  333|       |         return false;
  334|       |      }
  335|  3.23k|   }

_ZN3glz14read_iteratorsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEEDaOT0_:
   40|   448k|   {
   41|   448k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
   42|       |
   43|   448k|      auto it = reinterpret_cast<const char*>(buffer.data());
   44|   448k|      auto end = it + buffer.size();
   45|       |
   46|   448k|      return std::pair{it, end};
   47|   448k|   }
_ZN3glz23finalize_top_level_readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEEEvOT0_PKcS7_S7_:
  131|   406k|   {
  132|   406k|      if constexpr (Opts.format == JSON && !check_null_terminated(Opts)) {
  133|       |         // Deliberately not [[unlikely]]: a body that ends with the buffer lands here on every
  134|       |         // successful read, which is the ordinary case for a registry parsing a wire span.
  135|       |         // start < it, not !=, because a streaming origin can be empty or overshoot on an error
  136|       |         // path; neither is an absent value.
  137|   406k|         if (ctx.error == error_code::end_reached && ctx.depth == 0 && it == end && start < it) {
  ------------------
  |  Branch (137:14): [True: 102k, False: 304k]
  |  Branch (137:54): [True: 101k, False: 881]
  |  Branch (137:72): [True: 98.9k, False: 2.27k]
  |  Branch (137:85): [True: 98.9k, False: 0]
  ------------------
  138|  98.9k|            context ws_ctx{}; // only written to when skip_ws parses a comment; the result is unused
  139|  98.9k|            const char* consumed = start;
  140|  98.9k|            skip_ws<Opts>(ws_ctx, consumed, it);
  141|  98.9k|            if (consumed == it) {
  ------------------
  |  Branch (141:17): [True: 15, False: 98.8k]
  ------------------
  142|     15|               ctx.error = error_code::no_read_input;
  143|     15|            }
  144|  98.9k|         }
  145|   406k|      }
  146|   406k|      finalize_read_context(ctx);
  147|   406k|   }
_ZN3glz21finalize_read_contextITkNS_10is_contextERNS_7contextEEEvOT_:
  109|   595k|   {
  110|   595k|      settle_partial_read_complete(ctx);
  111|   595k|      settle_end_reached(ctx);
  112|   595k|   }
_ZN3glz28settle_partial_read_completeITkNS_10is_contextERNS_7contextEEEvOT_:
  102|   595k|   {
  103|   595k|      if (ctx.error == error_code::partial_read_complete) {
  ------------------
  |  Branch (103:11): [True: 0, False: 595k]
  ------------------
  104|      0|         ctx.error = error_code::none;
  105|      0|      }
  106|   595k|   }
_ZN3glz18settle_end_reachedITkNS_10is_contextERNS_7contextEEEvOT_:
   88|   595k|   {
   89|   595k|      if (ctx.error == error_code::end_reached) {
  ------------------
  |  Branch (89:11): [True: 131k, False: 464k]
  ------------------
   90|   131k|         ctx.error = (ctx.depth == 0) ? error_code::none : error_code::unexpected_end;
  ------------------
  |  Branch (90:22): [True: 130k, False: 1.12k]
  ------------------
   91|   131k|      }
   92|   595k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEiTkNS_10contiguousERNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERS8_OS9_:
  232|  1.35k|   {
  233|  1.35k|      format_context_t<Opts.format> ctx{};
  234|  1.35k|      return read<Opts>(value, buffer, ctx);
  235|  1.35k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEiTkNS_10contiguousERNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_OT2_:
  152|  1.35k|   {
  153|  1.35k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.35k|      call_scope scope{ctx};
  156|       |
  157|  1.35k|      if constexpr (Opts.format != NDJSON) {
  158|  1.35k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 1.35k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  1.35k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  1.35k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  1.35k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  1.35k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  1.35k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  1.35k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  1.35k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  1.35k|         ctx.speculation_budget =
  185|  1.35k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 11, False: 1.33k]
  ------------------
  186|  1.35k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  1.35k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  1.35k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 1.25k, False: 99]
  ------------------
  203|  1.25k|         goto finish;
  204|  1.25k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  1.35k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  1.35k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  1.35k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|     99|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  232|  1.45k|   {
  233|  1.45k|      format_context_t<Opts.format> ctx{};
  234|  1.45k|      return read<Opts>(value, buffer, ctx);
  235|  1.45k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  152|  1.45k|   {
  153|  1.45k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.45k|      call_scope scope{ctx};
  156|       |
  157|  1.45k|      if constexpr (Opts.format != NDJSON) {
  158|  1.45k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 1.45k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  1.45k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  1.45k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  1.45k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  1.45k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  1.45k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  1.45k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  1.45k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  1.45k|         ctx.speculation_budget =
  185|  1.45k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 3, False: 1.45k]
  ------------------
  186|  1.45k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  1.45k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  1.45k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 1.45k, False: 0]
  ------------------
  203|  1.45k|         goto finish;
  204|  1.45k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  1.45k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  1.45k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  1.45k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|      0|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  232|  9.24k|   {
  233|  9.24k|      format_context_t<Opts.format> ctx{};
  234|  9.24k|      return read<Opts>(value, buffer, ctx);
  235|  9.24k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  152|  9.24k|   {
  153|  9.24k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  9.24k|      call_scope scope{ctx};
  156|       |
  157|  9.24k|      if constexpr (Opts.format != NDJSON) {
  158|  9.24k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 9.24k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  9.24k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  9.24k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  9.24k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  9.24k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  9.24k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  9.24k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  9.24k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  9.24k|         ctx.speculation_budget =
  185|  9.24k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 139, False: 9.10k]
  ------------------
  186|  9.24k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  9.24k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  9.24k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 9.24k, False: 0]
  ------------------
  203|  9.24k|         goto finish;
  204|  9.24k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  9.24k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  9.24k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  9.24k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|      0|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_10contiguousERNS2_17basic_string_viewIcS5_EEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_:
  232|  1.47k|   {
  233|  1.47k|      format_context_t<Opts.format> ctx{};
  234|  1.47k|      return read<Opts>(value, buffer, ctx);
  235|  1.47k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_10contiguousERNS2_17basic_string_viewIcS5_EETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSE_OSF_OT2_:
  152|  1.47k|   {
  153|  1.47k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.47k|      call_scope scope{ctx};
  156|       |
  157|  1.47k|      if constexpr (Opts.format != NDJSON) {
  158|  1.47k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 1.47k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  1.47k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  1.47k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  1.47k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  1.47k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  1.47k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  1.47k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  1.47k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  1.47k|         ctx.speculation_budget =
  185|  1.47k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 61, False: 1.41k]
  ------------------
  186|  1.47k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  1.47k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  1.47k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 940, False: 534]
  ------------------
  203|    940|         goto finish;
  204|    940|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  1.47k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  1.47k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  1.47k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|    534|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEdTkNS_10contiguousERNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERS8_OS9_:
  232|    711|   {
  233|    711|      format_context_t<Opts.format> ctx{};
  234|    711|      return read<Opts>(value, buffer, ctx);
  235|    711|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEdTkNS_10contiguousERNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_OT2_:
  152|    711|   {
  153|    711|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|    711|      call_scope scope{ctx};
  156|       |
  157|    711|      if constexpr (Opts.format != NDJSON) {
  158|    711|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 711]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|    711|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|    711|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|    711|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|    711|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|    711|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|    711|      if constexpr (requires { ctx.speculation_budget; }) {
  183|    711|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|    711|         ctx.speculation_budget =
  185|    711|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 3, False: 708]
  ------------------
  186|    711|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|    711|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|    711|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 665, False: 46]
  ------------------
  203|    665|         goto finish;
  204|    665|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|    711|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|    711|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|    711|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|     46|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  232|  1.83k|   {
  233|  1.83k|      format_context_t<Opts.format> ctx{};
  234|  1.83k|      return read<Opts>(value, buffer, ctx);
  235|  1.83k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  152|  1.83k|   {
  153|  1.83k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.83k|      call_scope scope{ctx};
  156|       |
  157|  1.83k|      if constexpr (Opts.format != NDJSON) {
  158|  1.83k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 1.83k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  1.83k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  1.83k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  1.83k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  1.83k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  1.83k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  1.83k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  1.83k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  1.83k|         ctx.speculation_budget =
  185|  1.83k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 30, False: 1.80k]
  ------------------
  186|  1.83k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  1.83k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  1.83k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 1.83k, False: 0]
  ------------------
  203|  1.83k|         goto finish;
  204|  1.83k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  1.83k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  1.83k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  1.83k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|      0|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__16vectorIiNS2_9allocatorIiEEEETkNS_10contiguousERNS2_17basic_string_viewIcNS2_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_:
  232|  1.92k|   {
  233|  1.92k|      format_context_t<Opts.format> ctx{};
  234|  1.92k|      return read<Opts>(value, buffer, ctx);
  235|  1.92k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__16vectorIiNS2_9allocatorIiEEEETkNS_10contiguousERNS2_17basic_string_viewIcNS2_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSE_OSF_OT2_:
  152|  1.92k|   {
  153|  1.92k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.92k|      call_scope scope{ctx};
  156|       |
  157|  1.92k|      if constexpr (Opts.format != NDJSON) {
  158|  1.92k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 1.92k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  1.92k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  1.92k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  1.92k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  1.92k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  1.92k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  1.92k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  1.92k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  1.92k|         ctx.speculation_budget =
  185|  1.92k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 28, False: 1.89k]
  ------------------
  186|  1.92k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  1.92k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  1.92k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 1.47k, False: 443]
  ------------------
  203|  1.47k|         goto finish;
  204|  1.47k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  1.92k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  1.92k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  1.92k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|    443|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__13mapINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEiNS2_4lessIS9_EENS7_INS2_4pairIKS9_iEEEEEETkNS_10contiguousERNS2_17basic_string_viewIcS6_EEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSK_OSL_:
  232|  1.69k|   {
  233|  1.69k|      format_context_t<Opts.format> ctx{};
  234|  1.69k|      return read<Opts>(value, buffer, ctx);
  235|  1.69k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__13mapINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEiNS2_4lessIS9_EENS7_INS2_4pairIKS9_iEEEEEETkNS_10contiguousERNS2_17basic_string_viewIcS6_EETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSM_OSN_OT2_:
  152|  1.69k|   {
  153|  1.69k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.69k|      call_scope scope{ctx};
  156|       |
  157|  1.69k|      if constexpr (Opts.format != NDJSON) {
  158|  1.69k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 1.69k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  1.69k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  1.69k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  1.69k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  1.69k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  1.69k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  1.69k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  1.69k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  1.69k|         ctx.speculation_budget =
  185|  1.69k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 9, False: 1.68k]
  ------------------
  186|  1.69k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  1.69k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  1.69k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 1.69k, False: 0]
  ------------------
  203|  1.69k|         goto finish;
  204|  1.69k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  1.69k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  1.69k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  1.69k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|      0|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__18optionalIdEETkNS_10contiguousERNS2_17basic_string_viewIcNS2_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  232|  2.23k|   {
  233|  2.23k|      format_context_t<Opts.format> ctx{};
  234|  2.23k|      return read<Opts>(value, buffer, ctx);
  235|  2.23k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__18optionalIdEETkNS_10contiguousERNS2_17basic_string_viewIcNS2_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  152|  2.23k|   {
  153|  2.23k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  2.23k|      call_scope scope{ctx};
  156|       |
  157|  2.23k|      if constexpr (Opts.format != NDJSON) {
  158|  2.23k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 2.23k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  2.23k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  2.23k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  2.23k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  2.23k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  2.23k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  2.23k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  2.23k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  2.23k|         ctx.speculation_budget =
  185|  2.23k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 36, False: 2.19k]
  ------------------
  186|  2.23k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  2.23k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  2.23k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 2.11k, False: 120]
  ------------------
  203|  2.11k|         goto finish;
  204|  2.11k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  2.23k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  2.23k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  2.23k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|    120|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__17variantIJNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS_10contiguousERNS2_17basic_string_viewIcS6_EEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSG_OSH_:
  232|  1.25k|   {
  233|  1.25k|      format_context_t<Opts.format> ctx{};
  234|  1.25k|      return read<Opts>(value, buffer, ctx);
  235|  1.25k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__17variantIJNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS_10contiguousERNS2_17basic_string_viewIcS6_EETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSI_OSJ_OT2_:
  152|  1.25k|   {
  153|  1.25k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.25k|      call_scope scope{ctx};
  156|       |
  157|  1.25k|      if constexpr (Opts.format != NDJSON) {
  158|  1.25k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 1.25k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  1.25k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  1.25k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  1.25k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  1.25k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  1.25k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  1.25k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  1.25k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  1.25k|         ctx.speculation_budget =
  185|  1.25k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 47, False: 1.20k]
  ------------------
  186|  1.25k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  1.25k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  1.25k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 871, False: 382]
  ------------------
  203|    871|         goto finish;
  204|    871|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  1.25k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  1.25k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  1.25k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|    382|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__16vectorIdNS2_9allocatorIdEEEETkNS_10contiguousERNS2_17basic_string_viewIcNS2_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_:
  232|  3.54k|   {
  233|  3.54k|      format_context_t<Opts.format> ctx{};
  234|  3.54k|      return read<Opts>(value, buffer, ctx);
  235|  3.54k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__16vectorIdNS2_9allocatorIdEEEETkNS_10contiguousERNS2_17basic_string_viewIcNS2_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSE_OSF_OT2_:
  152|  3.54k|   {
  153|  3.54k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  3.54k|      call_scope scope{ctx};
  156|       |
  157|  3.54k|      if constexpr (Opts.format != NDJSON) {
  158|  3.54k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 3.54k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  3.54k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  3.54k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  3.54k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  3.54k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  3.54k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  3.54k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  3.54k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  3.54k|         ctx.speculation_budget =
  185|  3.54k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 44, False: 3.49k]
  ------------------
  186|  3.54k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  3.54k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  3.54k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 1.67k, False: 1.86k]
  ------------------
  203|  1.67k|         goto finish;
  204|  1.67k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  3.54k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  3.54k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  3.54k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|  1.86k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__16vectorINS_14basic_raw_jsonINS2_17basic_string_viewIcNS2_11char_traitsIcEEEEEENS2_9allocatorIS9_EEEETkNS_10contiguousERS8_Qaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSE_OSF_:
  232|  30.6k|   {
  233|  30.6k|      format_context_t<Opts.format> ctx{};
  234|  30.6k|      return read<Opts>(value, buffer, ctx);
  235|  30.6k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__16vectorINS_14basic_raw_jsonINS2_17basic_string_viewIcNS2_11char_traitsIcEEEEEENS2_9allocatorIS9_EEEETkNS_10contiguousERS8_TkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSG_OSH_OT2_:
  152|  30.6k|   {
  153|  30.6k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  30.6k|      call_scope scope{ctx};
  156|       |
  157|  30.6k|      if constexpr (Opts.format != NDJSON) {
  158|  30.6k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 30.6k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  30.6k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  30.6k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  30.6k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  30.6k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  30.6k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  30.6k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  30.6k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  30.6k|         ctx.speculation_budget =
  185|  30.6k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 709, False: 29.9k]
  ------------------
  186|  30.6k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  30.6k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  30.6k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 9.81k, False: 20.8k]
  ------------------
  203|  9.81k|         goto finish;
  204|  9.81k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  30.6k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  30.6k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  30.6k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|  20.8k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  232|  4.15M|   {
  233|  4.15M|      format_context_t<Opts.format> ctx{};
  234|  4.15M|      return read<Opts>(value, buffer, ctx);
  235|  4.15M|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  152|  4.15M|   {
  153|  4.15M|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  4.15M|      call_scope scope{ctx};
  156|       |
  157|  4.15M|      if constexpr (Opts.format != NDJSON) {
  158|  4.15M|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 3.90M, False: 252k]
  ------------------
  159|  3.90M|            ctx.error = error_code::no_read_input;
  160|  3.90M|            return {0, ctx.error, ctx.custom_error_message};
  161|  3.90M|         }
  162|  4.15M|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|   252k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  4.15M|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  4.15M|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  4.15M|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  4.15M|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  4.15M|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  4.15M|         ctx.speculation_budget =
  185|  4.15M|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 1.35k, False: 4.15M]
  ------------------
  186|  4.15M|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  4.15M|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  4.15M|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 247k, False: 3.91M]
  ------------------
  203|   247k|         goto finish;
  204|   247k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  3.91M|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|   252k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|   252k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|  3.91M|   }
_ZN3glz4readITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS2_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEENS_4skipETkNS_10contiguousERNSt3__117basic_string_viewIcNS5_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSD_OSE_OT2_:
  152|  4.09M|   {
  153|  4.09M|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  4.09M|      call_scope scope{ctx};
  156|       |
  157|  4.09M|      if constexpr (Opts.format != NDJSON) {
  158|  4.09M|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 3.90M, False: 189k]
  ------------------
  159|  3.90M|            ctx.error = error_code::no_read_input;
  160|  3.90M|            return {0, ctx.error, ctx.custom_error_message};
  161|  3.90M|         }
  162|  4.09M|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|   189k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  4.09M|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  4.09M|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  4.09M|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  4.09M|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  4.09M|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  4.09M|         ctx.speculation_budget =
  185|  4.09M|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 733, False: 4.09M]
  ------------------
  186|  4.09M|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  4.09M|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  4.09M|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 152k, False: 3.94M]
  ------------------
  203|   152k|         goto finish;
  204|   152k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|  3.94M|      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|  3.94M|         if (it < end) {
  ------------------
  |  Branch (210:14): [True: 4.28k, False: 3.93M]
  ------------------
  211|  4.28k|            skip_ws<ParseOpts>(ctx, it, end);
  212|  4.28k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (212:17): [True: 330, False: 3.95k]
  ------------------
  213|    330|               goto finish;
  214|    330|            }
  215|  3.95k|            if (it != end) [[unlikely]] {
  ------------------
  |  Branch (215:17): [True: 3.95k, False: 0]
  ------------------
  216|  3.95k|               ctx.error = error_code::syntax_error;
  217|  3.95k|            }
  218|  3.95k|         }
  219|  3.94M|      }
  220|       |
  221|  3.94M|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|   189k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|   189k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|  3.94M|   }
_ZN3glz14read_iteratorsITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS2_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEDaOT0_:
   40|   189k|   {
   41|   189k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
   42|       |
   43|   189k|      auto it = reinterpret_cast<const char*>(buffer.data());
   44|   189k|      auto end = it + buffer.size();
   45|       |
   46|   189k|      return std::pair{it, end};
   47|   189k|   }
_ZN3glz23finalize_top_level_readITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS2_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextEEEvOT0_PKcS9_S9_:
  131|   189k|   {
  132|   189k|      if constexpr (Opts.format == JSON && !check_null_terminated(Opts)) {
  133|       |         // Deliberately not [[unlikely]]: a body that ends with the buffer lands here on every
  134|       |         // successful read, which is the ordinary case for a registry parsing a wire span.
  135|       |         // start < it, not !=, because a streaming origin can be empty or overshoot on an error
  136|       |         // path; neither is an absent value.
  137|   189k|         if (ctx.error == error_code::end_reached && ctx.depth == 0 && it == end && start < it) {
  ------------------
  |  Branch (137:14): [True: 29.4k, False: 159k]
  |  Branch (137:54): [True: 29.1k, False: 247]
  |  Branch (137:72): [True: 29.1k, False: 0]
  |  Branch (137:85): [True: 29.1k, False: 0]
  ------------------
  138|  29.1k|            context ws_ctx{}; // only written to when skip_ws parses a comment; the result is unused
  139|  29.1k|            const char* consumed = start;
  140|  29.1k|            skip_ws<Opts>(ws_ctx, consumed, it);
  141|  29.1k|            if (consumed == it) {
  ------------------
  |  Branch (141:17): [True: 15, False: 29.1k]
  ------------------
  142|     15|               ctx.error = error_code::no_read_input;
  143|     15|            }
  144|  29.1k|         }
  145|   189k|      }
  146|   189k|      finalize_read_context(ctx);
  147|   189k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__17variantIJDnNS2_17basic_string_viewIcNS2_11char_traitsIcEEEElEEETkNS_10contiguousERKNS2_4spanIKcLm18446744073709551615EEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSG_OSH_OT2_:
  152|  20.3k|   {
  153|  20.3k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  20.3k|      call_scope scope{ctx};
  156|       |
  157|  20.3k|      if constexpr (Opts.format != NDJSON) {
  158|  20.3k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 20.3k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  20.3k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  20.3k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  20.3k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  20.3k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  20.3k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  20.3k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  20.3k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  20.3k|         ctx.speculation_budget =
  185|  20.3k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 32, False: 20.2k]
  ------------------
  186|  20.3k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  20.3k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  20.3k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 17.1k, False: 3.21k]
  ------------------
  203|  17.1k|         goto finish;
  204|  17.1k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  20.3k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  20.3k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  20.3k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|  3.21k|   }
_ZN3glz14read_iteratorsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERKNSt3__14spanIKcLm18446744073709551615EEEEEDaOT0_:
   40|  20.3k|   {
   41|  20.3k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
   42|       |
   43|  20.3k|      auto it = reinterpret_cast<const char*>(buffer.data());
   44|  20.3k|      auto end = it + buffer.size();
   45|       |
   46|  20.3k|      return std::pair{it, end};
   47|  20.3k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEETkNS_10contiguousENSt3__117basic_string_viewIcNS6_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSB_OSC_:
  232|  76.2k|   {
  233|  76.2k|      format_context_t<Opts.format> ctx{};
  234|  76.2k|      return read<Opts>(value, buffer, ctx);
  235|  76.2k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEETkNS_10contiguousERNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSE_OSF_OT2_:
  152|  76.2k|   {
  153|  76.2k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  76.2k|      call_scope scope{ctx};
  156|       |
  157|  76.2k|      if constexpr (Opts.format != NDJSON) {
  158|  76.2k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (158:14): [True: 0, False: 76.2k]
  ------------------
  159|      0|            ctx.error = error_code::no_read_input;
  160|      0|            return {0, ctx.error, ctx.custom_error_message};
  161|      0|         }
  162|  76.2k|      }
  163|       |
  164|       |      // The reader used to grow the caller's buffer by `padding_bytes` here and shrink it back on
  165|       |      // the way out, so that its fixed width loads could run off the end of the document into
  166|       |      // defined bytes. Every one of those loads is now bounded against `end` instead (see
  167|       |      // `chunk_min`), which costs the last chunk of the buffer its chunked path and nothing else --
  168|       |      // measurably less than the round trip did. `std::string::resize` is an ABI entry point on
  169|       |      // both libc++ and libstdc++, so neither call inlined and the parse was spilled around both
  170|       |      // for what amounted to a sixteen byte store; the price did not scale with the document, so on
  171|       |      // a small one it was the bulk of the call. A caller who does have that slack can still say so
  172|       |      // and get the unbounded loads back, and nobody else pays for the buffer being touched at all.
  173|  76.2k|      ctx.padded_input = check_is_padded(Opts);
  174|       |
  175|  76.2k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  176|       |
  177|  76.2k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  178|  76.2k|      auto start = it;
  179|       |
  180|       |      // Bound the speculative re-parsing a variant resolution may do, in bytes, relative to this
  181|       |      // input. Seeded per read so a reused context starts fresh. See charge_speculation.
  182|  76.2k|      if constexpr (requires { ctx.speculation_budget; }) {
  183|  76.2k|         const size_t proportional = max_speculative_parse_factor * size_t(end - it);
  184|  76.2k|         ctx.speculation_budget =
  185|  76.2k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (185:14): [True: 276, False: 75.9k]
  ------------------
  186|  76.2k|      }
  187|       |
  188|       |      // A YAML context marks its outermost parse with stream_begin and seeds its expansion budgets
  189|       |      // there, so clearing it here is what makes those budgets per-read like the one above. A
  190|       |      // reused context would otherwise carry a spent budget into the next document and reject a
  191|       |      // valid one, and would leave stream_begin pointing into the buffer of the previous read.
  192|       |      // Nested YAML parses do not route through glz::read, so they still cannot reseed themselves.
  193|       |      if constexpr (requires { ctx.stream_begin; }) {
  194|       |         ctx.stream_begin = nullptr;
  195|       |      }
  196|       |
  197|       |      // Normalized off before dispatching: no reader branches on it any more, so leaving it set
  198|       |      // would split every instantiation below between callers who declared padding and callers who
  199|       |      // did not, for a flag none of them reads.
  200|  76.2k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  201|       |
  202|  76.2k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (202:11): [True: 61.7k, False: 14.5k]
  ------------------
  203|  61.7k|         goto finish;
  204|  61.7k|      }
  205|       |
  206|       |      // The JSON RFC 8259 defines: JSON-text = ws value ws
  207|       |      // So, trailing whitespace is permitted and sometimes we want to
  208|       |      // validate this, even though this memory will not affect Glaze.
  209|       |      if constexpr (check_validate_trailing_whitespace(Opts)) {
  210|       |         if (it < end) {
  211|       |            skip_ws<ParseOpts>(ctx, it, end);
  212|       |            if (bool(ctx.error)) [[unlikely]] {
  213|       |               goto finish;
  214|       |            }
  215|       |            if (it != end) [[unlikely]] {
  216|       |               ctx.error = error_code::syntax_error;
  217|       |            }
  218|       |         }
  219|       |      }
  220|       |
  221|  76.2k|   finish:
  222|       |      // ParseOpts, not Opts: this reads `null_terminated` to tell a value that ended with the
  223|       |      // buffer from one that ran out, and it has to be told the same thing the parse was.
  224|  76.2k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  225|       |
  226|  76.2k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  227|  14.5k|   }

_ZN3glz12format_errorINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKNS_9error_ctxERKT_:
 3431|  4.12M|   {
 3432|  4.12M|      const auto error_type_str = meta<error_code>::keys[uint32_t(pe.ec)];
 3433|       |
 3434|  4.12M|      const auto info = detail::get_source_info(buffer, pe.count);
 3435|  4.12M|      auto error_str = detail::generate_error_string(error_type_str, info);
 3436|  4.12M|      if (pe.custom_error_message.size()) {
  ------------------
  |  Branch (3436:11): [True: 0, False: 4.12M]
  ------------------
 3437|      0|         error_str.append(" ");
 3438|      0|         error_str.append(pe.custom_error_message.begin(), pe.custom_error_message.end());
 3439|      0|      }
 3440|  4.12M|      return error_str;
 3441|  4.12M|   }
_ZN3glz11decode_hashILj10EN12jsonrpc_fuzz5pointEXtlNS_11hash_info_tIS2_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh0ELh1ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2EEELm1ELm1EEELS5_1EE2opIRPKcSD_EEmOT_T0_:
 2584|  7.16k|      {
 2585|       |         if constexpr (HashInfo.sized_hash) {
 2586|       |            const auto* c = quote_memchr<HashInfo.min_length, HashInfo.max_length>(it, end);
 2587|       |            if (c) [[likely]] {
 2588|       |               const auto n = size_t(static_cast<std::decay_t<decltype(it)>>(c) - it);
 2589|       |               if (n == 0 || n > HashInfo.max_length || HashInfo.unique_index >= size_t(end - it)) [[unlikely]] {
 2590|       |                  return N; // error
 2591|       |               }
 2592|       |
 2593|       |               const auto h = bitmix(uint16_t(it[HashInfo.unique_index]) | (uint16_t(n) << 8), HashInfo.seed);
 2594|       |               return HashInfo.table[h % bsize];
 2595|       |            }
 2596|       |            else [[unlikely]] {
 2597|       |               return N;
 2598|       |            }
 2599|       |         }
 2600|  7.16k|         else {
 2601|  7.16k|            if constexpr (N == 2) {
 2602|       |               if constexpr (uindex > 0) {
 2603|       |                  if (size_t(end - it) <= uindex) [[unlikely]] {
 2604|       |                     return N; // error
 2605|       |                  }
 2606|       |               }
 2607|       |               // Avoids using a hash table
 2608|  7.16k|               constexpr auto first_key_char = reflect<T>::keys[0][uindex];
 2609|  7.16k|               return size_t(bool(it[uindex] ^ first_key_char));
 2610|       |            }
 2611|       |            else {
 2612|       |               if constexpr (uindex > 0) {
 2613|       |                  if (size_t(end - it) <= uindex) [[unlikely]] {
 2614|       |                     return N; // error
 2615|       |                  }
 2616|       |               }
 2617|       |               return HashInfo.table[uint8_t(it[uindex])];
 2618|       |            }
 2619|  7.16k|         }
 2620|  7.16k|      }
_ZN3glz11decode_hashILj10EN12jsonrpc_fuzz8fuzz_apiEXtlNS_11hash_info_tIS2_Lm128EEELNS_9hash_typeE2EtlNSt3__15arrayIhLm128EEEtlA128_hLh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh11ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh6ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh9ELh13ELh13ELh13ELh13ELh13ELh12ELh13ELh13ELh13ELh13ELh0ELh13ELh13ELh13ELh13ELh13ELh13ELh5ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh4ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh1ELh13ELh10ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh2ELh3ELh13ELh13ELh13ELh13ELh13ELh13ELh8ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh7ELh13ELh13ELh13ELh13ELh13ELh13ELh13EEELm4ELm8ELm15149911783463666029ELm18446744073709551615ELb0ELm2EEELS5_2EE2opIRPKcSD_EEmOT_T0_:
 2649|  42.6k|      {
 2650|  42.6k|         if constexpr (HashInfo.front_hash_bytes == 2) {
 2651|  42.6k|            if (size_t(end - it) <= 2) [[unlikely]] {
  ------------------
  |  Branch (2651:17): [True: 9, False: 42.5k]
  ------------------
 2652|      9|               return N; // error
 2653|      9|            }
 2654|  42.5k|            uint16_t h;
 2655|       |            if consteval {
 2656|       |               h = 0;
 2657|       |               for (size_t i = 0; i < 2; ++i) {
 2658|       |                  h |= static_cast<uint16_t>(static_cast<uint8_t>(it[i])) << (8 * i);
 2659|       |               }
 2660|       |            }
 2661|  42.5k|            else {
 2662|  42.5k|               std::memcpy(&h, it, 2);
 2663|       |               if constexpr (std::endian::native == std::endian::big) {
 2664|       |                  h = std::byteswap(h);
 2665|       |               }
 2666|  42.5k|            }
 2667|  42.5k|            return HashInfo.table[bitmix(h, HashInfo.seed) % bsize];
 2668|       |         }
 2669|       |         else if constexpr (HashInfo.front_hash_bytes == 4) {
 2670|       |            if (size_t(end - it) <= 4) [[unlikely]] {
 2671|       |               return N;
 2672|       |            }
 2673|       |            uint32_t h;
 2674|       |            if consteval {
 2675|       |               h = 0;
 2676|       |               for (size_t i = 0; i < 4; ++i) {
 2677|       |                  h |= static_cast<uint32_t>(static_cast<uint8_t>(it[i])) << (8 * i);
 2678|       |               }
 2679|       |            }
 2680|       |            else {
 2681|       |               std::memcpy(&h, it, 4);
 2682|       |               if constexpr (std::endian::native == std::endian::big) {
 2683|       |                  h = std::byteswap(h);
 2684|       |               }
 2685|       |            }
 2686|       |            return HashInfo.table[bitmix(h, HashInfo.seed) % bsize];
 2687|       |         }
 2688|       |         else if constexpr (HashInfo.front_hash_bytes == 8) {
 2689|       |            if (size_t(end - it) <= 8) [[unlikely]] {
 2690|       |               return N;
 2691|       |            }
 2692|       |            uint64_t h;
 2693|       |            if consteval {
 2694|       |               h = 0;
 2695|       |               for (size_t i = 0; i < 8; ++i) {
 2696|       |                  h |= static_cast<uint64_t>(static_cast<uint8_t>(it[i])) << (8 * i);
 2697|       |               }
 2698|       |            }
 2699|       |            else {
 2700|       |               std::memcpy(&h, it, 8);
 2701|       |               if constexpr (std::endian::native == std::endian::big) {
 2702|       |                  h = std::byteswap(h);
 2703|       |               }
 2704|       |            }
 2705|       |            return HashInfo.table[rich_bitmix(h, HashInfo.seed) % bsize];
 2706|       |         }
 2707|       |         else {
 2708|       |            static_assert(false_v<T>, "invalid hash algorithm");
 2709|       |         }
 2710|  42.6k|      }
_ZN3glz6bitmixEmm:
 1570|  42.5k|   {
 1571|  42.5k|      h *= seed;
 1572|  42.5k|      return h ^ std::rotr(h, 49);
 1573|  42.5k|   };
_ZN3glz11decode_hashILj10EN12jsonrpc_fuzz6nestedEXtlNS_11hash_info_tIS2_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh0ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh1ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2EEELm5ELm5EEELS5_1EE2opIRPKcSD_EEmOT_T0_:
 2584|  17.0k|      {
 2585|       |         if constexpr (HashInfo.sized_hash) {
 2586|       |            const auto* c = quote_memchr<HashInfo.min_length, HashInfo.max_length>(it, end);
 2587|       |            if (c) [[likely]] {
 2588|       |               const auto n = size_t(static_cast<std::decay_t<decltype(it)>>(c) - it);
 2589|       |               if (n == 0 || n > HashInfo.max_length || HashInfo.unique_index >= size_t(end - it)) [[unlikely]] {
 2590|       |                  return N; // error
 2591|       |               }
 2592|       |
 2593|       |               const auto h = bitmix(uint16_t(it[HashInfo.unique_index]) | (uint16_t(n) << 8), HashInfo.seed);
 2594|       |               return HashInfo.table[h % bsize];
 2595|       |            }
 2596|       |            else [[unlikely]] {
 2597|       |               return N;
 2598|       |            }
 2599|       |         }
 2600|  17.0k|         else {
 2601|  17.0k|            if constexpr (N == 2) {
 2602|       |               if constexpr (uindex > 0) {
 2603|       |                  if (size_t(end - it) <= uindex) [[unlikely]] {
 2604|       |                     return N; // error
 2605|       |                  }
 2606|       |               }
 2607|       |               // Avoids using a hash table
 2608|  17.0k|               constexpr auto first_key_char = reflect<T>::keys[0][uindex];
 2609|  17.0k|               return size_t(bool(it[uindex] ^ first_key_char));
 2610|       |            }
 2611|       |            else {
 2612|       |               if constexpr (uindex > 0) {
 2613|       |                  if (size_t(end - it) <= uindex) [[unlikely]] {
 2614|       |                     return N; // error
 2615|       |                  }
 2616|       |               }
 2617|       |               return HashInfo.table[uint8_t(it[uindex])];
 2618|       |            }
 2619|  17.0k|         }
 2620|  17.0k|      }
_ZN3glz11decode_hashILj10ENS_3rpc18request_envelope_tEXtlNS_11hash_info_tIS2_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh3ELh0ELh4ELh4ELh1ELh4ELh4ELh2ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4EEELm2ELm7EEELS5_1EE2opIRPKcSD_EEmOT_T0_:
 2584|   298k|      {
 2585|       |         if constexpr (HashInfo.sized_hash) {
 2586|       |            const auto* c = quote_memchr<HashInfo.min_length, HashInfo.max_length>(it, end);
 2587|       |            if (c) [[likely]] {
 2588|       |               const auto n = size_t(static_cast<std::decay_t<decltype(it)>>(c) - it);
 2589|       |               if (n == 0 || n > HashInfo.max_length || HashInfo.unique_index >= size_t(end - it)) [[unlikely]] {
 2590|       |                  return N; // error
 2591|       |               }
 2592|       |
 2593|       |               const auto h = bitmix(uint16_t(it[HashInfo.unique_index]) | (uint16_t(n) << 8), HashInfo.seed);
 2594|       |               return HashInfo.table[h % bsize];
 2595|       |            }
 2596|       |            else [[unlikely]] {
 2597|       |               return N;
 2598|       |            }
 2599|       |         }
 2600|   298k|         else {
 2601|       |            if constexpr (N == 2) {
 2602|       |               if constexpr (uindex > 0) {
 2603|       |                  if (size_t(end - it) <= uindex) [[unlikely]] {
 2604|       |                     return N; // error
 2605|       |                  }
 2606|       |               }
 2607|       |               // Avoids using a hash table
 2608|       |               constexpr auto first_key_char = reflect<T>::keys[0][uindex];
 2609|       |               return size_t(bool(it[uindex] ^ first_key_char));
 2610|       |            }
 2611|   298k|            else {
 2612|       |               if constexpr (uindex > 0) {
 2613|       |                  if (size_t(end - it) <= uindex) [[unlikely]] {
 2614|       |                     return N; // error
 2615|       |                  }
 2616|       |               }
 2617|   298k|               return HashInfo.table[uint8_t(it[uindex])];
 2618|   298k|            }
 2619|   298k|         }
 2620|   298k|      }

_ZN3glz3getILm0ETkNS_12tuple_detail9indexableERKNS_5tupleIJMN12jsonrpc_fuzz10member_apiEiMS4_FiiEMS4_FvvEMS4_FNS3_5pointERKSA_EEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableERKNS_5tupleIJMN12jsonrpc_fuzz10member_apiEiMS4_FiiEMS4_FvvEMS4_FNS3_5pointERKSA_EEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm2ETkNS_12tuple_detail9indexableERKNS_5tupleIJMN12jsonrpc_fuzz10member_apiEiMS4_FiiEMS4_FvvEMS4_FNS3_5pointERKSA_EEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm3ETkNS_12tuple_detail9indexableERKNS_5tupleIJMN12jsonrpc_fuzz10member_apiEiMS4_FiiEMS4_FvvEMS4_FNS3_5pointERKSA_EEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableENS_5tupleIJRdS3_EEEEEDcOT0_:
  116|  5.70k|   {
  117|  5.70k|      using D = std::remove_cvref_t<Tup>;
  118|  5.70k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  5.70k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  5.70k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  5.70k|         else {
  128|  5.70k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  5.70k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  5.70k|   }
_ZN3glz3tieIJddEEENS_5tupleIJDpRT_EEES4_:
  325|  87.7k|   {
  326|  87.7k|      return {{{ts}...}};
  327|  87.7k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableENS_5tupleIJRdS3_EEEEEDcOT0_:
  116|  1.24k|   {
  117|  1.24k|      using D = std::remove_cvref_t<Tup>;
  118|  1.24k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  1.24k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  1.24k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  1.24k|         else {
  128|  1.24k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  1.24k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  1.24k|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableERNS_5tupleIJRdS3_EEEEEDcOT0_:
  116|  80.8k|   {
  117|  80.8k|      using D = std::remove_cvref_t<Tup>;
  118|  80.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.8k|         using T = typename D::template type_at<I>;
  121|  80.8k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.8k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableERNS_5tupleIJRdS3_EEEEEDcOT0_:
  116|  80.8k|   {
  117|  80.8k|      using D = std::remove_cvref_t<Tup>;
  118|  80.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.8k|         using T = typename D::template type_at<I>;
  121|  80.8k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.8k|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  26.0k|   {
  117|  26.0k|      using D = std::remove_cvref_t<Tup>;
  118|  26.0k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  26.0k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  26.0k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  26.0k|         else {
  128|  26.0k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  26.0k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  26.0k|   }
_ZN3glz3tieIJiNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz5pointENS8_6nestedENS1_6vectorIiNS5_IiEEEENS1_3mapIS7_iNS1_4lessIS7_EENS5_INS1_4pairIKS7_iEEEEEENS1_8optionalIdEENS1_7variantIJS7_NS8_6amountEEEENS1_8functionIFiiEEENSR_IFS7_RSI_EEENSR_IFS9_RKS9_EEENSR_IFdRNSB_IdNS5_IdEEEEEEENSR_IFvvEEEEEENS_5tupleIJDpRT_EEES1B_:
  325|   121k|   {
  326|   121k|      return {{{ts}...}};
  327|   121k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|     52|   {
  117|     52|      using D = std::remove_cvref_t<Tup>;
  118|     52|      if constexpr (tuple_detail::is_tuple<D>) {
  119|     52|         static_assert(I < D::N, "glz::get index is out of range");
  120|     52|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|     52|         else {
  128|     52|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|     52|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|     52|   }
_ZN3glz3getILm2ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    878|   {
  117|    878|      using D = std::remove_cvref_t<Tup>;
  118|    878|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    878|         static_assert(I < D::N, "glz::get index is out of range");
  120|    878|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|    878|         else {
  128|    878|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    878|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    878|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEEEDcOT0_:
  116|  16.1k|   {
  117|  16.1k|      using D = std::remove_cvref_t<Tup>;
  118|  16.1k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  16.1k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  16.1k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  16.1k|         else {
  128|  16.1k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  16.1k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  16.1k|   }
_ZN3glz3tieIJiNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEENS_5tupleIJDpRT_EEESB_:
  325|  97.2k|   {
  326|  97.2k|      return {{{ts}...}};
  327|  97.2k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEEEDcOT0_:
  116|    696|   {
  117|    696|      using D = std::remove_cvref_t<Tup>;
  118|    696|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    696|         static_assert(I < D::N, "glz::get index is out of range");
  120|    696|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|    696|         else {
  128|    696|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    696|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    696|   }
_ZN3glz3getILm3ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    756|   {
  117|    756|      using D = std::remove_cvref_t<Tup>;
  118|    756|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    756|         static_assert(I < D::N, "glz::get index is out of range");
  120|    756|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|    756|         else {
  128|    756|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    756|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    756|   }
_ZN3glz3getILm4ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  7.77k|   {
  117|  7.77k|      using D = std::remove_cvref_t<Tup>;
  118|  7.77k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  7.77k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  7.77k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  7.77k|         else {
  128|  7.77k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  7.77k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  7.77k|   }
_ZN3glz3getILm5ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  1.27k|   {
  117|  1.27k|      using D = std::remove_cvref_t<Tup>;
  118|  1.27k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  1.27k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  1.27k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  1.27k|         else {
  128|  1.27k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  1.27k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  1.27k|   }
_ZN3glz3getILm6ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  1.37k|   {
  117|  1.37k|      using D = std::remove_cvref_t<Tup>;
  118|  1.37k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  1.37k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  1.37k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  1.37k|         else {
  128|  1.37k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  1.37k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  1.37k|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableENS_5tupleIJRdEEEEEDcOT0_:
  116|    300|   {
  117|    300|      using D = std::remove_cvref_t<Tup>;
  118|    300|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    300|         static_assert(I < D::N, "glz::get index is out of range");
  120|    300|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|    300|         else {
  128|    300|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    300|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    300|   }
_ZN3glz3tieIJdEEENS_5tupleIJDpRT_EEES4_:
  325|    300|   {
  326|    300|      return {{{ts}...}};
  327|    300|   }
_ZN3glz3getILm7ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  1.78k|   {
  117|  1.78k|      using D = std::remove_cvref_t<Tup>;
  118|  1.78k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  1.78k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  1.78k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  1.78k|         else {
  128|  1.78k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  1.78k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  1.78k|   }
_ZN3glz3getILm8ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    310|   {
  117|    310|      using D = std::remove_cvref_t<Tup>;
  118|    310|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    310|         static_assert(I < D::N, "glz::get index is out of range");
  120|    310|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|    310|         else {
  128|    310|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    310|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    310|   }
_ZN3glz3getILm9ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    404|   {
  117|    404|      using D = std::remove_cvref_t<Tup>;
  118|    404|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    404|         static_assert(I < D::N, "glz::get index is out of range");
  120|    404|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|    404|         else {
  128|    404|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    404|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    404|   }
_ZN3glz3getILm10ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    354|   {
  117|    354|      using D = std::remove_cvref_t<Tup>;
  118|    354|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    354|         static_assert(I < D::N, "glz::get index is out of range");
  120|    354|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|    354|         else {
  128|    354|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    354|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    354|   }
_ZN3glz3getILm11ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    294|   {
  117|    294|      using D = std::remove_cvref_t<Tup>;
  118|    294|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    294|         static_assert(I < D::N, "glz::get index is out of range");
  120|    294|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|    294|         else {
  128|    294|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    294|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    294|   }
_ZN3glz3getILm12ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    189|   {
  117|    189|      using D = std::remove_cvref_t<Tup>;
  118|    189|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    189|         static_assert(I < D::N, "glz::get index is out of range");
  120|    189|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|    189|         else {
  128|    189|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    189|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    189|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm2ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEEEDcOT0_:
  116|  80.4k|   {
  117|  80.4k|      using D = std::remove_cvref_t<Tup>;
  118|  80.4k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.4k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.4k|         using T = typename D::template type_at<I>;
  121|  80.4k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.4k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.4k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.4k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEEEDcOT0_:
  116|  80.4k|   {
  117|  80.4k|      using D = std::remove_cvref_t<Tup>;
  118|  80.4k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.4k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.4k|         using T = typename D::template type_at<I>;
  121|  80.4k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.4k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.4k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.4k|   }
_ZN3glz3getILm3ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm4ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm5ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm6ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm7ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm8ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm9ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm10ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm11ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm12ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  80.3k|   {
  117|  80.3k|      using D = std::remove_cvref_t<Tup>;
  118|  80.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.3k|         using T = typename D::template type_at<I>;
  121|  80.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  80.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.3k|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableERKNS_5tupleIJMNS_3rpc18request_envelope_tENSt3__18optionalINS5_17basic_string_viewIcNS5_11char_traitsIcEEEEEESC_MS4_NS_14basic_raw_jsonISA_EEMS4_NS5_7variantIJDnSA_lEEEEEEEEDcOT0_:
  116|  73.0k|   {
  117|  73.0k|      using D = std::remove_cvref_t<Tup>;
  118|  73.0k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  73.0k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  73.0k|         using T = typename D::template type_at<I>;
  121|  73.0k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  73.0k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  73.0k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  73.0k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableERKNS_5tupleIJMNS_3rpc18request_envelope_tENSt3__18optionalINS5_17basic_string_viewIcNS5_11char_traitsIcEEEEEESC_MS4_NS_14basic_raw_jsonISA_EEMS4_NS5_7variantIJDnSA_lEEEEEEEEDcOT0_:
  116|  64.8k|   {
  117|  64.8k|      using D = std::remove_cvref_t<Tup>;
  118|  64.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  64.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  64.8k|         using T = typename D::template type_at<I>;
  121|  64.8k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  64.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  64.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  64.8k|   }
_ZN3glz3getILm2ETkNS_12tuple_detail9indexableERKNS_5tupleIJMNS_3rpc18request_envelope_tENSt3__18optionalINS5_17basic_string_viewIcNS5_11char_traitsIcEEEEEESC_MS4_NS_14basic_raw_jsonISA_EEMS4_NS5_7variantIJDnSA_lEEEEEEEEDcOT0_:
  116|  46.3k|   {
  117|  46.3k|      using D = std::remove_cvref_t<Tup>;
  118|  46.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  46.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  46.3k|         using T = typename D::template type_at<I>;
  121|  46.3k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  46.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  46.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  46.3k|   }
_ZN3glz3getILm3ETkNS_12tuple_detail9indexableERKNS_5tupleIJMNS_3rpc18request_envelope_tENSt3__18optionalINS5_17basic_string_viewIcNS5_11char_traitsIcEEEEEESC_MS4_NS_14basic_raw_jsonISA_EEMS4_NS5_7variantIJDnSA_lEEEEEEEEDcOT0_:
  116|  78.7k|   {
  117|  78.7k|      using D = std::remove_cvref_t<Tup>;
  118|  78.7k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  78.7k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  78.7k|         using T = typename D::template type_at<I>;
  121|  78.7k|         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|  78.7k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  78.7k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  78.7k|   }

_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS2_8expectedIS8_NS_9error_ctxEEEOSB_:
  101|  45.3k|   {
  102|  45.3k|      std::string buffer{};
  103|  45.3k|      context ctx{};
  104|  45.3k|      const auto res = write<Opts>(std::forward<T>(value), buffer, ctx);
  105|  45.3k|      if (res) [[unlikely]] {
  ------------------
  |  Branch (105:11): [True: 0, False: 45.3k]
  ------------------
  106|      0|         return glz::unexpected(res);
  107|      0|      }
  108|  45.3k|      return {buffer};
  109|  45.3k|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_13output_bufferES8_TkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSD_RT1_OT2_:
   18|  45.3k|   {
   19|  45.3k|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|  45.3k|      call_scope scope{ctx};
   21|       |
   22|  45.3k|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|  45.3k|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 45.3k, False: 0]
  ------------------
   25|  45.3k|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|  45.3k|         }
   27|  45.3k|      }
   28|  45.3k|      size_t ix = 0; // overwrite index
   29|  45.3k|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|  45.3k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 45.3k]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|  45.3k|      traits::finalize(buffer, ix);
   43|  45.3k|      return {ix, error_code::none, ctx.custom_error_message};
   44|  45.3k|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__17variantIJDnNS2_17basic_string_viewIcNS2_11char_traitsIcEEEElEEEQ15write_supportedIT0_XdtT_6formatEEEENS2_8expectedINS2_12basic_stringIcS6_NS2_9allocatorIcEEEENS_9error_ctxEEEOSA_:
  101|  44.3k|   {
  102|  44.3k|      std::string buffer{};
  103|  44.3k|      context ctx{};
  104|  44.3k|      const auto res = write<Opts>(std::forward<T>(value), buffer, ctx);
  105|  44.3k|      if (res) [[unlikely]] {
  ------------------
  |  Branch (105:11): [True: 0, False: 44.3k]
  ------------------
  106|      0|         return glz::unexpected(res);
  107|      0|      }
  108|  44.3k|      return {buffer};
  109|  44.3k|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__17variantIJDnNS2_17basic_string_viewIcNS2_11char_traitsIcEEEElEEETkNS_13output_bufferENS2_12basic_stringIcS6_NS2_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSG_RT1_OT2_:
   18|  44.3k|   {
   19|  44.3k|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|  44.3k|      call_scope scope{ctx};
   21|       |
   22|  44.3k|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|  44.3k|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 44.3k, False: 0]
  ------------------
   25|  44.3k|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|  44.3k|         }
   27|  44.3k|      }
   28|  44.3k|      size_t ix = 0; // overwrite index
   29|  44.3k|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|  44.3k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 44.3k]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|  44.3k|      traits::finalize(buffer, ix);
   43|  44.3k|      return {ix, error_code::none, ctx.custom_error_message};
   44|  44.3k|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERiTkNS_13output_bufferENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSA_RT1_:
   93|    440|   {
   94|    440|      context ctx{};
   95|    440|      return write<Opts>(std::forward<T>(value), buffer, ctx);
   96|    440|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERiTkNS_13output_bufferENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSC_RT1_OT2_:
   18|    440|   {
   19|    440|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|    440|      call_scope scope{ctx};
   21|       |
   22|    440|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|    440|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 440, False: 0]
  ------------------
   25|    440|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|    440|         }
   27|    440|      }
   28|    440|      size_t ix = 0; // overwrite index
   29|    440|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|    440|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 440]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|    440|      traits::finalize(buffer, ix);
   43|    440|      return {ix, error_code::none, ctx.custom_error_message};
   44|    440|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEiTkNS_13output_bufferENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOS9_RT1_:
   93|    293|   {
   94|    293|      context ctx{};
   95|    293|      return write<Opts>(std::forward<T>(value), buffer, ctx);
   96|    293|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEiTkNS_13output_bufferENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSB_RT1_OT2_:
   18|    293|   {
   19|    293|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|    293|      call_scope scope{ctx};
   21|       |
   22|    293|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|    293|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 293, False: 0]
  ------------------
   25|    293|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|    293|         }
   27|    293|      }
   28|    293|      size_t ix = 0; // overwrite index
   29|    293|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|    293|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 293]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|    293|      traits::finalize(buffer, ix);
   43|    293|      return {ix, error_code::none, ctx.custom_error_message};
   44|    293|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointETkNS_13output_bufferENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSB_RT1_:
   93|    139|   {
   94|    139|      context ctx{};
   95|    139|      return write<Opts>(std::forward<T>(value), buffer, ctx);
   96|    139|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointETkNS_13output_bufferENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSD_RT1_OT2_:
   18|    139|   {
   19|    139|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|    139|      call_scope scope{ctx};
   21|       |
   22|    139|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|    139|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 139, False: 0]
  ------------------
   25|    139|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|    139|         }
   27|    139|      }
   28|    139|      size_t ix = 0; // overwrite index
   29|    139|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|    139|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 139]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|    139|      traits::finalize(buffer, ix);
   43|    139|      return {ix, error_code::none, ctx.custom_error_message};
   44|    139|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz8fuzz_apiETkNS_13output_bufferENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSC_RT1_:
   93|     70|   {
   94|     70|      context ctx{};
   95|     70|      return write<Opts>(std::forward<T>(value), buffer, ctx);
   96|     70|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz8fuzz_apiETkNS_13output_bufferENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSE_RT1_OT2_:
   18|     70|   {
   19|     70|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     70|      call_scope scope{ctx};
   21|       |
   22|     70|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     70|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 70, False: 0]
  ------------------
   25|     70|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     70|         }
   27|     70|      }
   28|     70|      size_t ix = 0; // overwrite index
   29|     70|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     70|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 70]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     70|      traits::finalize(buffer, ix);
   43|     70|      return {ix, error_code::none, ctx.custom_error_message};
   44|     70|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_13output_bufferES8_Q15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSA_RT1_:
   93|    718|   {
   94|    718|      context ctx{};
   95|    718|      return write<Opts>(std::forward<T>(value), buffer, ctx);
   96|    718|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_13output_bufferES8_TkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSC_RT1_OT2_:
   18|    718|   {
   19|    718|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|    718|      call_scope scope{ctx};
   21|       |
   22|    718|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|    718|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 718, False: 0]
  ------------------
   25|    718|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|    718|         }
   27|    718|      }
   28|    718|      size_t ix = 0; // overwrite index
   29|    718|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|    718|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 718]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|    718|      traits::finalize(buffer, ix);
   43|    718|      return {ix, error_code::none, ctx.custom_error_message};
   44|    718|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERdTkNS_13output_bufferENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSA_RT1_:
   93|  1.89k|   {
   94|  1.89k|      context ctx{};
   95|  1.89k|      return write<Opts>(std::forward<T>(value), buffer, ctx);
   96|  1.89k|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERdTkNS_13output_bufferENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSC_RT1_OT2_:
   18|  1.89k|   {
   19|  1.89k|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|  1.89k|      call_scope scope{ctx};
   21|       |
   22|  1.89k|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|  1.89k|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 1.89k, False: 0]
  ------------------
   25|  1.89k|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|  1.89k|         }
   27|  1.89k|      }
   28|  1.89k|      size_t ix = 0; // overwrite index
   29|  1.89k|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|  1.89k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 1.89k]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|  1.89k|      traits::finalize(buffer, ix);
   43|  1.89k|      return {ix, error_code::none, ctx.custom_error_message};
   44|  1.89k|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz5pointETkNS_13output_bufferENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSC_RT1_:
   93|    285|   {
   94|    285|      context ctx{};
   95|    285|      return write<Opts>(std::forward<T>(value), buffer, ctx);
   96|    285|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz5pointETkNS_13output_bufferENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSE_RT1_OT2_:
   18|    285|   {
   19|    285|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|    285|      call_scope scope{ctx};
   21|       |
   22|    285|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|    285|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 285, False: 0]
  ------------------
   25|    285|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|    285|         }
   27|    285|      }
   28|    285|      size_t ix = 0; // overwrite index
   29|    285|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|    285|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 285]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|    285|      traits::finalize(buffer, ix);
   43|    285|      return {ix, error_code::none, ctx.custom_error_message};
   44|    285|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz6nestedETkNS_13output_bufferENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSC_RT1_:
   93|     46|   {
   94|     46|      context ctx{};
   95|     46|      return write<Opts>(std::forward<T>(value), buffer, ctx);
   96|     46|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz6nestedETkNS_13output_bufferENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSE_RT1_OT2_:
   18|     46|   {
   19|     46|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     46|      call_scope scope{ctx};
   21|       |
   22|     46|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     46|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 46, False: 0]
  ------------------
   25|     46|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     46|         }
   27|     46|      }
   28|     46|      size_t ix = 0; // overwrite index
   29|     46|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     46|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 46]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     46|      traits::finalize(buffer, ix);
   43|     46|      return {ix, error_code::none, ctx.custom_error_message};
   44|     46|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIiNS2_9allocatorIiEEEETkNS_13output_bufferENS2_12basic_stringIcNS2_11char_traitsIcEENS4_IcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSD_RT1_:
   93|     79|   {
   94|     79|      context ctx{};
   95|     79|      return write<Opts>(std::forward<T>(value), buffer, ctx);
   96|     79|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIiNS2_9allocatorIiEEEETkNS_13output_bufferENS2_12basic_stringIcNS2_11char_traitsIcEENS4_IcEEEETkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSF_RT1_OT2_:
   18|     79|   {
   19|     79|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     79|      call_scope scope{ctx};
   21|       |
   22|     79|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     79|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 79, False: 0]
  ------------------
   25|     79|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     79|         }
   27|     79|      }
   28|     79|      size_t ix = 0; // overwrite index
   29|     79|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     79|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 79]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     79|      traits::finalize(buffer, ix);
   43|     79|      return {ix, error_code::none, ctx.custom_error_message};
   44|     79|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__13mapINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEiNS2_4lessIS9_EENS7_INS2_4pairIKS9_iEEEEEETkNS_13output_bufferES9_Q15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSI_RT1_:
   93|     64|   {
   94|     64|      context ctx{};
   95|     64|      return write<Opts>(std::forward<T>(value), buffer, ctx);
   96|     64|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__13mapINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEiNS2_4lessIS9_EENS7_INS2_4pairIKS9_iEEEEEETkNS_13output_bufferES9_TkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSK_RT1_OT2_:
   18|     64|   {
   19|     64|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     64|      call_scope scope{ctx};
   21|       |
   22|     64|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     64|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 64, False: 0]
  ------------------
   25|     64|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     64|         }
   27|     64|      }
   28|     64|      size_t ix = 0; // overwrite index
   29|     64|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     64|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 64]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     64|      traits::finalize(buffer, ix);
   43|     64|      return {ix, error_code::none, ctx.custom_error_message};
   44|     64|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__18optionalIdEETkNS_13output_bufferENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSC_RT1_:
   93|     66|   {
   94|     66|      context ctx{};
   95|     66|      return write<Opts>(std::forward<T>(value), buffer, ctx);
   96|     66|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__18optionalIdEETkNS_13output_bufferENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSE_RT1_OT2_:
   18|     66|   {
   19|     66|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     66|      call_scope scope{ctx};
   21|       |
   22|     66|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     66|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 66, False: 0]
  ------------------
   25|     66|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     66|         }
   27|     66|      }
   28|     66|      size_t ix = 0; // overwrite index
   29|     66|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     66|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 66]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     66|      traits::finalize(buffer, ix);
   43|     66|      return {ix, error_code::none, ctx.custom_error_message};
   44|     66|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__17variantIJNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS_13output_bufferES9_Q15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSE_RT1_:
   93|     57|   {
   94|     57|      context ctx{};
   95|     57|      return write<Opts>(std::forward<T>(value), buffer, ctx);
   96|     57|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__17variantIJNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS_13output_bufferES9_TkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSG_RT1_OT2_:
   18|     57|   {
   19|     57|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     57|      call_scope scope{ctx};
   21|       |
   22|     57|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     57|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 57, False: 0]
  ------------------
   25|     57|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     57|         }
   27|     57|      }
   28|     57|      size_t ix = 0; // overwrite index
   29|     57|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     57|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 57]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     57|      traits::finalize(buffer, ix);
   43|     57|      return {ix, error_code::none, ctx.custom_error_message};
   44|     57|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS2_8expectedIS8_NS_9error_ctxEEEOS9_:
  101|  4.10M|   {
  102|  4.10M|      std::string buffer{};
  103|  4.10M|      context ctx{};
  104|  4.10M|      const auto res = write<Opts>(std::forward<T>(value), buffer, ctx);
  105|  4.10M|      if (res) [[unlikely]] {
  ------------------
  |  Branch (105:11): [True: 0, False: 4.10M]
  ------------------
  106|      0|         return glz::unexpected(res);
  107|      0|      }
  108|  4.10M|      return {buffer};
  109|  4.10M|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_13output_bufferES8_TkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSB_RT1_OT2_:
   18|  4.10M|   {
   19|  4.10M|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|  4.10M|      call_scope scope{ctx};
   21|       |
   22|  4.10M|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|  4.10M|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 4.10M, False: 0]
  ------------------
   25|  4.10M|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|  4.10M|         }
   27|  4.10M|      }
   28|  4.10M|      size_t ix = 0; // overwrite index
   29|  4.10M|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|  4.10M|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 4.10M]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|  4.10M|      traits::finalize(buffer, ix);
   43|  4.10M|      return {ix, error_code::none, ctx.custom_error_message};
   44|  4.10M|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS2_8expectedINS2_12basic_stringIcS5_NS2_9allocatorIcEEEENS_9error_ctxEEEOS9_:
  101|     67|   {
  102|     67|      std::string buffer{};
  103|     67|      context ctx{};
  104|     67|      const auto res = write<Opts>(std::forward<T>(value), buffer, ctx);
  105|     67|      if (res) [[unlikely]] {
  ------------------
  |  Branch (105:11): [True: 0, False: 67]
  ------------------
  106|      0|         return glz::unexpected(res);
  107|      0|      }
  108|     67|      return {buffer};
  109|     67|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEETkNS_13output_bufferENS2_12basic_stringIcS5_NS2_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSF_RT1_OT2_:
   18|     67|   {
   19|     67|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     67|      call_scope scope{ctx};
   21|       |
   22|     67|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     67|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 67, False: 0]
  ------------------
   25|     67|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     67|         }
   27|     67|      }
   28|     67|      size_t ix = 0; // overwrite index
   29|     67|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     67|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 67]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     67|      traits::finalize(buffer, ix);
   43|     67|      return {ix, error_code::none, ctx.custom_error_message};
   44|     67|   }

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

_ZN3glz9sweethash7sweet32ITkNS0_16contiguous_rangeENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEEjRKT_j:
  270|    840|   {
  271|    840|      return sweet32(static_cast<const void*>(s.data()), s.size(), seed);
  272|    840|   }
_ZN3glz9sweethash7sweet32EPKvmj:
  154|    840|   {
  155|    840|      const uint8_t* p = static_cast<const uint8_t*>(data);
  156|       |
  157|       |      // For inputs <= 8 bytes, use simple hash (tail handler requires len >= 9)
  158|    840|      if (len <= 8) {
  ------------------
  |  Branch (158:11): [True: 840, False: 0]
  ------------------
  159|    840|         uint64_t v = 0;
  160|    840|         switch (len) {
  161|    140|         case 8:
  ------------------
  |  Branch (161:10): [True: 140, False: 700]
  ------------------
  162|    140|            std::memcpy(&v, p, 8);
  163|    140|            break;
  164|    140|         case 7:
  ------------------
  |  Branch (164:10): [True: 140, False: 700]
  ------------------
  165|    140|            std::memcpy(&v, p, 7);
  166|    140|            break;
  167|     70|         case 6:
  ------------------
  |  Branch (167:10): [True: 70, False: 770]
  ------------------
  168|     70|            std::memcpy(&v, p, 6);
  169|     70|            break;
  170|    420|         case 5:
  ------------------
  |  Branch (170:10): [True: 420, False: 420]
  ------------------
  171|    420|            std::memcpy(&v, p, 5);
  172|    420|            break;
  173|     70|         case 4:
  ------------------
  |  Branch (173:10): [True: 70, False: 770]
  ------------------
  174|     70|            std::memcpy(&v, p, 4);
  175|     70|            break;
  176|      0|         case 3:
  ------------------
  |  Branch (176:10): [True: 0, False: 840]
  ------------------
  177|      0|            std::memcpy(&v, p, 3);
  178|      0|            break;
  179|      0|         case 2:
  ------------------
  |  Branch (179:10): [True: 0, False: 840]
  ------------------
  180|      0|            std::memcpy(&v, p, 2);
  181|      0|            break;
  182|      0|         case 1:
  ------------------
  |  Branch (182:10): [True: 0, False: 840]
  ------------------
  183|      0|            v = p[0];
  184|      0|            break;
  185|      0|         default:
  ------------------
  |  Branch (185:10): [True: 0, False: 840]
  ------------------
  186|      0|            break;
  187|    840|         }
  188|    840|         v = v ^ seed ^ (len + 1);
  189|    840|         return static_cast<uint32_t>(v) ^ static_cast<uint32_t>(v >> 32);
  190|    840|      }
  191|       |
  192|       |      // Full hash for inputs > 8 bytes
  193|      0|      uint64_t seed64 = (static_cast<uint64_t>(seed) << 32) | static_cast<uint64_t>(seed);
  194|      0|      uint64_t h = (seed64 ^ prime4) + (len * prime1);
  195|      0|      const uint8_t* const end = p + len;
  196|       |
  197|      0|      if (len >= 32) {
  ------------------
  |  Branch (197:11): [True: 0, False: 0]
  ------------------
  198|      0|         uint64_t h1 = h;
  199|      0|         uint64_t h2 = (seed64 * prime2) ^ prime3;
  200|      0|         uint64_t h3 = (seed64 * prime3) ^ prime4;
  201|      0|         uint64_t h4 = (seed64 * prime4) ^ prime5;
  202|       |
  203|      0|         do {
  204|      0|            uint64_t k1, k2, k3, k4;
  205|      0|            std::memcpy(&k1, p, 8);
  206|      0|            std::memcpy(&k2, p + 8, 8);
  207|      0|            std::memcpy(&k3, p + 16, 8);
  208|      0|            std::memcpy(&k4, p + 24, 8);
  209|       |
  210|      0|            k1 = k1 * prime2;
  211|      0|            k1 = k1 ^ (k1 >> 47);
  212|      0|            h1 = h1 ^ k1;
  213|      0|            h1 = h1 * prime1;
  214|       |
  215|      0|            k2 = k2 * prime3;
  216|      0|            k2 = k2 ^ (k2 >> 47);
  217|      0|            h2 = h2 ^ k2;
  218|      0|            h2 = h2 * prime2;
  219|       |
  220|      0|            k3 = k3 * prime4;
  221|      0|            k3 = k3 ^ (k3 >> 47);
  222|      0|            h3 = h3 ^ k3;
  223|      0|            h3 = h3 * prime3;
  224|       |
  225|      0|            k4 = k4 * prime5;
  226|      0|            k4 = k4 ^ (k4 >> 47);
  227|      0|            h4 = h4 ^ k4;
  228|      0|            h4 = h4 * prime4;
  229|       |
  230|      0|            p = p + 32;
  231|      0|            len = len - 32;
  232|      0|         } while (len >= 32);
  ------------------
  |  Branch (232:19): [True: 0, False: 0]
  ------------------
  233|       |
  234|      0|         h = h1 + h2 + h3 + h4;
  235|      0|      }
  236|       |
  237|      0|      while (len >= 8) {
  ------------------
  |  Branch (237:14): [True: 0, False: 0]
  ------------------
  238|      0|         uint64_t k;
  239|      0|         std::memcpy(&k, p, 8);
  240|      0|         k = k * prime2;
  241|      0|         k = k ^ (k >> 47);
  242|      0|         h = h ^ k;
  243|      0|         h = h * prime1;
  244|      0|         p = p + 8;
  245|      0|         len = len - 8;
  246|      0|      }
  247|       |
  248|      0|      if (len > 0) {
  ------------------
  |  Branch (248:11): [True: 0, False: 0]
  ------------------
  249|      0|         uint64_t k;
  250|      0|         std::memcpy(&k, end - 8, 8);
  251|      0|         k = k * prime2;
  252|      0|         k = k ^ (k >> 47);
  253|      0|         k = k * prime3;
  254|      0|         h = h ^ k;
  255|      0|      }
  256|       |
  257|      0|      h = mix64(h);
  258|      0|      return static_cast<uint32_t>(h) ^ static_cast<uint32_t>(h >> 32);
  259|    840|   }

_ZN3glz12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEC2Ev:
  379|  2.21M|      generic_json() = default;
_ZN3glz12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEC2EOS3_:
  382|  2.24M|      generic_json(generic_json&& other) noexcept : data(std::move(other.data)) {}
_ZN3glz12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEED2Ev:
  131|  4.45M|      ~generic_json() = default;

_ZN3glz11get_as_jsonINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEETnNS_14string_literalEXtlNS8_ILm4EEEtlA4_cLc47ELc105ELc100EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERS6_EENS1_8expectedIT_NS_9error_ctxEEEOT2_:
  224|  62.2k|   {
  225|       |      // The located value is a span of the caller's buffer, so it is read with the options that
  226|       |      // buffer allows (see parse_opts_for) rather than with what a span alone would be taken to promise.
  227|  62.2k|      static constexpr auto Opts = parse_opts_for<Options, decltype(buffer)>();
  228|  62.2k|      const auto str = glz::get_view_json<Str, Opts>(buffer);
  229|  62.2k|      if (str) {
  ------------------
  |  Branch (229:11): [True: 20.3k, False: 41.9k]
  ------------------
  230|  20.3k|         T value{};
  231|  20.3k|         context ctx{};
  232|  20.3k|         if (const auto ec = glz::read<Opts>(value, *str, ctx); ec) {
  ------------------
  |  Branch (232:65): [True: 14.8k, False: 5.48k]
  ------------------
  233|  14.8k|            return unexpected(ec);
  234|  14.8k|         }
  235|  5.48k|         return value;
  236|  20.3k|      }
  237|  41.9k|      return unexpected(str.error());
  238|  62.2k|   }
_ZN3glz13get_view_jsonITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc47ELc105ELc100EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERNSt3__117basic_string_viewIcNS5_11char_traitsIcEEEEEEDaOT1_:
   23|  62.2k|   {
   24|  62.2k|      static constexpr auto S = chars<JsonPointer>;
   25|  62.2k|      static constexpr auto tokens = split_json_ptr<S>();
   26|  62.2k|      static constexpr auto N = tokens.size();
   27|       |
   28|       |      // The buffer decides whether the terminator `null_terminated` asserts can be relied on, the
   29|       |      // same way it does for glz::read (see parse_opts_for): a std::vector<char> keeps none, so the
   30|       |      // seek below runs with bounds over one rather than scanning for a sentinel past its end.
   31|  62.2k|      static constexpr auto Opts = parse_opts_for<Options, decltype(buffer)>();
   32|       |
   33|  62.2k|      context ctx{};
   34|  62.2k|      auto p = read_iterators<Opts>(buffer);
   35|       |
   36|  62.2k|      auto it = p.first;
   37|  62.2k|      auto end = p.second;
   38|       |
   39|       |      // Don't automatically const qualify the buffer so we can write to the view,
   40|       |      // which allows us to write to a JSON Pointer location
   41|  62.2k|      using span_t =
   42|  62.2k|         std::span<std::conditional_t<std::is_const_v<std::remove_pointer_t<decltype(it)>>, const char, char>>;
   43|  62.2k|      using result_t = expected<span_t, error_ctx>;
   44|       |
   45|  62.2k|      auto start = it;
   46|       |
   47|  62.2k|      if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (47:11): [True: 0, False: 62.2k]
  ------------------
   48|      0|         ctx.error = error_code::no_read_input;
   49|      0|      }
   50|       |
   51|  62.2k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (51:11): [True: 0, False: 62.2k]
  ------------------
   52|      0|         return result_t{unexpected(error_ctx{0, ctx.error})};
   53|      0|      }
   54|       |
   55|       |      if constexpr (N == 0) {
   56|       |         return result_t{span_t{it, end}};
   57|       |      }
   58|  62.2k|      else {
   59|  62.2k|         using namespace glz::detail;
   60|       |
   61|  62.2k|         skip_ws<Opts>(ctx, it, end);
   62|       |
   63|  62.2k|         result_t ret;
   64|       |
   65|  62.2k|         for_each<N>([&]<size_t I>() {
   66|  62.2k|            if (bool(ctx.error)) [[unlikely]] {
   67|  62.2k|               return;
   68|  62.2k|            }
   69|       |
   70|  62.2k|            static constexpr auto key = tokens[I];
   71|  62.2k|            if constexpr (maybe_numeric_key(key)) {
   72|  62.2k|               if (it >= end) [[unlikely]] {
   73|  62.2k|                  ctx.error = error_code::unexpected_end;
   74|  62.2k|                  return;
   75|  62.2k|               }
   76|  62.2k|               switch (*it) {
   77|  62.2k|               case '{': {
   78|  62.2k|                  ++it;
   79|  62.2k|                  while (true) {
   80|  62.2k|                     if (skip_ws<Opts>(ctx, it, end)) {
   81|  62.2k|                        return;
   82|  62.2k|                     }
   83|  62.2k|                     if (match<'"'>(ctx, it)) {
   84|  62.2k|                        return;
   85|  62.2k|                     }
   86|       |
   87|  62.2k|                     auto* start = it;
   88|  62.2k|                     skip_string_view(ctx, it, end);
   89|  62.2k|                     if (bool(ctx.error)) [[unlikely]]
   90|  62.2k|                        return;
   91|  62.2k|                     const sv k = {start, size_t(it - start)};
   92|  62.2k|                     ++it;
   93|       |
   94|  62.2k|                     if (key.size() == k.size() && comparitor<key>(k.data())) {
   95|  62.2k|                        if (skip_ws<Opts>(ctx, it, end)) {
   96|  62.2k|                           return;
   97|  62.2k|                        }
   98|  62.2k|                        if (match_invalid_end<':', Opts>(ctx, it, end)) {
   99|  62.2k|                           return;
  100|  62.2k|                        }
  101|  62.2k|                        if (skip_ws<Opts>(ctx, it, end)) {
  102|  62.2k|                           return;
  103|  62.2k|                        }
  104|       |
  105|  62.2k|                        if constexpr (I == (N - 1)) {
  106|  62.2k|                           ret = parse_value<Opts>(ctx, it, end);
  107|  62.2k|                        }
  108|  62.2k|                        return;
  109|  62.2k|                     }
  110|  62.2k|                     else {
  111|  62.2k|                        skip_value<JSON>::op<Opts>(ctx, it, end);
  112|  62.2k|                        if (bool(ctx.error)) [[unlikely]] {
  113|  62.2k|                           return;
  114|  62.2k|                        }
  115|  62.2k|                        if (it >= end || *it != ',') {
  116|  62.2k|                           ctx.error = it >= end ? error_code::unexpected_end : error_code::key_not_found;
  117|  62.2k|                           return;
  118|  62.2k|                        }
  119|  62.2k|                        ++it;
  120|  62.2k|                     }
  121|  62.2k|                  }
  122|  62.2k|               }
  123|  62.2k|               case '[': {
  124|  62.2k|                  ++it;
  125|       |                  // Could optimize by counting commas
  126|  62.2k|                  static constexpr auto n = detail::parse_json_ptr_array_index(key);
  127|  62.2k|                  if constexpr (n) {
  128|  62.2k|                     for_each<n.value()>([&]<size_t>() {
  129|  62.2k|                        skip_value<JSON>::op<Opts>(ctx, it, end);
  130|  62.2k|                        if (bool(ctx.error)) [[unlikely]] {
  131|  62.2k|                           return;
  132|  62.2k|                        }
  133|  62.2k|                        if (it >= end || *it != ',') {
  134|  62.2k|                           ctx.error = it >= end ? error_code::unexpected_end : error_code::array_element_not_found;
  135|  62.2k|                           return;
  136|  62.2k|                        }
  137|  62.2k|                        ++it;
  138|  62.2k|                     });
  139|       |
  140|  62.2k|                     if (skip_ws<Opts>(ctx, it, end)) {
  141|  62.2k|                        return;
  142|  62.2k|                     }
  143|       |
  144|  62.2k|                     if constexpr (I == (N - 1)) {
  145|  62.2k|                        ret = parse_value<Opts>(ctx, it, end);
  146|  62.2k|                     }
  147|  62.2k|                     return;
  148|  62.2k|                  }
  149|  62.2k|                  else {
  150|  62.2k|                     ctx.error = error_code::array_element_not_found;
  151|  62.2k|                     return;
  152|  62.2k|                  }
  153|  62.2k|               }
  154|  62.2k|               default: {
  155|       |                  // A scalar has no members or elements to index into
  156|  62.2k|                  ctx.error = error_code::syntax_error;
  157|  62.2k|                  return;
  158|  62.2k|               }
  159|  62.2k|               }
  160|  62.2k|            }
  161|  62.2k|            else {
  162|  62.2k|               if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  163|  62.2k|                  return;
  164|  62.2k|               }
  165|       |
  166|  62.2k|               while (it < end) {
  167|  62.2k|                  if (skip_ws<Opts>(ctx, it, end)) {
  168|  62.2k|                     return;
  169|  62.2k|                  }
  170|  62.2k|                  if (match<'"'>(ctx, it)) {
  171|  62.2k|                     return;
  172|  62.2k|                  }
  173|       |
  174|  62.2k|                  auto* start = it;
  175|  62.2k|                  skip_string_view(ctx, it, end);
  176|  62.2k|                  if (bool(ctx.error)) [[unlikely]]
  177|  62.2k|                     return;
  178|  62.2k|                  const sv k = {start, size_t(it - start)};
  179|  62.2k|                  ++it;
  180|       |
  181|  62.2k|                  if (key.size() == k.size() && comparitor<key>(k.data())) {
  182|  62.2k|                     if (skip_ws<Opts>(ctx, it, end)) {
  183|  62.2k|                        return;
  184|  62.2k|                     }
  185|  62.2k|                     if (match_invalid_end<':', Opts>(ctx, it, end)) {
  186|  62.2k|                        return;
  187|  62.2k|                     }
  188|  62.2k|                     if (skip_ws<Opts>(ctx, it, end)) {
  189|  62.2k|                        return;
  190|  62.2k|                     }
  191|       |
  192|  62.2k|                     if constexpr (I == (N - 1)) {
  193|  62.2k|                        ret = parse_value<Opts>(ctx, it, end);
  194|  62.2k|                     }
  195|  62.2k|                     return;
  196|  62.2k|                  }
  197|  62.2k|                  else {
  198|  62.2k|                     skip_value<JSON>::op<Opts>(ctx, it, end);
  199|  62.2k|                     if (bool(ctx.error)) [[unlikely]] {
  200|  62.2k|                        return;
  201|  62.2k|                     }
  202|  62.2k|                     if (it >= end || *it != ',') {
  203|  62.2k|                        ctx.error = it >= end ? error_code::unexpected_end : error_code::key_not_found;
  204|  62.2k|                        return;
  205|  62.2k|                     }
  206|  62.2k|                     ++it;
  207|  62.2k|                  }
  208|  62.2k|               }
  209|       |               // The object ended after a ',' without the key
  210|  62.2k|               ctx.error = error_code::unexpected_end;
  211|  62.2k|            }
  212|  62.2k|         });
  213|       |
  214|  62.2k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (214:14): [True: 41.9k, False: 20.3k]
  ------------------
  215|  41.9k|            return result_t{unexpected(error_ctx{size_t(it - start), ctx.error})};
  216|  41.9k|         }
  217|       |
  218|  20.3k|         return ret;
  219|  62.2k|      }
  220|  62.2k|   }
_ZZN3glz13get_view_jsonITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc47ELc105ELc100EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERNSt3__117basic_string_viewIcNS5_11char_traitsIcEEEEEEDaOT1_ENKUlTnmvE_clILm0EEEDav:
   65|  62.2k|         for_each<N>([&]<size_t I>() {
   66|  62.2k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (66:17): [True: 0, False: 62.2k]
  ------------------
   67|      0|               return;
   68|      0|            }
   69|       |
   70|  62.2k|            static constexpr auto key = tokens[I];
   71|       |            if constexpr (maybe_numeric_key(key)) {
   72|       |               if (it >= end) [[unlikely]] {
   73|       |                  ctx.error = error_code::unexpected_end;
   74|       |                  return;
   75|       |               }
   76|       |               switch (*it) {
   77|       |               case '{': {
   78|       |                  ++it;
   79|       |                  while (true) {
   80|       |                     if (skip_ws<Opts>(ctx, it, end)) {
   81|       |                        return;
   82|       |                     }
   83|       |                     if (match<'"'>(ctx, it)) {
   84|       |                        return;
   85|       |                     }
   86|       |
   87|       |                     auto* start = it;
   88|       |                     skip_string_view(ctx, it, end);
   89|       |                     if (bool(ctx.error)) [[unlikely]]
   90|       |                        return;
   91|       |                     const sv k = {start, size_t(it - start)};
   92|       |                     ++it;
   93|       |
   94|       |                     if (key.size() == k.size() && comparitor<key>(k.data())) {
   95|       |                        if (skip_ws<Opts>(ctx, it, end)) {
   96|       |                           return;
   97|       |                        }
   98|       |                        if (match_invalid_end<':', Opts>(ctx, it, end)) {
   99|       |                           return;
  100|       |                        }
  101|       |                        if (skip_ws<Opts>(ctx, it, end)) {
  102|       |                           return;
  103|       |                        }
  104|       |
  105|       |                        if constexpr (I == (N - 1)) {
  106|       |                           ret = parse_value<Opts>(ctx, it, end);
  107|       |                        }
  108|       |                        return;
  109|       |                     }
  110|       |                     else {
  111|       |                        skip_value<JSON>::op<Opts>(ctx, it, end);
  112|       |                        if (bool(ctx.error)) [[unlikely]] {
  113|       |                           return;
  114|       |                        }
  115|       |                        if (it >= end || *it != ',') {
  116|       |                           ctx.error = it >= end ? error_code::unexpected_end : error_code::key_not_found;
  117|       |                           return;
  118|       |                        }
  119|       |                        ++it;
  120|       |                     }
  121|       |                  }
  122|       |               }
  123|       |               case '[': {
  124|       |                  ++it;
  125|       |                  // Could optimize by counting commas
  126|       |                  static constexpr auto n = detail::parse_json_ptr_array_index(key);
  127|       |                  if constexpr (n) {
  128|       |                     for_each<n.value()>([&]<size_t>() {
  129|       |                        skip_value<JSON>::op<Opts>(ctx, it, end);
  130|       |                        if (bool(ctx.error)) [[unlikely]] {
  131|       |                           return;
  132|       |                        }
  133|       |                        if (it >= end || *it != ',') {
  134|       |                           ctx.error = it >= end ? error_code::unexpected_end : error_code::array_element_not_found;
  135|       |                           return;
  136|       |                        }
  137|       |                        ++it;
  138|       |                     });
  139|       |
  140|       |                     if (skip_ws<Opts>(ctx, it, end)) {
  141|       |                        return;
  142|       |                     }
  143|       |
  144|       |                     if constexpr (I == (N - 1)) {
  145|       |                        ret = parse_value<Opts>(ctx, it, end);
  146|       |                     }
  147|       |                     return;
  148|       |                  }
  149|       |                  else {
  150|       |                     ctx.error = error_code::array_element_not_found;
  151|       |                     return;
  152|       |                  }
  153|       |               }
  154|       |               default: {
  155|       |                  // A scalar has no members or elements to index into
  156|       |                  ctx.error = error_code::syntax_error;
  157|       |                  return;
  158|       |               }
  159|       |               }
  160|       |            }
  161|  62.2k|            else {
  162|  62.2k|               if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (162:20): [True: 34.4k, False: 27.8k]
  ------------------
  163|  34.4k|                  return;
  164|  34.4k|               }
  165|       |
  166|  52.8k|               while (it < end) {
  ------------------
  |  Branch (166:23): [True: 52.8k, False: 0]
  ------------------
  167|  52.8k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (167:23): [True: 0, False: 52.8k]
  ------------------
  168|      0|                     return;
  169|      0|                  }
  170|  52.8k|                  if (match<'"'>(ctx, it)) {
  ------------------
  |  Branch (170:23): [True: 0, False: 52.8k]
  ------------------
  171|      0|                     return;
  172|      0|                  }
  173|       |
  174|  52.8k|                  auto* start = it;
  175|  52.8k|                  skip_string_view(ctx, it, end);
  176|  52.8k|                  if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (176:23): [True: 0, False: 52.8k]
  ------------------
  177|      0|                     return;
  178|  52.8k|                  const sv k = {start, size_t(it - start)};
  179|  52.8k|                  ++it;
  180|       |
  181|  52.8k|                  if (key.size() == k.size() && comparitor<key>(k.data())) {
  ------------------
  |  Branch (181:23): [True: 23.5k, False: 29.2k]
  |  Branch (181:49): [True: 20.3k, False: 3.27k]
  ------------------
  182|  20.3k|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (182:26): [True: 0, False: 20.3k]
  ------------------
  183|      0|                        return;
  184|      0|                     }
  185|  20.3k|                     if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (185:26): [True: 0, False: 20.3k]
  ------------------
  186|      0|                        return;
  187|      0|                     }
  188|  20.3k|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (188:26): [True: 0, False: 20.3k]
  ------------------
  189|      0|                        return;
  190|      0|                     }
  191|       |
  192|  20.3k|                     if constexpr (I == (N - 1)) {
  193|  20.3k|                        ret = parse_value<Opts>(ctx, it, end);
  194|  20.3k|                     }
  195|  20.3k|                     return;
  196|  20.3k|                  }
  197|  32.5k|                  else {
  198|  32.5k|                     skip_value<JSON>::op<Opts>(ctx, it, end);
  199|  32.5k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:26): [True: 0, False: 32.5k]
  ------------------
  200|      0|                        return;
  201|      0|                     }
  202|  32.5k|                     if (it >= end || *it != ',') {
  ------------------
  |  Branch (202:26): [True: 0, False: 32.5k]
  |  Branch (202:39): [True: 7.49k, False: 25.0k]
  ------------------
  203|  7.49k|                        ctx.error = it >= end ? error_code::unexpected_end : error_code::key_not_found;
  ------------------
  |  Branch (203:37): [True: 0, False: 7.49k]
  ------------------
  204|  7.49k|                        return;
  205|  7.49k|                     }
  206|  25.0k|                     ++it;
  207|  25.0k|                  }
  208|  52.8k|               }
  209|       |               // The object ended after a ',' without the key
  210|      0|               ctx.error = error_code::unexpected_end;
  211|      0|            }
  212|  62.2k|         });

_ZN3glz4fromILj10EiE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERPKcRiTkNS_10is_contextERNS_7contextES5_EEvOT1_OT2_OT0_T3_:
  763|   374k|      {
  764|       |         if constexpr (check_quoted_num(Opts)) {
  765|       |            if (skip_ws<Opts>(ctx, it, end)) {
  766|       |               return;
  767|       |            }
  768|       |            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  769|       |               return;
  770|       |            }
  771|       |         }
  772|       |
  773|       |         if constexpr (!check_ws_handled(Opts)) {
  774|       |            if (skip_ws<Opts>(ctx, it, end)) {
  775|       |               return;
  776|       |            }
  777|       |         }
  778|       |
  779|   374k|         using V = std::decay_t<decltype(value)>;
  780|   374k|         if constexpr (int_t<V>) {
  781|   374k|            static_assert(sizeof(*it) == sizeof(char));
  782|       |
  783|       |            if constexpr (Opts.null_terminated) {
  784|       |               if (not glz::atoi(value, it)) [[unlikely]] {
  785|       |                  ctx.error = error_code::parse_number_failure;
  786|       |                  return;
  787|       |               }
  788|       |            }
  789|   374k|            else {
  790|   374k|               if (not glz::atoi(value, it, end)) [[unlikely]] {
  ------------------
  |  Branch (790:20): [True: 4.54k, False: 370k]
  ------------------
  791|  4.54k|                  ctx.error = error_code::parse_number_failure;
  792|  4.54k|                  return;
  793|  4.54k|               }
  794|   374k|            }
  795|       |         }
  796|       |         else {
  797|       |// float128_t requires std::from_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  798|       |#if !defined(_LIBCPP_VERSION) || defined(_LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT)
  799|       |            if constexpr (is_float128<V>) {
  800|       |               auto [ptr, ec] = std::from_chars(it, end, value);
  801|       |               if (ec != std::errc()) {
  802|       |                  ctx.error = error_code::parse_number_failure;
  803|       |                  return;
  804|       |               }
  805|       |               it = ptr;
  806|       |            }
  807|       |            else
  808|       |#endif
  809|       |            {
  810|       |               if constexpr (std::is_volatile_v<std::remove_reference_t<decltype(value)>>) {
  811|       |                  // Hardware may interact with value changes, so we parse into a temporary and assign in one
  812|       |                  // place
  813|       |                  V temp;
  814|       |                  if constexpr (is_size_optimized(Opts)) {
  815|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, temp);
  816|       |                     if (ec != std::errc{}) [[unlikely]] {
  817|       |                        ctx.error = error_code::parse_number_failure;
  818|       |                        return;
  819|       |                     }
  820|       |                     it = ptr;
  821|       |                  }
  822|       |                  else {
  823|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, temp);
  824|       |                     if (ec != std::errc()) [[unlikely]] {
  825|       |                        ctx.error = error_code::parse_number_failure;
  826|       |                        return;
  827|       |                     }
  828|       |                     it = ptr;
  829|       |                  }
  830|       |                  value = temp;
  831|       |               }
  832|       |               else {
  833|       |                  if constexpr (is_size_optimized(Opts)) {
  834|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, value);
  835|       |                     if (ec != std::errc{}) [[unlikely]] {
  836|       |                        ctx.error = error_code::parse_number_failure;
  837|       |                        return;
  838|       |                     }
  839|       |                     it = ptr;
  840|       |                  }
  841|       |                  else {
  842|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, value);
  843|       |                     if (ec != std::errc()) [[unlikely]] {
  844|       |                        ctx.error = error_code::parse_number_failure;
  845|       |                        return;
  846|       |                     }
  847|       |                     it = ptr;
  848|       |                  }
  849|       |               }
  850|       |            }
  851|       |         }
  852|       |
  853|       |         if constexpr (check_quoted_num(Opts)) {
  854|       |            if constexpr (not Opts.null_terminated) {
  855|       |               if (it == end) [[unlikely]] {
  856|       |                  ctx.error = error_code::unexpected_end;
  857|       |                  return;
  858|       |               }
  859|       |            }
  860|       |            if (match<'"'>(ctx, it)) {
  861|       |               return;
  862|       |            }
  863|       |            if constexpr (not Opts.null_terminated) {
  864|       |               if (it == end) {
  865|       |                  ctx.error = error_code::end_reached;
  866|       |                  return;
  867|       |               }
  868|       |            }
  869|       |         }
  870|   374k|         else {
  871|   374k|            if constexpr (not Opts.null_terminated) {
  872|   374k|               if (it == end) {
  ------------------
  |  Branch (872:20): [True: 0, False: 374k]
  ------------------
  873|      0|                  ctx.error = error_code::end_reached;
  874|      0|                  return;
  875|      0|               }
  876|   374k|            }
  877|   374k|         }
  878|   374k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERiTkNS_10is_contextERNS_7contextERPKcS8_EEvOT0_OT1_OT2_T3_:
   49|  1.35k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  1.35k|         else {
   60|  1.35k|            using V = std::remove_cvref_t<T>;
   61|  1.35k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  1.35k|                                             end);
   63|  1.35k|         }
   64|  1.35k|      }
_ZN3glz4fromILj10EiE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERPKcRiTkNS_10is_contextERNS_7contextES5_EEvOT1_OT2_OT0_T3_:
  763|  1.35k|      {
  764|       |         if constexpr (check_quoted_num(Opts)) {
  765|       |            if (skip_ws<Opts>(ctx, it, end)) {
  766|       |               return;
  767|       |            }
  768|       |            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  769|       |               return;
  770|       |            }
  771|       |         }
  772|       |
  773|  1.35k|         if constexpr (!check_ws_handled(Opts)) {
  774|  1.35k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (774:17): [True: 0, False: 1.35k]
  ------------------
  775|      0|               return;
  776|      0|            }
  777|  1.35k|         }
  778|       |
  779|  1.35k|         using V = std::decay_t<decltype(value)>;
  780|  1.35k|         if constexpr (int_t<V>) {
  781|  1.35k|            static_assert(sizeof(*it) == sizeof(char));
  782|       |
  783|       |            if constexpr (Opts.null_terminated) {
  784|       |               if (not glz::atoi(value, it)) [[unlikely]] {
  785|       |                  ctx.error = error_code::parse_number_failure;
  786|       |                  return;
  787|       |               }
  788|       |            }
  789|  1.35k|            else {
  790|  1.35k|               if (not glz::atoi(value, it, end)) [[unlikely]] {
  ------------------
  |  Branch (790:20): [True: 664, False: 686]
  ------------------
  791|    664|                  ctx.error = error_code::parse_number_failure;
  792|    664|                  return;
  793|    664|               }
  794|  1.35k|            }
  795|       |         }
  796|       |         else {
  797|       |// float128_t requires std::from_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  798|       |#if !defined(_LIBCPP_VERSION) || defined(_LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT)
  799|       |            if constexpr (is_float128<V>) {
  800|       |               auto [ptr, ec] = std::from_chars(it, end, value);
  801|       |               if (ec != std::errc()) {
  802|       |                  ctx.error = error_code::parse_number_failure;
  803|       |                  return;
  804|       |               }
  805|       |               it = ptr;
  806|       |            }
  807|       |            else
  808|       |#endif
  809|       |            {
  810|       |               if constexpr (std::is_volatile_v<std::remove_reference_t<decltype(value)>>) {
  811|       |                  // Hardware may interact with value changes, so we parse into a temporary and assign in one
  812|       |                  // place
  813|       |                  V temp;
  814|       |                  if constexpr (is_size_optimized(Opts)) {
  815|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, temp);
  816|       |                     if (ec != std::errc{}) [[unlikely]] {
  817|       |                        ctx.error = error_code::parse_number_failure;
  818|       |                        return;
  819|       |                     }
  820|       |                     it = ptr;
  821|       |                  }
  822|       |                  else {
  823|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, temp);
  824|       |                     if (ec != std::errc()) [[unlikely]] {
  825|       |                        ctx.error = error_code::parse_number_failure;
  826|       |                        return;
  827|       |                     }
  828|       |                     it = ptr;
  829|       |                  }
  830|       |                  value = temp;
  831|       |               }
  832|       |               else {
  833|       |                  if constexpr (is_size_optimized(Opts)) {
  834|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, value);
  835|       |                     if (ec != std::errc{}) [[unlikely]] {
  836|       |                        ctx.error = error_code::parse_number_failure;
  837|       |                        return;
  838|       |                     }
  839|       |                     it = ptr;
  840|       |                  }
  841|       |                  else {
  842|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, value);
  843|       |                     if (ec != std::errc()) [[unlikely]] {
  844|       |                        ctx.error = error_code::parse_number_failure;
  845|       |                        return;
  846|       |                     }
  847|       |                     it = ptr;
  848|       |                  }
  849|       |               }
  850|       |            }
  851|       |         }
  852|       |
  853|       |         if constexpr (check_quoted_num(Opts)) {
  854|       |            if constexpr (not Opts.null_terminated) {
  855|       |               if (it == end) [[unlikely]] {
  856|       |                  ctx.error = error_code::unexpected_end;
  857|       |                  return;
  858|       |               }
  859|       |            }
  860|       |            if (match<'"'>(ctx, it)) {
  861|       |               return;
  862|       |            }
  863|       |            if constexpr (not Opts.null_terminated) {
  864|       |               if (it == end) {
  865|       |                  ctx.error = error_code::end_reached;
  866|       |                  return;
  867|       |               }
  868|       |            }
  869|       |         }
  870|  1.35k|         else {
  871|  1.35k|            if constexpr (not Opts.null_terminated) {
  872|  1.35k|               if (it == end) {
  ------------------
  |  Branch (872:20): [True: 587, False: 763]
  ------------------
  873|    587|                  ctx.error = error_code::end_reached;
  874|    587|                  return;
  875|    587|               }
  876|  1.35k|            }
  877|  1.35k|         }
  878|  1.35k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz5pointETkNS_10is_contextERNS_7contextERPKcSA_EEvOT0_OT1_OT2_T3_:
   49|  1.45k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  1.45k|         else {
   60|  1.45k|            using V = std::remove_cvref_t<T>;
   61|  1.45k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  1.45k|                                             end);
   63|  1.45k|         }
   64|  1.45k|      }
_ZN3glz4fromILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2791|  1.45k|      {
 2792|  1.45k|         static constexpr auto num_members = reflect<T>::size;
 2793|       |
 2794|  1.45k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2795|  1.45k|         if constexpr (!check_opening_handled(Options)) {
 2796|  1.45k|            if constexpr (!check_ws_handled(Options)) {
 2797|  1.45k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2797:20): [True: 0, False: 1.45k]
  ------------------
 2798|      0|                  return;
 2799|      0|               }
 2800|  1.45k|            }
 2801|  1.45k|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2801:17): [True: 459, False: 994]
  ------------------
 2802|    459|               return;
 2803|    459|            }
 2804|    994|            if constexpr (not Opts.null_terminated) {
 2805|    994|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2805:20): [True: 0, False: 994]
  ------------------
 2806|      0|                  ctx.error = error_code::unexpected_end;
 2807|      0|                  return;
 2808|      0|               }
 2809|    994|            }
 2810|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2811|       |            // released at each syntactic close below
 2812|    994|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2812:17): [True: 0, False: 994]
  ------------------
 2813|      0|               return;
 2814|      0|            }
 2815|    994|         }
 2816|    994|         const auto ws_start = it;
 2817|  1.45k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2817:14): [True: 0, False: 1.45k]
  ------------------
 2818|      0|            return;
 2819|      0|         }
 2820|  1.45k|         const size_t ws_size = size_t(it - ws_start);
 2821|       |
 2822|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2823|       |            if constexpr (not tag.sv().empty()) {
 2824|       |               if (*it == '"') {
 2825|       |                  ++it;
 2826|       |                  if constexpr (not Opts.null_terminated) {
 2827|       |                     if (it == end) [[unlikely]] {
 2828|       |                        ctx.error = error_code::unexpected_end;
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|       |
 2833|       |                  const auto start = it;
 2834|       |                  skip_string_view(ctx, it, end);
 2835|       |                  if (bool(ctx.error)) [[unlikely]]
 2836|       |                     return;
 2837|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2838|       |                     return;
 2839|       |                  const sv key{start, size_t(it - start)};
 2840|       |                  ++it;
 2841|       |                  if constexpr (not Opts.null_terminated) {
 2842|       |                     if (it == end) [[unlikely]] {
 2843|       |                        ctx.error = error_code::unexpected_end;
 2844|       |                        return;
 2845|       |                     }
 2846|       |                  }
 2847|       |
 2848|       |                  if (key == tag.sv()) {
 2849|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2850|       |                        return;
 2851|       |                     }
 2852|       |
 2853|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2854|       |                     if (bool(ctx.error)) [[unlikely]]
 2855|       |                        return;
 2856|       |
 2857|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2858|       |                        return;
 2859|       |                     }
 2860|       |                  }
 2861|       |                  else {
 2862|       |                     ctx.error = error_code::unknown_key;
 2863|       |                     return;
 2864|       |                  }
 2865|       |               }
 2866|       |            }
 2867|       |
 2868|       |            if (*it == '}') [[likely]] {
 2869|       |               --ctx.depth;
 2870|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2871|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2872|       |                     auto wrapper = self_constraint_v<T>(value);
 2873|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2874|       |                     if (bool(ctx.error)) {
 2875|       |                        return;
 2876|       |                     }
 2877|       |                  }
 2878|       |               }
 2879|       |               ++it;
 2880|       |               if constexpr (not Opts.null_terminated) {
 2881|       |                  if (it == end) {
 2882|       |                     ctx.error = error_code::end_reached;
 2883|       |                     return;
 2884|       |                  }
 2885|       |               }
 2886|       |               if constexpr (Opts.partial_read) {
 2887|       |                  ctx.error = error_code::partial_read_complete;
 2888|       |               }
 2889|       |               return;
 2890|       |            }
 2891|       |            ctx.error = error_code::unknown_key;
 2892|       |            return;
 2893|       |         }
 2894|  1.45k|         else {
 2895|  1.45k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|  1.45k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|  1.45k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|  1.45k|                  return bit_array<num_members>{};
 2899|  1.45k|               }
 2900|  1.45k|               else {
 2901|  1.45k|                  return nullptr;
 2902|  1.45k|               }
 2903|  1.45k|            }();
 2904|       |
 2905|       |            // A file include merges an external document into this object, so with
 2906|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2907|       |            // context::key_bits). While this object parses, its bits are published for its
 2908|       |            // includer members to hand down; and if this parse is itself an included document,
 2909|       |            // it claims the bits of the object that included us and merges into them at the
 2910|       |            // closing brace instead of running a check of its own.
 2911|  1.45k|            static constexpr bool tracks_include_keys = [] {
 2912|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2913|  1.45k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2914|  1.45k|                  return has_includer_member<T>;
 2915|  1.45k|               }
 2916|  1.45k|               else {
 2917|  1.45k|                  return false;
 2918|  1.45k|               }
 2919|  1.45k|            }();
 2920|  1.45k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2921|       |            if constexpr (tracks_include_keys) {
 2922|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2923|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2924|       |                  ctx.include_key_bits = nullptr;
 2925|       |                  ctx.include_key_type = nullptr;
 2926|       |               }
 2927|       |            }
 2928|  1.45k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2929|  1.45k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2930|  1.45k|                                                      inert_key_bits_scope> published_bits{
 2931|  1.45k|               ctx, [&]() -> void* {
 2932|  1.45k|                  if constexpr (tracks_include_keys) {
 2933|  1.45k|                     return &fields;
 2934|  1.45k|                  }
 2935|  1.45k|                  else {
 2936|  1.45k|                     return nullptr;
 2937|  1.45k|                  }
 2938|  1.45k|               }()};
 2939|       |
 2940|  1.45k|            size_t read_count{}; // for partial_read
 2941|       |
 2942|  1.45k|            bool first = true;
 2943|  5.48k|            while (true) {
  ------------------
  |  Branch (2943:20): [True: 4.20k, Folded]
  ------------------
 2944|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2945|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2946|       |                     bit_array<num_members> arr{};
 2947|       |                     for (size_t i = 0; i < num_members; ++i) {
 2948|       |                        arr[i] = true;
 2949|       |                     }
 2950|       |                     return arr;
 2951|       |                  }();
 2952|       |
 2953|       |                  if ((all_fields & fields) == all_fields) {
 2954|       |                     ctx.error = error_code::partial_read_complete;
 2955|       |                     --ctx.depth; // as above: an early success still closes this level
 2956|       |                     return;
 2957|       |                  }
 2958|       |               }
 2959|       |
 2960|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2961|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2962|       |                  if (ctx.stream.enabled()) {
 2963|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2964|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2965|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2966|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2967|       |                        const char* new_it;
 2968|       |                        const char* new_end;
 2969|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2970|       |                        it = new_it;
 2971|       |                        end = new_end;
 2972|       |                        if (it >= end && ctx.stream.at_eof()) {
 2973|       |                           ctx.error = error_code::unexpected_end;
 2974|       |                           return;
 2975|       |                        }
 2976|       |                     }
 2977|       |                  }
 2978|       |               }
 2979|       |
 2980|  4.20k|               if (*it == '}') {
  ------------------
  |  Branch (2980:20): [True: 119, False: 4.09k]
  ------------------
 2981|    119|                  --ctx.depth;
 2982|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2983|       |                     const bool defer_to_includer = [&] {
 2984|       |                        if constexpr (tracks_include_keys) {
 2985|       |                           if (include_bits) {
 2986|       |                              // An included document is a fragment: hand the keys it supplied to
 2987|       |                              // the object that included it, which checks the union of both.
 2988|       |                              *include_bits |= fields;
 2989|       |                              return true;
 2990|       |                           }
 2991|       |                        }
 2992|       |                        return false;
 2993|       |                     }();
 2994|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2995|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2996|       |                        for (size_t i = 0; i < num_members; ++i) {
 2997|       |                           if (not fields[i] && req_fields[i]) {
 2998|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 2999|       |                              // We just return the first missing key in order to avoid heap allocations
 3000|       |                              break;
 3001|       |                           }
 3002|       |                        }
 3003|       |
 3004|       |                        ctx.error = error_code::missing_key;
 3005|       |                        return;
 3006|       |                     }
 3007|       |                  }
 3008|    119|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3009|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3010|       |                        auto wrapper = self_constraint_v<T>(value);
 3011|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3012|       |                        if (bool(ctx.error)) {
 3013|       |                           return;
 3014|       |                        }
 3015|       |                     }
 3016|    119|                  }
 3017|    119|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3018|    119|                  if constexpr (not Opts.null_terminated) {
 3019|    119|                     if (it == end) {
  ------------------
  |  Branch (3019:26): [True: 119, False: 0]
  ------------------
 3020|    119|                        ctx.error = error_code::end_reached;
 3021|    119|                        return;
 3022|    119|                     }
 3023|    119|                  }
 3024|      0|                  return;
 3025|    119|               }
 3026|  4.09k|               else if (first) {
  ------------------
  |  Branch (3026:25): [True: 955, False: 3.13k]
  ------------------
 3027|    955|                  first = false;
 3028|    955|               }
 3029|  3.13k|               else {
 3030|  3.13k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3030:23): [True: 54, False: 3.08k]
  ------------------
 3031|     54|                     return;
 3032|     54|                  }
 3033|  3.08k|                  if constexpr (not Opts.null_terminated) {
 3034|  3.08k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3034:26): [True: 0, False: 3.08k]
  ------------------
 3035|      0|                        ctx.error = error_code::unexpected_end;
 3036|      0|                        return;
 3037|      0|                     }
 3038|  3.08k|                  }
 3039|       |
 3040|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3041|  3.08k|                                (!Opts.comments)) {
 3042|  3.08k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (3042:26): [True: 2.83k, False: 251]
  |  Branch (3042:37): [True: 2.61k, False: 216]
  ------------------
 3043|  2.61k|                        skip_matching_ws(ws_start, it, ws_size);
 3044|  2.61k|                     }
 3045|  3.08k|                  }
 3046|       |
 3047|  3.08k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3047:23): [True: 0, False: 3.08k]
  ------------------
 3048|      0|                     return;
 3049|      0|                  }
 3050|  3.08k|               }
 3051|       |
 3052|  4.03k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3052:49): [Folded, False: 0]
  |  Branch (3052:70): [True: 0, Folded]
  ------------------
 3053|       |
 3054|       |               if constexpr (reflection_type && (num_members == 0)) {
 3055|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3056|       |                     static_assert(false_v<T>, "This should be unreachable");
 3057|       |                  }
 3058|       |                  else {
 3059|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3060|       |                        return;
 3061|       |                     }
 3062|       |
 3063|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3064|       |
 3065|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3066|       |                     // handled by the user.
 3067|       |
 3068|       |                     const auto start = it;
 3069|       |                     uint64_t ascii_acc{};
 3070|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3071|       |                     if (bool(ctx.error)) [[unlikely]]
 3072|       |                        return;
 3073|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3074|       |                        return;
 3075|       |                     const sv key{start, size_t(it - start)};
 3076|       |                     ++it;
 3077|       |                     if constexpr (not Opts.null_terminated) {
 3078|       |                        if (it == end) [[unlikely]] {
 3079|       |                           ctx.error = error_code::unexpected_end;
 3080|       |                           return;
 3081|       |                        }
 3082|       |                     }
 3083|       |
 3084|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3085|       |                        return;
 3086|       |                     }
 3087|       |
 3088|       |                     // Check if this key is the variant tag that should be skipped
 3089|       |                     if constexpr (not tag.sv().empty()) {
 3090|       |                        if (key == tag.sv()) {
 3091|       |                           // Skip the tag value
 3092|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3093|       |                           if (bool(ctx.error)) [[unlikely]]
 3094|       |                              return;
 3095|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3096|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3097|       |                              return;
 3098|       |                           }
 3099|       |                           continue;
 3100|       |                        }
 3101|       |                     }
 3102|       |
 3103|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3104|       |                     if (bool(ctx.error)) [[unlikely]]
 3105|       |                        return;
 3106|       |                     if constexpr (not Opts.null_terminated) {
 3107|       |                        if (it == end) [[unlikely]] {
 3108|       |                           ctx.error = error_code::unexpected_end;
 3109|       |                           return;
 3110|       |                        }
 3111|       |                     }
 3112|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3113|       |                        return;
 3114|       |                     }
 3115|       |                  }
 3116|       |               }
 3117|  4.03k|               else if constexpr (reflection_type) {
 3118|  4.03k|                  static_assert(bool(hash_info<T>.type));
 3119|       |
 3120|  4.03k|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3120:23): [True: 596, False: 3.44k]
  ------------------
 3121|    596|                     ctx.error = error_code::expected_quote;
 3122|    596|                     return;
 3123|    596|                  }
 3124|  3.44k|                  ++it;
 3125|  3.44k|                  if constexpr (not Opts.null_terminated) {
 3126|  3.44k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3126:26): [True: 0, False: 3.44k]
  ------------------
 3127|      0|                        ctx.error = error_code::unexpected_end;
 3128|      0|                        return;
 3129|      0|                     }
 3130|  3.44k|                  }
 3131|       |
 3132|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3133|       |                     // For tagged variants we first check to see if the key matches the tag
 3134|       |                     // We only need to do this if the tag is not part of the keys
 3135|       |
 3136|       |                     const auto start = it;
 3137|       |                     uint64_t ascii_acc{};
 3138|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3139|       |                     if (bool(ctx.error)) [[unlikely]]
 3140|       |                        return;
 3141|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3142|       |                        return;
 3143|       |                     const sv key{start, size_t(it - start)};
 3144|       |                     ++it;
 3145|       |                     if constexpr (not Opts.null_terminated) {
 3146|       |                        if (it == end) [[unlikely]] {
 3147|       |                           ctx.error = error_code::unexpected_end;
 3148|       |                           return;
 3149|       |                        }
 3150|       |                     }
 3151|       |
 3152|       |                     if (key == tag.sv()) {
 3153|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3154|       |                           return;
 3155|       |                        }
 3156|       |
 3157|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3158|       |                        if (bool(ctx.error)) [[unlikely]]
 3159|       |                           return;
 3160|       |
 3161|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3162|       |                           return;
 3163|       |                        }
 3164|       |                        continue;
 3165|       |                     }
 3166|       |                     else {
 3167|       |                        it = start; // reset the iterator
 3168|       |                     }
 3169|       |                  }
 3170|       |
 3171|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3172|       |                     size_t index = num_members;
 3173|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3174|       |                     if (bool(ctx.error)) [[unlikely]]
 3175|       |                        return;
 3176|       |                     if (index < num_members) {
 3177|       |                        fields[index] = true;
 3178|       |                     }
 3179|       |                  }
 3180|  3.44k|                  else {
 3181|  3.44k|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3182|  3.44k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3182:26): [True: 225, False: 3.21k]
  ------------------
 3183|    225|                        return;
 3184|  3.44k|                  }
 3185|       |               }
 3186|       |               else {
 3187|       |                  // For types like std::map, std::unordered_map
 3188|       |
 3189|       |                  auto reading = [&](auto&& key) {
 3190|       |                     if constexpr (Opts.partial_read) {
 3191|       |                        if (auto element = value.find(key); element != value.end()) {
 3192|       |                           ++read_count;
 3193|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|       |                        }
 3195|       |                        else {
 3196|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|       |                        }
 3198|       |                     }
 3199|       |                     else {
 3200|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|       |                     }
 3202|       |                  };
 3203|       |
 3204|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3205|       |                  using Key = typename T::key_type;
 3206|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3207|       |                     ctx.scratch.clear();
 3208|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3209|       |                     if (bool(ctx.error)) [[unlikely]]
 3210|       |                        return;
 3211|       |
 3212|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3213|       |                        return;
 3214|       |                     }
 3215|       |
 3216|       |                     reading(ctx.scratch);
 3217|       |                     if constexpr (Opts.partial_read) {
 3218|       |                        if (read_count == value.size()) {
 3219|       |                           return;
 3220|       |                        }
 3221|       |                     }
 3222|       |                     if (bool(ctx.error)) [[unlikely]]
 3223|       |                        return;
 3224|       |                  }
 3225|       |                  else if constexpr (str_t<Key>) {
 3226|       |                     Key key;
 3227|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3228|       |                     if (bool(ctx.error)) [[unlikely]]
 3229|       |                        return;
 3230|       |
 3231|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3232|       |                        return;
 3233|       |                     }
 3234|       |
 3235|       |                     reading(key);
 3236|       |                     if constexpr (Opts.partial_read) {
 3237|       |                        if (read_count == value.size()) {
 3238|       |                           return;
 3239|       |                        }
 3240|       |                     }
 3241|       |                     if (bool(ctx.error)) [[unlikely]]
 3242|       |                        return;
 3243|       |                  }
 3244|       |                  else {
 3245|       |                     Key key_value{};
 3246|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3247|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3248|       |                     }
 3249|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3250|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3251|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3252|       |                     }
 3253|       |                     else {
 3254|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3255|       |                     }
 3256|       |                     if (bool(ctx.error)) [[unlikely]]
 3257|       |                        return;
 3258|       |
 3259|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3260|       |                        return;
 3261|       |                     }
 3262|       |
 3263|       |                     reading(key_value);
 3264|       |                     if constexpr (Opts.partial_read) {
 3265|       |                        if (read_count == value.size()) {
 3266|       |                           return;
 3267|       |                        }
 3268|       |                     }
 3269|       |                     if (bool(ctx.error)) [[unlikely]]
 3270|       |                        return;
 3271|       |                  }
 3272|       |               }
 3273|       |
 3274|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3275|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3276|       |                  if (ctx.stream.enabled()) {
 3277|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3278|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3279|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3280|       |                        const char* new_it;
 3281|       |                        const char* new_end;
 3282|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3283|       |                        it = new_it;
 3284|       |                        end = new_end;
 3285|       |                        if (it >= end && ctx.stream.at_eof()) {
 3286|       |                           ctx.error = error_code::unexpected_end;
 3287|       |                           return;
 3288|       |                        }
 3289|       |                     }
 3290|       |                  }
 3291|       |               }
 3292|       |
 3293|  4.03k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3293:20): [True: 0, False: 4.03k]
  ------------------
 3294|      0|                  return;
 3295|      0|               }
 3296|  4.03k|            }
 3297|  1.45k|         }
 3298|  1.45k|      }
_ZZN3glz4fromILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2895|    994|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|       |                  return bit_array<num_members>{};
 2899|       |               }
 2900|    994|               else {
 2901|    994|                  return nullptr;
 2902|    994|               }
 2903|    994|            }();
_ZZN3glz4fromILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2931|    994|               ctx, [&]() -> void* {
 2932|       |                  if constexpr (tracks_include_keys) {
 2933|       |                     return &fields;
 2934|       |                  }
 2935|    994|                  else {
 2936|    994|                     return nullptr;
 2937|    994|                  }
 2938|    994|               }()};
_ZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_:
  382|  7.16k|   {
  383|  7.16k|      constexpr auto N = reflect<T>::size;
  384|       |
  385|       |      if constexpr (N == 1) {
  386|       |         decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  387|       |      }
  388|       |      else if constexpr (check_linear_search(Opts)) {
  389|       |         // Linear search path
  390|       |         auto key_start = it;
  391|       |         const auto index = decode_linear<T>(ctx, it, end);
  392|       |         if (bool(ctx.error)) [[unlikely]]
  393|       |            return;
  394|       |
  395|       |         if (index >= N) [[unlikely]] {
  396|       |            if constexpr (Opts.error_on_unknown_keys) {
  397|       |               ctx.error = error_code::unknown_key;
  398|       |               return;
  399|       |            }
  400|       |            else {
  401|       |               // it sits one past the closing quote, so the raw key spans [key_start, it - 1)
  402|       |               if (validate_utf8_span<Opts>(ctx, key_start, it - 1)) [[unlikely]] {
  403|       |                  return;
  404|       |               }
  405|       |               const sv key{key_start, size_t(it - key_start - 1)};
  406|       |               if constexpr (not Opts.null_terminated) {
  407|       |                  if (it == end) [[unlikely]] {
  408|       |                     ctx.error = error_code::unexpected_end;
  409|       |                     return;
  410|       |                  }
  411|       |               }
  412|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  413|       |                  return;
  414|       |               }
  415|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  416|       |               return;
  417|       |            }
  418|       |         }
  419|       |
  420|       |         if constexpr (not Opts.null_terminated) {
  421|       |            if (it == end) [[unlikely]] {
  422|       |               ctx.error = error_code::unexpected_end;
  423|       |               return;
  424|       |            }
  425|       |         }
  426|       |         if (skip_ws<Opts>(ctx, it, end)) {
  427|       |            return;
  428|       |         }
  429|       |         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  430|       |            return;
  431|       |         }
  432|       |         if (skip_ws<Opts>(ctx, it, end)) {
  433|       |            return;
  434|       |         }
  435|       |
  436|       |         // Fold expression dispatch - avoids jump table overhead for smaller binary size.
  437|       |         // For linear_search, pass Opts through to the field parser to avoid duplicate template
  438|       |         // instantiations; the whitespace before the value has already been skipped either way.
  439|       |         [&]<size_t... Is>(std::index_sequence<Is...>) {
  440|       |            (void)(((index == Is ? (decode_field_value<Opts, Opts, T, Is>(value, ctx, it, end, selected_index...), true)
  441|       |                                 : false) ||
  442|       |                    ...));
  443|       |         }(std::make_index_sequence<N>{});
  444|       |      }
  445|  7.16k|      else {
  446|       |         // Hash-based lookup
  447|  7.16k|         constexpr auto& HashInfo = hash_info<T>;
  448|  7.16k|         constexpr auto type = HashInfo.type;
  449|  7.16k|         static_assert(bool(type), "invalid hash algorithm");
  450|       |
  451|  7.16k|         const auto index = decode_hash<JSON, T, HashInfo, HashInfo.type>::op(it, end);
  452|       |
  453|  7.16k|         if (index >= N) [[unlikely]] {
  ------------------
  |  Branch (453:14): [True: 0, False: 7.16k]
  ------------------
  454|      0|            if constexpr (Opts.error_on_unknown_keys) {
  455|      0|               ctx.error = error_code::unknown_key;
  456|      0|               return;
  457|       |            }
  458|       |            else {
  459|       |               auto start = it;
  460|       |               skip_string_view(ctx, it, end);
  461|       |               if (bool(ctx.error)) [[unlikely]]
  462|       |                  return;
  463|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
  464|       |                  return;
  465|       |               const sv key = {start, size_t(it - start)};
  466|       |               ++it; // skip the quote
  467|       |               if constexpr (not Opts.null_terminated) {
  468|       |                  if (it == end) [[unlikely]] {
  469|       |                     ctx.error = error_code::unexpected_end;
  470|       |                     return;
  471|       |                  }
  472|       |               }
  473|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  474|       |                  return;
  475|       |               }
  476|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  477|       |               return;
  478|       |            }
  479|      0|         }
  480|       |
  481|  7.16k|         if constexpr (N == 2) {
  482|  7.16k|            if (index == 0) {
  ------------------
  |  Branch (482:17): [True: 5.77k, False: 1.38k]
  ------------------
  483|  5.77k|               decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  484|  5.77k|            }
  485|  1.38k|            else {
  486|  1.38k|               decode_index<Opts, T, 1>(value, ctx, it, end, selected_index...);
  487|  1.38k|            }
  488|       |         }
  489|       |         else {
  490|       |            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
  491|       |         }
  492|  7.16k|      }
  493|  7.16k|   }
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|  5.77k|   {
  313|  5.77k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|  5.77k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|  5.77k|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|  5.77k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 5.77k, False: 0]
  |  Branch (321:52): [True: 5.75k, False: 23]
  ------------------
  322|  5.75k|         it += Length;
  323|  5.75k|         if constexpr (not Opts.null_terminated) {
  324|  5.75k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 5.75k]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|  5.75k|         }
  329|       |
  330|  5.75k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 5.75k]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|  5.75k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 45, False: 5.70k]
  ------------------
  334|     45|            return;
  335|     45|         }
  336|  5.70k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 5.70k]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|  5.70k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|  5.70k|      }
  343|     23|      else [[unlikely]] {
  344|     23|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|     23|      }
  346|  5.77k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz5pointELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|  5.70k|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|  5.70k|      else {
  274|  5.70k|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|  5.70k|         else {
  298|  5.70k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|  5.70k|                                                                       it, end);
  300|  5.70k|         }
  301|  5.70k|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|  5.70k|   }
_ZN3glz4fromILj10EdE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERPKcRdTkNS_10is_contextERNS_7contextES5_EEvOT1_OT2_OT0_T3_:
  763|  1.08M|      {
  764|       |         if constexpr (check_quoted_num(Opts)) {
  765|       |            if (skip_ws<Opts>(ctx, it, end)) {
  766|       |               return;
  767|       |            }
  768|       |            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  769|       |               return;
  770|       |            }
  771|       |         }
  772|       |
  773|       |         if constexpr (!check_ws_handled(Opts)) {
  774|       |            if (skip_ws<Opts>(ctx, it, end)) {
  775|       |               return;
  776|       |            }
  777|       |         }
  778|       |
  779|  1.08M|         using V = std::decay_t<decltype(value)>;
  780|       |         if constexpr (int_t<V>) {
  781|       |            static_assert(sizeof(*it) == sizeof(char));
  782|       |
  783|       |            if constexpr (Opts.null_terminated) {
  784|       |               if (not glz::atoi(value, it)) [[unlikely]] {
  785|       |                  ctx.error = error_code::parse_number_failure;
  786|       |                  return;
  787|       |               }
  788|       |            }
  789|       |            else {
  790|       |               if (not glz::atoi(value, it, end)) [[unlikely]] {
  791|       |                  ctx.error = error_code::parse_number_failure;
  792|       |                  return;
  793|       |               }
  794|       |            }
  795|       |         }
  796|  1.08M|         else {
  797|       |// float128_t requires std::from_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  798|  1.08M|#if !defined(_LIBCPP_VERSION) || defined(_LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT)
  799|       |            if constexpr (is_float128<V>) {
  800|       |               auto [ptr, ec] = std::from_chars(it, end, value);
  801|       |               if (ec != std::errc()) {
  802|       |                  ctx.error = error_code::parse_number_failure;
  803|       |                  return;
  804|       |               }
  805|       |               it = ptr;
  806|       |            }
  807|       |            else
  808|       |#endif
  809|  1.08M|            {
  810|       |               if constexpr (std::is_volatile_v<std::remove_reference_t<decltype(value)>>) {
  811|       |                  // Hardware may interact with value changes, so we parse into a temporary and assign in one
  812|       |                  // place
  813|       |                  V temp;
  814|       |                  if constexpr (is_size_optimized(Opts)) {
  815|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, temp);
  816|       |                     if (ec != std::errc{}) [[unlikely]] {
  817|       |                        ctx.error = error_code::parse_number_failure;
  818|       |                        return;
  819|       |                     }
  820|       |                     it = ptr;
  821|       |                  }
  822|       |                  else {
  823|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, temp);
  824|       |                     if (ec != std::errc()) [[unlikely]] {
  825|       |                        ctx.error = error_code::parse_number_failure;
  826|       |                        return;
  827|       |                     }
  828|       |                     it = ptr;
  829|       |                  }
  830|       |                  value = temp;
  831|       |               }
  832|  1.08M|               else {
  833|       |                  if constexpr (is_size_optimized(Opts)) {
  834|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, value);
  835|       |                     if (ec != std::errc{}) [[unlikely]] {
  836|       |                        ctx.error = error_code::parse_number_failure;
  837|       |                        return;
  838|       |                     }
  839|       |                     it = ptr;
  840|       |                  }
  841|  1.08M|                  else {
  842|  1.08M|                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, value);
  843|  1.08M|                     if (ec != std::errc()) [[unlikely]] {
  ------------------
  |  Branch (843:26): [True: 1.06k, False: 1.08M]
  ------------------
  844|  1.06k|                        ctx.error = error_code::parse_number_failure;
  845|  1.06k|                        return;
  846|  1.06k|                     }
  847|  1.08M|                     it = ptr;
  848|  1.08M|                  }
  849|  1.08M|               }
  850|  1.08M|            }
  851|  1.08M|         }
  852|       |
  853|       |         if constexpr (check_quoted_num(Opts)) {
  854|       |            if constexpr (not Opts.null_terminated) {
  855|       |               if (it == end) [[unlikely]] {
  856|       |                  ctx.error = error_code::unexpected_end;
  857|       |                  return;
  858|       |               }
  859|       |            }
  860|       |            if (match<'"'>(ctx, it)) {
  861|       |               return;
  862|       |            }
  863|       |            if constexpr (not Opts.null_terminated) {
  864|       |               if (it == end) {
  865|       |                  ctx.error = error_code::end_reached;
  866|       |                  return;
  867|       |               }
  868|       |            }
  869|       |         }
  870|  1.08M|         else {
  871|  1.08M|            if constexpr (not Opts.null_terminated) {
  872|  1.08M|               if (it == end) {
  ------------------
  |  Branch (872:20): [True: 0, False: 1.08M]
  ------------------
  873|      0|                  ctx.error = error_code::end_reached;
  874|      0|                  return;
  875|      0|               }
  876|  1.08M|            }
  877|  1.08M|         }
  878|  1.08M|      }
_ZN3glz24decode_index_unknown_keyITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointERS3_TkNS_10is_contextERNS_7contextERPKcS8_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT2_OT3_T4_:
  177|    130|   {
  178|    130|      if constexpr (Opts.error_on_unknown_keys) {
  179|    130|         ctx.error = error_code::unknown_key;
  180|       |      }
  181|       |      else {
  182|       |         auto* start = it;
  183|       |         uint64_t ascii_acc{};
  184|       |         skip_string_view(ctx, it, end, ascii_acc);
  185|       |         if (bool(ctx.error)) [[unlikely]]
  186|       |            return;
  187|       |         if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
  188|       |            return;
  189|       |         const sv key = {start, size_t(it - start)};
  190|       |         ++it;
  191|       |         if constexpr (not Opts.null_terminated) {
  192|       |            if (it == end) [[unlikely]] {
  193|       |               ctx.error = error_code::unexpected_end;
  194|       |               return;
  195|       |            }
  196|       |         }
  197|       |
  198|       |         if (parse_ws_colon<Opts>(ctx, it, end)) {
  199|       |            return;
  200|       |         }
  201|       |
  202|       |         parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  203|       |      }
  204|    130|   }
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|  1.38k|   {
  313|  1.38k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|  1.38k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|  1.38k|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|  1.38k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 1.38k, False: 6]
  |  Branch (321:52): [True: 1.28k, False: 101]
  ------------------
  322|  1.28k|         it += Length;
  323|  1.28k|         if constexpr (not Opts.null_terminated) {
  324|  1.28k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 1.28k]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|  1.28k|         }
  329|       |
  330|  1.28k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 1.28k]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|  1.28k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 40, False: 1.24k]
  ------------------
  334|     40|            return;
  335|     40|         }
  336|  1.24k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 1.24k]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|  1.24k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|  1.24k|      }
  343|    107|      else [[unlikely]] {
  344|    107|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|    107|      }
  346|  1.38k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz5pointELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|  1.24k|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|  1.24k|      else {
  274|  1.24k|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|  1.24k|         else {
  298|  1.24k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|  1.24k|                                                                       it, end);
  300|  1.24k|         }
  301|  1.24k|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|  1.24k|   }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz8fuzz_apiETkNS_10is_contextERNS_7contextERPKcSA_EEvOT0_OT1_OT2_T3_:
   49|  9.24k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  9.24k|         else {
   60|  9.24k|            using V = std::remove_cvref_t<T>;
   61|  9.24k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  9.24k|                                             end);
   63|  9.24k|         }
   64|  9.24k|      }
_ZN3glz4fromILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2791|  9.24k|      {
 2792|  9.24k|         static constexpr auto num_members = reflect<T>::size;
 2793|       |
 2794|  9.24k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2795|  9.24k|         if constexpr (!check_opening_handled(Options)) {
 2796|  9.24k|            if constexpr (!check_ws_handled(Options)) {
 2797|  9.24k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2797:20): [True: 0, False: 9.24k]
  ------------------
 2798|      0|                  return;
 2799|      0|               }
 2800|  9.24k|            }
 2801|  9.24k|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2801:17): [True: 74, False: 9.17k]
  ------------------
 2802|     74|               return;
 2803|     74|            }
 2804|  9.17k|            if constexpr (not Opts.null_terminated) {
 2805|  9.17k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2805:20): [True: 0, False: 9.17k]
  ------------------
 2806|      0|                  ctx.error = error_code::unexpected_end;
 2807|      0|                  return;
 2808|      0|               }
 2809|  9.17k|            }
 2810|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2811|       |            // released at each syntactic close below
 2812|  9.17k|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2812:17): [True: 0, False: 9.17k]
  ------------------
 2813|      0|               return;
 2814|      0|            }
 2815|  9.17k|         }
 2816|  9.17k|         const auto ws_start = it;
 2817|  9.24k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2817:14): [True: 0, False: 9.24k]
  ------------------
 2818|      0|            return;
 2819|      0|         }
 2820|  9.24k|         const size_t ws_size = size_t(it - ws_start);
 2821|       |
 2822|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2823|       |            if constexpr (not tag.sv().empty()) {
 2824|       |               if (*it == '"') {
 2825|       |                  ++it;
 2826|       |                  if constexpr (not Opts.null_terminated) {
 2827|       |                     if (it == end) [[unlikely]] {
 2828|       |                        ctx.error = error_code::unexpected_end;
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|       |
 2833|       |                  const auto start = it;
 2834|       |                  skip_string_view(ctx, it, end);
 2835|       |                  if (bool(ctx.error)) [[unlikely]]
 2836|       |                     return;
 2837|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2838|       |                     return;
 2839|       |                  const sv key{start, size_t(it - start)};
 2840|       |                  ++it;
 2841|       |                  if constexpr (not Opts.null_terminated) {
 2842|       |                     if (it == end) [[unlikely]] {
 2843|       |                        ctx.error = error_code::unexpected_end;
 2844|       |                        return;
 2845|       |                     }
 2846|       |                  }
 2847|       |
 2848|       |                  if (key == tag.sv()) {
 2849|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2850|       |                        return;
 2851|       |                     }
 2852|       |
 2853|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2854|       |                     if (bool(ctx.error)) [[unlikely]]
 2855|       |                        return;
 2856|       |
 2857|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2858|       |                        return;
 2859|       |                     }
 2860|       |                  }
 2861|       |                  else {
 2862|       |                     ctx.error = error_code::unknown_key;
 2863|       |                     return;
 2864|       |                  }
 2865|       |               }
 2866|       |            }
 2867|       |
 2868|       |            if (*it == '}') [[likely]] {
 2869|       |               --ctx.depth;
 2870|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2871|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2872|       |                     auto wrapper = self_constraint_v<T>(value);
 2873|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2874|       |                     if (bool(ctx.error)) {
 2875|       |                        return;
 2876|       |                     }
 2877|       |                  }
 2878|       |               }
 2879|       |               ++it;
 2880|       |               if constexpr (not Opts.null_terminated) {
 2881|       |                  if (it == end) {
 2882|       |                     ctx.error = error_code::end_reached;
 2883|       |                     return;
 2884|       |                  }
 2885|       |               }
 2886|       |               if constexpr (Opts.partial_read) {
 2887|       |                  ctx.error = error_code::partial_read_complete;
 2888|       |               }
 2889|       |               return;
 2890|       |            }
 2891|       |            ctx.error = error_code::unknown_key;
 2892|       |            return;
 2893|       |         }
 2894|  9.24k|         else {
 2895|  9.24k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|  9.24k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|  9.24k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|  9.24k|                  return bit_array<num_members>{};
 2899|  9.24k|               }
 2900|  9.24k|               else {
 2901|  9.24k|                  return nullptr;
 2902|  9.24k|               }
 2903|  9.24k|            }();
 2904|       |
 2905|       |            // A file include merges an external document into this object, so with
 2906|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2907|       |            // context::key_bits). While this object parses, its bits are published for its
 2908|       |            // includer members to hand down; and if this parse is itself an included document,
 2909|       |            // it claims the bits of the object that included us and merges into them at the
 2910|       |            // closing brace instead of running a check of its own.
 2911|  9.24k|            static constexpr bool tracks_include_keys = [] {
 2912|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2913|  9.24k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2914|  9.24k|                  return has_includer_member<T>;
 2915|  9.24k|               }
 2916|  9.24k|               else {
 2917|  9.24k|                  return false;
 2918|  9.24k|               }
 2919|  9.24k|            }();
 2920|  9.24k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2921|       |            if constexpr (tracks_include_keys) {
 2922|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2923|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2924|       |                  ctx.include_key_bits = nullptr;
 2925|       |                  ctx.include_key_type = nullptr;
 2926|       |               }
 2927|       |            }
 2928|  9.24k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2929|  9.24k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2930|  9.24k|                                                      inert_key_bits_scope> published_bits{
 2931|  9.24k|               ctx, [&]() -> void* {
 2932|  9.24k|                  if constexpr (tracks_include_keys) {
 2933|  9.24k|                     return &fields;
 2934|  9.24k|                  }
 2935|  9.24k|                  else {
 2936|  9.24k|                     return nullptr;
 2937|  9.24k|                  }
 2938|  9.24k|               }()};
 2939|       |
 2940|  9.24k|            size_t read_count{}; // for partial_read
 2941|       |
 2942|  9.24k|            bool first = true;
 2943|  52.6k|            while (true) {
  ------------------
  |  Branch (2943:20): [True: 44.7k, Folded]
  ------------------
 2944|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2945|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2946|       |                     bit_array<num_members> arr{};
 2947|       |                     for (size_t i = 0; i < num_members; ++i) {
 2948|       |                        arr[i] = true;
 2949|       |                     }
 2950|       |                     return arr;
 2951|       |                  }();
 2952|       |
 2953|       |                  if ((all_fields & fields) == all_fields) {
 2954|       |                     ctx.error = error_code::partial_read_complete;
 2955|       |                     --ctx.depth; // as above: an early success still closes this level
 2956|       |                     return;
 2957|       |                  }
 2958|       |               }
 2959|       |
 2960|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2961|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2962|       |                  if (ctx.stream.enabled()) {
 2963|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2964|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2965|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2966|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2967|       |                        const char* new_it;
 2968|       |                        const char* new_end;
 2969|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2970|       |                        it = new_it;
 2971|       |                        end = new_end;
 2972|       |                        if (it >= end && ctx.stream.at_eof()) {
 2973|       |                           ctx.error = error_code::unexpected_end;
 2974|       |                           return;
 2975|       |                        }
 2976|       |                     }
 2977|       |                  }
 2978|       |               }
 2979|       |
 2980|  44.7k|               if (*it == '}') {
  ------------------
  |  Branch (2980:20): [True: 1.09k, False: 43.7k]
  ------------------
 2981|  1.09k|                  --ctx.depth;
 2982|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2983|       |                     const bool defer_to_includer = [&] {
 2984|       |                        if constexpr (tracks_include_keys) {
 2985|       |                           if (include_bits) {
 2986|       |                              // An included document is a fragment: hand the keys it supplied to
 2987|       |                              // the object that included it, which checks the union of both.
 2988|       |                              *include_bits |= fields;
 2989|       |                              return true;
 2990|       |                           }
 2991|       |                        }
 2992|       |                        return false;
 2993|       |                     }();
 2994|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2995|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2996|       |                        for (size_t i = 0; i < num_members; ++i) {
 2997|       |                           if (not fields[i] && req_fields[i]) {
 2998|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 2999|       |                              // We just return the first missing key in order to avoid heap allocations
 3000|       |                              break;
 3001|       |                           }
 3002|       |                        }
 3003|       |
 3004|       |                        ctx.error = error_code::missing_key;
 3005|       |                        return;
 3006|       |                     }
 3007|       |                  }
 3008|  1.09k|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3009|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3010|       |                        auto wrapper = self_constraint_v<T>(value);
 3011|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3012|       |                        if (bool(ctx.error)) {
 3013|       |                           return;
 3014|       |                        }
 3015|       |                     }
 3016|  1.09k|                  }
 3017|  1.09k|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3018|  1.09k|                  if constexpr (not Opts.null_terminated) {
 3019|  1.09k|                     if (it == end) {
  ------------------
  |  Branch (3019:26): [True: 1.09k, False: 0]
  ------------------
 3020|  1.09k|                        ctx.error = error_code::end_reached;
 3021|  1.09k|                        return;
 3022|  1.09k|                     }
 3023|  1.09k|                  }
 3024|      0|                  return;
 3025|  1.09k|               }
 3026|  43.7k|               else if (first) {
  ------------------
  |  Branch (3026:25): [True: 9.14k, False: 34.5k]
  ------------------
 3027|  9.14k|                  first = false;
 3028|  9.14k|               }
 3029|  34.5k|               else {
 3030|  34.5k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3030:23): [True: 341, False: 34.2k]
  ------------------
 3031|    341|                     return;
 3032|    341|                  }
 3033|  34.2k|                  if constexpr (not Opts.null_terminated) {
 3034|  34.2k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3034:26): [True: 0, False: 34.2k]
  ------------------
 3035|      0|                        ctx.error = error_code::unexpected_end;
 3036|      0|                        return;
 3037|      0|                     }
 3038|  34.2k|                  }
 3039|       |
 3040|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3041|  34.2k|                                (!Opts.comments)) {
 3042|  34.2k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (3042:26): [True: 21.8k, False: 12.3k]
  |  Branch (3042:37): [True: 21.6k, False: 251]
  ------------------
 3043|  21.6k|                        skip_matching_ws(ws_start, it, ws_size);
 3044|  21.6k|                     }
 3045|  34.2k|                  }
 3046|       |
 3047|  34.2k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3047:23): [True: 0, False: 34.2k]
  ------------------
 3048|      0|                     return;
 3049|      0|                  }
 3050|  34.2k|               }
 3051|       |
 3052|  43.3k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3052:49): [Folded, False: 0]
  |  Branch (3052:70): [True: 0, Folded]
  ------------------
 3053|       |
 3054|       |               if constexpr (reflection_type && (num_members == 0)) {
 3055|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3056|       |                     static_assert(false_v<T>, "This should be unreachable");
 3057|       |                  }
 3058|       |                  else {
 3059|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3060|       |                        return;
 3061|       |                     }
 3062|       |
 3063|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3064|       |
 3065|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3066|       |                     // handled by the user.
 3067|       |
 3068|       |                     const auto start = it;
 3069|       |                     uint64_t ascii_acc{};
 3070|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3071|       |                     if (bool(ctx.error)) [[unlikely]]
 3072|       |                        return;
 3073|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3074|       |                        return;
 3075|       |                     const sv key{start, size_t(it - start)};
 3076|       |                     ++it;
 3077|       |                     if constexpr (not Opts.null_terminated) {
 3078|       |                        if (it == end) [[unlikely]] {
 3079|       |                           ctx.error = error_code::unexpected_end;
 3080|       |                           return;
 3081|       |                        }
 3082|       |                     }
 3083|       |
 3084|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3085|       |                        return;
 3086|       |                     }
 3087|       |
 3088|       |                     // Check if this key is the variant tag that should be skipped
 3089|       |                     if constexpr (not tag.sv().empty()) {
 3090|       |                        if (key == tag.sv()) {
 3091|       |                           // Skip the tag value
 3092|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3093|       |                           if (bool(ctx.error)) [[unlikely]]
 3094|       |                              return;
 3095|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3096|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3097|       |                              return;
 3098|       |                           }
 3099|       |                           continue;
 3100|       |                        }
 3101|       |                     }
 3102|       |
 3103|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3104|       |                     if (bool(ctx.error)) [[unlikely]]
 3105|       |                        return;
 3106|       |                     if constexpr (not Opts.null_terminated) {
 3107|       |                        if (it == end) [[unlikely]] {
 3108|       |                           ctx.error = error_code::unexpected_end;
 3109|       |                           return;
 3110|       |                        }
 3111|       |                     }
 3112|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3113|       |                        return;
 3114|       |                     }
 3115|       |                  }
 3116|       |               }
 3117|  43.3k|               else if constexpr (reflection_type) {
 3118|  43.3k|                  static_assert(bool(hash_info<T>.type));
 3119|       |
 3120|  43.3k|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3120:23): [True: 764, False: 42.6k]
  ------------------
 3121|    764|                     ctx.error = error_code::expected_quote;
 3122|    764|                     return;
 3123|    764|                  }
 3124|  42.6k|                  ++it;
 3125|  42.6k|                  if constexpr (not Opts.null_terminated) {
 3126|  42.6k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3126:26): [True: 0, False: 42.6k]
  ------------------
 3127|      0|                        ctx.error = error_code::unexpected_end;
 3128|      0|                        return;
 3129|      0|                     }
 3130|  42.6k|                  }
 3131|       |
 3132|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3133|       |                     // For tagged variants we first check to see if the key matches the tag
 3134|       |                     // We only need to do this if the tag is not part of the keys
 3135|       |
 3136|       |                     const auto start = it;
 3137|       |                     uint64_t ascii_acc{};
 3138|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3139|       |                     if (bool(ctx.error)) [[unlikely]]
 3140|       |                        return;
 3141|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3142|       |                        return;
 3143|       |                     const sv key{start, size_t(it - start)};
 3144|       |                     ++it;
 3145|       |                     if constexpr (not Opts.null_terminated) {
 3146|       |                        if (it == end) [[unlikely]] {
 3147|       |                           ctx.error = error_code::unexpected_end;
 3148|       |                           return;
 3149|       |                        }
 3150|       |                     }
 3151|       |
 3152|       |                     if (key == tag.sv()) {
 3153|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3154|       |                           return;
 3155|       |                        }
 3156|       |
 3157|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3158|       |                        if (bool(ctx.error)) [[unlikely]]
 3159|       |                           return;
 3160|       |
 3161|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3162|       |                           return;
 3163|       |                        }
 3164|       |                        continue;
 3165|       |                     }
 3166|       |                     else {
 3167|       |                        it = start; // reset the iterator
 3168|       |                     }
 3169|       |                  }
 3170|       |
 3171|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3172|       |                     size_t index = num_members;
 3173|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3174|       |                     if (bool(ctx.error)) [[unlikely]]
 3175|       |                        return;
 3176|       |                     if (index < num_members) {
 3177|       |                        fields[index] = true;
 3178|       |                     }
 3179|       |                  }
 3180|  42.6k|                  else {
 3181|  42.6k|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3182|  42.6k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3182:26): [True: 6.97k, False: 35.6k]
  ------------------
 3183|  6.97k|                        return;
 3184|  42.6k|                  }
 3185|       |               }
 3186|       |               else {
 3187|       |                  // For types like std::map, std::unordered_map
 3188|       |
 3189|       |                  auto reading = [&](auto&& key) {
 3190|       |                     if constexpr (Opts.partial_read) {
 3191|       |                        if (auto element = value.find(key); element != value.end()) {
 3192|       |                           ++read_count;
 3193|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|       |                        }
 3195|       |                        else {
 3196|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|       |                        }
 3198|       |                     }
 3199|       |                     else {
 3200|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|       |                     }
 3202|       |                  };
 3203|       |
 3204|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3205|       |                  using Key = typename T::key_type;
 3206|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3207|       |                     ctx.scratch.clear();
 3208|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3209|       |                     if (bool(ctx.error)) [[unlikely]]
 3210|       |                        return;
 3211|       |
 3212|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3213|       |                        return;
 3214|       |                     }
 3215|       |
 3216|       |                     reading(ctx.scratch);
 3217|       |                     if constexpr (Opts.partial_read) {
 3218|       |                        if (read_count == value.size()) {
 3219|       |                           return;
 3220|       |                        }
 3221|       |                     }
 3222|       |                     if (bool(ctx.error)) [[unlikely]]
 3223|       |                        return;
 3224|       |                  }
 3225|       |                  else if constexpr (str_t<Key>) {
 3226|       |                     Key key;
 3227|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3228|       |                     if (bool(ctx.error)) [[unlikely]]
 3229|       |                        return;
 3230|       |
 3231|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3232|       |                        return;
 3233|       |                     }
 3234|       |
 3235|       |                     reading(key);
 3236|       |                     if constexpr (Opts.partial_read) {
 3237|       |                        if (read_count == value.size()) {
 3238|       |                           return;
 3239|       |                        }
 3240|       |                     }
 3241|       |                     if (bool(ctx.error)) [[unlikely]]
 3242|       |                        return;
 3243|       |                  }
 3244|       |                  else {
 3245|       |                     Key key_value{};
 3246|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3247|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3248|       |                     }
 3249|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3250|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3251|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3252|       |                     }
 3253|       |                     else {
 3254|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3255|       |                     }
 3256|       |                     if (bool(ctx.error)) [[unlikely]]
 3257|       |                        return;
 3258|       |
 3259|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3260|       |                        return;
 3261|       |                     }
 3262|       |
 3263|       |                     reading(key_value);
 3264|       |                     if constexpr (Opts.partial_read) {
 3265|       |                        if (read_count == value.size()) {
 3266|       |                           return;
 3267|       |                        }
 3268|       |                     }
 3269|       |                     if (bool(ctx.error)) [[unlikely]]
 3270|       |                        return;
 3271|       |                  }
 3272|       |               }
 3273|       |
 3274|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3275|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3276|       |                  if (ctx.stream.enabled()) {
 3277|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3278|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3279|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3280|       |                        const char* new_it;
 3281|       |                        const char* new_end;
 3282|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3283|       |                        it = new_it;
 3284|       |                        end = new_end;
 3285|       |                        if (it >= end && ctx.stream.at_eof()) {
 3286|       |                           ctx.error = error_code::unexpected_end;
 3287|       |                           return;
 3288|       |                        }
 3289|       |                     }
 3290|       |                  }
 3291|       |               }
 3292|       |
 3293|  43.3k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3293:20): [True: 0, False: 43.3k]
  ------------------
 3294|      0|                  return;
 3295|      0|               }
 3296|  43.3k|            }
 3297|  9.24k|         }
 3298|  9.24k|      }
_ZZN3glz4fromILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2895|  9.17k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|       |                  return bit_array<num_members>{};
 2899|       |               }
 2900|  9.17k|               else {
 2901|  9.17k|                  return nullptr;
 2902|  9.17k|               }
 2903|  9.17k|            }();
_ZZN3glz4fromILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2931|  9.17k|               ctx, [&]() -> void* {
 2932|       |                  if constexpr (tracks_include_keys) {
 2933|       |                     return &fields;
 2934|       |                  }
 2935|  9.17k|                  else {
 2936|  9.17k|                     return nullptr;
 2937|  9.17k|                  }
 2938|  9.17k|               }()};
_ZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_:
  382|  42.6k|   {
  383|  42.6k|      constexpr auto N = reflect<T>::size;
  384|       |
  385|       |      if constexpr (N == 1) {
  386|       |         decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  387|       |      }
  388|       |      else if constexpr (check_linear_search(Opts)) {
  389|       |         // Linear search path
  390|       |         auto key_start = it;
  391|       |         const auto index = decode_linear<T>(ctx, it, end);
  392|       |         if (bool(ctx.error)) [[unlikely]]
  393|       |            return;
  394|       |
  395|       |         if (index >= N) [[unlikely]] {
  396|       |            if constexpr (Opts.error_on_unknown_keys) {
  397|       |               ctx.error = error_code::unknown_key;
  398|       |               return;
  399|       |            }
  400|       |            else {
  401|       |               // it sits one past the closing quote, so the raw key spans [key_start, it - 1)
  402|       |               if (validate_utf8_span<Opts>(ctx, key_start, it - 1)) [[unlikely]] {
  403|       |                  return;
  404|       |               }
  405|       |               const sv key{key_start, size_t(it - key_start - 1)};
  406|       |               if constexpr (not Opts.null_terminated) {
  407|       |                  if (it == end) [[unlikely]] {
  408|       |                     ctx.error = error_code::unexpected_end;
  409|       |                     return;
  410|       |                  }
  411|       |               }
  412|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  413|       |                  return;
  414|       |               }
  415|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  416|       |               return;
  417|       |            }
  418|       |         }
  419|       |
  420|       |         if constexpr (not Opts.null_terminated) {
  421|       |            if (it == end) [[unlikely]] {
  422|       |               ctx.error = error_code::unexpected_end;
  423|       |               return;
  424|       |            }
  425|       |         }
  426|       |         if (skip_ws<Opts>(ctx, it, end)) {
  427|       |            return;
  428|       |         }
  429|       |         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  430|       |            return;
  431|       |         }
  432|       |         if (skip_ws<Opts>(ctx, it, end)) {
  433|       |            return;
  434|       |         }
  435|       |
  436|       |         // Fold expression dispatch - avoids jump table overhead for smaller binary size.
  437|       |         // For linear_search, pass Opts through to the field parser to avoid duplicate template
  438|       |         // instantiations; the whitespace before the value has already been skipped either way.
  439|       |         [&]<size_t... Is>(std::index_sequence<Is...>) {
  440|       |            (void)(((index == Is ? (decode_field_value<Opts, Opts, T, Is>(value, ctx, it, end, selected_index...), true)
  441|       |                                 : false) ||
  442|       |                    ...));
  443|       |         }(std::make_index_sequence<N>{});
  444|       |      }
  445|  42.6k|      else {
  446|       |         // Hash-based lookup
  447|  42.6k|         constexpr auto& HashInfo = hash_info<T>;
  448|  42.6k|         constexpr auto type = HashInfo.type;
  449|  42.6k|         static_assert(bool(type), "invalid hash algorithm");
  450|       |
  451|  42.6k|         const auto index = decode_hash<JSON, T, HashInfo, HashInfo.type>::op(it, end);
  452|       |
  453|  42.6k|         if (index >= N) [[unlikely]] {
  ------------------
  |  Branch (453:14): [True: 117, False: 42.4k]
  ------------------
  454|    117|            if constexpr (Opts.error_on_unknown_keys) {
  455|    117|               ctx.error = error_code::unknown_key;
  456|    117|               return;
  457|       |            }
  458|       |            else {
  459|       |               auto start = it;
  460|       |               skip_string_view(ctx, it, end);
  461|       |               if (bool(ctx.error)) [[unlikely]]
  462|       |                  return;
  463|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
  464|       |                  return;
  465|       |               const sv key = {start, size_t(it - start)};
  466|       |               ++it; // skip the quote
  467|       |               if constexpr (not Opts.null_terminated) {
  468|       |                  if (it == end) [[unlikely]] {
  469|       |                     ctx.error = error_code::unexpected_end;
  470|       |                     return;
  471|       |                  }
  472|       |               }
  473|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  474|       |                  return;
  475|       |               }
  476|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  477|       |               return;
  478|       |            }
  479|    117|         }
  480|       |
  481|       |         if constexpr (N == 2) {
  482|       |            if (index == 0) {
  483|       |               decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  484|       |            }
  485|       |            else {
  486|       |               decode_index<Opts, T, 1>(value, ctx, it, end, selected_index...);
  487|       |            }
  488|       |         }
  489|  42.6k|         else {
  490|  42.6k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
  491|  42.6k|         }
  492|  42.6k|      }
  493|  42.6k|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm0EEEDav:
  490|  26.1k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|  26.1k|   {
  313|  26.1k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|  26.1k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|  26.1k|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|  26.1k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 26.1k, False: 3]
  |  Branch (321:52): [True: 26.0k, False: 25]
  ------------------
  322|  26.0k|         it += Length;
  323|  26.0k|         if constexpr (not Opts.null_terminated) {
  324|  26.0k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 26.0k]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|  26.0k|         }
  329|       |
  330|  26.0k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 26.0k]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|  26.0k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 44, False: 26.0k]
  ------------------
  334|     44|            return;
  335|     44|         }
  336|  26.0k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 26.0k]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|  26.0k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|  26.0k|      }
  343|     28|      else [[unlikely]] {
  344|     28|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|     28|      }
  346|  26.1k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|  26.0k|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|  26.0k|      else {
  274|  26.0k|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|  26.0k|         else {
  298|  26.0k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|  26.0k|                                                                       it, end);
  300|  26.0k|         }
  301|  26.0k|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|  26.0k|   }
_ZN3glz24decode_index_unknown_keyITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_TkNS_10is_contextERNS_7contextERPKcS8_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT2_OT3_T4_:
  177|    609|   {
  178|    609|      if constexpr (Opts.error_on_unknown_keys) {
  179|    609|         ctx.error = error_code::unknown_key;
  180|       |      }
  181|       |      else {
  182|       |         auto* start = it;
  183|       |         uint64_t ascii_acc{};
  184|       |         skip_string_view(ctx, it, end, ascii_acc);
  185|       |         if (bool(ctx.error)) [[unlikely]]
  186|       |            return;
  187|       |         if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
  188|       |            return;
  189|       |         const sv key = {start, size_t(it - start)};
  190|       |         ++it;
  191|       |         if constexpr (not Opts.null_terminated) {
  192|       |            if (it == end) [[unlikely]] {
  193|       |               ctx.error = error_code::unexpected_end;
  194|       |               return;
  195|       |            }
  196|       |         }
  197|       |
  198|       |         if (parse_ws_colon<Opts>(ctx, it, end)) {
  199|       |            return;
  200|       |         }
  201|       |
  202|       |         parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  203|       |      }
  204|    609|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm1EEEDav:
  490|    146|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|    146|   {
  313|    146|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|    146|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|    146|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|    146|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 141, False: 5]
  |  Branch (321:52): [True: 76, False: 65]
  ------------------
  322|     76|         it += Length;
  323|     76|         if constexpr (not Opts.null_terminated) {
  324|     76|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 76]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|     76|         }
  329|       |
  330|     76|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 76]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|     76|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 24, False: 52]
  ------------------
  334|     24|            return;
  335|     24|         }
  336|     52|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 52]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|     52|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|     52|      }
  343|     70|      else [[unlikely]] {
  344|     70|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|     70|      }
  346|    146|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|     52|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|     52|      else {
  274|     52|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|     52|         else {
  298|     52|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|     52|                                                                       it, end);
  300|     52|         }
  301|     52|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|     52|   }
_ZN3glz4fromILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERPKcSC_S7_TkNS_10is_contextERNS_7contextEEEvRT2_OT3_OT0_T1_:
  887|   949k|      {
  888|       |         if constexpr (check_string_as_number(Opts)) {
  889|       |            auto start = it;
  890|       |            skip_number<Opts>(ctx, it, end);
  891|       |            if (bool(ctx.error)) [[unlikely]] {
  892|       |               return;
  893|       |            }
  894|       |            if (start == it) [[unlikely]] {
  895|       |               ctx.error = error_code::parse_number_failure;
  896|       |               return;
  897|       |            }
  898|       |            value.append(start, size_t(it - start));
  899|       |         }
  900|   949k|         else {
  901|   949k|            if constexpr (!check_opening_handled(Opts)) {
  902|       |               if constexpr (!check_ws_handled(Opts)) {
  903|       |                  if (skip_ws<Opts>(ctx, it, end)) {
  904|       |                     return;
  905|       |                  }
  906|       |               }
  907|       |
  908|   949k|               if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (908:20): [True: 103, False: 949k]
  ------------------
  909|    103|                  return;
  910|    103|               }
  911|   949k|            }
  912|       |
  913|   949k|            if constexpr (not check_raw_string(Opts)) {
  914|   949k|               static constexpr auto string_padding_bytes = 8;
  915|       |
  916|       |               // How much buffer has to remain for an eight byte load at the cursor to stay inside
  917|       |               // it. One on a padded input, where the last chunk is free to straddle the end of the
  918|       |               // document, so the byte tails below are unreachable; eight otherwise, which costs the
  919|       |               // final bytes of the buffer their chunked path and nothing else.
  920|   949k|               const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
  921|       |
  922|   949k|               if (size_t(end - it) >= 8) {
  ------------------
  |  Branch (922:20): [True: 948k, False: 496]
  ------------------
  923|       |                  // The bound as a pointer, so the loops below spend a compare per chunk rather
  924|       |                  // than a subtract and a compare. Well defined here and nowhere else in this
  925|       |                  // reader: the branch has just established that at least eight bytes remain, and
  926|       |                  // `scan_min` is at most eight.
  927|   948k|                  const auto* const chunk_limit = end - scan_min;
  928|       |
  929|   948k|                  auto start = it;
  930|   948k|                  uint64_t ascii_acc{};
  931|  13.5M|                  while (it <= chunk_limit) {
  ------------------
  |  Branch (931:26): [True: 13.5M, False: 853]
  ------------------
  932|  13.5M|                     uint64_t chunk;
  933|  13.5M|                     std::memcpy(&chunk, it, 8);
  934|       |                     if constexpr (std::endian::native == std::endian::big) {
  935|       |                        chunk = std::byteswap(chunk);
  936|       |                     }
  937|  13.5M|                     ascii_acc |= chunk;
  938|  13.5M|                     const uint64_t test_chars = has_quote(chunk);
  939|  13.5M|                     if (test_chars) {
  ------------------
  |  Branch (939:26): [True: 1.28M, False: 12.2M]
  ------------------
  940|  1.28M|                        it += (countr_zero(test_chars) >> 3);
  941|       |
  942|  1.28M|                        auto* prev = it - 1;
  943|  1.67M|                        while (*prev == '\\') {
  ------------------
  |  Branch (943:32): [True: 393k, False: 1.28M]
  ------------------
  944|   393k|                           --prev;
  945|   393k|                        }
  946|  1.28M|                        if (size_t(it - prev) % 2) {
  ------------------
  |  Branch (946:29): [True: 947k, False: 335k]
  ------------------
  947|   947k|                           goto continue_decode;
  948|   947k|                        }
  949|   335k|                        ++it; // skip the escaped quote
  950|   335k|                     }
  951|  12.2M|                     else {
  952|  12.2M|                        it += 8;
  953|  12.2M|                     }
  954|  13.5M|                  }
  955|       |
  956|  7.48k|                  while (it[-1] == '\\') [[unlikely]] {
  ------------------
  |  Branch (956:26): [True: 6.62k, False: 853]
  ------------------
  957|       |                     // if we ended on an escape character then we need to rewind
  958|       |                     // because we lost our context
  959|  6.62k|                     --it;
  960|  6.62k|                  }
  961|       |
  962|       |                  // The byte-wise tail keeps feeding the accumulator: it has to cover every byte of
  963|       |                  // the string, or a non-ASCII byte reached here would be waved through unvalidated.
  964|  9.62k|                  for (; it < end; ++it) {
  ------------------
  |  Branch (964:26): [True: 9.62k, False: 0]
  ------------------
  965|  9.62k|                     ascii_acc |= uint8_t(*it);
  966|  9.62k|                     if (*it == '"') {
  ------------------
  |  Branch (966:26): [True: 882, False: 8.74k]
  ------------------
  967|    882|                        auto* prev = it - 1;
  968|  7.31k|                        while (*prev == '\\') {
  ------------------
  |  Branch (968:32): [True: 6.43k, False: 882]
  ------------------
  969|  6.43k|                           --prev;
  970|  6.43k|                        }
  971|    882|                        if (size_t(it - prev) % 2) {
  ------------------
  |  Branch (971:29): [True: 853, False: 29]
  ------------------
  972|    853|                           goto continue_decode;
  973|    853|                        }
  974|    882|                     }
  975|  9.62k|                  }
  976|       |
  977|      0|                  ctx.error = error_code::unexpected_end;
  978|      0|                  return;
  979|       |
  980|   948k|               continue_decode:
  981|       |
  982|   948k|                  if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]] {
  ------------------
  |  Branch (982:23): [True: 15.6k, False: 933k]
  ------------------
  983|  15.6k|                     return;
  984|  15.6k|                  }
  985|       |
  986|   933k|                  auto n = size_t(it - start);
  987|       |
  988|       |                  // The padding lets the chunked copy below run up to the closing quote. Skip it when it
  989|       |                  // would be the only reason to allocate, as for a string that fits the small string
  990|       |                  // buffer but not with eight bytes to spare.
  991|   933k|                  bool pad = true;
  992|   933k|                  if constexpr (requires { value.capacity(); }) {
  993|   933k|                     const auto capacity = size_t(value.capacity());
  994|   933k|                     pad = capacity >= n + string_padding_bytes || capacity < n;
  ------------------
  |  Branch (994:28): [True: 598k, False: 334k]
  |  Branch (994:68): [True: 93.6k, False: 241k]
  ------------------
  995|   933k|                  }
  996|   933k|                  resize_unfilled(value, pad ? n + string_padding_bytes : n);
  ------------------
  |  Branch (996:42): [True: 691k, False: 241k]
  ------------------
  997|       |
  998|   933k|                  auto* p = value.data();
  999|       |
 1000|       |                  // An error below returns with the tail of `value` still unwritten. Leave the size at
 1001|       |                  // what was actually written rather than at the padded length, which resize_unfilled
 1002|       |                  // did not fill.
 1003|   933k|                  auto* const written_begin = p;
 1004|       |
 1005|       |                  // Without the padding, copy a chunk only while eight bytes remain before the quote.
 1006|       |                  // Unescaping never puts the output ahead of the input, so no store lands past the end.
 1007|   933k|                  const auto* const copy_end = pad ? it : it - (std::min)(n, size_t(7));
  ------------------
  |  Branch (1007:48): [True: 691k, False: 241k]
  ------------------
 1008|       |
 1009|       |                  // Copy eight bytes at a time for as long as eight bytes are there to read, then
 1010|       |                  // finish the span below. The chunked form reads past the character it is looking
 1011|       |                  // at, so on an unpadded buffer it has to stop short of the end; splitting it this
 1012|       |                  // way keeps it for the body of every string rather than giving it up whenever the
 1013|       |                  // string happens to finish near the end of the buffer -- which, for a document
 1014|       |                  // that is itself one string, is every string.
 1015|  7.89M|                  while (start < copy_end && start <= chunk_limit) {
  ------------------
  |  Branch (1015:26): [True: 6.96M, False: 922k]
  |  Branch (1015:46): [True: 6.96M, False: 376]
  ------------------
 1016|  6.96M|                     std::memcpy(p, start, 8);
 1017|  6.96M|                     uint64_t swar;
 1018|  6.96M|                     std::memcpy(&swar, p, 8);
 1019|       |                     if constexpr (std::endian::native == std::endian::big) {
 1020|       |                        swar = std::byteswap(swar);
 1021|       |                     }
 1022|       |
 1023|  6.96M|                     constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1024|  6.96M|                     const uint64_t lo7 = swar & lo7_mask;
 1025|  6.96M|                     const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1026|  6.96M|                     const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1027|  6.96M|                     uint64_t next = ~((backslash & less_32) | swar);
 1028|       |
 1029|  6.96M|                     next &= repeat_byte8(0b10000000);
 1030|  6.96M|                     if (next == 0) {
  ------------------
  |  Branch (1030:26): [True: 6.40M, False: 567k]
  ------------------
 1031|  6.40M|                        start += 8;
 1032|  6.40M|                        p += 8;
 1033|  6.40M|                        continue;
 1034|  6.40M|                     }
 1035|       |
 1036|   567k|                     next = countr_zero(next) >> 3;
 1037|   567k|                     start += next;
 1038|   567k|                     if (start >= it) {
  ------------------
  |  Branch (1038:26): [True: 442, False: 567k]
  ------------------
 1039|    442|                        break;
 1040|    442|                     }
 1041|       |
 1042|   567k|                     if ((*start & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1042:26): [True: 10.0k, False: 557k]
  ------------------
 1043|  10.0k|                        ctx.error = error_code::syntax_error;
 1044|  10.0k|                        value.resize(size_t(p - written_begin));
 1045|  10.0k|                        return;
 1046|  10.0k|                     }
 1047|   557k|                     ++start; // skip the escape
 1048|   557k|                     if (*start == 'u') {
  ------------------
  |  Branch (1048:26): [True: 1.96k, False: 555k]
  ------------------
 1049|  1.96k|                        ++start;
 1050|  1.96k|                        p += next;
 1051|  1.96k|                        const auto mark = start;
 1052|  1.96k|                        const auto decoded = handle_unicode_code_point(start, p, end);
 1053|  1.96k|                        if (decoded.written == 0) [[unlikely]] {
  ------------------
  |  Branch (1053:29): [True: 146, False: 1.81k]
  ------------------
 1054|    146|                           ctx.error = decoded.truncated ? error_code::unexpected_end
  ------------------
  |  Branch (1054:40): [True: 0, False: 146]
  ------------------
 1055|    146|                                                         : error_code::unicode_escape_conversion_failure;
 1056|    146|                           value.resize(size_t(p - written_begin));
 1057|    146|                           return;
 1058|    146|                        }
 1059|  1.81k|                        n += decoded.written;
 1060|       |                        // escape + u + unicode code points
 1061|  1.81k|                        n -= 2 + uint32_t(start - mark);
 1062|  1.81k|                     }
 1063|   555k|                     else {
 1064|   555k|                        p += next;
 1065|   555k|                        *p = char_unescape_table[uint8_t(*start)];
 1066|   555k|                        if (*p == 0) [[unlikely]] {
  ------------------
  |  Branch (1066:29): [True: 23, False: 555k]
  ------------------
 1067|     23|                           ctx.error = error_code::invalid_escape;
 1068|     23|                           value.resize(size_t(p - written_begin));
 1069|     23|                           return;
 1070|     23|                        }
 1071|   555k|                        ++p;
 1072|   555k|                        ++start;
 1073|   555k|                        --n;
 1074|   555k|                     }
 1075|   557k|                  }
 1076|       |
 1077|       |                  // Whatever the chunked copy could not reach. `p` and `start` stay in step across
 1078|       |                  // that loop, so this picks up exactly where it stopped.
 1079|  2.40M|                  while (start < it) {
  ------------------
  |  Branch (1079:26): [True: 1.48M, False: 922k]
  ------------------
 1080|  1.48M|                     if ((*start & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1080:26): [True: 111, False: 1.48M]
  ------------------
 1081|    111|                        ctx.error = error_code::syntax_error;
 1082|    111|                        value.resize(size_t(p - written_begin));
 1083|    111|                        return;
 1084|    111|                     }
 1085|  1.48M|                     if (*start == '\\') {
  ------------------
  |  Branch (1085:26): [True: 811, False: 1.48M]
  ------------------
 1086|    811|                        ++start; // skip the escape
 1087|    811|                        if (*start == 'u') {
  ------------------
  |  Branch (1087:29): [True: 104, False: 707]
  ------------------
 1088|    104|                           ++start;
 1089|    104|                           const auto mark = start;
 1090|    104|                           const auto decoded = handle_unicode_code_point(start, p, end);
 1091|    104|                           if (decoded.written == 0) [[unlikely]] {
  ------------------
  |  Branch (1091:32): [True: 56, False: 48]
  ------------------
 1092|     56|                              ctx.error = decoded.truncated ? error_code::unexpected_end
  ------------------
  |  Branch (1092:43): [True: 0, False: 56]
  ------------------
 1093|     56|                                                            : error_code::unicode_escape_conversion_failure;
 1094|     56|                              value.resize(size_t(p - written_begin));
 1095|     56|                              return;
 1096|     56|                           }
 1097|     48|                           n += decoded.written;
 1098|     48|                           n -= 2 + uint32_t(start - mark);
 1099|     48|                        }
 1100|    707|                        else {
 1101|    707|                           *p = char_unescape_table[uint8_t(*start)];
 1102|    707|                           if (*p == 0) [[unlikely]] {
  ------------------
  |  Branch (1102:32): [True: 11, False: 696]
  ------------------
 1103|     11|                              ctx.error = error_code::invalid_escape;
 1104|     11|                              value.resize(size_t(p - written_begin));
 1105|     11|                              return;
 1106|     11|                           }
 1107|    696|                           ++p;
 1108|    696|                           ++start;
 1109|    696|                           --n;
 1110|    696|                        }
 1111|    811|                     }
 1112|  1.48M|                     else {
 1113|  1.48M|                        *p = *start;
 1114|  1.48M|                        ++p;
 1115|  1.48M|                        ++start;
 1116|  1.48M|                     }
 1117|  1.48M|                  }
 1118|       |
 1119|   922k|                  value.resize(n);
 1120|   922k|                  ++it;
 1121|   922k|               }
 1122|    496|               else {
 1123|       |                  // For short strings
 1124|       |
 1125|    496|                  std::array<char, 8> buffer{};
 1126|       |
 1127|    496|                  auto* p = buffer.data();
 1128|    496|                  const auto* const utf8_start = it;
 1129|       |
 1130|  1.12k|                  while (it < end) [[likely]] {
  ------------------
  |  Branch (1130:26): [True: 1.01k, False: 103]
  ------------------
 1131|  1.01k|                     *p = *it;
 1132|  1.01k|                     if (*it == '"') {
  ------------------
  |  Branch (1132:26): [True: 317, False: 700]
  ------------------
 1133|    317|                        if (validate_utf8_span<Opts>(ctx, utf8_start, it)) [[unlikely]] {
  ------------------
  |  Branch (1133:29): [True: 0, False: 317]
  ------------------
 1134|      0|                           return;
 1135|      0|                        }
 1136|    317|                        const size_t n = size_t(p - buffer.data());
 1137|    317|#if __has_cpp_attribute(assume) >= 202207L
 1138|    317|                        [[assume(n <= sizeof(buffer))]];
 1139|    317|#endif
 1140|    317|                        value.assign(buffer.data(), n);
 1141|    317|                        ++it;
 1142|    317|                        if constexpr (not Opts.null_terminated) {
 1143|    317|                           if (it == end) {
  ------------------
  |  Branch (1143:32): [True: 195, False: 122]
  ------------------
 1144|    195|                              ctx.error = error_code::end_reached;
 1145|    195|                              return;
 1146|    195|                           }
 1147|    317|                        }
 1148|    122|                        return;
 1149|    317|                     }
 1150|    700|                     else if (*it == '\\') {
  ------------------
  |  Branch (1150:31): [True: 160, False: 540]
  ------------------
 1151|       |                        // Bounded whatever `null_terminated` says: a document cut off inside an
 1152|       |                        // escape has run out of input, and saying so beats blaming the terminator
 1153|       |                        // the cut exposed -- which is what reading on would find, and would report
 1154|       |                        // as a malformed escape.
 1155|    160|                        ++it; // skip the escape
 1156|    160|                        if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1156:29): [True: 0, False: 160]
  ------------------
 1157|      0|                           ctx.error = error_code::unexpected_end;
 1158|      0|                           return;
 1159|      0|                        }
 1160|    160|                        if (*it == 'u') {
  ------------------
  |  Branch (1160:29): [True: 97, False: 63]
  ------------------
 1161|     97|                           ++it;
 1162|     97|                           if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1162:32): [True: 0, False: 97]
  ------------------
 1163|      0|                              ctx.error = error_code::unexpected_end;
 1164|      0|                              return;
 1165|      0|                           }
 1166|     97|                           const auto decoded = handle_unicode_code_point(it, p, end);
 1167|     97|                           if (decoded.written == 0) [[unlikely]] {
  ------------------
  |  Branch (1167:32): [True: 38, False: 59]
  ------------------
 1168|     38|                              ctx.error = decoded.truncated ? error_code::unexpected_end
  ------------------
  |  Branch (1168:43): [True: 0, False: 38]
  ------------------
 1169|     38|                                                            : error_code::unicode_escape_conversion_failure;
 1170|     38|                              return;
 1171|     38|                           }
 1172|     97|                        }
 1173|     63|                        else {
 1174|     63|                           *p = char_unescape_table[uint8_t(*it)];
 1175|     63|                           if (*p == 0) [[unlikely]] {
  ------------------
  |  Branch (1175:32): [True: 9, False: 54]
  ------------------
 1176|      9|                              ctx.error = error_code::invalid_escape;
 1177|      9|                              return;
 1178|      9|                           }
 1179|     54|                           ++p;
 1180|     54|                           ++it;
 1181|     54|                        }
 1182|    160|                     }
 1183|    540|                     else if ((*it & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1183:31): [True: 29, False: 511]
  ------------------
 1184|     29|                        ctx.error = error_code::syntax_error;
 1185|     29|                        return;
 1186|     29|                     }
 1187|    511|                     else {
 1188|    511|                        ++it;
 1189|    511|                        ++p;
 1190|    511|                     }
 1191|  1.01k|                  }
 1192|       |
 1193|    103|                  ctx.error = error_code::unexpected_end;
 1194|    103|               }
 1195|       |            }
 1196|       |            else {
 1197|       |               // raw_string
 1198|       |               auto start = it;
 1199|       |               skip_string_view(ctx, it, end);
 1200|       |               if (bool(ctx.error)) [[unlikely]]
 1201|       |                  return;
 1202|       |
 1203|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]] {
 1204|       |                  return;
 1205|       |               }
 1206|       |
 1207|       |               value.assign(start, size_t(it - start));
 1208|       |               ++it;
 1209|       |            }
 1210|   949k|         }
 1211|   949k|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm2EEEDav:
  490|    935|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm2ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|    935|   {
  313|    935|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|    935|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|    935|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|    935|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 931, False: 4]
  |  Branch (321:52): [True: 908, False: 23]
  ------------------
  322|    908|         it += Length;
  323|    908|         if constexpr (not Opts.null_terminated) {
  324|    908|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 908]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|    908|         }
  329|       |
  330|    908|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 908]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|    908|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 30, False: 878]
  ------------------
  334|     30|            return;
  335|     30|         }
  336|    878|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 878]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|    878|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|    878|      }
  343|     27|      else [[unlikely]] {
  344|     27|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|     27|      }
  346|    935|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm2ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|    878|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|    878|      else {
  274|    878|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|    878|         else {
  298|    878|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|    878|                                                                       it, end);
  300|    878|         }
  301|    878|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|    878|   }
_ZN3glz4fromILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2791|    878|      {
 2792|    878|         static constexpr auto num_members = reflect<T>::size;
 2793|       |
 2794|    878|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2795|    878|         if constexpr (!check_opening_handled(Options)) {
 2796|       |            if constexpr (!check_ws_handled(Options)) {
 2797|       |               if (skip_ws<Opts>(ctx, it, end)) {
 2798|       |                  return;
 2799|       |               }
 2800|       |            }
 2801|    878|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2801:17): [True: 26, False: 852]
  ------------------
 2802|     26|               return;
 2803|     26|            }
 2804|    852|            if constexpr (not Opts.null_terminated) {
 2805|    852|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2805:20): [True: 0, False: 852]
  ------------------
 2806|      0|                  ctx.error = error_code::unexpected_end;
 2807|      0|                  return;
 2808|      0|               }
 2809|    852|            }
 2810|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2811|       |            // released at each syntactic close below
 2812|    852|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2812:17): [True: 0, False: 852]
  ------------------
 2813|      0|               return;
 2814|      0|            }
 2815|    852|         }
 2816|    852|         const auto ws_start = it;
 2817|    878|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2817:14): [True: 0, False: 878]
  ------------------
 2818|      0|            return;
 2819|      0|         }
 2820|    878|         const size_t ws_size = size_t(it - ws_start);
 2821|       |
 2822|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2823|       |            if constexpr (not tag.sv().empty()) {
 2824|       |               if (*it == '"') {
 2825|       |                  ++it;
 2826|       |                  if constexpr (not Opts.null_terminated) {
 2827|       |                     if (it == end) [[unlikely]] {
 2828|       |                        ctx.error = error_code::unexpected_end;
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|       |
 2833|       |                  const auto start = it;
 2834|       |                  skip_string_view(ctx, it, end);
 2835|       |                  if (bool(ctx.error)) [[unlikely]]
 2836|       |                     return;
 2837|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2838|       |                     return;
 2839|       |                  const sv key{start, size_t(it - start)};
 2840|       |                  ++it;
 2841|       |                  if constexpr (not Opts.null_terminated) {
 2842|       |                     if (it == end) [[unlikely]] {
 2843|       |                        ctx.error = error_code::unexpected_end;
 2844|       |                        return;
 2845|       |                     }
 2846|       |                  }
 2847|       |
 2848|       |                  if (key == tag.sv()) {
 2849|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2850|       |                        return;
 2851|       |                     }
 2852|       |
 2853|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2854|       |                     if (bool(ctx.error)) [[unlikely]]
 2855|       |                        return;
 2856|       |
 2857|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2858|       |                        return;
 2859|       |                     }
 2860|       |                  }
 2861|       |                  else {
 2862|       |                     ctx.error = error_code::unknown_key;
 2863|       |                     return;
 2864|       |                  }
 2865|       |               }
 2866|       |            }
 2867|       |
 2868|       |            if (*it == '}') [[likely]] {
 2869|       |               --ctx.depth;
 2870|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2871|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2872|       |                     auto wrapper = self_constraint_v<T>(value);
 2873|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2874|       |                     if (bool(ctx.error)) {
 2875|       |                        return;
 2876|       |                     }
 2877|       |                  }
 2878|       |               }
 2879|       |               ++it;
 2880|       |               if constexpr (not Opts.null_terminated) {
 2881|       |                  if (it == end) {
 2882|       |                     ctx.error = error_code::end_reached;
 2883|       |                     return;
 2884|       |                  }
 2885|       |               }
 2886|       |               if constexpr (Opts.partial_read) {
 2887|       |                  ctx.error = error_code::partial_read_complete;
 2888|       |               }
 2889|       |               return;
 2890|       |            }
 2891|       |            ctx.error = error_code::unknown_key;
 2892|       |            return;
 2893|       |         }
 2894|    878|         else {
 2895|    878|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|    878|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|    878|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|    878|                  return bit_array<num_members>{};
 2899|    878|               }
 2900|    878|               else {
 2901|    878|                  return nullptr;
 2902|    878|               }
 2903|    878|            }();
 2904|       |
 2905|       |            // A file include merges an external document into this object, so with
 2906|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2907|       |            // context::key_bits). While this object parses, its bits are published for its
 2908|       |            // includer members to hand down; and if this parse is itself an included document,
 2909|       |            // it claims the bits of the object that included us and merges into them at the
 2910|       |            // closing brace instead of running a check of its own.
 2911|    878|            static constexpr bool tracks_include_keys = [] {
 2912|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2913|    878|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2914|    878|                  return has_includer_member<T>;
 2915|    878|               }
 2916|    878|               else {
 2917|    878|                  return false;
 2918|    878|               }
 2919|    878|            }();
 2920|    878|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2921|       |            if constexpr (tracks_include_keys) {
 2922|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2923|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2924|       |                  ctx.include_key_bits = nullptr;
 2925|       |                  ctx.include_key_type = nullptr;
 2926|       |               }
 2927|       |            }
 2928|    878|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2929|    878|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2930|    878|                                                      inert_key_bits_scope> published_bits{
 2931|    878|               ctx, [&]() -> void* {
 2932|    878|                  if constexpr (tracks_include_keys) {
 2933|    878|                     return &fields;
 2934|    878|                  }
 2935|    878|                  else {
 2936|    878|                     return nullptr;
 2937|    878|                  }
 2938|    878|               }()};
 2939|       |
 2940|    878|            size_t read_count{}; // for partial_read
 2941|       |
 2942|    878|            bool first = true;
 2943|  5.25k|            while (true) {
  ------------------
  |  Branch (2943:20): [True: 4.52k, Folded]
  ------------------
 2944|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2945|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2946|       |                     bit_array<num_members> arr{};
 2947|       |                     for (size_t i = 0; i < num_members; ++i) {
 2948|       |                        arr[i] = true;
 2949|       |                     }
 2950|       |                     return arr;
 2951|       |                  }();
 2952|       |
 2953|       |                  if ((all_fields & fields) == all_fields) {
 2954|       |                     ctx.error = error_code::partial_read_complete;
 2955|       |                     --ctx.depth; // as above: an early success still closes this level
 2956|       |                     return;
 2957|       |                  }
 2958|       |               }
 2959|       |
 2960|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2961|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2962|       |                  if (ctx.stream.enabled()) {
 2963|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2964|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2965|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2966|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2967|       |                        const char* new_it;
 2968|       |                        const char* new_end;
 2969|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2970|       |                        it = new_it;
 2971|       |                        end = new_end;
 2972|       |                        if (it >= end && ctx.stream.at_eof()) {
 2973|       |                           ctx.error = error_code::unexpected_end;
 2974|       |                           return;
 2975|       |                        }
 2976|       |                     }
 2977|       |                  }
 2978|       |               }
 2979|       |
 2980|  4.52k|               if (*it == '}') {
  ------------------
  |  Branch (2980:20): [True: 130, False: 4.39k]
  ------------------
 2981|    130|                  --ctx.depth;
 2982|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2983|       |                     const bool defer_to_includer = [&] {
 2984|       |                        if constexpr (tracks_include_keys) {
 2985|       |                           if (include_bits) {
 2986|       |                              // An included document is a fragment: hand the keys it supplied to
 2987|       |                              // the object that included it, which checks the union of both.
 2988|       |                              *include_bits |= fields;
 2989|       |                              return true;
 2990|       |                           }
 2991|       |                        }
 2992|       |                        return false;
 2993|       |                     }();
 2994|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2995|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2996|       |                        for (size_t i = 0; i < num_members; ++i) {
 2997|       |                           if (not fields[i] && req_fields[i]) {
 2998|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 2999|       |                              // We just return the first missing key in order to avoid heap allocations
 3000|       |                              break;
 3001|       |                           }
 3002|       |                        }
 3003|       |
 3004|       |                        ctx.error = error_code::missing_key;
 3005|       |                        return;
 3006|       |                     }
 3007|       |                  }
 3008|    130|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3009|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3010|       |                        auto wrapper = self_constraint_v<T>(value);
 3011|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3012|       |                        if (bool(ctx.error)) {
 3013|       |                           return;
 3014|       |                        }
 3015|       |                     }
 3016|    130|                  }
 3017|    130|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3018|    130|                  if constexpr (not Opts.null_terminated) {
 3019|    130|                     if (it == end) {
  ------------------
  |  Branch (3019:26): [True: 0, False: 130]
  ------------------
 3020|      0|                        ctx.error = error_code::end_reached;
 3021|      0|                        return;
 3022|      0|                     }
 3023|    130|                  }
 3024|    130|                  return;
 3025|    130|               }
 3026|  4.39k|               else if (first) {
  ------------------
  |  Branch (3026:25): [True: 791, False: 3.60k]
  ------------------
 3027|    791|                  first = false;
 3028|    791|               }
 3029|  3.60k|               else {
 3030|  3.60k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3030:23): [True: 19, False: 3.58k]
  ------------------
 3031|     19|                     return;
 3032|     19|                  }
 3033|  3.58k|                  if constexpr (not Opts.null_terminated) {
 3034|  3.58k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3034:26): [True: 0, False: 3.58k]
  ------------------
 3035|      0|                        ctx.error = error_code::unexpected_end;
 3036|      0|                        return;
 3037|      0|                     }
 3038|  3.58k|                  }
 3039|       |
 3040|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3041|  3.58k|                                (!Opts.comments)) {
 3042|  3.58k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (3042:26): [True: 3.35k, False: 223]
  |  Branch (3042:37): [True: 2.62k, False: 730]
  ------------------
 3043|  2.62k|                        skip_matching_ws(ws_start, it, ws_size);
 3044|  2.62k|                     }
 3045|  3.58k|                  }
 3046|       |
 3047|  3.58k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3047:23): [True: 0, False: 3.58k]
  ------------------
 3048|      0|                     return;
 3049|      0|                  }
 3050|  3.58k|               }
 3051|       |
 3052|  4.37k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3052:49): [Folded, False: 0]
  |  Branch (3052:70): [True: 0, Folded]
  ------------------
 3053|       |
 3054|       |               if constexpr (reflection_type && (num_members == 0)) {
 3055|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3056|       |                     static_assert(false_v<T>, "This should be unreachable");
 3057|       |                  }
 3058|       |                  else {
 3059|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3060|       |                        return;
 3061|       |                     }
 3062|       |
 3063|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3064|       |
 3065|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3066|       |                     // handled by the user.
 3067|       |
 3068|       |                     const auto start = it;
 3069|       |                     uint64_t ascii_acc{};
 3070|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3071|       |                     if (bool(ctx.error)) [[unlikely]]
 3072|       |                        return;
 3073|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3074|       |                        return;
 3075|       |                     const sv key{start, size_t(it - start)};
 3076|       |                     ++it;
 3077|       |                     if constexpr (not Opts.null_terminated) {
 3078|       |                        if (it == end) [[unlikely]] {
 3079|       |                           ctx.error = error_code::unexpected_end;
 3080|       |                           return;
 3081|       |                        }
 3082|       |                     }
 3083|       |
 3084|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3085|       |                        return;
 3086|       |                     }
 3087|       |
 3088|       |                     // Check if this key is the variant tag that should be skipped
 3089|       |                     if constexpr (not tag.sv().empty()) {
 3090|       |                        if (key == tag.sv()) {
 3091|       |                           // Skip the tag value
 3092|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3093|       |                           if (bool(ctx.error)) [[unlikely]]
 3094|       |                              return;
 3095|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3096|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3097|       |                              return;
 3098|       |                           }
 3099|       |                           continue;
 3100|       |                        }
 3101|       |                     }
 3102|       |
 3103|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3104|       |                     if (bool(ctx.error)) [[unlikely]]
 3105|       |                        return;
 3106|       |                     if constexpr (not Opts.null_terminated) {
 3107|       |                        if (it == end) [[unlikely]] {
 3108|       |                           ctx.error = error_code::unexpected_end;
 3109|       |                           return;
 3110|       |                        }
 3111|       |                     }
 3112|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3113|       |                        return;
 3114|       |                     }
 3115|       |                  }
 3116|       |               }
 3117|  4.37k|               else if constexpr (reflection_type) {
 3118|  4.37k|                  static_assert(bool(hash_info<T>.type));
 3119|       |
 3120|  4.37k|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3120:23): [True: 651, False: 3.72k]
  ------------------
 3121|    651|                     ctx.error = error_code::expected_quote;
 3122|    651|                     return;
 3123|    651|                  }
 3124|  3.72k|                  ++it;
 3125|  3.72k|                  if constexpr (not Opts.null_terminated) {
 3126|  3.72k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3126:26): [True: 0, False: 3.72k]
  ------------------
 3127|      0|                        ctx.error = error_code::unexpected_end;
 3128|      0|                        return;
 3129|      0|                     }
 3130|  3.72k|                  }
 3131|       |
 3132|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3133|       |                     // For tagged variants we first check to see if the key matches the tag
 3134|       |                     // We only need to do this if the tag is not part of the keys
 3135|       |
 3136|       |                     const auto start = it;
 3137|       |                     uint64_t ascii_acc{};
 3138|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3139|       |                     if (bool(ctx.error)) [[unlikely]]
 3140|       |                        return;
 3141|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3142|       |                        return;
 3143|       |                     const sv key{start, size_t(it - start)};
 3144|       |                     ++it;
 3145|       |                     if constexpr (not Opts.null_terminated) {
 3146|       |                        if (it == end) [[unlikely]] {
 3147|       |                           ctx.error = error_code::unexpected_end;
 3148|       |                           return;
 3149|       |                        }
 3150|       |                     }
 3151|       |
 3152|       |                     if (key == tag.sv()) {
 3153|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3154|       |                           return;
 3155|       |                        }
 3156|       |
 3157|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3158|       |                        if (bool(ctx.error)) [[unlikely]]
 3159|       |                           return;
 3160|       |
 3161|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3162|       |                           return;
 3163|       |                        }
 3164|       |                        continue;
 3165|       |                     }
 3166|       |                     else {
 3167|       |                        it = start; // reset the iterator
 3168|       |                     }
 3169|       |                  }
 3170|       |
 3171|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3172|       |                     size_t index = num_members;
 3173|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3174|       |                     if (bool(ctx.error)) [[unlikely]]
 3175|       |                        return;
 3176|       |                     if (index < num_members) {
 3177|       |                        fields[index] = true;
 3178|       |                     }
 3179|       |                  }
 3180|  3.72k|                  else {
 3181|  3.72k|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3182|  3.72k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3182:26): [True: 52, False: 3.67k]
  ------------------
 3183|     52|                        return;
 3184|  3.72k|                  }
 3185|       |               }
 3186|       |               else {
 3187|       |                  // For types like std::map, std::unordered_map
 3188|       |
 3189|       |                  auto reading = [&](auto&& key) {
 3190|       |                     if constexpr (Opts.partial_read) {
 3191|       |                        if (auto element = value.find(key); element != value.end()) {
 3192|       |                           ++read_count;
 3193|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|       |                        }
 3195|       |                        else {
 3196|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|       |                        }
 3198|       |                     }
 3199|       |                     else {
 3200|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|       |                     }
 3202|       |                  };
 3203|       |
 3204|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3205|       |                  using Key = typename T::key_type;
 3206|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3207|       |                     ctx.scratch.clear();
 3208|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3209|       |                     if (bool(ctx.error)) [[unlikely]]
 3210|       |                        return;
 3211|       |
 3212|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3213|       |                        return;
 3214|       |                     }
 3215|       |
 3216|       |                     reading(ctx.scratch);
 3217|       |                     if constexpr (Opts.partial_read) {
 3218|       |                        if (read_count == value.size()) {
 3219|       |                           return;
 3220|       |                        }
 3221|       |                     }
 3222|       |                     if (bool(ctx.error)) [[unlikely]]
 3223|       |                        return;
 3224|       |                  }
 3225|       |                  else if constexpr (str_t<Key>) {
 3226|       |                     Key key;
 3227|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3228|       |                     if (bool(ctx.error)) [[unlikely]]
 3229|       |                        return;
 3230|       |
 3231|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3232|       |                        return;
 3233|       |                     }
 3234|       |
 3235|       |                     reading(key);
 3236|       |                     if constexpr (Opts.partial_read) {
 3237|       |                        if (read_count == value.size()) {
 3238|       |                           return;
 3239|       |                        }
 3240|       |                     }
 3241|       |                     if (bool(ctx.error)) [[unlikely]]
 3242|       |                        return;
 3243|       |                  }
 3244|       |                  else {
 3245|       |                     Key key_value{};
 3246|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3247|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3248|       |                     }
 3249|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3250|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3251|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3252|       |                     }
 3253|       |                     else {
 3254|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3255|       |                     }
 3256|       |                     if (bool(ctx.error)) [[unlikely]]
 3257|       |                        return;
 3258|       |
 3259|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3260|       |                        return;
 3261|       |                     }
 3262|       |
 3263|       |                     reading(key_value);
 3264|       |                     if constexpr (Opts.partial_read) {
 3265|       |                        if (read_count == value.size()) {
 3266|       |                           return;
 3267|       |                        }
 3268|       |                     }
 3269|       |                     if (bool(ctx.error)) [[unlikely]]
 3270|       |                        return;
 3271|       |                  }
 3272|       |               }
 3273|       |
 3274|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3275|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3276|       |                  if (ctx.stream.enabled()) {
 3277|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3278|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3279|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3280|       |                        const char* new_it;
 3281|       |                        const char* new_end;
 3282|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3283|       |                        it = new_it;
 3284|       |                        end = new_end;
 3285|       |                        if (it >= end && ctx.stream.at_eof()) {
 3286|       |                           ctx.error = error_code::unexpected_end;
 3287|       |                           return;
 3288|       |                        }
 3289|       |                     }
 3290|       |                  }
 3291|       |               }
 3292|       |
 3293|  4.37k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3293:20): [True: 0, False: 4.37k]
  ------------------
 3294|      0|                  return;
 3295|      0|               }
 3296|  4.37k|            }
 3297|    878|         }
 3298|    878|      }
_ZZN3glz4fromILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2895|    852|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|       |                  return bit_array<num_members>{};
 2899|       |               }
 2900|    852|               else {
 2901|    852|                  return nullptr;
 2902|    852|               }
 2903|    852|            }();
_ZZN3glz4fromILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2931|    852|               ctx, [&]() -> void* {
 2932|       |                  if constexpr (tracks_include_keys) {
 2933|       |                     return &fields;
 2934|       |                  }
 2935|    852|                  else {
 2936|    852|                     return nullptr;
 2937|    852|                  }
 2938|    852|               }()};
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm3EEEDav:
  490|    821|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm3ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|    821|   {
  313|    821|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|    821|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|    821|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|    821|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 814, False: 7]
  |  Branch (321:52): [True: 789, False: 25]
  ------------------
  322|    789|         it += Length;
  323|    789|         if constexpr (not Opts.null_terminated) {
  324|    789|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 789]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|    789|         }
  329|       |
  330|    789|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 789]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|    789|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 33, False: 756]
  ------------------
  334|     33|            return;
  335|     33|         }
  336|    756|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 756]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|    756|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|    756|      }
  343|     32|      else [[unlikely]] {
  344|     32|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|     32|      }
  346|    821|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm3ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|    756|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|    756|      else {
  274|    756|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|    756|         else {
  298|    756|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|    756|                                                                       it, end);
  300|    756|         }
  301|    756|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|    756|   }
_ZN3glz4fromILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2791|    756|      {
 2792|    756|         static constexpr auto num_members = reflect<T>::size;
 2793|       |
 2794|    756|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2795|    756|         if constexpr (!check_opening_handled(Options)) {
 2796|       |            if constexpr (!check_ws_handled(Options)) {
 2797|       |               if (skip_ws<Opts>(ctx, it, end)) {
 2798|       |                  return;
 2799|       |               }
 2800|       |            }
 2801|    756|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2801:17): [True: 38, False: 718]
  ------------------
 2802|     38|               return;
 2803|     38|            }
 2804|    718|            if constexpr (not Opts.null_terminated) {
 2805|    718|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2805:20): [True: 0, False: 718]
  ------------------
 2806|      0|                  ctx.error = error_code::unexpected_end;
 2807|      0|                  return;
 2808|      0|               }
 2809|    718|            }
 2810|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2811|       |            // released at each syntactic close below
 2812|    718|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2812:17): [True: 0, False: 718]
  ------------------
 2813|      0|               return;
 2814|      0|            }
 2815|    718|         }
 2816|    718|         const auto ws_start = it;
 2817|    756|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2817:14): [True: 0, False: 756]
  ------------------
 2818|      0|            return;
 2819|      0|         }
 2820|    756|         const size_t ws_size = size_t(it - ws_start);
 2821|       |
 2822|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2823|       |            if constexpr (not tag.sv().empty()) {
 2824|       |               if (*it == '"') {
 2825|       |                  ++it;
 2826|       |                  if constexpr (not Opts.null_terminated) {
 2827|       |                     if (it == end) [[unlikely]] {
 2828|       |                        ctx.error = error_code::unexpected_end;
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|       |
 2833|       |                  const auto start = it;
 2834|       |                  skip_string_view(ctx, it, end);
 2835|       |                  if (bool(ctx.error)) [[unlikely]]
 2836|       |                     return;
 2837|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2838|       |                     return;
 2839|       |                  const sv key{start, size_t(it - start)};
 2840|       |                  ++it;
 2841|       |                  if constexpr (not Opts.null_terminated) {
 2842|       |                     if (it == end) [[unlikely]] {
 2843|       |                        ctx.error = error_code::unexpected_end;
 2844|       |                        return;
 2845|       |                     }
 2846|       |                  }
 2847|       |
 2848|       |                  if (key == tag.sv()) {
 2849|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2850|       |                        return;
 2851|       |                     }
 2852|       |
 2853|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2854|       |                     if (bool(ctx.error)) [[unlikely]]
 2855|       |                        return;
 2856|       |
 2857|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2858|       |                        return;
 2859|       |                     }
 2860|       |                  }
 2861|       |                  else {
 2862|       |                     ctx.error = error_code::unknown_key;
 2863|       |                     return;
 2864|       |                  }
 2865|       |               }
 2866|       |            }
 2867|       |
 2868|       |            if (*it == '}') [[likely]] {
 2869|       |               --ctx.depth;
 2870|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2871|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2872|       |                     auto wrapper = self_constraint_v<T>(value);
 2873|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2874|       |                     if (bool(ctx.error)) {
 2875|       |                        return;
 2876|       |                     }
 2877|       |                  }
 2878|       |               }
 2879|       |               ++it;
 2880|       |               if constexpr (not Opts.null_terminated) {
 2881|       |                  if (it == end) {
 2882|       |                     ctx.error = error_code::end_reached;
 2883|       |                     return;
 2884|       |                  }
 2885|       |               }
 2886|       |               if constexpr (Opts.partial_read) {
 2887|       |                  ctx.error = error_code::partial_read_complete;
 2888|       |               }
 2889|       |               return;
 2890|       |            }
 2891|       |            ctx.error = error_code::unknown_key;
 2892|       |            return;
 2893|       |         }
 2894|    756|         else {
 2895|    756|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|    756|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|    756|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|    756|                  return bit_array<num_members>{};
 2899|    756|               }
 2900|    756|               else {
 2901|    756|                  return nullptr;
 2902|    756|               }
 2903|    756|            }();
 2904|       |
 2905|       |            // A file include merges an external document into this object, so with
 2906|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2907|       |            // context::key_bits). While this object parses, its bits are published for its
 2908|       |            // includer members to hand down; and if this parse is itself an included document,
 2909|       |            // it claims the bits of the object that included us and merges into them at the
 2910|       |            // closing brace instead of running a check of its own.
 2911|    756|            static constexpr bool tracks_include_keys = [] {
 2912|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2913|    756|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2914|    756|                  return has_includer_member<T>;
 2915|    756|               }
 2916|    756|               else {
 2917|    756|                  return false;
 2918|    756|               }
 2919|    756|            }();
 2920|    756|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2921|       |            if constexpr (tracks_include_keys) {
 2922|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2923|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2924|       |                  ctx.include_key_bits = nullptr;
 2925|       |                  ctx.include_key_type = nullptr;
 2926|       |               }
 2927|       |            }
 2928|    756|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2929|    756|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2930|    756|                                                      inert_key_bits_scope> published_bits{
 2931|    756|               ctx, [&]() -> void* {
 2932|    756|                  if constexpr (tracks_include_keys) {
 2933|    756|                     return &fields;
 2934|    756|                  }
 2935|    756|                  else {
 2936|    756|                     return nullptr;
 2937|    756|                  }
 2938|    756|               }()};
 2939|       |
 2940|    756|            size_t read_count{}; // for partial_read
 2941|       |
 2942|    756|            bool first = true;
 2943|  4.25k|            while (true) {
  ------------------
  |  Branch (2943:20): [True: 3.64k, Folded]
  ------------------
 2944|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2945|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2946|       |                     bit_array<num_members> arr{};
 2947|       |                     for (size_t i = 0; i < num_members; ++i) {
 2948|       |                        arr[i] = true;
 2949|       |                     }
 2950|       |                     return arr;
 2951|       |                  }();
 2952|       |
 2953|       |                  if ((all_fields & fields) == all_fields) {
 2954|       |                     ctx.error = error_code::partial_read_complete;
 2955|       |                     --ctx.depth; // as above: an early success still closes this level
 2956|       |                     return;
 2957|       |                  }
 2958|       |               }
 2959|       |
 2960|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2961|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2962|       |                  if (ctx.stream.enabled()) {
 2963|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2964|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2965|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2966|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2967|       |                        const char* new_it;
 2968|       |                        const char* new_end;
 2969|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2970|       |                        it = new_it;
 2971|       |                        end = new_end;
 2972|       |                        if (it >= end && ctx.stream.at_eof()) {
 2973|       |                           ctx.error = error_code::unexpected_end;
 2974|       |                           return;
 2975|       |                        }
 2976|       |                     }
 2977|       |                  }
 2978|       |               }
 2979|       |
 2980|  3.64k|               if (*it == '}') {
  ------------------
  |  Branch (2980:20): [True: 131, False: 3.51k]
  ------------------
 2981|    131|                  --ctx.depth;
 2982|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2983|       |                     const bool defer_to_includer = [&] {
 2984|       |                        if constexpr (tracks_include_keys) {
 2985|       |                           if (include_bits) {
 2986|       |                              // An included document is a fragment: hand the keys it supplied to
 2987|       |                              // the object that included it, which checks the union of both.
 2988|       |                              *include_bits |= fields;
 2989|       |                              return true;
 2990|       |                           }
 2991|       |                        }
 2992|       |                        return false;
 2993|       |                     }();
 2994|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2995|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2996|       |                        for (size_t i = 0; i < num_members; ++i) {
 2997|       |                           if (not fields[i] && req_fields[i]) {
 2998|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 2999|       |                              // We just return the first missing key in order to avoid heap allocations
 3000|       |                              break;
 3001|       |                           }
 3002|       |                        }
 3003|       |
 3004|       |                        ctx.error = error_code::missing_key;
 3005|       |                        return;
 3006|       |                     }
 3007|       |                  }
 3008|    131|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3009|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3010|       |                        auto wrapper = self_constraint_v<T>(value);
 3011|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3012|       |                        if (bool(ctx.error)) {
 3013|       |                           return;
 3014|       |                        }
 3015|       |                     }
 3016|    131|                  }
 3017|    131|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3018|    131|                  if constexpr (not Opts.null_terminated) {
 3019|    131|                     if (it == end) {
  ------------------
  |  Branch (3019:26): [True: 0, False: 131]
  ------------------
 3020|      0|                        ctx.error = error_code::end_reached;
 3021|      0|                        return;
 3022|      0|                     }
 3023|    131|                  }
 3024|    131|                  return;
 3025|    131|               }
 3026|  3.51k|               else if (first) {
  ------------------
  |  Branch (3026:25): [True: 608, False: 2.90k]
  ------------------
 3027|    608|                  first = false;
 3028|    608|               }
 3029|  2.90k|               else {
 3030|  2.90k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3030:23): [True: 9, False: 2.89k]
  ------------------
 3031|      9|                     return;
 3032|      9|                  }
 3033|  2.89k|                  if constexpr (not Opts.null_terminated) {
 3034|  2.89k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3034:26): [True: 0, False: 2.89k]
  ------------------
 3035|      0|                        ctx.error = error_code::unexpected_end;
 3036|      0|                        return;
 3037|      0|                     }
 3038|  2.89k|                  }
 3039|       |
 3040|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3041|  2.89k|                                (!Opts.comments)) {
 3042|  2.89k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (3042:26): [True: 2.40k, False: 488]
  |  Branch (3042:37): [True: 2.29k, False: 110]
  ------------------
 3043|  2.29k|                        skip_matching_ws(ws_start, it, ws_size);
 3044|  2.29k|                     }
 3045|  2.89k|                  }
 3046|       |
 3047|  2.89k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3047:23): [True: 0, False: 2.89k]
  ------------------
 3048|      0|                     return;
 3049|      0|                  }
 3050|  2.89k|               }
 3051|       |
 3052|  3.50k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3052:49): [Folded, False: 0]
  |  Branch (3052:70): [True: 0, Folded]
  ------------------
 3053|       |
 3054|       |               if constexpr (reflection_type && (num_members == 0)) {
 3055|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3056|       |                     static_assert(false_v<T>, "This should be unreachable");
 3057|       |                  }
 3058|       |                  else {
 3059|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3060|       |                        return;
 3061|       |                     }
 3062|       |
 3063|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3064|       |
 3065|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3066|       |                     // handled by the user.
 3067|       |
 3068|       |                     const auto start = it;
 3069|       |                     uint64_t ascii_acc{};
 3070|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3071|       |                     if (bool(ctx.error)) [[unlikely]]
 3072|       |                        return;
 3073|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3074|       |                        return;
 3075|       |                     const sv key{start, size_t(it - start)};
 3076|       |                     ++it;
 3077|       |                     if constexpr (not Opts.null_terminated) {
 3078|       |                        if (it == end) [[unlikely]] {
 3079|       |                           ctx.error = error_code::unexpected_end;
 3080|       |                           return;
 3081|       |                        }
 3082|       |                     }
 3083|       |
 3084|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3085|       |                        return;
 3086|       |                     }
 3087|       |
 3088|       |                     // Check if this key is the variant tag that should be skipped
 3089|       |                     if constexpr (not tag.sv().empty()) {
 3090|       |                        if (key == tag.sv()) {
 3091|       |                           // Skip the tag value
 3092|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3093|       |                           if (bool(ctx.error)) [[unlikely]]
 3094|       |                              return;
 3095|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3096|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3097|       |                              return;
 3098|       |                           }
 3099|       |                           continue;
 3100|       |                        }
 3101|       |                     }
 3102|       |
 3103|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3104|       |                     if (bool(ctx.error)) [[unlikely]]
 3105|       |                        return;
 3106|       |                     if constexpr (not Opts.null_terminated) {
 3107|       |                        if (it == end) [[unlikely]] {
 3108|       |                           ctx.error = error_code::unexpected_end;
 3109|       |                           return;
 3110|       |                        }
 3111|       |                     }
 3112|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3113|       |                        return;
 3114|       |                     }
 3115|       |                  }
 3116|       |               }
 3117|  3.50k|               else if constexpr (reflection_type) {
 3118|  3.50k|                  static_assert(bool(hash_info<T>.type));
 3119|       |
 3120|  3.50k|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3120:23): [True: 471, False: 3.03k]
  ------------------
 3121|    471|                     ctx.error = error_code::expected_quote;
 3122|    471|                     return;
 3123|    471|                  }
 3124|  3.03k|                  ++it;
 3125|  3.03k|                  if constexpr (not Opts.null_terminated) {
 3126|  3.03k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3126:26): [True: 0, False: 3.03k]
  ------------------
 3127|      0|                        ctx.error = error_code::unexpected_end;
 3128|      0|                        return;
 3129|      0|                     }
 3130|  3.03k|                  }
 3131|       |
 3132|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3133|       |                     // For tagged variants we first check to see if the key matches the tag
 3134|       |                     // We only need to do this if the tag is not part of the keys
 3135|       |
 3136|       |                     const auto start = it;
 3137|       |                     uint64_t ascii_acc{};
 3138|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3139|       |                     if (bool(ctx.error)) [[unlikely]]
 3140|       |                        return;
 3141|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3142|       |                        return;
 3143|       |                     const sv key{start, size_t(it - start)};
 3144|       |                     ++it;
 3145|       |                     if constexpr (not Opts.null_terminated) {
 3146|       |                        if (it == end) [[unlikely]] {
 3147|       |                           ctx.error = error_code::unexpected_end;
 3148|       |                           return;
 3149|       |                        }
 3150|       |                     }
 3151|       |
 3152|       |                     if (key == tag.sv()) {
 3153|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3154|       |                           return;
 3155|       |                        }
 3156|       |
 3157|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3158|       |                        if (bool(ctx.error)) [[unlikely]]
 3159|       |                           return;
 3160|       |
 3161|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3162|       |                           return;
 3163|       |                        }
 3164|       |                        continue;
 3165|       |                     }
 3166|       |                     else {
 3167|       |                        it = start; // reset the iterator
 3168|       |                     }
 3169|       |                  }
 3170|       |
 3171|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3172|       |                     size_t index = num_members;
 3173|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3174|       |                     if (bool(ctx.error)) [[unlikely]]
 3175|       |                        return;
 3176|       |                     if (index < num_members) {
 3177|       |                        fields[index] = true;
 3178|       |                     }
 3179|       |                  }
 3180|  3.03k|                  else {
 3181|  3.03k|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3182|  3.03k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3182:26): [True: 107, False: 2.92k]
  ------------------
 3183|    107|                        return;
 3184|  3.03k|                  }
 3185|       |               }
 3186|       |               else {
 3187|       |                  // For types like std::map, std::unordered_map
 3188|       |
 3189|       |                  auto reading = [&](auto&& key) {
 3190|       |                     if constexpr (Opts.partial_read) {
 3191|       |                        if (auto element = value.find(key); element != value.end()) {
 3192|       |                           ++read_count;
 3193|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|       |                        }
 3195|       |                        else {
 3196|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|       |                        }
 3198|       |                     }
 3199|       |                     else {
 3200|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|       |                     }
 3202|       |                  };
 3203|       |
 3204|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3205|       |                  using Key = typename T::key_type;
 3206|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3207|       |                     ctx.scratch.clear();
 3208|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3209|       |                     if (bool(ctx.error)) [[unlikely]]
 3210|       |                        return;
 3211|       |
 3212|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3213|       |                        return;
 3214|       |                     }
 3215|       |
 3216|       |                     reading(ctx.scratch);
 3217|       |                     if constexpr (Opts.partial_read) {
 3218|       |                        if (read_count == value.size()) {
 3219|       |                           return;
 3220|       |                        }
 3221|       |                     }
 3222|       |                     if (bool(ctx.error)) [[unlikely]]
 3223|       |                        return;
 3224|       |                  }
 3225|       |                  else if constexpr (str_t<Key>) {
 3226|       |                     Key key;
 3227|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3228|       |                     if (bool(ctx.error)) [[unlikely]]
 3229|       |                        return;
 3230|       |
 3231|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3232|       |                        return;
 3233|       |                     }
 3234|       |
 3235|       |                     reading(key);
 3236|       |                     if constexpr (Opts.partial_read) {
 3237|       |                        if (read_count == value.size()) {
 3238|       |                           return;
 3239|       |                        }
 3240|       |                     }
 3241|       |                     if (bool(ctx.error)) [[unlikely]]
 3242|       |                        return;
 3243|       |                  }
 3244|       |                  else {
 3245|       |                     Key key_value{};
 3246|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3247|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3248|       |                     }
 3249|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3250|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3251|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3252|       |                     }
 3253|       |                     else {
 3254|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3255|       |                     }
 3256|       |                     if (bool(ctx.error)) [[unlikely]]
 3257|       |                        return;
 3258|       |
 3259|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3260|       |                        return;
 3261|       |                     }
 3262|       |
 3263|       |                     reading(key_value);
 3264|       |                     if constexpr (Opts.partial_read) {
 3265|       |                        if (read_count == value.size()) {
 3266|       |                           return;
 3267|       |                        }
 3268|       |                     }
 3269|       |                     if (bool(ctx.error)) [[unlikely]]
 3270|       |                        return;
 3271|       |                  }
 3272|       |               }
 3273|       |
 3274|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3275|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3276|       |                  if (ctx.stream.enabled()) {
 3277|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3278|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3279|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3280|       |                        const char* new_it;
 3281|       |                        const char* new_end;
 3282|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3283|       |                        it = new_it;
 3284|       |                        end = new_end;
 3285|       |                        if (it >= end && ctx.stream.at_eof()) {
 3286|       |                           ctx.error = error_code::unexpected_end;
 3287|       |                           return;
 3288|       |                        }
 3289|       |                     }
 3290|       |                  }
 3291|       |               }
 3292|       |
 3293|  3.50k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3293:20): [True: 0, False: 3.50k]
  ------------------
 3294|      0|                  return;
 3295|      0|               }
 3296|  3.50k|            }
 3297|    756|         }
 3298|    756|      }
_ZZN3glz4fromILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2895|    718|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|       |                  return bit_array<num_members>{};
 2899|       |               }
 2900|    718|               else {
 2901|    718|                  return nullptr;
 2902|    718|               }
 2903|    718|            }();
_ZZN3glz4fromILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2931|    718|               ctx, [&]() -> void* {
 2932|       |                  if constexpr (tracks_include_keys) {
 2933|       |                     return &fields;
 2934|       |                  }
 2935|    718|                  else {
 2936|    718|                     return nullptr;
 2937|    718|                  }
 2938|    718|               }()};
_ZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_:
  382|  17.0k|   {
  383|  17.0k|      constexpr auto N = reflect<T>::size;
  384|       |
  385|       |      if constexpr (N == 1) {
  386|       |         decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  387|       |      }
  388|       |      else if constexpr (check_linear_search(Opts)) {
  389|       |         // Linear search path
  390|       |         auto key_start = it;
  391|       |         const auto index = decode_linear<T>(ctx, it, end);
  392|       |         if (bool(ctx.error)) [[unlikely]]
  393|       |            return;
  394|       |
  395|       |         if (index >= N) [[unlikely]] {
  396|       |            if constexpr (Opts.error_on_unknown_keys) {
  397|       |               ctx.error = error_code::unknown_key;
  398|       |               return;
  399|       |            }
  400|       |            else {
  401|       |               // it sits one past the closing quote, so the raw key spans [key_start, it - 1)
  402|       |               if (validate_utf8_span<Opts>(ctx, key_start, it - 1)) [[unlikely]] {
  403|       |                  return;
  404|       |               }
  405|       |               const sv key{key_start, size_t(it - key_start - 1)};
  406|       |               if constexpr (not Opts.null_terminated) {
  407|       |                  if (it == end) [[unlikely]] {
  408|       |                     ctx.error = error_code::unexpected_end;
  409|       |                     return;
  410|       |                  }
  411|       |               }
  412|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  413|       |                  return;
  414|       |               }
  415|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  416|       |               return;
  417|       |            }
  418|       |         }
  419|       |
  420|       |         if constexpr (not Opts.null_terminated) {
  421|       |            if (it == end) [[unlikely]] {
  422|       |               ctx.error = error_code::unexpected_end;
  423|       |               return;
  424|       |            }
  425|       |         }
  426|       |         if (skip_ws<Opts>(ctx, it, end)) {
  427|       |            return;
  428|       |         }
  429|       |         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  430|       |            return;
  431|       |         }
  432|       |         if (skip_ws<Opts>(ctx, it, end)) {
  433|       |            return;
  434|       |         }
  435|       |
  436|       |         // Fold expression dispatch - avoids jump table overhead for smaller binary size.
  437|       |         // For linear_search, pass Opts through to the field parser to avoid duplicate template
  438|       |         // instantiations; the whitespace before the value has already been skipped either way.
  439|       |         [&]<size_t... Is>(std::index_sequence<Is...>) {
  440|       |            (void)(((index == Is ? (decode_field_value<Opts, Opts, T, Is>(value, ctx, it, end, selected_index...), true)
  441|       |                                 : false) ||
  442|       |                    ...));
  443|       |         }(std::make_index_sequence<N>{});
  444|       |      }
  445|  17.0k|      else {
  446|       |         // Hash-based lookup
  447|  17.0k|         constexpr auto& HashInfo = hash_info<T>;
  448|  17.0k|         constexpr auto type = HashInfo.type;
  449|  17.0k|         static_assert(bool(type), "invalid hash algorithm");
  450|       |
  451|  17.0k|         const auto index = decode_hash<JSON, T, HashInfo, HashInfo.type>::op(it, end);
  452|       |
  453|  17.0k|         if (index >= N) [[unlikely]] {
  ------------------
  |  Branch (453:14): [True: 0, False: 17.0k]
  ------------------
  454|      0|            if constexpr (Opts.error_on_unknown_keys) {
  455|      0|               ctx.error = error_code::unknown_key;
  456|      0|               return;
  457|       |            }
  458|       |            else {
  459|       |               auto start = it;
  460|       |               skip_string_view(ctx, it, end);
  461|       |               if (bool(ctx.error)) [[unlikely]]
  462|       |                  return;
  463|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
  464|       |                  return;
  465|       |               const sv key = {start, size_t(it - start)};
  466|       |               ++it; // skip the quote
  467|       |               if constexpr (not Opts.null_terminated) {
  468|       |                  if (it == end) [[unlikely]] {
  469|       |                     ctx.error = error_code::unexpected_end;
  470|       |                     return;
  471|       |                  }
  472|       |               }
  473|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  474|       |                  return;
  475|       |               }
  476|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  477|       |               return;
  478|       |            }
  479|      0|         }
  480|       |
  481|  17.0k|         if constexpr (N == 2) {
  482|  17.0k|            if (index == 0) {
  ------------------
  |  Branch (482:17): [True: 16.1k, False: 840]
  ------------------
  483|  16.1k|               decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  484|  16.1k|            }
  485|    840|            else {
  486|    840|               decode_index<Opts, T, 1>(value, ctx, it, end, selected_index...);
  487|    840|            }
  488|       |         }
  489|       |         else {
  490|       |            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
  491|       |         }
  492|  17.0k|      }
  493|  17.0k|   }
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|  16.1k|   {
  313|  16.1k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|  16.1k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|  16.1k|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|  16.1k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 16.1k, False: 13]
  |  Branch (321:52): [True: 16.1k, False: 31]
  ------------------
  322|  16.1k|         it += Length;
  323|  16.1k|         if constexpr (not Opts.null_terminated) {
  324|  16.1k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 16.1k]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|  16.1k|         }
  329|       |
  330|  16.1k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 16.1k]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|  16.1k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 36, False: 16.1k]
  ------------------
  334|     36|            return;
  335|     36|         }
  336|  16.1k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 16.1k]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|  16.1k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|  16.1k|      }
  343|     44|      else [[unlikely]] {
  344|     44|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|     44|      }
  346|  16.1k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz6nestedELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|  16.1k|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|  16.1k|      else {
  274|  16.1k|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|  16.1k|         else {
  298|  16.1k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|  16.1k|                                                                       it, end);
  300|  16.1k|         }
  301|  16.1k|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|  16.1k|   }
_ZN3glz24decode_index_unknown_keyITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedERS3_TkNS_10is_contextERNS_7contextERPKcS8_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT2_OT3_T4_:
  177|    126|   {
  178|    126|      if constexpr (Opts.error_on_unknown_keys) {
  179|    126|         ctx.error = error_code::unknown_key;
  180|       |      }
  181|       |      else {
  182|       |         auto* start = it;
  183|       |         uint64_t ascii_acc{};
  184|       |         skip_string_view(ctx, it, end, ascii_acc);
  185|       |         if (bool(ctx.error)) [[unlikely]]
  186|       |            return;
  187|       |         if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
  188|       |            return;
  189|       |         const sv key = {start, size_t(it - start)};
  190|       |         ++it;
  191|       |         if constexpr (not Opts.null_terminated) {
  192|       |            if (it == end) [[unlikely]] {
  193|       |               ctx.error = error_code::unexpected_end;
  194|       |               return;
  195|       |            }
  196|       |         }
  197|       |
  198|       |         if (parse_ws_colon<Opts>(ctx, it, end)) {
  199|       |            return;
  200|       |         }
  201|       |
  202|       |         parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  203|       |      }
  204|    126|   }
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|    840|   {
  313|    840|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|    840|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|    840|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|    840|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 812, False: 28]
  |  Branch (321:52): [True: 758, False: 54]
  ------------------
  322|    758|         it += Length;
  323|    758|         if constexpr (not Opts.null_terminated) {
  324|    758|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 758]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|    758|         }
  329|       |
  330|    758|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 758]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|    758|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 62, False: 696]
  ------------------
  334|     62|            return;
  335|     62|         }
  336|    696|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 696]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|    696|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|    696|      }
  343|     82|      else [[unlikely]] {
  344|     82|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|     82|      }
  346|    840|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz6nestedELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|    696|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|    696|      else {
  274|    696|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|    696|         else {
  298|    696|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|    696|                                                                       it, end);
  300|    696|         }
  301|    696|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|    696|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm4EEEDav:
  490|  7.82k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm4ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|  7.82k|   {
  313|  7.82k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|  7.82k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|  7.82k|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|  7.82k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 7.81k, False: 9]
  |  Branch (321:52): [True: 7.80k, False: 12]
  ------------------
  322|  7.80k|         it += Length;
  323|  7.80k|         if constexpr (not Opts.null_terminated) {
  324|  7.80k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 7.80k]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|  7.80k|         }
  329|       |
  330|  7.80k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 7.80k]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|  7.80k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 35, False: 7.77k]
  ------------------
  334|     35|            return;
  335|     35|         }
  336|  7.77k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 7.77k]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|  7.77k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|  7.77k|      }
  343|     21|      else [[unlikely]] {
  344|     21|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|     21|      }
  346|  7.82k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm4ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|  7.77k|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|  7.77k|      else {
  274|  7.77k|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|  7.77k|         else {
  298|  7.77k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|  7.77k|                                                                       it, end);
  300|  7.77k|         }
  301|  7.77k|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|  7.77k|   }
_ZN3glz4fromILj10ENSt3__16vectorIiNS1_9allocatorIiEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS5_TkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
 2050|  7.77k|      {
 2051|  7.77k|         constexpr auto Opts = ws_handled_off<Options>();
 2052|       |         if constexpr (!check_ws_handled(Options)) {
 2053|       |            if (skip_ws<Opts>(ctx, it, end)) {
 2054|       |               return;
 2055|       |            }
 2056|       |         }
 2057|       |
 2058|  7.77k|         if (match_invalid_end<'[', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2058:14): [True: 32, False: 7.74k]
  ------------------
 2059|     32|            return;
 2060|     32|         }
 2061|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2062|       |         // released at each syntactic close below
 2063|  7.74k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2063:14): [True: 0, False: 7.74k]
  ------------------
 2064|      0|            return;
 2065|      0|         }
 2066|       |
 2067|  7.74k|         const auto ws_start = it;
 2068|  7.74k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2068:14): [True: 0, False: 7.74k]
  ------------------
 2069|      0|            return;
 2070|      0|         }
 2071|       |
 2072|  7.74k|         if (*it == ']') {
  ------------------
  |  Branch (2072:14): [True: 321, False: 7.41k]
  ------------------
 2073|    321|            --ctx.depth;
 2074|    321|            ++it;
 2075|    321|            if constexpr ((resizable<T> || is_inplace_vector<T>) && not check_append_arrays(Opts)) {
 2076|    321|               value.clear();
 2077|       |
 2078|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2079|       |                  value.shrink_to_fit();
 2080|       |               }
 2081|    321|            }
 2082|    321|            return;
 2083|    321|         }
 2084|       |
 2085|  7.41k|         const size_t ws_size = size_t(it - ws_start);
 2086|       |
 2087|  7.41k|         static constexpr bool should_append = (resizable<T> || is_inplace_vector<T>) && check_append_arrays(Opts);
  ------------------
  |  Branch (2087:49): [True: 7.41k, Folded]
  |  Branch (2087:65): [Folded, False: 0]
  |  Branch (2087:90): [Folded, False: 0]
  ------------------
 2088|  7.41k|         if constexpr (not should_append) {
 2089|  7.41k|            const auto n = value.size();
 2090|       |
 2091|  7.41k|            auto value_it = value.begin();
 2092|       |
 2093|  33.2k|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (2093:32): [True: 28.0k, False: 5.24k]
  ------------------
 2094|  28.0k|               parse<JSON>::op<ws_handled<Opts>()>(*value_it++, ctx, it, end);
 2095|  28.0k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2095:20): [True: 420, False: 27.6k]
  ------------------
 2096|    420|                  return;
 2097|  27.6k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2097:20): [True: 0, False: 27.6k]
  ------------------
 2098|      0|                  return;
 2099|      0|               }
 2100|  27.6k|               if (*it == ',') {
  ------------------
  |  Branch (2100:20): [True: 25.8k, False: 1.75k]
  ------------------
 2101|  25.8k|                  ++it;
 2102|       |
 2103|  25.8k|                  if constexpr (!Opts.minified && !Opts.comments) {
 2104|  25.8k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2104:26): [True: 21.9k, False: 3.96k]
  |  Branch (2104:37): [True: 21.6k, False: 267]
  ------------------
 2105|  21.6k|                        skip_matching_ws(ws_start, it, ws_size);
 2106|  21.6k|                     }
 2107|  25.8k|                  }
 2108|       |
 2109|  25.8k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2109:23): [True: 0, False: 25.8k]
  ------------------
 2110|      0|                     return;
 2111|      0|                  }
 2112|  25.8k|               }
 2113|  1.75k|               else if (*it == ']') {
  ------------------
  |  Branch (2113:25): [True: 1.32k, False: 432]
  ------------------
 2114|  1.32k|                  --ctx.depth;
 2115|  1.32k|                  ++it;
 2116|  1.32k|                  if constexpr (erasable<T>) {
 2117|  1.32k|                     value.erase(value_it,
 2118|  1.32k|                                 value.end()); // use erase rather than resize for non-default constructible elements
 2119|       |
 2120|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2121|       |                        value.shrink_to_fit();
 2122|       |                     }
 2123|  1.32k|                  }
 2124|  1.32k|                  return;
 2125|  1.32k|               }
 2126|    432|               else [[unlikely]] {
 2127|    432|                  ctx.error = error_code::expected_bracket;
 2128|    432|                  return;
 2129|    432|               }
 2130|  27.6k|            }
 2131|  7.41k|         }
 2132|       |
 2133|       |         if constexpr (Opts.partial_read) {
 2134|       |            // partial_read stops early on a success path, so give the level back like the
 2135|       |            // syntactic-close paths do; otherwise it accumulates across reads sharing a context.
 2136|       |            --ctx.depth;
 2137|       |            return;
 2138|       |         }
 2139|  7.41k|         else {
 2140|       |            // growing
 2141|  7.41k|            if constexpr (emplace_backable<T> || has_try_emplace_back<T>) {
 2142|   101k|               while (it < end) {
  ------------------
  |  Branch (2142:23): [True: 98.9k, False: 2.17k]
  ------------------
 2143|       |                  // Streaming refill point: at start of each iteration, ensure buffer has data
 2144|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2145|       |                     if (ctx.stream.enabled()) {
 2146|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2147|       |                        const size_t remaining = ctx.stream.size() - consumed;
 2148|       |                        // Refill when less than half of buffer remains to ensure space for next element
 2149|       |                        if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2150|       |                           const char* new_it;
 2151|       |                           const char* new_end;
 2152|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2153|       |                           it = new_it;
 2154|       |                           end = new_end;
 2155|       |                           if (it >= end && ctx.stream.at_eof()) {
 2156|       |                              break; // No more data, exit loop normally
 2157|       |                           }
 2158|       |                        }
 2159|       |                     }
 2160|       |                  }
 2161|       |
 2162|       |                  if constexpr (has_try_emplace_back<T>) {
 2163|       |                     if (value.try_emplace_back())
 2164|       |                        parse<JSON>::op<ws_handled<Opts>()>(value.back(), ctx, it, end);
 2165|       |                     else
 2166|       |                        ctx.error = error_code::exceeded_static_array_size;
 2167|       |                  }
 2168|  98.9k|                  else {
 2169|  98.9k|                     parse<JSON>::op<ws_handled<Opts>()>(value.emplace_back(), ctx, it, end);
 2170|  98.9k|                  }
 2171|       |
 2172|  98.9k|                  if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2172:23): [True: 1.42k, False: 97.5k]
  ------------------
 2173|  1.42k|                     return;
 2174|       |
 2175|       |                  // Streaming refill point: after parsing each element, refill if buffer is low
 2176|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2177|       |                     if (ctx.stream.enabled()) {
 2178|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2179|       |                        // Refill when less than 25% of buffer remains to ensure enough space for next element
 2180|       |                        if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 2181|       |                           const char* new_it;
 2182|       |                           const char* new_end;
 2183|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2184|       |                           it = new_it;
 2185|       |                           end = new_end;
 2186|       |                           if (it >= end && ctx.stream.at_eof()) {
 2187|       |                              ctx.error = error_code::unexpected_end;
 2188|       |                              return;
 2189|       |                           }
 2190|       |                        }
 2191|       |                     }
 2192|       |                  }
 2193|       |
 2194|  97.5k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2194:23): [True: 0, False: 97.5k]
  ------------------
 2195|      0|                     return;
 2196|      0|                  }
 2197|  97.5k|                  if (*it == ',') [[likely]] {
  ------------------
  |  Branch (2197:23): [True: 93.7k, False: 3.81k]
  ------------------
 2198|  93.7k|                     ++it;
 2199|       |
 2200|  93.7k|                     if constexpr (!Opts.minified && !Opts.comments) {
 2201|  93.7k|                        if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2201:29): [True: 81.4k, False: 12.2k]
  |  Branch (2201:40): [True: 81.0k, False: 385]
  ------------------
 2202|  81.0k|                           skip_matching_ws(ws_start, it, ws_size);
 2203|  81.0k|                        }
 2204|  93.7k|                     }
 2205|       |
 2206|  93.7k|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2206:26): [True: 0, False: 93.7k]
  ------------------
 2207|      0|                        return;
 2208|      0|                     }
 2209|  93.7k|                  }
 2210|  3.81k|                  else if (*it == ']') {
  ------------------
  |  Branch (2210:28): [True: 3.10k, False: 707]
  ------------------
 2211|  3.10k|                     --ctx.depth;
 2212|  3.10k|                     ++it;
 2213|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2214|       |                        value.shrink_to_fit();
 2215|       |                     }
 2216|  3.10k|                     return;
 2217|  3.10k|                  }
 2218|    707|                  else [[unlikely]] {
 2219|    707|                     ctx.error = error_code::expected_bracket;
 2220|    707|                     return;
 2221|    707|                  }
 2222|  97.5k|               }
 2223|       |
 2224|       |               // A valid array always returns from inside the loop upon reaching ']'.
 2225|       |               // For a null-terminated buffer the loop can only exit here by falling
 2226|       |               // through when `it` reaches the terminator without a closing bracket,
 2227|       |               // which means the input was truncated (e.g. "[", "[1," or "[1,2,").
 2228|       |               // Non-null-terminated buffers surface this through skip_ws/depth
 2229|       |               // tracking (or the streaming refill break), so this guard is limited
 2230|       |               // to the null-terminated case.
 2231|       |               if constexpr (Opts.null_terminated) {
 2232|       |                  ctx.error = error_code::unexpected_end;
 2233|       |               }
 2234|       |            }
 2235|       |            else {
 2236|       |               ctx.error = error_code::exceeded_static_array_size;
 2237|       |            }
 2238|  7.41k|         }
 2239|  7.41k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERiTkNS_10is_contextERNS_7contextERPKcS8_EEvOT0_OT1_OT2_T3_:
   49|   332k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|   332k|         else {
   60|   332k|            using V = std::remove_cvref_t<T>;
   61|   332k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|   332k|                                             end);
   63|   332k|         }
   64|   332k|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm5EEEDav:
  490|  1.30k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm5ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|  1.30k|   {
  313|  1.30k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|  1.30k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|  1.30k|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|  1.30k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 1.30k, False: 6]
  |  Branch (321:52): [True: 1.30k, False: 3]
  ------------------
  322|  1.30k|         it += Length;
  323|  1.30k|         if constexpr (not Opts.null_terminated) {
  324|  1.30k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 1.30k]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|  1.30k|         }
  329|       |
  330|  1.30k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 1.30k]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|  1.30k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 29, False: 1.27k]
  ------------------
  334|     29|            return;
  335|     29|         }
  336|  1.27k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 1.27k]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|  1.27k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|  1.27k|      }
  343|      9|      else [[unlikely]] {
  344|      9|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|      9|      }
  346|  1.30k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm5ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|  1.27k|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|  1.27k|      else {
  274|  1.27k|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|  1.27k|         else {
  298|  1.27k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|  1.27k|                                                                       it, end);
  300|  1.27k|         }
  301|  1.27k|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|  1.27k|   }
_ZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_:
 2791|  1.27k|      {
 2792|  1.27k|         static constexpr auto num_members = reflect<T>::size;
 2793|       |
 2794|  1.27k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2795|  1.27k|         if constexpr (!check_opening_handled(Options)) {
 2796|       |            if constexpr (!check_ws_handled(Options)) {
 2797|       |               if (skip_ws<Opts>(ctx, it, end)) {
 2798|       |                  return;
 2799|       |               }
 2800|       |            }
 2801|  1.27k|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2801:17): [True: 45, False: 1.22k]
  ------------------
 2802|     45|               return;
 2803|     45|            }
 2804|  1.22k|            if constexpr (not Opts.null_terminated) {
 2805|  1.22k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2805:20): [True: 0, False: 1.22k]
  ------------------
 2806|      0|                  ctx.error = error_code::unexpected_end;
 2807|      0|                  return;
 2808|      0|               }
 2809|  1.22k|            }
 2810|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2811|       |            // released at each syntactic close below
 2812|  1.22k|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2812:17): [True: 0, False: 1.22k]
  ------------------
 2813|      0|               return;
 2814|      0|            }
 2815|  1.22k|         }
 2816|  1.22k|         const auto ws_start = it;
 2817|  1.27k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2817:14): [True: 0, False: 1.27k]
  ------------------
 2818|      0|            return;
 2819|      0|         }
 2820|  1.27k|         const size_t ws_size = size_t(it - ws_start);
 2821|       |
 2822|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2823|       |            if constexpr (not tag.sv().empty()) {
 2824|       |               if (*it == '"') {
 2825|       |                  ++it;
 2826|       |                  if constexpr (not Opts.null_terminated) {
 2827|       |                     if (it == end) [[unlikely]] {
 2828|       |                        ctx.error = error_code::unexpected_end;
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|       |
 2833|       |                  const auto start = it;
 2834|       |                  skip_string_view(ctx, it, end);
 2835|       |                  if (bool(ctx.error)) [[unlikely]]
 2836|       |                     return;
 2837|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2838|       |                     return;
 2839|       |                  const sv key{start, size_t(it - start)};
 2840|       |                  ++it;
 2841|       |                  if constexpr (not Opts.null_terminated) {
 2842|       |                     if (it == end) [[unlikely]] {
 2843|       |                        ctx.error = error_code::unexpected_end;
 2844|       |                        return;
 2845|       |                     }
 2846|       |                  }
 2847|       |
 2848|       |                  if (key == tag.sv()) {
 2849|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2850|       |                        return;
 2851|       |                     }
 2852|       |
 2853|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2854|       |                     if (bool(ctx.error)) [[unlikely]]
 2855|       |                        return;
 2856|       |
 2857|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2858|       |                        return;
 2859|       |                     }
 2860|       |                  }
 2861|       |                  else {
 2862|       |                     ctx.error = error_code::unknown_key;
 2863|       |                     return;
 2864|       |                  }
 2865|       |               }
 2866|       |            }
 2867|       |
 2868|       |            if (*it == '}') [[likely]] {
 2869|       |               --ctx.depth;
 2870|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2871|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2872|       |                     auto wrapper = self_constraint_v<T>(value);
 2873|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2874|       |                     if (bool(ctx.error)) {
 2875|       |                        return;
 2876|       |                     }
 2877|       |                  }
 2878|       |               }
 2879|       |               ++it;
 2880|       |               if constexpr (not Opts.null_terminated) {
 2881|       |                  if (it == end) {
 2882|       |                     ctx.error = error_code::end_reached;
 2883|       |                     return;
 2884|       |                  }
 2885|       |               }
 2886|       |               if constexpr (Opts.partial_read) {
 2887|       |                  ctx.error = error_code::partial_read_complete;
 2888|       |               }
 2889|       |               return;
 2890|       |            }
 2891|       |            ctx.error = error_code::unknown_key;
 2892|       |            return;
 2893|       |         }
 2894|  1.27k|         else {
 2895|  1.27k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|  1.27k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|  1.27k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|  1.27k|                  return bit_array<num_members>{};
 2899|  1.27k|               }
 2900|  1.27k|               else {
 2901|  1.27k|                  return nullptr;
 2902|  1.27k|               }
 2903|  1.27k|            }();
 2904|       |
 2905|       |            // A file include merges an external document into this object, so with
 2906|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2907|       |            // context::key_bits). While this object parses, its bits are published for its
 2908|       |            // includer members to hand down; and if this parse is itself an included document,
 2909|       |            // it claims the bits of the object that included us and merges into them at the
 2910|       |            // closing brace instead of running a check of its own.
 2911|  1.27k|            static constexpr bool tracks_include_keys = [] {
 2912|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2913|  1.27k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2914|  1.27k|                  return has_includer_member<T>;
 2915|  1.27k|               }
 2916|  1.27k|               else {
 2917|  1.27k|                  return false;
 2918|  1.27k|               }
 2919|  1.27k|            }();
 2920|  1.27k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2921|       |            if constexpr (tracks_include_keys) {
 2922|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2923|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2924|       |                  ctx.include_key_bits = nullptr;
 2925|       |                  ctx.include_key_type = nullptr;
 2926|       |               }
 2927|       |            }
 2928|  1.27k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2929|  1.27k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2930|  1.27k|                                                      inert_key_bits_scope> published_bits{
 2931|  1.27k|               ctx, [&]() -> void* {
 2932|  1.27k|                  if constexpr (tracks_include_keys) {
 2933|  1.27k|                     return &fields;
 2934|  1.27k|                  }
 2935|  1.27k|                  else {
 2936|  1.27k|                     return nullptr;
 2937|  1.27k|                  }
 2938|  1.27k|               }()};
 2939|       |
 2940|  1.27k|            size_t read_count{}; // for partial_read
 2941|       |
 2942|  1.27k|            bool first = true;
 2943|  15.2k|            while (true) {
  ------------------
  |  Branch (2943:20): [True: 14.6k, Folded]
  ------------------
 2944|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2945|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2946|       |                     bit_array<num_members> arr{};
 2947|       |                     for (size_t i = 0; i < num_members; ++i) {
 2948|       |                        arr[i] = true;
 2949|       |                     }
 2950|       |                     return arr;
 2951|       |                  }();
 2952|       |
 2953|       |                  if ((all_fields & fields) == all_fields) {
 2954|       |                     ctx.error = error_code::partial_read_complete;
 2955|       |                     --ctx.depth; // as above: an early success still closes this level
 2956|       |                     return;
 2957|       |                  }
 2958|       |               }
 2959|       |
 2960|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2961|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2962|       |                  if (ctx.stream.enabled()) {
 2963|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2964|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2965|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2966|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2967|       |                        const char* new_it;
 2968|       |                        const char* new_end;
 2969|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2970|       |                        it = new_it;
 2971|       |                        end = new_end;
 2972|       |                        if (it >= end && ctx.stream.at_eof()) {
 2973|       |                           ctx.error = error_code::unexpected_end;
 2974|       |                           return;
 2975|       |                        }
 2976|       |                     }
 2977|       |                  }
 2978|       |               }
 2979|       |
 2980|  14.6k|               if (*it == '}') {
  ------------------
  |  Branch (2980:20): [True: 508, False: 14.1k]
  ------------------
 2981|    508|                  --ctx.depth;
 2982|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2983|       |                     const bool defer_to_includer = [&] {
 2984|       |                        if constexpr (tracks_include_keys) {
 2985|       |                           if (include_bits) {
 2986|       |                              // An included document is a fragment: hand the keys it supplied to
 2987|       |                              // the object that included it, which checks the union of both.
 2988|       |                              *include_bits |= fields;
 2989|       |                              return true;
 2990|       |                           }
 2991|       |                        }
 2992|       |                        return false;
 2993|       |                     }();
 2994|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2995|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2996|       |                        for (size_t i = 0; i < num_members; ++i) {
 2997|       |                           if (not fields[i] && req_fields[i]) {
 2998|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 2999|       |                              // We just return the first missing key in order to avoid heap allocations
 3000|       |                              break;
 3001|       |                           }
 3002|       |                        }
 3003|       |
 3004|       |                        ctx.error = error_code::missing_key;
 3005|       |                        return;
 3006|       |                     }
 3007|       |                  }
 3008|       |                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3009|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3010|       |                        auto wrapper = self_constraint_v<T>(value);
 3011|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3012|       |                        if (bool(ctx.error)) {
 3013|       |                           return;
 3014|       |                        }
 3015|       |                     }
 3016|       |                  }
 3017|    508|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3018|    508|                  if constexpr (not Opts.null_terminated) {
 3019|    508|                     if (it == end) {
  ------------------
  |  Branch (3019:26): [True: 0, False: 508]
  ------------------
 3020|      0|                        ctx.error = error_code::end_reached;
 3021|      0|                        return;
 3022|      0|                     }
 3023|    508|                  }
 3024|    508|                  return;
 3025|    508|               }
 3026|  14.1k|               else if (first) {
  ------------------
  |  Branch (3026:25): [True: 1.10k, False: 13.0k]
  ------------------
 3027|  1.10k|                  first = false;
 3028|  1.10k|               }
 3029|  13.0k|               else {
 3030|  13.0k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3030:23): [True: 134, False: 12.8k]
  ------------------
 3031|    134|                     return;
 3032|    134|                  }
 3033|  12.8k|                  if constexpr (not Opts.null_terminated) {
 3034|  12.8k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3034:26): [True: 0, False: 12.8k]
  ------------------
 3035|      0|                        ctx.error = error_code::unexpected_end;
 3036|      0|                        return;
 3037|      0|                     }
 3038|  12.8k|                  }
 3039|       |
 3040|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3041|       |                                (!Opts.comments)) {
 3042|       |                     if (ws_size && ws_size < size_t(end - it)) {
 3043|       |                        skip_matching_ws(ws_start, it, ws_size);
 3044|       |                     }
 3045|       |                  }
 3046|       |
 3047|  12.8k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3047:23): [True: 0, False: 12.8k]
  ------------------
 3048|      0|                     return;
 3049|      0|                  }
 3050|  12.8k|               }
 3051|       |
 3052|  13.9k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3052:49): [Folded, False: 0]
  |  Branch (3052:70): [Folded, False: 0]
  ------------------
 3053|       |
 3054|       |               if constexpr (reflection_type && (num_members == 0)) {
 3055|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3056|       |                     static_assert(false_v<T>, "This should be unreachable");
 3057|       |                  }
 3058|       |                  else {
 3059|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3060|       |                        return;
 3061|       |                     }
 3062|       |
 3063|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3064|       |
 3065|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3066|       |                     // handled by the user.
 3067|       |
 3068|       |                     const auto start = it;
 3069|       |                     uint64_t ascii_acc{};
 3070|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3071|       |                     if (bool(ctx.error)) [[unlikely]]
 3072|       |                        return;
 3073|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3074|       |                        return;
 3075|       |                     const sv key{start, size_t(it - start)};
 3076|       |                     ++it;
 3077|       |                     if constexpr (not Opts.null_terminated) {
 3078|       |                        if (it == end) [[unlikely]] {
 3079|       |                           ctx.error = error_code::unexpected_end;
 3080|       |                           return;
 3081|       |                        }
 3082|       |                     }
 3083|       |
 3084|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3085|       |                        return;
 3086|       |                     }
 3087|       |
 3088|       |                     // Check if this key is the variant tag that should be skipped
 3089|       |                     if constexpr (not tag.sv().empty()) {
 3090|       |                        if (key == tag.sv()) {
 3091|       |                           // Skip the tag value
 3092|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3093|       |                           if (bool(ctx.error)) [[unlikely]]
 3094|       |                              return;
 3095|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3096|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3097|       |                              return;
 3098|       |                           }
 3099|       |                           continue;
 3100|       |                        }
 3101|       |                     }
 3102|       |
 3103|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3104|       |                     if (bool(ctx.error)) [[unlikely]]
 3105|       |                        return;
 3106|       |                     if constexpr (not Opts.null_terminated) {
 3107|       |                        if (it == end) [[unlikely]] {
 3108|       |                           ctx.error = error_code::unexpected_end;
 3109|       |                           return;
 3110|       |                        }
 3111|       |                     }
 3112|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3113|       |                        return;
 3114|       |                     }
 3115|       |                  }
 3116|       |               }
 3117|       |               else if constexpr (reflection_type) {
 3118|       |                  static_assert(bool(hash_info<T>.type));
 3119|       |
 3120|       |                  if (*it != '"') [[unlikely]] {
 3121|       |                     ctx.error = error_code::expected_quote;
 3122|       |                     return;
 3123|       |                  }
 3124|       |                  ++it;
 3125|       |                  if constexpr (not Opts.null_terminated) {
 3126|       |                     if (it == end) [[unlikely]] {
 3127|       |                        ctx.error = error_code::unexpected_end;
 3128|       |                        return;
 3129|       |                     }
 3130|       |                  }
 3131|       |
 3132|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3133|       |                     // For tagged variants we first check to see if the key matches the tag
 3134|       |                     // We only need to do this if the tag is not part of the keys
 3135|       |
 3136|       |                     const auto start = it;
 3137|       |                     uint64_t ascii_acc{};
 3138|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3139|       |                     if (bool(ctx.error)) [[unlikely]]
 3140|       |                        return;
 3141|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3142|       |                        return;
 3143|       |                     const sv key{start, size_t(it - start)};
 3144|       |                     ++it;
 3145|       |                     if constexpr (not Opts.null_terminated) {
 3146|       |                        if (it == end) [[unlikely]] {
 3147|       |                           ctx.error = error_code::unexpected_end;
 3148|       |                           return;
 3149|       |                        }
 3150|       |                     }
 3151|       |
 3152|       |                     if (key == tag.sv()) {
 3153|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3154|       |                           return;
 3155|       |                        }
 3156|       |
 3157|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3158|       |                        if (bool(ctx.error)) [[unlikely]]
 3159|       |                           return;
 3160|       |
 3161|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3162|       |                           return;
 3163|       |                        }
 3164|       |                        continue;
 3165|       |                     }
 3166|       |                     else {
 3167|       |                        it = start; // reset the iterator
 3168|       |                     }
 3169|       |                  }
 3170|       |
 3171|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3172|       |                     size_t index = num_members;
 3173|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3174|       |                     if (bool(ctx.error)) [[unlikely]]
 3175|       |                        return;
 3176|       |                     if (index < num_members) {
 3177|       |                        fields[index] = true;
 3178|       |                     }
 3179|       |                  }
 3180|       |                  else {
 3181|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3182|       |                     if (bool(ctx.error)) [[unlikely]]
 3183|       |                        return;
 3184|       |                  }
 3185|       |               }
 3186|  13.9k|               else {
 3187|       |                  // For types like std::map, std::unordered_map
 3188|       |
 3189|  13.9k|                  auto reading = [&](auto&& key) {
 3190|  13.9k|                     if constexpr (Opts.partial_read) {
 3191|  13.9k|                        if (auto element = value.find(key); element != value.end()) {
 3192|  13.9k|                           ++read_count;
 3193|  13.9k|                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|  13.9k|                        }
 3195|  13.9k|                        else {
 3196|  13.9k|                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|  13.9k|                        }
 3198|  13.9k|                     }
 3199|  13.9k|                     else {
 3200|  13.9k|                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|  13.9k|                     }
 3202|  13.9k|                  };
 3203|       |
 3204|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3205|  13.9k|                  using Key = typename T::key_type;
 3206|  13.9k|                  if constexpr (std::is_same_v<Key, std::string>) {
 3207|  13.9k|                     ctx.scratch.clear();
 3208|  13.9k|                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3209|  13.9k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3209:26): [True: 133, False: 13.8k]
  ------------------
 3210|    133|                        return;
 3211|       |
 3212|  13.8k|                     if (parse_ws_colon<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3212:26): [True: 60, False: 13.8k]
  ------------------
 3213|     60|                        return;
 3214|     60|                     }
 3215|       |
 3216|  13.8k|                     reading(ctx.scratch);
 3217|       |                     if constexpr (Opts.partial_read) {
 3218|       |                        if (read_count == value.size()) {
 3219|       |                           return;
 3220|       |                        }
 3221|       |                     }
 3222|  13.8k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3222:26): [True: 391, False: 13.4k]
  ------------------
 3223|    391|                        return;
 3224|       |                  }
 3225|       |                  else if constexpr (str_t<Key>) {
 3226|       |                     Key key;
 3227|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3228|       |                     if (bool(ctx.error)) [[unlikely]]
 3229|       |                        return;
 3230|       |
 3231|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3232|       |                        return;
 3233|       |                     }
 3234|       |
 3235|       |                     reading(key);
 3236|       |                     if constexpr (Opts.partial_read) {
 3237|       |                        if (read_count == value.size()) {
 3238|       |                           return;
 3239|       |                        }
 3240|       |                     }
 3241|       |                     if (bool(ctx.error)) [[unlikely]]
 3242|       |                        return;
 3243|       |                  }
 3244|       |                  else {
 3245|       |                     Key key_value{};
 3246|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3247|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3248|       |                     }
 3249|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3250|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3251|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3252|       |                     }
 3253|       |                     else {
 3254|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3255|       |                     }
 3256|       |                     if (bool(ctx.error)) [[unlikely]]
 3257|       |                        return;
 3258|       |
 3259|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3260|       |                        return;
 3261|       |                     }
 3262|       |
 3263|       |                     reading(key_value);
 3264|       |                     if constexpr (Opts.partial_read) {
 3265|       |                        if (read_count == value.size()) {
 3266|       |                           return;
 3267|       |                        }
 3268|       |                     }
 3269|       |                     if (bool(ctx.error)) [[unlikely]]
 3270|       |                        return;
 3271|       |                  }
 3272|  13.9k|               }
 3273|       |
 3274|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3275|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3276|       |                  if (ctx.stream.enabled()) {
 3277|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3278|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3279|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3280|       |                        const char* new_it;
 3281|       |                        const char* new_end;
 3282|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3283|       |                        it = new_it;
 3284|       |                        end = new_end;
 3285|       |                        if (it >= end && ctx.stream.at_eof()) {
 3286|       |                           ctx.error = error_code::unexpected_end;
 3287|       |                           return;
 3288|       |                        }
 3289|       |                     }
 3290|       |                  }
 3291|       |               }
 3292|       |
 3293|  13.9k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3293:20): [True: 0, False: 13.9k]
  ------------------
 3294|      0|                  return;
 3295|      0|               }
 3296|  13.9k|            }
 3297|  1.27k|         }
 3298|  1.27k|      }
_ZZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2895|  1.22k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|       |                  return bit_array<num_members>{};
 2899|       |               }
 2900|  1.22k|               else {
 2901|  1.22k|                  return nullptr;
 2902|  1.22k|               }
 2903|  1.22k|            }();
_ZZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2931|  1.22k|               ctx, [&]() -> void* {
 2932|       |                  if constexpr (tracks_include_keys) {
 2933|       |                     return &fields;
 2934|       |                  }
 2935|  1.22k|                  else {
 2936|  1.22k|                     return nullptr;
 2937|  1.22k|                  }
 2938|  1.22k|               }()};
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEETkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
   49|  1.90M|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  1.90M|         else {
   60|  1.90M|            using V = std::remove_cvref_t<T>;
   61|  1.90M|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  1.90M|                                             end);
   63|  1.90M|         }
   64|  1.90M|      }
_ZN3glz4fromILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERPKcSC_S7_TkNS_10is_contextERNS_7contextEEEvRT2_OT3_OT0_T1_:
  887|  1.90M|      {
  888|       |         if constexpr (check_string_as_number(Opts)) {
  889|       |            auto start = it;
  890|       |            skip_number<Opts>(ctx, it, end);
  891|       |            if (bool(ctx.error)) [[unlikely]] {
  892|       |               return;
  893|       |            }
  894|       |            if (start == it) [[unlikely]] {
  895|       |               ctx.error = error_code::parse_number_failure;
  896|       |               return;
  897|       |            }
  898|       |            value.append(start, size_t(it - start));
  899|       |         }
  900|  1.90M|         else {
  901|  1.90M|            if constexpr (!check_opening_handled(Opts)) {
  902|  1.90M|               if constexpr (!check_ws_handled(Opts)) {
  903|  1.90M|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (903:23): [True: 0, False: 1.90M]
  ------------------
  904|      0|                     return;
  905|      0|                  }
  906|  1.90M|               }
  907|       |
  908|  1.90M|               if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (908:20): [True: 561, False: 1.90M]
  ------------------
  909|    561|                  return;
  910|    561|               }
  911|  1.90M|            }
  912|       |
  913|  1.90M|            if constexpr (not check_raw_string(Opts)) {
  914|  1.90M|               static constexpr auto string_padding_bytes = 8;
  915|       |
  916|       |               // How much buffer has to remain for an eight byte load at the cursor to stay inside
  917|       |               // it. One on a padded input, where the last chunk is free to straddle the end of the
  918|       |               // document, so the byte tails below are unreachable; eight otherwise, which costs the
  919|       |               // final bytes of the buffer their chunked path and nothing else.
  920|  1.90M|               const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
  921|       |
  922|  1.90M|               if (size_t(end - it) >= 8) {
  ------------------
  |  Branch (922:20): [True: 1.88M, False: 20.6k]
  ------------------
  923|       |                  // The bound as a pointer, so the loops below spend a compare per chunk rather
  924|       |                  // than a subtract and a compare. Well defined here and nowhere else in this
  925|       |                  // reader: the branch has just established that at least eight bytes remain, and
  926|       |                  // `scan_min` is at most eight.
  927|  1.88M|                  const auto* const chunk_limit = end - scan_min;
  928|       |
  929|  1.88M|                  auto start = it;
  930|  1.88M|                  uint64_t ascii_acc{};
  931|  7.03M|                  while (it <= chunk_limit) {
  ------------------
  |  Branch (931:26): [True: 7.03M, False: 779]
  ------------------
  932|  7.03M|                     uint64_t chunk;
  933|  7.03M|                     std::memcpy(&chunk, it, 8);
  934|       |                     if constexpr (std::endian::native == std::endian::big) {
  935|       |                        chunk = std::byteswap(chunk);
  936|       |                     }
  937|  7.03M|                     ascii_acc |= chunk;
  938|  7.03M|                     const uint64_t test_chars = has_quote(chunk);
  939|  7.03M|                     if (test_chars) {
  ------------------
  |  Branch (939:26): [True: 1.89M, False: 5.14M]
  ------------------
  940|  1.89M|                        it += (countr_zero(test_chars) >> 3);
  941|       |
  942|  1.89M|                        auto* prev = it - 1;
  943|  1.92M|                        while (*prev == '\\') {
  ------------------
  |  Branch (943:32): [True: 26.6k, False: 1.89M]
  ------------------
  944|  26.6k|                           --prev;
  945|  26.6k|                        }
  946|  1.89M|                        if (size_t(it - prev) % 2) {
  ------------------
  |  Branch (946:29): [True: 1.88M, False: 5.68k]
  ------------------
  947|  1.88M|                           goto continue_decode;
  948|  1.88M|                        }
  949|  5.68k|                        ++it; // skip the escaped quote
  950|  5.68k|                     }
  951|  5.14M|                     else {
  952|  5.14M|                        it += 8;
  953|  5.14M|                     }
  954|  7.03M|                  }
  955|       |
  956|  2.06k|                  while (it[-1] == '\\') [[unlikely]] {
  ------------------
  |  Branch (956:26): [True: 1.28k, False: 779]
  ------------------
  957|       |                     // if we ended on an escape character then we need to rewind
  958|       |                     // because we lost our context
  959|  1.28k|                     --it;
  960|  1.28k|                  }
  961|       |
  962|       |                  // The byte-wise tail keeps feeding the accumulator: it has to cover every byte of
  963|       |                  // the string, or a non-ASCII byte reached here would be waved through unvalidated.
  964|  4.16k|                  for (; it < end; ++it) {
  ------------------
  |  Branch (964:26): [True: 4.16k, False: 0]
  ------------------
  965|  4.16k|                     ascii_acc |= uint8_t(*it);
  966|  4.16k|                     if (*it == '"') {
  ------------------
  |  Branch (966:26): [True: 817, False: 3.34k]
  ------------------
  967|    817|                        auto* prev = it - 1;
  968|  2.08k|                        while (*prev == '\\') {
  ------------------
  |  Branch (968:32): [True: 1.26k, False: 817]
  ------------------
  969|  1.26k|                           --prev;
  970|  1.26k|                        }
  971|    817|                        if (size_t(it - prev) % 2) {
  ------------------
  |  Branch (971:29): [True: 779, False: 38]
  ------------------
  972|    779|                           goto continue_decode;
  973|    779|                        }
  974|    817|                     }
  975|  4.16k|                  }
  976|       |
  977|      0|                  ctx.error = error_code::unexpected_end;
  978|      0|                  return;
  979|       |
  980|  1.88M|               continue_decode:
  981|       |
  982|  1.88M|                  if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]] {
  ------------------
  |  Branch (982:23): [True: 0, False: 1.88M]
  ------------------
  983|      0|                     return;
  984|      0|                  }
  985|       |
  986|  1.88M|                  auto n = size_t(it - start);
  987|       |
  988|       |                  // The padding lets the chunked copy below run up to the closing quote. Skip it when it
  989|       |                  // would be the only reason to allocate, as for a string that fits the small string
  990|       |                  // buffer but not with eight bytes to spare.
  991|  1.88M|                  bool pad = true;
  992|  1.88M|                  if constexpr (requires { value.capacity(); }) {
  993|  1.88M|                     const auto capacity = size_t(value.capacity());
  994|  1.88M|                     pad = capacity >= n + string_padding_bytes || capacity < n;
  ------------------
  |  Branch (994:28): [True: 1.88M, False: 1.28k]
  |  Branch (994:68): [True: 558, False: 729]
  ------------------
  995|  1.88M|                  }
  996|  1.88M|                  resize_unfilled(value, pad ? n + string_padding_bytes : n);
  ------------------
  |  Branch (996:42): [True: 1.88M, False: 729]
  ------------------
  997|       |
  998|  1.88M|                  auto* p = value.data();
  999|       |
 1000|       |                  // An error below returns with the tail of `value` still unwritten. Leave the size at
 1001|       |                  // what was actually written rather than at the padded length, which resize_unfilled
 1002|       |                  // did not fill.
 1003|  1.88M|                  auto* const written_begin = p;
 1004|       |
 1005|       |                  // Without the padding, copy a chunk only while eight bytes remain before the quote.
 1006|       |                  // Unescaping never puts the output ahead of the input, so no store lands past the end.
 1007|  1.88M|                  const auto* const copy_end = pad ? it : it - (std::min)(n, size_t(7));
  ------------------
  |  Branch (1007:48): [True: 1.88M, False: 729]
  ------------------
 1008|       |
 1009|       |                  // Copy eight bytes at a time for as long as eight bytes are there to read, then
 1010|       |                  // finish the span below. The chunked form reads past the character it is looking
 1011|       |                  // at, so on an unpadded buffer it has to stop short of the end; splitting it this
 1012|       |                  // way keeps it for the body of every string rather than giving it up whenever the
 1013|       |                  // string happens to finish near the end of the buffer -- which, for a document
 1014|       |                  // that is itself one string, is every string.
 1015|  7.78M|                  while (start < copy_end && start <= chunk_limit) {
  ------------------
  |  Branch (1015:26): [True: 5.90M, False: 1.88M]
  |  Branch (1015:46): [True: 5.90M, False: 437]
  ------------------
 1016|  5.90M|                     std::memcpy(p, start, 8);
 1017|  5.90M|                     uint64_t swar;
 1018|  5.90M|                     std::memcpy(&swar, p, 8);
 1019|       |                     if constexpr (std::endian::native == std::endian::big) {
 1020|       |                        swar = std::byteswap(swar);
 1021|       |                     }
 1022|       |
 1023|  5.90M|                     constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1024|  5.90M|                     const uint64_t lo7 = swar & lo7_mask;
 1025|  5.90M|                     const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1026|  5.90M|                     const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1027|  5.90M|                     uint64_t next = ~((backslash & less_32) | swar);
 1028|       |
 1029|  5.90M|                     next &= repeat_byte8(0b10000000);
 1030|  5.90M|                     if (next == 0) {
  ------------------
  |  Branch (1030:26): [True: 5.81M, False: 89.3k]
  ------------------
 1031|  5.81M|                        start += 8;
 1032|  5.81M|                        p += 8;
 1033|  5.81M|                        continue;
 1034|  5.81M|                     }
 1035|       |
 1036|  89.3k|                     next = countr_zero(next) >> 3;
 1037|  89.3k|                     start += next;
 1038|  89.3k|                     if (start >= it) {
  ------------------
  |  Branch (1038:26): [True: 3.06k, False: 86.3k]
  ------------------
 1039|  3.06k|                        break;
 1040|  3.06k|                     }
 1041|       |
 1042|  86.3k|                     if ((*start & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1042:26): [True: 183, False: 86.1k]
  ------------------
 1043|    183|                        ctx.error = error_code::syntax_error;
 1044|    183|                        value.resize(size_t(p - written_begin));
 1045|    183|                        return;
 1046|    183|                     }
 1047|  86.1k|                     ++start; // skip the escape
 1048|  86.1k|                     if (*start == 'u') {
  ------------------
  |  Branch (1048:26): [True: 69.8k, False: 16.2k]
  ------------------
 1049|  69.8k|                        ++start;
 1050|  69.8k|                        p += next;
 1051|  69.8k|                        const auto mark = start;
 1052|  69.8k|                        const auto decoded = handle_unicode_code_point(start, p, end);
 1053|  69.8k|                        if (decoded.written == 0) [[unlikely]] {
  ------------------
  |  Branch (1053:29): [True: 156, False: 69.7k]
  ------------------
 1054|    156|                           ctx.error = decoded.truncated ? error_code::unexpected_end
  ------------------
  |  Branch (1054:40): [True: 0, False: 156]
  ------------------
 1055|    156|                                                         : error_code::unicode_escape_conversion_failure;
 1056|    156|                           value.resize(size_t(p - written_begin));
 1057|    156|                           return;
 1058|    156|                        }
 1059|  69.7k|                        n += decoded.written;
 1060|       |                        // escape + u + unicode code points
 1061|  69.7k|                        n -= 2 + uint32_t(start - mark);
 1062|  69.7k|                     }
 1063|  16.2k|                     else {
 1064|  16.2k|                        p += next;
 1065|  16.2k|                        *p = char_unescape_table[uint8_t(*start)];
 1066|  16.2k|                        if (*p == 0) [[unlikely]] {
  ------------------
  |  Branch (1066:29): [True: 53, False: 16.2k]
  ------------------
 1067|     53|                           ctx.error = error_code::invalid_escape;
 1068|     53|                           value.resize(size_t(p - written_begin));
 1069|     53|                           return;
 1070|     53|                        }
 1071|  16.2k|                        ++p;
 1072|  16.2k|                        ++start;
 1073|  16.2k|                        --n;
 1074|  16.2k|                     }
 1075|  86.1k|                  }
 1076|       |
 1077|       |                  // Whatever the chunked copy could not reach. `p` and `start` stay in step across
 1078|       |                  // that loop, so this picks up exactly where it stopped.
 1079|  1.89M|                  while (start < it) {
  ------------------
  |  Branch (1079:26): [True: 3.82k, False: 1.88M]
  ------------------
 1080|  3.82k|                     if ((*start & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1080:26): [True: 27, False: 3.80k]
  ------------------
 1081|     27|                        ctx.error = error_code::syntax_error;
 1082|     27|                        value.resize(size_t(p - written_begin));
 1083|     27|                        return;
 1084|     27|                     }
 1085|  3.80k|                     if (*start == '\\') {
  ------------------
  |  Branch (1085:26): [True: 546, False: 3.25k]
  ------------------
 1086|    546|                        ++start; // skip the escape
 1087|    546|                        if (*start == 'u') {
  ------------------
  |  Branch (1087:29): [True: 155, False: 391]
  ------------------
 1088|    155|                           ++start;
 1089|    155|                           const auto mark = start;
 1090|    155|                           const auto decoded = handle_unicode_code_point(start, p, end);
 1091|    155|                           if (decoded.written == 0) [[unlikely]] {
  ------------------
  |  Branch (1091:32): [True: 40, False: 115]
  ------------------
 1092|     40|                              ctx.error = decoded.truncated ? error_code::unexpected_end
  ------------------
  |  Branch (1092:43): [True: 0, False: 40]
  ------------------
 1093|     40|                                                            : error_code::unicode_escape_conversion_failure;
 1094|     40|                              value.resize(size_t(p - written_begin));
 1095|     40|                              return;
 1096|     40|                           }
 1097|    115|                           n += decoded.written;
 1098|    115|                           n -= 2 + uint32_t(start - mark);
 1099|    115|                        }
 1100|    391|                        else {
 1101|    391|                           *p = char_unescape_table[uint8_t(*start)];
 1102|    391|                           if (*p == 0) [[unlikely]] {
  ------------------
  |  Branch (1102:32): [True: 10, False: 381]
  ------------------
 1103|     10|                              ctx.error = error_code::invalid_escape;
 1104|     10|                              value.resize(size_t(p - written_begin));
 1105|     10|                              return;
 1106|     10|                           }
 1107|    381|                           ++p;
 1108|    381|                           ++start;
 1109|    381|                           --n;
 1110|    381|                        }
 1111|    546|                     }
 1112|  3.25k|                     else {
 1113|  3.25k|                        *p = *start;
 1114|  3.25k|                        ++p;
 1115|  3.25k|                        ++start;
 1116|  3.25k|                     }
 1117|  3.80k|                  }
 1118|       |
 1119|  1.88M|                  value.resize(n);
 1120|  1.88M|                  ++it;
 1121|  1.88M|               }
 1122|  20.6k|               else {
 1123|       |                  // For short strings
 1124|       |
 1125|  20.6k|                  std::array<char, 8> buffer{};
 1126|       |
 1127|  20.6k|                  auto* p = buffer.data();
 1128|  20.6k|                  const auto* const utf8_start = it;
 1129|       |
 1130|  59.6k|                  while (it < end) [[likely]] {
  ------------------
  |  Branch (1130:26): [True: 59.1k, False: 561]
  ------------------
 1131|  59.1k|                     *p = *it;
 1132|  59.1k|                     if (*it == '"') {
  ------------------
  |  Branch (1132:26): [True: 20.0k, False: 39.0k]
  ------------------
 1133|  20.0k|                        if (validate_utf8_span<Opts>(ctx, utf8_start, it)) [[unlikely]] {
  ------------------
  |  Branch (1133:29): [True: 0, False: 20.0k]
  ------------------
 1134|      0|                           return;
 1135|      0|                        }
 1136|  20.0k|                        const size_t n = size_t(p - buffer.data());
 1137|  20.0k|#if __has_cpp_attribute(assume) >= 202207L
 1138|  20.0k|                        [[assume(n <= sizeof(buffer))]];
 1139|  20.0k|#endif
 1140|  20.0k|                        value.assign(buffer.data(), n);
 1141|  20.0k|                        ++it;
 1142|  20.0k|                        if constexpr (not Opts.null_terminated) {
 1143|  20.0k|                           if (it == end) {
  ------------------
  |  Branch (1143:32): [True: 202, False: 19.8k]
  ------------------
 1144|    202|                              ctx.error = error_code::end_reached;
 1145|    202|                              return;
 1146|    202|                           }
 1147|  20.0k|                        }
 1148|  19.8k|                        return;
 1149|  20.0k|                     }
 1150|  39.0k|                     else if (*it == '\\') {
  ------------------
  |  Branch (1150:31): [True: 159, False: 38.9k]
  ------------------
 1151|       |                        // Bounded whatever `null_terminated` says: a document cut off inside an
 1152|       |                        // escape has run out of input, and saying so beats blaming the terminator
 1153|       |                        // the cut exposed -- which is what reading on would find, and would report
 1154|       |                        // as a malformed escape.
 1155|    159|                        ++it; // skip the escape
 1156|    159|                        if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1156:29): [True: 0, False: 159]
  ------------------
 1157|      0|                           ctx.error = error_code::unexpected_end;
 1158|      0|                           return;
 1159|      0|                        }
 1160|    159|                        if (*it == 'u') {
  ------------------
  |  Branch (1160:29): [True: 101, False: 58]
  ------------------
 1161|    101|                           ++it;
 1162|    101|                           if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1162:32): [True: 0, False: 101]
  ------------------
 1163|      0|                              ctx.error = error_code::unexpected_end;
 1164|      0|                              return;
 1165|      0|                           }
 1166|    101|                           const auto decoded = handle_unicode_code_point(it, p, end);
 1167|    101|                           if (decoded.written == 0) [[unlikely]] {
  ------------------
  |  Branch (1167:32): [True: 38, False: 63]
  ------------------
 1168|     38|                              ctx.error = decoded.truncated ? error_code::unexpected_end
  ------------------
  |  Branch (1168:43): [True: 0, False: 38]
  ------------------
 1169|     38|                                                            : error_code::unicode_escape_conversion_failure;
 1170|     38|                              return;
 1171|     38|                           }
 1172|    101|                        }
 1173|     58|                        else {
 1174|     58|                           *p = char_unescape_table[uint8_t(*it)];
 1175|     58|                           if (*p == 0) [[unlikely]] {
  ------------------
  |  Branch (1175:32): [True: 9, False: 49]
  ------------------
 1176|      9|                              ctx.error = error_code::invalid_escape;
 1177|      9|                              return;
 1178|      9|                           }
 1179|     49|                           ++p;
 1180|     49|                           ++it;
 1181|     49|                        }
 1182|    159|                     }
 1183|  38.9k|                     else if ((*it & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1183:31): [True: 21, False: 38.8k]
  ------------------
 1184|     21|                        ctx.error = error_code::syntax_error;
 1185|     21|                        return;
 1186|     21|                     }
 1187|  38.8k|                     else {
 1188|  38.8k|                        ++it;
 1189|  38.8k|                        ++p;
 1190|  38.8k|                     }
 1191|  59.1k|                  }
 1192|       |
 1193|    561|                  ctx.error = error_code::unexpected_end;
 1194|    561|               }
 1195|       |            }
 1196|       |            else {
 1197|       |               // raw_string
 1198|       |               auto start = it;
 1199|       |               skip_string_view(ctx, it, end);
 1200|       |               if (bool(ctx.error)) [[unlikely]]
 1201|       |                  return;
 1202|       |
 1203|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]] {
 1204|       |                  return;
 1205|       |               }
 1206|       |
 1207|       |               value.assign(start, size_t(it - start));
 1208|       |               ++it;
 1209|       |            }
 1210|  1.90M|         }
 1211|  1.90M|      }
_ZN3glz14parse_ws_colonITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextENS_7contextERPKcS4_EEbRT0_OT1_T2_:
  159|  1.90M|   {
  160|  1.90M|      if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (160:11): [True: 0, False: 1.90M]
  ------------------
  161|      0|         return true;
  162|      0|      }
  163|  1.90M|      if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (163:11): [True: 232, False: 1.90M]
  ------------------
  164|    232|         return true;
  165|    232|      }
  166|  1.90M|      if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (166:11): [True: 0, False: 1.90M]
  ------------------
  167|      0|         return true;
  168|      0|      }
  169|  1.90M|      return false;
  170|  1.90M|   }
_ZZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_ENKUlOT_E_clIRS8_EEDaSZ_:
 3189|  13.8k|                  auto reading = [&](auto&& key) {
 3190|       |                     if constexpr (Opts.partial_read) {
 3191|       |                        if (auto element = value.find(key); element != value.end()) {
 3192|       |                           ++read_count;
 3193|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|       |                        }
 3195|       |                        else {
 3196|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|       |                        }
 3198|       |                     }
 3199|  13.8k|                     else {
 3200|  13.8k|                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|  13.8k|                     }
 3202|  13.8k|                  };
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm6EEEDav:
  490|  1.41k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm6ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|  1.41k|   {
  313|  1.41k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|  1.41k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|  1.41k|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|  1.41k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 1.40k, False: 7]
  |  Branch (321:52): [True: 1.40k, False: 3]
  ------------------
  322|  1.40k|         it += Length;
  323|  1.40k|         if constexpr (not Opts.null_terminated) {
  324|  1.40k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 1.40k]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|  1.40k|         }
  329|       |
  330|  1.40k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 1.40k]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|  1.40k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 25, False: 1.37k]
  ------------------
  334|     25|            return;
  335|     25|         }
  336|  1.37k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 1.37k]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|  1.37k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|  1.37k|      }
  343|     10|      else [[unlikely]] {
  344|     10|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|     10|      }
  346|  1.41k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm6ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|  1.37k|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|  1.37k|      else {
  274|  1.37k|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|  1.37k|         else {
  298|  1.37k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|  1.37k|                                                                       it, end);
  300|  1.37k|         }
  301|  1.37k|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|  1.37k|   }
_ZN3glz4fromILj10ENSt3__18optionalIdEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
 4883|  1.37k|      {
 4884|  1.37k|         constexpr auto Opts = ws_handled_off<Options>();
 4885|       |         if constexpr (!check_ws_handled(Options)) {
 4886|       |            if (skip_ws<Opts>(ctx, it, end)) {
 4887|       |               return;
 4888|       |            }
 4889|       |         }
 4890|       |
 4891|  1.37k|         if (*it == 'n') {
  ------------------
  |  Branch (4891:14): [True: 560, False: 816]
  ------------------
 4892|    560|            ++it;
 4893|    560|            if constexpr (not Opts.null_terminated) {
 4894|    560|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (4894:20): [True: 0, False: 560]
  ------------------
 4895|      0|                  ctx.error = error_code::unexpected_end;
 4896|      0|                  return;
 4897|      0|               }
 4898|    560|            }
 4899|    560|            match<"ull", Opts>(ctx, it, end);
 4900|    560|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (4900:17): [True: 40, False: 520]
  ------------------
 4901|     40|               return;
 4902|    520|            if constexpr (requires { value.reset(); }) {
 4903|    520|               value.reset();
 4904|    520|            }
 4905|    520|         }
 4906|    816|         else {
 4907|    816|            if constexpr (nullable_value_t<T>) {
 4908|    816|               if (not value.has_value()) {
  ------------------
  |  Branch (4908:20): [True: 404, False: 412]
  ------------------
 4909|       |                  if constexpr (constructible<T>) {
 4910|       |                     value = meta_construct_v<T>();
 4911|       |                  }
 4912|    404|                  else if constexpr (requires { value.emplace(); }) {
 4913|    404|                     value.emplace();
 4914|       |                  }
 4915|       |                  else {
 4916|       |                     static_assert(false_v<T>,
 4917|       |                                   "Your nullable type must have `emplace()` or be glz::meta constructible, or "
 4918|       |                                   "create a custom glz::from specialization");
 4919|       |                  }
 4920|    404|               }
 4921|    816|               parse<JSON>::op<Opts>(value.value(), ctx, it, end);
 4922|       |            }
 4923|       |            else {
 4924|       |               if (!value) {
 4925|       |                  if (!nullable_emplace<Opts>(value, ctx)) {
 4926|       |                     return;
 4927|       |                  }
 4928|       |               }
 4929|       |               parse<JSON>::op<Opts>(*value, ctx, it, end);
 4930|       |            }
 4931|    816|         }
 4932|  1.37k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERdTkNS_10is_contextERNS_7contextERPKcS8_EEvOT0_OT1_OT2_T3_:
   49|  3.76k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  3.76k|         else {
   60|  3.76k|            using V = std::remove_cvref_t<T>;
   61|  3.76k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  3.76k|                                             end);
   63|  3.76k|         }
   64|  3.76k|      }
_ZN3glz4fromILj10EdE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERPKcRdTkNS_10is_contextERNS_7contextES5_EEvOT1_OT2_OT0_T3_:
  763|  3.76k|      {
  764|       |         if constexpr (check_quoted_num(Opts)) {
  765|       |            if (skip_ws<Opts>(ctx, it, end)) {
  766|       |               return;
  767|       |            }
  768|       |            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  769|       |               return;
  770|       |            }
  771|       |         }
  772|       |
  773|  3.76k|         if constexpr (!check_ws_handled(Opts)) {
  774|  3.76k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (774:17): [True: 0, False: 3.76k]
  ------------------
  775|      0|               return;
  776|      0|            }
  777|  3.76k|         }
  778|       |
  779|  3.76k|         using V = std::decay_t<decltype(value)>;
  780|       |         if constexpr (int_t<V>) {
  781|       |            static_assert(sizeof(*it) == sizeof(char));
  782|       |
  783|       |            if constexpr (Opts.null_terminated) {
  784|       |               if (not glz::atoi(value, it)) [[unlikely]] {
  785|       |                  ctx.error = error_code::parse_number_failure;
  786|       |                  return;
  787|       |               }
  788|       |            }
  789|       |            else {
  790|       |               if (not glz::atoi(value, it, end)) [[unlikely]] {
  791|       |                  ctx.error = error_code::parse_number_failure;
  792|       |                  return;
  793|       |               }
  794|       |            }
  795|       |         }
  796|  3.76k|         else {
  797|       |// float128_t requires std::from_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  798|  3.76k|#if !defined(_LIBCPP_VERSION) || defined(_LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT)
  799|       |            if constexpr (is_float128<V>) {
  800|       |               auto [ptr, ec] = std::from_chars(it, end, value);
  801|       |               if (ec != std::errc()) {
  802|       |                  ctx.error = error_code::parse_number_failure;
  803|       |                  return;
  804|       |               }
  805|       |               it = ptr;
  806|       |            }
  807|       |            else
  808|       |#endif
  809|  3.76k|            {
  810|       |               if constexpr (std::is_volatile_v<std::remove_reference_t<decltype(value)>>) {
  811|       |                  // Hardware may interact with value changes, so we parse into a temporary and assign in one
  812|       |                  // place
  813|       |                  V temp;
  814|       |                  if constexpr (is_size_optimized(Opts)) {
  815|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, temp);
  816|       |                     if (ec != std::errc{}) [[unlikely]] {
  817|       |                        ctx.error = error_code::parse_number_failure;
  818|       |                        return;
  819|       |                     }
  820|       |                     it = ptr;
  821|       |                  }
  822|       |                  else {
  823|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, temp);
  824|       |                     if (ec != std::errc()) [[unlikely]] {
  825|       |                        ctx.error = error_code::parse_number_failure;
  826|       |                        return;
  827|       |                     }
  828|       |                     it = ptr;
  829|       |                  }
  830|       |                  value = temp;
  831|       |               }
  832|  3.76k|               else {
  833|       |                  if constexpr (is_size_optimized(Opts)) {
  834|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, value);
  835|       |                     if (ec != std::errc{}) [[unlikely]] {
  836|       |                        ctx.error = error_code::parse_number_failure;
  837|       |                        return;
  838|       |                     }
  839|       |                     it = ptr;
  840|       |                  }
  841|  3.76k|                  else {
  842|  3.76k|                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, value);
  843|  3.76k|                     if (ec != std::errc()) [[unlikely]] {
  ------------------
  |  Branch (843:26): [True: 658, False: 3.10k]
  ------------------
  844|    658|                        ctx.error = error_code::parse_number_failure;
  845|    658|                        return;
  846|    658|                     }
  847|  3.10k|                     it = ptr;
  848|  3.10k|                  }
  849|  3.76k|               }
  850|  3.76k|            }
  851|  3.76k|         }
  852|       |
  853|       |         if constexpr (check_quoted_num(Opts)) {
  854|       |            if constexpr (not Opts.null_terminated) {
  855|       |               if (it == end) [[unlikely]] {
  856|       |                  ctx.error = error_code::unexpected_end;
  857|       |                  return;
  858|       |               }
  859|       |            }
  860|       |            if (match<'"'>(ctx, it)) {
  861|       |               return;
  862|       |            }
  863|       |            if constexpr (not Opts.null_terminated) {
  864|       |               if (it == end) {
  865|       |                  ctx.error = error_code::end_reached;
  866|       |                  return;
  867|       |               }
  868|       |            }
  869|       |         }
  870|  3.76k|         else {
  871|  3.76k|            if constexpr (not Opts.null_terminated) {
  872|  3.76k|               if (it == end) {
  ------------------
  |  Branch (872:20): [True: 2.17k, False: 1.58k]
  ------------------
  873|  2.17k|                  ctx.error = error_code::end_reached;
  874|  2.17k|                  return;
  875|  2.17k|               }
  876|  3.76k|            }
  877|  3.76k|         }
  878|  3.76k|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm7EEEDav:
  490|  1.97k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm7ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|  1.97k|   {
  313|  1.97k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|  1.97k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|  1.97k|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|  1.97k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 1.96k, False: 8]
  |  Branch (321:52): [True: 1.80k, False: 162]
  ------------------
  322|  1.80k|         it += Length;
  323|  1.80k|         if constexpr (not Opts.null_terminated) {
  324|  1.80k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 1.80k]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|  1.80k|         }
  329|       |
  330|  1.80k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 1.80k]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|  1.80k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 27, False: 1.78k]
  ------------------
  334|     27|            return;
  335|     27|         }
  336|  1.78k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 1.78k]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|  1.78k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|  1.78k|      }
  343|    170|      else [[unlikely]] {
  344|    170|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|    170|      }
  346|  1.97k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm7ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|  1.78k|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|  1.78k|      else {
  274|  1.78k|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|  1.78k|         else {
  298|  1.78k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|  1.78k|                                                                       it, end);
  300|  1.78k|         }
  301|  1.78k|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|  1.78k|   }
_ZN3glz4fromILj10ENSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERSB_TkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
 3860|  1.78k|      {
 3861|       |         if constexpr (tagging == variant_tagging_kind::adjacent) {
 3862|       |            read_adjacent<Options>(value, ctx, it, end);
 3863|       |         }
 3864|  1.78k|         else {
 3865|  1.78k|            read_deduced<Options>(value, ctx, it, end);
 3866|  1.78k|         }
 3867|  1.78k|      }
_ZN3glz4fromILj10ENSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEE12read_deducedITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERSB_TkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
 3871|  1.78k|      {
 3872|  1.78k|         constexpr auto Opts = ws_handled_off<Options>();
 3873|  1.78k|         if constexpr (variant_is_auto_deducible<T>()) {
 3874|       |            if constexpr (not check_ws_handled(Options)) {
 3875|       |               if (skip_ws<Opts>(ctx, it, end)) {
 3876|       |                  return;
 3877|       |               }
 3878|       |            }
 3879|       |
 3880|  1.78k|            switch (*it) {
 3881|      3|            case '\0':
  ------------------
  |  Branch (3881:13): [True: 3, False: 1.77k]
  ------------------
 3882|      3|               ctx.error = error_code::unexpected_end;
 3883|      3|               return;
 3884|    502|            case '{': {
  ------------------
  |  Branch (3884:13): [True: 502, False: 1.27k]
  ------------------
 3885|       |               // This branch consumes the brace itself and hands the object to a reader with
 3886|       |               // `opening_handled`, which therefore does not count the level -- but does release it at
 3887|       |               // the closing brace. So the level is taken here, in both buffer modes, and paid back by
 3888|       |               // the reader below.
 3889|    502|               if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (3889:20): [True: 0, False: 502]
  ------------------
 3890|      0|                  return;
 3891|      0|               }
 3892|       |
 3893|    502|               ++it;
 3894|    502|               if constexpr (not Opts.null_terminated) {
 3895|    502|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3895:23): [True: 0, False: 502]
  ------------------
 3896|      0|                     ctx.error = error_code::unexpected_end;
 3897|      0|                     return;
 3898|      0|                  }
 3899|    502|               }
 3900|    502|               using type_counts = variant_type_count<T>;
 3901|    502|               constexpr auto n_object_candidates = variant_object_candidate_count_v<Opts, T>;
 3902|       |               if constexpr (n_object_candidates < 1) {
 3903|       |                  ctx.error = error_code::no_matching_variant_type;
 3904|       |                  return;
 3905|       |               }
 3906|    502|               else if constexpr (n_object_candidates == 1 && tag_v<T>.empty()) {
 3907|    502|                  constexpr auto first_idx = variant_first_object_candidate_v<Opts, T>;
 3908|    502|                  using V = std::variant_alternative_t<first_idx, T>;
 3909|    502|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (3909:23): [True: 314, False: 188]
  ------------------
 3910|    502|                  parse<JSON>::op<opening_handled<Opts>()>(std::get<V>(value), ctx, it, end);
 3911|    502|                  return;
 3912|       |               }
 3913|       |               else {
 3914|       |                  auto possible_types = bit_array<std::variant_size_v<T>>{}.flip();
 3915|       |                  static constexpr auto& deduction_bits = variant_deduction_bits<T>;
 3916|       |                  static constexpr size_t deduction_key_count = variant_deduction_key_count<T>;
 3917|       |                  static constexpr auto tag_literal = string_literal_from_view<tag_v<T>.size()>(tag_v<T>);
 3918|       |
 3919|       |                  // Track if we've encountered a tag and what value it had
 3920|       |                  std::optional<size_t> tag_specified_index{};
 3921|       |
 3922|       |                  if (skip_ws<Opts>(ctx, it, end)) {
 3923|       |                     return;
 3924|       |                  }
 3925|       |                  // Once the reader knows which alternative this object holds it may have to read
 3926|       |                  // it again from here. Anchor the position rather than keep the pointer: the scan
 3927|       |                  // below skips values, and a streaming skip refills, which moves the window out
 3928|       |                  // from under a raw pointer (see rewind_anchor).
 3929|       |                  auto start = make_rewind_anchor(ctx, it);
 3930|       |                  bool first_key = true;
 3931|       |                  // Parse bifurcation for tagged variants:
 3932|       |                  //
 3933|       |                  // Without this optimization, tagged variant parsing always uses two passes:
 3934|       |                  //   1. Scan all keys to find the tag (e.g. "type"), skipping values
 3935|       |                  //   2. Reset `it = start` and re-parse the entire object into the resolved type
 3936|       |                  //
 3937|       |                  // When the tag is the first key, the second pass redundantly re-reads every
 3938|       |                  // field that follows it. This lambda avoids that: if the tag was the first key,
 3939|       |                  // it advances past the trailing comma so the object parser picks up at the
 3940|       |                  // second field. If the tag was found later, it falls back to the full re-parse.
 3941|       |                  //
 3942|       |                  // One exception: if the tag name is also a field on the resolved struct
 3943|       |                  // (contains_tag), we must re-parse regardless so the value is stored in
 3944|       |                  // the struct field. This override is applied inside each std::visit lambda.
 3945|       |                  //
 3946|       |                  // Either way the rewind can fail under a streaming read: the window only holds so
 3947|       |                  // much, and an object wider than it has no start left to return to.
 3948|       |                  auto position_after_tag = [&] {
 3949|       |                     if (first_key) {
 3950|       |                        if (*it == ',') ++it; // skip comma; handles tag-only objects where *it == '}'
 3951|       |                        return true;
 3952|       |                     }
 3953|       |                     return start.rewind(ctx, it, end); // tag came later, re-parse from the beginning
 3954|       |                  };
 3955|       |                  // `first_key` also answers "were we reset to the object start", which is what
 3956|       |                  // position_after_tag does for every key but the first.
 3957|       |                  for (; *it != '}'; first_key = false) {
 3958|       |                     if (!first_key) {
 3959|       |                        if (match_invalid_end<',', Opts>(ctx, it, end)) {
 3960|       |                           return;
 3961|       |                        }
 3962|       |                     }
 3963|       |
 3964|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3965|       |                        return;
 3966|       |                     }
 3967|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3968|       |                        return;
 3969|       |                     }
 3970|       |
 3971|       |                     auto* key_start = it;
 3972|       |                     skip_string_view(ctx, it, end);
 3973|       |                     if (bool(ctx.error)) [[unlikely]]
 3974|       |                        return;
 3975|       |                     if (validate_utf8_span<Opts>(ctx, key_start, it)) [[unlikely]]
 3976|       |                        return;
 3977|       |                     const sv key = {key_start, size_t(it - key_start)};
 3978|       |
 3979|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3980|       |                        return;
 3981|       |                     }
 3982|       |
 3983|       |                     if constexpr (deduction_key_count > 0) {
 3984|       |                        // We first check if a tag is defined and see if the key matches the tag
 3985|       |                        if constexpr (not tag_v<T>.empty()) {
 3986|       |                           if (key == tag_v<T>) {
 3987|       |                              if (parse_ws_colon<Opts>(ctx, it, end)) {
 3988|       |                                 return;
 3989|       |                              }
 3990|       |
 3991|       |                              using id_type = std::decay_t<decltype(ids_v<T>[0])>;
 3992|       |
 3993|       |                              std::conditional_t<std::integral<id_type>, id_type, sv> type_id{};
 3994|       |                              if constexpr (std::integral<id_type>) {
 3995|       |                                 from<JSON, id_type>::template op<ws_handled<Opts>()>(type_id, ctx, it, end);
 3996|       |                              }
 3997|       |                              else {
 3998|       |                                 // The id is turned into an index below and never leaves this
 3999|       |                                 // reader, so the view of the window it borrows cannot outlive it.
 4000|       |                                 parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4001|       |                              }
 4002|       |                              if (bool(ctx.error)) [[unlikely]]
 4003|       |                                 return;
 4004|       |                              if (skip_ws<Opts>(ctx, it, end)) {
 4005|       |                                 return;
 4006|       |                              }
 4007|       |                              if (!(*it == ',' || *it == '}')) [[unlikely]] {
 4008|       |                                 ctx.error = error_code::syntax_error;
 4009|       |                                 return;
 4010|       |                              }
 4011|       |
 4012|       |                              size_t type_index;
 4013|       |                              if constexpr (std::integral<id_type>) {
 4014|       |                                 type_index = variant_id_to_index<T>::op(type_id);
 4015|       |                              }
 4016|       |                              else {
 4017|       |                                 type_index = variant_id_to_index<T>::op(
 4018|       |                                    type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4019|       |                              }
 4020|       |                              if (type_index < ids_v<T>.size()) [[likely]] {
 4021|       |                                 // Check if the deduced types include the tag-specified type
 4022|       |                                 // If not, the tag doesn't match the fields
 4023|       |                                 // We're already inside if constexpr (deduction_registry.size()), so we know deduction
 4024|       |                                 // is happening. At this point, possible_types has been narrowed by field deduction.
 4025|       |                                 // Check if the tag-specified type is still possible
 4026|       |                                 const bool type_is_possible = possible_types[type_index];
 4027|       |                                 if (!type_is_possible) {
 4028|       |                                    // Tag specifies a type that doesn't match the fields seen so far
 4029|       |                                    ctx.error = error_code::no_matching_variant_type;
 4030|       |                                    return;
 4031|       |                                 }
 4032|       |
 4033|       |                                 if (!position_after_tag()) return;
 4034|       |                                 tag_specified_index = type_index; // Store the tag-specified type
 4035|       |                                 if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4036|       |                                 std::visit(
 4037|       |                                    [&](auto&& v) {
 4038|       |                                       using V = std::decay_t<decltype(v)>;
 4039|       |                                       constexpr bool is_object =
 4040|       |                                          (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4041|       |                                       if constexpr (variant_unit_alternative<V>) {
 4042|       |                                          // A unit alternative carries no data; its object holds only the
 4043|       |                                          // discriminator. Consume that body through an empty reflected object so
 4044|       |                                          // unknown-key policy and terminator handling match every other alternative.
 4045|       |                                          detail::variant_unit_body unit_body{};
 4046|       |                                          from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4047|       |                                                                                             tag_literal>(unit_body,
 4048|       |                                                                                                          ctx, it, end);
 4049|       |                                       }
 4050|       |                                       else if constexpr (is_object) {
 4051|       |                                          if constexpr (contains_tag<V, tag_literal>()) {
 4052|       |                                             // tag is a struct field, must re-parse
 4053|       |                                             if (!start.rewind(ctx, it, end)) return;
 4054|       |                                          }
 4055|       |                                          from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it,
 4056|       |                                                                                                           end);
 4057|       |                                       }
 4058|       |                                       else if constexpr (is_memory_object<V>) {
 4059|       |                                          if (!v) {
 4060|       |                                             if constexpr (is_specialization_v<V, std::optional>) {
 4061|       |                                                if constexpr (requires { v.emplace(); }) {
 4062|       |                                                   v.emplace();
 4063|       |                                                }
 4064|       |                                                else {
 4065|       |                                                   v = typename V::value_type{};
 4066|       |                                                }
 4067|       |                                             }
 4068|       |                                             else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4069|       |                                                v = std::make_unique<typename V::element_type>();
 4070|       |                                             else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4071|       |                                                v = std::make_shared<typename V::element_type>();
 4072|       |                                             else if constexpr (constructible<V>) {
 4073|       |                                                v = meta_construct_v<V>();
 4074|       |                                             }
 4075|       |                                             else if constexpr (std::is_pointer_v<V> &&
 4076|       |                                                                can_allocate_raw_pointer<Opts,
 4077|       |                                                                                         std::decay_t<decltype(ctx)>>) {
 4078|       |                                                if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4079|       |                                                   return;
 4080|       |                                                }
 4081|       |                                             }
 4082|       |                                             else {
 4083|       |                                                ctx.error = error_code::invalid_nullable_read;
 4084|       |                                                return;
 4085|       |                                                // Cannot read into unset nullable that is not std::optional,
 4086|       |                                                // std::unique_ptr, or std::shared_ptr
 4087|       |                                             }
 4088|       |                                          }
 4089|       |                                          if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4090|       |                                             // tag is a struct field, must re-parse
 4091|       |                                             if (!start.rewind(ctx, it, end)) return;
 4092|       |                                          }
 4093|       |                                          from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4094|       |                                             *v, ctx, it, end);
 4095|       |                                       }
 4096|       |                                       else if constexpr (custom_read<V>) {
 4097|       |                                          // Custom handlers parse the remaining body themselves and do not
 4098|       |                                          // accept the tag template parameter; the tag was already consumed.
 4099|       |                                          // This only works when the tag was the first key. If it came later,
 4100|       |                                          // we were reset to the object start and the custom handler would
 4101|       |                                          // absorb the tag, so error rather than corrupt the value.
 4102|       |                                          if (!first_key) {
 4103|       |                                             ctx.error = error_code::feature_not_supported;
 4104|       |                                             ctx.custom_error_message =
 4105|       |                                                "the tag must be the first key for a custom variant alternative";
 4106|       |                                             return;
 4107|       |                                          }
 4108|       |                                          from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4109|       |                                       }
 4110|       |                                    },
 4111|       |                                    value);
 4112|       |
 4113|       |                                 return; // we've decoded our target type
 4114|       |                              }
 4115|       |                              else [[unlikely]] {
 4116|       |                                 // Check if we have a default type (ids array shorter than variant)
 4117|       |                                 constexpr auto ids_size = ids_v<T>.size();
 4118|       |                                 constexpr auto variant_size = std::variant_size_v<T>;
 4119|       |                                 if constexpr (ids_size < variant_size) {
 4120|       |                                    // Use the first unlabeled type as the default
 4121|       |                                    const auto default_type_index = ids_size;
 4122|       |
 4123|       |                                    if (!position_after_tag()) return;
 4124|       |                                    tag_specified_index = default_type_index; // Store the default type index
 4125|       |                                    if (value.index() != default_type_index)
 4126|       |                                       emplace_runtime_variant(value, default_type_index);
 4127|       |                                    std::visit(
 4128|       |                                       [&](auto&& v) {
 4129|       |                                          using V = std::decay_t<decltype(v)>;
 4130|       |                                          constexpr bool is_object =
 4131|       |                                             (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4132|       |                                          if constexpr (variant_unit_alternative<V>) {
 4133|       |                                             // A unit alternative carries no data; its object holds only the
 4134|       |                                             // discriminator. Consume that body through an empty reflected object so
 4135|       |                                             // unknown-key policy and terminator handling match every other
 4136|       |                                             // alternative.
 4137|       |                                             detail::variant_unit_body unit_body{};
 4138|       |                                             from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4139|       |                                                                                                tag_literal>(
 4140|       |                                                unit_body, ctx, it, end);
 4141|       |                                          }
 4142|       |                                          else if constexpr (is_object) {
 4143|       |                                             if constexpr (contains_tag<V, tag_literal>()) {
 4144|       |                                                // tag is a struct field, must re-parse
 4145|       |                                                if (!start.rewind(ctx, it, end)) return;
 4146|       |                                             }
 4147|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4148|       |                                          }
 4149|       |                                          else if constexpr (is_memory_object<V>) {
 4150|       |                                             if (!v) {
 4151|       |                                                if constexpr (is_specialization_v<V, std::optional>) {
 4152|       |                                                   if constexpr (requires { v.emplace(); }) {
 4153|       |                                                      v.emplace();
 4154|       |                                                   }
 4155|       |                                                   else {
 4156|       |                                                      v = typename V::value_type{};
 4157|       |                                                   }
 4158|       |                                                }
 4159|       |                                                else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4160|       |                                                   v = std::make_unique<typename V::element_type>();
 4161|       |                                                else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4162|       |                                                   v = std::make_shared<typename V::element_type>();
 4163|       |                                                else if constexpr (constructible<V>) {
 4164|       |                                                   v = meta_construct_v<V>();
 4165|       |                                                }
 4166|       |                                                else if constexpr (std::is_pointer_v<V> &&
 4167|       |                                                                   can_allocate_raw_pointer<
 4168|       |                                                                      Opts, std::decay_t<decltype(ctx)>>) {
 4169|       |                                                   if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4170|       |                                                      return;
 4171|       |                                                   }
 4172|       |                                                }
 4173|       |                                                else {
 4174|       |                                                   ctx.error = error_code::invalid_nullable_read;
 4175|       |                                                   return;
 4176|       |                                                }
 4177|       |                                             }
 4178|       |                                             if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4179|       |                                                // tag is a struct field, must re-parse
 4180|       |                                                if (!start.rewind(ctx, it, end)) return;
 4181|       |                                             }
 4182|       |                                             from<JSON, memory_type<V>>::template op<opening_handled<Opts>()>(*v, ctx,
 4183|       |                                                                                                              it, end);
 4184|       |                                          }
 4185|       |                                          else if constexpr (custom_read<V>) {
 4186|       |                                             // Custom handlers parse the remaining body themselves; this only
 4187|       |                                             // works when the tag was the first key (see above). If it came
 4188|       |                                             // later we were reset to the object start, so error rather than
 4189|       |                                             // let the custom handler absorb the tag.
 4190|       |                                             if (!first_key) {
 4191|       |                                                ctx.error = error_code::feature_not_supported;
 4192|       |                                                ctx.custom_error_message =
 4193|       |                                                   "the tag must be the first key for a custom variant alternative";
 4194|       |                                                return;
 4195|       |                                             }
 4196|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4197|       |                                          }
 4198|       |                                       },
 4199|       |                                       value);
 4200|       |
 4201|       |                                    return;
 4202|       |                                 }
 4203|       |                                 else {
 4204|       |                                    ctx.error = error_code::no_matching_variant_type;
 4205|       |                                    ctx.custom_error_message = variant_ids_string_v<T>;
 4206|       |                                    return;
 4207|       |                                 }
 4208|       |                              }
 4209|       |                           }
 4210|       |                        }
 4211|       |
 4212|       |                        // Inline decode_hash lookup for variant deduction
 4213|       |                        using deduction_keys_t = keys_wrapper<variant_deduction_keys<T>>;
 4214|       |                        constexpr auto& DeductionHashInfo = hash_info<deduction_keys_t>;
 4215|       |                        const auto deduction_index =
 4216|       |                           decode_hash_with_size<JSON, deduction_keys_t, DeductionHashInfo, DeductionHashInfo.type>::op(
 4217|       |                              key.data(), key.data() + key.size(), key.size());
 4218|       |                        if (deduction_index < deduction_key_count && variant_deduction_keys<T>[deduction_index] == key)
 4219|       |                           [[likely]] {
 4220|       |                           possible_types &= deduction_bits[deduction_index];
 4221|       |                        }
 4222|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4223|       |                           ctx.error = error_code::unknown_key;
 4224|       |                           return;
 4225|       |                        }
 4226|       |                     }
 4227|       |                     else if constexpr (not tag_v<T>.empty()) {
 4228|       |                        // empty object case for variant, if there are no normal elements
 4229|       |                        if (key == tag_v<T>) {
 4230|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4231|       |                              return;
 4232|       |                           }
 4233|       |
 4234|       |                           // The id is turned into an index below and never leaves this reader,
 4235|       |                           // so the view of the window it borrows cannot outlive that window.
 4236|       |                           std::string_view type_id{};
 4237|       |                           parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4238|       |                           if (bool(ctx.error)) [[unlikely]]
 4239|       |                              return;
 4240|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4241|       |                              return;
 4242|       |                           }
 4243|       |
 4244|       |                           const auto type_index = variant_id_to_index<T>::op(
 4245|       |                              type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4246|       |                           if (type_index < ids_v<T>.size()) [[likely]] {
 4247|       |                              if (!position_after_tag()) return;
 4248|       |                              tag_specified_index = type_index; // Store the tag-specified type
 4249|       |                              if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4250|       |                           }
 4251|       |                           else {
 4252|       |                              // Check if we have a default type (ids array shorter than variant)
 4253|       |                              constexpr auto ids_size = ids_v<T>.size();
 4254|       |                              constexpr auto variant_size = std::variant_size_v<T>;
 4255|       |                              if constexpr (ids_size < variant_size) {
 4256|       |                                 // Use the first unlabeled type as the default
 4257|       |                                 if (!position_after_tag()) return;
 4258|       |                                 const auto default_index = ids_size;
 4259|       |                                 tag_specified_index = default_index; // Store the default type index
 4260|       |                                 if (value.index() != default_index) emplace_runtime_variant(value, default_index);
 4261|       |                              }
 4262|       |                              else {
 4263|       |                                 ctx.error = error_code::no_matching_variant_type;
 4264|       |                                 ctx.custom_error_message = variant_ids_string_v<T>;
 4265|       |                                 return;
 4266|       |                              }
 4267|       |                           }
 4268|       |                           // Parse the type (handles tag skipping and unknown keys)
 4269|       |                           std::visit(
 4270|       |                              [&](auto&& v) {
 4271|       |                                 using V = std::decay_t<decltype(v)>;
 4272|       |                                 if constexpr (custom_read<V>) {
 4273|       |                                    // Custom handlers parse the remaining object body themselves and do not
 4274|       |                                    // accept the tag template parameter that reflected objects use to skip an
 4275|       |                                    // interior tag key. That only works when the tag is the first key (it was
 4276|       |                                    // just consumed). If the tag came after other keys, position_after_tag()
 4277|       |                                    // reset us to the object start and the custom handler would absorb the tag
 4278|       |                                    // into its value, so error here rather than corrupt the result.
 4279|       |                                    if (!first_key) {
 4280|       |                                       ctx.error = error_code::feature_not_supported;
 4281|       |                                       ctx.custom_error_message =
 4282|       |                                          "the tag must be the first key for a custom variant alternative";
 4283|       |                                       return;
 4284|       |                                    }
 4285|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4286|       |                                 }
 4287|       |                                 else {
 4288|       |                                    if constexpr (contains_tag<V, tag_literal>()) {
 4289|       |                                       // tag is a struct field, must re-parse
 4290|       |                                       if (!start.rewind(ctx, it, end)) return;
 4291|       |                                    }
 4292|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4293|       |                                 }
 4294|       |                              },
 4295|       |                              value);
 4296|       |                           return;
 4297|       |                        }
 4298|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4299|       |                           ctx.error = error_code::unknown_key;
 4300|       |                           return;
 4301|       |                        }
 4302|       |                        else {
 4303|       |                           // Skip unknown key's value (non-tag key in empty variant)
 4304|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4305|       |                              return;
 4306|       |                           }
 4307|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 4308|       |                           if (bool(ctx.error)) [[unlikely]]
 4309|       |                              return;
 4310|       |                           resync_window_end(ctx, end); // a streaming skip refills
 4311|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4312|       |                              return;
 4313|       |                           }
 4314|       |                           continue; // Continue loop to find the tag
 4315|       |                        }
 4316|       |                     }
 4317|       |                     else if constexpr (Opts.error_on_unknown_keys) {
 4318|       |                        ctx.error = error_code::unknown_key;
 4319|       |                        return;
 4320|       |                     }
 4321|       |
 4322|       |                     auto matching_types = possible_types.popcount();
 4323|       |                     if (matching_types == 0) {
 4324|       |                        ctx.error = error_code::no_matching_variant_type;
 4325|       |                        return;
 4326|       |                     }
 4327|       |                     // Only short-circuit for variants without tags
 4328|       |                     else if constexpr (tag_v<T>.empty()) {
 4329|       |                        if (matching_types == 1) {
 4330|       |                           if (!start.rewind(ctx, it, end)) return;
 4331|       |                           const auto type_index = possible_types.countr_zero();
 4332|       |
 4333|       |                           if (value.index() != static_cast<size_t>(type_index))
 4334|       |                              emplace_runtime_variant(value, type_index);
 4335|       |                           std::visit(
 4336|       |                              [&](auto&& v) {
 4337|       |                                 using V = std::decay_t<decltype(v)>;
 4338|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4339|       |                                 if constexpr (variant_unit_alternative<V>) {
 4340|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4341|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4342|       |                                    // terminator handling match every other alternative.
 4343|       |                                    detail::variant_unit_body unit_body{};
 4344|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4345|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4346|       |                                                                                                    end);
 4347|       |                                 }
 4348|       |                                 else if constexpr (is_object) {
 4349|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4350|       |                                 }
 4351|       |                                 else if constexpr (is_memory_object<V>) {
 4352|       |                                    if (!v) {
 4353|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4354|       |                                          if constexpr (requires { v.emplace(); }) {
 4355|       |                                             v.emplace();
 4356|       |                                          }
 4357|       |                                          else {
 4358|       |                                             v = typename V::value_type{};
 4359|       |                                          }
 4360|       |                                       }
 4361|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4362|       |                                          v = std::make_unique<typename V::element_type>();
 4363|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4364|       |                                          v = std::make_shared<typename V::element_type>();
 4365|       |                                       else if constexpr (constructible<V>) {
 4366|       |                                          v = meta_construct_v<V>();
 4367|       |                                       }
 4368|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4369|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4370|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4371|       |                                             return;
 4372|       |                                          }
 4373|       |                                       }
 4374|       |                                       else {
 4375|       |                                          ctx.error = error_code::invalid_nullable_read;
 4376|       |                                          return;
 4377|       |                                          // Cannot read into unset nullable that is not std::optional,
 4378|       |                                          // std::unique_ptr, or std::shared_ptr
 4379|       |                                       }
 4380|       |                                    }
 4381|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4382|       |                                       *v, ctx, it, end);
 4383|       |                                 }
 4384|       |                                 else if constexpr (custom_read<V>) {
 4385|       |                                    // Custom handlers parse the remaining body themselves.
 4386|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4387|       |                                 }
 4388|       |                              },
 4389|       |                              value);
 4390|       |
 4391|       |                           return; // we've decoded our target type
 4392|       |                        }
 4393|       |                     }
 4394|       |                     // For tagged variants, continue processing to validate tags
 4395|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 4396|       |                        return;
 4397|       |                     }
 4398|       |
 4399|       |                     skip_value<JSON>::op<Opts>(ctx, it, end);
 4400|       |                     if (bool(ctx.error)) [[unlikely]]
 4401|       |                        return;
 4402|       |                     resync_window_end(ctx, end); // a streaming skip refills
 4403|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 4404|       |                        return;
 4405|       |                     }
 4406|       |                  }
 4407|       |                  // Only apply ambiguous variant resolution if we have multiple object types
 4408|       |                  if constexpr ((type_counts::n_object + type_counts::n_nullable_object) > 1) {
 4409|       |                     // After parsing all keys, check if we have multiple matching types
 4410|       |                     // If so, choose the one with the fewest fields
 4411|       |                     auto final_matching = possible_types.popcount();
 4412|       |                     if (final_matching == 0) {
 4413|       |                        ctx.error = error_code::no_matching_variant_type;
 4414|       |                     }
 4415|       |                     else if (final_matching == 1) {
 4416|       |                        // Single type remains after field deduction
 4417|       |                        const auto type_index = possible_types.countr_zero();
 4418|       |
 4419|       |                        // Validate against tag if one was specified
 4420|       |                        if (tag_specified_index.has_value() &&
 4421|       |                            tag_specified_index.value() != static_cast<size_t>(type_index)) {
 4422|       |                           ctx.error = error_code::no_matching_variant_type;
 4423|       |                           return;
 4424|       |                        }
 4425|       |
 4426|       |                        if (!start.rewind(ctx, it, end)) return;
 4427|       |                        if (value.index() != static_cast<size_t>(type_index))
 4428|       |                           emplace_runtime_variant(value, type_index);
 4429|       |                        std::visit(
 4430|       |                           [&](auto&& v) {
 4431|       |                              using V = std::decay_t<decltype(v)>;
 4432|       |                              constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4433|       |                              if constexpr (variant_unit_alternative<V>) {
 4434|       |                                 // A unit alternative carries no data; its object holds only the discriminator.
 4435|       |                                 // Consume that body through an empty reflected object so unknown-key policy and
 4436|       |                                 // terminator handling match every other alternative.
 4437|       |                                 detail::variant_unit_body unit_body{};
 4438|       |                                 from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4439|       |                                                                                    tag_literal>(unit_body, ctx, it,
 4440|       |                                                                                                 end);
 4441|       |                              }
 4442|       |                              else if constexpr (is_object) {
 4443|       |                                 from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4444|       |                              }
 4445|       |                              else if constexpr (is_memory_object<V>) {
 4446|       |                                 if (!v) {
 4447|       |                                    if constexpr (is_specialization_v<V, std::optional>) {
 4448|       |                                       if constexpr (requires { v.emplace(); }) {
 4449|       |                                          v.emplace();
 4450|       |                                       }
 4451|       |                                       else {
 4452|       |                                          v = typename V::value_type{};
 4453|       |                                       }
 4454|       |                                    }
 4455|       |                                    else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4456|       |                                       v = std::make_unique<typename V::element_type>();
 4457|       |                                    else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4458|       |                                       v = std::make_shared<typename V::element_type>();
 4459|       |                                    else if constexpr (constructible<V>) {
 4460|       |                                       v = meta_construct_v<V>();
 4461|       |                                    }
 4462|       |                                    else if constexpr (std::is_pointer_v<V> &&
 4463|       |                                                       can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4464|       |                                       if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4465|       |                                          return;
 4466|       |                                       }
 4467|       |                                    }
 4468|       |                                    else {
 4469|       |                                       ctx.error = error_code::invalid_nullable_read;
 4470|       |                                       return;
 4471|       |                                    }
 4472|       |                                 }
 4473|       |                                 from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(*v, ctx,
 4474|       |                                                                                                               it, end);
 4475|       |                              }
 4476|       |                              else if constexpr (custom_read<V>) {
 4477|       |                                 // Custom handlers parse the remaining body themselves.
 4478|       |                                 from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4479|       |                              }
 4480|       |                           },
 4481|       |                           value);
 4482|       |                     }
 4483|       |                     else if (final_matching > 1) {
 4484|       |                        constexpr auto N = std::variant_size_v<T>;
 4485|       |
 4486|       |                        // Compile-time array of field counts for each variant type
 4487|       |                        constexpr auto field_counts = []<size_t... I>(std::index_sequence<I...>) {
 4488|       |                           return std::array<size_t, N> {
 4489|       |                              ([]<size_t J = I>() -> size_t {
 4490|       |                                 using V = std::decay_t<std::variant_alternative_t<J, T>>;
 4491|       |                                 if constexpr (glaze_object_t<V> || reflectable<V>) {
 4492|       |                                    return reflect<V>::size;
 4493|       |                                 }
 4494|       |                                 else if constexpr (is_memory_object<V>) {
 4495|       |                                    using X = memory_type<V>;
 4496|       |                                    if constexpr (glaze_object_t<X> || reflectable<X>) {
 4497|       |                                       return reflect<X>::size;
 4498|       |                                    }
 4499|       |                                    else {
 4500|       |                                       return (std::numeric_limits<size_t>::max)();
 4501|       |                                    }
 4502|       |                                 }
 4503|       |                                 else {
 4504|       |                                    return (std::numeric_limits<size_t>::max)();
 4505|       |                                 }
 4506|       |                              }.template operator()<I>())...
 4507|       |                           };
 4508|       |                        }(std::make_index_sequence<N>{});
 4509|       |
 4510|       |                        // Find the type with minimum field count among the possible types
 4511|       |                        size_t min_fields = (std::numeric_limits<size_t>::max)();
 4512|       |                        size_t chosen_index = N; // Invalid index initially
 4513|       |
 4514|       |                        for (size_t i = 0; i < N; ++i) {
 4515|       |                           if (possible_types[i] && field_counts[i] < min_fields) {
 4516|       |                              min_fields = field_counts[i];
 4517|       |                              chosen_index = i;
 4518|       |                           }
 4519|       |                        }
 4520|       |
 4521|       |                        if (chosen_index < N) {
 4522|       |                           // Validate against tag if one was specified
 4523|       |                           if (tag_specified_index.has_value() && tag_specified_index.value() != chosen_index) {
 4524|       |                              ctx.error = error_code::no_matching_variant_type;
 4525|       |                              return;
 4526|       |                           }
 4527|       |
 4528|       |                           if (!start.rewind(ctx, it, end)) return;
 4529|       |                           if (value.index() != chosen_index) emplace_runtime_variant(value, chosen_index);
 4530|       |                           std::visit(
 4531|       |                              [&](auto&& v) {
 4532|       |                                 using V = std::decay_t<decltype(v)>;
 4533|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4534|       |                                 if constexpr (variant_unit_alternative<V>) {
 4535|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4536|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4537|       |                                    // terminator handling match every other alternative.
 4538|       |                                    detail::variant_unit_body unit_body{};
 4539|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4540|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4541|       |                                                                                                    end);
 4542|       |                                 }
 4543|       |                                 else if constexpr (is_object) {
 4544|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4545|       |                                 }
 4546|       |                                 else if constexpr (is_memory_object<V>) {
 4547|       |                                    if (!v) {
 4548|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4549|       |                                          if constexpr (requires { v.emplace(); }) {
 4550|       |                                             v.emplace();
 4551|       |                                          }
 4552|       |                                          else {
 4553|       |                                             v = typename V::value_type{};
 4554|       |                                          }
 4555|       |                                       }
 4556|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4557|       |                                          v = std::make_unique<typename V::element_type>();
 4558|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4559|       |                                          v = std::make_shared<typename V::element_type>();
 4560|       |                                       else if constexpr (constructible<V>) {
 4561|       |                                          v = meta_construct_v<V>();
 4562|       |                                       }
 4563|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4564|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4565|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4566|       |                                             return;
 4567|       |                                          }
 4568|       |                                       }
 4569|       |                                       else {
 4570|       |                                          ctx.error = error_code::invalid_nullable_read;
 4571|       |                                          return;
 4572|       |                                       }
 4573|       |                                    }
 4574|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4575|       |                                       *v, ctx, it, end);
 4576|       |                                 }
 4577|       |                                 else if constexpr (custom_read<V>) {
 4578|       |                                    // Custom handlers parse the remaining body themselves.
 4579|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4580|       |                                 }
 4581|       |                              },
 4582|       |                              value);
 4583|       |                        }
 4584|       |                        else {
 4585|       |                           ctx.error = error_code::no_matching_variant_type;
 4586|       |                        }
 4587|       |                     }
 4588|       |                  }
 4589|       |                  else {
 4590|       |                     // For variants with 0 or 1 object types, use the original error handling
 4591|       |                     ctx.error = error_code::no_matching_variant_type;
 4592|       |                  }
 4593|       |               }
 4594|      0|               break;
 4595|    502|            }
 4596|      3|            case '[':
  ------------------
  |  Branch (4596:13): [True: 3, False: 1.77k]
  ------------------
 4597|       |               // As with '{' above: the array reader each alternative goes through counts the level.
 4598|      3|               process_variant_alternatives<T, is_variant_array>::template op<Opts>(value, ctx, it, end);
 4599|      3|               break;
 4600|  1.23k|            case '"': {
  ------------------
  |  Branch (4600:13): [True: 1.23k, False: 541]
  ------------------
 4601|  1.23k|               process_variant_alternatives<T, is_variant_str>::template op<Opts>(value, ctx, it, end);
 4602|  1.23k|               break;
 4603|    502|            }
 4604|      3|            case 't':
  ------------------
  |  Branch (4604:13): [True: 3, False: 1.77k]
  ------------------
 4605|      6|            case 'f': {
  ------------------
  |  Branch (4605:13): [True: 3, False: 1.77k]
  ------------------
 4606|      6|               process_variant_alternatives<T, is_variant_bool>::template op<Opts>(value, ctx, it, end);
 4607|      6|               break;
 4608|      3|            }
 4609|      5|            case 'n':
  ------------------
  |  Branch (4609:13): [True: 5, False: 1.77k]
  ------------------
 4610|      5|               if constexpr (variant_count_v<T, is_variant_null> == 0) {
 4611|      5|                  ctx.error = error_code::no_matching_variant_type;
 4612|       |               }
 4613|       |               else {
 4614|       |                  constexpr auto first_idx = variant_first_index_v<T, is_variant_null>;
 4615|       |                  using V = std::variant_alternative_t<first_idx, T>;
 4616|       |                  if (!std::holds_alternative<V>(value)) value = V{};
 4617|       |                  match<"null", Opts>(ctx, it, end);
 4618|       |               }
 4619|      5|               break;
 4620|     22|            default: {
  ------------------
  |  Branch (4620:13): [True: 22, False: 1.75k]
  ------------------
 4621|       |               // Not bool, string, object, or array so must be number or null
 4622|     22|               process_variant_alternatives<T, is_variant_num>::template op<Opts>(value, ctx, it, end);
 4623|     22|            }
 4624|  1.78k|            }
 4625|       |         }
 4626|       |         else {
 4627|       |            // For non-auto-deducible variants, try each type until one succeeds
 4628|       |            constexpr auto N = std::variant_size_v<T>;
 4629|       |            bool parsed = false;
 4630|       |            bool exhausted = false; // speculation budget spent; see charge_speculation
 4631|       |
 4632|       |            for_each<N>([&]<size_t I>() {
 4633|       |               if (parsed || exhausted || variant_alternative_exhausted(ctx)) return;
 4634|       |
 4635|       |               auto copy_it = it;
 4636|       |               // A rejected alternative may have bailed out inside a container, which leaves its
 4637|       |               // nesting level counted (see enter_depth), so the depth rewinds with the iterator.
 4638|       |               const auto copy_depth = ctx.depth;
 4639|       |
 4640|       |               // Try parsing as this type
 4641|       |               if (value.index() != I) {
 4642|       |                  emplace_runtime_variant(value, I);
 4643|       |               }
 4644|       |
 4645|       |               std::visit([&](auto&& v) { parse<JSON>::op<Options>(v, ctx, it, end); }, value);
 4646|       |               if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 4647|       |                  exhausted = true; // only rejected attempts are charged; see charge_speculation
 4648|       |               }
 4649|       |
 4650|       |               if (!bool(ctx.error)) {
 4651|       |                  parsed = true;
 4652|       |               }
 4653|       |               else if constexpr (not Options.null_terminated) {
 4654|       |                  // In non-null-terminated mode, if we hit end_reached after advancing the iterator,
 4655|       |                  // it means we successfully parsed the value but couldn't skip trailing whitespace
 4656|       |                  if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 4657|       |                     // We advanced the iterator, so we did parse something -- unless what advanced it
 4658|       |                     // was an abandoned attempt, which is what a spent speculation budget means.
 4659|       |                     parsed = true;
 4660|       |                     ctx.error = error_code::none;
 4661|       |                  }
 4662|       |                  else {
 4663|       |                     // Reset for next attempt (unless this is the last type)
 4664|       |                     it = copy_it;
 4665|       |                     rewind_depth<Options>(ctx, copy_depth);
 4666|       |                     if constexpr (I + 1 < N) {
 4667|       |                        if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4668|       |                           ctx.error = error_code::none; // Clear error for next attempt
 4669|       |                        }
 4670|       |                     }
 4671|       |                  }
 4672|       |               }
 4673|       |               else {
 4674|       |                  // Reset for next attempt (unless this is the last type)
 4675|       |                  it = copy_it;
 4676|       |                  rewind_depth<Options>(ctx, copy_depth);
 4677|       |                  if constexpr (I + 1 < N) {
 4678|       |                     if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4679|       |                        ctx.error = error_code::none; // Clear error for next attempt
 4680|       |                     }
 4681|       |                  }
 4682|       |               }
 4683|       |            });
 4684|       |         }
 4685|  1.78k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEERN12jsonrpc_fuzz6amountETkNS_10is_contextERNS_7contextERPKcSA_EEvOT0_OT1_OT2_T3_:
   49|    784|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|    784|         else {
   60|    784|            using V = std::remove_cvref_t<T>;
   61|    784|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|    784|                                             end);
   63|    784|         }
   64|    784|      }
_ZN3glz4fromILj10EN12jsonrpc_fuzz6amountEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2791|    784|      {
 2792|    784|         static constexpr auto num_members = reflect<T>::size;
 2793|       |
 2794|    784|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2795|       |         if constexpr (!check_opening_handled(Options)) {
 2796|       |            if constexpr (!check_ws_handled(Options)) {
 2797|       |               if (skip_ws<Opts>(ctx, it, end)) {
 2798|       |                  return;
 2799|       |               }
 2800|       |            }
 2801|       |            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
 2802|       |               return;
 2803|       |            }
 2804|       |            if constexpr (not Opts.null_terminated) {
 2805|       |               if (it == end) [[unlikely]] {
 2806|       |                  ctx.error = error_code::unexpected_end;
 2807|       |                  return;
 2808|       |               }
 2809|       |            }
 2810|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2811|       |            // released at each syntactic close below
 2812|       |            if (enter_depth(ctx)) [[unlikely]] {
 2813|       |               return;
 2814|       |            }
 2815|       |         }
 2816|    784|         const auto ws_start = it;
 2817|    784|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2817:14): [True: 0, False: 784]
  ------------------
 2818|      0|            return;
 2819|      0|         }
 2820|    784|         const size_t ws_size = size_t(it - ws_start);
 2821|       |
 2822|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2823|       |            if constexpr (not tag.sv().empty()) {
 2824|       |               if (*it == '"') {
 2825|       |                  ++it;
 2826|       |                  if constexpr (not Opts.null_terminated) {
 2827|       |                     if (it == end) [[unlikely]] {
 2828|       |                        ctx.error = error_code::unexpected_end;
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|       |
 2833|       |                  const auto start = it;
 2834|       |                  skip_string_view(ctx, it, end);
 2835|       |                  if (bool(ctx.error)) [[unlikely]]
 2836|       |                     return;
 2837|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2838|       |                     return;
 2839|       |                  const sv key{start, size_t(it - start)};
 2840|       |                  ++it;
 2841|       |                  if constexpr (not Opts.null_terminated) {
 2842|       |                     if (it == end) [[unlikely]] {
 2843|       |                        ctx.error = error_code::unexpected_end;
 2844|       |                        return;
 2845|       |                     }
 2846|       |                  }
 2847|       |
 2848|       |                  if (key == tag.sv()) {
 2849|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2850|       |                        return;
 2851|       |                     }
 2852|       |
 2853|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2854|       |                     if (bool(ctx.error)) [[unlikely]]
 2855|       |                        return;
 2856|       |
 2857|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2858|       |                        return;
 2859|       |                     }
 2860|       |                  }
 2861|       |                  else {
 2862|       |                     ctx.error = error_code::unknown_key;
 2863|       |                     return;
 2864|       |                  }
 2865|       |               }
 2866|       |            }
 2867|       |
 2868|       |            if (*it == '}') [[likely]] {
 2869|       |               --ctx.depth;
 2870|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2871|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2872|       |                     auto wrapper = self_constraint_v<T>(value);
 2873|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2874|       |                     if (bool(ctx.error)) {
 2875|       |                        return;
 2876|       |                     }
 2877|       |                  }
 2878|       |               }
 2879|       |               ++it;
 2880|       |               if constexpr (not Opts.null_terminated) {
 2881|       |                  if (it == end) {
 2882|       |                     ctx.error = error_code::end_reached;
 2883|       |                     return;
 2884|       |                  }
 2885|       |               }
 2886|       |               if constexpr (Opts.partial_read) {
 2887|       |                  ctx.error = error_code::partial_read_complete;
 2888|       |               }
 2889|       |               return;
 2890|       |            }
 2891|       |            ctx.error = error_code::unknown_key;
 2892|       |            return;
 2893|       |         }
 2894|    784|         else {
 2895|    784|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|    784|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|    784|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|    784|                  return bit_array<num_members>{};
 2899|    784|               }
 2900|    784|               else {
 2901|    784|                  return nullptr;
 2902|    784|               }
 2903|    784|            }();
 2904|       |
 2905|       |            // A file include merges an external document into this object, so with
 2906|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2907|       |            // context::key_bits). While this object parses, its bits are published for its
 2908|       |            // includer members to hand down; and if this parse is itself an included document,
 2909|       |            // it claims the bits of the object that included us and merges into them at the
 2910|       |            // closing brace instead of running a check of its own.
 2911|    784|            static constexpr bool tracks_include_keys = [] {
 2912|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2913|    784|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2914|    784|                  return has_includer_member<T>;
 2915|    784|               }
 2916|    784|               else {
 2917|    784|                  return false;
 2918|    784|               }
 2919|    784|            }();
 2920|    784|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2921|       |            if constexpr (tracks_include_keys) {
 2922|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2923|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2924|       |                  ctx.include_key_bits = nullptr;
 2925|       |                  ctx.include_key_type = nullptr;
 2926|       |               }
 2927|       |            }
 2928|    784|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2929|    784|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2930|    784|                                                      inert_key_bits_scope> published_bits{
 2931|    784|               ctx, [&]() -> void* {
 2932|    784|                  if constexpr (tracks_include_keys) {
 2933|    784|                     return &fields;
 2934|    784|                  }
 2935|    784|                  else {
 2936|    784|                     return nullptr;
 2937|    784|                  }
 2938|    784|               }()};
 2939|       |
 2940|    784|            size_t read_count{}; // for partial_read
 2941|       |
 2942|    784|            bool first = true;
 2943|  1.27k|            while (true) {
  ------------------
  |  Branch (2943:20): [True: 1.05k, Folded]
  ------------------
 2944|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2945|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2946|       |                     bit_array<num_members> arr{};
 2947|       |                     for (size_t i = 0; i < num_members; ++i) {
 2948|       |                        arr[i] = true;
 2949|       |                     }
 2950|       |                     return arr;
 2951|       |                  }();
 2952|       |
 2953|       |                  if ((all_fields & fields) == all_fields) {
 2954|       |                     ctx.error = error_code::partial_read_complete;
 2955|       |                     --ctx.depth; // as above: an early success still closes this level
 2956|       |                     return;
 2957|       |                  }
 2958|       |               }
 2959|       |
 2960|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2961|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2962|       |                  if (ctx.stream.enabled()) {
 2963|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2964|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2965|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2966|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2967|       |                        const char* new_it;
 2968|       |                        const char* new_end;
 2969|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2970|       |                        it = new_it;
 2971|       |                        end = new_end;
 2972|       |                        if (it >= end && ctx.stream.at_eof()) {
 2973|       |                           ctx.error = error_code::unexpected_end;
 2974|       |                           return;
 2975|       |                        }
 2976|       |                     }
 2977|       |                  }
 2978|       |               }
 2979|       |
 2980|  1.05k|               if (*it == '}') {
  ------------------
  |  Branch (2980:20): [True: 551, False: 504]
  ------------------
 2981|    551|                  --ctx.depth;
 2982|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2983|       |                     const bool defer_to_includer = [&] {
 2984|       |                        if constexpr (tracks_include_keys) {
 2985|       |                           if (include_bits) {
 2986|       |                              // An included document is a fragment: hand the keys it supplied to
 2987|       |                              // the object that included it, which checks the union of both.
 2988|       |                              *include_bits |= fields;
 2989|       |                              return true;
 2990|       |                           }
 2991|       |                        }
 2992|       |                        return false;
 2993|       |                     }();
 2994|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2995|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2996|       |                        for (size_t i = 0; i < num_members; ++i) {
 2997|       |                           if (not fields[i] && req_fields[i]) {
 2998|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 2999|       |                              // We just return the first missing key in order to avoid heap allocations
 3000|       |                              break;
 3001|       |                           }
 3002|       |                        }
 3003|       |
 3004|       |                        ctx.error = error_code::missing_key;
 3005|       |                        return;
 3006|       |                     }
 3007|       |                  }
 3008|    551|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3009|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3010|       |                        auto wrapper = self_constraint_v<T>(value);
 3011|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3012|       |                        if (bool(ctx.error)) {
 3013|       |                           return;
 3014|       |                        }
 3015|       |                     }
 3016|    551|                  }
 3017|    551|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3018|    551|                  if constexpr (not Opts.null_terminated) {
 3019|    551|                     if (it == end) {
  ------------------
  |  Branch (3019:26): [True: 55, False: 496]
  ------------------
 3020|     55|                        ctx.error = error_code::end_reached;
 3021|     55|                        return;
 3022|     55|                     }
 3023|    551|                  }
 3024|    496|                  return;
 3025|    551|               }
 3026|    504|               else if (first) {
  ------------------
  |  Branch (3026:25): [True: 264, False: 240]
  ------------------
 3027|    264|                  first = false;
 3028|    264|               }
 3029|    240|               else {
 3030|    240|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3030:23): [True: 13, False: 227]
  ------------------
 3031|     13|                     return;
 3032|     13|                  }
 3033|    227|                  if constexpr (not Opts.null_terminated) {
 3034|    227|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3034:26): [True: 0, False: 227]
  ------------------
 3035|      0|                        ctx.error = error_code::unexpected_end;
 3036|      0|                        return;
 3037|      0|                     }
 3038|    227|                  }
 3039|       |
 3040|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3041|       |                                (!Opts.comments)) {
 3042|       |                     if (ws_size && ws_size < size_t(end - it)) {
 3043|       |                        skip_matching_ws(ws_start, it, ws_size);
 3044|       |                     }
 3045|       |                  }
 3046|       |
 3047|    227|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3047:23): [True: 0, False: 227]
  ------------------
 3048|      0|                     return;
 3049|      0|                  }
 3050|    227|               }
 3051|       |
 3052|    491|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3052:49): [Folded, False: 0]
  |  Branch (3052:70): [True: 0, Folded]
  ------------------
 3053|       |
 3054|       |               if constexpr (reflection_type && (num_members == 0)) {
 3055|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3056|       |                     static_assert(false_v<T>, "This should be unreachable");
 3057|       |                  }
 3058|       |                  else {
 3059|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3060|       |                        return;
 3061|       |                     }
 3062|       |
 3063|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3064|       |
 3065|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3066|       |                     // handled by the user.
 3067|       |
 3068|       |                     const auto start = it;
 3069|       |                     uint64_t ascii_acc{};
 3070|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3071|       |                     if (bool(ctx.error)) [[unlikely]]
 3072|       |                        return;
 3073|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3074|       |                        return;
 3075|       |                     const sv key{start, size_t(it - start)};
 3076|       |                     ++it;
 3077|       |                     if constexpr (not Opts.null_terminated) {
 3078|       |                        if (it == end) [[unlikely]] {
 3079|       |                           ctx.error = error_code::unexpected_end;
 3080|       |                           return;
 3081|       |                        }
 3082|       |                     }
 3083|       |
 3084|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3085|       |                        return;
 3086|       |                     }
 3087|       |
 3088|       |                     // Check if this key is the variant tag that should be skipped
 3089|       |                     if constexpr (not tag.sv().empty()) {
 3090|       |                        if (key == tag.sv()) {
 3091|       |                           // Skip the tag value
 3092|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3093|       |                           if (bool(ctx.error)) [[unlikely]]
 3094|       |                              return;
 3095|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3096|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3097|       |                              return;
 3098|       |                           }
 3099|       |                           continue;
 3100|       |                        }
 3101|       |                     }
 3102|       |
 3103|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3104|       |                     if (bool(ctx.error)) [[unlikely]]
 3105|       |                        return;
 3106|       |                     if constexpr (not Opts.null_terminated) {
 3107|       |                        if (it == end) [[unlikely]] {
 3108|       |                           ctx.error = error_code::unexpected_end;
 3109|       |                           return;
 3110|       |                        }
 3111|       |                     }
 3112|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3113|       |                        return;
 3114|       |                     }
 3115|       |                  }
 3116|       |               }
 3117|    491|               else if constexpr (reflection_type) {
 3118|    491|                  static_assert(bool(hash_info<T>.type));
 3119|       |
 3120|    491|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3120:23): [True: 56, False: 435]
  ------------------
 3121|     56|                     ctx.error = error_code::expected_quote;
 3122|     56|                     return;
 3123|     56|                  }
 3124|    435|                  ++it;
 3125|    435|                  if constexpr (not Opts.null_terminated) {
 3126|    435|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3126:26): [True: 0, False: 435]
  ------------------
 3127|      0|                        ctx.error = error_code::unexpected_end;
 3128|      0|                        return;
 3129|      0|                     }
 3130|    435|                  }
 3131|       |
 3132|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3133|       |                     // For tagged variants we first check to see if the key matches the tag
 3134|       |                     // We only need to do this if the tag is not part of the keys
 3135|       |
 3136|       |                     const auto start = it;
 3137|       |                     uint64_t ascii_acc{};
 3138|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3139|       |                     if (bool(ctx.error)) [[unlikely]]
 3140|       |                        return;
 3141|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3142|       |                        return;
 3143|       |                     const sv key{start, size_t(it - start)};
 3144|       |                     ++it;
 3145|       |                     if constexpr (not Opts.null_terminated) {
 3146|       |                        if (it == end) [[unlikely]] {
 3147|       |                           ctx.error = error_code::unexpected_end;
 3148|       |                           return;
 3149|       |                        }
 3150|       |                     }
 3151|       |
 3152|       |                     if (key == tag.sv()) {
 3153|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3154|       |                           return;
 3155|       |                        }
 3156|       |
 3157|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3158|       |                        if (bool(ctx.error)) [[unlikely]]
 3159|       |                           return;
 3160|       |
 3161|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3162|       |                           return;
 3163|       |                        }
 3164|       |                        continue;
 3165|       |                     }
 3166|       |                     else {
 3167|       |                        it = start; // reset the iterator
 3168|       |                     }
 3169|       |                  }
 3170|       |
 3171|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3172|       |                     size_t index = num_members;
 3173|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3174|       |                     if (bool(ctx.error)) [[unlikely]]
 3175|       |                        return;
 3176|       |                     if (index < num_members) {
 3177|       |                        fields[index] = true;
 3178|       |                     }
 3179|       |                  }
 3180|    435|                  else {
 3181|    435|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3182|    435|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3182:26): [True: 164, False: 271]
  ------------------
 3183|    164|                        return;
 3184|    435|                  }
 3185|       |               }
 3186|       |               else {
 3187|       |                  // For types like std::map, std::unordered_map
 3188|       |
 3189|       |                  auto reading = [&](auto&& key) {
 3190|       |                     if constexpr (Opts.partial_read) {
 3191|       |                        if (auto element = value.find(key); element != value.end()) {
 3192|       |                           ++read_count;
 3193|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|       |                        }
 3195|       |                        else {
 3196|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|       |                        }
 3198|       |                     }
 3199|       |                     else {
 3200|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|       |                     }
 3202|       |                  };
 3203|       |
 3204|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3205|       |                  using Key = typename T::key_type;
 3206|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3207|       |                     ctx.scratch.clear();
 3208|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3209|       |                     if (bool(ctx.error)) [[unlikely]]
 3210|       |                        return;
 3211|       |
 3212|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3213|       |                        return;
 3214|       |                     }
 3215|       |
 3216|       |                     reading(ctx.scratch);
 3217|       |                     if constexpr (Opts.partial_read) {
 3218|       |                        if (read_count == value.size()) {
 3219|       |                           return;
 3220|       |                        }
 3221|       |                     }
 3222|       |                     if (bool(ctx.error)) [[unlikely]]
 3223|       |                        return;
 3224|       |                  }
 3225|       |                  else if constexpr (str_t<Key>) {
 3226|       |                     Key key;
 3227|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3228|       |                     if (bool(ctx.error)) [[unlikely]]
 3229|       |                        return;
 3230|       |
 3231|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3232|       |                        return;
 3233|       |                     }
 3234|       |
 3235|       |                     reading(key);
 3236|       |                     if constexpr (Opts.partial_read) {
 3237|       |                        if (read_count == value.size()) {
 3238|       |                           return;
 3239|       |                        }
 3240|       |                     }
 3241|       |                     if (bool(ctx.error)) [[unlikely]]
 3242|       |                        return;
 3243|       |                  }
 3244|       |                  else {
 3245|       |                     Key key_value{};
 3246|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3247|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3248|       |                     }
 3249|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3250|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3251|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3252|       |                     }
 3253|       |                     else {
 3254|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3255|       |                     }
 3256|       |                     if (bool(ctx.error)) [[unlikely]]
 3257|       |                        return;
 3258|       |
 3259|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3260|       |                        return;
 3261|       |                     }
 3262|       |
 3263|       |                     reading(key_value);
 3264|       |                     if constexpr (Opts.partial_read) {
 3265|       |                        if (read_count == value.size()) {
 3266|       |                           return;
 3267|       |                        }
 3268|       |                     }
 3269|       |                     if (bool(ctx.error)) [[unlikely]]
 3270|       |                        return;
 3271|       |                  }
 3272|       |               }
 3273|       |
 3274|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3275|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3276|       |                  if (ctx.stream.enabled()) {
 3277|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3278|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3279|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3280|       |                        const char* new_it;
 3281|       |                        const char* new_end;
 3282|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3283|       |                        it = new_it;
 3284|       |                        end = new_end;
 3285|       |                        if (it >= end && ctx.stream.at_eof()) {
 3286|       |                           ctx.error = error_code::unexpected_end;
 3287|       |                           return;
 3288|       |                        }
 3289|       |                     }
 3290|       |                  }
 3291|       |               }
 3292|       |
 3293|    491|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3293:20): [True: 0, False: 491]
  ------------------
 3294|      0|                  return;
 3295|      0|               }
 3296|    491|            }
 3297|    784|         }
 3298|    784|      }
_ZZN3glz4fromILj10EN12jsonrpc_fuzz6amountEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2895|    784|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|       |                  return bit_array<num_members>{};
 2899|       |               }
 2900|    784|               else {
 2901|    784|                  return nullptr;
 2902|    784|               }
 2903|    784|            }();
_ZZN3glz4fromILj10EN12jsonrpc_fuzz6amountEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2931|    784|               ctx, [&]() -> void* {
 2932|       |                  if constexpr (tracks_include_keys) {
 2933|       |                     return &fields;
 2934|       |                  }
 2935|    784|                  else {
 2936|    784|                     return nullptr;
 2937|    784|                  }
 2938|    784|               }()};
_ZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6amountERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_:
  382|    435|   {
  383|    435|      constexpr auto N = reflect<T>::size;
  384|       |
  385|    435|      if constexpr (N == 1) {
  386|    435|         decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  387|       |      }
  388|       |      else if constexpr (check_linear_search(Opts)) {
  389|       |         // Linear search path
  390|       |         auto key_start = it;
  391|       |         const auto index = decode_linear<T>(ctx, it, end);
  392|       |         if (bool(ctx.error)) [[unlikely]]
  393|       |            return;
  394|       |
  395|       |         if (index >= N) [[unlikely]] {
  396|       |            if constexpr (Opts.error_on_unknown_keys) {
  397|       |               ctx.error = error_code::unknown_key;
  398|       |               return;
  399|       |            }
  400|       |            else {
  401|       |               // it sits one past the closing quote, so the raw key spans [key_start, it - 1)
  402|       |               if (validate_utf8_span<Opts>(ctx, key_start, it - 1)) [[unlikely]] {
  403|       |                  return;
  404|       |               }
  405|       |               const sv key{key_start, size_t(it - key_start - 1)};
  406|       |               if constexpr (not Opts.null_terminated) {
  407|       |                  if (it == end) [[unlikely]] {
  408|       |                     ctx.error = error_code::unexpected_end;
  409|       |                     return;
  410|       |                  }
  411|       |               }
  412|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  413|       |                  return;
  414|       |               }
  415|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  416|       |               return;
  417|       |            }
  418|       |         }
  419|       |
  420|       |         if constexpr (not Opts.null_terminated) {
  421|       |            if (it == end) [[unlikely]] {
  422|       |               ctx.error = error_code::unexpected_end;
  423|       |               return;
  424|       |            }
  425|       |         }
  426|       |         if (skip_ws<Opts>(ctx, it, end)) {
  427|       |            return;
  428|       |         }
  429|       |         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  430|       |            return;
  431|       |         }
  432|       |         if (skip_ws<Opts>(ctx, it, end)) {
  433|       |            return;
  434|       |         }
  435|       |
  436|       |         // Fold expression dispatch - avoids jump table overhead for smaller binary size.
  437|       |         // For linear_search, pass Opts through to the field parser to avoid duplicate template
  438|       |         // instantiations; the whitespace before the value has already been skipped either way.
  439|       |         [&]<size_t... Is>(std::index_sequence<Is...>) {
  440|       |            (void)(((index == Is ? (decode_field_value<Opts, Opts, T, Is>(value, ctx, it, end, selected_index...), true)
  441|       |                                 : false) ||
  442|       |                    ...));
  443|       |         }(std::make_index_sequence<N>{});
  444|       |      }
  445|       |      else {
  446|       |         // Hash-based lookup
  447|       |         constexpr auto& HashInfo = hash_info<T>;
  448|       |         constexpr auto type = HashInfo.type;
  449|       |         static_assert(bool(type), "invalid hash algorithm");
  450|       |
  451|       |         const auto index = decode_hash<JSON, T, HashInfo, HashInfo.type>::op(it, end);
  452|       |
  453|       |         if (index >= N) [[unlikely]] {
  454|       |            if constexpr (Opts.error_on_unknown_keys) {
  455|       |               ctx.error = error_code::unknown_key;
  456|       |               return;
  457|       |            }
  458|       |            else {
  459|       |               auto start = it;
  460|       |               skip_string_view(ctx, it, end);
  461|       |               if (bool(ctx.error)) [[unlikely]]
  462|       |                  return;
  463|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
  464|       |                  return;
  465|       |               const sv key = {start, size_t(it - start)};
  466|       |               ++it; // skip the quote
  467|       |               if constexpr (not Opts.null_terminated) {
  468|       |                  if (it == end) [[unlikely]] {
  469|       |                     ctx.error = error_code::unexpected_end;
  470|       |                     return;
  471|       |                  }
  472|       |               }
  473|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  474|       |                  return;
  475|       |               }
  476|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  477|       |               return;
  478|       |            }
  479|       |         }
  480|       |
  481|       |         if constexpr (N == 2) {
  482|       |            if (index == 0) {
  483|       |               decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  484|       |            }
  485|       |            else {
  486|       |               decode_index<Opts, T, 1>(value, ctx, it, end, selected_index...);
  487|       |            }
  488|       |         }
  489|       |         else {
  490|       |            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
  491|       |         }
  492|       |      }
  493|    435|   }
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6amountELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|    435|   {
  313|    435|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|    435|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|    435|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|    435|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 421, False: 14]
  |  Branch (321:52): [True: 332, False: 89]
  ------------------
  322|    332|         it += Length;
  323|    332|         if constexpr (not Opts.null_terminated) {
  324|    332|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 332]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|    332|         }
  329|       |
  330|    332|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 332]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|    332|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 32, False: 300]
  ------------------
  334|     32|            return;
  335|     32|         }
  336|    300|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 300]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|    300|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|    300|      }
  343|    103|      else [[unlikely]] {
  344|    103|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|    103|      }
  346|    435|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz6amountELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|    300|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|    300|      else {
  274|    300|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|    300|         else {
  298|    300|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|    300|                                                                       it, end);
  300|    300|         }
  301|    300|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|    300|   }
_ZN3glz24decode_index_unknown_keyITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6amountERS3_TkNS_10is_contextERNS_7contextERPKcS8_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT2_OT3_T4_:
  177|    103|   {
  178|    103|      if constexpr (Opts.error_on_unknown_keys) {
  179|    103|         ctx.error = error_code::unknown_key;
  180|       |      }
  181|       |      else {
  182|       |         auto* start = it;
  183|       |         uint64_t ascii_acc{};
  184|       |         skip_string_view(ctx, it, end, ascii_acc);
  185|       |         if (bool(ctx.error)) [[unlikely]]
  186|       |            return;
  187|       |         if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
  188|       |            return;
  189|       |         const sv key = {start, size_t(it - start)};
  190|       |         ++it;
  191|       |         if constexpr (not Opts.null_terminated) {
  192|       |            if (it == end) [[unlikely]] {
  193|       |               ctx.error = error_code::unexpected_end;
  194|       |               return;
  195|       |            }
  196|       |         }
  197|       |
  198|       |         if (parse_ws_colon<Opts>(ctx, it, end)) {
  199|       |            return;
  200|       |         }
  201|       |
  202|       |         parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  203|       |      }
  204|    103|   }
_ZN3glz28process_variant_alternativesINSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSK_EEvOT0_OT1_OT2_T3_:
 3520|     23|      {
 3521|     23|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3522|       |
 3523|     23|         if constexpr (category_count == 0) {
 3524|     23|            ctx.error = error_code::no_matching_variant_type;
 3525|       |         }
 3526|       |         else {
 3527|       |            constexpr auto N = std::variant_size_v<Variant>;
 3528|       |            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3529|       |            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3530|       |
 3531|       |            bool found_match{};
 3532|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3533|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3534|       |            // so the budget stops it and the failure already in hand is reported.
 3535|       |            bool exhausted{};
 3536|       |
 3537|       |            // First pass: const glaze types in this category
 3538|       |            if constexpr (const_count > 0) {
 3539|       |               for_each<N>([&]<size_t I>() {
 3540|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3541|       |                     return;
 3542|       |                  }
 3543|       |                  using V = std::variant_alternative_t<I, Variant>;
 3544|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3545|       |                     // run time substitute to compare to const value
 3546|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3547|       |                     auto copy_it{it};
 3548|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3549|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3550|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3551|       |                     const auto copy_depth{ctx.depth};
 3552|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3553|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3554|       |                     if (substitute == const_value) {
 3555|       |                        found_match = true;
 3556|       |                        if (!std::holds_alternative<V>(value)) {
 3557|       |                           value = V{};
 3558|       |                        }
 3559|       |                     }
 3560|       |                     else {
 3561|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3562|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3563|       |                           exhausted = true;
 3564|       |                        }
 3565|       |                        if constexpr (not Options.null_terminated) {
 3566|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3567|       |                              ctx.error = error_code::none;
 3568|       |                           }
 3569|       |                        }
 3570|       |                        it = copy_it;
 3571|       |                        rewind_depth<Options>(ctx, copy_depth);
 3572|       |                     }
 3573|       |                  }
 3574|       |               });
 3575|       |               if (found_match) {
 3576|       |                  return;
 3577|       |               }
 3578|       |            }
 3579|       |
 3580|       |            // Second pass: non-const types in this category
 3581|       |            if constexpr (non_const_count > 0) {
 3582|       |               // Track position within matching types for "is last" check.
 3583|       |               // We iterate over all variant indices but only process matching types,
 3584|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3585|       |               // the loop index directly corresponded to position in filtered set).
 3586|       |               // This has negligible cost: one increment per matching type.
 3587|       |               size_t non_const_idx = 0;
 3588|       |
 3589|       |               for_each<N>([&]<size_t I>() {
 3590|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3591|       |                     return;
 3592|       |                  }
 3593|       |                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|       |               });
 3645|       |               if (!found_match) {
 3646|       |                  if constexpr (non_const_count == 1) {
 3647|       |                     // Keep the specific error from the single type we tried
 3648|       |                  }
 3649|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3650|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3651|       |                     ctx.error = error_code::no_matching_variant_type;
 3652|       |                  }
 3653|       |               }
 3654|       |            }
 3655|       |            else {
 3656|       |               ctx.error = error_code::no_matching_variant_type;
 3657|       |            }
 3658|       |         }
 3659|     23|      }
_ZN3glz28process_variant_alternativesINSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSK_EEvOT0_OT1_OT2_T3_:
 3520|  1.97k|      {
 3521|  1.97k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3522|       |
 3523|       |         if constexpr (category_count == 0) {
 3524|       |            ctx.error = error_code::no_matching_variant_type;
 3525|       |         }
 3526|  1.97k|         else {
 3527|  1.97k|            constexpr auto N = std::variant_size_v<Variant>;
 3528|  1.97k|            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3529|  1.97k|            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3530|       |
 3531|  1.97k|            bool found_match{};
 3532|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3533|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3534|       |            // so the budget stops it and the failure already in hand is reported.
 3535|  1.97k|            bool exhausted{};
 3536|       |
 3537|       |            // First pass: const glaze types in this category
 3538|       |            if constexpr (const_count > 0) {
 3539|       |               for_each<N>([&]<size_t I>() {
 3540|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3541|       |                     return;
 3542|       |                  }
 3543|       |                  using V = std::variant_alternative_t<I, Variant>;
 3544|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3545|       |                     // run time substitute to compare to const value
 3546|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3547|       |                     auto copy_it{it};
 3548|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3549|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3550|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3551|       |                     const auto copy_depth{ctx.depth};
 3552|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3553|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3554|       |                     if (substitute == const_value) {
 3555|       |                        found_match = true;
 3556|       |                        if (!std::holds_alternative<V>(value)) {
 3557|       |                           value = V{};
 3558|       |                        }
 3559|       |                     }
 3560|       |                     else {
 3561|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3562|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3563|       |                           exhausted = true;
 3564|       |                        }
 3565|       |                        if constexpr (not Options.null_terminated) {
 3566|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3567|       |                              ctx.error = error_code::none;
 3568|       |                           }
 3569|       |                        }
 3570|       |                        it = copy_it;
 3571|       |                        rewind_depth<Options>(ctx, copy_depth);
 3572|       |                     }
 3573|       |                  }
 3574|       |               });
 3575|       |               if (found_match) {
 3576|       |                  return;
 3577|       |               }
 3578|       |            }
 3579|       |
 3580|       |            // Second pass: non-const types in this category
 3581|  1.97k|            if constexpr (non_const_count > 0) {
 3582|       |               // Track position within matching types for "is last" check.
 3583|       |               // We iterate over all variant indices but only process matching types,
 3584|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3585|       |               // the loop index directly corresponded to position in filtered set).
 3586|       |               // This has negligible cost: one increment per matching type.
 3587|  1.97k|               size_t non_const_idx = 0;
 3588|       |
 3589|  1.97k|               for_each<N>([&]<size_t I>() {
 3590|  1.97k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3591|  1.97k|                     return;
 3592|  1.97k|                  }
 3593|  1.97k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|  1.97k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|  1.97k|                     auto copy_it{it};
 3596|  1.97k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|  1.97k|                     if (!std::holds_alternative<V>(value)) {
 3598|  1.97k|                        value = V{};
 3599|  1.97k|                     }
 3600|  1.97k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|  1.97k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|  1.97k|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|  1.97k|                     }
 3604|  1.97k|                     if (!bool(ctx.error)) {
 3605|  1.97k|                        found_match = true;
 3606|  1.97k|                     }
 3607|  1.97k|                     else if constexpr (not Options.null_terminated) {
 3608|  1.97k|                        constexpr bool is_complete_type =
 3609|  1.97k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|  1.97k|                        if constexpr (is_complete_type) {
 3612|  1.97k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|  1.97k|                              found_match = true;
 3614|  1.97k|                              ctx.error = error_code::none;
 3615|  1.97k|                           }
 3616|  1.97k|                           else {
 3617|  1.97k|                              it = copy_it;
 3618|  1.97k|                              rewind_depth<Options>(ctx, copy_depth);
 3619|  1.97k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|  1.97k|                                  not variant_alternative_exhausted(ctx)) {
 3621|  1.97k|                                 ctx.error = error_code::none;
 3622|  1.97k|                              }
 3623|  1.97k|                           }
 3624|  1.97k|                        }
 3625|  1.97k|                        else {
 3626|  1.97k|                           it = copy_it;
 3627|  1.97k|                           rewind_depth<Options>(ctx, copy_depth);
 3628|  1.97k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|  1.97k|                               not variant_alternative_exhausted(ctx)) {
 3630|  1.97k|                              ctx.error = error_code::none;
 3631|  1.97k|                           }
 3632|  1.97k|                        }
 3633|  1.97k|                     }
 3634|  1.97k|                     else {
 3635|  1.97k|                        it = copy_it;
 3636|  1.97k|                        rewind_depth<Options>(ctx, copy_depth);
 3637|  1.97k|                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|  1.97k|                            not variant_alternative_exhausted(ctx)) {
 3639|  1.97k|                           ctx.error = error_code::none;
 3640|  1.97k|                        }
 3641|  1.97k|                     }
 3642|  1.97k|                     ++non_const_idx;
 3643|  1.97k|                  }
 3644|  1.97k|               });
 3645|  1.97k|               if (!found_match) {
  ------------------
  |  Branch (3645:20): [True: 362, False: 1.61k]
  ------------------
 3646|    362|                  if constexpr (non_const_count == 1) {
 3647|       |                     // Keep the specific error from the single type we tried
 3648|       |                  }
 3649|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3650|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3651|       |                     ctx.error = error_code::no_matching_variant_type;
 3652|       |                  }
 3653|    362|               }
 3654|       |            }
 3655|       |            else {
 3656|       |               ctx.error = error_code::no_matching_variant_type;
 3657|       |            }
 3658|  1.97k|         }
 3659|  1.97k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSK_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm0EEEDav:
 3589|  1.97k|               for_each<N>([&]<size_t I>() {
 3590|  1.97k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 1.97k]
  |  Branch (3590:38): [True: 0, False: 1.97k]
  |  Branch (3590:51): [True: 0, False: 1.97k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|  1.97k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|  1.97k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|  1.97k|                     auto copy_it{it};
 3596|  1.97k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|  1.97k|                     if (!std::holds_alternative<V>(value)) {
  ------------------
  |  Branch (3597:26): [True: 276, False: 1.69k]
  ------------------
 3598|    276|                        value = V{};
 3599|    276|                     }
 3600|  1.97k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|  1.97k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
  ------------------
  |  Branch (3601:26): [True: 557, False: 1.41k]
  |  Branch (3601:45): [True: 0, False: 557]
  ------------------
 3602|      0|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|      0|                     }
 3604|  1.97k|                     if (!bool(ctx.error)) {
  ------------------
  |  Branch (3604:26): [True: 1.41k, False: 557]
  ------------------
 3605|  1.41k|                        found_match = true;
 3606|  1.41k|                     }
 3607|    557|                     else if constexpr (not Options.null_terminated) {
 3608|    557|                        constexpr bool is_complete_type =
 3609|    557|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
  ------------------
  |  Branch (3609:28): [Folded, False: 0]
  |  Branch (3609:40): [Folded, False: 0]
  |  Branch (3609:53): [True: 0, Folded]
  |  Branch (3609:68): [Folded, False: 0]
  |  Branch (3609:89): [Folded, False: 0]
  |  Branch (3609:103): [Folded, False: 0]
  ------------------
 3610|       |
 3611|    557|                        if constexpr (is_complete_type) {
 3612|    557|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
  ------------------
  |  Branch (3612:32): [True: 195, False: 362]
  |  Branch (3612:72): [True: 195, False: 0]
  |  Branch (3612:88): [True: 195, False: 0]
  ------------------
 3613|    195|                              found_match = true;
 3614|    195|                              ctx.error = error_code::none;
 3615|    195|                           }
 3616|    362|                           else {
 3617|    362|                              it = copy_it;
 3618|    362|                              rewind_depth<Options>(ctx, copy_depth);
 3619|    362|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
  ------------------
  |  Branch (3619:35): [True: 0, False: 362]
  |  Branch (3619:74): [True: 0, False: 0]
  ------------------
 3620|      0|                                  not variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3620:35): [True: 0, False: 0]
  ------------------
 3621|      0|                                 ctx.error = error_code::none;
 3622|      0|                              }
 3623|    362|                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|  1.97k|                     ++non_const_idx;
 3643|  1.97k|                  }
 3644|  1.97k|               });
_ZN3glz29variant_alternative_exhaustedITkNS_10is_contextENS_7contextEEEbRT_:
 3509|  3.93M|   {
 3510|  3.93M|      return ctx.error == error_code::exceeded_max_recursive_depth;
 3511|  3.93M|   }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEETkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
   49|   948k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|   948k|         else {
   60|   948k|            using V = std::remove_cvref_t<T>;
   61|   948k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|   948k|                                             end);
   63|   948k|         }
   64|   948k|      }
_ZN3glz12rewind_depthITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextENS_7contextEEEvRT0_j:
 3492|  50.6k|   {
 3493|  50.6k|      if (ctx.error == error_code::exceeded_max_recursive_depth) [[unlikely]] {
  ------------------
  |  Branch (3493:11): [True: 0, False: 50.6k]
  ------------------
 3494|      0|         return;
 3495|      0|      }
 3496|       |      if constexpr (Opts.null_terminated) {
 3497|       |         ctx.depth = depth;
 3498|       |      }
 3499|  50.6k|      else {
 3500|  50.6k|         if (ctx.error != error_code::end_reached && ctx.error != error_code::unexpected_end) {
  ------------------
  |  Branch (3500:14): [True: 48.3k, False: 2.27k]
  |  Branch (3500:54): [True: 48.3k, False: 3]
  ------------------
 3501|  48.3k|            ctx.depth = depth;
 3502|  48.3k|         }
 3503|  50.6k|      }
 3504|  50.6k|   }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSK_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm1EEEDav:
 3589|  1.97k|               for_each<N>([&]<size_t I>() {
 3590|  1.97k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 1.61k, False: 362]
  |  Branch (3590:38): [True: 0, False: 362]
  |  Branch (3590:51): [True: 0, False: 362]
  ------------------
 3591|  1.61k|                     return;
 3592|  1.61k|                  }
 3593|    362|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|    362|               });
_ZN3glz28process_variant_alternativesINSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_15is_variant_boolEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSK_EEvOT0_OT1_OT2_T3_:
 3520|     14|      {
 3521|     14|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3522|       |
 3523|     14|         if constexpr (category_count == 0) {
 3524|     14|            ctx.error = error_code::no_matching_variant_type;
 3525|       |         }
 3526|       |         else {
 3527|       |            constexpr auto N = std::variant_size_v<Variant>;
 3528|       |            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3529|       |            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3530|       |
 3531|       |            bool found_match{};
 3532|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3533|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3534|       |            // so the budget stops it and the failure already in hand is reported.
 3535|       |            bool exhausted{};
 3536|       |
 3537|       |            // First pass: const glaze types in this category
 3538|       |            if constexpr (const_count > 0) {
 3539|       |               for_each<N>([&]<size_t I>() {
 3540|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3541|       |                     return;
 3542|       |                  }
 3543|       |                  using V = std::variant_alternative_t<I, Variant>;
 3544|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3545|       |                     // run time substitute to compare to const value
 3546|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3547|       |                     auto copy_it{it};
 3548|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3549|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3550|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3551|       |                     const auto copy_depth{ctx.depth};
 3552|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3553|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3554|       |                     if (substitute == const_value) {
 3555|       |                        found_match = true;
 3556|       |                        if (!std::holds_alternative<V>(value)) {
 3557|       |                           value = V{};
 3558|       |                        }
 3559|       |                     }
 3560|       |                     else {
 3561|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3562|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3563|       |                           exhausted = true;
 3564|       |                        }
 3565|       |                        if constexpr (not Options.null_terminated) {
 3566|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3567|       |                              ctx.error = error_code::none;
 3568|       |                           }
 3569|       |                        }
 3570|       |                        it = copy_it;
 3571|       |                        rewind_depth<Options>(ctx, copy_depth);
 3572|       |                     }
 3573|       |                  }
 3574|       |               });
 3575|       |               if (found_match) {
 3576|       |                  return;
 3577|       |               }
 3578|       |            }
 3579|       |
 3580|       |            // Second pass: non-const types in this category
 3581|       |            if constexpr (non_const_count > 0) {
 3582|       |               // Track position within matching types for "is last" check.
 3583|       |               // We iterate over all variant indices but only process matching types,
 3584|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3585|       |               // the loop index directly corresponded to position in filtered set).
 3586|       |               // This has negligible cost: one increment per matching type.
 3587|       |               size_t non_const_idx = 0;
 3588|       |
 3589|       |               for_each<N>([&]<size_t I>() {
 3590|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3591|       |                     return;
 3592|       |                  }
 3593|       |                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|       |               });
 3645|       |               if (!found_match) {
 3646|       |                  if constexpr (non_const_count == 1) {
 3647|       |                     // Keep the specific error from the single type we tried
 3648|       |                  }
 3649|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3650|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3651|       |                     ctx.error = error_code::no_matching_variant_type;
 3652|       |                  }
 3653|       |               }
 3654|       |            }
 3655|       |            else {
 3656|       |               ctx.error = error_code::no_matching_variant_type;
 3657|       |            }
 3658|       |         }
 3659|     14|      }
_ZN3glz28process_variant_alternativesINSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSK_EEvOT0_OT1_OT2_T3_:
 3520|    232|      {
 3521|    232|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3522|       |
 3523|    232|         if constexpr (category_count == 0) {
 3524|    232|            ctx.error = error_code::no_matching_variant_type;
 3525|       |         }
 3526|       |         else {
 3527|       |            constexpr auto N = std::variant_size_v<Variant>;
 3528|       |            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3529|       |            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3530|       |
 3531|       |            bool found_match{};
 3532|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3533|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3534|       |            // so the budget stops it and the failure already in hand is reported.
 3535|       |            bool exhausted{};
 3536|       |
 3537|       |            // First pass: const glaze types in this category
 3538|       |            if constexpr (const_count > 0) {
 3539|       |               for_each<N>([&]<size_t I>() {
 3540|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3541|       |                     return;
 3542|       |                  }
 3543|       |                  using V = std::variant_alternative_t<I, Variant>;
 3544|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3545|       |                     // run time substitute to compare to const value
 3546|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3547|       |                     auto copy_it{it};
 3548|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3549|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3550|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3551|       |                     const auto copy_depth{ctx.depth};
 3552|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3553|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3554|       |                     if (substitute == const_value) {
 3555|       |                        found_match = true;
 3556|       |                        if (!std::holds_alternative<V>(value)) {
 3557|       |                           value = V{};
 3558|       |                        }
 3559|       |                     }
 3560|       |                     else {
 3561|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3562|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3563|       |                           exhausted = true;
 3564|       |                        }
 3565|       |                        if constexpr (not Options.null_terminated) {
 3566|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3567|       |                              ctx.error = error_code::none;
 3568|       |                           }
 3569|       |                        }
 3570|       |                        it = copy_it;
 3571|       |                        rewind_depth<Options>(ctx, copy_depth);
 3572|       |                     }
 3573|       |                  }
 3574|       |               });
 3575|       |               if (found_match) {
 3576|       |                  return;
 3577|       |               }
 3578|       |            }
 3579|       |
 3580|       |            // Second pass: non-const types in this category
 3581|       |            if constexpr (non_const_count > 0) {
 3582|       |               // Track position within matching types for "is last" check.
 3583|       |               // We iterate over all variant indices but only process matching types,
 3584|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3585|       |               // the loop index directly corresponded to position in filtered set).
 3586|       |               // This has negligible cost: one increment per matching type.
 3587|       |               size_t non_const_idx = 0;
 3588|       |
 3589|       |               for_each<N>([&]<size_t I>() {
 3590|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3591|       |                     return;
 3592|       |                  }
 3593|       |                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|       |               });
 3645|       |               if (!found_match) {
 3646|       |                  if constexpr (non_const_count == 1) {
 3647|       |                     // Keep the specific error from the single type we tried
 3648|       |                  }
 3649|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3650|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3651|       |                     ctx.error = error_code::no_matching_variant_type;
 3652|       |                  }
 3653|       |               }
 3654|       |            }
 3655|       |            else {
 3656|       |               ctx.error = error_code::no_matching_variant_type;
 3657|       |            }
 3658|       |         }
 3659|    232|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm8EEEDav:
  490|    508|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm8ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|    508|   {
  313|    508|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|    508|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|    508|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|    508|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 499, False: 9]
  |  Branch (321:52): [True: 334, False: 165]
  ------------------
  322|    334|         it += Length;
  323|    334|         if constexpr (not Opts.null_terminated) {
  324|    334|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 334]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|    334|         }
  329|       |
  330|    334|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 334]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|    334|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 24, False: 310]
  ------------------
  334|     24|            return;
  335|     24|         }
  336|    310|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 310]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|    310|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|    310|      }
  343|    174|      else [[unlikely]] {
  344|    174|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|    174|      }
  346|    508|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm8ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|    310|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|    310|      else {
  274|    310|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|    310|         else {
  298|    310|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|    310|                                                                       it, end);
  300|    310|         }
  301|    310|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|    310|   }
_ZN3glz4fromILj10ENSt3__18functionIFiiEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEES4_TkNS_10is_contextERNS_7contextERPKcSB_EEvRT0_OT1_OT2_T3_:
 1921|    310|      {
 1922|       |         if constexpr (!check_ws_handled(Opts)) {
 1923|       |            if (skip_ws<Opts>(ctx, it, end)) {
 1924|       |               return;
 1925|       |            }
 1926|       |         }
 1927|    310|         if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1927:14): [True: 20, False: 290]
  ------------------
 1928|     20|            return;
 1929|     20|         }
 1930|    290|         skip_string_view(ctx, it, end);
 1931|    290|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1931:14): [True: 0, False: 290]
  ------------------
 1932|      0|            return;
 1933|    290|         if (match<'"'>(ctx, it)) {
  ------------------
  |  Branch (1933:14): [True: 0, False: 290]
  ------------------
 1934|      0|            return;
 1935|      0|         }
 1936|    290|         if constexpr (not Opts.null_terminated) {
 1937|    290|            if (it == end) {
  ------------------
  |  Branch (1937:17): [True: 0, False: 290]
  ------------------
 1938|      0|               ctx.error = error_code::end_reached;
 1939|      0|               return;
 1940|      0|            }
 1941|    290|         }
 1942|    290|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm9EEEDav:
  490|    444|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm9ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|    444|   {
  313|    444|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|    444|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|    444|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|    444|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 436, False: 8]
  |  Branch (321:52): [True: 432, False: 4]
  ------------------
  322|    432|         it += Length;
  323|    432|         if constexpr (not Opts.null_terminated) {
  324|    432|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 432]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|    432|         }
  329|       |
  330|    432|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 432]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|    432|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 28, False: 404]
  ------------------
  334|     28|            return;
  335|     28|         }
  336|    404|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 404]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|    404|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|    404|      }
  343|     12|      else [[unlikely]] {
  344|     12|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|     12|      }
  346|    444|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm9ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|    404|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|    404|      else {
  274|    404|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|    404|         else {
  298|    404|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|    404|                                                                       it, end);
  300|    404|         }
  301|    404|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|    404|   }
_ZN3glz4fromILj10ENSt3__18functionIFNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKS8_EEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEESC_TkNS_10is_contextERNS_7contextERPKcSJ_EEvRT0_OT1_OT2_T3_:
 1921|    404|      {
 1922|       |         if constexpr (!check_ws_handled(Opts)) {
 1923|       |            if (skip_ws<Opts>(ctx, it, end)) {
 1924|       |               return;
 1925|       |            }
 1926|       |         }
 1927|    404|         if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1927:14): [True: 32, False: 372]
  ------------------
 1928|     32|            return;
 1929|     32|         }
 1930|    372|         skip_string_view(ctx, it, end);
 1931|    372|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1931:14): [True: 0, False: 372]
  ------------------
 1932|      0|            return;
 1933|    372|         if (match<'"'>(ctx, it)) {
  ------------------
  |  Branch (1933:14): [True: 0, False: 372]
  ------------------
 1934|      0|            return;
 1935|      0|         }
 1936|    372|         if constexpr (not Opts.null_terminated) {
 1937|    372|            if (it == end) {
  ------------------
  |  Branch (1937:17): [True: 0, False: 372]
  ------------------
 1938|      0|               ctx.error = error_code::end_reached;
 1939|      0|               return;
 1940|      0|            }
 1941|    372|         }
 1942|    372|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm10EEEDav:
  490|    440|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm10ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|    440|   {
  313|    440|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|    440|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|    440|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|    440|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 432, False: 8]
  |  Branch (321:52): [True: 400, False: 32]
  ------------------
  322|    400|         it += Length;
  323|    400|         if constexpr (not Opts.null_terminated) {
  324|    400|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 400]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|    400|         }
  329|       |
  330|    400|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 400]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|    400|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 46, False: 354]
  ------------------
  334|     46|            return;
  335|     46|         }
  336|    354|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 354]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|    354|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|    354|      }
  343|     40|      else [[unlikely]] {
  344|     40|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|     40|      }
  346|    440|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm10ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|    354|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|    354|      else {
  274|    354|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|    354|         else {
  298|    354|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|    354|                                                                       it, end);
  300|    354|         }
  301|    354|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|    354|   }
_ZN3glz4fromILj10ENSt3__18functionIFN12jsonrpc_fuzz5pointERKS4_EEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEES8_TkNS_10is_contextERNS_7contextERPKcSF_EEvRT0_OT1_OT2_T3_:
 1921|    354|      {
 1922|       |         if constexpr (!check_ws_handled(Opts)) {
 1923|       |            if (skip_ws<Opts>(ctx, it, end)) {
 1924|       |               return;
 1925|       |            }
 1926|       |         }
 1927|    354|         if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1927:14): [True: 28, False: 326]
  ------------------
 1928|     28|            return;
 1929|     28|         }
 1930|    326|         skip_string_view(ctx, it, end);
 1931|    326|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1931:14): [True: 0, False: 326]
  ------------------
 1932|      0|            return;
 1933|    326|         if (match<'"'>(ctx, it)) {
  ------------------
  |  Branch (1933:14): [True: 0, False: 326]
  ------------------
 1934|      0|            return;
 1935|      0|         }
 1936|    326|         if constexpr (not Opts.null_terminated) {
 1937|    326|            if (it == end) {
  ------------------
  |  Branch (1937:17): [True: 0, False: 326]
  ------------------
 1938|      0|               ctx.error = error_code::end_reached;
 1939|      0|               return;
 1940|      0|            }
 1941|    326|         }
 1942|    326|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm11EEEDav:
  490|    332|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm11ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|    332|   {
  313|    332|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|    332|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|    332|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|    332|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 327, False: 5]
  |  Branch (321:52): [True: 324, False: 3]
  ------------------
  322|    324|         it += Length;
  323|    324|         if constexpr (not Opts.null_terminated) {
  324|    324|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 324]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|    324|         }
  329|       |
  330|    324|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 324]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|    324|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 30, False: 294]
  ------------------
  334|     30|            return;
  335|     30|         }
  336|    294|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 294]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|    294|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|    294|      }
  343|      8|      else [[unlikely]] {
  344|      8|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|      8|      }
  346|    332|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm11ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|    294|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|    294|      else {
  274|    294|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|    294|         else {
  298|    294|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|    294|                                                                       it, end);
  300|    294|         }
  301|    294|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|    294|   }
_ZN3glz4fromILj10ENSt3__18functionIFdRNS1_6vectorIdNS1_9allocatorIdEEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEES9_TkNS_10is_contextERNS_7contextERPKcSG_EEvRT0_OT1_OT2_T3_:
 1921|    294|      {
 1922|       |         if constexpr (!check_ws_handled(Opts)) {
 1923|       |            if (skip_ws<Opts>(ctx, it, end)) {
 1924|       |               return;
 1925|       |            }
 1926|       |         }
 1927|    294|         if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1927:14): [True: 34, False: 260]
  ------------------
 1928|     34|            return;
 1929|     34|         }
 1930|    260|         skip_string_view(ctx, it, end);
 1931|    260|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1931:14): [True: 0, False: 260]
  ------------------
 1932|      0|            return;
 1933|    260|         if (match<'"'>(ctx, it)) {
  ------------------
  |  Branch (1933:14): [True: 0, False: 260]
  ------------------
 1934|      0|            return;
 1935|      0|         }
 1936|    260|         if constexpr (not Opts.null_terminated) {
 1937|    260|            if (it == end) {
  ------------------
  |  Branch (1937:17): [True: 0, False: 260]
  ------------------
 1938|      0|               ctx.error = error_code::end_reached;
 1939|      0|               return;
 1940|      0|            }
 1941|    260|         }
 1942|    260|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm12EEEDav:
  490|    226|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm12ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|    226|   {
  313|    226|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|    226|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|    226|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|    226|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 221, False: 5]
  |  Branch (321:52): [True: 218, False: 3]
  ------------------
  322|    218|         it += Length;
  323|    218|         if constexpr (not Opts.null_terminated) {
  324|    218|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 218]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|    218|         }
  329|       |
  330|    218|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 218]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|    218|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 29, False: 189]
  ------------------
  334|     29|            return;
  335|     29|         }
  336|    189|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 189]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|    189|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|    189|      }
  343|      8|      else [[unlikely]] {
  344|      8|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|      8|      }
  346|    226|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm12ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|    189|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|    189|      else {
  274|    189|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|       |         else if constexpr (glaze_object_t<T>) {
  294|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|       |                                                                       ctx, it, end);
  296|       |         }
  297|    189|         else {
  298|    189|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|    189|                                                                       it, end);
  300|    189|         }
  301|    189|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|    189|   }
_ZN3glz4fromILj10ENSt3__18functionIFvvEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEES4_TkNS_10is_contextERNS_7contextERPKcSB_EEvRT0_OT1_OT2_T3_:
 1921|    189|      {
 1922|       |         if constexpr (!check_ws_handled(Opts)) {
 1923|       |            if (skip_ws<Opts>(ctx, it, end)) {
 1924|       |               return;
 1925|       |            }
 1926|       |         }
 1927|    189|         if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1927:14): [True: 26, False: 163]
  ------------------
 1928|     26|            return;
 1929|     26|         }
 1930|    163|         skip_string_view(ctx, it, end);
 1931|    163|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1931:14): [True: 0, False: 163]
  ------------------
 1932|      0|            return;
 1933|    163|         if (match<'"'>(ctx, it)) {
  ------------------
  |  Branch (1933:14): [True: 0, False: 163]
  ------------------
 1934|      0|            return;
 1935|      0|         }
 1936|    163|         if constexpr (not Opts.null_terminated) {
 1937|    163|            if (it == end) {
  ------------------
  |  Branch (1937:17): [True: 0, False: 163]
  ------------------
 1938|      0|               ctx.error = error_code::end_reached;
 1939|      0|               return;
 1940|      0|            }
 1941|    163|         }
 1942|    163|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz6nestedETkNS_10is_contextERNS_7contextERPKcSA_EEvOT0_OT1_OT2_T3_:
   49|  1.83k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  1.83k|         else {
   60|  1.83k|            using V = std::remove_cvref_t<T>;
   61|  1.83k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  1.83k|                                             end);
   63|  1.83k|         }
   64|  1.83k|      }
_ZN3glz4fromILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2791|  1.83k|      {
 2792|  1.83k|         static constexpr auto num_members = reflect<T>::size;
 2793|       |
 2794|  1.83k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2795|  1.83k|         if constexpr (!check_opening_handled(Options)) {
 2796|  1.83k|            if constexpr (!check_ws_handled(Options)) {
 2797|  1.83k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2797:20): [True: 0, False: 1.83k]
  ------------------
 2798|      0|                  return;
 2799|      0|               }
 2800|  1.83k|            }
 2801|  1.83k|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2801:17): [True: 48, False: 1.78k]
  ------------------
 2802|     48|               return;
 2803|     48|            }
 2804|  1.78k|            if constexpr (not Opts.null_terminated) {
 2805|  1.78k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2805:20): [True: 0, False: 1.78k]
  ------------------
 2806|      0|                  ctx.error = error_code::unexpected_end;
 2807|      0|                  return;
 2808|      0|               }
 2809|  1.78k|            }
 2810|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2811|       |            // released at each syntactic close below
 2812|  1.78k|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2812:17): [True: 0, False: 1.78k]
  ------------------
 2813|      0|               return;
 2814|      0|            }
 2815|  1.78k|         }
 2816|  1.78k|         const auto ws_start = it;
 2817|  1.83k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2817:14): [True: 0, False: 1.83k]
  ------------------
 2818|      0|            return;
 2819|      0|         }
 2820|  1.83k|         const size_t ws_size = size_t(it - ws_start);
 2821|       |
 2822|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2823|       |            if constexpr (not tag.sv().empty()) {
 2824|       |               if (*it == '"') {
 2825|       |                  ++it;
 2826|       |                  if constexpr (not Opts.null_terminated) {
 2827|       |                     if (it == end) [[unlikely]] {
 2828|       |                        ctx.error = error_code::unexpected_end;
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|       |
 2833|       |                  const auto start = it;
 2834|       |                  skip_string_view(ctx, it, end);
 2835|       |                  if (bool(ctx.error)) [[unlikely]]
 2836|       |                     return;
 2837|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2838|       |                     return;
 2839|       |                  const sv key{start, size_t(it - start)};
 2840|       |                  ++it;
 2841|       |                  if constexpr (not Opts.null_terminated) {
 2842|       |                     if (it == end) [[unlikely]] {
 2843|       |                        ctx.error = error_code::unexpected_end;
 2844|       |                        return;
 2845|       |                     }
 2846|       |                  }
 2847|       |
 2848|       |                  if (key == tag.sv()) {
 2849|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2850|       |                        return;
 2851|       |                     }
 2852|       |
 2853|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2854|       |                     if (bool(ctx.error)) [[unlikely]]
 2855|       |                        return;
 2856|       |
 2857|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2858|       |                        return;
 2859|       |                     }
 2860|       |                  }
 2861|       |                  else {
 2862|       |                     ctx.error = error_code::unknown_key;
 2863|       |                     return;
 2864|       |                  }
 2865|       |               }
 2866|       |            }
 2867|       |
 2868|       |            if (*it == '}') [[likely]] {
 2869|       |               --ctx.depth;
 2870|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2871|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2872|       |                     auto wrapper = self_constraint_v<T>(value);
 2873|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2874|       |                     if (bool(ctx.error)) {
 2875|       |                        return;
 2876|       |                     }
 2877|       |                  }
 2878|       |               }
 2879|       |               ++it;
 2880|       |               if constexpr (not Opts.null_terminated) {
 2881|       |                  if (it == end) {
 2882|       |                     ctx.error = error_code::end_reached;
 2883|       |                     return;
 2884|       |                  }
 2885|       |               }
 2886|       |               if constexpr (Opts.partial_read) {
 2887|       |                  ctx.error = error_code::partial_read_complete;
 2888|       |               }
 2889|       |               return;
 2890|       |            }
 2891|       |            ctx.error = error_code::unknown_key;
 2892|       |            return;
 2893|       |         }
 2894|  1.83k|         else {
 2895|  1.83k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|  1.83k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|  1.83k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|  1.83k|                  return bit_array<num_members>{};
 2899|  1.83k|               }
 2900|  1.83k|               else {
 2901|  1.83k|                  return nullptr;
 2902|  1.83k|               }
 2903|  1.83k|            }();
 2904|       |
 2905|       |            // A file include merges an external document into this object, so with
 2906|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2907|       |            // context::key_bits). While this object parses, its bits are published for its
 2908|       |            // includer members to hand down; and if this parse is itself an included document,
 2909|       |            // it claims the bits of the object that included us and merges into them at the
 2910|       |            // closing brace instead of running a check of its own.
 2911|  1.83k|            static constexpr bool tracks_include_keys = [] {
 2912|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2913|  1.83k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2914|  1.83k|                  return has_includer_member<T>;
 2915|  1.83k|               }
 2916|  1.83k|               else {
 2917|  1.83k|                  return false;
 2918|  1.83k|               }
 2919|  1.83k|            }();
 2920|  1.83k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2921|       |            if constexpr (tracks_include_keys) {
 2922|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2923|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2924|       |                  ctx.include_key_bits = nullptr;
 2925|       |                  ctx.include_key_type = nullptr;
 2926|       |               }
 2927|       |            }
 2928|  1.83k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2929|  1.83k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2930|  1.83k|                                                      inert_key_bits_scope> published_bits{
 2931|  1.83k|               ctx, [&]() -> void* {
 2932|  1.83k|                  if constexpr (tracks_include_keys) {
 2933|  1.83k|                     return &fields;
 2934|  1.83k|                  }
 2935|  1.83k|                  else {
 2936|  1.83k|                     return nullptr;
 2937|  1.83k|                  }
 2938|  1.83k|               }()};
 2939|       |
 2940|  1.83k|            size_t read_count{}; // for partial_read
 2941|       |
 2942|  1.83k|            bool first = true;
 2943|  16.6k|            while (true) {
  ------------------
  |  Branch (2943:20): [True: 15.2k, Folded]
  ------------------
 2944|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2945|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2946|       |                     bit_array<num_members> arr{};
 2947|       |                     for (size_t i = 0; i < num_members; ++i) {
 2948|       |                        arr[i] = true;
 2949|       |                     }
 2950|       |                     return arr;
 2951|       |                  }();
 2952|       |
 2953|       |                  if ((all_fields & fields) == all_fields) {
 2954|       |                     ctx.error = error_code::partial_read_complete;
 2955|       |                     --ctx.depth; // as above: an early success still closes this level
 2956|       |                     return;
 2957|       |                  }
 2958|       |               }
 2959|       |
 2960|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2961|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2962|       |                  if (ctx.stream.enabled()) {
 2963|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2964|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2965|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2966|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2967|       |                        const char* new_it;
 2968|       |                        const char* new_end;
 2969|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2970|       |                        it = new_it;
 2971|       |                        end = new_end;
 2972|       |                        if (it >= end && ctx.stream.at_eof()) {
 2973|       |                           ctx.error = error_code::unexpected_end;
 2974|       |                           return;
 2975|       |                        }
 2976|       |                     }
 2977|       |                  }
 2978|       |               }
 2979|       |
 2980|  15.2k|               if (*it == '}') {
  ------------------
  |  Branch (2980:20): [True: 318, False: 14.9k]
  ------------------
 2981|    318|                  --ctx.depth;
 2982|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2983|       |                     const bool defer_to_includer = [&] {
 2984|       |                        if constexpr (tracks_include_keys) {
 2985|       |                           if (include_bits) {
 2986|       |                              // An included document is a fragment: hand the keys it supplied to
 2987|       |                              // the object that included it, which checks the union of both.
 2988|       |                              *include_bits |= fields;
 2989|       |                              return true;
 2990|       |                           }
 2991|       |                        }
 2992|       |                        return false;
 2993|       |                     }();
 2994|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2995|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2996|       |                        for (size_t i = 0; i < num_members; ++i) {
 2997|       |                           if (not fields[i] && req_fields[i]) {
 2998|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 2999|       |                              // We just return the first missing key in order to avoid heap allocations
 3000|       |                              break;
 3001|       |                           }
 3002|       |                        }
 3003|       |
 3004|       |                        ctx.error = error_code::missing_key;
 3005|       |                        return;
 3006|       |                     }
 3007|       |                  }
 3008|    318|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3009|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3010|       |                        auto wrapper = self_constraint_v<T>(value);
 3011|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3012|       |                        if (bool(ctx.error)) {
 3013|       |                           return;
 3014|       |                        }
 3015|       |                     }
 3016|    318|                  }
 3017|    318|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3018|    318|                  if constexpr (not Opts.null_terminated) {
 3019|    318|                     if (it == end) {
  ------------------
  |  Branch (3019:26): [True: 318, False: 0]
  ------------------
 3020|    318|                        ctx.error = error_code::end_reached;
 3021|    318|                        return;
 3022|    318|                     }
 3023|    318|                  }
 3024|      0|                  return;
 3025|    318|               }
 3026|  14.9k|               else if (first) {
  ------------------
  |  Branch (3026:25): [True: 1.75k, False: 13.2k]
  ------------------
 3027|  1.75k|                  first = false;
 3028|  1.75k|               }
 3029|  13.2k|               else {
 3030|  13.2k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3030:23): [True: 139, False: 13.0k]
  ------------------
 3031|    139|                     return;
 3032|    139|                  }
 3033|  13.0k|                  if constexpr (not Opts.null_terminated) {
 3034|  13.0k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3034:26): [True: 0, False: 13.0k]
  ------------------
 3035|      0|                        ctx.error = error_code::unexpected_end;
 3036|      0|                        return;
 3037|      0|                     }
 3038|  13.0k|                  }
 3039|       |
 3040|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3041|  13.0k|                                (!Opts.comments)) {
 3042|  13.0k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (3042:26): [True: 11.5k, False: 1.51k]
  |  Branch (3042:37): [True: 11.2k, False: 254]
  ------------------
 3043|  11.2k|                        skip_matching_ws(ws_start, it, ws_size);
 3044|  11.2k|                     }
 3045|  13.0k|                  }
 3046|       |
 3047|  13.0k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3047:23): [True: 0, False: 13.0k]
  ------------------
 3048|      0|                     return;
 3049|      0|                  }
 3050|  13.0k|               }
 3051|       |
 3052|  14.8k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3052:49): [Folded, False: 0]
  |  Branch (3052:70): [True: 0, Folded]
  ------------------
 3053|       |
 3054|       |               if constexpr (reflection_type && (num_members == 0)) {
 3055|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3056|       |                     static_assert(false_v<T>, "This should be unreachable");
 3057|       |                  }
 3058|       |                  else {
 3059|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3060|       |                        return;
 3061|       |                     }
 3062|       |
 3063|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3064|       |
 3065|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3066|       |                     // handled by the user.
 3067|       |
 3068|       |                     const auto start = it;
 3069|       |                     uint64_t ascii_acc{};
 3070|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3071|       |                     if (bool(ctx.error)) [[unlikely]]
 3072|       |                        return;
 3073|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3074|       |                        return;
 3075|       |                     const sv key{start, size_t(it - start)};
 3076|       |                     ++it;
 3077|       |                     if constexpr (not Opts.null_terminated) {
 3078|       |                        if (it == end) [[unlikely]] {
 3079|       |                           ctx.error = error_code::unexpected_end;
 3080|       |                           return;
 3081|       |                        }
 3082|       |                     }
 3083|       |
 3084|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3085|       |                        return;
 3086|       |                     }
 3087|       |
 3088|       |                     // Check if this key is the variant tag that should be skipped
 3089|       |                     if constexpr (not tag.sv().empty()) {
 3090|       |                        if (key == tag.sv()) {
 3091|       |                           // Skip the tag value
 3092|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3093|       |                           if (bool(ctx.error)) [[unlikely]]
 3094|       |                              return;
 3095|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3096|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3097|       |                              return;
 3098|       |                           }
 3099|       |                           continue;
 3100|       |                        }
 3101|       |                     }
 3102|       |
 3103|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3104|       |                     if (bool(ctx.error)) [[unlikely]]
 3105|       |                        return;
 3106|       |                     if constexpr (not Opts.null_terminated) {
 3107|       |                        if (it == end) [[unlikely]] {
 3108|       |                           ctx.error = error_code::unexpected_end;
 3109|       |                           return;
 3110|       |                        }
 3111|       |                     }
 3112|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3113|       |                        return;
 3114|       |                     }
 3115|       |                  }
 3116|       |               }
 3117|  14.8k|               else if constexpr (reflection_type) {
 3118|  14.8k|                  static_assert(bool(hash_info<T>.type));
 3119|       |
 3120|  14.8k|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3120:23): [True: 809, False: 14.0k]
  ------------------
 3121|    809|                     ctx.error = error_code::expected_quote;
 3122|    809|                     return;
 3123|    809|                  }
 3124|  14.0k|                  ++it;
 3125|  14.0k|                  if constexpr (not Opts.null_terminated) {
 3126|  14.0k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3126:26): [True: 0, False: 14.0k]
  ------------------
 3127|      0|                        ctx.error = error_code::unexpected_end;
 3128|      0|                        return;
 3129|      0|                     }
 3130|  14.0k|                  }
 3131|       |
 3132|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3133|       |                     // For tagged variants we first check to see if the key matches the tag
 3134|       |                     // We only need to do this if the tag is not part of the keys
 3135|       |
 3136|       |                     const auto start = it;
 3137|       |                     uint64_t ascii_acc{};
 3138|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3139|       |                     if (bool(ctx.error)) [[unlikely]]
 3140|       |                        return;
 3141|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3142|       |                        return;
 3143|       |                     const sv key{start, size_t(it - start)};
 3144|       |                     ++it;
 3145|       |                     if constexpr (not Opts.null_terminated) {
 3146|       |                        if (it == end) [[unlikely]] {
 3147|       |                           ctx.error = error_code::unexpected_end;
 3148|       |                           return;
 3149|       |                        }
 3150|       |                     }
 3151|       |
 3152|       |                     if (key == tag.sv()) {
 3153|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3154|       |                           return;
 3155|       |                        }
 3156|       |
 3157|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3158|       |                        if (bool(ctx.error)) [[unlikely]]
 3159|       |                           return;
 3160|       |
 3161|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3162|       |                           return;
 3163|       |                        }
 3164|       |                        continue;
 3165|       |                     }
 3166|       |                     else {
 3167|       |                        it = start; // reset the iterator
 3168|       |                     }
 3169|       |                  }
 3170|       |
 3171|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3172|       |                     size_t index = num_members;
 3173|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3174|       |                     if (bool(ctx.error)) [[unlikely]]
 3175|       |                        return;
 3176|       |                     if (index < num_members) {
 3177|       |                        fields[index] = true;
 3178|       |                     }
 3179|       |                  }
 3180|  14.0k|                  else {
 3181|  14.0k|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3182|  14.0k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3182:26): [True: 518, False: 13.4k]
  ------------------
 3183|    518|                        return;
 3184|  14.0k|                  }
 3185|       |               }
 3186|       |               else {
 3187|       |                  // For types like std::map, std::unordered_map
 3188|       |
 3189|       |                  auto reading = [&](auto&& key) {
 3190|       |                     if constexpr (Opts.partial_read) {
 3191|       |                        if (auto element = value.find(key); element != value.end()) {
 3192|       |                           ++read_count;
 3193|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|       |                        }
 3195|       |                        else {
 3196|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|       |                        }
 3198|       |                     }
 3199|       |                     else {
 3200|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|       |                     }
 3202|       |                  };
 3203|       |
 3204|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3205|       |                  using Key = typename T::key_type;
 3206|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3207|       |                     ctx.scratch.clear();
 3208|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3209|       |                     if (bool(ctx.error)) [[unlikely]]
 3210|       |                        return;
 3211|       |
 3212|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3213|       |                        return;
 3214|       |                     }
 3215|       |
 3216|       |                     reading(ctx.scratch);
 3217|       |                     if constexpr (Opts.partial_read) {
 3218|       |                        if (read_count == value.size()) {
 3219|       |                           return;
 3220|       |                        }
 3221|       |                     }
 3222|       |                     if (bool(ctx.error)) [[unlikely]]
 3223|       |                        return;
 3224|       |                  }
 3225|       |                  else if constexpr (str_t<Key>) {
 3226|       |                     Key key;
 3227|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3228|       |                     if (bool(ctx.error)) [[unlikely]]
 3229|       |                        return;
 3230|       |
 3231|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3232|       |                        return;
 3233|       |                     }
 3234|       |
 3235|       |                     reading(key);
 3236|       |                     if constexpr (Opts.partial_read) {
 3237|       |                        if (read_count == value.size()) {
 3238|       |                           return;
 3239|       |                        }
 3240|       |                     }
 3241|       |                     if (bool(ctx.error)) [[unlikely]]
 3242|       |                        return;
 3243|       |                  }
 3244|       |                  else {
 3245|       |                     Key key_value{};
 3246|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3247|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3248|       |                     }
 3249|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3250|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3251|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3252|       |                     }
 3253|       |                     else {
 3254|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3255|       |                     }
 3256|       |                     if (bool(ctx.error)) [[unlikely]]
 3257|       |                        return;
 3258|       |
 3259|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3260|       |                        return;
 3261|       |                     }
 3262|       |
 3263|       |                     reading(key_value);
 3264|       |                     if constexpr (Opts.partial_read) {
 3265|       |                        if (read_count == value.size()) {
 3266|       |                           return;
 3267|       |                        }
 3268|       |                     }
 3269|       |                     if (bool(ctx.error)) [[unlikely]]
 3270|       |                        return;
 3271|       |                  }
 3272|       |               }
 3273|       |
 3274|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3275|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3276|       |                  if (ctx.stream.enabled()) {
 3277|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3278|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3279|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3280|       |                        const char* new_it;
 3281|       |                        const char* new_end;
 3282|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3283|       |                        it = new_it;
 3284|       |                        end = new_end;
 3285|       |                        if (it >= end && ctx.stream.at_eof()) {
 3286|       |                           ctx.error = error_code::unexpected_end;
 3287|       |                           return;
 3288|       |                        }
 3289|       |                     }
 3290|       |                  }
 3291|       |               }
 3292|       |
 3293|  14.8k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3293:20): [True: 0, False: 14.8k]
  ------------------
 3294|      0|                  return;
 3295|      0|               }
 3296|  14.8k|            }
 3297|  1.83k|         }
 3298|  1.83k|      }
_ZZN3glz4fromILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2895|  1.78k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|       |                  return bit_array<num_members>{};
 2899|       |               }
 2900|  1.78k|               else {
 2901|  1.78k|                  return nullptr;
 2902|  1.78k|               }
 2903|  1.78k|            }();
_ZZN3glz4fromILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2931|  1.78k|               ctx, [&]() -> void* {
 2932|       |                  if constexpr (tracks_include_keys) {
 2933|       |                     return &fields;
 2934|       |                  }
 2935|  1.78k|                  else {
 2936|  1.78k|                     return nullptr;
 2937|  1.78k|                  }
 2938|  1.78k|               }()};
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIiNS4_9allocatorIiEEEETkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
   49|  1.92k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  1.92k|         else {
   60|  1.92k|            using V = std::remove_cvref_t<T>;
   61|  1.92k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  1.92k|                                             end);
   63|  1.92k|         }
   64|  1.92k|      }
_ZN3glz4fromILj10ENSt3__16vectorIiNS1_9allocatorIiEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS5_TkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
 2050|  1.92k|      {
 2051|  1.92k|         constexpr auto Opts = ws_handled_off<Options>();
 2052|  1.92k|         if constexpr (!check_ws_handled(Options)) {
 2053|  1.92k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2053:17): [True: 0, False: 1.92k]
  ------------------
 2054|      0|               return;
 2055|      0|            }
 2056|  1.92k|         }
 2057|       |
 2058|  1.92k|         if (match_invalid_end<'[', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2058:14): [True: 63, False: 1.85k]
  ------------------
 2059|     63|            return;
 2060|     63|         }
 2061|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2062|       |         // released at each syntactic close below
 2063|  1.85k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2063:14): [True: 0, False: 1.85k]
  ------------------
 2064|      0|            return;
 2065|      0|         }
 2066|       |
 2067|  1.85k|         const auto ws_start = it;
 2068|  1.85k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2068:14): [True: 0, False: 1.85k]
  ------------------
 2069|      0|            return;
 2070|      0|         }
 2071|       |
 2072|  1.85k|         if (*it == ']') {
  ------------------
  |  Branch (2072:14): [True: 23, False: 1.83k]
  ------------------
 2073|     23|            --ctx.depth;
 2074|     23|            ++it;
 2075|     23|            if constexpr ((resizable<T> || is_inplace_vector<T>) && not check_append_arrays(Opts)) {
 2076|     23|               value.clear();
 2077|       |
 2078|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2079|       |                  value.shrink_to_fit();
 2080|       |               }
 2081|     23|            }
 2082|     23|            return;
 2083|     23|         }
 2084|       |
 2085|  1.83k|         const size_t ws_size = size_t(it - ws_start);
 2086|       |
 2087|  1.83k|         static constexpr bool should_append = (resizable<T> || is_inplace_vector<T>) && check_append_arrays(Opts);
  ------------------
  |  Branch (2087:49): [True: 1.83k, Folded]
  |  Branch (2087:65): [Folded, False: 0]
  |  Branch (2087:90): [Folded, False: 0]
  ------------------
 2088|  1.83k|         if constexpr (not should_append) {
 2089|  1.83k|            const auto n = value.size();
 2090|       |
 2091|  1.83k|            auto value_it = value.begin();
 2092|       |
 2093|  1.83k|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (2093:32): [True: 0, False: 1.83k]
  ------------------
 2094|      0|               parse<JSON>::op<ws_handled<Opts>()>(*value_it++, ctx, it, end);
 2095|      0|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2095:20): [True: 0, False: 0]
  ------------------
 2096|      0|                  return;
 2097|      0|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2097:20): [True: 0, False: 0]
  ------------------
 2098|      0|                  return;
 2099|      0|               }
 2100|      0|               if (*it == ',') {
  ------------------
  |  Branch (2100:20): [True: 0, False: 0]
  ------------------
 2101|      0|                  ++it;
 2102|       |
 2103|      0|                  if constexpr (!Opts.minified && !Opts.comments) {
 2104|      0|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2104:26): [True: 0, False: 0]
  |  Branch (2104:37): [True: 0, False: 0]
  ------------------
 2105|      0|                        skip_matching_ws(ws_start, it, ws_size);
 2106|      0|                     }
 2107|      0|                  }
 2108|       |
 2109|      0|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2109:23): [True: 0, False: 0]
  ------------------
 2110|      0|                     return;
 2111|      0|                  }
 2112|      0|               }
 2113|      0|               else if (*it == ']') {
  ------------------
  |  Branch (2113:25): [True: 0, False: 0]
  ------------------
 2114|      0|                  --ctx.depth;
 2115|      0|                  ++it;
 2116|      0|                  if constexpr (erasable<T>) {
 2117|      0|                     value.erase(value_it,
 2118|      0|                                 value.end()); // use erase rather than resize for non-default constructible elements
 2119|       |
 2120|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2121|       |                        value.shrink_to_fit();
 2122|       |                     }
 2123|      0|                  }
 2124|      0|                  return;
 2125|      0|               }
 2126|      0|               else [[unlikely]] {
 2127|      0|                  ctx.error = error_code::expected_bracket;
 2128|      0|                  return;
 2129|      0|               }
 2130|      0|            }
 2131|  1.83k|         }
 2132|       |
 2133|       |         if constexpr (Opts.partial_read) {
 2134|       |            // partial_read stops early on a success path, so give the level back like the
 2135|       |            // syntactic-close paths do; otherwise it accumulates across reads sharing a context.
 2136|       |            --ctx.depth;
 2137|       |            return;
 2138|       |         }
 2139|  1.83k|         else {
 2140|       |            // growing
 2141|  1.83k|            if constexpr (emplace_backable<T> || has_try_emplace_back<T>) {
 2142|   169k|               while (it < end) {
  ------------------
  |  Branch (2142:23): [True: 169k, False: 0]
  ------------------
 2143|       |                  // Streaming refill point: at start of each iteration, ensure buffer has data
 2144|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2145|       |                     if (ctx.stream.enabled()) {
 2146|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2147|       |                        const size_t remaining = ctx.stream.size() - consumed;
 2148|       |                        // Refill when less than half of buffer remains to ensure space for next element
 2149|       |                        if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2150|       |                           const char* new_it;
 2151|       |                           const char* new_end;
 2152|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2153|       |                           it = new_it;
 2154|       |                           end = new_end;
 2155|       |                           if (it >= end && ctx.stream.at_eof()) {
 2156|       |                              break; // No more data, exit loop normally
 2157|       |                           }
 2158|       |                        }
 2159|       |                     }
 2160|       |                  }
 2161|       |
 2162|       |                  if constexpr (has_try_emplace_back<T>) {
 2163|       |                     if (value.try_emplace_back())
 2164|       |                        parse<JSON>::op<ws_handled<Opts>()>(value.back(), ctx, it, end);
 2165|       |                     else
 2166|       |                        ctx.error = error_code::exceeded_static_array_size;
 2167|       |                  }
 2168|   169k|                  else {
 2169|   169k|                     parse<JSON>::op<ws_handled<Opts>()>(value.emplace_back(), ctx, it, end);
 2170|   169k|                  }
 2171|       |
 2172|   169k|                  if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2172:23): [True: 1.04k, False: 168k]
  ------------------
 2173|  1.04k|                     return;
 2174|       |
 2175|       |                  // Streaming refill point: after parsing each element, refill if buffer is low
 2176|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2177|       |                     if (ctx.stream.enabled()) {
 2178|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2179|       |                        // Refill when less than 25% of buffer remains to ensure enough space for next element
 2180|       |                        if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 2181|       |                           const char* new_it;
 2182|       |                           const char* new_end;
 2183|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2184|       |                           it = new_it;
 2185|       |                           end = new_end;
 2186|       |                           if (it >= end && ctx.stream.at_eof()) {
 2187|       |                              ctx.error = error_code::unexpected_end;
 2188|       |                              return;
 2189|       |                           }
 2190|       |                        }
 2191|       |                     }
 2192|       |                  }
 2193|       |
 2194|   168k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2194:23): [True: 0, False: 168k]
  ------------------
 2195|      0|                     return;
 2196|      0|                  }
 2197|   168k|                  if (*it == ',') [[likely]] {
  ------------------
  |  Branch (2197:23): [True: 167k, False: 791]
  ------------------
 2198|   167k|                     ++it;
 2199|       |
 2200|   167k|                     if constexpr (!Opts.minified && !Opts.comments) {
 2201|   167k|                        if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2201:29): [True: 58.9k, False: 108k]
  |  Branch (2201:40): [True: 58.6k, False: 334]
  ------------------
 2202|  58.6k|                           skip_matching_ws(ws_start, it, ws_size);
 2203|  58.6k|                        }
 2204|   167k|                     }
 2205|       |
 2206|   167k|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2206:26): [True: 0, False: 167k]
  ------------------
 2207|      0|                        return;
 2208|      0|                     }
 2209|   167k|                  }
 2210|    791|                  else if (*it == ']') {
  ------------------
  |  Branch (2210:28): [True: 420, False: 371]
  ------------------
 2211|    420|                     --ctx.depth;
 2212|    420|                     ++it;
 2213|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2214|       |                        value.shrink_to_fit();
 2215|       |                     }
 2216|    420|                     return;
 2217|    420|                  }
 2218|    371|                  else [[unlikely]] {
 2219|    371|                     ctx.error = error_code::expected_bracket;
 2220|    371|                     return;
 2221|    371|                  }
 2222|   168k|               }
 2223|       |
 2224|       |               // A valid array always returns from inside the loop upon reaching ']'.
 2225|       |               // For a null-terminated buffer the loop can only exit here by falling
 2226|       |               // through when `it` reaches the terminator without a closing bracket,
 2227|       |               // which means the input was truncated (e.g. "[", "[1," or "[1,2,").
 2228|       |               // Non-null-terminated buffers surface this through skip_ws/depth
 2229|       |               // tracking (or the streaming refill break), so this guard is limited
 2230|       |               // to the null-terminated case.
 2231|       |               if constexpr (Opts.null_terminated) {
 2232|       |                  ctx.error = error_code::unexpected_end;
 2233|       |               }
 2234|       |            }
 2235|       |            else {
 2236|       |               ctx.error = error_code::exceeded_static_array_size;
 2237|       |            }
 2238|  1.83k|         }
 2239|  1.83k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__13mapINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiNS4_4lessISB_EENS9_INS4_4pairIKSB_iEEEEEETkNS_10is_contextERNS_7contextERPKcSN_EEvOT0_OT1_OT2_T3_:
   49|  1.69k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  1.69k|         else {
   60|  1.69k|            using V = std::remove_cvref_t<T>;
   61|  1.69k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  1.69k|                                             end);
   63|  1.69k|         }
   64|  1.69k|      }
_ZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_:
 2791|  1.69k|      {
 2792|  1.69k|         static constexpr auto num_members = reflect<T>::size;
 2793|       |
 2794|  1.69k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2795|  1.69k|         if constexpr (!check_opening_handled(Options)) {
 2796|  1.69k|            if constexpr (!check_ws_handled(Options)) {
 2797|  1.69k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2797:20): [True: 0, False: 1.69k]
  ------------------
 2798|      0|                  return;
 2799|      0|               }
 2800|  1.69k|            }
 2801|  1.69k|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2801:17): [True: 67, False: 1.62k]
  ------------------
 2802|     67|               return;
 2803|     67|            }
 2804|  1.62k|            if constexpr (not Opts.null_terminated) {
 2805|  1.62k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2805:20): [True: 0, False: 1.62k]
  ------------------
 2806|      0|                  ctx.error = error_code::unexpected_end;
 2807|      0|                  return;
 2808|      0|               }
 2809|  1.62k|            }
 2810|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2811|       |            // released at each syntactic close below
 2812|  1.62k|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2812:17): [True: 0, False: 1.62k]
  ------------------
 2813|      0|               return;
 2814|      0|            }
 2815|  1.62k|         }
 2816|  1.62k|         const auto ws_start = it;
 2817|  1.69k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2817:14): [True: 0, False: 1.69k]
  ------------------
 2818|      0|            return;
 2819|      0|         }
 2820|  1.69k|         const size_t ws_size = size_t(it - ws_start);
 2821|       |
 2822|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2823|       |            if constexpr (not tag.sv().empty()) {
 2824|       |               if (*it == '"') {
 2825|       |                  ++it;
 2826|       |                  if constexpr (not Opts.null_terminated) {
 2827|       |                     if (it == end) [[unlikely]] {
 2828|       |                        ctx.error = error_code::unexpected_end;
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|       |
 2833|       |                  const auto start = it;
 2834|       |                  skip_string_view(ctx, it, end);
 2835|       |                  if (bool(ctx.error)) [[unlikely]]
 2836|       |                     return;
 2837|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2838|       |                     return;
 2839|       |                  const sv key{start, size_t(it - start)};
 2840|       |                  ++it;
 2841|       |                  if constexpr (not Opts.null_terminated) {
 2842|       |                     if (it == end) [[unlikely]] {
 2843|       |                        ctx.error = error_code::unexpected_end;
 2844|       |                        return;
 2845|       |                     }
 2846|       |                  }
 2847|       |
 2848|       |                  if (key == tag.sv()) {
 2849|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2850|       |                        return;
 2851|       |                     }
 2852|       |
 2853|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2854|       |                     if (bool(ctx.error)) [[unlikely]]
 2855|       |                        return;
 2856|       |
 2857|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2858|       |                        return;
 2859|       |                     }
 2860|       |                  }
 2861|       |                  else {
 2862|       |                     ctx.error = error_code::unknown_key;
 2863|       |                     return;
 2864|       |                  }
 2865|       |               }
 2866|       |            }
 2867|       |
 2868|       |            if (*it == '}') [[likely]] {
 2869|       |               --ctx.depth;
 2870|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2871|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2872|       |                     auto wrapper = self_constraint_v<T>(value);
 2873|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2874|       |                     if (bool(ctx.error)) {
 2875|       |                        return;
 2876|       |                     }
 2877|       |                  }
 2878|       |               }
 2879|       |               ++it;
 2880|       |               if constexpr (not Opts.null_terminated) {
 2881|       |                  if (it == end) {
 2882|       |                     ctx.error = error_code::end_reached;
 2883|       |                     return;
 2884|       |                  }
 2885|       |               }
 2886|       |               if constexpr (Opts.partial_read) {
 2887|       |                  ctx.error = error_code::partial_read_complete;
 2888|       |               }
 2889|       |               return;
 2890|       |            }
 2891|       |            ctx.error = error_code::unknown_key;
 2892|       |            return;
 2893|       |         }
 2894|  1.69k|         else {
 2895|  1.69k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|  1.69k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|  1.69k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|  1.69k|                  return bit_array<num_members>{};
 2899|  1.69k|               }
 2900|  1.69k|               else {
 2901|  1.69k|                  return nullptr;
 2902|  1.69k|               }
 2903|  1.69k|            }();
 2904|       |
 2905|       |            // A file include merges an external document into this object, so with
 2906|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2907|       |            // context::key_bits). While this object parses, its bits are published for its
 2908|       |            // includer members to hand down; and if this parse is itself an included document,
 2909|       |            // it claims the bits of the object that included us and merges into them at the
 2910|       |            // closing brace instead of running a check of its own.
 2911|  1.69k|            static constexpr bool tracks_include_keys = [] {
 2912|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2913|  1.69k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2914|  1.69k|                  return has_includer_member<T>;
 2915|  1.69k|               }
 2916|  1.69k|               else {
 2917|  1.69k|                  return false;
 2918|  1.69k|               }
 2919|  1.69k|            }();
 2920|  1.69k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2921|       |            if constexpr (tracks_include_keys) {
 2922|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2923|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2924|       |                  ctx.include_key_bits = nullptr;
 2925|       |                  ctx.include_key_type = nullptr;
 2926|       |               }
 2927|       |            }
 2928|  1.69k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2929|  1.69k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2930|  1.69k|                                                      inert_key_bits_scope> published_bits{
 2931|  1.69k|               ctx, [&]() -> void* {
 2932|  1.69k|                  if constexpr (tracks_include_keys) {
 2933|  1.69k|                     return &fields;
 2934|  1.69k|                  }
 2935|  1.69k|                  else {
 2936|  1.69k|                     return nullptr;
 2937|  1.69k|                  }
 2938|  1.69k|               }()};
 2939|       |
 2940|  1.69k|            size_t read_count{}; // for partial_read
 2941|       |
 2942|  1.69k|            bool first = true;
 2943|  24.3k|            while (true) {
  ------------------
  |  Branch (2943:20): [True: 23.2k, Folded]
  ------------------
 2944|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2945|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2946|       |                     bit_array<num_members> arr{};
 2947|       |                     for (size_t i = 0; i < num_members; ++i) {
 2948|       |                        arr[i] = true;
 2949|       |                     }
 2950|       |                     return arr;
 2951|       |                  }();
 2952|       |
 2953|       |                  if ((all_fields & fields) == all_fields) {
 2954|       |                     ctx.error = error_code::partial_read_complete;
 2955|       |                     --ctx.depth; // as above: an early success still closes this level
 2956|       |                     return;
 2957|       |                  }
 2958|       |               }
 2959|       |
 2960|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2961|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2962|       |                  if (ctx.stream.enabled()) {
 2963|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2964|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2965|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2966|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2967|       |                        const char* new_it;
 2968|       |                        const char* new_end;
 2969|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2970|       |                        it = new_it;
 2971|       |                        end = new_end;
 2972|       |                        if (it >= end && ctx.stream.at_eof()) {
 2973|       |                           ctx.error = error_code::unexpected_end;
 2974|       |                           return;
 2975|       |                        }
 2976|       |                     }
 2977|       |                  }
 2978|       |               }
 2979|       |
 2980|  23.2k|               if (*it == '}') {
  ------------------
  |  Branch (2980:20): [True: 388, False: 22.8k]
  ------------------
 2981|    388|                  --ctx.depth;
 2982|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2983|       |                     const bool defer_to_includer = [&] {
 2984|       |                        if constexpr (tracks_include_keys) {
 2985|       |                           if (include_bits) {
 2986|       |                              // An included document is a fragment: hand the keys it supplied to
 2987|       |                              // the object that included it, which checks the union of both.
 2988|       |                              *include_bits |= fields;
 2989|       |                              return true;
 2990|       |                           }
 2991|       |                        }
 2992|       |                        return false;
 2993|       |                     }();
 2994|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2995|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2996|       |                        for (size_t i = 0; i < num_members; ++i) {
 2997|       |                           if (not fields[i] && req_fields[i]) {
 2998|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 2999|       |                              // We just return the first missing key in order to avoid heap allocations
 3000|       |                              break;
 3001|       |                           }
 3002|       |                        }
 3003|       |
 3004|       |                        ctx.error = error_code::missing_key;
 3005|       |                        return;
 3006|       |                     }
 3007|       |                  }
 3008|       |                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3009|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3010|       |                        auto wrapper = self_constraint_v<T>(value);
 3011|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3012|       |                        if (bool(ctx.error)) {
 3013|       |                           return;
 3014|       |                        }
 3015|       |                     }
 3016|       |                  }
 3017|    388|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3018|    388|                  if constexpr (not Opts.null_terminated) {
 3019|    388|                     if (it == end) {
  ------------------
  |  Branch (3019:26): [True: 388, False: 0]
  ------------------
 3020|    388|                        ctx.error = error_code::end_reached;
 3021|    388|                        return;
 3022|    388|                     }
 3023|    388|                  }
 3024|      0|                  return;
 3025|    388|               }
 3026|  22.8k|               else if (first) {
  ------------------
  |  Branch (3026:25): [True: 1.60k, False: 21.2k]
  ------------------
 3027|  1.60k|                  first = false;
 3028|  1.60k|               }
 3029|  21.2k|               else {
 3030|  21.2k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3030:23): [True: 243, False: 21.0k]
  ------------------
 3031|    243|                     return;
 3032|    243|                  }
 3033|  21.0k|                  if constexpr (not Opts.null_terminated) {
 3034|  21.0k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3034:26): [True: 0, False: 21.0k]
  ------------------
 3035|      0|                        ctx.error = error_code::unexpected_end;
 3036|      0|                        return;
 3037|      0|                     }
 3038|  21.0k|                  }
 3039|       |
 3040|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3041|       |                                (!Opts.comments)) {
 3042|       |                     if (ws_size && ws_size < size_t(end - it)) {
 3043|       |                        skip_matching_ws(ws_start, it, ws_size);
 3044|       |                     }
 3045|       |                  }
 3046|       |
 3047|  21.0k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3047:23): [True: 0, False: 21.0k]
  ------------------
 3048|      0|                     return;
 3049|      0|                  }
 3050|  21.0k|               }
 3051|       |
 3052|  22.6k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3052:49): [Folded, False: 0]
  |  Branch (3052:70): [Folded, False: 0]
  ------------------
 3053|       |
 3054|       |               if constexpr (reflection_type && (num_members == 0)) {
 3055|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3056|       |                     static_assert(false_v<T>, "This should be unreachable");
 3057|       |                  }
 3058|       |                  else {
 3059|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3060|       |                        return;
 3061|       |                     }
 3062|       |
 3063|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3064|       |
 3065|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3066|       |                     // handled by the user.
 3067|       |
 3068|       |                     const auto start = it;
 3069|       |                     uint64_t ascii_acc{};
 3070|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3071|       |                     if (bool(ctx.error)) [[unlikely]]
 3072|       |                        return;
 3073|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3074|       |                        return;
 3075|       |                     const sv key{start, size_t(it - start)};
 3076|       |                     ++it;
 3077|       |                     if constexpr (not Opts.null_terminated) {
 3078|       |                        if (it == end) [[unlikely]] {
 3079|       |                           ctx.error = error_code::unexpected_end;
 3080|       |                           return;
 3081|       |                        }
 3082|       |                     }
 3083|       |
 3084|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3085|       |                        return;
 3086|       |                     }
 3087|       |
 3088|       |                     // Check if this key is the variant tag that should be skipped
 3089|       |                     if constexpr (not tag.sv().empty()) {
 3090|       |                        if (key == tag.sv()) {
 3091|       |                           // Skip the tag value
 3092|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3093|       |                           if (bool(ctx.error)) [[unlikely]]
 3094|       |                              return;
 3095|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3096|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3097|       |                              return;
 3098|       |                           }
 3099|       |                           continue;
 3100|       |                        }
 3101|       |                     }
 3102|       |
 3103|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3104|       |                     if (bool(ctx.error)) [[unlikely]]
 3105|       |                        return;
 3106|       |                     if constexpr (not Opts.null_terminated) {
 3107|       |                        if (it == end) [[unlikely]] {
 3108|       |                           ctx.error = error_code::unexpected_end;
 3109|       |                           return;
 3110|       |                        }
 3111|       |                     }
 3112|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3113|       |                        return;
 3114|       |                     }
 3115|       |                  }
 3116|       |               }
 3117|       |               else if constexpr (reflection_type) {
 3118|       |                  static_assert(bool(hash_info<T>.type));
 3119|       |
 3120|       |                  if (*it != '"') [[unlikely]] {
 3121|       |                     ctx.error = error_code::expected_quote;
 3122|       |                     return;
 3123|       |                  }
 3124|       |                  ++it;
 3125|       |                  if constexpr (not Opts.null_terminated) {
 3126|       |                     if (it == end) [[unlikely]] {
 3127|       |                        ctx.error = error_code::unexpected_end;
 3128|       |                        return;
 3129|       |                     }
 3130|       |                  }
 3131|       |
 3132|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3133|       |                     // For tagged variants we first check to see if the key matches the tag
 3134|       |                     // We only need to do this if the tag is not part of the keys
 3135|       |
 3136|       |                     const auto start = it;
 3137|       |                     uint64_t ascii_acc{};
 3138|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3139|       |                     if (bool(ctx.error)) [[unlikely]]
 3140|       |                        return;
 3141|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3142|       |                        return;
 3143|       |                     const sv key{start, size_t(it - start)};
 3144|       |                     ++it;
 3145|       |                     if constexpr (not Opts.null_terminated) {
 3146|       |                        if (it == end) [[unlikely]] {
 3147|       |                           ctx.error = error_code::unexpected_end;
 3148|       |                           return;
 3149|       |                        }
 3150|       |                     }
 3151|       |
 3152|       |                     if (key == tag.sv()) {
 3153|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3154|       |                           return;
 3155|       |                        }
 3156|       |
 3157|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3158|       |                        if (bool(ctx.error)) [[unlikely]]
 3159|       |                           return;
 3160|       |
 3161|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3162|       |                           return;
 3163|       |                        }
 3164|       |                        continue;
 3165|       |                     }
 3166|       |                     else {
 3167|       |                        it = start; // reset the iterator
 3168|       |                     }
 3169|       |                  }
 3170|       |
 3171|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3172|       |                     size_t index = num_members;
 3173|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3174|       |                     if (bool(ctx.error)) [[unlikely]]
 3175|       |                        return;
 3176|       |                     if (index < num_members) {
 3177|       |                        fields[index] = true;
 3178|       |                     }
 3179|       |                  }
 3180|       |                  else {
 3181|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3182|       |                     if (bool(ctx.error)) [[unlikely]]
 3183|       |                        return;
 3184|       |                  }
 3185|       |               }
 3186|  22.6k|               else {
 3187|       |                  // For types like std::map, std::unordered_map
 3188|       |
 3189|  22.6k|                  auto reading = [&](auto&& key) {
 3190|  22.6k|                     if constexpr (Opts.partial_read) {
 3191|  22.6k|                        if (auto element = value.find(key); element != value.end()) {
 3192|  22.6k|                           ++read_count;
 3193|  22.6k|                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|  22.6k|                        }
 3195|  22.6k|                        else {
 3196|  22.6k|                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|  22.6k|                        }
 3198|  22.6k|                     }
 3199|  22.6k|                     else {
 3200|  22.6k|                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|  22.6k|                     }
 3202|  22.6k|                  };
 3203|       |
 3204|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3205|  22.6k|                  using Key = typename T::key_type;
 3206|  22.6k|                  if constexpr (std::is_same_v<Key, std::string>) {
 3207|  22.6k|                     ctx.scratch.clear();
 3208|  22.6k|                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3209|  22.6k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3209:26): [True: 227, False: 22.3k]
  ------------------
 3210|    227|                        return;
 3211|       |
 3212|  22.3k|                     if (parse_ws_colon<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3212:26): [True: 172, False: 22.2k]
  ------------------
 3213|    172|                        return;
 3214|    172|                     }
 3215|       |
 3216|  22.2k|                     reading(ctx.scratch);
 3217|       |                     if constexpr (Opts.partial_read) {
 3218|       |                        if (read_count == value.size()) {
 3219|       |                           return;
 3220|       |                        }
 3221|       |                     }
 3222|  22.2k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3222:26): [True: 598, False: 21.6k]
  ------------------
 3223|    598|                        return;
 3224|       |                  }
 3225|       |                  else if constexpr (str_t<Key>) {
 3226|       |                     Key key;
 3227|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3228|       |                     if (bool(ctx.error)) [[unlikely]]
 3229|       |                        return;
 3230|       |
 3231|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3232|       |                        return;
 3233|       |                     }
 3234|       |
 3235|       |                     reading(key);
 3236|       |                     if constexpr (Opts.partial_read) {
 3237|       |                        if (read_count == value.size()) {
 3238|       |                           return;
 3239|       |                        }
 3240|       |                     }
 3241|       |                     if (bool(ctx.error)) [[unlikely]]
 3242|       |                        return;
 3243|       |                  }
 3244|       |                  else {
 3245|       |                     Key key_value{};
 3246|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3247|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3248|       |                     }
 3249|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3250|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3251|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3252|       |                     }
 3253|       |                     else {
 3254|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3255|       |                     }
 3256|       |                     if (bool(ctx.error)) [[unlikely]]
 3257|       |                        return;
 3258|       |
 3259|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3260|       |                        return;
 3261|       |                     }
 3262|       |
 3263|       |                     reading(key_value);
 3264|       |                     if constexpr (Opts.partial_read) {
 3265|       |                        if (read_count == value.size()) {
 3266|       |                           return;
 3267|       |                        }
 3268|       |                     }
 3269|       |                     if (bool(ctx.error)) [[unlikely]]
 3270|       |                        return;
 3271|       |                  }
 3272|  22.6k|               }
 3273|       |
 3274|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3275|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3276|       |                  if (ctx.stream.enabled()) {
 3277|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3278|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3279|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3280|       |                        const char* new_it;
 3281|       |                        const char* new_end;
 3282|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3283|       |                        it = new_it;
 3284|       |                        end = new_end;
 3285|       |                        if (it >= end && ctx.stream.at_eof()) {
 3286|       |                           ctx.error = error_code::unexpected_end;
 3287|       |                           return;
 3288|       |                        }
 3289|       |                     }
 3290|       |                  }
 3291|       |               }
 3292|       |
 3293|  22.6k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3293:20): [True: 0, False: 22.6k]
  ------------------
 3294|      0|                  return;
 3295|      0|               }
 3296|  22.6k|            }
 3297|  1.69k|         }
 3298|  1.69k|      }
_ZZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2895|  1.62k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|       |                  return bit_array<num_members>{};
 2899|       |               }
 2900|  1.62k|               else {
 2901|  1.62k|                  return nullptr;
 2902|  1.62k|               }
 2903|  1.62k|            }();
_ZZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2931|  1.62k|               ctx, [&]() -> void* {
 2932|       |                  if constexpr (tracks_include_keys) {
 2933|       |                     return &fields;
 2934|       |                  }
 2935|  1.62k|                  else {
 2936|  1.62k|                     return nullptr;
 2937|  1.62k|                  }
 2938|  1.62k|               }()};
_ZZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_ENKUlOT_E_clIRS8_EEDaSZ_:
 3189|  22.2k|                  auto reading = [&](auto&& key) {
 3190|       |                     if constexpr (Opts.partial_read) {
 3191|       |                        if (auto element = value.find(key); element != value.end()) {
 3192|       |                           ++read_count;
 3193|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|       |                        }
 3195|       |                        else {
 3196|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|       |                        }
 3198|       |                     }
 3199|  22.2k|                     else {
 3200|  22.2k|                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|  22.2k|                     }
 3202|  22.2k|                  };
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__18optionalIdEETkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
   49|  2.23k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  2.23k|         else {
   60|  2.23k|            using V = std::remove_cvref_t<T>;
   61|  2.23k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  2.23k|                                             end);
   63|  2.23k|         }
   64|  2.23k|      }
_ZN3glz4fromILj10ENSt3__18optionalIdEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
 4883|  2.23k|      {
 4884|  2.23k|         constexpr auto Opts = ws_handled_off<Options>();
 4885|  2.23k|         if constexpr (!check_ws_handled(Options)) {
 4886|  2.23k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (4886:17): [True: 0, False: 2.23k]
  ------------------
 4887|      0|               return;
 4888|      0|            }
 4889|  2.23k|         }
 4890|       |
 4891|  2.23k|         if (*it == 'n') {
  ------------------
  |  Branch (4891:14): [True: 0, False: 2.23k]
  ------------------
 4892|      0|            ++it;
 4893|      0|            if constexpr (not Opts.null_terminated) {
 4894|      0|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (4894:20): [True: 0, False: 0]
  ------------------
 4895|      0|                  ctx.error = error_code::unexpected_end;
 4896|      0|                  return;
 4897|      0|               }
 4898|      0|            }
 4899|      0|            match<"ull", Opts>(ctx, it, end);
 4900|      0|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (4900:17): [True: 0, False: 0]
  ------------------
 4901|      0|               return;
 4902|      0|            if constexpr (requires { value.reset(); }) {
 4903|      0|               value.reset();
 4904|      0|            }
 4905|      0|         }
 4906|  2.23k|         else {
 4907|  2.23k|            if constexpr (nullable_value_t<T>) {
 4908|  2.23k|               if (not value.has_value()) {
  ------------------
  |  Branch (4908:20): [True: 2.23k, False: 0]
  ------------------
 4909|       |                  if constexpr (constructible<T>) {
 4910|       |                     value = meta_construct_v<T>();
 4911|       |                  }
 4912|  2.23k|                  else if constexpr (requires { value.emplace(); }) {
 4913|  2.23k|                     value.emplace();
 4914|       |                  }
 4915|       |                  else {
 4916|       |                     static_assert(false_v<T>,
 4917|       |                                   "Your nullable type must have `emplace()` or be glz::meta constructible, or "
 4918|       |                                   "create a custom glz::from specialization");
 4919|       |                  }
 4920|  2.23k|               }
 4921|  2.23k|               parse<JSON>::op<Opts>(value.value(), ctx, it, end);
 4922|       |            }
 4923|       |            else {
 4924|       |               if (!value) {
 4925|       |                  if (!nullable_emplace<Opts>(value, ctx)) {
 4926|       |                     return;
 4927|       |                  }
 4928|       |               }
 4929|       |               parse<JSON>::op<Opts>(*value, ctx, it, end);
 4930|       |            }
 4931|  2.23k|         }
 4932|  2.23k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__17variantIJNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
   49|  1.25k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  1.25k|         else {
   60|  1.25k|            using V = std::remove_cvref_t<T>;
   61|  1.25k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  1.25k|                                             end);
   63|  1.25k|         }
   64|  1.25k|      }
_ZN3glz4fromILj10ENSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
 3860|  1.25k|      {
 3861|       |         if constexpr (tagging == variant_tagging_kind::adjacent) {
 3862|       |            read_adjacent<Options>(value, ctx, it, end);
 3863|       |         }
 3864|  1.25k|         else {
 3865|  1.25k|            read_deduced<Options>(value, ctx, it, end);
 3866|  1.25k|         }
 3867|  1.25k|      }
_ZN3glz4fromILj10ENSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEE12read_deducedITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
 3871|  1.25k|      {
 3872|  1.25k|         constexpr auto Opts = ws_handled_off<Options>();
 3873|  1.25k|         if constexpr (variant_is_auto_deducible<T>()) {
 3874|  1.25k|            if constexpr (not check_ws_handled(Options)) {
 3875|  1.25k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3875:20): [True: 0, False: 1.25k]
  ------------------
 3876|      0|                  return;
 3877|      0|               }
 3878|  1.25k|            }
 3879|       |
 3880|  1.25k|            switch (*it) {
 3881|      0|            case '\0':
  ------------------
  |  Branch (3881:13): [True: 0, False: 1.25k]
  ------------------
 3882|      0|               ctx.error = error_code::unexpected_end;
 3883|      0|               return;
 3884|    282|            case '{': {
  ------------------
  |  Branch (3884:13): [True: 282, False: 971]
  ------------------
 3885|       |               // This branch consumes the brace itself and hands the object to a reader with
 3886|       |               // `opening_handled`, which therefore does not count the level -- but does release it at
 3887|       |               // the closing brace. So the level is taken here, in both buffer modes, and paid back by
 3888|       |               // the reader below.
 3889|    282|               if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (3889:20): [True: 0, False: 282]
  ------------------
 3890|      0|                  return;
 3891|      0|               }
 3892|       |
 3893|    282|               ++it;
 3894|    282|               if constexpr (not Opts.null_terminated) {
 3895|    282|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3895:23): [True: 0, False: 282]
  ------------------
 3896|      0|                     ctx.error = error_code::unexpected_end;
 3897|      0|                     return;
 3898|      0|                  }
 3899|    282|               }
 3900|    282|               using type_counts = variant_type_count<T>;
 3901|    282|               constexpr auto n_object_candidates = variant_object_candidate_count_v<Opts, T>;
 3902|       |               if constexpr (n_object_candidates < 1) {
 3903|       |                  ctx.error = error_code::no_matching_variant_type;
 3904|       |                  return;
 3905|       |               }
 3906|    282|               else if constexpr (n_object_candidates == 1 && tag_v<T>.empty()) {
 3907|    282|                  constexpr auto first_idx = variant_first_object_candidate_v<Opts, T>;
 3908|    282|                  using V = std::variant_alternative_t<first_idx, T>;
 3909|    282|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (3909:23): [True: 282, False: 0]
  ------------------
 3910|    282|                  parse<JSON>::op<opening_handled<Opts>()>(std::get<V>(value), ctx, it, end);
 3911|    282|                  return;
 3912|       |               }
 3913|       |               else {
 3914|       |                  auto possible_types = bit_array<std::variant_size_v<T>>{}.flip();
 3915|       |                  static constexpr auto& deduction_bits = variant_deduction_bits<T>;
 3916|       |                  static constexpr size_t deduction_key_count = variant_deduction_key_count<T>;
 3917|       |                  static constexpr auto tag_literal = string_literal_from_view<tag_v<T>.size()>(tag_v<T>);
 3918|       |
 3919|       |                  // Track if we've encountered a tag and what value it had
 3920|       |                  std::optional<size_t> tag_specified_index{};
 3921|       |
 3922|       |                  if (skip_ws<Opts>(ctx, it, end)) {
 3923|       |                     return;
 3924|       |                  }
 3925|       |                  // Once the reader knows which alternative this object holds it may have to read
 3926|       |                  // it again from here. Anchor the position rather than keep the pointer: the scan
 3927|       |                  // below skips values, and a streaming skip refills, which moves the window out
 3928|       |                  // from under a raw pointer (see rewind_anchor).
 3929|       |                  auto start = make_rewind_anchor(ctx, it);
 3930|       |                  bool first_key = true;
 3931|       |                  // Parse bifurcation for tagged variants:
 3932|       |                  //
 3933|       |                  // Without this optimization, tagged variant parsing always uses two passes:
 3934|       |                  //   1. Scan all keys to find the tag (e.g. "type"), skipping values
 3935|       |                  //   2. Reset `it = start` and re-parse the entire object into the resolved type
 3936|       |                  //
 3937|       |                  // When the tag is the first key, the second pass redundantly re-reads every
 3938|       |                  // field that follows it. This lambda avoids that: if the tag was the first key,
 3939|       |                  // it advances past the trailing comma so the object parser picks up at the
 3940|       |                  // second field. If the tag was found later, it falls back to the full re-parse.
 3941|       |                  //
 3942|       |                  // One exception: if the tag name is also a field on the resolved struct
 3943|       |                  // (contains_tag), we must re-parse regardless so the value is stored in
 3944|       |                  // the struct field. This override is applied inside each std::visit lambda.
 3945|       |                  //
 3946|       |                  // Either way the rewind can fail under a streaming read: the window only holds so
 3947|       |                  // much, and an object wider than it has no start left to return to.
 3948|       |                  auto position_after_tag = [&] {
 3949|       |                     if (first_key) {
 3950|       |                        if (*it == ',') ++it; // skip comma; handles tag-only objects where *it == '}'
 3951|       |                        return true;
 3952|       |                     }
 3953|       |                     return start.rewind(ctx, it, end); // tag came later, re-parse from the beginning
 3954|       |                  };
 3955|       |                  // `first_key` also answers "were we reset to the object start", which is what
 3956|       |                  // position_after_tag does for every key but the first.
 3957|       |                  for (; *it != '}'; first_key = false) {
 3958|       |                     if (!first_key) {
 3959|       |                        if (match_invalid_end<',', Opts>(ctx, it, end)) {
 3960|       |                           return;
 3961|       |                        }
 3962|       |                     }
 3963|       |
 3964|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3965|       |                        return;
 3966|       |                     }
 3967|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3968|       |                        return;
 3969|       |                     }
 3970|       |
 3971|       |                     auto* key_start = it;
 3972|       |                     skip_string_view(ctx, it, end);
 3973|       |                     if (bool(ctx.error)) [[unlikely]]
 3974|       |                        return;
 3975|       |                     if (validate_utf8_span<Opts>(ctx, key_start, it)) [[unlikely]]
 3976|       |                        return;
 3977|       |                     const sv key = {key_start, size_t(it - key_start)};
 3978|       |
 3979|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3980|       |                        return;
 3981|       |                     }
 3982|       |
 3983|       |                     if constexpr (deduction_key_count > 0) {
 3984|       |                        // We first check if a tag is defined and see if the key matches the tag
 3985|       |                        if constexpr (not tag_v<T>.empty()) {
 3986|       |                           if (key == tag_v<T>) {
 3987|       |                              if (parse_ws_colon<Opts>(ctx, it, end)) {
 3988|       |                                 return;
 3989|       |                              }
 3990|       |
 3991|       |                              using id_type = std::decay_t<decltype(ids_v<T>[0])>;
 3992|       |
 3993|       |                              std::conditional_t<std::integral<id_type>, id_type, sv> type_id{};
 3994|       |                              if constexpr (std::integral<id_type>) {
 3995|       |                                 from<JSON, id_type>::template op<ws_handled<Opts>()>(type_id, ctx, it, end);
 3996|       |                              }
 3997|       |                              else {
 3998|       |                                 // The id is turned into an index below and never leaves this
 3999|       |                                 // reader, so the view of the window it borrows cannot outlive it.
 4000|       |                                 parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4001|       |                              }
 4002|       |                              if (bool(ctx.error)) [[unlikely]]
 4003|       |                                 return;
 4004|       |                              if (skip_ws<Opts>(ctx, it, end)) {
 4005|       |                                 return;
 4006|       |                              }
 4007|       |                              if (!(*it == ',' || *it == '}')) [[unlikely]] {
 4008|       |                                 ctx.error = error_code::syntax_error;
 4009|       |                                 return;
 4010|       |                              }
 4011|       |
 4012|       |                              size_t type_index;
 4013|       |                              if constexpr (std::integral<id_type>) {
 4014|       |                                 type_index = variant_id_to_index<T>::op(type_id);
 4015|       |                              }
 4016|       |                              else {
 4017|       |                                 type_index = variant_id_to_index<T>::op(
 4018|       |                                    type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4019|       |                              }
 4020|       |                              if (type_index < ids_v<T>.size()) [[likely]] {
 4021|       |                                 // Check if the deduced types include the tag-specified type
 4022|       |                                 // If not, the tag doesn't match the fields
 4023|       |                                 // We're already inside if constexpr (deduction_registry.size()), so we know deduction
 4024|       |                                 // is happening. At this point, possible_types has been narrowed by field deduction.
 4025|       |                                 // Check if the tag-specified type is still possible
 4026|       |                                 const bool type_is_possible = possible_types[type_index];
 4027|       |                                 if (!type_is_possible) {
 4028|       |                                    // Tag specifies a type that doesn't match the fields seen so far
 4029|       |                                    ctx.error = error_code::no_matching_variant_type;
 4030|       |                                    return;
 4031|       |                                 }
 4032|       |
 4033|       |                                 if (!position_after_tag()) return;
 4034|       |                                 tag_specified_index = type_index; // Store the tag-specified type
 4035|       |                                 if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4036|       |                                 std::visit(
 4037|       |                                    [&](auto&& v) {
 4038|       |                                       using V = std::decay_t<decltype(v)>;
 4039|       |                                       constexpr bool is_object =
 4040|       |                                          (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4041|       |                                       if constexpr (variant_unit_alternative<V>) {
 4042|       |                                          // A unit alternative carries no data; its object holds only the
 4043|       |                                          // discriminator. Consume that body through an empty reflected object so
 4044|       |                                          // unknown-key policy and terminator handling match every other alternative.
 4045|       |                                          detail::variant_unit_body unit_body{};
 4046|       |                                          from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4047|       |                                                                                             tag_literal>(unit_body,
 4048|       |                                                                                                          ctx, it, end);
 4049|       |                                       }
 4050|       |                                       else if constexpr (is_object) {
 4051|       |                                          if constexpr (contains_tag<V, tag_literal>()) {
 4052|       |                                             // tag is a struct field, must re-parse
 4053|       |                                             if (!start.rewind(ctx, it, end)) return;
 4054|       |                                          }
 4055|       |                                          from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it,
 4056|       |                                                                                                           end);
 4057|       |                                       }
 4058|       |                                       else if constexpr (is_memory_object<V>) {
 4059|       |                                          if (!v) {
 4060|       |                                             if constexpr (is_specialization_v<V, std::optional>) {
 4061|       |                                                if constexpr (requires { v.emplace(); }) {
 4062|       |                                                   v.emplace();
 4063|       |                                                }
 4064|       |                                                else {
 4065|       |                                                   v = typename V::value_type{};
 4066|       |                                                }
 4067|       |                                             }
 4068|       |                                             else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4069|       |                                                v = std::make_unique<typename V::element_type>();
 4070|       |                                             else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4071|       |                                                v = std::make_shared<typename V::element_type>();
 4072|       |                                             else if constexpr (constructible<V>) {
 4073|       |                                                v = meta_construct_v<V>();
 4074|       |                                             }
 4075|       |                                             else if constexpr (std::is_pointer_v<V> &&
 4076|       |                                                                can_allocate_raw_pointer<Opts,
 4077|       |                                                                                         std::decay_t<decltype(ctx)>>) {
 4078|       |                                                if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4079|       |                                                   return;
 4080|       |                                                }
 4081|       |                                             }
 4082|       |                                             else {
 4083|       |                                                ctx.error = error_code::invalid_nullable_read;
 4084|       |                                                return;
 4085|       |                                                // Cannot read into unset nullable that is not std::optional,
 4086|       |                                                // std::unique_ptr, or std::shared_ptr
 4087|       |                                             }
 4088|       |                                          }
 4089|       |                                          if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4090|       |                                             // tag is a struct field, must re-parse
 4091|       |                                             if (!start.rewind(ctx, it, end)) return;
 4092|       |                                          }
 4093|       |                                          from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4094|       |                                             *v, ctx, it, end);
 4095|       |                                       }
 4096|       |                                       else if constexpr (custom_read<V>) {
 4097|       |                                          // Custom handlers parse the remaining body themselves and do not
 4098|       |                                          // accept the tag template parameter; the tag was already consumed.
 4099|       |                                          // This only works when the tag was the first key. If it came later,
 4100|       |                                          // we were reset to the object start and the custom handler would
 4101|       |                                          // absorb the tag, so error rather than corrupt the value.
 4102|       |                                          if (!first_key) {
 4103|       |                                             ctx.error = error_code::feature_not_supported;
 4104|       |                                             ctx.custom_error_message =
 4105|       |                                                "the tag must be the first key for a custom variant alternative";
 4106|       |                                             return;
 4107|       |                                          }
 4108|       |                                          from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4109|       |                                       }
 4110|       |                                    },
 4111|       |                                    value);
 4112|       |
 4113|       |                                 return; // we've decoded our target type
 4114|       |                              }
 4115|       |                              else [[unlikely]] {
 4116|       |                                 // Check if we have a default type (ids array shorter than variant)
 4117|       |                                 constexpr auto ids_size = ids_v<T>.size();
 4118|       |                                 constexpr auto variant_size = std::variant_size_v<T>;
 4119|       |                                 if constexpr (ids_size < variant_size) {
 4120|       |                                    // Use the first unlabeled type as the default
 4121|       |                                    const auto default_type_index = ids_size;
 4122|       |
 4123|       |                                    if (!position_after_tag()) return;
 4124|       |                                    tag_specified_index = default_type_index; // Store the default type index
 4125|       |                                    if (value.index() != default_type_index)
 4126|       |                                       emplace_runtime_variant(value, default_type_index);
 4127|       |                                    std::visit(
 4128|       |                                       [&](auto&& v) {
 4129|       |                                          using V = std::decay_t<decltype(v)>;
 4130|       |                                          constexpr bool is_object =
 4131|       |                                             (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4132|       |                                          if constexpr (variant_unit_alternative<V>) {
 4133|       |                                             // A unit alternative carries no data; its object holds only the
 4134|       |                                             // discriminator. Consume that body through an empty reflected object so
 4135|       |                                             // unknown-key policy and terminator handling match every other
 4136|       |                                             // alternative.
 4137|       |                                             detail::variant_unit_body unit_body{};
 4138|       |                                             from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4139|       |                                                                                                tag_literal>(
 4140|       |                                                unit_body, ctx, it, end);
 4141|       |                                          }
 4142|       |                                          else if constexpr (is_object) {
 4143|       |                                             if constexpr (contains_tag<V, tag_literal>()) {
 4144|       |                                                // tag is a struct field, must re-parse
 4145|       |                                                if (!start.rewind(ctx, it, end)) return;
 4146|       |                                             }
 4147|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4148|       |                                          }
 4149|       |                                          else if constexpr (is_memory_object<V>) {
 4150|       |                                             if (!v) {
 4151|       |                                                if constexpr (is_specialization_v<V, std::optional>) {
 4152|       |                                                   if constexpr (requires { v.emplace(); }) {
 4153|       |                                                      v.emplace();
 4154|       |                                                   }
 4155|       |                                                   else {
 4156|       |                                                      v = typename V::value_type{};
 4157|       |                                                   }
 4158|       |                                                }
 4159|       |                                                else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4160|       |                                                   v = std::make_unique<typename V::element_type>();
 4161|       |                                                else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4162|       |                                                   v = std::make_shared<typename V::element_type>();
 4163|       |                                                else if constexpr (constructible<V>) {
 4164|       |                                                   v = meta_construct_v<V>();
 4165|       |                                                }
 4166|       |                                                else if constexpr (std::is_pointer_v<V> &&
 4167|       |                                                                   can_allocate_raw_pointer<
 4168|       |                                                                      Opts, std::decay_t<decltype(ctx)>>) {
 4169|       |                                                   if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4170|       |                                                      return;
 4171|       |                                                   }
 4172|       |                                                }
 4173|       |                                                else {
 4174|       |                                                   ctx.error = error_code::invalid_nullable_read;
 4175|       |                                                   return;
 4176|       |                                                }
 4177|       |                                             }
 4178|       |                                             if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4179|       |                                                // tag is a struct field, must re-parse
 4180|       |                                                if (!start.rewind(ctx, it, end)) return;
 4181|       |                                             }
 4182|       |                                             from<JSON, memory_type<V>>::template op<opening_handled<Opts>()>(*v, ctx,
 4183|       |                                                                                                              it, end);
 4184|       |                                          }
 4185|       |                                          else if constexpr (custom_read<V>) {
 4186|       |                                             // Custom handlers parse the remaining body themselves; this only
 4187|       |                                             // works when the tag was the first key (see above). If it came
 4188|       |                                             // later we were reset to the object start, so error rather than
 4189|       |                                             // let the custom handler absorb the tag.
 4190|       |                                             if (!first_key) {
 4191|       |                                                ctx.error = error_code::feature_not_supported;
 4192|       |                                                ctx.custom_error_message =
 4193|       |                                                   "the tag must be the first key for a custom variant alternative";
 4194|       |                                                return;
 4195|       |                                             }
 4196|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4197|       |                                          }
 4198|       |                                       },
 4199|       |                                       value);
 4200|       |
 4201|       |                                    return;
 4202|       |                                 }
 4203|       |                                 else {
 4204|       |                                    ctx.error = error_code::no_matching_variant_type;
 4205|       |                                    ctx.custom_error_message = variant_ids_string_v<T>;
 4206|       |                                    return;
 4207|       |                                 }
 4208|       |                              }
 4209|       |                           }
 4210|       |                        }
 4211|       |
 4212|       |                        // Inline decode_hash lookup for variant deduction
 4213|       |                        using deduction_keys_t = keys_wrapper<variant_deduction_keys<T>>;
 4214|       |                        constexpr auto& DeductionHashInfo = hash_info<deduction_keys_t>;
 4215|       |                        const auto deduction_index =
 4216|       |                           decode_hash_with_size<JSON, deduction_keys_t, DeductionHashInfo, DeductionHashInfo.type>::op(
 4217|       |                              key.data(), key.data() + key.size(), key.size());
 4218|       |                        if (deduction_index < deduction_key_count && variant_deduction_keys<T>[deduction_index] == key)
 4219|       |                           [[likely]] {
 4220|       |                           possible_types &= deduction_bits[deduction_index];
 4221|       |                        }
 4222|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4223|       |                           ctx.error = error_code::unknown_key;
 4224|       |                           return;
 4225|       |                        }
 4226|       |                     }
 4227|       |                     else if constexpr (not tag_v<T>.empty()) {
 4228|       |                        // empty object case for variant, if there are no normal elements
 4229|       |                        if (key == tag_v<T>) {
 4230|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4231|       |                              return;
 4232|       |                           }
 4233|       |
 4234|       |                           // The id is turned into an index below and never leaves this reader,
 4235|       |                           // so the view of the window it borrows cannot outlive that window.
 4236|       |                           std::string_view type_id{};
 4237|       |                           parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4238|       |                           if (bool(ctx.error)) [[unlikely]]
 4239|       |                              return;
 4240|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4241|       |                              return;
 4242|       |                           }
 4243|       |
 4244|       |                           const auto type_index = variant_id_to_index<T>::op(
 4245|       |                              type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4246|       |                           if (type_index < ids_v<T>.size()) [[likely]] {
 4247|       |                              if (!position_after_tag()) return;
 4248|       |                              tag_specified_index = type_index; // Store the tag-specified type
 4249|       |                              if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4250|       |                           }
 4251|       |                           else {
 4252|       |                              // Check if we have a default type (ids array shorter than variant)
 4253|       |                              constexpr auto ids_size = ids_v<T>.size();
 4254|       |                              constexpr auto variant_size = std::variant_size_v<T>;
 4255|       |                              if constexpr (ids_size < variant_size) {
 4256|       |                                 // Use the first unlabeled type as the default
 4257|       |                                 if (!position_after_tag()) return;
 4258|       |                                 const auto default_index = ids_size;
 4259|       |                                 tag_specified_index = default_index; // Store the default type index
 4260|       |                                 if (value.index() != default_index) emplace_runtime_variant(value, default_index);
 4261|       |                              }
 4262|       |                              else {
 4263|       |                                 ctx.error = error_code::no_matching_variant_type;
 4264|       |                                 ctx.custom_error_message = variant_ids_string_v<T>;
 4265|       |                                 return;
 4266|       |                              }
 4267|       |                           }
 4268|       |                           // Parse the type (handles tag skipping and unknown keys)
 4269|       |                           std::visit(
 4270|       |                              [&](auto&& v) {
 4271|       |                                 using V = std::decay_t<decltype(v)>;
 4272|       |                                 if constexpr (custom_read<V>) {
 4273|       |                                    // Custom handlers parse the remaining object body themselves and do not
 4274|       |                                    // accept the tag template parameter that reflected objects use to skip an
 4275|       |                                    // interior tag key. That only works when the tag is the first key (it was
 4276|       |                                    // just consumed). If the tag came after other keys, position_after_tag()
 4277|       |                                    // reset us to the object start and the custom handler would absorb the tag
 4278|       |                                    // into its value, so error here rather than corrupt the result.
 4279|       |                                    if (!first_key) {
 4280|       |                                       ctx.error = error_code::feature_not_supported;
 4281|       |                                       ctx.custom_error_message =
 4282|       |                                          "the tag must be the first key for a custom variant alternative";
 4283|       |                                       return;
 4284|       |                                    }
 4285|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4286|       |                                 }
 4287|       |                                 else {
 4288|       |                                    if constexpr (contains_tag<V, tag_literal>()) {
 4289|       |                                       // tag is a struct field, must re-parse
 4290|       |                                       if (!start.rewind(ctx, it, end)) return;
 4291|       |                                    }
 4292|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4293|       |                                 }
 4294|       |                              },
 4295|       |                              value);
 4296|       |                           return;
 4297|       |                        }
 4298|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4299|       |                           ctx.error = error_code::unknown_key;
 4300|       |                           return;
 4301|       |                        }
 4302|       |                        else {
 4303|       |                           // Skip unknown key's value (non-tag key in empty variant)
 4304|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4305|       |                              return;
 4306|       |                           }
 4307|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 4308|       |                           if (bool(ctx.error)) [[unlikely]]
 4309|       |                              return;
 4310|       |                           resync_window_end(ctx, end); // a streaming skip refills
 4311|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4312|       |                              return;
 4313|       |                           }
 4314|       |                           continue; // Continue loop to find the tag
 4315|       |                        }
 4316|       |                     }
 4317|       |                     else if constexpr (Opts.error_on_unknown_keys) {
 4318|       |                        ctx.error = error_code::unknown_key;
 4319|       |                        return;
 4320|       |                     }
 4321|       |
 4322|       |                     auto matching_types = possible_types.popcount();
 4323|       |                     if (matching_types == 0) {
 4324|       |                        ctx.error = error_code::no_matching_variant_type;
 4325|       |                        return;
 4326|       |                     }
 4327|       |                     // Only short-circuit for variants without tags
 4328|       |                     else if constexpr (tag_v<T>.empty()) {
 4329|       |                        if (matching_types == 1) {
 4330|       |                           if (!start.rewind(ctx, it, end)) return;
 4331|       |                           const auto type_index = possible_types.countr_zero();
 4332|       |
 4333|       |                           if (value.index() != static_cast<size_t>(type_index))
 4334|       |                              emplace_runtime_variant(value, type_index);
 4335|       |                           std::visit(
 4336|       |                              [&](auto&& v) {
 4337|       |                                 using V = std::decay_t<decltype(v)>;
 4338|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4339|       |                                 if constexpr (variant_unit_alternative<V>) {
 4340|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4341|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4342|       |                                    // terminator handling match every other alternative.
 4343|       |                                    detail::variant_unit_body unit_body{};
 4344|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4345|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4346|       |                                                                                                    end);
 4347|       |                                 }
 4348|       |                                 else if constexpr (is_object) {
 4349|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4350|       |                                 }
 4351|       |                                 else if constexpr (is_memory_object<V>) {
 4352|       |                                    if (!v) {
 4353|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4354|       |                                          if constexpr (requires { v.emplace(); }) {
 4355|       |                                             v.emplace();
 4356|       |                                          }
 4357|       |                                          else {
 4358|       |                                             v = typename V::value_type{};
 4359|       |                                          }
 4360|       |                                       }
 4361|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4362|       |                                          v = std::make_unique<typename V::element_type>();
 4363|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4364|       |                                          v = std::make_shared<typename V::element_type>();
 4365|       |                                       else if constexpr (constructible<V>) {
 4366|       |                                          v = meta_construct_v<V>();
 4367|       |                                       }
 4368|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4369|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4370|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4371|       |                                             return;
 4372|       |                                          }
 4373|       |                                       }
 4374|       |                                       else {
 4375|       |                                          ctx.error = error_code::invalid_nullable_read;
 4376|       |                                          return;
 4377|       |                                          // Cannot read into unset nullable that is not std::optional,
 4378|       |                                          // std::unique_ptr, or std::shared_ptr
 4379|       |                                       }
 4380|       |                                    }
 4381|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4382|       |                                       *v, ctx, it, end);
 4383|       |                                 }
 4384|       |                                 else if constexpr (custom_read<V>) {
 4385|       |                                    // Custom handlers parse the remaining body themselves.
 4386|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4387|       |                                 }
 4388|       |                              },
 4389|       |                              value);
 4390|       |
 4391|       |                           return; // we've decoded our target type
 4392|       |                        }
 4393|       |                     }
 4394|       |                     // For tagged variants, continue processing to validate tags
 4395|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 4396|       |                        return;
 4397|       |                     }
 4398|       |
 4399|       |                     skip_value<JSON>::op<Opts>(ctx, it, end);
 4400|       |                     if (bool(ctx.error)) [[unlikely]]
 4401|       |                        return;
 4402|       |                     resync_window_end(ctx, end); // a streaming skip refills
 4403|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 4404|       |                        return;
 4405|       |                     }
 4406|       |                  }
 4407|       |                  // Only apply ambiguous variant resolution if we have multiple object types
 4408|       |                  if constexpr ((type_counts::n_object + type_counts::n_nullable_object) > 1) {
 4409|       |                     // After parsing all keys, check if we have multiple matching types
 4410|       |                     // If so, choose the one with the fewest fields
 4411|       |                     auto final_matching = possible_types.popcount();
 4412|       |                     if (final_matching == 0) {
 4413|       |                        ctx.error = error_code::no_matching_variant_type;
 4414|       |                     }
 4415|       |                     else if (final_matching == 1) {
 4416|       |                        // Single type remains after field deduction
 4417|       |                        const auto type_index = possible_types.countr_zero();
 4418|       |
 4419|       |                        // Validate against tag if one was specified
 4420|       |                        if (tag_specified_index.has_value() &&
 4421|       |                            tag_specified_index.value() != static_cast<size_t>(type_index)) {
 4422|       |                           ctx.error = error_code::no_matching_variant_type;
 4423|       |                           return;
 4424|       |                        }
 4425|       |
 4426|       |                        if (!start.rewind(ctx, it, end)) return;
 4427|       |                        if (value.index() != static_cast<size_t>(type_index))
 4428|       |                           emplace_runtime_variant(value, type_index);
 4429|       |                        std::visit(
 4430|       |                           [&](auto&& v) {
 4431|       |                              using V = std::decay_t<decltype(v)>;
 4432|       |                              constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4433|       |                              if constexpr (variant_unit_alternative<V>) {
 4434|       |                                 // A unit alternative carries no data; its object holds only the discriminator.
 4435|       |                                 // Consume that body through an empty reflected object so unknown-key policy and
 4436|       |                                 // terminator handling match every other alternative.
 4437|       |                                 detail::variant_unit_body unit_body{};
 4438|       |                                 from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4439|       |                                                                                    tag_literal>(unit_body, ctx, it,
 4440|       |                                                                                                 end);
 4441|       |                              }
 4442|       |                              else if constexpr (is_object) {
 4443|       |                                 from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4444|       |                              }
 4445|       |                              else if constexpr (is_memory_object<V>) {
 4446|       |                                 if (!v) {
 4447|       |                                    if constexpr (is_specialization_v<V, std::optional>) {
 4448|       |                                       if constexpr (requires { v.emplace(); }) {
 4449|       |                                          v.emplace();
 4450|       |                                       }
 4451|       |                                       else {
 4452|       |                                          v = typename V::value_type{};
 4453|       |                                       }
 4454|       |                                    }
 4455|       |                                    else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4456|       |                                       v = std::make_unique<typename V::element_type>();
 4457|       |                                    else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4458|       |                                       v = std::make_shared<typename V::element_type>();
 4459|       |                                    else if constexpr (constructible<V>) {
 4460|       |                                       v = meta_construct_v<V>();
 4461|       |                                    }
 4462|       |                                    else if constexpr (std::is_pointer_v<V> &&
 4463|       |                                                       can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4464|       |                                       if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4465|       |                                          return;
 4466|       |                                       }
 4467|       |                                    }
 4468|       |                                    else {
 4469|       |                                       ctx.error = error_code::invalid_nullable_read;
 4470|       |                                       return;
 4471|       |                                    }
 4472|       |                                 }
 4473|       |                                 from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(*v, ctx,
 4474|       |                                                                                                               it, end);
 4475|       |                              }
 4476|       |                              else if constexpr (custom_read<V>) {
 4477|       |                                 // Custom handlers parse the remaining body themselves.
 4478|       |                                 from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4479|       |                              }
 4480|       |                           },
 4481|       |                           value);
 4482|       |                     }
 4483|       |                     else if (final_matching > 1) {
 4484|       |                        constexpr auto N = std::variant_size_v<T>;
 4485|       |
 4486|       |                        // Compile-time array of field counts for each variant type
 4487|       |                        constexpr auto field_counts = []<size_t... I>(std::index_sequence<I...>) {
 4488|       |                           return std::array<size_t, N> {
 4489|       |                              ([]<size_t J = I>() -> size_t {
 4490|       |                                 using V = std::decay_t<std::variant_alternative_t<J, T>>;
 4491|       |                                 if constexpr (glaze_object_t<V> || reflectable<V>) {
 4492|       |                                    return reflect<V>::size;
 4493|       |                                 }
 4494|       |                                 else if constexpr (is_memory_object<V>) {
 4495|       |                                    using X = memory_type<V>;
 4496|       |                                    if constexpr (glaze_object_t<X> || reflectable<X>) {
 4497|       |                                       return reflect<X>::size;
 4498|       |                                    }
 4499|       |                                    else {
 4500|       |                                       return (std::numeric_limits<size_t>::max)();
 4501|       |                                    }
 4502|       |                                 }
 4503|       |                                 else {
 4504|       |                                    return (std::numeric_limits<size_t>::max)();
 4505|       |                                 }
 4506|       |                              }.template operator()<I>())...
 4507|       |                           };
 4508|       |                        }(std::make_index_sequence<N>{});
 4509|       |
 4510|       |                        // Find the type with minimum field count among the possible types
 4511|       |                        size_t min_fields = (std::numeric_limits<size_t>::max)();
 4512|       |                        size_t chosen_index = N; // Invalid index initially
 4513|       |
 4514|       |                        for (size_t i = 0; i < N; ++i) {
 4515|       |                           if (possible_types[i] && field_counts[i] < min_fields) {
 4516|       |                              min_fields = field_counts[i];
 4517|       |                              chosen_index = i;
 4518|       |                           }
 4519|       |                        }
 4520|       |
 4521|       |                        if (chosen_index < N) {
 4522|       |                           // Validate against tag if one was specified
 4523|       |                           if (tag_specified_index.has_value() && tag_specified_index.value() != chosen_index) {
 4524|       |                              ctx.error = error_code::no_matching_variant_type;
 4525|       |                              return;
 4526|       |                           }
 4527|       |
 4528|       |                           if (!start.rewind(ctx, it, end)) return;
 4529|       |                           if (value.index() != chosen_index) emplace_runtime_variant(value, chosen_index);
 4530|       |                           std::visit(
 4531|       |                              [&](auto&& v) {
 4532|       |                                 using V = std::decay_t<decltype(v)>;
 4533|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4534|       |                                 if constexpr (variant_unit_alternative<V>) {
 4535|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4536|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4537|       |                                    // terminator handling match every other alternative.
 4538|       |                                    detail::variant_unit_body unit_body{};
 4539|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4540|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4541|       |                                                                                                    end);
 4542|       |                                 }
 4543|       |                                 else if constexpr (is_object) {
 4544|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4545|       |                                 }
 4546|       |                                 else if constexpr (is_memory_object<V>) {
 4547|       |                                    if (!v) {
 4548|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4549|       |                                          if constexpr (requires { v.emplace(); }) {
 4550|       |                                             v.emplace();
 4551|       |                                          }
 4552|       |                                          else {
 4553|       |                                             v = typename V::value_type{};
 4554|       |                                          }
 4555|       |                                       }
 4556|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4557|       |                                          v = std::make_unique<typename V::element_type>();
 4558|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4559|       |                                          v = std::make_shared<typename V::element_type>();
 4560|       |                                       else if constexpr (constructible<V>) {
 4561|       |                                          v = meta_construct_v<V>();
 4562|       |                                       }
 4563|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4564|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4565|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4566|       |                                             return;
 4567|       |                                          }
 4568|       |                                       }
 4569|       |                                       else {
 4570|       |                                          ctx.error = error_code::invalid_nullable_read;
 4571|       |                                          return;
 4572|       |                                       }
 4573|       |                                    }
 4574|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4575|       |                                       *v, ctx, it, end);
 4576|       |                                 }
 4577|       |                                 else if constexpr (custom_read<V>) {
 4578|       |                                    // Custom handlers parse the remaining body themselves.
 4579|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4580|       |                                 }
 4581|       |                              },
 4582|       |                              value);
 4583|       |                        }
 4584|       |                        else {
 4585|       |                           ctx.error = error_code::no_matching_variant_type;
 4586|       |                        }
 4587|       |                     }
 4588|       |                  }
 4589|       |                  else {
 4590|       |                     // For variants with 0 or 1 object types, use the original error handling
 4591|       |                     ctx.error = error_code::no_matching_variant_type;
 4592|       |                  }
 4593|       |               }
 4594|      0|               break;
 4595|    282|            }
 4596|     20|            case '[':
  ------------------
  |  Branch (4596:13): [True: 20, False: 1.23k]
  ------------------
 4597|       |               // As with '{' above: the array reader each alternative goes through counts the level.
 4598|     20|               process_variant_alternatives<T, is_variant_array>::template op<Opts>(value, ctx, it, end);
 4599|     20|               break;
 4600|    733|            case '"': {
  ------------------
  |  Branch (4600:13): [True: 733, False: 520]
  ------------------
 4601|    733|               process_variant_alternatives<T, is_variant_str>::template op<Opts>(value, ctx, it, end);
 4602|    733|               break;
 4603|    282|            }
 4604|      5|            case 't':
  ------------------
  |  Branch (4604:13): [True: 5, False: 1.24k]
  ------------------
 4605|      8|            case 'f': {
  ------------------
  |  Branch (4605:13): [True: 3, False: 1.25k]
  ------------------
 4606|      8|               process_variant_alternatives<T, is_variant_bool>::template op<Opts>(value, ctx, it, end);
 4607|      8|               break;
 4608|      5|            }
 4609|      0|            case 'n':
  ------------------
  |  Branch (4609:13): [True: 0, False: 1.25k]
  ------------------
 4610|      0|               if constexpr (variant_count_v<T, is_variant_null> == 0) {
 4611|      0|                  ctx.error = error_code::no_matching_variant_type;
 4612|       |               }
 4613|       |               else {
 4614|       |                  constexpr auto first_idx = variant_first_index_v<T, is_variant_null>;
 4615|       |                  using V = std::variant_alternative_t<first_idx, T>;
 4616|       |                  if (!std::holds_alternative<V>(value)) value = V{};
 4617|       |                  match<"null", Opts>(ctx, it, end);
 4618|       |               }
 4619|      0|               break;
 4620|    210|            default: {
  ------------------
  |  Branch (4620:13): [True: 210, False: 1.04k]
  ------------------
 4621|       |               // Not bool, string, object, or array so must be number or null
 4622|    210|               process_variant_alternatives<T, is_variant_num>::template op<Opts>(value, ctx, it, end);
 4623|    210|            }
 4624|  1.25k|            }
 4625|       |         }
 4626|       |         else {
 4627|       |            // For non-auto-deducible variants, try each type until one succeeds
 4628|       |            constexpr auto N = std::variant_size_v<T>;
 4629|       |            bool parsed = false;
 4630|       |            bool exhausted = false; // speculation budget spent; see charge_speculation
 4631|       |
 4632|       |            for_each<N>([&]<size_t I>() {
 4633|       |               if (parsed || exhausted || variant_alternative_exhausted(ctx)) return;
 4634|       |
 4635|       |               auto copy_it = it;
 4636|       |               // A rejected alternative may have bailed out inside a container, which leaves its
 4637|       |               // nesting level counted (see enter_depth), so the depth rewinds with the iterator.
 4638|       |               const auto copy_depth = ctx.depth;
 4639|       |
 4640|       |               // Try parsing as this type
 4641|       |               if (value.index() != I) {
 4642|       |                  emplace_runtime_variant(value, I);
 4643|       |               }
 4644|       |
 4645|       |               std::visit([&](auto&& v) { parse<JSON>::op<Options>(v, ctx, it, end); }, value);
 4646|       |               if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 4647|       |                  exhausted = true; // only rejected attempts are charged; see charge_speculation
 4648|       |               }
 4649|       |
 4650|       |               if (!bool(ctx.error)) {
 4651|       |                  parsed = true;
 4652|       |               }
 4653|       |               else if constexpr (not Options.null_terminated) {
 4654|       |                  // In non-null-terminated mode, if we hit end_reached after advancing the iterator,
 4655|       |                  // it means we successfully parsed the value but couldn't skip trailing whitespace
 4656|       |                  if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 4657|       |                     // We advanced the iterator, so we did parse something -- unless what advanced it
 4658|       |                     // was an abandoned attempt, which is what a spent speculation budget means.
 4659|       |                     parsed = true;
 4660|       |                     ctx.error = error_code::none;
 4661|       |                  }
 4662|       |                  else {
 4663|       |                     // Reset for next attempt (unless this is the last type)
 4664|       |                     it = copy_it;
 4665|       |                     rewind_depth<Options>(ctx, copy_depth);
 4666|       |                     if constexpr (I + 1 < N) {
 4667|       |                        if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4668|       |                           ctx.error = error_code::none; // Clear error for next attempt
 4669|       |                        }
 4670|       |                     }
 4671|       |                  }
 4672|       |               }
 4673|       |               else {
 4674|       |                  // Reset for next attempt (unless this is the last type)
 4675|       |                  it = copy_it;
 4676|       |                  rewind_depth<Options>(ctx, copy_depth);
 4677|       |                  if constexpr (I + 1 < N) {
 4678|       |                     if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4679|       |                        ctx.error = error_code::none; // Clear error for next attempt
 4680|       |                     }
 4681|       |                  }
 4682|       |               }
 4683|       |            });
 4684|       |         }
 4685|  1.25k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIdNS4_9allocatorIdEEEETkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
   49|  3.54k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  3.54k|         else {
   60|  3.54k|            using V = std::remove_cvref_t<T>;
   61|  3.54k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  3.54k|                                             end);
   63|  3.54k|         }
   64|  3.54k|      }
_ZN3glz4fromILj10ENSt3__16vectorIdNS1_9allocatorIdEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS5_TkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
 2050|  3.54k|      {
 2051|  3.54k|         constexpr auto Opts = ws_handled_off<Options>();
 2052|  3.54k|         if constexpr (!check_ws_handled(Options)) {
 2053|  3.54k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2053:17): [True: 0, False: 3.54k]
  ------------------
 2054|      0|               return;
 2055|      0|            }
 2056|  3.54k|         }
 2057|       |
 2058|  3.54k|         if (match_invalid_end<'[', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2058:14): [True: 103, False: 3.43k]
  ------------------
 2059|    103|            return;
 2060|    103|         }
 2061|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2062|       |         // released at each syntactic close below
 2063|  3.43k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2063:14): [True: 0, False: 3.43k]
  ------------------
 2064|      0|            return;
 2065|      0|         }
 2066|       |
 2067|  3.43k|         const auto ws_start = it;
 2068|  3.43k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2068:14): [True: 0, False: 3.43k]
  ------------------
 2069|      0|            return;
 2070|      0|         }
 2071|       |
 2072|  3.43k|         if (*it == ']') {
  ------------------
  |  Branch (2072:14): [True: 22, False: 3.41k]
  ------------------
 2073|     22|            --ctx.depth;
 2074|     22|            ++it;
 2075|     22|            if constexpr ((resizable<T> || is_inplace_vector<T>) && not check_append_arrays(Opts)) {
 2076|     22|               value.clear();
 2077|       |
 2078|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2079|       |                  value.shrink_to_fit();
 2080|       |               }
 2081|     22|            }
 2082|     22|            return;
 2083|     22|         }
 2084|       |
 2085|  3.41k|         const size_t ws_size = size_t(it - ws_start);
 2086|       |
 2087|  3.41k|         static constexpr bool should_append = (resizable<T> || is_inplace_vector<T>) && check_append_arrays(Opts);
  ------------------
  |  Branch (2087:49): [True: 3.41k, Folded]
  |  Branch (2087:65): [Folded, False: 0]
  |  Branch (2087:90): [Folded, False: 0]
  ------------------
 2088|  3.41k|         if constexpr (not should_append) {
 2089|  3.41k|            const auto n = value.size();
 2090|       |
 2091|  3.41k|            auto value_it = value.begin();
 2092|       |
 2093|  3.41k|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (2093:32): [True: 0, False: 3.41k]
  ------------------
 2094|      0|               parse<JSON>::op<ws_handled<Opts>()>(*value_it++, ctx, it, end);
 2095|      0|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2095:20): [True: 0, False: 0]
  ------------------
 2096|      0|                  return;
 2097|      0|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2097:20): [True: 0, False: 0]
  ------------------
 2098|      0|                  return;
 2099|      0|               }
 2100|      0|               if (*it == ',') {
  ------------------
  |  Branch (2100:20): [True: 0, False: 0]
  ------------------
 2101|      0|                  ++it;
 2102|       |
 2103|      0|                  if constexpr (!Opts.minified && !Opts.comments) {
 2104|      0|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2104:26): [True: 0, False: 0]
  |  Branch (2104:37): [True: 0, False: 0]
  ------------------
 2105|      0|                        skip_matching_ws(ws_start, it, ws_size);
 2106|      0|                     }
 2107|      0|                  }
 2108|       |
 2109|      0|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2109:23): [True: 0, False: 0]
  ------------------
 2110|      0|                     return;
 2111|      0|                  }
 2112|      0|               }
 2113|      0|               else if (*it == ']') {
  ------------------
  |  Branch (2113:25): [True: 0, False: 0]
  ------------------
 2114|      0|                  --ctx.depth;
 2115|      0|                  ++it;
 2116|      0|                  if constexpr (erasable<T>) {
 2117|      0|                     value.erase(value_it,
 2118|      0|                                 value.end()); // use erase rather than resize for non-default constructible elements
 2119|       |
 2120|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2121|       |                        value.shrink_to_fit();
 2122|       |                     }
 2123|      0|                  }
 2124|      0|                  return;
 2125|      0|               }
 2126|      0|               else [[unlikely]] {
 2127|      0|                  ctx.error = error_code::expected_bracket;
 2128|      0|                  return;
 2129|      0|               }
 2130|      0|            }
 2131|  3.41k|         }
 2132|       |
 2133|       |         if constexpr (Opts.partial_read) {
 2134|       |            // partial_read stops early on a success path, so give the level back like the
 2135|       |            // syntactic-close paths do; otherwise it accumulates across reads sharing a context.
 2136|       |            --ctx.depth;
 2137|       |            return;
 2138|       |         }
 2139|  3.41k|         else {
 2140|       |            // growing
 2141|  3.41k|            if constexpr (emplace_backable<T> || has_try_emplace_back<T>) {
 2142|   742k|               while (it < end) {
  ------------------
  |  Branch (2142:23): [True: 742k, False: 0]
  ------------------
 2143|       |                  // Streaming refill point: at start of each iteration, ensure buffer has data
 2144|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2145|       |                     if (ctx.stream.enabled()) {
 2146|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2147|       |                        const size_t remaining = ctx.stream.size() - consumed;
 2148|       |                        // Refill when less than half of buffer remains to ensure space for next element
 2149|       |                        if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2150|       |                           const char* new_it;
 2151|       |                           const char* new_end;
 2152|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2153|       |                           it = new_it;
 2154|       |                           end = new_end;
 2155|       |                           if (it >= end && ctx.stream.at_eof()) {
 2156|       |                              break; // No more data, exit loop normally
 2157|       |                           }
 2158|       |                        }
 2159|       |                     }
 2160|       |                  }
 2161|       |
 2162|       |                  if constexpr (has_try_emplace_back<T>) {
 2163|       |                     if (value.try_emplace_back())
 2164|       |                        parse<JSON>::op<ws_handled<Opts>()>(value.back(), ctx, it, end);
 2165|       |                     else
 2166|       |                        ctx.error = error_code::exceeded_static_array_size;
 2167|       |                  }
 2168|   742k|                  else {
 2169|   742k|                     parse<JSON>::op<ws_handled<Opts>()>(value.emplace_back(), ctx, it, end);
 2170|   742k|                  }
 2171|       |
 2172|   742k|                  if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2172:23): [True: 972, False: 741k]
  ------------------
 2173|    972|                     return;
 2174|       |
 2175|       |                  // Streaming refill point: after parsing each element, refill if buffer is low
 2176|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2177|       |                     if (ctx.stream.enabled()) {
 2178|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2179|       |                        // Refill when less than 25% of buffer remains to ensure enough space for next element
 2180|       |                        if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 2181|       |                           const char* new_it;
 2182|       |                           const char* new_end;
 2183|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2184|       |                           it = new_it;
 2185|       |                           end = new_end;
 2186|       |                           if (it >= end && ctx.stream.at_eof()) {
 2187|       |                              ctx.error = error_code::unexpected_end;
 2188|       |                              return;
 2189|       |                           }
 2190|       |                        }
 2191|       |                     }
 2192|       |                  }
 2193|       |
 2194|   741k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2194:23): [True: 0, False: 741k]
  ------------------
 2195|      0|                     return;
 2196|      0|                  }
 2197|   741k|                  if (*it == ',') [[likely]] {
  ------------------
  |  Branch (2197:23): [True: 739k, False: 2.44k]
  ------------------
 2198|   739k|                     ++it;
 2199|       |
 2200|   739k|                     if constexpr (!Opts.minified && !Opts.comments) {
 2201|   739k|                        if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2201:29): [True: 625k, False: 114k]
  |  Branch (2201:40): [True: 624k, False: 265]
  ------------------
 2202|   624k|                           skip_matching_ws(ws_start, it, ws_size);
 2203|   624k|                        }
 2204|   739k|                     }
 2205|       |
 2206|   739k|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2206:26): [True: 0, False: 739k]
  ------------------
 2207|      0|                        return;
 2208|      0|                     }
 2209|   739k|                  }
 2210|  2.44k|                  else if (*it == ']') {
  ------------------
  |  Branch (2210:28): [True: 1.84k, False: 600]
  ------------------
 2211|  1.84k|                     --ctx.depth;
 2212|  1.84k|                     ++it;
 2213|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2214|       |                        value.shrink_to_fit();
 2215|       |                     }
 2216|  1.84k|                     return;
 2217|  1.84k|                  }
 2218|    600|                  else [[unlikely]] {
 2219|    600|                     ctx.error = error_code::expected_bracket;
 2220|    600|                     return;
 2221|    600|                  }
 2222|   741k|               }
 2223|       |
 2224|       |               // A valid array always returns from inside the loop upon reaching ']'.
 2225|       |               // For a null-terminated buffer the loop can only exit here by falling
 2226|       |               // through when `it` reaches the terminator without a closing bracket,
 2227|       |               // which means the input was truncated (e.g. "[", "[1," or "[1,2,").
 2228|       |               // Non-null-terminated buffers surface this through skip_ws/depth
 2229|       |               // tracking (or the streaming refill break), so this guard is limited
 2230|       |               // to the null-terminated case.
 2231|       |               if constexpr (Opts.null_terminated) {
 2232|       |                  ctx.error = error_code::unexpected_end;
 2233|       |               }
 2234|       |            }
 2235|       |            else {
 2236|       |               ctx.error = error_code::exceeded_static_array_size;
 2237|       |            }
 2238|  3.41k|         }
 2239|  3.41k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERdTkNS_10is_contextERNS_7contextERPKcS8_EEvOT0_OT1_OT2_T3_:
   49|  1.07M|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  1.07M|         else {
   60|  1.07M|            using V = std::remove_cvref_t<T>;
   61|  1.07M|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  1.07M|                                             end);
   63|  1.07M|         }
   64|  1.07M|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorINS_14basic_raw_jsonINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEENS4_9allocatorISB_EEEETkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
   49|  30.6k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  30.6k|         else {
   60|  30.6k|            using V = std::remove_cvref_t<T>;
   61|  30.6k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  30.6k|                                             end);
   63|  30.6k|         }
   64|  30.6k|      }
_ZN3glz4fromILj10ENSt3__16vectorINS_14basic_raw_jsonINS1_17basic_string_viewIcNS1_11char_traitsIcEEEEEENS1_9allocatorIS8_EEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
 2050|  30.6k|      {
 2051|  30.6k|         constexpr auto Opts = ws_handled_off<Options>();
 2052|  30.6k|         if constexpr (!check_ws_handled(Options)) {
 2053|  30.6k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2053:17): [True: 0, False: 30.6k]
  ------------------
 2054|      0|               return;
 2055|      0|            }
 2056|  30.6k|         }
 2057|       |
 2058|  30.6k|         if (match_invalid_end<'[', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2058:14): [True: 20, False: 30.6k]
  ------------------
 2059|     20|            return;
 2060|     20|         }
 2061|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2062|       |         // released at each syntactic close below
 2063|  30.6k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2063:14): [True: 0, False: 30.6k]
  ------------------
 2064|      0|            return;
 2065|      0|         }
 2066|       |
 2067|  30.6k|         const auto ws_start = it;
 2068|  30.6k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2068:14): [True: 14, False: 30.6k]
  ------------------
 2069|     14|            return;
 2070|     14|         }
 2071|       |
 2072|  30.6k|         if (*it == ']') {
  ------------------
  |  Branch (2072:14): [True: 17, False: 30.6k]
  ------------------
 2073|     17|            --ctx.depth;
 2074|     17|            ++it;
 2075|     17|            if constexpr ((resizable<T> || is_inplace_vector<T>) && not check_append_arrays(Opts)) {
 2076|     17|               value.clear();
 2077|       |
 2078|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2079|       |                  value.shrink_to_fit();
 2080|       |               }
 2081|     17|            }
 2082|     17|            return;
 2083|     17|         }
 2084|       |
 2085|  30.6k|         const size_t ws_size = size_t(it - ws_start);
 2086|       |
 2087|  30.6k|         static constexpr bool should_append = (resizable<T> || is_inplace_vector<T>) && check_append_arrays(Opts);
  ------------------
  |  Branch (2087:49): [True: 30.6k, Folded]
  |  Branch (2087:65): [Folded, False: 0]
  |  Branch (2087:90): [Folded, False: 0]
  ------------------
 2088|  30.6k|         if constexpr (not should_append) {
 2089|  30.6k|            const auto n = value.size();
 2090|       |
 2091|  30.6k|            auto value_it = value.begin();
 2092|       |
 2093|  30.6k|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (2093:32): [True: 0, False: 30.6k]
  ------------------
 2094|      0|               parse<JSON>::op<ws_handled<Opts>()>(*value_it++, ctx, it, end);
 2095|      0|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2095:20): [True: 0, False: 0]
  ------------------
 2096|      0|                  return;
 2097|      0|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2097:20): [True: 0, False: 0]
  ------------------
 2098|      0|                  return;
 2099|      0|               }
 2100|      0|               if (*it == ',') {
  ------------------
  |  Branch (2100:20): [True: 0, False: 0]
  ------------------
 2101|      0|                  ++it;
 2102|       |
 2103|      0|                  if constexpr (!Opts.minified && !Opts.comments) {
 2104|      0|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2104:26): [True: 0, False: 0]
  |  Branch (2104:37): [True: 0, False: 0]
  ------------------
 2105|      0|                        skip_matching_ws(ws_start, it, ws_size);
 2106|      0|                     }
 2107|      0|                  }
 2108|       |
 2109|      0|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2109:23): [True: 0, False: 0]
  ------------------
 2110|      0|                     return;
 2111|      0|                  }
 2112|      0|               }
 2113|      0|               else if (*it == ']') {
  ------------------
  |  Branch (2113:25): [True: 0, False: 0]
  ------------------
 2114|      0|                  --ctx.depth;
 2115|      0|                  ++it;
 2116|      0|                  if constexpr (erasable<T>) {
 2117|      0|                     value.erase(value_it,
 2118|      0|                                 value.end()); // use erase rather than resize for non-default constructible elements
 2119|       |
 2120|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2121|       |                        value.shrink_to_fit();
 2122|       |                     }
 2123|      0|                  }
 2124|      0|                  return;
 2125|      0|               }
 2126|      0|               else [[unlikely]] {
 2127|      0|                  ctx.error = error_code::expected_bracket;
 2128|      0|                  return;
 2129|      0|               }
 2130|      0|            }
 2131|  30.6k|         }
 2132|       |
 2133|       |         if constexpr (Opts.partial_read) {
 2134|       |            // partial_read stops early on a success path, so give the level back like the
 2135|       |            // syntactic-close paths do; otherwise it accumulates across reads sharing a context.
 2136|       |            --ctx.depth;
 2137|       |            return;
 2138|       |         }
 2139|  30.6k|         else {
 2140|       |            // growing
 2141|  30.6k|            if constexpr (emplace_backable<T> || has_try_emplace_back<T>) {
 2142|  4.83M|               while (it < end) {
  ------------------
  |  Branch (2142:23): [True: 4.83M, False: 0]
  ------------------
 2143|       |                  // Streaming refill point: at start of each iteration, ensure buffer has data
 2144|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2145|       |                     if (ctx.stream.enabled()) {
 2146|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2147|       |                        const size_t remaining = ctx.stream.size() - consumed;
 2148|       |                        // Refill when less than half of buffer remains to ensure space for next element
 2149|       |                        if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2150|       |                           const char* new_it;
 2151|       |                           const char* new_end;
 2152|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2153|       |                           it = new_it;
 2154|       |                           end = new_end;
 2155|       |                           if (it >= end && ctx.stream.at_eof()) {
 2156|       |                              break; // No more data, exit loop normally
 2157|       |                           }
 2158|       |                        }
 2159|       |                     }
 2160|       |                  }
 2161|       |
 2162|       |                  if constexpr (has_try_emplace_back<T>) {
 2163|       |                     if (value.try_emplace_back())
 2164|       |                        parse<JSON>::op<ws_handled<Opts>()>(value.back(), ctx, it, end);
 2165|       |                     else
 2166|       |                        ctx.error = error_code::exceeded_static_array_size;
 2167|       |                  }
 2168|  4.83M|                  else {
 2169|  4.83M|                     parse<JSON>::op<ws_handled<Opts>()>(value.emplace_back(), ctx, it, end);
 2170|  4.83M|                  }
 2171|       |
 2172|  4.83M|                  if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2172:23): [True: 4.93k, False: 4.82M]
  ------------------
 2173|  4.93k|                     return;
 2174|       |
 2175|       |                  // Streaming refill point: after parsing each element, refill if buffer is low
 2176|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2177|       |                     if (ctx.stream.enabled()) {
 2178|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2179|       |                        // Refill when less than 25% of buffer remains to ensure enough space for next element
 2180|       |                        if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 2181|       |                           const char* new_it;
 2182|       |                           const char* new_end;
 2183|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2184|       |                           it = new_it;
 2185|       |                           end = new_end;
 2186|       |                           if (it >= end && ctx.stream.at_eof()) {
 2187|       |                              ctx.error = error_code::unexpected_end;
 2188|       |                              return;
 2189|       |                           }
 2190|       |                        }
 2191|       |                     }
 2192|       |                  }
 2193|       |
 2194|  4.82M|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2194:23): [True: 495, False: 4.82M]
  ------------------
 2195|    495|                     return;
 2196|    495|                  }
 2197|  4.82M|                  if (*it == ',') [[likely]] {
  ------------------
  |  Branch (2197:23): [True: 4.80M, False: 25.1k]
  ------------------
 2198|  4.80M|                     ++it;
 2199|       |
 2200|  4.80M|                     if constexpr (!Opts.minified && !Opts.comments) {
 2201|  4.80M|                        if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2201:29): [True: 41.2k, False: 4.76M]
  |  Branch (2201:40): [True: 40.7k, False: 433]
  ------------------
 2202|  40.7k|                           skip_matching_ws(ws_start, it, ws_size);
 2203|  40.7k|                        }
 2204|  4.80M|                     }
 2205|       |
 2206|  4.80M|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2206:26): [True: 51, False: 4.80M]
  ------------------
 2207|     51|                        return;
 2208|     51|                     }
 2209|  4.80M|                  }
 2210|  25.1k|                  else if (*it == ']') {
  ------------------
  |  Branch (2210:28): [True: 20.8k, False: 4.29k]
  ------------------
 2211|  20.8k|                     --ctx.depth;
 2212|  20.8k|                     ++it;
 2213|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2214|       |                        value.shrink_to_fit();
 2215|       |                     }
 2216|  20.8k|                     return;
 2217|  20.8k|                  }
 2218|  4.29k|                  else [[unlikely]] {
 2219|  4.29k|                     ctx.error = error_code::expected_bracket;
 2220|  4.29k|                     return;
 2221|  4.29k|                  }
 2222|  4.82M|               }
 2223|       |
 2224|       |               // A valid array always returns from inside the loop upon reaching ']'.
 2225|       |               // For a null-terminated buffer the loop can only exit here by falling
 2226|       |               // through when `it` reaches the terminator without a closing bracket,
 2227|       |               // which means the input was truncated (e.g. "[", "[1," or "[1,2,").
 2228|       |               // Non-null-terminated buffers surface this through skip_ws/depth
 2229|       |               // tracking (or the streaming refill break), so this guard is limited
 2230|       |               // to the null-terminated case.
 2231|       |               if constexpr (Opts.null_terminated) {
 2232|       |                  ctx.error = error_code::unexpected_end;
 2233|       |               }
 2234|       |            }
 2235|       |            else {
 2236|       |               ctx.error = error_code::exceeded_static_array_size;
 2237|       |            }
 2238|  30.6k|         }
 2239|  30.6k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERNS_14basic_raw_jsonINSt3__117basic_string_viewIcNS5_11char_traitsIcEEEEEETkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
   49|  4.83M|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  4.83M|         else {
   60|  4.83M|            using V = std::remove_cvref_t<T>;
   61|  4.83M|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  4.83M|                                             end);
   63|  4.83M|         }
   64|  4.83M|      }
_ZN3glz4fromILj10ENS_14basic_raw_jsonINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
 1950|  4.87M|      {
 1951|  4.87M|         auto it_start = it;
 1952|  4.87M|         if (*it == 'n') {
  ------------------
  |  Branch (1952:14): [True: 779, False: 4.87M]
  ------------------
 1953|    779|            match<"null", Opts>(ctx, it, end);
 1954|    779|         }
 1955|  4.87M|         else if (is_digit(uint8_t(*it))) {
  ------------------
  |  Branch (1955:19): [True: 64.1k, False: 4.81M]
  ------------------
 1956|  64.1k|            skip_number<Opts>(ctx, it, end);
 1957|  64.1k|         }
 1958|  4.81M|         else {
 1959|  4.81M|            skip_value<JSON>::op<Opts>(ctx, it, end);
 1960|  4.81M|         }
 1961|  4.87M|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1961:14): [True: 9.27k, False: 4.86M]
  ------------------
 1962|  9.27k|            return;
 1963|  4.86M|         if constexpr (string_view_t<T>) {
 1964|  4.86M|            GLZ_ASSERT_OWNS_ITS_BYTES(decltype(ctx));
  ------------------
  |  |  242|  4.86M|   static_assert(!::glz::has_streaming_state<Ctx>,                                                              \
  |  |  243|  4.86M|                 "This read fills a non-owning view (std::string_view, glz::raw_json_view, glz::text_view, or " \
  |  |  244|  4.86M|                 "a std::span) that would point into the streaming window. A streaming read refills that "      \
  |  |  245|  4.86M|                 "window as it goes, so the view would address overwritten bytes by the time the read "         \
  |  |  246|  4.86M|                 "returns, and the read would report success while handing back silently wrong data. Read "     \
  |  |  247|  4.86M|                 "into the owning equivalent instead (std::string, glz::raw_json, glz::text, or an owning "     \
  |  |  248|  4.86M|                 "container), or read from a buffer that holds the whole document.")
  ------------------
 1965|  4.86M|         }
 1966|  4.86M|         value.str = {it_start, static_cast<size_t>(it - it_start)};
 1967|  4.86M|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS_3rpc18request_envelope_tETkNS_10is_contextERNS_7contextERPKcSA_EEvOT0_OT1_OT2_T3_:
   49|   252k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|   252k|         else {
   60|   252k|            using V = std::remove_cvref_t<T>;
   61|   252k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|   252k|                                             end);
   63|   252k|         }
   64|   252k|      }
_ZN3glz4fromILj10ENS_3rpc18request_envelope_tEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2791|   252k|      {
 2792|   252k|         static constexpr auto num_members = reflect<T>::size;
 2793|       |
 2794|   252k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2795|   252k|         if constexpr (!check_opening_handled(Options)) {
 2796|   252k|            if constexpr (!check_ws_handled(Options)) {
 2797|   252k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2797:20): [True: 15, False: 252k]
  ------------------
 2798|     15|                  return;
 2799|     15|               }
 2800|   252k|            }
 2801|   252k|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2801:17): [True: 106k, False: 145k]
  ------------------
 2802|   106k|               return;
 2803|   106k|            }
 2804|   145k|            if constexpr (not Opts.null_terminated) {
 2805|   145k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2805:20): [True: 0, False: 145k]
  ------------------
 2806|      0|                  ctx.error = error_code::unexpected_end;
 2807|      0|                  return;
 2808|      0|               }
 2809|   145k|            }
 2810|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2811|       |            // released at each syntactic close below
 2812|   145k|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2812:17): [True: 0, False: 145k]
  ------------------
 2813|      0|               return;
 2814|      0|            }
 2815|   145k|         }
 2816|   145k|         const auto ws_start = it;
 2817|   252k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2817:14): [True: 15, False: 252k]
  ------------------
 2818|     15|            return;
 2819|     15|         }
 2820|   252k|         const size_t ws_size = size_t(it - ws_start);
 2821|       |
 2822|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2823|       |            if constexpr (not tag.sv().empty()) {
 2824|       |               if (*it == '"') {
 2825|       |                  ++it;
 2826|       |                  if constexpr (not Opts.null_terminated) {
 2827|       |                     if (it == end) [[unlikely]] {
 2828|       |                        ctx.error = error_code::unexpected_end;
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|       |
 2833|       |                  const auto start = it;
 2834|       |                  skip_string_view(ctx, it, end);
 2835|       |                  if (bool(ctx.error)) [[unlikely]]
 2836|       |                     return;
 2837|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2838|       |                     return;
 2839|       |                  const sv key{start, size_t(it - start)};
 2840|       |                  ++it;
 2841|       |                  if constexpr (not Opts.null_terminated) {
 2842|       |                     if (it == end) [[unlikely]] {
 2843|       |                        ctx.error = error_code::unexpected_end;
 2844|       |                        return;
 2845|       |                     }
 2846|       |                  }
 2847|       |
 2848|       |                  if (key == tag.sv()) {
 2849|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2850|       |                        return;
 2851|       |                     }
 2852|       |
 2853|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2854|       |                     if (bool(ctx.error)) [[unlikely]]
 2855|       |                        return;
 2856|       |
 2857|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2858|       |                        return;
 2859|       |                     }
 2860|       |                  }
 2861|       |                  else {
 2862|       |                     ctx.error = error_code::unknown_key;
 2863|       |                     return;
 2864|       |                  }
 2865|       |               }
 2866|       |            }
 2867|       |
 2868|       |            if (*it == '}') [[likely]] {
 2869|       |               --ctx.depth;
 2870|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2871|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2872|       |                     auto wrapper = self_constraint_v<T>(value);
 2873|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2874|       |                     if (bool(ctx.error)) {
 2875|       |                        return;
 2876|       |                     }
 2877|       |                  }
 2878|       |               }
 2879|       |               ++it;
 2880|       |               if constexpr (not Opts.null_terminated) {
 2881|       |                  if (it == end) {
 2882|       |                     ctx.error = error_code::end_reached;
 2883|       |                     return;
 2884|       |                  }
 2885|       |               }
 2886|       |               if constexpr (Opts.partial_read) {
 2887|       |                  ctx.error = error_code::partial_read_complete;
 2888|       |               }
 2889|       |               return;
 2890|       |            }
 2891|       |            ctx.error = error_code::unknown_key;
 2892|       |            return;
 2893|       |         }
 2894|   252k|         else {
 2895|   252k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|   252k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|   252k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|   252k|                  return bit_array<num_members>{};
 2899|   252k|               }
 2900|   252k|               else {
 2901|   252k|                  return nullptr;
 2902|   252k|               }
 2903|   252k|            }();
 2904|       |
 2905|       |            // A file include merges an external document into this object, so with
 2906|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2907|       |            // context::key_bits). While this object parses, its bits are published for its
 2908|       |            // includer members to hand down; and if this parse is itself an included document,
 2909|       |            // it claims the bits of the object that included us and merges into them at the
 2910|       |            // closing brace instead of running a check of its own.
 2911|   252k|            static constexpr bool tracks_include_keys = [] {
 2912|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2913|   252k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2914|   252k|                  return has_includer_member<T>;
 2915|   252k|               }
 2916|   252k|               else {
 2917|   252k|                  return false;
 2918|   252k|               }
 2919|   252k|            }();
 2920|   252k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2921|       |            if constexpr (tracks_include_keys) {
 2922|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2923|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2924|       |                  ctx.include_key_bits = nullptr;
 2925|       |                  ctx.include_key_type = nullptr;
 2926|       |               }
 2927|       |            }
 2928|   252k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2929|   252k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2930|   252k|                                                      inert_key_bits_scope> published_bits{
 2931|   252k|               ctx, [&]() -> void* {
 2932|   252k|                  if constexpr (tracks_include_keys) {
 2933|   252k|                     return &fields;
 2934|   252k|                  }
 2935|   252k|                  else {
 2936|   252k|                     return nullptr;
 2937|   252k|                  }
 2938|   252k|               }()};
 2939|       |
 2940|   252k|            size_t read_count{}; // for partial_read
 2941|       |
 2942|   252k|            bool first = true;
 2943|   563k|            while (true) {
  ------------------
  |  Branch (2943:20): [True: 382k, Folded]
  ------------------
 2944|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2945|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2946|       |                     bit_array<num_members> arr{};
 2947|       |                     for (size_t i = 0; i < num_members; ++i) {
 2948|       |                        arr[i] = true;
 2949|       |                     }
 2950|       |                     return arr;
 2951|       |                  }();
 2952|       |
 2953|       |                  if ((all_fields & fields) == all_fields) {
 2954|       |                     ctx.error = error_code::partial_read_complete;
 2955|       |                     --ctx.depth; // as above: an early success still closes this level
 2956|       |                     return;
 2957|       |                  }
 2958|       |               }
 2959|       |
 2960|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2961|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2962|       |                  if (ctx.stream.enabled()) {
 2963|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2964|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2965|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2966|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2967|       |                        const char* new_it;
 2968|       |                        const char* new_end;
 2969|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2970|       |                        it = new_it;
 2971|       |                        end = new_end;
 2972|       |                        if (it >= end && ctx.stream.at_eof()) {
 2973|       |                           ctx.error = error_code::unexpected_end;
 2974|       |                           return;
 2975|       |                        }
 2976|       |                     }
 2977|       |                  }
 2978|       |               }
 2979|       |
 2980|   382k|               if (*it == '}') {
  ------------------
  |  Branch (2980:20): [True: 62.7k, False: 319k]
  ------------------
 2981|  62.7k|                  --ctx.depth;
 2982|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2983|       |                     const bool defer_to_includer = [&] {
 2984|       |                        if constexpr (tracks_include_keys) {
 2985|       |                           if (include_bits) {
 2986|       |                              // An included document is a fragment: hand the keys it supplied to
 2987|       |                              // the object that included it, which checks the union of both.
 2988|       |                              *include_bits |= fields;
 2989|       |                              return true;
 2990|       |                           }
 2991|       |                        }
 2992|       |                        return false;
 2993|       |                     }();
 2994|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2995|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2996|       |                        for (size_t i = 0; i < num_members; ++i) {
 2997|       |                           if (not fields[i] && req_fields[i]) {
 2998|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 2999|       |                              // We just return the first missing key in order to avoid heap allocations
 3000|       |                              break;
 3001|       |                           }
 3002|       |                        }
 3003|       |
 3004|       |                        ctx.error = error_code::missing_key;
 3005|       |                        return;
 3006|       |                     }
 3007|       |                  }
 3008|  62.7k|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3009|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3010|       |                        auto wrapper = self_constraint_v<T>(value);
 3011|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3012|       |                        if (bool(ctx.error)) {
 3013|       |                           return;
 3014|       |                        }
 3015|       |                     }
 3016|  62.7k|                  }
 3017|  62.7k|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3018|  62.7k|                  if constexpr (not Opts.null_terminated) {
 3019|  62.7k|                     if (it == end) {
  ------------------
  |  Branch (3019:26): [True: 57.8k, False: 4.89k]
  ------------------
 3020|  57.8k|                        ctx.error = error_code::end_reached;
 3021|  57.8k|                        return;
 3022|  57.8k|                     }
 3023|  62.7k|                  }
 3024|  4.89k|                  return;
 3025|  62.7k|               }
 3026|   319k|               else if (first) {
  ------------------
  |  Branch (3026:25): [True: 143k, False: 175k]
  ------------------
 3027|   143k|                  first = false;
 3028|   143k|               }
 3029|   175k|               else {
 3030|   175k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3030:23): [True: 7.42k, False: 168k]
  ------------------
 3031|  7.42k|                     return;
 3032|  7.42k|                  }
 3033|   168k|                  if constexpr (not Opts.null_terminated) {
 3034|   168k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3034:26): [True: 0, False: 168k]
  ------------------
 3035|      0|                        ctx.error = error_code::unexpected_end;
 3036|      0|                        return;
 3037|      0|                     }
 3038|   168k|                  }
 3039|       |
 3040|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3041|   168k|                                (!Opts.comments)) {
 3042|   168k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (3042:26): [True: 7.94k, False: 160k]
  |  Branch (3042:37): [True: 7.28k, False: 664]
  ------------------
 3043|  7.28k|                        skip_matching_ws(ws_start, it, ws_size);
 3044|  7.28k|                     }
 3045|   168k|                  }
 3046|       |
 3047|   168k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3047:23): [True: 4, False: 168k]
  ------------------
 3048|      4|                     return;
 3049|      4|                  }
 3050|   168k|               }
 3051|       |
 3052|   311k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3052:49): [True: 311k, Folded]
  |  Branch (3052:70): [Folded, False: 0]
  ------------------
 3053|       |
 3054|       |               if constexpr (reflection_type && (num_members == 0)) {
 3055|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3056|       |                     static_assert(false_v<T>, "This should be unreachable");
 3057|       |                  }
 3058|       |                  else {
 3059|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3060|       |                        return;
 3061|       |                     }
 3062|       |
 3063|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3064|       |
 3065|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3066|       |                     // handled by the user.
 3067|       |
 3068|       |                     const auto start = it;
 3069|       |                     uint64_t ascii_acc{};
 3070|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3071|       |                     if (bool(ctx.error)) [[unlikely]]
 3072|       |                        return;
 3073|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3074|       |                        return;
 3075|       |                     const sv key{start, size_t(it - start)};
 3076|       |                     ++it;
 3077|       |                     if constexpr (not Opts.null_terminated) {
 3078|       |                        if (it == end) [[unlikely]] {
 3079|       |                           ctx.error = error_code::unexpected_end;
 3080|       |                           return;
 3081|       |                        }
 3082|       |                     }
 3083|       |
 3084|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3085|       |                        return;
 3086|       |                     }
 3087|       |
 3088|       |                     // Check if this key is the variant tag that should be skipped
 3089|       |                     if constexpr (not tag.sv().empty()) {
 3090|       |                        if (key == tag.sv()) {
 3091|       |                           // Skip the tag value
 3092|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3093|       |                           if (bool(ctx.error)) [[unlikely]]
 3094|       |                              return;
 3095|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3096|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3097|       |                              return;
 3098|       |                           }
 3099|       |                           continue;
 3100|       |                        }
 3101|       |                     }
 3102|       |
 3103|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3104|       |                     if (bool(ctx.error)) [[unlikely]]
 3105|       |                        return;
 3106|       |                     if constexpr (not Opts.null_terminated) {
 3107|       |                        if (it == end) [[unlikely]] {
 3108|       |                           ctx.error = error_code::unexpected_end;
 3109|       |                           return;
 3110|       |                        }
 3111|       |                     }
 3112|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3113|       |                        return;
 3114|       |                     }
 3115|       |                  }
 3116|       |               }
 3117|   311k|               else if constexpr (reflection_type) {
 3118|   311k|                  static_assert(bool(hash_info<T>.type));
 3119|       |
 3120|   311k|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3120:23): [True: 12.8k, False: 298k]
  ------------------
 3121|  12.8k|                     ctx.error = error_code::expected_quote;
 3122|  12.8k|                     return;
 3123|  12.8k|                  }
 3124|   298k|                  ++it;
 3125|   298k|                  if constexpr (not Opts.null_terminated) {
 3126|   298k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3126:26): [True: 5, False: 298k]
  ------------------
 3127|      5|                        ctx.error = error_code::unexpected_end;
 3128|      5|                        return;
 3129|      5|                     }
 3130|   298k|                  }
 3131|       |
 3132|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3133|       |                     // For tagged variants we first check to see if the key matches the tag
 3134|       |                     // We only need to do this if the tag is not part of the keys
 3135|       |
 3136|       |                     const auto start = it;
 3137|       |                     uint64_t ascii_acc{};
 3138|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3139|       |                     if (bool(ctx.error)) [[unlikely]]
 3140|       |                        return;
 3141|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3142|       |                        return;
 3143|       |                     const sv key{start, size_t(it - start)};
 3144|       |                     ++it;
 3145|       |                     if constexpr (not Opts.null_terminated) {
 3146|       |                        if (it == end) [[unlikely]] {
 3147|       |                           ctx.error = error_code::unexpected_end;
 3148|       |                           return;
 3149|       |                        }
 3150|       |                     }
 3151|       |
 3152|       |                     if (key == tag.sv()) {
 3153|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3154|       |                           return;
 3155|       |                        }
 3156|       |
 3157|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3158|       |                        if (bool(ctx.error)) [[unlikely]]
 3159|       |                           return;
 3160|       |
 3161|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3162|       |                           return;
 3163|       |                        }
 3164|       |                        continue;
 3165|       |                     }
 3166|       |                     else {
 3167|       |                        it = start; // reset the iterator
 3168|       |                     }
 3169|       |                  }
 3170|       |
 3171|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3172|       |                     size_t index = num_members;
 3173|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3174|       |                     if (bool(ctx.error)) [[unlikely]]
 3175|       |                        return;
 3176|       |                     if (index < num_members) {
 3177|       |                        fields[index] = true;
 3178|       |                     }
 3179|       |                  }
 3180|   298k|                  else {
 3181|   298k|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3182|   298k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3182:26): [True: 61.9k, False: 236k]
  ------------------
 3183|  61.9k|                        return;
 3184|   298k|                  }
 3185|       |               }
 3186|       |               else {
 3187|       |                  // For types like std::map, std::unordered_map
 3188|       |
 3189|       |                  auto reading = [&](auto&& key) {
 3190|       |                     if constexpr (Opts.partial_read) {
 3191|       |                        if (auto element = value.find(key); element != value.end()) {
 3192|       |                           ++read_count;
 3193|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|       |                        }
 3195|       |                        else {
 3196|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|       |                        }
 3198|       |                     }
 3199|       |                     else {
 3200|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|       |                     }
 3202|       |                  };
 3203|       |
 3204|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3205|       |                  using Key = typename T::key_type;
 3206|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3207|       |                     ctx.scratch.clear();
 3208|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3209|       |                     if (bool(ctx.error)) [[unlikely]]
 3210|       |                        return;
 3211|       |
 3212|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3213|       |                        return;
 3214|       |                     }
 3215|       |
 3216|       |                     reading(ctx.scratch);
 3217|       |                     if constexpr (Opts.partial_read) {
 3218|       |                        if (read_count == value.size()) {
 3219|       |                           return;
 3220|       |                        }
 3221|       |                     }
 3222|       |                     if (bool(ctx.error)) [[unlikely]]
 3223|       |                        return;
 3224|       |                  }
 3225|       |                  else if constexpr (str_t<Key>) {
 3226|       |                     Key key;
 3227|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3228|       |                     if (bool(ctx.error)) [[unlikely]]
 3229|       |                        return;
 3230|       |
 3231|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3232|       |                        return;
 3233|       |                     }
 3234|       |
 3235|       |                     reading(key);
 3236|       |                     if constexpr (Opts.partial_read) {
 3237|       |                        if (read_count == value.size()) {
 3238|       |                           return;
 3239|       |                        }
 3240|       |                     }
 3241|       |                     if (bool(ctx.error)) [[unlikely]]
 3242|       |                        return;
 3243|       |                  }
 3244|       |                  else {
 3245|       |                     Key key_value{};
 3246|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3247|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3248|       |                     }
 3249|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3250|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3251|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3252|       |                     }
 3253|       |                     else {
 3254|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3255|       |                     }
 3256|       |                     if (bool(ctx.error)) [[unlikely]]
 3257|       |                        return;
 3258|       |
 3259|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3260|       |                        return;
 3261|       |                     }
 3262|       |
 3263|       |                     reading(key_value);
 3264|       |                     if constexpr (Opts.partial_read) {
 3265|       |                        if (read_count == value.size()) {
 3266|       |                           return;
 3267|       |                        }
 3268|       |                     }
 3269|       |                     if (bool(ctx.error)) [[unlikely]]
 3270|       |                        return;
 3271|       |                  }
 3272|       |               }
 3273|       |
 3274|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3275|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3276|       |                  if (ctx.stream.enabled()) {
 3277|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3278|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3279|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3280|       |                        const char* new_it;
 3281|       |                        const char* new_end;
 3282|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3283|       |                        it = new_it;
 3284|       |                        end = new_end;
 3285|       |                        if (it >= end && ctx.stream.at_eof()) {
 3286|       |                           ctx.error = error_code::unexpected_end;
 3287|       |                           return;
 3288|       |                        }
 3289|       |                     }
 3290|       |                  }
 3291|       |               }
 3292|       |
 3293|   311k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3293:20): [True: 282, False: 311k]
  ------------------
 3294|    282|                  return;
 3295|    282|               }
 3296|   311k|            }
 3297|   252k|         }
 3298|   252k|      }
_ZZN3glz4fromILj10ENS_3rpc18request_envelope_tEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2895|   145k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|       |                  return bit_array<num_members>{};
 2899|       |               }
 2900|   145k|               else {
 2901|   145k|                  return nullptr;
 2902|   145k|               }
 2903|   145k|            }();
_ZZN3glz4fromILj10ENS_3rpc18request_envelope_tEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2931|   145k|               ctx, [&]() -> void* {
 2932|       |                  if constexpr (tracks_include_keys) {
 2933|       |                     return &fields;
 2934|       |                  }
 2935|   145k|                  else {
 2936|   145k|                     return nullptr;
 2937|   145k|                  }
 2938|   145k|               }()};
_ZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_:
  382|   298k|   {
  383|   298k|      constexpr auto N = reflect<T>::size;
  384|       |
  385|       |      if constexpr (N == 1) {
  386|       |         decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  387|       |      }
  388|       |      else if constexpr (check_linear_search(Opts)) {
  389|       |         // Linear search path
  390|       |         auto key_start = it;
  391|       |         const auto index = decode_linear<T>(ctx, it, end);
  392|       |         if (bool(ctx.error)) [[unlikely]]
  393|       |            return;
  394|       |
  395|       |         if (index >= N) [[unlikely]] {
  396|       |            if constexpr (Opts.error_on_unknown_keys) {
  397|       |               ctx.error = error_code::unknown_key;
  398|       |               return;
  399|       |            }
  400|       |            else {
  401|       |               // it sits one past the closing quote, so the raw key spans [key_start, it - 1)
  402|       |               if (validate_utf8_span<Opts>(ctx, key_start, it - 1)) [[unlikely]] {
  403|       |                  return;
  404|       |               }
  405|       |               const sv key{key_start, size_t(it - key_start - 1)};
  406|       |               if constexpr (not Opts.null_terminated) {
  407|       |                  if (it == end) [[unlikely]] {
  408|       |                     ctx.error = error_code::unexpected_end;
  409|       |                     return;
  410|       |                  }
  411|       |               }
  412|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  413|       |                  return;
  414|       |               }
  415|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  416|       |               return;
  417|       |            }
  418|       |         }
  419|       |
  420|       |         if constexpr (not Opts.null_terminated) {
  421|       |            if (it == end) [[unlikely]] {
  422|       |               ctx.error = error_code::unexpected_end;
  423|       |               return;
  424|       |            }
  425|       |         }
  426|       |         if (skip_ws<Opts>(ctx, it, end)) {
  427|       |            return;
  428|       |         }
  429|       |         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  430|       |            return;
  431|       |         }
  432|       |         if (skip_ws<Opts>(ctx, it, end)) {
  433|       |            return;
  434|       |         }
  435|       |
  436|       |         // Fold expression dispatch - avoids jump table overhead for smaller binary size.
  437|       |         // For linear_search, pass Opts through to the field parser to avoid duplicate template
  438|       |         // instantiations; the whitespace before the value has already been skipped either way.
  439|       |         [&]<size_t... Is>(std::index_sequence<Is...>) {
  440|       |            (void)(((index == Is ? (decode_field_value<Opts, Opts, T, Is>(value, ctx, it, end, selected_index...), true)
  441|       |                                 : false) ||
  442|       |                    ...));
  443|       |         }(std::make_index_sequence<N>{});
  444|       |      }
  445|   298k|      else {
  446|       |         // Hash-based lookup
  447|   298k|         constexpr auto& HashInfo = hash_info<T>;
  448|   298k|         constexpr auto type = HashInfo.type;
  449|   298k|         static_assert(bool(type), "invalid hash algorithm");
  450|       |
  451|   298k|         const auto index = decode_hash<JSON, T, HashInfo, HashInfo.type>::op(it, end);
  452|       |
  453|   298k|         if (index >= N) [[unlikely]] {
  ------------------
  |  Branch (453:14): [True: 25.6k, False: 273k]
  ------------------
  454|  25.6k|            if constexpr (Opts.error_on_unknown_keys) {
  455|  25.6k|               ctx.error = error_code::unknown_key;
  456|  25.6k|               return;
  457|       |            }
  458|       |            else {
  459|       |               auto start = it;
  460|       |               skip_string_view(ctx, it, end);
  461|       |               if (bool(ctx.error)) [[unlikely]]
  462|       |                  return;
  463|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
  464|       |                  return;
  465|       |               const sv key = {start, size_t(it - start)};
  466|       |               ++it; // skip the quote
  467|       |               if constexpr (not Opts.null_terminated) {
  468|       |                  if (it == end) [[unlikely]] {
  469|       |                     ctx.error = error_code::unexpected_end;
  470|       |                     return;
  471|       |                  }
  472|       |               }
  473|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  474|       |                  return;
  475|       |               }
  476|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  477|       |               return;
  478|       |            }
  479|  25.6k|         }
  480|       |
  481|       |         if constexpr (N == 2) {
  482|       |            if (index == 0) {
  483|       |               decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  484|       |            }
  485|       |            else {
  486|       |               decode_index<Opts, T, 1>(value, ctx, it, end, selected_index...);
  487|       |            }
  488|       |         }
  489|   298k|         else {
  490|   298k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
  491|   298k|         }
  492|   298k|      }
  493|   298k|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm0EEEDav:
  490|  75.7k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|  75.7k|   {
  313|  75.7k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|  75.7k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|  75.7k|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|  75.7k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 75.0k, False: 674]
  |  Branch (321:52): [True: 74.0k, False: 1.02k]
  ------------------
  322|  74.0k|         it += Length;
  323|  74.0k|         if constexpr (not Opts.null_terminated) {
  324|  74.0k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 74.0k]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|  74.0k|         }
  329|       |
  330|  74.0k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 2, False: 74.0k]
  ------------------
  331|      2|            return;
  332|      2|         }
  333|  74.0k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 999, False: 73.0k]
  ------------------
  334|    999|            return;
  335|    999|         }
  336|  73.0k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 2, False: 73.0k]
  ------------------
  337|      2|            return;
  338|      2|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|  73.0k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|  73.0k|      }
  343|  1.69k|      else [[unlikely]] {
  344|  1.69k|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|  1.69k|      }
  346|  75.7k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEENS_3rpc18request_envelope_tELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|  73.0k|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|  73.0k|      else {
  274|  73.0k|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|  73.0k|         else if constexpr (glaze_object_t<T>) {
  294|  73.0k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|  73.0k|                                                                       ctx, it, end);
  296|       |         }
  297|       |         else {
  298|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|       |                                                                       it, end);
  300|       |         }
  301|  73.0k|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|  73.0k|   }
_ZN3glz4fromILj10ENSt3__18optionalINS1_17basic_string_viewIcNS1_11char_traitsIcEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
 4883|   137k|      {
 4884|   137k|         constexpr auto Opts = ws_handled_off<Options>();
 4885|       |         if constexpr (!check_ws_handled(Options)) {
 4886|       |            if (skip_ws<Opts>(ctx, it, end)) {
 4887|       |               return;
 4888|       |            }
 4889|       |         }
 4890|       |
 4891|   137k|         if (*it == 'n') {
  ------------------
  |  Branch (4891:14): [True: 935, False: 136k]
  ------------------
 4892|    935|            ++it;
 4893|    935|            if constexpr (not Opts.null_terminated) {
 4894|    935|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (4894:20): [True: 1, False: 934]
  ------------------
 4895|      1|                  ctx.error = error_code::unexpected_end;
 4896|      1|                  return;
 4897|      1|               }
 4898|    935|            }
 4899|    934|            match<"ull", Opts>(ctx, it, end);
 4900|    935|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (4900:17): [True: 507, False: 428]
  ------------------
 4901|    507|               return;
 4902|    428|            if constexpr (requires { value.reset(); }) {
 4903|    428|               value.reset();
 4904|    428|            }
 4905|    428|         }
 4906|   136k|         else {
 4907|   136k|            if constexpr (nullable_value_t<T>) {
 4908|   136k|               if (not value.has_value()) {
  ------------------
  |  Branch (4908:20): [True: 134k, False: 2.03k]
  ------------------
 4909|       |                  if constexpr (constructible<T>) {
 4910|       |                     value = meta_construct_v<T>();
 4911|       |                  }
 4912|   134k|                  else if constexpr (requires { value.emplace(); }) {
 4913|   134k|                     value.emplace();
 4914|       |                  }
 4915|       |                  else {
 4916|       |                     static_assert(false_v<T>,
 4917|       |                                   "Your nullable type must have `emplace()` or be glz::meta constructible, or "
 4918|       |                                   "create a custom glz::from specialization");
 4919|       |                  }
 4920|   134k|               }
 4921|   136k|               parse<JSON>::op<Opts>(value.value(), ctx, it, end);
 4922|       |            }
 4923|       |            else {
 4924|       |               if (!value) {
 4925|       |                  if (!nullable_emplace<Opts>(value, ctx)) {
 4926|       |                     return;
 4927|       |                  }
 4928|       |               }
 4929|       |               parse<JSON>::op<Opts>(*value, ctx, it, end);
 4930|       |            }
 4931|   136k|         }
 4932|   137k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEETkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
   49|   136k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|   136k|         else {
   60|   136k|            using V = std::remove_cvref_t<T>;
   61|   136k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|   136k|                                             end);
   63|   136k|         }
   64|   136k|      }
_ZN3glz4fromILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELb0ERPKcSA_S5_TkNS_10is_contextERNS_7contextEQntcl22check_string_as_numberTL0__EEEvRT3_OT4_OT1_T2_:
 1606|   136k|      {
 1607|   136k|         if constexpr (!check_opening_handled(Opts)) {
 1608|   136k|            if constexpr (!check_ws_handled(Opts)) {
 1609|   136k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1609:20): [True: 0, False: 136k]
  ------------------
 1610|      0|                  return;
 1611|      0|               }
 1612|   136k|            }
 1613|       |
 1614|   136k|            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1614:17): [True: 870, False: 136k]
  ------------------
 1615|    870|               return;
 1616|    870|            }
 1617|   136k|         }
 1618|       |
 1619|   136k|         auto start = it;
 1620|   136k|         skip_string_view(ctx, it, end);
 1621|   136k|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1621:14): [True: 11, False: 136k]
  ------------------
 1622|     11|            return;
 1623|       |
 1624|   136k|         if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]] {
  ------------------
  |  Branch (1624:14): [True: 40, False: 136k]
  ------------------
 1625|     40|            return;
 1626|     40|         }
 1627|       |
 1628|   136k|         if constexpr (string_view_t<T>) {
 1629|   136k|            if constexpr (!Transient) {
 1630|   136k|               GLZ_ASSERT_OWNS_ITS_BYTES(decltype(ctx));
  ------------------
  |  |  242|   136k|   static_assert(!::glz::has_streaming_state<Ctx>,                                                              \
  |  |  243|   136k|                 "This read fills a non-owning view (std::string_view, glz::raw_json_view, glz::text_view, or " \
  |  |  244|   136k|                 "a std::span) that would point into the streaming window. A streaming read refills that "      \
  |  |  245|   136k|                 "window as it goes, so the view would address overwritten bytes by the time the read "         \
  |  |  246|   136k|                 "returns, and the read would report success while handing back silently wrong data. Read "     \
  |  |  247|   136k|                 "into the owning equivalent instead (std::string, glz::raw_json, glz::text, or an owning "     \
  |  |  248|   136k|                 "container), or read from a buffer that holds the whole document.")
  ------------------
 1631|   136k|            }
 1632|   136k|            using value_type = typename std::decay_t<T>::value_type;
 1633|       |            if constexpr (std::same_as<value_type, char8_t>) {
 1634|       |               value = {reinterpret_cast<const char8_t*>(start), size_t(it - start)};
 1635|       |            }
 1636|   136k|            else {
 1637|   136k|               value = {start, size_t(it - start)};
 1638|   136k|            }
 1639|       |         }
 1640|       |         else if constexpr (char_array_t<T>) {
 1641|       |            const size_t n = it - start;
 1642|       |            if ((n + 1) > sizeof(value)) {
 1643|       |               ctx.error = error_code::unexpected_end;
 1644|       |               return;
 1645|       |            }
 1646|       |            std::memcpy(value, start, n);
 1647|       |            value[n] = '\0';
 1648|       |         }
 1649|       |         else if constexpr (array_char_t<T>) {
 1650|       |            const size_t n = it - start;
 1651|       |            if ((n + 1) > value.size()) {
 1652|       |               ctx.error = error_code::unexpected_end;
 1653|       |               return;
 1654|       |            }
 1655|       |            std::memcpy(value.data(), start, n);
 1656|       |            value[n] = '\0';
 1657|       |         }
 1658|       |         else if constexpr (static_string_t<T>) {
 1659|       |            const size_t n = it - start;
 1660|       |            if (n > value.capacity()) {
 1661|       |               ctx.error = error_code::unexpected_end;
 1662|       |               return;
 1663|       |            }
 1664|       |            value.assign(start, n);
 1665|       |         }
 1666|   136k|         ++it; // skip closing quote
 1667|   136k|         if constexpr (not Opts.null_terminated) {
 1668|   136k|            if (it == end) {
  ------------------
  |  Branch (1668:17): [True: 8, False: 136k]
  ------------------
 1669|      8|               ctx.error = error_code::end_reached;
 1670|      8|               return;
 1671|      8|            }
 1672|   136k|         }
 1673|   136k|      }
_ZN3glz24decode_index_unknown_keyITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS3_TkNS_10is_contextERNS_7contextERPKcS8_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT2_OT3_T4_:
  177|  8.35k|   {
  178|  8.35k|      if constexpr (Opts.error_on_unknown_keys) {
  179|  8.35k|         ctx.error = error_code::unknown_key;
  180|       |      }
  181|       |      else {
  182|       |         auto* start = it;
  183|       |         uint64_t ascii_acc{};
  184|       |         skip_string_view(ctx, it, end, ascii_acc);
  185|       |         if (bool(ctx.error)) [[unlikely]]
  186|       |            return;
  187|       |         if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
  188|       |            return;
  189|       |         const sv key = {start, size_t(it - start)};
  190|       |         ++it;
  191|       |         if constexpr (not Opts.null_terminated) {
  192|       |            if (it == end) [[unlikely]] {
  193|       |               ctx.error = error_code::unexpected_end;
  194|       |               return;
  195|       |            }
  196|       |         }
  197|       |
  198|       |         if (parse_ws_colon<Opts>(ctx, it, end)) {
  199|       |            return;
  200|       |         }
  201|       |
  202|       |         parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  203|       |      }
  204|  8.35k|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm1EEEDav:
  490|  66.4k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|  66.4k|   {
  313|  66.4k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|  66.4k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|  66.4k|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|  66.4k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 65.7k, False: 656]
  |  Branch (321:52): [True: 64.8k, False: 894]
  ------------------
  322|  64.8k|         it += Length;
  323|  64.8k|         if constexpr (not Opts.null_terminated) {
  324|  64.8k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 64.8k]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|  64.8k|         }
  329|       |
  330|  64.8k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 64.8k]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|  64.8k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 0, False: 64.8k]
  ------------------
  334|      0|            return;
  335|      0|         }
  336|  64.8k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 64.8k]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|  64.8k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|  64.8k|      }
  343|  1.55k|      else [[unlikely]] {
  344|  1.55k|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|  1.55k|      }
  346|  66.4k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEENS_3rpc18request_envelope_tELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|  64.8k|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|  64.8k|      else {
  274|  64.8k|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|  64.8k|         else if constexpr (glaze_object_t<T>) {
  294|  64.8k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|  64.8k|                                                                       ctx, it, end);
  296|       |         }
  297|       |         else {
  298|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|       |                                                                       it, end);
  300|       |         }
  301|  64.8k|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|  64.8k|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm2EEEDav:
  490|  46.9k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm2ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|  46.9k|   {
  313|  46.9k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|  46.9k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|  46.9k|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|  46.9k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 46.7k, False: 280]
  |  Branch (321:52): [True: 46.3k, False: 314]
  ------------------
  322|  46.3k|         it += Length;
  323|  46.3k|         if constexpr (not Opts.null_terminated) {
  324|  46.3k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 46.3k]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|  46.3k|         }
  329|       |
  330|  46.3k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 0, False: 46.3k]
  ------------------
  331|      0|            return;
  332|      0|         }
  333|  46.3k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 0, False: 46.3k]
  ------------------
  334|      0|            return;
  335|      0|         }
  336|  46.3k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 0, False: 46.3k]
  ------------------
  337|      0|            return;
  338|      0|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|  46.3k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|  46.3k|      }
  343|    594|      else [[unlikely]] {
  344|    594|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|    594|      }
  346|  46.9k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEENS_3rpc18request_envelope_tELm2ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|  46.3k|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|  46.3k|      else {
  274|  46.3k|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|  46.3k|         else if constexpr (glaze_object_t<T>) {
  294|  46.3k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|  46.3k|                                                                       ctx, it, end);
  296|       |         }
  297|       |         else {
  298|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|       |                                                                       it, end);
  300|       |         }
  301|  46.3k|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|  46.3k|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm3EEEDav:
  490|  84.1k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm3ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  312|  84.1k|   {
  313|  84.1k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  314|  84.1k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  315|  84.1k|      static constexpr auto Length = KeyWithEndQuote.size();
  316|       |
  317|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  318|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  319|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  320|       |      // `end` does not read as room.
  321|  84.1k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (321:11): [True: 83.9k, False: 203]
  |  Branch (321:52): [True: 79.6k, False: 4.30k]
  ------------------
  322|  79.6k|         it += Length;
  323|  79.6k|         if constexpr (not Opts.null_terminated) {
  324|  79.6k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (324:17): [True: 0, False: 79.6k]
  ------------------
  325|      0|               ctx.error = error_code::unexpected_end;
  326|      0|               return;
  327|      0|            }
  328|  79.6k|         }
  329|       |
  330|  79.6k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (330:14): [True: 3, False: 79.6k]
  ------------------
  331|      3|            return;
  332|      3|         }
  333|  79.6k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (333:14): [True: 845, False: 78.7k]
  ------------------
  334|    845|            return;
  335|    845|         }
  336|  78.7k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (336:14): [True: 2, False: 78.7k]
  ------------------
  337|      2|            return;
  338|      2|         }
  339|       |
  340|       |         // The hash path has already consumed the whitespace before the value
  341|  78.7k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  342|  78.7k|      }
  343|  4.50k|      else [[unlikely]] {
  344|  4.50k|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  345|  4.50k|      }
  346|  84.1k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEENS_3rpc18request_envelope_tELm3ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  246|  78.7k|   {
  247|       |      // Check for null value skipping on read
  248|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  249|       |         if (*it == 'n') {
  250|       |            ++it;
  251|       |            if constexpr (not Opts.null_terminated) {
  252|       |               if (it == end) [[unlikely]] {
  253|       |                  ctx.error = error_code::unexpected_end;
  254|       |                  return;
  255|       |               }
  256|       |            }
  257|       |            match<"ull", Opts>(ctx, it, end);
  258|       |            if (bool(ctx.error)) [[unlikely]]
  259|       |               return;
  260|       |            // Successfully matched "null", skip it
  261|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  262|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  263|       |            }
  264|       |            return;
  265|       |         }
  266|       |      }
  267|       |
  268|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  269|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  270|       |         if (bool(ctx.error)) [[unlikely]]
  271|       |            return; // Propagate error from skip_value
  272|       |      }
  273|  78.7k|      else {
  274|  78.7k|         using V = refl_t<T, I>;
  275|       |
  276|       |         if constexpr (const_value_v<V>) {
  277|       |            if constexpr (check_error_on_const_read(Opts)) {
  278|       |               ctx.error = error_code::attempt_const_read;
  279|       |            }
  280|       |            else {
  281|       |               // do not read anything into the const value
  282|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  283|       |            }
  284|       |         }
  285|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  286|       |            // Function pointers cannot be deserialized from JSON.
  287|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  288|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  289|       |            // When write_function_pointers is off the key is never written, so this branch
  290|       |            // is unreachable in that case.
  291|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  292|       |         }
  293|  78.7k|         else if constexpr (glaze_object_t<T>) {
  294|  78.7k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  295|  78.7k|                                                                       ctx, it, end);
  296|       |         }
  297|       |         else {
  298|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  299|       |                                                                       it, end);
  300|       |         }
  301|  78.7k|      }
  302|       |
  303|       |      // The key was present and handled, even when the value itself was skipped
  304|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  305|       |         ((selected_index = I), ...);
  306|       |      }
  307|  78.7k|   }
_ZN3glz4fromILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
 3860|  78.7k|      {
 3861|       |         if constexpr (tagging == variant_tagging_kind::adjacent) {
 3862|       |            read_adjacent<Options>(value, ctx, it, end);
 3863|       |         }
 3864|  78.7k|         else {
 3865|  78.7k|            read_deduced<Options>(value, ctx, it, end);
 3866|  78.7k|         }
 3867|  78.7k|      }
_ZN3glz4fromILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE12read_deducedITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
 3871|  78.7k|      {
 3872|  78.7k|         constexpr auto Opts = ws_handled_off<Options>();
 3873|  78.7k|         if constexpr (variant_is_auto_deducible<T>()) {
 3874|       |            if constexpr (not check_ws_handled(Options)) {
 3875|       |               if (skip_ws<Opts>(ctx, it, end)) {
 3876|       |                  return;
 3877|       |               }
 3878|       |            }
 3879|       |
 3880|  78.7k|            switch (*it) {
 3881|    242|            case '\0':
  ------------------
  |  Branch (3881:13): [True: 242, False: 78.5k]
  ------------------
 3882|    242|               ctx.error = error_code::unexpected_end;
 3883|    242|               return;
 3884|  5.04k|            case '{': {
  ------------------
  |  Branch (3884:13): [True: 5.04k, False: 73.7k]
  ------------------
 3885|       |               // This branch consumes the brace itself and hands the object to a reader with
 3886|       |               // `opening_handled`, which therefore does not count the level -- but does release it at
 3887|       |               // the closing brace. So the level is taken here, in both buffer modes, and paid back by
 3888|       |               // the reader below.
 3889|  5.04k|               if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (3889:20): [True: 0, False: 5.04k]
  ------------------
 3890|      0|                  return;
 3891|      0|               }
 3892|       |
 3893|  5.04k|               ++it;
 3894|  5.04k|               if constexpr (not Opts.null_terminated) {
 3895|  5.04k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3895:23): [True: 1, False: 5.04k]
  ------------------
 3896|      1|                     ctx.error = error_code::unexpected_end;
 3897|      1|                     return;
 3898|      1|                  }
 3899|  5.04k|               }
 3900|  5.04k|               using type_counts = variant_type_count<T>;
 3901|  5.04k|               constexpr auto n_object_candidates = variant_object_candidate_count_v<Opts, T>;
 3902|  5.04k|               if constexpr (n_object_candidates < 1) {
 3903|  5.04k|                  ctx.error = error_code::no_matching_variant_type;
 3904|  5.04k|                  return;
 3905|       |               }
 3906|       |               else if constexpr (n_object_candidates == 1 && tag_v<T>.empty()) {
 3907|       |                  constexpr auto first_idx = variant_first_object_candidate_v<Opts, T>;
 3908|       |                  using V = std::variant_alternative_t<first_idx, T>;
 3909|       |                  if (!std::holds_alternative<V>(value)) value = V{};
 3910|       |                  parse<JSON>::op<opening_handled<Opts>()>(std::get<V>(value), ctx, it, end);
 3911|       |                  return;
 3912|       |               }
 3913|       |               else {
 3914|       |                  auto possible_types = bit_array<std::variant_size_v<T>>{}.flip();
 3915|       |                  static constexpr auto& deduction_bits = variant_deduction_bits<T>;
 3916|       |                  static constexpr size_t deduction_key_count = variant_deduction_key_count<T>;
 3917|       |                  static constexpr auto tag_literal = string_literal_from_view<tag_v<T>.size()>(tag_v<T>);
 3918|       |
 3919|       |                  // Track if we've encountered a tag and what value it had
 3920|       |                  std::optional<size_t> tag_specified_index{};
 3921|       |
 3922|       |                  if (skip_ws<Opts>(ctx, it, end)) {
 3923|       |                     return;
 3924|       |                  }
 3925|       |                  // Once the reader knows which alternative this object holds it may have to read
 3926|       |                  // it again from here. Anchor the position rather than keep the pointer: the scan
 3927|       |                  // below skips values, and a streaming skip refills, which moves the window out
 3928|       |                  // from under a raw pointer (see rewind_anchor).
 3929|       |                  auto start = make_rewind_anchor(ctx, it);
 3930|       |                  bool first_key = true;
 3931|       |                  // Parse bifurcation for tagged variants:
 3932|       |                  //
 3933|       |                  // Without this optimization, tagged variant parsing always uses two passes:
 3934|       |                  //   1. Scan all keys to find the tag (e.g. "type"), skipping values
 3935|       |                  //   2. Reset `it = start` and re-parse the entire object into the resolved type
 3936|       |                  //
 3937|       |                  // When the tag is the first key, the second pass redundantly re-reads every
 3938|       |                  // field that follows it. This lambda avoids that: if the tag was the first key,
 3939|       |                  // it advances past the trailing comma so the object parser picks up at the
 3940|       |                  // second field. If the tag was found later, it falls back to the full re-parse.
 3941|       |                  //
 3942|       |                  // One exception: if the tag name is also a field on the resolved struct
 3943|       |                  // (contains_tag), we must re-parse regardless so the value is stored in
 3944|       |                  // the struct field. This override is applied inside each std::visit lambda.
 3945|       |                  //
 3946|       |                  // Either way the rewind can fail under a streaming read: the window only holds so
 3947|       |                  // much, and an object wider than it has no start left to return to.
 3948|       |                  auto position_after_tag = [&] {
 3949|       |                     if (first_key) {
 3950|       |                        if (*it == ',') ++it; // skip comma; handles tag-only objects where *it == '}'
 3951|       |                        return true;
 3952|       |                     }
 3953|       |                     return start.rewind(ctx, it, end); // tag came later, re-parse from the beginning
 3954|       |                  };
 3955|       |                  // `first_key` also answers "were we reset to the object start", which is what
 3956|       |                  // position_after_tag does for every key but the first.
 3957|       |                  for (; *it != '}'; first_key = false) {
 3958|       |                     if (!first_key) {
 3959|       |                        if (match_invalid_end<',', Opts>(ctx, it, end)) {
 3960|       |                           return;
 3961|       |                        }
 3962|       |                     }
 3963|       |
 3964|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3965|       |                        return;
 3966|       |                     }
 3967|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3968|       |                        return;
 3969|       |                     }
 3970|       |
 3971|       |                     auto* key_start = it;
 3972|       |                     skip_string_view(ctx, it, end);
 3973|       |                     if (bool(ctx.error)) [[unlikely]]
 3974|       |                        return;
 3975|       |                     if (validate_utf8_span<Opts>(ctx, key_start, it)) [[unlikely]]
 3976|       |                        return;
 3977|       |                     const sv key = {key_start, size_t(it - key_start)};
 3978|       |
 3979|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3980|       |                        return;
 3981|       |                     }
 3982|       |
 3983|       |                     if constexpr (deduction_key_count > 0) {
 3984|       |                        // We first check if a tag is defined and see if the key matches the tag
 3985|       |                        if constexpr (not tag_v<T>.empty()) {
 3986|       |                           if (key == tag_v<T>) {
 3987|       |                              if (parse_ws_colon<Opts>(ctx, it, end)) {
 3988|       |                                 return;
 3989|       |                              }
 3990|       |
 3991|       |                              using id_type = std::decay_t<decltype(ids_v<T>[0])>;
 3992|       |
 3993|       |                              std::conditional_t<std::integral<id_type>, id_type, sv> type_id{};
 3994|       |                              if constexpr (std::integral<id_type>) {
 3995|       |                                 from<JSON, id_type>::template op<ws_handled<Opts>()>(type_id, ctx, it, end);
 3996|       |                              }
 3997|       |                              else {
 3998|       |                                 // The id is turned into an index below and never leaves this
 3999|       |                                 // reader, so the view of the window it borrows cannot outlive it.
 4000|       |                                 parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4001|       |                              }
 4002|       |                              if (bool(ctx.error)) [[unlikely]]
 4003|       |                                 return;
 4004|       |                              if (skip_ws<Opts>(ctx, it, end)) {
 4005|       |                                 return;
 4006|       |                              }
 4007|       |                              if (!(*it == ',' || *it == '}')) [[unlikely]] {
 4008|       |                                 ctx.error = error_code::syntax_error;
 4009|       |                                 return;
 4010|       |                              }
 4011|       |
 4012|       |                              size_t type_index;
 4013|       |                              if constexpr (std::integral<id_type>) {
 4014|       |                                 type_index = variant_id_to_index<T>::op(type_id);
 4015|       |                              }
 4016|       |                              else {
 4017|       |                                 type_index = variant_id_to_index<T>::op(
 4018|       |                                    type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4019|       |                              }
 4020|       |                              if (type_index < ids_v<T>.size()) [[likely]] {
 4021|       |                                 // Check if the deduced types include the tag-specified type
 4022|       |                                 // If not, the tag doesn't match the fields
 4023|       |                                 // We're already inside if constexpr (deduction_registry.size()), so we know deduction
 4024|       |                                 // is happening. At this point, possible_types has been narrowed by field deduction.
 4025|       |                                 // Check if the tag-specified type is still possible
 4026|       |                                 const bool type_is_possible = possible_types[type_index];
 4027|       |                                 if (!type_is_possible) {
 4028|       |                                    // Tag specifies a type that doesn't match the fields seen so far
 4029|       |                                    ctx.error = error_code::no_matching_variant_type;
 4030|       |                                    return;
 4031|       |                                 }
 4032|       |
 4033|       |                                 if (!position_after_tag()) return;
 4034|       |                                 tag_specified_index = type_index; // Store the tag-specified type
 4035|       |                                 if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4036|       |                                 std::visit(
 4037|       |                                    [&](auto&& v) {
 4038|       |                                       using V = std::decay_t<decltype(v)>;
 4039|       |                                       constexpr bool is_object =
 4040|       |                                          (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4041|       |                                       if constexpr (variant_unit_alternative<V>) {
 4042|       |                                          // A unit alternative carries no data; its object holds only the
 4043|       |                                          // discriminator. Consume that body through an empty reflected object so
 4044|       |                                          // unknown-key policy and terminator handling match every other alternative.
 4045|       |                                          detail::variant_unit_body unit_body{};
 4046|       |                                          from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4047|       |                                                                                             tag_literal>(unit_body,
 4048|       |                                                                                                          ctx, it, end);
 4049|       |                                       }
 4050|       |                                       else if constexpr (is_object) {
 4051|       |                                          if constexpr (contains_tag<V, tag_literal>()) {
 4052|       |                                             // tag is a struct field, must re-parse
 4053|       |                                             if (!start.rewind(ctx, it, end)) return;
 4054|       |                                          }
 4055|       |                                          from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it,
 4056|       |                                                                                                           end);
 4057|       |                                       }
 4058|       |                                       else if constexpr (is_memory_object<V>) {
 4059|       |                                          if (!v) {
 4060|       |                                             if constexpr (is_specialization_v<V, std::optional>) {
 4061|       |                                                if constexpr (requires { v.emplace(); }) {
 4062|       |                                                   v.emplace();
 4063|       |                                                }
 4064|       |                                                else {
 4065|       |                                                   v = typename V::value_type{};
 4066|       |                                                }
 4067|       |                                             }
 4068|       |                                             else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4069|       |                                                v = std::make_unique<typename V::element_type>();
 4070|       |                                             else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4071|       |                                                v = std::make_shared<typename V::element_type>();
 4072|       |                                             else if constexpr (constructible<V>) {
 4073|       |                                                v = meta_construct_v<V>();
 4074|       |                                             }
 4075|       |                                             else if constexpr (std::is_pointer_v<V> &&
 4076|       |                                                                can_allocate_raw_pointer<Opts,
 4077|       |                                                                                         std::decay_t<decltype(ctx)>>) {
 4078|       |                                                if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4079|       |                                                   return;
 4080|       |                                                }
 4081|       |                                             }
 4082|       |                                             else {
 4083|       |                                                ctx.error = error_code::invalid_nullable_read;
 4084|       |                                                return;
 4085|       |                                                // Cannot read into unset nullable that is not std::optional,
 4086|       |                                                // std::unique_ptr, or std::shared_ptr
 4087|       |                                             }
 4088|       |                                          }
 4089|       |                                          if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4090|       |                                             // tag is a struct field, must re-parse
 4091|       |                                             if (!start.rewind(ctx, it, end)) return;
 4092|       |                                          }
 4093|       |                                          from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4094|       |                                             *v, ctx, it, end);
 4095|       |                                       }
 4096|       |                                       else if constexpr (custom_read<V>) {
 4097|       |                                          // Custom handlers parse the remaining body themselves and do not
 4098|       |                                          // accept the tag template parameter; the tag was already consumed.
 4099|       |                                          // This only works when the tag was the first key. If it came later,
 4100|       |                                          // we were reset to the object start and the custom handler would
 4101|       |                                          // absorb the tag, so error rather than corrupt the value.
 4102|       |                                          if (!first_key) {
 4103|       |                                             ctx.error = error_code::feature_not_supported;
 4104|       |                                             ctx.custom_error_message =
 4105|       |                                                "the tag must be the first key for a custom variant alternative";
 4106|       |                                             return;
 4107|       |                                          }
 4108|       |                                          from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4109|       |                                       }
 4110|       |                                    },
 4111|       |                                    value);
 4112|       |
 4113|       |                                 return; // we've decoded our target type
 4114|       |                              }
 4115|       |                              else [[unlikely]] {
 4116|       |                                 // Check if we have a default type (ids array shorter than variant)
 4117|       |                                 constexpr auto ids_size = ids_v<T>.size();
 4118|       |                                 constexpr auto variant_size = std::variant_size_v<T>;
 4119|       |                                 if constexpr (ids_size < variant_size) {
 4120|       |                                    // Use the first unlabeled type as the default
 4121|       |                                    const auto default_type_index = ids_size;
 4122|       |
 4123|       |                                    if (!position_after_tag()) return;
 4124|       |                                    tag_specified_index = default_type_index; // Store the default type index
 4125|       |                                    if (value.index() != default_type_index)
 4126|       |                                       emplace_runtime_variant(value, default_type_index);
 4127|       |                                    std::visit(
 4128|       |                                       [&](auto&& v) {
 4129|       |                                          using V = std::decay_t<decltype(v)>;
 4130|       |                                          constexpr bool is_object =
 4131|       |                                             (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4132|       |                                          if constexpr (variant_unit_alternative<V>) {
 4133|       |                                             // A unit alternative carries no data; its object holds only the
 4134|       |                                             // discriminator. Consume that body through an empty reflected object so
 4135|       |                                             // unknown-key policy and terminator handling match every other
 4136|       |                                             // alternative.
 4137|       |                                             detail::variant_unit_body unit_body{};
 4138|       |                                             from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4139|       |                                                                                                tag_literal>(
 4140|       |                                                unit_body, ctx, it, end);
 4141|       |                                          }
 4142|       |                                          else if constexpr (is_object) {
 4143|       |                                             if constexpr (contains_tag<V, tag_literal>()) {
 4144|       |                                                // tag is a struct field, must re-parse
 4145|       |                                                if (!start.rewind(ctx, it, end)) return;
 4146|       |                                             }
 4147|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4148|       |                                          }
 4149|       |                                          else if constexpr (is_memory_object<V>) {
 4150|       |                                             if (!v) {
 4151|       |                                                if constexpr (is_specialization_v<V, std::optional>) {
 4152|       |                                                   if constexpr (requires { v.emplace(); }) {
 4153|       |                                                      v.emplace();
 4154|       |                                                   }
 4155|       |                                                   else {
 4156|       |                                                      v = typename V::value_type{};
 4157|       |                                                   }
 4158|       |                                                }
 4159|       |                                                else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4160|       |                                                   v = std::make_unique<typename V::element_type>();
 4161|       |                                                else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4162|       |                                                   v = std::make_shared<typename V::element_type>();
 4163|       |                                                else if constexpr (constructible<V>) {
 4164|       |                                                   v = meta_construct_v<V>();
 4165|       |                                                }
 4166|       |                                                else if constexpr (std::is_pointer_v<V> &&
 4167|       |                                                                   can_allocate_raw_pointer<
 4168|       |                                                                      Opts, std::decay_t<decltype(ctx)>>) {
 4169|       |                                                   if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4170|       |                                                      return;
 4171|       |                                                   }
 4172|       |                                                }
 4173|       |                                                else {
 4174|       |                                                   ctx.error = error_code::invalid_nullable_read;
 4175|       |                                                   return;
 4176|       |                                                }
 4177|       |                                             }
 4178|       |                                             if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4179|       |                                                // tag is a struct field, must re-parse
 4180|       |                                                if (!start.rewind(ctx, it, end)) return;
 4181|       |                                             }
 4182|       |                                             from<JSON, memory_type<V>>::template op<opening_handled<Opts>()>(*v, ctx,
 4183|       |                                                                                                              it, end);
 4184|       |                                          }
 4185|       |                                          else if constexpr (custom_read<V>) {
 4186|       |                                             // Custom handlers parse the remaining body themselves; this only
 4187|       |                                             // works when the tag was the first key (see above). If it came
 4188|       |                                             // later we were reset to the object start, so error rather than
 4189|       |                                             // let the custom handler absorb the tag.
 4190|       |                                             if (!first_key) {
 4191|       |                                                ctx.error = error_code::feature_not_supported;
 4192|       |                                                ctx.custom_error_message =
 4193|       |                                                   "the tag must be the first key for a custom variant alternative";
 4194|       |                                                return;
 4195|       |                                             }
 4196|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4197|       |                                          }
 4198|       |                                       },
 4199|       |                                       value);
 4200|       |
 4201|       |                                    return;
 4202|       |                                 }
 4203|       |                                 else {
 4204|       |                                    ctx.error = error_code::no_matching_variant_type;
 4205|       |                                    ctx.custom_error_message = variant_ids_string_v<T>;
 4206|       |                                    return;
 4207|       |                                 }
 4208|       |                              }
 4209|       |                           }
 4210|       |                        }
 4211|       |
 4212|       |                        // Inline decode_hash lookup for variant deduction
 4213|       |                        using deduction_keys_t = keys_wrapper<variant_deduction_keys<T>>;
 4214|       |                        constexpr auto& DeductionHashInfo = hash_info<deduction_keys_t>;
 4215|       |                        const auto deduction_index =
 4216|       |                           decode_hash_with_size<JSON, deduction_keys_t, DeductionHashInfo, DeductionHashInfo.type>::op(
 4217|       |                              key.data(), key.data() + key.size(), key.size());
 4218|       |                        if (deduction_index < deduction_key_count && variant_deduction_keys<T>[deduction_index] == key)
 4219|       |                           [[likely]] {
 4220|       |                           possible_types &= deduction_bits[deduction_index];
 4221|       |                        }
 4222|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4223|       |                           ctx.error = error_code::unknown_key;
 4224|       |                           return;
 4225|       |                        }
 4226|       |                     }
 4227|       |                     else if constexpr (not tag_v<T>.empty()) {
 4228|       |                        // empty object case for variant, if there are no normal elements
 4229|       |                        if (key == tag_v<T>) {
 4230|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4231|       |                              return;
 4232|       |                           }
 4233|       |
 4234|       |                           // The id is turned into an index below and never leaves this reader,
 4235|       |                           // so the view of the window it borrows cannot outlive that window.
 4236|       |                           std::string_view type_id{};
 4237|       |                           parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4238|       |                           if (bool(ctx.error)) [[unlikely]]
 4239|       |                              return;
 4240|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4241|       |                              return;
 4242|       |                           }
 4243|       |
 4244|       |                           const auto type_index = variant_id_to_index<T>::op(
 4245|       |                              type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4246|       |                           if (type_index < ids_v<T>.size()) [[likely]] {
 4247|       |                              if (!position_after_tag()) return;
 4248|       |                              tag_specified_index = type_index; // Store the tag-specified type
 4249|       |                              if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4250|       |                           }
 4251|       |                           else {
 4252|       |                              // Check if we have a default type (ids array shorter than variant)
 4253|       |                              constexpr auto ids_size = ids_v<T>.size();
 4254|       |                              constexpr auto variant_size = std::variant_size_v<T>;
 4255|       |                              if constexpr (ids_size < variant_size) {
 4256|       |                                 // Use the first unlabeled type as the default
 4257|       |                                 if (!position_after_tag()) return;
 4258|       |                                 const auto default_index = ids_size;
 4259|       |                                 tag_specified_index = default_index; // Store the default type index
 4260|       |                                 if (value.index() != default_index) emplace_runtime_variant(value, default_index);
 4261|       |                              }
 4262|       |                              else {
 4263|       |                                 ctx.error = error_code::no_matching_variant_type;
 4264|       |                                 ctx.custom_error_message = variant_ids_string_v<T>;
 4265|       |                                 return;
 4266|       |                              }
 4267|       |                           }
 4268|       |                           // Parse the type (handles tag skipping and unknown keys)
 4269|       |                           std::visit(
 4270|       |                              [&](auto&& v) {
 4271|       |                                 using V = std::decay_t<decltype(v)>;
 4272|       |                                 if constexpr (custom_read<V>) {
 4273|       |                                    // Custom handlers parse the remaining object body themselves and do not
 4274|       |                                    // accept the tag template parameter that reflected objects use to skip an
 4275|       |                                    // interior tag key. That only works when the tag is the first key (it was
 4276|       |                                    // just consumed). If the tag came after other keys, position_after_tag()
 4277|       |                                    // reset us to the object start and the custom handler would absorb the tag
 4278|       |                                    // into its value, so error here rather than corrupt the result.
 4279|       |                                    if (!first_key) {
 4280|       |                                       ctx.error = error_code::feature_not_supported;
 4281|       |                                       ctx.custom_error_message =
 4282|       |                                          "the tag must be the first key for a custom variant alternative";
 4283|       |                                       return;
 4284|       |                                    }
 4285|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4286|       |                                 }
 4287|       |                                 else {
 4288|       |                                    if constexpr (contains_tag<V, tag_literal>()) {
 4289|       |                                       // tag is a struct field, must re-parse
 4290|       |                                       if (!start.rewind(ctx, it, end)) return;
 4291|       |                                    }
 4292|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4293|       |                                 }
 4294|       |                              },
 4295|       |                              value);
 4296|       |                           return;
 4297|       |                        }
 4298|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4299|       |                           ctx.error = error_code::unknown_key;
 4300|       |                           return;
 4301|       |                        }
 4302|       |                        else {
 4303|       |                           // Skip unknown key's value (non-tag key in empty variant)
 4304|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4305|       |                              return;
 4306|       |                           }
 4307|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 4308|       |                           if (bool(ctx.error)) [[unlikely]]
 4309|       |                              return;
 4310|       |                           resync_window_end(ctx, end); // a streaming skip refills
 4311|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4312|       |                              return;
 4313|       |                           }
 4314|       |                           continue; // Continue loop to find the tag
 4315|       |                        }
 4316|       |                     }
 4317|       |                     else if constexpr (Opts.error_on_unknown_keys) {
 4318|       |                        ctx.error = error_code::unknown_key;
 4319|       |                        return;
 4320|       |                     }
 4321|       |
 4322|       |                     auto matching_types = possible_types.popcount();
 4323|       |                     if (matching_types == 0) {
 4324|       |                        ctx.error = error_code::no_matching_variant_type;
 4325|       |                        return;
 4326|       |                     }
 4327|       |                     // Only short-circuit for variants without tags
 4328|       |                     else if constexpr (tag_v<T>.empty()) {
 4329|       |                        if (matching_types == 1) {
 4330|       |                           if (!start.rewind(ctx, it, end)) return;
 4331|       |                           const auto type_index = possible_types.countr_zero();
 4332|       |
 4333|       |                           if (value.index() != static_cast<size_t>(type_index))
 4334|       |                              emplace_runtime_variant(value, type_index);
 4335|       |                           std::visit(
 4336|       |                              [&](auto&& v) {
 4337|       |                                 using V = std::decay_t<decltype(v)>;
 4338|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4339|       |                                 if constexpr (variant_unit_alternative<V>) {
 4340|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4341|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4342|       |                                    // terminator handling match every other alternative.
 4343|       |                                    detail::variant_unit_body unit_body{};
 4344|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4345|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4346|       |                                                                                                    end);
 4347|       |                                 }
 4348|       |                                 else if constexpr (is_object) {
 4349|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4350|       |                                 }
 4351|       |                                 else if constexpr (is_memory_object<V>) {
 4352|       |                                    if (!v) {
 4353|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4354|       |                                          if constexpr (requires { v.emplace(); }) {
 4355|       |                                             v.emplace();
 4356|       |                                          }
 4357|       |                                          else {
 4358|       |                                             v = typename V::value_type{};
 4359|       |                                          }
 4360|       |                                       }
 4361|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4362|       |                                          v = std::make_unique<typename V::element_type>();
 4363|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4364|       |                                          v = std::make_shared<typename V::element_type>();
 4365|       |                                       else if constexpr (constructible<V>) {
 4366|       |                                          v = meta_construct_v<V>();
 4367|       |                                       }
 4368|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4369|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4370|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4371|       |                                             return;
 4372|       |                                          }
 4373|       |                                       }
 4374|       |                                       else {
 4375|       |                                          ctx.error = error_code::invalid_nullable_read;
 4376|       |                                          return;
 4377|       |                                          // Cannot read into unset nullable that is not std::optional,
 4378|       |                                          // std::unique_ptr, or std::shared_ptr
 4379|       |                                       }
 4380|       |                                    }
 4381|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4382|       |                                       *v, ctx, it, end);
 4383|       |                                 }
 4384|       |                                 else if constexpr (custom_read<V>) {
 4385|       |                                    // Custom handlers parse the remaining body themselves.
 4386|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4387|       |                                 }
 4388|       |                              },
 4389|       |                              value);
 4390|       |
 4391|       |                           return; // we've decoded our target type
 4392|       |                        }
 4393|       |                     }
 4394|       |                     // For tagged variants, continue processing to validate tags
 4395|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 4396|       |                        return;
 4397|       |                     }
 4398|       |
 4399|       |                     skip_value<JSON>::op<Opts>(ctx, it, end);
 4400|       |                     if (bool(ctx.error)) [[unlikely]]
 4401|       |                        return;
 4402|       |                     resync_window_end(ctx, end); // a streaming skip refills
 4403|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 4404|       |                        return;
 4405|       |                     }
 4406|       |                  }
 4407|       |                  // Only apply ambiguous variant resolution if we have multiple object types
 4408|       |                  if constexpr ((type_counts::n_object + type_counts::n_nullable_object) > 1) {
 4409|       |                     // After parsing all keys, check if we have multiple matching types
 4410|       |                     // If so, choose the one with the fewest fields
 4411|       |                     auto final_matching = possible_types.popcount();
 4412|       |                     if (final_matching == 0) {
 4413|       |                        ctx.error = error_code::no_matching_variant_type;
 4414|       |                     }
 4415|       |                     else if (final_matching == 1) {
 4416|       |                        // Single type remains after field deduction
 4417|       |                        const auto type_index = possible_types.countr_zero();
 4418|       |
 4419|       |                        // Validate against tag if one was specified
 4420|       |                        if (tag_specified_index.has_value() &&
 4421|       |                            tag_specified_index.value() != static_cast<size_t>(type_index)) {
 4422|       |                           ctx.error = error_code::no_matching_variant_type;
 4423|       |                           return;
 4424|       |                        }
 4425|       |
 4426|       |                        if (!start.rewind(ctx, it, end)) return;
 4427|       |                        if (value.index() != static_cast<size_t>(type_index))
 4428|       |                           emplace_runtime_variant(value, type_index);
 4429|       |                        std::visit(
 4430|       |                           [&](auto&& v) {
 4431|       |                              using V = std::decay_t<decltype(v)>;
 4432|       |                              constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4433|       |                              if constexpr (variant_unit_alternative<V>) {
 4434|       |                                 // A unit alternative carries no data; its object holds only the discriminator.
 4435|       |                                 // Consume that body through an empty reflected object so unknown-key policy and
 4436|       |                                 // terminator handling match every other alternative.
 4437|       |                                 detail::variant_unit_body unit_body{};
 4438|       |                                 from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4439|       |                                                                                    tag_literal>(unit_body, ctx, it,
 4440|       |                                                                                                 end);
 4441|       |                              }
 4442|       |                              else if constexpr (is_object) {
 4443|       |                                 from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4444|       |                              }
 4445|       |                              else if constexpr (is_memory_object<V>) {
 4446|       |                                 if (!v) {
 4447|       |                                    if constexpr (is_specialization_v<V, std::optional>) {
 4448|       |                                       if constexpr (requires { v.emplace(); }) {
 4449|       |                                          v.emplace();
 4450|       |                                       }
 4451|       |                                       else {
 4452|       |                                          v = typename V::value_type{};
 4453|       |                                       }
 4454|       |                                    }
 4455|       |                                    else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4456|       |                                       v = std::make_unique<typename V::element_type>();
 4457|       |                                    else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4458|       |                                       v = std::make_shared<typename V::element_type>();
 4459|       |                                    else if constexpr (constructible<V>) {
 4460|       |                                       v = meta_construct_v<V>();
 4461|       |                                    }
 4462|       |                                    else if constexpr (std::is_pointer_v<V> &&
 4463|       |                                                       can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4464|       |                                       if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4465|       |                                          return;
 4466|       |                                       }
 4467|       |                                    }
 4468|       |                                    else {
 4469|       |                                       ctx.error = error_code::invalid_nullable_read;
 4470|       |                                       return;
 4471|       |                                    }
 4472|       |                                 }
 4473|       |                                 from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(*v, ctx,
 4474|       |                                                                                                               it, end);
 4475|       |                              }
 4476|       |                              else if constexpr (custom_read<V>) {
 4477|       |                                 // Custom handlers parse the remaining body themselves.
 4478|       |                                 from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4479|       |                              }
 4480|       |                           },
 4481|       |                           value);
 4482|       |                     }
 4483|       |                     else if (final_matching > 1) {
 4484|       |                        constexpr auto N = std::variant_size_v<T>;
 4485|       |
 4486|       |                        // Compile-time array of field counts for each variant type
 4487|       |                        constexpr auto field_counts = []<size_t... I>(std::index_sequence<I...>) {
 4488|       |                           return std::array<size_t, N> {
 4489|       |                              ([]<size_t J = I>() -> size_t {
 4490|       |                                 using V = std::decay_t<std::variant_alternative_t<J, T>>;
 4491|       |                                 if constexpr (glaze_object_t<V> || reflectable<V>) {
 4492|       |                                    return reflect<V>::size;
 4493|       |                                 }
 4494|       |                                 else if constexpr (is_memory_object<V>) {
 4495|       |                                    using X = memory_type<V>;
 4496|       |                                    if constexpr (glaze_object_t<X> || reflectable<X>) {
 4497|       |                                       return reflect<X>::size;
 4498|       |                                    }
 4499|       |                                    else {
 4500|       |                                       return (std::numeric_limits<size_t>::max)();
 4501|       |                                    }
 4502|       |                                 }
 4503|       |                                 else {
 4504|       |                                    return (std::numeric_limits<size_t>::max)();
 4505|       |                                 }
 4506|       |                              }.template operator()<I>())...
 4507|       |                           };
 4508|       |                        }(std::make_index_sequence<N>{});
 4509|       |
 4510|       |                        // Find the type with minimum field count among the possible types
 4511|       |                        size_t min_fields = (std::numeric_limits<size_t>::max)();
 4512|       |                        size_t chosen_index = N; // Invalid index initially
 4513|       |
 4514|       |                        for (size_t i = 0; i < N; ++i) {
 4515|       |                           if (possible_types[i] && field_counts[i] < min_fields) {
 4516|       |                              min_fields = field_counts[i];
 4517|       |                              chosen_index = i;
 4518|       |                           }
 4519|       |                        }
 4520|       |
 4521|       |                        if (chosen_index < N) {
 4522|       |                           // Validate against tag if one was specified
 4523|       |                           if (tag_specified_index.has_value() && tag_specified_index.value() != chosen_index) {
 4524|       |                              ctx.error = error_code::no_matching_variant_type;
 4525|       |                              return;
 4526|       |                           }
 4527|       |
 4528|       |                           if (!start.rewind(ctx, it, end)) return;
 4529|       |                           if (value.index() != chosen_index) emplace_runtime_variant(value, chosen_index);
 4530|       |                           std::visit(
 4531|       |                              [&](auto&& v) {
 4532|       |                                 using V = std::decay_t<decltype(v)>;
 4533|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4534|       |                                 if constexpr (variant_unit_alternative<V>) {
 4535|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4536|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4537|       |                                    // terminator handling match every other alternative.
 4538|       |                                    detail::variant_unit_body unit_body{};
 4539|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4540|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4541|       |                                                                                                    end);
 4542|       |                                 }
 4543|       |                                 else if constexpr (is_object) {
 4544|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4545|       |                                 }
 4546|       |                                 else if constexpr (is_memory_object<V>) {
 4547|       |                                    if (!v) {
 4548|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4549|       |                                          if constexpr (requires { v.emplace(); }) {
 4550|       |                                             v.emplace();
 4551|       |                                          }
 4552|       |                                          else {
 4553|       |                                             v = typename V::value_type{};
 4554|       |                                          }
 4555|       |                                       }
 4556|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4557|       |                                          v = std::make_unique<typename V::element_type>();
 4558|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4559|       |                                          v = std::make_shared<typename V::element_type>();
 4560|       |                                       else if constexpr (constructible<V>) {
 4561|       |                                          v = meta_construct_v<V>();
 4562|       |                                       }
 4563|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4564|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4565|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4566|       |                                             return;
 4567|       |                                          }
 4568|       |                                       }
 4569|       |                                       else {
 4570|       |                                          ctx.error = error_code::invalid_nullable_read;
 4571|       |                                          return;
 4572|       |                                       }
 4573|       |                                    }
 4574|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4575|       |                                       *v, ctx, it, end);
 4576|       |                                 }
 4577|       |                                 else if constexpr (custom_read<V>) {
 4578|       |                                    // Custom handlers parse the remaining body themselves.
 4579|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4580|       |                                 }
 4581|       |                              },
 4582|       |                              value);
 4583|       |                        }
 4584|       |                        else {
 4585|       |                           ctx.error = error_code::no_matching_variant_type;
 4586|       |                        }
 4587|       |                     }
 4588|       |                  }
 4589|       |                  else {
 4590|       |                     // For variants with 0 or 1 object types, use the original error handling
 4591|       |                     ctx.error = error_code::no_matching_variant_type;
 4592|       |                  }
 4593|       |               }
 4594|      0|               break;
 4595|  5.04k|            }
 4596|  3.79k|            case '[':
  ------------------
  |  Branch (4596:13): [True: 3.79k, False: 74.9k]
  ------------------
 4597|       |               // As with '{' above: the array reader each alternative goes through counts the level.
 4598|  3.79k|               process_variant_alternatives<T, is_variant_array>::template op<Opts>(value, ctx, it, end);
 4599|  3.79k|               break;
 4600|  4.98k|            case '"': {
  ------------------
  |  Branch (4600:13): [True: 4.98k, False: 73.7k]
  ------------------
 4601|  4.98k|               process_variant_alternatives<T, is_variant_str>::template op<Opts>(value, ctx, it, end);
 4602|  4.98k|               break;
 4603|  5.04k|            }
 4604|    547|            case 't':
  ------------------
  |  Branch (4604:13): [True: 547, False: 78.2k]
  ------------------
 4605|  1.06k|            case 'f': {
  ------------------
  |  Branch (4605:13): [True: 520, False: 78.2k]
  ------------------
 4606|  1.06k|               process_variant_alternatives<T, is_variant_bool>::template op<Opts>(value, ctx, it, end);
 4607|  1.06k|               break;
 4608|    547|            }
 4609|  1.20k|            case 'n':
  ------------------
  |  Branch (4609:13): [True: 1.20k, False: 77.5k]
  ------------------
 4610|       |               if constexpr (variant_count_v<T, is_variant_null> == 0) {
 4611|       |                  ctx.error = error_code::no_matching_variant_type;
 4612|       |               }
 4613|  1.20k|               else {
 4614|  1.20k|                  constexpr auto first_idx = variant_first_index_v<T, is_variant_null>;
 4615|  1.20k|                  using V = std::variant_alternative_t<first_idx, T>;
 4616|  1.20k|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (4616:23): [True: 194, False: 1.01k]
  ------------------
 4617|  1.20k|                  match<"null", Opts>(ctx, it, end);
 4618|  1.20k|               }
 4619|  1.20k|               break;
 4620|  62.4k|            default: {
  ------------------
  |  Branch (4620:13): [True: 62.4k, False: 16.3k]
  ------------------
 4621|       |               // Not bool, string, object, or array so must be number or null
 4622|  62.4k|               process_variant_alternatives<T, is_variant_num>::template op<Opts>(value, ctx, it, end);
 4623|  62.4k|            }
 4624|  78.7k|            }
 4625|       |         }
 4626|       |         else {
 4627|       |            // For non-auto-deducible variants, try each type until one succeeds
 4628|       |            constexpr auto N = std::variant_size_v<T>;
 4629|       |            bool parsed = false;
 4630|       |            bool exhausted = false; // speculation budget spent; see charge_speculation
 4631|       |
 4632|       |            for_each<N>([&]<size_t I>() {
 4633|       |               if (parsed || exhausted || variant_alternative_exhausted(ctx)) return;
 4634|       |
 4635|       |               auto copy_it = it;
 4636|       |               // A rejected alternative may have bailed out inside a container, which leaves its
 4637|       |               // nesting level counted (see enter_depth), so the depth rewinds with the iterator.
 4638|       |               const auto copy_depth = ctx.depth;
 4639|       |
 4640|       |               // Try parsing as this type
 4641|       |               if (value.index() != I) {
 4642|       |                  emplace_runtime_variant(value, I);
 4643|       |               }
 4644|       |
 4645|       |               std::visit([&](auto&& v) { parse<JSON>::op<Options>(v, ctx, it, end); }, value);
 4646|       |               if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 4647|       |                  exhausted = true; // only rejected attempts are charged; see charge_speculation
 4648|       |               }
 4649|       |
 4650|       |               if (!bool(ctx.error)) {
 4651|       |                  parsed = true;
 4652|       |               }
 4653|       |               else if constexpr (not Options.null_terminated) {
 4654|       |                  // In non-null-terminated mode, if we hit end_reached after advancing the iterator,
 4655|       |                  // it means we successfully parsed the value but couldn't skip trailing whitespace
 4656|       |                  if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 4657|       |                     // We advanced the iterator, so we did parse something -- unless what advanced it
 4658|       |                     // was an abandoned attempt, which is what a spent speculation budget means.
 4659|       |                     parsed = true;
 4660|       |                     ctx.error = error_code::none;
 4661|       |                  }
 4662|       |                  else {
 4663|       |                     // Reset for next attempt (unless this is the last type)
 4664|       |                     it = copy_it;
 4665|       |                     rewind_depth<Options>(ctx, copy_depth);
 4666|       |                     if constexpr (I + 1 < N) {
 4667|       |                        if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4668|       |                           ctx.error = error_code::none; // Clear error for next attempt
 4669|       |                        }
 4670|       |                     }
 4671|       |                  }
 4672|       |               }
 4673|       |               else {
 4674|       |                  // Reset for next attempt (unless this is the last type)
 4675|       |                  it = copy_it;
 4676|       |                  rewind_depth<Options>(ctx, copy_depth);
 4677|       |                  if constexpr (I + 1 < N) {
 4678|       |                     if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4679|       |                        ctx.error = error_code::none; // Clear error for next attempt
 4680|       |                     }
 4681|       |                  }
 4682|       |               }
 4683|       |            });
 4684|       |         }
 4685|  78.7k|      }
_ZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_:
 3520|  6.57k|      {
 3521|  6.57k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3522|       |
 3523|  6.57k|         if constexpr (category_count == 0) {
 3524|  6.57k|            ctx.error = error_code::no_matching_variant_type;
 3525|       |         }
 3526|       |         else {
 3527|       |            constexpr auto N = std::variant_size_v<Variant>;
 3528|       |            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3529|       |            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3530|       |
 3531|       |            bool found_match{};
 3532|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3533|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3534|       |            // so the budget stops it and the failure already in hand is reported.
 3535|       |            bool exhausted{};
 3536|       |
 3537|       |            // First pass: const glaze types in this category
 3538|       |            if constexpr (const_count > 0) {
 3539|       |               for_each<N>([&]<size_t I>() {
 3540|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3541|       |                     return;
 3542|       |                  }
 3543|       |                  using V = std::variant_alternative_t<I, Variant>;
 3544|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3545|       |                     // run time substitute to compare to const value
 3546|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3547|       |                     auto copy_it{it};
 3548|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3549|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3550|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3551|       |                     const auto copy_depth{ctx.depth};
 3552|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3553|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3554|       |                     if (substitute == const_value) {
 3555|       |                        found_match = true;
 3556|       |                        if (!std::holds_alternative<V>(value)) {
 3557|       |                           value = V{};
 3558|       |                        }
 3559|       |                     }
 3560|       |                     else {
 3561|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3562|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3563|       |                           exhausted = true;
 3564|       |                        }
 3565|       |                        if constexpr (not Options.null_terminated) {
 3566|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3567|       |                              ctx.error = error_code::none;
 3568|       |                           }
 3569|       |                        }
 3570|       |                        it = copy_it;
 3571|       |                        rewind_depth<Options>(ctx, copy_depth);
 3572|       |                     }
 3573|       |                  }
 3574|       |               });
 3575|       |               if (found_match) {
 3576|       |                  return;
 3577|       |               }
 3578|       |            }
 3579|       |
 3580|       |            // Second pass: non-const types in this category
 3581|       |            if constexpr (non_const_count > 0) {
 3582|       |               // Track position within matching types for "is last" check.
 3583|       |               // We iterate over all variant indices but only process matching types,
 3584|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3585|       |               // the loop index directly corresponded to position in filtered set).
 3586|       |               // This has negligible cost: one increment per matching type.
 3587|       |               size_t non_const_idx = 0;
 3588|       |
 3589|       |               for_each<N>([&]<size_t I>() {
 3590|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3591|       |                     return;
 3592|       |                  }
 3593|       |                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|       |               });
 3645|       |               if (!found_match) {
 3646|       |                  if constexpr (non_const_count == 1) {
 3647|       |                     // Keep the specific error from the single type we tried
 3648|       |                  }
 3649|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3650|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3651|       |                     ctx.error = error_code::no_matching_variant_type;
 3652|       |                  }
 3653|       |               }
 3654|       |            }
 3655|       |            else {
 3656|       |               ctx.error = error_code::no_matching_variant_type;
 3657|       |            }
 3658|       |         }
 3659|  6.57k|      }
_ZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_:
 3520|  7.25k|      {
 3521|  7.25k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3522|       |
 3523|       |         if constexpr (category_count == 0) {
 3524|       |            ctx.error = error_code::no_matching_variant_type;
 3525|       |         }
 3526|  7.25k|         else {
 3527|  7.25k|            constexpr auto N = std::variant_size_v<Variant>;
 3528|  7.25k|            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3529|  7.25k|            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3530|       |
 3531|  7.25k|            bool found_match{};
 3532|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3533|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3534|       |            // so the budget stops it and the failure already in hand is reported.
 3535|  7.25k|            bool exhausted{};
 3536|       |
 3537|       |            // First pass: const glaze types in this category
 3538|       |            if constexpr (const_count > 0) {
 3539|       |               for_each<N>([&]<size_t I>() {
 3540|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3541|       |                     return;
 3542|       |                  }
 3543|       |                  using V = std::variant_alternative_t<I, Variant>;
 3544|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3545|       |                     // run time substitute to compare to const value
 3546|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3547|       |                     auto copy_it{it};
 3548|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3549|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3550|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3551|       |                     const auto copy_depth{ctx.depth};
 3552|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3553|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3554|       |                     if (substitute == const_value) {
 3555|       |                        found_match = true;
 3556|       |                        if (!std::holds_alternative<V>(value)) {
 3557|       |                           value = V{};
 3558|       |                        }
 3559|       |                     }
 3560|       |                     else {
 3561|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3562|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3563|       |                           exhausted = true;
 3564|       |                        }
 3565|       |                        if constexpr (not Options.null_terminated) {
 3566|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3567|       |                              ctx.error = error_code::none;
 3568|       |                           }
 3569|       |                        }
 3570|       |                        it = copy_it;
 3571|       |                        rewind_depth<Options>(ctx, copy_depth);
 3572|       |                     }
 3573|       |                  }
 3574|       |               });
 3575|       |               if (found_match) {
 3576|       |                  return;
 3577|       |               }
 3578|       |            }
 3579|       |
 3580|       |            // Second pass: non-const types in this category
 3581|  7.25k|            if constexpr (non_const_count > 0) {
 3582|       |               // Track position within matching types for "is last" check.
 3583|       |               // We iterate over all variant indices but only process matching types,
 3584|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3585|       |               // the loop index directly corresponded to position in filtered set).
 3586|       |               // This has negligible cost: one increment per matching type.
 3587|  7.25k|               size_t non_const_idx = 0;
 3588|       |
 3589|  7.25k|               for_each<N>([&]<size_t I>() {
 3590|  7.25k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3591|  7.25k|                     return;
 3592|  7.25k|                  }
 3593|  7.25k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|  7.25k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|  7.25k|                     auto copy_it{it};
 3596|  7.25k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|  7.25k|                     if (!std::holds_alternative<V>(value)) {
 3598|  7.25k|                        value = V{};
 3599|  7.25k|                     }
 3600|  7.25k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|  7.25k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|  7.25k|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|  7.25k|                     }
 3604|  7.25k|                     if (!bool(ctx.error)) {
 3605|  7.25k|                        found_match = true;
 3606|  7.25k|                     }
 3607|  7.25k|                     else if constexpr (not Options.null_terminated) {
 3608|  7.25k|                        constexpr bool is_complete_type =
 3609|  7.25k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|  7.25k|                        if constexpr (is_complete_type) {
 3612|  7.25k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|  7.25k|                              found_match = true;
 3614|  7.25k|                              ctx.error = error_code::none;
 3615|  7.25k|                           }
 3616|  7.25k|                           else {
 3617|  7.25k|                              it = copy_it;
 3618|  7.25k|                              rewind_depth<Options>(ctx, copy_depth);
 3619|  7.25k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|  7.25k|                                  not variant_alternative_exhausted(ctx)) {
 3621|  7.25k|                                 ctx.error = error_code::none;
 3622|  7.25k|                              }
 3623|  7.25k|                           }
 3624|  7.25k|                        }
 3625|  7.25k|                        else {
 3626|  7.25k|                           it = copy_it;
 3627|  7.25k|                           rewind_depth<Options>(ctx, copy_depth);
 3628|  7.25k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|  7.25k|                               not variant_alternative_exhausted(ctx)) {
 3630|  7.25k|                              ctx.error = error_code::none;
 3631|  7.25k|                           }
 3632|  7.25k|                        }
 3633|  7.25k|                     }
 3634|  7.25k|                     else {
 3635|  7.25k|                        it = copy_it;
 3636|  7.25k|                        rewind_depth<Options>(ctx, copy_depth);
 3637|  7.25k|                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|  7.25k|                            not variant_alternative_exhausted(ctx)) {
 3639|  7.25k|                           ctx.error = error_code::none;
 3640|  7.25k|                        }
 3641|  7.25k|                     }
 3642|  7.25k|                     ++non_const_idx;
 3643|  7.25k|                  }
 3644|  7.25k|               });
 3645|  7.25k|               if (!found_match) {
  ------------------
  |  Branch (3645:20): [True: 2.37k, False: 4.88k]
  ------------------
 3646|  2.37k|                  if constexpr (non_const_count == 1) {
 3647|       |                     // Keep the specific error from the single type we tried
 3648|       |                  }
 3649|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3650|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3651|       |                     ctx.error = error_code::no_matching_variant_type;
 3652|       |                  }
 3653|  2.37k|               }
 3654|       |            }
 3655|       |            else {
 3656|       |               ctx.error = error_code::no_matching_variant_type;
 3657|       |            }
 3658|  7.25k|         }
 3659|  7.25k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm0EEEDav:
 3589|  7.25k|               for_each<N>([&]<size_t I>() {
 3590|  7.25k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 7.25k]
  |  Branch (3590:38): [True: 0, False: 7.25k]
  |  Branch (3590:51): [True: 0, False: 7.25k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|  7.25k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|  7.25k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm1EEEDav:
 3589|  7.25k|               for_each<N>([&]<size_t I>() {
 3590|  7.25k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 7.25k]
  |  Branch (3590:38): [True: 0, False: 7.25k]
  |  Branch (3590:51): [True: 0, False: 7.25k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|  7.25k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|  7.25k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|  7.25k|                     auto copy_it{it};
 3596|  7.25k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|  7.25k|                     if (!std::holds_alternative<V>(value)) {
  ------------------
  |  Branch (3597:26): [True: 6.87k, False: 384]
  ------------------
 3598|  6.87k|                        value = V{};
 3599|  6.87k|                     }
 3600|  7.25k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|  7.25k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
  ------------------
  |  Branch (3601:26): [True: 2.37k, False: 4.88k]
  |  Branch (3601:45): [True: 0, False: 2.37k]
  ------------------
 3602|      0|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|      0|                     }
 3604|  7.25k|                     if (!bool(ctx.error)) {
  ------------------
  |  Branch (3604:26): [True: 4.88k, False: 2.37k]
  ------------------
 3605|  4.88k|                        found_match = true;
 3606|  4.88k|                     }
 3607|  2.37k|                     else if constexpr (not Options.null_terminated) {
 3608|  2.37k|                        constexpr bool is_complete_type =
 3609|  2.37k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
  ------------------
  |  Branch (3609:28): [Folded, False: 0]
  |  Branch (3609:40): [Folded, False: 0]
  |  Branch (3609:53): [Folded, False: 0]
  |  Branch (3609:68): [Folded, False: 0]
  |  Branch (3609:89): [Folded, False: 0]
  |  Branch (3609:103): [Folded, False: 0]
  ------------------
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|  2.37k|                        else {
 3626|  2.37k|                           it = copy_it;
 3627|  2.37k|                           rewind_depth<Options>(ctx, copy_depth);
 3628|  2.37k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
  ------------------
  |  Branch (3628:32): [True: 0, False: 2.37k]
  |  Branch (3628:71): [True: 0, False: 0]
  ------------------
 3629|      0|                               not variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3629:32): [True: 0, False: 0]
  ------------------
 3630|      0|                              ctx.error = error_code::none;
 3631|      0|                           }
 3632|  2.37k|                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|  7.25k|                     ++non_const_idx;
 3643|  7.25k|                  }
 3644|  7.25k|               });
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEETkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
   49|  7.25k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  7.25k|         else {
   60|  7.25k|            using V = std::remove_cvref_t<T>;
   61|  7.25k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  7.25k|                                             end);
   63|  7.25k|         }
   64|  7.25k|      }
_ZN3glz4fromILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEELb0ERPKcSA_S5_TkNS_10is_contextERNS_7contextEQntcl22check_string_as_numberTL0__EEEvRT3_OT4_OT1_T2_:
 1606|  7.25k|      {
 1607|  7.25k|         if constexpr (!check_opening_handled(Opts)) {
 1608|       |            if constexpr (!check_ws_handled(Opts)) {
 1609|       |               if (skip_ws<Opts>(ctx, it, end)) {
 1610|       |                  return;
 1611|       |               }
 1612|       |            }
 1613|       |
 1614|  7.25k|            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1614:17): [True: 3, False: 7.25k]
  ------------------
 1615|      3|               return;
 1616|      3|            }
 1617|  7.25k|         }
 1618|       |
 1619|  7.25k|         auto start = it;
 1620|  7.25k|         skip_string_view(ctx, it, end);
 1621|  7.25k|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1621:14): [True: 15, False: 7.24k]
  ------------------
 1622|     15|            return;
 1623|       |
 1624|  7.24k|         if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]] {
  ------------------
  |  Branch (1624:14): [True: 82, False: 7.16k]
  ------------------
 1625|     82|            return;
 1626|     82|         }
 1627|       |
 1628|  7.16k|         if constexpr (string_view_t<T>) {
 1629|  7.16k|            if constexpr (!Transient) {
 1630|  7.16k|               GLZ_ASSERT_OWNS_ITS_BYTES(decltype(ctx));
  ------------------
  |  |  242|  7.16k|   static_assert(!::glz::has_streaming_state<Ctx>,                                                              \
  |  |  243|  7.16k|                 "This read fills a non-owning view (std::string_view, glz::raw_json_view, glz::text_view, or " \
  |  |  244|  7.16k|                 "a std::span) that would point into the streaming window. A streaming read refills that "      \
  |  |  245|  7.16k|                 "window as it goes, so the view would address overwritten bytes by the time the read "         \
  |  |  246|  7.16k|                 "returns, and the read would report success while handing back silently wrong data. Read "     \
  |  |  247|  7.16k|                 "into the owning equivalent instead (std::string, glz::raw_json, glz::text, or an owning "     \
  |  |  248|  7.16k|                 "container), or read from a buffer that holds the whole document.")
  ------------------
 1631|  7.16k|            }
 1632|  7.16k|            using value_type = typename std::decay_t<T>::value_type;
 1633|       |            if constexpr (std::same_as<value_type, char8_t>) {
 1634|       |               value = {reinterpret_cast<const char8_t*>(start), size_t(it - start)};
 1635|       |            }
 1636|  7.16k|            else {
 1637|  7.16k|               value = {start, size_t(it - start)};
 1638|  7.16k|            }
 1639|       |         }
 1640|       |         else if constexpr (char_array_t<T>) {
 1641|       |            const size_t n = it - start;
 1642|       |            if ((n + 1) > sizeof(value)) {
 1643|       |               ctx.error = error_code::unexpected_end;
 1644|       |               return;
 1645|       |            }
 1646|       |            std::memcpy(value, start, n);
 1647|       |            value[n] = '\0';
 1648|       |         }
 1649|       |         else if constexpr (array_char_t<T>) {
 1650|       |            const size_t n = it - start;
 1651|       |            if ((n + 1) > value.size()) {
 1652|       |               ctx.error = error_code::unexpected_end;
 1653|       |               return;
 1654|       |            }
 1655|       |            std::memcpy(value.data(), start, n);
 1656|       |            value[n] = '\0';
 1657|       |         }
 1658|       |         else if constexpr (static_string_t<T>) {
 1659|       |            const size_t n = it - start;
 1660|       |            if (n > value.capacity()) {
 1661|       |               ctx.error = error_code::unexpected_end;
 1662|       |               return;
 1663|       |            }
 1664|       |            value.assign(start, n);
 1665|       |         }
 1666|  7.16k|         ++it; // skip closing quote
 1667|  7.16k|         if constexpr (not Opts.null_terminated) {
 1668|  7.16k|            if (it == end) {
  ------------------
  |  Branch (1668:17): [True: 2.27k, False: 4.88k]
  ------------------
 1669|  2.27k|               ctx.error = error_code::end_reached;
 1670|  2.27k|               return;
 1671|  2.27k|            }
 1672|  7.16k|         }
 1673|  7.16k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm2EEEDav:
 3589|  7.25k|               for_each<N>([&]<size_t I>() {
 3590|  7.25k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 4.88k, False: 2.37k]
  |  Branch (3590:38): [True: 0, False: 2.37k]
  |  Branch (3590:51): [True: 0, False: 2.37k]
  ------------------
 3591|  4.88k|                     return;
 3592|  4.88k|                  }
 3593|  2.37k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|  2.37k|               });
_ZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_15is_variant_boolEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_:
 3520|  1.66k|      {
 3521|  1.66k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3522|       |
 3523|  1.66k|         if constexpr (category_count == 0) {
 3524|  1.66k|            ctx.error = error_code::no_matching_variant_type;
 3525|       |         }
 3526|       |         else {
 3527|       |            constexpr auto N = std::variant_size_v<Variant>;
 3528|       |            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3529|       |            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3530|       |
 3531|       |            bool found_match{};
 3532|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3533|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3534|       |            // so the budget stops it and the failure already in hand is reported.
 3535|       |            bool exhausted{};
 3536|       |
 3537|       |            // First pass: const glaze types in this category
 3538|       |            if constexpr (const_count > 0) {
 3539|       |               for_each<N>([&]<size_t I>() {
 3540|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3541|       |                     return;
 3542|       |                  }
 3543|       |                  using V = std::variant_alternative_t<I, Variant>;
 3544|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3545|       |                     // run time substitute to compare to const value
 3546|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3547|       |                     auto copy_it{it};
 3548|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3549|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3550|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3551|       |                     const auto copy_depth{ctx.depth};
 3552|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3553|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3554|       |                     if (substitute == const_value) {
 3555|       |                        found_match = true;
 3556|       |                        if (!std::holds_alternative<V>(value)) {
 3557|       |                           value = V{};
 3558|       |                        }
 3559|       |                     }
 3560|       |                     else {
 3561|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3562|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3563|       |                           exhausted = true;
 3564|       |                        }
 3565|       |                        if constexpr (not Options.null_terminated) {
 3566|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3567|       |                              ctx.error = error_code::none;
 3568|       |                           }
 3569|       |                        }
 3570|       |                        it = copy_it;
 3571|       |                        rewind_depth<Options>(ctx, copy_depth);
 3572|       |                     }
 3573|       |                  }
 3574|       |               });
 3575|       |               if (found_match) {
 3576|       |                  return;
 3577|       |               }
 3578|       |            }
 3579|       |
 3580|       |            // Second pass: non-const types in this category
 3581|       |            if constexpr (non_const_count > 0) {
 3582|       |               // Track position within matching types for "is last" check.
 3583|       |               // We iterate over all variant indices but only process matching types,
 3584|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3585|       |               // the loop index directly corresponded to position in filtered set).
 3586|       |               // This has negligible cost: one increment per matching type.
 3587|       |               size_t non_const_idx = 0;
 3588|       |
 3589|       |               for_each<N>([&]<size_t I>() {
 3590|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3591|       |                     return;
 3592|       |                  }
 3593|       |                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|       |               });
 3645|       |               if (!found_match) {
 3646|       |                  if constexpr (non_const_count == 1) {
 3647|       |                     // Keep the specific error from the single type we tried
 3648|       |                  }
 3649|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3650|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3651|       |                     ctx.error = error_code::no_matching_variant_type;
 3652|       |                  }
 3653|       |               }
 3654|       |            }
 3655|       |            else {
 3656|       |               ctx.error = error_code::no_matching_variant_type;
 3657|       |            }
 3658|       |         }
 3659|  1.66k|      }
_ZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_:
 3520|  72.2k|      {
 3521|  72.2k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3522|       |
 3523|       |         if constexpr (category_count == 0) {
 3524|       |            ctx.error = error_code::no_matching_variant_type;
 3525|       |         }
 3526|  72.2k|         else {
 3527|  72.2k|            constexpr auto N = std::variant_size_v<Variant>;
 3528|  72.2k|            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3529|  72.2k|            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3530|       |
 3531|  72.2k|            bool found_match{};
 3532|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3533|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3534|       |            // so the budget stops it and the failure already in hand is reported.
 3535|  72.2k|            bool exhausted{};
 3536|       |
 3537|       |            // First pass: const glaze types in this category
 3538|       |            if constexpr (const_count > 0) {
 3539|       |               for_each<N>([&]<size_t I>() {
 3540|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3541|       |                     return;
 3542|       |                  }
 3543|       |                  using V = std::variant_alternative_t<I, Variant>;
 3544|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3545|       |                     // run time substitute to compare to const value
 3546|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3547|       |                     auto copy_it{it};
 3548|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3549|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3550|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3551|       |                     const auto copy_depth{ctx.depth};
 3552|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3553|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3554|       |                     if (substitute == const_value) {
 3555|       |                        found_match = true;
 3556|       |                        if (!std::holds_alternative<V>(value)) {
 3557|       |                           value = V{};
 3558|       |                        }
 3559|       |                     }
 3560|       |                     else {
 3561|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3562|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3563|       |                           exhausted = true;
 3564|       |                        }
 3565|       |                        if constexpr (not Options.null_terminated) {
 3566|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3567|       |                              ctx.error = error_code::none;
 3568|       |                           }
 3569|       |                        }
 3570|       |                        it = copy_it;
 3571|       |                        rewind_depth<Options>(ctx, copy_depth);
 3572|       |                     }
 3573|       |                  }
 3574|       |               });
 3575|       |               if (found_match) {
 3576|       |                  return;
 3577|       |               }
 3578|       |            }
 3579|       |
 3580|       |            // Second pass: non-const types in this category
 3581|  72.2k|            if constexpr (non_const_count > 0) {
 3582|       |               // Track position within matching types for "is last" check.
 3583|       |               // We iterate over all variant indices but only process matching types,
 3584|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3585|       |               // the loop index directly corresponded to position in filtered set).
 3586|       |               // This has negligible cost: one increment per matching type.
 3587|  72.2k|               size_t non_const_idx = 0;
 3588|       |
 3589|  72.2k|               for_each<N>([&]<size_t I>() {
 3590|  72.2k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3591|  72.2k|                     return;
 3592|  72.2k|                  }
 3593|  72.2k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|  72.2k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|  72.2k|                     auto copy_it{it};
 3596|  72.2k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|  72.2k|                     if (!std::holds_alternative<V>(value)) {
 3598|  72.2k|                        value = V{};
 3599|  72.2k|                     }
 3600|  72.2k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|  72.2k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|  72.2k|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|  72.2k|                     }
 3604|  72.2k|                     if (!bool(ctx.error)) {
 3605|  72.2k|                        found_match = true;
 3606|  72.2k|                     }
 3607|  72.2k|                     else if constexpr (not Options.null_terminated) {
 3608|  72.2k|                        constexpr bool is_complete_type =
 3609|  72.2k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|  72.2k|                        if constexpr (is_complete_type) {
 3612|  72.2k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|  72.2k|                              found_match = true;
 3614|  72.2k|                              ctx.error = error_code::none;
 3615|  72.2k|                           }
 3616|  72.2k|                           else {
 3617|  72.2k|                              it = copy_it;
 3618|  72.2k|                              rewind_depth<Options>(ctx, copy_depth);
 3619|  72.2k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|  72.2k|                                  not variant_alternative_exhausted(ctx)) {
 3621|  72.2k|                                 ctx.error = error_code::none;
 3622|  72.2k|                              }
 3623|  72.2k|                           }
 3624|  72.2k|                        }
 3625|  72.2k|                        else {
 3626|  72.2k|                           it = copy_it;
 3627|  72.2k|                           rewind_depth<Options>(ctx, copy_depth);
 3628|  72.2k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|  72.2k|                               not variant_alternative_exhausted(ctx)) {
 3630|  72.2k|                              ctx.error = error_code::none;
 3631|  72.2k|                           }
 3632|  72.2k|                        }
 3633|  72.2k|                     }
 3634|  72.2k|                     else {
 3635|  72.2k|                        it = copy_it;
 3636|  72.2k|                        rewind_depth<Options>(ctx, copy_depth);
 3637|  72.2k|                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|  72.2k|                            not variant_alternative_exhausted(ctx)) {
 3639|  72.2k|                           ctx.error = error_code::none;
 3640|  72.2k|                        }
 3641|  72.2k|                     }
 3642|  72.2k|                     ++non_const_idx;
 3643|  72.2k|                  }
 3644|  72.2k|               });
 3645|  72.2k|               if (!found_match) {
  ------------------
  |  Branch (3645:20): [True: 16.1k, False: 56.0k]
  ------------------
 3646|  16.1k|                  if constexpr (non_const_count == 1) {
 3647|       |                     // Keep the specific error from the single type we tried
 3648|       |                  }
 3649|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3650|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3651|       |                     ctx.error = error_code::no_matching_variant_type;
 3652|       |                  }
 3653|  16.1k|               }
 3654|       |            }
 3655|       |            else {
 3656|       |               ctx.error = error_code::no_matching_variant_type;
 3657|       |            }
 3658|  72.2k|         }
 3659|  72.2k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm0EEEDav:
 3589|  72.2k|               for_each<N>([&]<size_t I>() {
 3590|  72.2k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 72.2k]
  |  Branch (3590:38): [True: 0, False: 72.2k]
  |  Branch (3590:51): [True: 0, False: 72.2k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|  72.2k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|  72.2k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm1EEEDav:
 3589|  72.2k|               for_each<N>([&]<size_t I>() {
 3590|  72.2k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 72.2k]
  |  Branch (3590:38): [True: 0, False: 72.2k]
  |  Branch (3590:51): [True: 0, False: 72.2k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|  72.2k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|  72.2k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm2EEEDav:
 3589|  72.2k|               for_each<N>([&]<size_t I>() {
 3590|  72.2k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 72.2k]
  |  Branch (3590:38): [True: 0, False: 72.2k]
  |  Branch (3590:51): [True: 0, False: 72.2k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|  72.2k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|  72.2k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|  72.2k|                     auto copy_it{it};
 3596|  72.2k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|  72.2k|                     if (!std::holds_alternative<V>(value)) {
  ------------------
  |  Branch (3597:26): [True: 53.8k, False: 18.3k]
  ------------------
 3598|  53.8k|                        value = V{};
 3599|  53.8k|                     }
 3600|  72.2k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|  72.2k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
  ------------------
  |  Branch (3601:26): [True: 19.2k, False: 53.0k]
  |  Branch (3601:45): [True: 0, False: 19.2k]
  ------------------
 3602|      0|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|      0|                     }
 3604|  72.2k|                     if (!bool(ctx.error)) {
  ------------------
  |  Branch (3604:26): [True: 53.0k, False: 19.2k]
  ------------------
 3605|  53.0k|                        found_match = true;
 3606|  53.0k|                     }
 3607|  19.2k|                     else if constexpr (not Options.null_terminated) {
 3608|  19.2k|                        constexpr bool is_complete_type =
 3609|  19.2k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
  ------------------
  |  Branch (3609:28): [True: 19.2k, Folded]
  |  Branch (3609:40): [Folded, False: 0]
  |  Branch (3609:53): [Folded, False: 0]
  |  Branch (3609:68): [Folded, False: 0]
  |  Branch (3609:89): [Folded, False: 0]
  |  Branch (3609:103): [Folded, False: 0]
  ------------------
 3610|       |
 3611|  19.2k|                        if constexpr (is_complete_type) {
 3612|  19.2k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
  ------------------
  |  Branch (3612:32): [True: 3.04k, False: 16.1k]
  |  Branch (3612:72): [True: 3.04k, False: 0]
  |  Branch (3612:88): [True: 3.04k, False: 0]
  ------------------
 3613|  3.04k|                              found_match = true;
 3614|  3.04k|                              ctx.error = error_code::none;
 3615|  3.04k|                           }
 3616|  16.1k|                           else {
 3617|  16.1k|                              it = copy_it;
 3618|  16.1k|                              rewind_depth<Options>(ctx, copy_depth);
 3619|  16.1k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
  ------------------
  |  Branch (3619:35): [True: 0, False: 16.1k]
  |  Branch (3619:74): [True: 0, False: 0]
  ------------------
 3620|      0|                                  not variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3620:35): [True: 0, False: 0]
  ------------------
 3621|      0|                                 ctx.error = error_code::none;
 3622|      0|                              }
 3623|  16.1k|                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|  72.2k|                     ++non_const_idx;
 3643|  72.2k|                  }
 3644|  72.2k|               });
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERlTkNS_10is_contextERNS_7contextERPKcS8_EEvOT0_OT1_OT2_T3_:
   49|  72.2k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  72.2k|         else {
   60|  72.2k|            using V = std::remove_cvref_t<T>;
   61|  72.2k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  72.2k|                                             end);
   63|  72.2k|         }
   64|  72.2k|      }
_ZN3glz4fromILj10ElE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERPKcRlTkNS_10is_contextERNS_7contextES5_EEvOT1_OT2_OT0_T3_:
  763|  72.2k|      {
  764|       |         if constexpr (check_quoted_num(Opts)) {
  765|       |            if (skip_ws<Opts>(ctx, it, end)) {
  766|       |               return;
  767|       |            }
  768|       |            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  769|       |               return;
  770|       |            }
  771|       |         }
  772|       |
  773|       |         if constexpr (!check_ws_handled(Opts)) {
  774|       |            if (skip_ws<Opts>(ctx, it, end)) {
  775|       |               return;
  776|       |            }
  777|       |         }
  778|       |
  779|  72.2k|         using V = std::decay_t<decltype(value)>;
  780|  72.2k|         if constexpr (int_t<V>) {
  781|  72.2k|            static_assert(sizeof(*it) == sizeof(char));
  782|       |
  783|       |            if constexpr (Opts.null_terminated) {
  784|       |               if (not glz::atoi(value, it)) [[unlikely]] {
  785|       |                  ctx.error = error_code::parse_number_failure;
  786|       |                  return;
  787|       |               }
  788|       |            }
  789|  72.2k|            else {
  790|  72.2k|               if (not glz::atoi(value, it, end)) [[unlikely]] {
  ------------------
  |  Branch (790:20): [True: 16.1k, False: 56.0k]
  ------------------
  791|  16.1k|                  ctx.error = error_code::parse_number_failure;
  792|  16.1k|                  return;
  793|  16.1k|               }
  794|  72.2k|            }
  795|       |         }
  796|       |         else {
  797|       |// float128_t requires std::from_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  798|       |#if !defined(_LIBCPP_VERSION) || defined(_LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT)
  799|       |            if constexpr (is_float128<V>) {
  800|       |               auto [ptr, ec] = std::from_chars(it, end, value);
  801|       |               if (ec != std::errc()) {
  802|       |                  ctx.error = error_code::parse_number_failure;
  803|       |                  return;
  804|       |               }
  805|       |               it = ptr;
  806|       |            }
  807|       |            else
  808|       |#endif
  809|       |            {
  810|       |               if constexpr (std::is_volatile_v<std::remove_reference_t<decltype(value)>>) {
  811|       |                  // Hardware may interact with value changes, so we parse into a temporary and assign in one
  812|       |                  // place
  813|       |                  V temp;
  814|       |                  if constexpr (is_size_optimized(Opts)) {
  815|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, temp);
  816|       |                     if (ec != std::errc{}) [[unlikely]] {
  817|       |                        ctx.error = error_code::parse_number_failure;
  818|       |                        return;
  819|       |                     }
  820|       |                     it = ptr;
  821|       |                  }
  822|       |                  else {
  823|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, temp);
  824|       |                     if (ec != std::errc()) [[unlikely]] {
  825|       |                        ctx.error = error_code::parse_number_failure;
  826|       |                        return;
  827|       |                     }
  828|       |                     it = ptr;
  829|       |                  }
  830|       |                  value = temp;
  831|       |               }
  832|       |               else {
  833|       |                  if constexpr (is_size_optimized(Opts)) {
  834|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, value);
  835|       |                     if (ec != std::errc{}) [[unlikely]] {
  836|       |                        ctx.error = error_code::parse_number_failure;
  837|       |                        return;
  838|       |                     }
  839|       |                     it = ptr;
  840|       |                  }
  841|       |                  else {
  842|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, value);
  843|       |                     if (ec != std::errc()) [[unlikely]] {
  844|       |                        ctx.error = error_code::parse_number_failure;
  845|       |                        return;
  846|       |                     }
  847|       |                     it = ptr;
  848|       |                  }
  849|       |               }
  850|       |            }
  851|       |         }
  852|       |
  853|       |         if constexpr (check_quoted_num(Opts)) {
  854|       |            if constexpr (not Opts.null_terminated) {
  855|       |               if (it == end) [[unlikely]] {
  856|       |                  ctx.error = error_code::unexpected_end;
  857|       |                  return;
  858|       |               }
  859|       |            }
  860|       |            if (match<'"'>(ctx, it)) {
  861|       |               return;
  862|       |            }
  863|       |            if constexpr (not Opts.null_terminated) {
  864|       |               if (it == end) {
  865|       |                  ctx.error = error_code::end_reached;
  866|       |                  return;
  867|       |               }
  868|       |            }
  869|       |         }
  870|  72.2k|         else {
  871|  72.2k|            if constexpr (not Opts.null_terminated) {
  872|  72.2k|               if (it == end) {
  ------------------
  |  Branch (872:20): [True: 3.04k, False: 69.1k]
  ------------------
  873|  3.04k|                  ctx.error = error_code::end_reached;
  874|  3.04k|                  return;
  875|  3.04k|               }
  876|  72.2k|            }
  877|  72.2k|         }
  878|  72.2k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS4_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEERNS_4skipETkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
   49|   189k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|   189k|         else {
   60|   189k|            using V = std::remove_cvref_t<T>;
   61|   189k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|   189k|                                             end);
   63|   189k|         }
   64|   189k|      }
_ZN3glz4fromILj10ENS_4skipEE2opITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS5_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEERS1_TkNS_10is_contextERNS_7contextEJRPKcSC_EEEvOT0_OT1_DpOT2_:
  570|   189k|      {
  571|   189k|         skip_value<JSON>::op<Opts>(ctx, args...);
  572|   189k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__17variantIJDnNS4_17basic_string_viewIcNS4_11char_traitsIcEEEElEEETkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
   49|  20.3k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  20.3k|         else {
   60|  20.3k|            using V = std::remove_cvref_t<T>;
   61|  20.3k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  20.3k|                                             end);
   63|  20.3k|         }
   64|  20.3k|      }
_ZN3glz4fromILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
 3860|  20.3k|      {
 3861|       |         if constexpr (tagging == variant_tagging_kind::adjacent) {
 3862|       |            read_adjacent<Options>(value, ctx, it, end);
 3863|       |         }
 3864|  20.3k|         else {
 3865|  20.3k|            read_deduced<Options>(value, ctx, it, end);
 3866|  20.3k|         }
 3867|  20.3k|      }
_ZN3glz4fromILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE12read_deducedITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
 3871|  20.3k|      {
 3872|  20.3k|         constexpr auto Opts = ws_handled_off<Options>();
 3873|  20.3k|         if constexpr (variant_is_auto_deducible<T>()) {
 3874|  20.3k|            if constexpr (not check_ws_handled(Options)) {
 3875|  20.3k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3875:20): [True: 0, False: 20.3k]
  ------------------
 3876|      0|                  return;
 3877|      0|               }
 3878|  20.3k|            }
 3879|       |
 3880|  20.3k|            switch (*it) {
 3881|      0|            case '\0':
  ------------------
  |  Branch (3881:13): [True: 0, False: 20.3k]
  ------------------
 3882|      0|               ctx.error = error_code::unexpected_end;
 3883|      0|               return;
 3884|  4.63k|            case '{': {
  ------------------
  |  Branch (3884:13): [True: 4.63k, False: 15.6k]
  ------------------
 3885|       |               // This branch consumes the brace itself and hands the object to a reader with
 3886|       |               // `opening_handled`, which therefore does not count the level -- but does release it at
 3887|       |               // the closing brace. So the level is taken here, in both buffer modes, and paid back by
 3888|       |               // the reader below.
 3889|  4.63k|               if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (3889:20): [True: 0, False: 4.63k]
  ------------------
 3890|      0|                  return;
 3891|      0|               }
 3892|       |
 3893|  4.63k|               ++it;
 3894|  4.63k|               if constexpr (not Opts.null_terminated) {
 3895|  4.63k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3895:23): [True: 0, False: 4.63k]
  ------------------
 3896|      0|                     ctx.error = error_code::unexpected_end;
 3897|      0|                     return;
 3898|      0|                  }
 3899|  4.63k|               }
 3900|  4.63k|               using type_counts = variant_type_count<T>;
 3901|  4.63k|               constexpr auto n_object_candidates = variant_object_candidate_count_v<Opts, T>;
 3902|  4.63k|               if constexpr (n_object_candidates < 1) {
 3903|  4.63k|                  ctx.error = error_code::no_matching_variant_type;
 3904|  4.63k|                  return;
 3905|       |               }
 3906|       |               else if constexpr (n_object_candidates == 1 && tag_v<T>.empty()) {
 3907|       |                  constexpr auto first_idx = variant_first_object_candidate_v<Opts, T>;
 3908|       |                  using V = std::variant_alternative_t<first_idx, T>;
 3909|       |                  if (!std::holds_alternative<V>(value)) value = V{};
 3910|       |                  parse<JSON>::op<opening_handled<Opts>()>(std::get<V>(value), ctx, it, end);
 3911|       |                  return;
 3912|       |               }
 3913|       |               else {
 3914|       |                  auto possible_types = bit_array<std::variant_size_v<T>>{}.flip();
 3915|       |                  static constexpr auto& deduction_bits = variant_deduction_bits<T>;
 3916|       |                  static constexpr size_t deduction_key_count = variant_deduction_key_count<T>;
 3917|       |                  static constexpr auto tag_literal = string_literal_from_view<tag_v<T>.size()>(tag_v<T>);
 3918|       |
 3919|       |                  // Track if we've encountered a tag and what value it had
 3920|       |                  std::optional<size_t> tag_specified_index{};
 3921|       |
 3922|       |                  if (skip_ws<Opts>(ctx, it, end)) {
 3923|       |                     return;
 3924|       |                  }
 3925|       |                  // Once the reader knows which alternative this object holds it may have to read
 3926|       |                  // it again from here. Anchor the position rather than keep the pointer: the scan
 3927|       |                  // below skips values, and a streaming skip refills, which moves the window out
 3928|       |                  // from under a raw pointer (see rewind_anchor).
 3929|       |                  auto start = make_rewind_anchor(ctx, it);
 3930|       |                  bool first_key = true;
 3931|       |                  // Parse bifurcation for tagged variants:
 3932|       |                  //
 3933|       |                  // Without this optimization, tagged variant parsing always uses two passes:
 3934|       |                  //   1. Scan all keys to find the tag (e.g. "type"), skipping values
 3935|       |                  //   2. Reset `it = start` and re-parse the entire object into the resolved type
 3936|       |                  //
 3937|       |                  // When the tag is the first key, the second pass redundantly re-reads every
 3938|       |                  // field that follows it. This lambda avoids that: if the tag was the first key,
 3939|       |                  // it advances past the trailing comma so the object parser picks up at the
 3940|       |                  // second field. If the tag was found later, it falls back to the full re-parse.
 3941|       |                  //
 3942|       |                  // One exception: if the tag name is also a field on the resolved struct
 3943|       |                  // (contains_tag), we must re-parse regardless so the value is stored in
 3944|       |                  // the struct field. This override is applied inside each std::visit lambda.
 3945|       |                  //
 3946|       |                  // Either way the rewind can fail under a streaming read: the window only holds so
 3947|       |                  // much, and an object wider than it has no start left to return to.
 3948|       |                  auto position_after_tag = [&] {
 3949|       |                     if (first_key) {
 3950|       |                        if (*it == ',') ++it; // skip comma; handles tag-only objects where *it == '}'
 3951|       |                        return true;
 3952|       |                     }
 3953|       |                     return start.rewind(ctx, it, end); // tag came later, re-parse from the beginning
 3954|       |                  };
 3955|       |                  // `first_key` also answers "were we reset to the object start", which is what
 3956|       |                  // position_after_tag does for every key but the first.
 3957|       |                  for (; *it != '}'; first_key = false) {
 3958|       |                     if (!first_key) {
 3959|       |                        if (match_invalid_end<',', Opts>(ctx, it, end)) {
 3960|       |                           return;
 3961|       |                        }
 3962|       |                     }
 3963|       |
 3964|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3965|       |                        return;
 3966|       |                     }
 3967|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3968|       |                        return;
 3969|       |                     }
 3970|       |
 3971|       |                     auto* key_start = it;
 3972|       |                     skip_string_view(ctx, it, end);
 3973|       |                     if (bool(ctx.error)) [[unlikely]]
 3974|       |                        return;
 3975|       |                     if (validate_utf8_span<Opts>(ctx, key_start, it)) [[unlikely]]
 3976|       |                        return;
 3977|       |                     const sv key = {key_start, size_t(it - key_start)};
 3978|       |
 3979|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3980|       |                        return;
 3981|       |                     }
 3982|       |
 3983|       |                     if constexpr (deduction_key_count > 0) {
 3984|       |                        // We first check if a tag is defined and see if the key matches the tag
 3985|       |                        if constexpr (not tag_v<T>.empty()) {
 3986|       |                           if (key == tag_v<T>) {
 3987|       |                              if (parse_ws_colon<Opts>(ctx, it, end)) {
 3988|       |                                 return;
 3989|       |                              }
 3990|       |
 3991|       |                              using id_type = std::decay_t<decltype(ids_v<T>[0])>;
 3992|       |
 3993|       |                              std::conditional_t<std::integral<id_type>, id_type, sv> type_id{};
 3994|       |                              if constexpr (std::integral<id_type>) {
 3995|       |                                 from<JSON, id_type>::template op<ws_handled<Opts>()>(type_id, ctx, it, end);
 3996|       |                              }
 3997|       |                              else {
 3998|       |                                 // The id is turned into an index below and never leaves this
 3999|       |                                 // reader, so the view of the window it borrows cannot outlive it.
 4000|       |                                 parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4001|       |                              }
 4002|       |                              if (bool(ctx.error)) [[unlikely]]
 4003|       |                                 return;
 4004|       |                              if (skip_ws<Opts>(ctx, it, end)) {
 4005|       |                                 return;
 4006|       |                              }
 4007|       |                              if (!(*it == ',' || *it == '}')) [[unlikely]] {
 4008|       |                                 ctx.error = error_code::syntax_error;
 4009|       |                                 return;
 4010|       |                              }
 4011|       |
 4012|       |                              size_t type_index;
 4013|       |                              if constexpr (std::integral<id_type>) {
 4014|       |                                 type_index = variant_id_to_index<T>::op(type_id);
 4015|       |                              }
 4016|       |                              else {
 4017|       |                                 type_index = variant_id_to_index<T>::op(
 4018|       |                                    type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4019|       |                              }
 4020|       |                              if (type_index < ids_v<T>.size()) [[likely]] {
 4021|       |                                 // Check if the deduced types include the tag-specified type
 4022|       |                                 // If not, the tag doesn't match the fields
 4023|       |                                 // We're already inside if constexpr (deduction_registry.size()), so we know deduction
 4024|       |                                 // is happening. At this point, possible_types has been narrowed by field deduction.
 4025|       |                                 // Check if the tag-specified type is still possible
 4026|       |                                 const bool type_is_possible = possible_types[type_index];
 4027|       |                                 if (!type_is_possible) {
 4028|       |                                    // Tag specifies a type that doesn't match the fields seen so far
 4029|       |                                    ctx.error = error_code::no_matching_variant_type;
 4030|       |                                    return;
 4031|       |                                 }
 4032|       |
 4033|       |                                 if (!position_after_tag()) return;
 4034|       |                                 tag_specified_index = type_index; // Store the tag-specified type
 4035|       |                                 if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4036|       |                                 std::visit(
 4037|       |                                    [&](auto&& v) {
 4038|       |                                       using V = std::decay_t<decltype(v)>;
 4039|       |                                       constexpr bool is_object =
 4040|       |                                          (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4041|       |                                       if constexpr (variant_unit_alternative<V>) {
 4042|       |                                          // A unit alternative carries no data; its object holds only the
 4043|       |                                          // discriminator. Consume that body through an empty reflected object so
 4044|       |                                          // unknown-key policy and terminator handling match every other alternative.
 4045|       |                                          detail::variant_unit_body unit_body{};
 4046|       |                                          from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4047|       |                                                                                             tag_literal>(unit_body,
 4048|       |                                                                                                          ctx, it, end);
 4049|       |                                       }
 4050|       |                                       else if constexpr (is_object) {
 4051|       |                                          if constexpr (contains_tag<V, tag_literal>()) {
 4052|       |                                             // tag is a struct field, must re-parse
 4053|       |                                             if (!start.rewind(ctx, it, end)) return;
 4054|       |                                          }
 4055|       |                                          from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it,
 4056|       |                                                                                                           end);
 4057|       |                                       }
 4058|       |                                       else if constexpr (is_memory_object<V>) {
 4059|       |                                          if (!v) {
 4060|       |                                             if constexpr (is_specialization_v<V, std::optional>) {
 4061|       |                                                if constexpr (requires { v.emplace(); }) {
 4062|       |                                                   v.emplace();
 4063|       |                                                }
 4064|       |                                                else {
 4065|       |                                                   v = typename V::value_type{};
 4066|       |                                                }
 4067|       |                                             }
 4068|       |                                             else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4069|       |                                                v = std::make_unique<typename V::element_type>();
 4070|       |                                             else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4071|       |                                                v = std::make_shared<typename V::element_type>();
 4072|       |                                             else if constexpr (constructible<V>) {
 4073|       |                                                v = meta_construct_v<V>();
 4074|       |                                             }
 4075|       |                                             else if constexpr (std::is_pointer_v<V> &&
 4076|       |                                                                can_allocate_raw_pointer<Opts,
 4077|       |                                                                                         std::decay_t<decltype(ctx)>>) {
 4078|       |                                                if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4079|       |                                                   return;
 4080|       |                                                }
 4081|       |                                             }
 4082|       |                                             else {
 4083|       |                                                ctx.error = error_code::invalid_nullable_read;
 4084|       |                                                return;
 4085|       |                                                // Cannot read into unset nullable that is not std::optional,
 4086|       |                                                // std::unique_ptr, or std::shared_ptr
 4087|       |                                             }
 4088|       |                                          }
 4089|       |                                          if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4090|       |                                             // tag is a struct field, must re-parse
 4091|       |                                             if (!start.rewind(ctx, it, end)) return;
 4092|       |                                          }
 4093|       |                                          from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4094|       |                                             *v, ctx, it, end);
 4095|       |                                       }
 4096|       |                                       else if constexpr (custom_read<V>) {
 4097|       |                                          // Custom handlers parse the remaining body themselves and do not
 4098|       |                                          // accept the tag template parameter; the tag was already consumed.
 4099|       |                                          // This only works when the tag was the first key. If it came later,
 4100|       |                                          // we were reset to the object start and the custom handler would
 4101|       |                                          // absorb the tag, so error rather than corrupt the value.
 4102|       |                                          if (!first_key) {
 4103|       |                                             ctx.error = error_code::feature_not_supported;
 4104|       |                                             ctx.custom_error_message =
 4105|       |                                                "the tag must be the first key for a custom variant alternative";
 4106|       |                                             return;
 4107|       |                                          }
 4108|       |                                          from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4109|       |                                       }
 4110|       |                                    },
 4111|       |                                    value);
 4112|       |
 4113|       |                                 return; // we've decoded our target type
 4114|       |                              }
 4115|       |                              else [[unlikely]] {
 4116|       |                                 // Check if we have a default type (ids array shorter than variant)
 4117|       |                                 constexpr auto ids_size = ids_v<T>.size();
 4118|       |                                 constexpr auto variant_size = std::variant_size_v<T>;
 4119|       |                                 if constexpr (ids_size < variant_size) {
 4120|       |                                    // Use the first unlabeled type as the default
 4121|       |                                    const auto default_type_index = ids_size;
 4122|       |
 4123|       |                                    if (!position_after_tag()) return;
 4124|       |                                    tag_specified_index = default_type_index; // Store the default type index
 4125|       |                                    if (value.index() != default_type_index)
 4126|       |                                       emplace_runtime_variant(value, default_type_index);
 4127|       |                                    std::visit(
 4128|       |                                       [&](auto&& v) {
 4129|       |                                          using V = std::decay_t<decltype(v)>;
 4130|       |                                          constexpr bool is_object =
 4131|       |                                             (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4132|       |                                          if constexpr (variant_unit_alternative<V>) {
 4133|       |                                             // A unit alternative carries no data; its object holds only the
 4134|       |                                             // discriminator. Consume that body through an empty reflected object so
 4135|       |                                             // unknown-key policy and terminator handling match every other
 4136|       |                                             // alternative.
 4137|       |                                             detail::variant_unit_body unit_body{};
 4138|       |                                             from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4139|       |                                                                                                tag_literal>(
 4140|       |                                                unit_body, ctx, it, end);
 4141|       |                                          }
 4142|       |                                          else if constexpr (is_object) {
 4143|       |                                             if constexpr (contains_tag<V, tag_literal>()) {
 4144|       |                                                // tag is a struct field, must re-parse
 4145|       |                                                if (!start.rewind(ctx, it, end)) return;
 4146|       |                                             }
 4147|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4148|       |                                          }
 4149|       |                                          else if constexpr (is_memory_object<V>) {
 4150|       |                                             if (!v) {
 4151|       |                                                if constexpr (is_specialization_v<V, std::optional>) {
 4152|       |                                                   if constexpr (requires { v.emplace(); }) {
 4153|       |                                                      v.emplace();
 4154|       |                                                   }
 4155|       |                                                   else {
 4156|       |                                                      v = typename V::value_type{};
 4157|       |                                                   }
 4158|       |                                                }
 4159|       |                                                else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4160|       |                                                   v = std::make_unique<typename V::element_type>();
 4161|       |                                                else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4162|       |                                                   v = std::make_shared<typename V::element_type>();
 4163|       |                                                else if constexpr (constructible<V>) {
 4164|       |                                                   v = meta_construct_v<V>();
 4165|       |                                                }
 4166|       |                                                else if constexpr (std::is_pointer_v<V> &&
 4167|       |                                                                   can_allocate_raw_pointer<
 4168|       |                                                                      Opts, std::decay_t<decltype(ctx)>>) {
 4169|       |                                                   if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4170|       |                                                      return;
 4171|       |                                                   }
 4172|       |                                                }
 4173|       |                                                else {
 4174|       |                                                   ctx.error = error_code::invalid_nullable_read;
 4175|       |                                                   return;
 4176|       |                                                }
 4177|       |                                             }
 4178|       |                                             if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4179|       |                                                // tag is a struct field, must re-parse
 4180|       |                                                if (!start.rewind(ctx, it, end)) return;
 4181|       |                                             }
 4182|       |                                             from<JSON, memory_type<V>>::template op<opening_handled<Opts>()>(*v, ctx,
 4183|       |                                                                                                              it, end);
 4184|       |                                          }
 4185|       |                                          else if constexpr (custom_read<V>) {
 4186|       |                                             // Custom handlers parse the remaining body themselves; this only
 4187|       |                                             // works when the tag was the first key (see above). If it came
 4188|       |                                             // later we were reset to the object start, so error rather than
 4189|       |                                             // let the custom handler absorb the tag.
 4190|       |                                             if (!first_key) {
 4191|       |                                                ctx.error = error_code::feature_not_supported;
 4192|       |                                                ctx.custom_error_message =
 4193|       |                                                   "the tag must be the first key for a custom variant alternative";
 4194|       |                                                return;
 4195|       |                                             }
 4196|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4197|       |                                          }
 4198|       |                                       },
 4199|       |                                       value);
 4200|       |
 4201|       |                                    return;
 4202|       |                                 }
 4203|       |                                 else {
 4204|       |                                    ctx.error = error_code::no_matching_variant_type;
 4205|       |                                    ctx.custom_error_message = variant_ids_string_v<T>;
 4206|       |                                    return;
 4207|       |                                 }
 4208|       |                              }
 4209|       |                           }
 4210|       |                        }
 4211|       |
 4212|       |                        // Inline decode_hash lookup for variant deduction
 4213|       |                        using deduction_keys_t = keys_wrapper<variant_deduction_keys<T>>;
 4214|       |                        constexpr auto& DeductionHashInfo = hash_info<deduction_keys_t>;
 4215|       |                        const auto deduction_index =
 4216|       |                           decode_hash_with_size<JSON, deduction_keys_t, DeductionHashInfo, DeductionHashInfo.type>::op(
 4217|       |                              key.data(), key.data() + key.size(), key.size());
 4218|       |                        if (deduction_index < deduction_key_count && variant_deduction_keys<T>[deduction_index] == key)
 4219|       |                           [[likely]] {
 4220|       |                           possible_types &= deduction_bits[deduction_index];
 4221|       |                        }
 4222|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4223|       |                           ctx.error = error_code::unknown_key;
 4224|       |                           return;
 4225|       |                        }
 4226|       |                     }
 4227|       |                     else if constexpr (not tag_v<T>.empty()) {
 4228|       |                        // empty object case for variant, if there are no normal elements
 4229|       |                        if (key == tag_v<T>) {
 4230|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4231|       |                              return;
 4232|       |                           }
 4233|       |
 4234|       |                           // The id is turned into an index below and never leaves this reader,
 4235|       |                           // so the view of the window it borrows cannot outlive that window.
 4236|       |                           std::string_view type_id{};
 4237|       |                           parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4238|       |                           if (bool(ctx.error)) [[unlikely]]
 4239|       |                              return;
 4240|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4241|       |                              return;
 4242|       |                           }
 4243|       |
 4244|       |                           const auto type_index = variant_id_to_index<T>::op(
 4245|       |                              type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4246|       |                           if (type_index < ids_v<T>.size()) [[likely]] {
 4247|       |                              if (!position_after_tag()) return;
 4248|       |                              tag_specified_index = type_index; // Store the tag-specified type
 4249|       |                              if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4250|       |                           }
 4251|       |                           else {
 4252|       |                              // Check if we have a default type (ids array shorter than variant)
 4253|       |                              constexpr auto ids_size = ids_v<T>.size();
 4254|       |                              constexpr auto variant_size = std::variant_size_v<T>;
 4255|       |                              if constexpr (ids_size < variant_size) {
 4256|       |                                 // Use the first unlabeled type as the default
 4257|       |                                 if (!position_after_tag()) return;
 4258|       |                                 const auto default_index = ids_size;
 4259|       |                                 tag_specified_index = default_index; // Store the default type index
 4260|       |                                 if (value.index() != default_index) emplace_runtime_variant(value, default_index);
 4261|       |                              }
 4262|       |                              else {
 4263|       |                                 ctx.error = error_code::no_matching_variant_type;
 4264|       |                                 ctx.custom_error_message = variant_ids_string_v<T>;
 4265|       |                                 return;
 4266|       |                              }
 4267|       |                           }
 4268|       |                           // Parse the type (handles tag skipping and unknown keys)
 4269|       |                           std::visit(
 4270|       |                              [&](auto&& v) {
 4271|       |                                 using V = std::decay_t<decltype(v)>;
 4272|       |                                 if constexpr (custom_read<V>) {
 4273|       |                                    // Custom handlers parse the remaining object body themselves and do not
 4274|       |                                    // accept the tag template parameter that reflected objects use to skip an
 4275|       |                                    // interior tag key. That only works when the tag is the first key (it was
 4276|       |                                    // just consumed). If the tag came after other keys, position_after_tag()
 4277|       |                                    // reset us to the object start and the custom handler would absorb the tag
 4278|       |                                    // into its value, so error here rather than corrupt the result.
 4279|       |                                    if (!first_key) {
 4280|       |                                       ctx.error = error_code::feature_not_supported;
 4281|       |                                       ctx.custom_error_message =
 4282|       |                                          "the tag must be the first key for a custom variant alternative";
 4283|       |                                       return;
 4284|       |                                    }
 4285|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4286|       |                                 }
 4287|       |                                 else {
 4288|       |                                    if constexpr (contains_tag<V, tag_literal>()) {
 4289|       |                                       // tag is a struct field, must re-parse
 4290|       |                                       if (!start.rewind(ctx, it, end)) return;
 4291|       |                                    }
 4292|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4293|       |                                 }
 4294|       |                              },
 4295|       |                              value);
 4296|       |                           return;
 4297|       |                        }
 4298|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4299|       |                           ctx.error = error_code::unknown_key;
 4300|       |                           return;
 4301|       |                        }
 4302|       |                        else {
 4303|       |                           // Skip unknown key's value (non-tag key in empty variant)
 4304|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4305|       |                              return;
 4306|       |                           }
 4307|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 4308|       |                           if (bool(ctx.error)) [[unlikely]]
 4309|       |                              return;
 4310|       |                           resync_window_end(ctx, end); // a streaming skip refills
 4311|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4312|       |                              return;
 4313|       |                           }
 4314|       |                           continue; // Continue loop to find the tag
 4315|       |                        }
 4316|       |                     }
 4317|       |                     else if constexpr (Opts.error_on_unknown_keys) {
 4318|       |                        ctx.error = error_code::unknown_key;
 4319|       |                        return;
 4320|       |                     }
 4321|       |
 4322|       |                     auto matching_types = possible_types.popcount();
 4323|       |                     if (matching_types == 0) {
 4324|       |                        ctx.error = error_code::no_matching_variant_type;
 4325|       |                        return;
 4326|       |                     }
 4327|       |                     // Only short-circuit for variants without tags
 4328|       |                     else if constexpr (tag_v<T>.empty()) {
 4329|       |                        if (matching_types == 1) {
 4330|       |                           if (!start.rewind(ctx, it, end)) return;
 4331|       |                           const auto type_index = possible_types.countr_zero();
 4332|       |
 4333|       |                           if (value.index() != static_cast<size_t>(type_index))
 4334|       |                              emplace_runtime_variant(value, type_index);
 4335|       |                           std::visit(
 4336|       |                              [&](auto&& v) {
 4337|       |                                 using V = std::decay_t<decltype(v)>;
 4338|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4339|       |                                 if constexpr (variant_unit_alternative<V>) {
 4340|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4341|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4342|       |                                    // terminator handling match every other alternative.
 4343|       |                                    detail::variant_unit_body unit_body{};
 4344|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4345|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4346|       |                                                                                                    end);
 4347|       |                                 }
 4348|       |                                 else if constexpr (is_object) {
 4349|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4350|       |                                 }
 4351|       |                                 else if constexpr (is_memory_object<V>) {
 4352|       |                                    if (!v) {
 4353|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4354|       |                                          if constexpr (requires { v.emplace(); }) {
 4355|       |                                             v.emplace();
 4356|       |                                          }
 4357|       |                                          else {
 4358|       |                                             v = typename V::value_type{};
 4359|       |                                          }
 4360|       |                                       }
 4361|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4362|       |                                          v = std::make_unique<typename V::element_type>();
 4363|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4364|       |                                          v = std::make_shared<typename V::element_type>();
 4365|       |                                       else if constexpr (constructible<V>) {
 4366|       |                                          v = meta_construct_v<V>();
 4367|       |                                       }
 4368|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4369|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4370|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4371|       |                                             return;
 4372|       |                                          }
 4373|       |                                       }
 4374|       |                                       else {
 4375|       |                                          ctx.error = error_code::invalid_nullable_read;
 4376|       |                                          return;
 4377|       |                                          // Cannot read into unset nullable that is not std::optional,
 4378|       |                                          // std::unique_ptr, or std::shared_ptr
 4379|       |                                       }
 4380|       |                                    }
 4381|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4382|       |                                       *v, ctx, it, end);
 4383|       |                                 }
 4384|       |                                 else if constexpr (custom_read<V>) {
 4385|       |                                    // Custom handlers parse the remaining body themselves.
 4386|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4387|       |                                 }
 4388|       |                              },
 4389|       |                              value);
 4390|       |
 4391|       |                           return; // we've decoded our target type
 4392|       |                        }
 4393|       |                     }
 4394|       |                     // For tagged variants, continue processing to validate tags
 4395|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 4396|       |                        return;
 4397|       |                     }
 4398|       |
 4399|       |                     skip_value<JSON>::op<Opts>(ctx, it, end);
 4400|       |                     if (bool(ctx.error)) [[unlikely]]
 4401|       |                        return;
 4402|       |                     resync_window_end(ctx, end); // a streaming skip refills
 4403|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 4404|       |                        return;
 4405|       |                     }
 4406|       |                  }
 4407|       |                  // Only apply ambiguous variant resolution if we have multiple object types
 4408|       |                  if constexpr ((type_counts::n_object + type_counts::n_nullable_object) > 1) {
 4409|       |                     // After parsing all keys, check if we have multiple matching types
 4410|       |                     // If so, choose the one with the fewest fields
 4411|       |                     auto final_matching = possible_types.popcount();
 4412|       |                     if (final_matching == 0) {
 4413|       |                        ctx.error = error_code::no_matching_variant_type;
 4414|       |                     }
 4415|       |                     else if (final_matching == 1) {
 4416|       |                        // Single type remains after field deduction
 4417|       |                        const auto type_index = possible_types.countr_zero();
 4418|       |
 4419|       |                        // Validate against tag if one was specified
 4420|       |                        if (tag_specified_index.has_value() &&
 4421|       |                            tag_specified_index.value() != static_cast<size_t>(type_index)) {
 4422|       |                           ctx.error = error_code::no_matching_variant_type;
 4423|       |                           return;
 4424|       |                        }
 4425|       |
 4426|       |                        if (!start.rewind(ctx, it, end)) return;
 4427|       |                        if (value.index() != static_cast<size_t>(type_index))
 4428|       |                           emplace_runtime_variant(value, type_index);
 4429|       |                        std::visit(
 4430|       |                           [&](auto&& v) {
 4431|       |                              using V = std::decay_t<decltype(v)>;
 4432|       |                              constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4433|       |                              if constexpr (variant_unit_alternative<V>) {
 4434|       |                                 // A unit alternative carries no data; its object holds only the discriminator.
 4435|       |                                 // Consume that body through an empty reflected object so unknown-key policy and
 4436|       |                                 // terminator handling match every other alternative.
 4437|       |                                 detail::variant_unit_body unit_body{};
 4438|       |                                 from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4439|       |                                                                                    tag_literal>(unit_body, ctx, it,
 4440|       |                                                                                                 end);
 4441|       |                              }
 4442|       |                              else if constexpr (is_object) {
 4443|       |                                 from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4444|       |                              }
 4445|       |                              else if constexpr (is_memory_object<V>) {
 4446|       |                                 if (!v) {
 4447|       |                                    if constexpr (is_specialization_v<V, std::optional>) {
 4448|       |                                       if constexpr (requires { v.emplace(); }) {
 4449|       |                                          v.emplace();
 4450|       |                                       }
 4451|       |                                       else {
 4452|       |                                          v = typename V::value_type{};
 4453|       |                                       }
 4454|       |                                    }
 4455|       |                                    else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4456|       |                                       v = std::make_unique<typename V::element_type>();
 4457|       |                                    else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4458|       |                                       v = std::make_shared<typename V::element_type>();
 4459|       |                                    else if constexpr (constructible<V>) {
 4460|       |                                       v = meta_construct_v<V>();
 4461|       |                                    }
 4462|       |                                    else if constexpr (std::is_pointer_v<V> &&
 4463|       |                                                       can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4464|       |                                       if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4465|       |                                          return;
 4466|       |                                       }
 4467|       |                                    }
 4468|       |                                    else {
 4469|       |                                       ctx.error = error_code::invalid_nullable_read;
 4470|       |                                       return;
 4471|       |                                    }
 4472|       |                                 }
 4473|       |                                 from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(*v, ctx,
 4474|       |                                                                                                               it, end);
 4475|       |                              }
 4476|       |                              else if constexpr (custom_read<V>) {
 4477|       |                                 // Custom handlers parse the remaining body themselves.
 4478|       |                                 from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4479|       |                              }
 4480|       |                           },
 4481|       |                           value);
 4482|       |                     }
 4483|       |                     else if (final_matching > 1) {
 4484|       |                        constexpr auto N = std::variant_size_v<T>;
 4485|       |
 4486|       |                        // Compile-time array of field counts for each variant type
 4487|       |                        constexpr auto field_counts = []<size_t... I>(std::index_sequence<I...>) {
 4488|       |                           return std::array<size_t, N> {
 4489|       |                              ([]<size_t J = I>() -> size_t {
 4490|       |                                 using V = std::decay_t<std::variant_alternative_t<J, T>>;
 4491|       |                                 if constexpr (glaze_object_t<V> || reflectable<V>) {
 4492|       |                                    return reflect<V>::size;
 4493|       |                                 }
 4494|       |                                 else if constexpr (is_memory_object<V>) {
 4495|       |                                    using X = memory_type<V>;
 4496|       |                                    if constexpr (glaze_object_t<X> || reflectable<X>) {
 4497|       |                                       return reflect<X>::size;
 4498|       |                                    }
 4499|       |                                    else {
 4500|       |                                       return (std::numeric_limits<size_t>::max)();
 4501|       |                                    }
 4502|       |                                 }
 4503|       |                                 else {
 4504|       |                                    return (std::numeric_limits<size_t>::max)();
 4505|       |                                 }
 4506|       |                              }.template operator()<I>())...
 4507|       |                           };
 4508|       |                        }(std::make_index_sequence<N>{});
 4509|       |
 4510|       |                        // Find the type with minimum field count among the possible types
 4511|       |                        size_t min_fields = (std::numeric_limits<size_t>::max)();
 4512|       |                        size_t chosen_index = N; // Invalid index initially
 4513|       |
 4514|       |                        for (size_t i = 0; i < N; ++i) {
 4515|       |                           if (possible_types[i] && field_counts[i] < min_fields) {
 4516|       |                              min_fields = field_counts[i];
 4517|       |                              chosen_index = i;
 4518|       |                           }
 4519|       |                        }
 4520|       |
 4521|       |                        if (chosen_index < N) {
 4522|       |                           // Validate against tag if one was specified
 4523|       |                           if (tag_specified_index.has_value() && tag_specified_index.value() != chosen_index) {
 4524|       |                              ctx.error = error_code::no_matching_variant_type;
 4525|       |                              return;
 4526|       |                           }
 4527|       |
 4528|       |                           if (!start.rewind(ctx, it, end)) return;
 4529|       |                           if (value.index() != chosen_index) emplace_runtime_variant(value, chosen_index);
 4530|       |                           std::visit(
 4531|       |                              [&](auto&& v) {
 4532|       |                                 using V = std::decay_t<decltype(v)>;
 4533|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4534|       |                                 if constexpr (variant_unit_alternative<V>) {
 4535|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4536|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4537|       |                                    // terminator handling match every other alternative.
 4538|       |                                    detail::variant_unit_body unit_body{};
 4539|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4540|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4541|       |                                                                                                    end);
 4542|       |                                 }
 4543|       |                                 else if constexpr (is_object) {
 4544|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4545|       |                                 }
 4546|       |                                 else if constexpr (is_memory_object<V>) {
 4547|       |                                    if (!v) {
 4548|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4549|       |                                          if constexpr (requires { v.emplace(); }) {
 4550|       |                                             v.emplace();
 4551|       |                                          }
 4552|       |                                          else {
 4553|       |                                             v = typename V::value_type{};
 4554|       |                                          }
 4555|       |                                       }
 4556|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4557|       |                                          v = std::make_unique<typename V::element_type>();
 4558|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4559|       |                                          v = std::make_shared<typename V::element_type>();
 4560|       |                                       else if constexpr (constructible<V>) {
 4561|       |                                          v = meta_construct_v<V>();
 4562|       |                                       }
 4563|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4564|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4565|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4566|       |                                             return;
 4567|       |                                          }
 4568|       |                                       }
 4569|       |                                       else {
 4570|       |                                          ctx.error = error_code::invalid_nullable_read;
 4571|       |                                          return;
 4572|       |                                       }
 4573|       |                                    }
 4574|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4575|       |                                       *v, ctx, it, end);
 4576|       |                                 }
 4577|       |                                 else if constexpr (custom_read<V>) {
 4578|       |                                    // Custom handlers parse the remaining body themselves.
 4579|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4580|       |                                 }
 4581|       |                              },
 4582|       |                              value);
 4583|       |                        }
 4584|       |                        else {
 4585|       |                           ctx.error = error_code::no_matching_variant_type;
 4586|       |                        }
 4587|       |                     }
 4588|       |                  }
 4589|       |                  else {
 4590|       |                     // For variants with 0 or 1 object types, use the original error handling
 4591|       |                     ctx.error = error_code::no_matching_variant_type;
 4592|       |                  }
 4593|       |               }
 4594|      0|               break;
 4595|  4.63k|            }
 4596|  2.78k|            case '[':
  ------------------
  |  Branch (4596:13): [True: 2.78k, False: 17.5k]
  ------------------
 4597|       |               // As with '{' above: the array reader each alternative goes through counts the level.
 4598|  2.78k|               process_variant_alternatives<T, is_variant_array>::template op<Opts>(value, ctx, it, end);
 4599|  2.78k|               break;
 4600|  2.27k|            case '"': {
  ------------------
  |  Branch (4600:13): [True: 2.27k, False: 18.0k]
  ------------------
 4601|  2.27k|               process_variant_alternatives<T, is_variant_str>::template op<Opts>(value, ctx, it, end);
 4602|  2.27k|               break;
 4603|  4.63k|            }
 4604|    321|            case 't':
  ------------------
  |  Branch (4604:13): [True: 321, False: 19.9k]
  ------------------
 4605|    598|            case 'f': {
  ------------------
  |  Branch (4605:13): [True: 277, False: 20.0k]
  ------------------
 4606|    598|               process_variant_alternatives<T, is_variant_bool>::template op<Opts>(value, ctx, it, end);
 4607|    598|               break;
 4608|    321|            }
 4609|    234|            case 'n':
  ------------------
  |  Branch (4609:13): [True: 234, False: 20.0k]
  ------------------
 4610|       |               if constexpr (variant_count_v<T, is_variant_null> == 0) {
 4611|       |                  ctx.error = error_code::no_matching_variant_type;
 4612|       |               }
 4613|    234|               else {
 4614|    234|                  constexpr auto first_idx = variant_first_index_v<T, is_variant_null>;
 4615|    234|                  using V = std::variant_alternative_t<first_idx, T>;
 4616|    234|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (4616:23): [True: 0, False: 234]
  ------------------
 4617|    234|                  match<"null", Opts>(ctx, it, end);
 4618|    234|               }
 4619|    234|               break;
 4620|  9.79k|            default: {
  ------------------
  |  Branch (4620:13): [True: 9.79k, False: 10.5k]
  ------------------
 4621|       |               // Not bool, string, object, or array so must be number or null
 4622|  9.79k|               process_variant_alternatives<T, is_variant_num>::template op<Opts>(value, ctx, it, end);
 4623|  9.79k|            }
 4624|  20.3k|            }
 4625|       |         }
 4626|       |         else {
 4627|       |            // For non-auto-deducible variants, try each type until one succeeds
 4628|       |            constexpr auto N = std::variant_size_v<T>;
 4629|       |            bool parsed = false;
 4630|       |            bool exhausted = false; // speculation budget spent; see charge_speculation
 4631|       |
 4632|       |            for_each<N>([&]<size_t I>() {
 4633|       |               if (parsed || exhausted || variant_alternative_exhausted(ctx)) return;
 4634|       |
 4635|       |               auto copy_it = it;
 4636|       |               // A rejected alternative may have bailed out inside a container, which leaves its
 4637|       |               // nesting level counted (see enter_depth), so the depth rewinds with the iterator.
 4638|       |               const auto copy_depth = ctx.depth;
 4639|       |
 4640|       |               // Try parsing as this type
 4641|       |               if (value.index() != I) {
 4642|       |                  emplace_runtime_variant(value, I);
 4643|       |               }
 4644|       |
 4645|       |               std::visit([&](auto&& v) { parse<JSON>::op<Options>(v, ctx, it, end); }, value);
 4646|       |               if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 4647|       |                  exhausted = true; // only rejected attempts are charged; see charge_speculation
 4648|       |               }
 4649|       |
 4650|       |               if (!bool(ctx.error)) {
 4651|       |                  parsed = true;
 4652|       |               }
 4653|       |               else if constexpr (not Options.null_terminated) {
 4654|       |                  // In non-null-terminated mode, if we hit end_reached after advancing the iterator,
 4655|       |                  // it means we successfully parsed the value but couldn't skip trailing whitespace
 4656|       |                  if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 4657|       |                     // We advanced the iterator, so we did parse something -- unless what advanced it
 4658|       |                     // was an abandoned attempt, which is what a spent speculation budget means.
 4659|       |                     parsed = true;
 4660|       |                     ctx.error = error_code::none;
 4661|       |                  }
 4662|       |                  else {
 4663|       |                     // Reset for next attempt (unless this is the last type)
 4664|       |                     it = copy_it;
 4665|       |                     rewind_depth<Options>(ctx, copy_depth);
 4666|       |                     if constexpr (I + 1 < N) {
 4667|       |                        if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4668|       |                           ctx.error = error_code::none; // Clear error for next attempt
 4669|       |                        }
 4670|       |                     }
 4671|       |                  }
 4672|       |               }
 4673|       |               else {
 4674|       |                  // Reset for next attempt (unless this is the last type)
 4675|       |                  it = copy_it;
 4676|       |                  rewind_depth<Options>(ctx, copy_depth);
 4677|       |                  if constexpr (I + 1 < N) {
 4678|       |                     if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4679|       |                        ctx.error = error_code::none; // Clear error for next attempt
 4680|       |                     }
 4681|       |                  }
 4682|       |               }
 4683|       |            });
 4684|       |         }
 4685|  20.3k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEETkNS_10is_contextERNS_7contextERPKcSC_EEvOT0_OT1_OT2_T3_:
   49|  76.2k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  76.2k|         else {
   60|  76.2k|            using V = std::remove_cvref_t<T>;
   61|  76.2k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  76.2k|                                             end);
   63|  76.2k|         }
   64|  76.2k|      }
_ZN3glz4fromILj10ENS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS4_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT0_OT1_OT2_T3_:
  150|  76.2k|      {
  151|  76.2k|         using V = std::decay_t<decltype(get_member(std::declval<Value>(), meta_wrapper_v<T>))>;
  152|  76.2k|         from<JSON, V>::template op<Opts>(get_member(std::forward<Value>(value), meta_wrapper_v<T>),
  153|  76.2k|                                          std::forward<Ctx>(ctx), std::forward<It0>(it), end);
  154|  76.2k|      }
_ZN3glz4fromILj10ENSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT0_OT1_OT2_T3_:
 3860|  76.2k|      {
 3861|       |         if constexpr (tagging == variant_tagging_kind::adjacent) {
 3862|       |            read_adjacent<Options>(value, ctx, it, end);
 3863|       |         }
 3864|  76.2k|         else {
 3865|  76.2k|            read_deduced<Options>(value, ctx, it, end);
 3866|  76.2k|         }
 3867|  76.2k|      }
_ZN3glz4fromILj10ENSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEEE12read_deducedITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT0_OT1_OT2_T3_:
 3871|  76.2k|      {
 3872|  76.2k|         constexpr auto Opts = ws_handled_off<Options>();
 3873|  76.2k|         if constexpr (variant_is_auto_deducible<T>()) {
 3874|  76.2k|            if constexpr (not check_ws_handled(Options)) {
 3875|  76.2k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3875:20): [True: 0, False: 76.2k]
  ------------------
 3876|      0|                  return;
 3877|      0|               }
 3878|  76.2k|            }
 3879|       |
 3880|  76.2k|            switch (*it) {
 3881|      0|            case '\0':
  ------------------
  |  Branch (3881:13): [True: 0, False: 76.2k]
  ------------------
 3882|      0|               ctx.error = error_code::unexpected_end;
 3883|      0|               return;
 3884|  55.6k|            case '{': {
  ------------------
  |  Branch (3884:13): [True: 55.6k, False: 20.6k]
  ------------------
 3885|       |               // This branch consumes the brace itself and hands the object to a reader with
 3886|       |               // `opening_handled`, which therefore does not count the level -- but does release it at
 3887|       |               // the closing brace. So the level is taken here, in both buffer modes, and paid back by
 3888|       |               // the reader below.
 3889|  55.6k|               if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (3889:20): [True: 0, False: 55.6k]
  ------------------
 3890|      0|                  return;
 3891|      0|               }
 3892|       |
 3893|  55.6k|               ++it;
 3894|  55.6k|               if constexpr (not Opts.null_terminated) {
 3895|  55.6k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3895:23): [True: 0, False: 55.6k]
  ------------------
 3896|      0|                     ctx.error = error_code::unexpected_end;
 3897|      0|                     return;
 3898|      0|                  }
 3899|  55.6k|               }
 3900|  55.6k|               using type_counts = variant_type_count<T>;
 3901|  55.6k|               constexpr auto n_object_candidates = variant_object_candidate_count_v<Opts, T>;
 3902|       |               if constexpr (n_object_candidates < 1) {
 3903|       |                  ctx.error = error_code::no_matching_variant_type;
 3904|       |                  return;
 3905|       |               }
 3906|  55.6k|               else if constexpr (n_object_candidates == 1 && tag_v<T>.empty()) {
 3907|  55.6k|                  constexpr auto first_idx = variant_first_object_candidate_v<Opts, T>;
 3908|  55.6k|                  using V = std::variant_alternative_t<first_idx, T>;
 3909|  55.6k|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (3909:23): [True: 55.6k, False: 0]
  ------------------
 3910|  55.6k|                  parse<JSON>::op<opening_handled<Opts>()>(std::get<V>(value), ctx, it, end);
 3911|  55.6k|                  return;
 3912|       |               }
 3913|       |               else {
 3914|       |                  auto possible_types = bit_array<std::variant_size_v<T>>{}.flip();
 3915|       |                  static constexpr auto& deduction_bits = variant_deduction_bits<T>;
 3916|       |                  static constexpr size_t deduction_key_count = variant_deduction_key_count<T>;
 3917|       |                  static constexpr auto tag_literal = string_literal_from_view<tag_v<T>.size()>(tag_v<T>);
 3918|       |
 3919|       |                  // Track if we've encountered a tag and what value it had
 3920|       |                  std::optional<size_t> tag_specified_index{};
 3921|       |
 3922|       |                  if (skip_ws<Opts>(ctx, it, end)) {
 3923|       |                     return;
 3924|       |                  }
 3925|       |                  // Once the reader knows which alternative this object holds it may have to read
 3926|       |                  // it again from here. Anchor the position rather than keep the pointer: the scan
 3927|       |                  // below skips values, and a streaming skip refills, which moves the window out
 3928|       |                  // from under a raw pointer (see rewind_anchor).
 3929|       |                  auto start = make_rewind_anchor(ctx, it);
 3930|       |                  bool first_key = true;
 3931|       |                  // Parse bifurcation for tagged variants:
 3932|       |                  //
 3933|       |                  // Without this optimization, tagged variant parsing always uses two passes:
 3934|       |                  //   1. Scan all keys to find the tag (e.g. "type"), skipping values
 3935|       |                  //   2. Reset `it = start` and re-parse the entire object into the resolved type
 3936|       |                  //
 3937|       |                  // When the tag is the first key, the second pass redundantly re-reads every
 3938|       |                  // field that follows it. This lambda avoids that: if the tag was the first key,
 3939|       |                  // it advances past the trailing comma so the object parser picks up at the
 3940|       |                  // second field. If the tag was found later, it falls back to the full re-parse.
 3941|       |                  //
 3942|       |                  // One exception: if the tag name is also a field on the resolved struct
 3943|       |                  // (contains_tag), we must re-parse regardless so the value is stored in
 3944|       |                  // the struct field. This override is applied inside each std::visit lambda.
 3945|       |                  //
 3946|       |                  // Either way the rewind can fail under a streaming read: the window only holds so
 3947|       |                  // much, and an object wider than it has no start left to return to.
 3948|       |                  auto position_after_tag = [&] {
 3949|       |                     if (first_key) {
 3950|       |                        if (*it == ',') ++it; // skip comma; handles tag-only objects where *it == '}'
 3951|       |                        return true;
 3952|       |                     }
 3953|       |                     return start.rewind(ctx, it, end); // tag came later, re-parse from the beginning
 3954|       |                  };
 3955|       |                  // `first_key` also answers "were we reset to the object start", which is what
 3956|       |                  // position_after_tag does for every key but the first.
 3957|       |                  for (; *it != '}'; first_key = false) {
 3958|       |                     if (!first_key) {
 3959|       |                        if (match_invalid_end<',', Opts>(ctx, it, end)) {
 3960|       |                           return;
 3961|       |                        }
 3962|       |                     }
 3963|       |
 3964|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3965|       |                        return;
 3966|       |                     }
 3967|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3968|       |                        return;
 3969|       |                     }
 3970|       |
 3971|       |                     auto* key_start = it;
 3972|       |                     skip_string_view(ctx, it, end);
 3973|       |                     if (bool(ctx.error)) [[unlikely]]
 3974|       |                        return;
 3975|       |                     if (validate_utf8_span<Opts>(ctx, key_start, it)) [[unlikely]]
 3976|       |                        return;
 3977|       |                     const sv key = {key_start, size_t(it - key_start)};
 3978|       |
 3979|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3980|       |                        return;
 3981|       |                     }
 3982|       |
 3983|       |                     if constexpr (deduction_key_count > 0) {
 3984|       |                        // We first check if a tag is defined and see if the key matches the tag
 3985|       |                        if constexpr (not tag_v<T>.empty()) {
 3986|       |                           if (key == tag_v<T>) {
 3987|       |                              if (parse_ws_colon<Opts>(ctx, it, end)) {
 3988|       |                                 return;
 3989|       |                              }
 3990|       |
 3991|       |                              using id_type = std::decay_t<decltype(ids_v<T>[0])>;
 3992|       |
 3993|       |                              std::conditional_t<std::integral<id_type>, id_type, sv> type_id{};
 3994|       |                              if constexpr (std::integral<id_type>) {
 3995|       |                                 from<JSON, id_type>::template op<ws_handled<Opts>()>(type_id, ctx, it, end);
 3996|       |                              }
 3997|       |                              else {
 3998|       |                                 // The id is turned into an index below and never leaves this
 3999|       |                                 // reader, so the view of the window it borrows cannot outlive it.
 4000|       |                                 parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4001|       |                              }
 4002|       |                              if (bool(ctx.error)) [[unlikely]]
 4003|       |                                 return;
 4004|       |                              if (skip_ws<Opts>(ctx, it, end)) {
 4005|       |                                 return;
 4006|       |                              }
 4007|       |                              if (!(*it == ',' || *it == '}')) [[unlikely]] {
 4008|       |                                 ctx.error = error_code::syntax_error;
 4009|       |                                 return;
 4010|       |                              }
 4011|       |
 4012|       |                              size_t type_index;
 4013|       |                              if constexpr (std::integral<id_type>) {
 4014|       |                                 type_index = variant_id_to_index<T>::op(type_id);
 4015|       |                              }
 4016|       |                              else {
 4017|       |                                 type_index = variant_id_to_index<T>::op(
 4018|       |                                    type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4019|       |                              }
 4020|       |                              if (type_index < ids_v<T>.size()) [[likely]] {
 4021|       |                                 // Check if the deduced types include the tag-specified type
 4022|       |                                 // If not, the tag doesn't match the fields
 4023|       |                                 // We're already inside if constexpr (deduction_registry.size()), so we know deduction
 4024|       |                                 // is happening. At this point, possible_types has been narrowed by field deduction.
 4025|       |                                 // Check if the tag-specified type is still possible
 4026|       |                                 const bool type_is_possible = possible_types[type_index];
 4027|       |                                 if (!type_is_possible) {
 4028|       |                                    // Tag specifies a type that doesn't match the fields seen so far
 4029|       |                                    ctx.error = error_code::no_matching_variant_type;
 4030|       |                                    return;
 4031|       |                                 }
 4032|       |
 4033|       |                                 if (!position_after_tag()) return;
 4034|       |                                 tag_specified_index = type_index; // Store the tag-specified type
 4035|       |                                 if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4036|       |                                 std::visit(
 4037|       |                                    [&](auto&& v) {
 4038|       |                                       using V = std::decay_t<decltype(v)>;
 4039|       |                                       constexpr bool is_object =
 4040|       |                                          (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4041|       |                                       if constexpr (variant_unit_alternative<V>) {
 4042|       |                                          // A unit alternative carries no data; its object holds only the
 4043|       |                                          // discriminator. Consume that body through an empty reflected object so
 4044|       |                                          // unknown-key policy and terminator handling match every other alternative.
 4045|       |                                          detail::variant_unit_body unit_body{};
 4046|       |                                          from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4047|       |                                                                                             tag_literal>(unit_body,
 4048|       |                                                                                                          ctx, it, end);
 4049|       |                                       }
 4050|       |                                       else if constexpr (is_object) {
 4051|       |                                          if constexpr (contains_tag<V, tag_literal>()) {
 4052|       |                                             // tag is a struct field, must re-parse
 4053|       |                                             if (!start.rewind(ctx, it, end)) return;
 4054|       |                                          }
 4055|       |                                          from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it,
 4056|       |                                                                                                           end);
 4057|       |                                       }
 4058|       |                                       else if constexpr (is_memory_object<V>) {
 4059|       |                                          if (!v) {
 4060|       |                                             if constexpr (is_specialization_v<V, std::optional>) {
 4061|       |                                                if constexpr (requires { v.emplace(); }) {
 4062|       |                                                   v.emplace();
 4063|       |                                                }
 4064|       |                                                else {
 4065|       |                                                   v = typename V::value_type{};
 4066|       |                                                }
 4067|       |                                             }
 4068|       |                                             else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4069|       |                                                v = std::make_unique<typename V::element_type>();
 4070|       |                                             else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4071|       |                                                v = std::make_shared<typename V::element_type>();
 4072|       |                                             else if constexpr (constructible<V>) {
 4073|       |                                                v = meta_construct_v<V>();
 4074|       |                                             }
 4075|       |                                             else if constexpr (std::is_pointer_v<V> &&
 4076|       |                                                                can_allocate_raw_pointer<Opts,
 4077|       |                                                                                         std::decay_t<decltype(ctx)>>) {
 4078|       |                                                if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4079|       |                                                   return;
 4080|       |                                                }
 4081|       |                                             }
 4082|       |                                             else {
 4083|       |                                                ctx.error = error_code::invalid_nullable_read;
 4084|       |                                                return;
 4085|       |                                                // Cannot read into unset nullable that is not std::optional,
 4086|       |                                                // std::unique_ptr, or std::shared_ptr
 4087|       |                                             }
 4088|       |                                          }
 4089|       |                                          if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4090|       |                                             // tag is a struct field, must re-parse
 4091|       |                                             if (!start.rewind(ctx, it, end)) return;
 4092|       |                                          }
 4093|       |                                          from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4094|       |                                             *v, ctx, it, end);
 4095|       |                                       }
 4096|       |                                       else if constexpr (custom_read<V>) {
 4097|       |                                          // Custom handlers parse the remaining body themselves and do not
 4098|       |                                          // accept the tag template parameter; the tag was already consumed.
 4099|       |                                          // This only works when the tag was the first key. If it came later,
 4100|       |                                          // we were reset to the object start and the custom handler would
 4101|       |                                          // absorb the tag, so error rather than corrupt the value.
 4102|       |                                          if (!first_key) {
 4103|       |                                             ctx.error = error_code::feature_not_supported;
 4104|       |                                             ctx.custom_error_message =
 4105|       |                                                "the tag must be the first key for a custom variant alternative";
 4106|       |                                             return;
 4107|       |                                          }
 4108|       |                                          from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4109|       |                                       }
 4110|       |                                    },
 4111|       |                                    value);
 4112|       |
 4113|       |                                 return; // we've decoded our target type
 4114|       |                              }
 4115|       |                              else [[unlikely]] {
 4116|       |                                 // Check if we have a default type (ids array shorter than variant)
 4117|       |                                 constexpr auto ids_size = ids_v<T>.size();
 4118|       |                                 constexpr auto variant_size = std::variant_size_v<T>;
 4119|       |                                 if constexpr (ids_size < variant_size) {
 4120|       |                                    // Use the first unlabeled type as the default
 4121|       |                                    const auto default_type_index = ids_size;
 4122|       |
 4123|       |                                    if (!position_after_tag()) return;
 4124|       |                                    tag_specified_index = default_type_index; // Store the default type index
 4125|       |                                    if (value.index() != default_type_index)
 4126|       |                                       emplace_runtime_variant(value, default_type_index);
 4127|       |                                    std::visit(
 4128|       |                                       [&](auto&& v) {
 4129|       |                                          using V = std::decay_t<decltype(v)>;
 4130|       |                                          constexpr bool is_object =
 4131|       |                                             (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4132|       |                                          if constexpr (variant_unit_alternative<V>) {
 4133|       |                                             // A unit alternative carries no data; its object holds only the
 4134|       |                                             // discriminator. Consume that body through an empty reflected object so
 4135|       |                                             // unknown-key policy and terminator handling match every other
 4136|       |                                             // alternative.
 4137|       |                                             detail::variant_unit_body unit_body{};
 4138|       |                                             from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4139|       |                                                                                                tag_literal>(
 4140|       |                                                unit_body, ctx, it, end);
 4141|       |                                          }
 4142|       |                                          else if constexpr (is_object) {
 4143|       |                                             if constexpr (contains_tag<V, tag_literal>()) {
 4144|       |                                                // tag is a struct field, must re-parse
 4145|       |                                                if (!start.rewind(ctx, it, end)) return;
 4146|       |                                             }
 4147|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4148|       |                                          }
 4149|       |                                          else if constexpr (is_memory_object<V>) {
 4150|       |                                             if (!v) {
 4151|       |                                                if constexpr (is_specialization_v<V, std::optional>) {
 4152|       |                                                   if constexpr (requires { v.emplace(); }) {
 4153|       |                                                      v.emplace();
 4154|       |                                                   }
 4155|       |                                                   else {
 4156|       |                                                      v = typename V::value_type{};
 4157|       |                                                   }
 4158|       |                                                }
 4159|       |                                                else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4160|       |                                                   v = std::make_unique<typename V::element_type>();
 4161|       |                                                else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4162|       |                                                   v = std::make_shared<typename V::element_type>();
 4163|       |                                                else if constexpr (constructible<V>) {
 4164|       |                                                   v = meta_construct_v<V>();
 4165|       |                                                }
 4166|       |                                                else if constexpr (std::is_pointer_v<V> &&
 4167|       |                                                                   can_allocate_raw_pointer<
 4168|       |                                                                      Opts, std::decay_t<decltype(ctx)>>) {
 4169|       |                                                   if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4170|       |                                                      return;
 4171|       |                                                   }
 4172|       |                                                }
 4173|       |                                                else {
 4174|       |                                                   ctx.error = error_code::invalid_nullable_read;
 4175|       |                                                   return;
 4176|       |                                                }
 4177|       |                                             }
 4178|       |                                             if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4179|       |                                                // tag is a struct field, must re-parse
 4180|       |                                                if (!start.rewind(ctx, it, end)) return;
 4181|       |                                             }
 4182|       |                                             from<JSON, memory_type<V>>::template op<opening_handled<Opts>()>(*v, ctx,
 4183|       |                                                                                                              it, end);
 4184|       |                                          }
 4185|       |                                          else if constexpr (custom_read<V>) {
 4186|       |                                             // Custom handlers parse the remaining body themselves; this only
 4187|       |                                             // works when the tag was the first key (see above). If it came
 4188|       |                                             // later we were reset to the object start, so error rather than
 4189|       |                                             // let the custom handler absorb the tag.
 4190|       |                                             if (!first_key) {
 4191|       |                                                ctx.error = error_code::feature_not_supported;
 4192|       |                                                ctx.custom_error_message =
 4193|       |                                                   "the tag must be the first key for a custom variant alternative";
 4194|       |                                                return;
 4195|       |                                             }
 4196|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4197|       |                                          }
 4198|       |                                       },
 4199|       |                                       value);
 4200|       |
 4201|       |                                    return;
 4202|       |                                 }
 4203|       |                                 else {
 4204|       |                                    ctx.error = error_code::no_matching_variant_type;
 4205|       |                                    ctx.custom_error_message = variant_ids_string_v<T>;
 4206|       |                                    return;
 4207|       |                                 }
 4208|       |                              }
 4209|       |                           }
 4210|       |                        }
 4211|       |
 4212|       |                        // Inline decode_hash lookup for variant deduction
 4213|       |                        using deduction_keys_t = keys_wrapper<variant_deduction_keys<T>>;
 4214|       |                        constexpr auto& DeductionHashInfo = hash_info<deduction_keys_t>;
 4215|       |                        const auto deduction_index =
 4216|       |                           decode_hash_with_size<JSON, deduction_keys_t, DeductionHashInfo, DeductionHashInfo.type>::op(
 4217|       |                              key.data(), key.data() + key.size(), key.size());
 4218|       |                        if (deduction_index < deduction_key_count && variant_deduction_keys<T>[deduction_index] == key)
 4219|       |                           [[likely]] {
 4220|       |                           possible_types &= deduction_bits[deduction_index];
 4221|       |                        }
 4222|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4223|       |                           ctx.error = error_code::unknown_key;
 4224|       |                           return;
 4225|       |                        }
 4226|       |                     }
 4227|       |                     else if constexpr (not tag_v<T>.empty()) {
 4228|       |                        // empty object case for variant, if there are no normal elements
 4229|       |                        if (key == tag_v<T>) {
 4230|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4231|       |                              return;
 4232|       |                           }
 4233|       |
 4234|       |                           // The id is turned into an index below and never leaves this reader,
 4235|       |                           // so the view of the window it borrows cannot outlive that window.
 4236|       |                           std::string_view type_id{};
 4237|       |                           parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4238|       |                           if (bool(ctx.error)) [[unlikely]]
 4239|       |                              return;
 4240|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4241|       |                              return;
 4242|       |                           }
 4243|       |
 4244|       |                           const auto type_index = variant_id_to_index<T>::op(
 4245|       |                              type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4246|       |                           if (type_index < ids_v<T>.size()) [[likely]] {
 4247|       |                              if (!position_after_tag()) return;
 4248|       |                              tag_specified_index = type_index; // Store the tag-specified type
 4249|       |                              if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4250|       |                           }
 4251|       |                           else {
 4252|       |                              // Check if we have a default type (ids array shorter than variant)
 4253|       |                              constexpr auto ids_size = ids_v<T>.size();
 4254|       |                              constexpr auto variant_size = std::variant_size_v<T>;
 4255|       |                              if constexpr (ids_size < variant_size) {
 4256|       |                                 // Use the first unlabeled type as the default
 4257|       |                                 if (!position_after_tag()) return;
 4258|       |                                 const auto default_index = ids_size;
 4259|       |                                 tag_specified_index = default_index; // Store the default type index
 4260|       |                                 if (value.index() != default_index) emplace_runtime_variant(value, default_index);
 4261|       |                              }
 4262|       |                              else {
 4263|       |                                 ctx.error = error_code::no_matching_variant_type;
 4264|       |                                 ctx.custom_error_message = variant_ids_string_v<T>;
 4265|       |                                 return;
 4266|       |                              }
 4267|       |                           }
 4268|       |                           // Parse the type (handles tag skipping and unknown keys)
 4269|       |                           std::visit(
 4270|       |                              [&](auto&& v) {
 4271|       |                                 using V = std::decay_t<decltype(v)>;
 4272|       |                                 if constexpr (custom_read<V>) {
 4273|       |                                    // Custom handlers parse the remaining object body themselves and do not
 4274|       |                                    // accept the tag template parameter that reflected objects use to skip an
 4275|       |                                    // interior tag key. That only works when the tag is the first key (it was
 4276|       |                                    // just consumed). If the tag came after other keys, position_after_tag()
 4277|       |                                    // reset us to the object start and the custom handler would absorb the tag
 4278|       |                                    // into its value, so error here rather than corrupt the result.
 4279|       |                                    if (!first_key) {
 4280|       |                                       ctx.error = error_code::feature_not_supported;
 4281|       |                                       ctx.custom_error_message =
 4282|       |                                          "the tag must be the first key for a custom variant alternative";
 4283|       |                                       return;
 4284|       |                                    }
 4285|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4286|       |                                 }
 4287|       |                                 else {
 4288|       |                                    if constexpr (contains_tag<V, tag_literal>()) {
 4289|       |                                       // tag is a struct field, must re-parse
 4290|       |                                       if (!start.rewind(ctx, it, end)) return;
 4291|       |                                    }
 4292|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4293|       |                                 }
 4294|       |                              },
 4295|       |                              value);
 4296|       |                           return;
 4297|       |                        }
 4298|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4299|       |                           ctx.error = error_code::unknown_key;
 4300|       |                           return;
 4301|       |                        }
 4302|       |                        else {
 4303|       |                           // Skip unknown key's value (non-tag key in empty variant)
 4304|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4305|       |                              return;
 4306|       |                           }
 4307|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 4308|       |                           if (bool(ctx.error)) [[unlikely]]
 4309|       |                              return;
 4310|       |                           resync_window_end(ctx, end); // a streaming skip refills
 4311|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4312|       |                              return;
 4313|       |                           }
 4314|       |                           continue; // Continue loop to find the tag
 4315|       |                        }
 4316|       |                     }
 4317|       |                     else if constexpr (Opts.error_on_unknown_keys) {
 4318|       |                        ctx.error = error_code::unknown_key;
 4319|       |                        return;
 4320|       |                     }
 4321|       |
 4322|       |                     auto matching_types = possible_types.popcount();
 4323|       |                     if (matching_types == 0) {
 4324|       |                        ctx.error = error_code::no_matching_variant_type;
 4325|       |                        return;
 4326|       |                     }
 4327|       |                     // Only short-circuit for variants without tags
 4328|       |                     else if constexpr (tag_v<T>.empty()) {
 4329|       |                        if (matching_types == 1) {
 4330|       |                           if (!start.rewind(ctx, it, end)) return;
 4331|       |                           const auto type_index = possible_types.countr_zero();
 4332|       |
 4333|       |                           if (value.index() != static_cast<size_t>(type_index))
 4334|       |                              emplace_runtime_variant(value, type_index);
 4335|       |                           std::visit(
 4336|       |                              [&](auto&& v) {
 4337|       |                                 using V = std::decay_t<decltype(v)>;
 4338|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4339|       |                                 if constexpr (variant_unit_alternative<V>) {
 4340|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4341|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4342|       |                                    // terminator handling match every other alternative.
 4343|       |                                    detail::variant_unit_body unit_body{};
 4344|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4345|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4346|       |                                                                                                    end);
 4347|       |                                 }
 4348|       |                                 else if constexpr (is_object) {
 4349|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4350|       |                                 }
 4351|       |                                 else if constexpr (is_memory_object<V>) {
 4352|       |                                    if (!v) {
 4353|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4354|       |                                          if constexpr (requires { v.emplace(); }) {
 4355|       |                                             v.emplace();
 4356|       |                                          }
 4357|       |                                          else {
 4358|       |                                             v = typename V::value_type{};
 4359|       |                                          }
 4360|       |                                       }
 4361|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4362|       |                                          v = std::make_unique<typename V::element_type>();
 4363|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4364|       |                                          v = std::make_shared<typename V::element_type>();
 4365|       |                                       else if constexpr (constructible<V>) {
 4366|       |                                          v = meta_construct_v<V>();
 4367|       |                                       }
 4368|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4369|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4370|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4371|       |                                             return;
 4372|       |                                          }
 4373|       |                                       }
 4374|       |                                       else {
 4375|       |                                          ctx.error = error_code::invalid_nullable_read;
 4376|       |                                          return;
 4377|       |                                          // Cannot read into unset nullable that is not std::optional,
 4378|       |                                          // std::unique_ptr, or std::shared_ptr
 4379|       |                                       }
 4380|       |                                    }
 4381|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4382|       |                                       *v, ctx, it, end);
 4383|       |                                 }
 4384|       |                                 else if constexpr (custom_read<V>) {
 4385|       |                                    // Custom handlers parse the remaining body themselves.
 4386|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4387|       |                                 }
 4388|       |                              },
 4389|       |                              value);
 4390|       |
 4391|       |                           return; // we've decoded our target type
 4392|       |                        }
 4393|       |                     }
 4394|       |                     // For tagged variants, continue processing to validate tags
 4395|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 4396|       |                        return;
 4397|       |                     }
 4398|       |
 4399|       |                     skip_value<JSON>::op<Opts>(ctx, it, end);
 4400|       |                     if (bool(ctx.error)) [[unlikely]]
 4401|       |                        return;
 4402|       |                     resync_window_end(ctx, end); // a streaming skip refills
 4403|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 4404|       |                        return;
 4405|       |                     }
 4406|       |                  }
 4407|       |                  // Only apply ambiguous variant resolution if we have multiple object types
 4408|       |                  if constexpr ((type_counts::n_object + type_counts::n_nullable_object) > 1) {
 4409|       |                     // After parsing all keys, check if we have multiple matching types
 4410|       |                     // If so, choose the one with the fewest fields
 4411|       |                     auto final_matching = possible_types.popcount();
 4412|       |                     if (final_matching == 0) {
 4413|       |                        ctx.error = error_code::no_matching_variant_type;
 4414|       |                     }
 4415|       |                     else if (final_matching == 1) {
 4416|       |                        // Single type remains after field deduction
 4417|       |                        const auto type_index = possible_types.countr_zero();
 4418|       |
 4419|       |                        // Validate against tag if one was specified
 4420|       |                        if (tag_specified_index.has_value() &&
 4421|       |                            tag_specified_index.value() != static_cast<size_t>(type_index)) {
 4422|       |                           ctx.error = error_code::no_matching_variant_type;
 4423|       |                           return;
 4424|       |                        }
 4425|       |
 4426|       |                        if (!start.rewind(ctx, it, end)) return;
 4427|       |                        if (value.index() != static_cast<size_t>(type_index))
 4428|       |                           emplace_runtime_variant(value, type_index);
 4429|       |                        std::visit(
 4430|       |                           [&](auto&& v) {
 4431|       |                              using V = std::decay_t<decltype(v)>;
 4432|       |                              constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4433|       |                              if constexpr (variant_unit_alternative<V>) {
 4434|       |                                 // A unit alternative carries no data; its object holds only the discriminator.
 4435|       |                                 // Consume that body through an empty reflected object so unknown-key policy and
 4436|       |                                 // terminator handling match every other alternative.
 4437|       |                                 detail::variant_unit_body unit_body{};
 4438|       |                                 from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4439|       |                                                                                    tag_literal>(unit_body, ctx, it,
 4440|       |                                                                                                 end);
 4441|       |                              }
 4442|       |                              else if constexpr (is_object) {
 4443|       |                                 from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4444|       |                              }
 4445|       |                              else if constexpr (is_memory_object<V>) {
 4446|       |                                 if (!v) {
 4447|       |                                    if constexpr (is_specialization_v<V, std::optional>) {
 4448|       |                                       if constexpr (requires { v.emplace(); }) {
 4449|       |                                          v.emplace();
 4450|       |                                       }
 4451|       |                                       else {
 4452|       |                                          v = typename V::value_type{};
 4453|       |                                       }
 4454|       |                                    }
 4455|       |                                    else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4456|       |                                       v = std::make_unique<typename V::element_type>();
 4457|       |                                    else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4458|       |                                       v = std::make_shared<typename V::element_type>();
 4459|       |                                    else if constexpr (constructible<V>) {
 4460|       |                                       v = meta_construct_v<V>();
 4461|       |                                    }
 4462|       |                                    else if constexpr (std::is_pointer_v<V> &&
 4463|       |                                                       can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4464|       |                                       if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4465|       |                                          return;
 4466|       |                                       }
 4467|       |                                    }
 4468|       |                                    else {
 4469|       |                                       ctx.error = error_code::invalid_nullable_read;
 4470|       |                                       return;
 4471|       |                                    }
 4472|       |                                 }
 4473|       |                                 from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(*v, ctx,
 4474|       |                                                                                                               it, end);
 4475|       |                              }
 4476|       |                              else if constexpr (custom_read<V>) {
 4477|       |                                 // Custom handlers parse the remaining body themselves.
 4478|       |                                 from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4479|       |                              }
 4480|       |                           },
 4481|       |                           value);
 4482|       |                     }
 4483|       |                     else if (final_matching > 1) {
 4484|       |                        constexpr auto N = std::variant_size_v<T>;
 4485|       |
 4486|       |                        // Compile-time array of field counts for each variant type
 4487|       |                        constexpr auto field_counts = []<size_t... I>(std::index_sequence<I...>) {
 4488|       |                           return std::array<size_t, N> {
 4489|       |                              ([]<size_t J = I>() -> size_t {
 4490|       |                                 using V = std::decay_t<std::variant_alternative_t<J, T>>;
 4491|       |                                 if constexpr (glaze_object_t<V> || reflectable<V>) {
 4492|       |                                    return reflect<V>::size;
 4493|       |                                 }
 4494|       |                                 else if constexpr (is_memory_object<V>) {
 4495|       |                                    using X = memory_type<V>;
 4496|       |                                    if constexpr (glaze_object_t<X> || reflectable<X>) {
 4497|       |                                       return reflect<X>::size;
 4498|       |                                    }
 4499|       |                                    else {
 4500|       |                                       return (std::numeric_limits<size_t>::max)();
 4501|       |                                    }
 4502|       |                                 }
 4503|       |                                 else {
 4504|       |                                    return (std::numeric_limits<size_t>::max)();
 4505|       |                                 }
 4506|       |                              }.template operator()<I>())...
 4507|       |                           };
 4508|       |                        }(std::make_index_sequence<N>{});
 4509|       |
 4510|       |                        // Find the type with minimum field count among the possible types
 4511|       |                        size_t min_fields = (std::numeric_limits<size_t>::max)();
 4512|       |                        size_t chosen_index = N; // Invalid index initially
 4513|       |
 4514|       |                        for (size_t i = 0; i < N; ++i) {
 4515|       |                           if (possible_types[i] && field_counts[i] < min_fields) {
 4516|       |                              min_fields = field_counts[i];
 4517|       |                              chosen_index = i;
 4518|       |                           }
 4519|       |                        }
 4520|       |
 4521|       |                        if (chosen_index < N) {
 4522|       |                           // Validate against tag if one was specified
 4523|       |                           if (tag_specified_index.has_value() && tag_specified_index.value() != chosen_index) {
 4524|       |                              ctx.error = error_code::no_matching_variant_type;
 4525|       |                              return;
 4526|       |                           }
 4527|       |
 4528|       |                           if (!start.rewind(ctx, it, end)) return;
 4529|       |                           if (value.index() != chosen_index) emplace_runtime_variant(value, chosen_index);
 4530|       |                           std::visit(
 4531|       |                              [&](auto&& v) {
 4532|       |                                 using V = std::decay_t<decltype(v)>;
 4533|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4534|       |                                 if constexpr (variant_unit_alternative<V>) {
 4535|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4536|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4537|       |                                    // terminator handling match every other alternative.
 4538|       |                                    detail::variant_unit_body unit_body{};
 4539|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4540|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4541|       |                                                                                                    end);
 4542|       |                                 }
 4543|       |                                 else if constexpr (is_object) {
 4544|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4545|       |                                 }
 4546|       |                                 else if constexpr (is_memory_object<V>) {
 4547|       |                                    if (!v) {
 4548|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4549|       |                                          if constexpr (requires { v.emplace(); }) {
 4550|       |                                             v.emplace();
 4551|       |                                          }
 4552|       |                                          else {
 4553|       |                                             v = typename V::value_type{};
 4554|       |                                          }
 4555|       |                                       }
 4556|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4557|       |                                          v = std::make_unique<typename V::element_type>();
 4558|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4559|       |                                          v = std::make_shared<typename V::element_type>();
 4560|       |                                       else if constexpr (constructible<V>) {
 4561|       |                                          v = meta_construct_v<V>();
 4562|       |                                       }
 4563|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4564|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4565|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4566|       |                                             return;
 4567|       |                                          }
 4568|       |                                       }
 4569|       |                                       else {
 4570|       |                                          ctx.error = error_code::invalid_nullable_read;
 4571|       |                                          return;
 4572|       |                                       }
 4573|       |                                    }
 4574|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4575|       |                                       *v, ctx, it, end);
 4576|       |                                 }
 4577|       |                                 else if constexpr (custom_read<V>) {
 4578|       |                                    // Custom handlers parse the remaining body themselves.
 4579|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4580|       |                                 }
 4581|       |                              },
 4582|       |                              value);
 4583|       |                        }
 4584|       |                        else {
 4585|       |                           ctx.error = error_code::no_matching_variant_type;
 4586|       |                        }
 4587|       |                     }
 4588|       |                  }
 4589|       |                  else {
 4590|       |                     // For variants with 0 or 1 object types, use the original error handling
 4591|       |                     ctx.error = error_code::no_matching_variant_type;
 4592|       |                  }
 4593|       |               }
 4594|      0|               break;
 4595|  55.6k|            }
 4596|  20.6k|            case '[':
  ------------------
  |  Branch (4596:13): [True: 20.6k, False: 55.6k]
  ------------------
 4597|       |               // As with '{' above: the array reader each alternative goes through counts the level.
 4598|  20.6k|               process_variant_alternatives<T, is_variant_array>::template op<Opts>(value, ctx, it, end);
 4599|  20.6k|               break;
 4600|      0|            case '"': {
  ------------------
  |  Branch (4600:13): [True: 0, False: 76.2k]
  ------------------
 4601|      0|               process_variant_alternatives<T, is_variant_str>::template op<Opts>(value, ctx, it, end);
 4602|      0|               break;
 4603|  55.6k|            }
 4604|      0|            case 't':
  ------------------
  |  Branch (4604:13): [True: 0, False: 76.2k]
  ------------------
 4605|      0|            case 'f': {
  ------------------
  |  Branch (4605:13): [True: 0, False: 76.2k]
  ------------------
 4606|      0|               process_variant_alternatives<T, is_variant_bool>::template op<Opts>(value, ctx, it, end);
 4607|      0|               break;
 4608|      0|            }
 4609|      0|            case 'n':
  ------------------
  |  Branch (4609:13): [True: 0, False: 76.2k]
  ------------------
 4610|       |               if constexpr (variant_count_v<T, is_variant_null> == 0) {
 4611|       |                  ctx.error = error_code::no_matching_variant_type;
 4612|       |               }
 4613|      0|               else {
 4614|      0|                  constexpr auto first_idx = variant_first_index_v<T, is_variant_null>;
 4615|      0|                  using V = std::variant_alternative_t<first_idx, T>;
 4616|      0|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (4616:23): [True: 0, False: 0]
  ------------------
 4617|      0|                  match<"null", Opts>(ctx, it, end);
 4618|      0|               }
 4619|      0|               break;
 4620|      0|            default: {
  ------------------
  |  Branch (4620:13): [True: 0, False: 76.2k]
  ------------------
 4621|       |               // Not bool, string, object, or array so must be number or null
 4622|      0|               process_variant_alternatives<T, is_variant_num>::template op<Opts>(value, ctx, it, end);
 4623|      0|            }
 4624|  76.2k|            }
 4625|       |         }
 4626|       |         else {
 4627|       |            // For non-auto-deducible variants, try each type until one succeeds
 4628|       |            constexpr auto N = std::variant_size_v<T>;
 4629|       |            bool parsed = false;
 4630|       |            bool exhausted = false; // speculation budget spent; see charge_speculation
 4631|       |
 4632|       |            for_each<N>([&]<size_t I>() {
 4633|       |               if (parsed || exhausted || variant_alternative_exhausted(ctx)) return;
 4634|       |
 4635|       |               auto copy_it = it;
 4636|       |               // A rejected alternative may have bailed out inside a container, which leaves its
 4637|       |               // nesting level counted (see enter_depth), so the depth rewinds with the iterator.
 4638|       |               const auto copy_depth = ctx.depth;
 4639|       |
 4640|       |               // Try parsing as this type
 4641|       |               if (value.index() != I) {
 4642|       |                  emplace_runtime_variant(value, I);
 4643|       |               }
 4644|       |
 4645|       |               std::visit([&](auto&& v) { parse<JSON>::op<Options>(v, ctx, it, end); }, value);
 4646|       |               if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 4647|       |                  exhausted = true; // only rejected attempts are charged; see charge_speculation
 4648|       |               }
 4649|       |
 4650|       |               if (!bool(ctx.error)) {
 4651|       |                  parsed = true;
 4652|       |               }
 4653|       |               else if constexpr (not Options.null_terminated) {
 4654|       |                  // In non-null-terminated mode, if we hit end_reached after advancing the iterator,
 4655|       |                  // it means we successfully parsed the value but couldn't skip trailing whitespace
 4656|       |                  if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 4657|       |                     // We advanced the iterator, so we did parse something -- unless what advanced it
 4658|       |                     // was an abandoned attempt, which is what a spent speculation budget means.
 4659|       |                     parsed = true;
 4660|       |                     ctx.error = error_code::none;
 4661|       |                  }
 4662|       |                  else {
 4663|       |                     // Reset for next attempt (unless this is the last type)
 4664|       |                     it = copy_it;
 4665|       |                     rewind_depth<Options>(ctx, copy_depth);
 4666|       |                     if constexpr (I + 1 < N) {
 4667|       |                        if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4668|       |                           ctx.error = error_code::none; // Clear error for next attempt
 4669|       |                        }
 4670|       |                     }
 4671|       |                  }
 4672|       |               }
 4673|       |               else {
 4674|       |                  // Reset for next attempt (unless this is the last type)
 4675|       |                  it = copy_it;
 4676|       |                  rewind_depth<Options>(ctx, copy_depth);
 4677|       |                  if constexpr (I + 1 < N) {
 4678|       |                     if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4679|       |                        ctx.error = error_code::none; // Clear error for next attempt
 4680|       |                     }
 4681|       |                  }
 4682|       |               }
 4683|       |            });
 4684|       |         }
 4685|  76.2k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEERNS_17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES4_EEEETkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
   49|   632k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|   632k|         else {
   60|   632k|            using V = std::remove_cvref_t<T>;
   61|   632k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|   632k|                                             end);
   63|   632k|         }
   64|   632k|      }
_ZN3glz4fromILj10ENS_17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES1_EEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS9_ILm1EEEEERS5_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT1_OT2_OT3_T4_:
 2791|   632k|      {
 2792|   632k|         static constexpr auto num_members = reflect<T>::size;
 2793|       |
 2794|   632k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2795|       |         if constexpr (!check_opening_handled(Options)) {
 2796|       |            if constexpr (!check_ws_handled(Options)) {
 2797|       |               if (skip_ws<Opts>(ctx, it, end)) {
 2798|       |                  return;
 2799|       |               }
 2800|       |            }
 2801|       |            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
 2802|       |               return;
 2803|       |            }
 2804|       |            if constexpr (not Opts.null_terminated) {
 2805|       |               if (it == end) [[unlikely]] {
 2806|       |                  ctx.error = error_code::unexpected_end;
 2807|       |                  return;
 2808|       |               }
 2809|       |            }
 2810|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2811|       |            // released at each syntactic close below
 2812|       |            if (enter_depth(ctx)) [[unlikely]] {
 2813|       |               return;
 2814|       |            }
 2815|       |         }
 2816|   632k|         const auto ws_start = it;
 2817|   632k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2817:14): [True: 0, False: 632k]
  ------------------
 2818|      0|            return;
 2819|      0|         }
 2820|   632k|         const size_t ws_size = size_t(it - ws_start);
 2821|       |
 2822|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2823|       |            if constexpr (not tag.sv().empty()) {
 2824|       |               if (*it == '"') {
 2825|       |                  ++it;
 2826|       |                  if constexpr (not Opts.null_terminated) {
 2827|       |                     if (it == end) [[unlikely]] {
 2828|       |                        ctx.error = error_code::unexpected_end;
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|       |
 2833|       |                  const auto start = it;
 2834|       |                  skip_string_view(ctx, it, end);
 2835|       |                  if (bool(ctx.error)) [[unlikely]]
 2836|       |                     return;
 2837|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2838|       |                     return;
 2839|       |                  const sv key{start, size_t(it - start)};
 2840|       |                  ++it;
 2841|       |                  if constexpr (not Opts.null_terminated) {
 2842|       |                     if (it == end) [[unlikely]] {
 2843|       |                        ctx.error = error_code::unexpected_end;
 2844|       |                        return;
 2845|       |                     }
 2846|       |                  }
 2847|       |
 2848|       |                  if (key == tag.sv()) {
 2849|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2850|       |                        return;
 2851|       |                     }
 2852|       |
 2853|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2854|       |                     if (bool(ctx.error)) [[unlikely]]
 2855|       |                        return;
 2856|       |
 2857|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2858|       |                        return;
 2859|       |                     }
 2860|       |                  }
 2861|       |                  else {
 2862|       |                     ctx.error = error_code::unknown_key;
 2863|       |                     return;
 2864|       |                  }
 2865|       |               }
 2866|       |            }
 2867|       |
 2868|       |            if (*it == '}') [[likely]] {
 2869|       |               --ctx.depth;
 2870|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2871|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2872|       |                     auto wrapper = self_constraint_v<T>(value);
 2873|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2874|       |                     if (bool(ctx.error)) {
 2875|       |                        return;
 2876|       |                     }
 2877|       |                  }
 2878|       |               }
 2879|       |               ++it;
 2880|       |               if constexpr (not Opts.null_terminated) {
 2881|       |                  if (it == end) {
 2882|       |                     ctx.error = error_code::end_reached;
 2883|       |                     return;
 2884|       |                  }
 2885|       |               }
 2886|       |               if constexpr (Opts.partial_read) {
 2887|       |                  ctx.error = error_code::partial_read_complete;
 2888|       |               }
 2889|       |               return;
 2890|       |            }
 2891|       |            ctx.error = error_code::unknown_key;
 2892|       |            return;
 2893|       |         }
 2894|   632k|         else {
 2895|   632k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|   632k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|   632k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|   632k|                  return bit_array<num_members>{};
 2899|   632k|               }
 2900|   632k|               else {
 2901|   632k|                  return nullptr;
 2902|   632k|               }
 2903|   632k|            }();
 2904|       |
 2905|       |            // A file include merges an external document into this object, so with
 2906|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2907|       |            // context::key_bits). While this object parses, its bits are published for its
 2908|       |            // includer members to hand down; and if this parse is itself an included document,
 2909|       |            // it claims the bits of the object that included us and merges into them at the
 2910|       |            // closing brace instead of running a check of its own.
 2911|   632k|            static constexpr bool tracks_include_keys = [] {
 2912|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2913|   632k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2914|   632k|                  return has_includer_member<T>;
 2915|   632k|               }
 2916|   632k|               else {
 2917|   632k|                  return false;
 2918|   632k|               }
 2919|   632k|            }();
 2920|   632k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2921|       |            if constexpr (tracks_include_keys) {
 2922|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2923|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2924|       |                  ctx.include_key_bits = nullptr;
 2925|       |                  ctx.include_key_type = nullptr;
 2926|       |               }
 2927|       |            }
 2928|   632k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2929|   632k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2930|   632k|                                                      inert_key_bits_scope> published_bits{
 2931|   632k|               ctx, [&]() -> void* {
 2932|   632k|                  if constexpr (tracks_include_keys) {
 2933|   632k|                     return &fields;
 2934|   632k|                  }
 2935|   632k|                  else {
 2936|   632k|                     return nullptr;
 2937|   632k|                  }
 2938|   632k|               }()};
 2939|       |
 2940|   632k|            size_t read_count{}; // for partial_read
 2941|       |
 2942|   632k|            bool first = true;
 2943|  2.50M|            while (true) {
  ------------------
  |  Branch (2943:20): [True: 2.45M, Folded]
  ------------------
 2944|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2945|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2946|       |                     bit_array<num_members> arr{};
 2947|       |                     for (size_t i = 0; i < num_members; ++i) {
 2948|       |                        arr[i] = true;
 2949|       |                     }
 2950|       |                     return arr;
 2951|       |                  }();
 2952|       |
 2953|       |                  if ((all_fields & fields) == all_fields) {
 2954|       |                     ctx.error = error_code::partial_read_complete;
 2955|       |                     --ctx.depth; // as above: an early success still closes this level
 2956|       |                     return;
 2957|       |                  }
 2958|       |               }
 2959|       |
 2960|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2961|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2962|       |                  if (ctx.stream.enabled()) {
 2963|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2964|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2965|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2966|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2967|       |                        const char* new_it;
 2968|       |                        const char* new_end;
 2969|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2970|       |                        it = new_it;
 2971|       |                        end = new_end;
 2972|       |                        if (it >= end && ctx.stream.at_eof()) {
 2973|       |                           ctx.error = error_code::unexpected_end;
 2974|       |                           return;
 2975|       |                        }
 2976|       |                     }
 2977|       |                  }
 2978|       |               }
 2979|       |
 2980|  2.45M|               if (*it == '}') {
  ------------------
  |  Branch (2980:20): [True: 581k, False: 1.87M]
  ------------------
 2981|   581k|                  --ctx.depth;
 2982|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2983|       |                     const bool defer_to_includer = [&] {
 2984|       |                        if constexpr (tracks_include_keys) {
 2985|       |                           if (include_bits) {
 2986|       |                              // An included document is a fragment: hand the keys it supplied to
 2987|       |                              // the object that included it, which checks the union of both.
 2988|       |                              *include_bits |= fields;
 2989|       |                              return true;
 2990|       |                           }
 2991|       |                        }
 2992|       |                        return false;
 2993|       |                     }();
 2994|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2995|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2996|       |                        for (size_t i = 0; i < num_members; ++i) {
 2997|       |                           if (not fields[i] && req_fields[i]) {
 2998|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 2999|       |                              // We just return the first missing key in order to avoid heap allocations
 3000|       |                              break;
 3001|       |                           }
 3002|       |                        }
 3003|       |
 3004|       |                        ctx.error = error_code::missing_key;
 3005|       |                        return;
 3006|       |                     }
 3007|       |                  }
 3008|       |                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3009|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3010|       |                        auto wrapper = self_constraint_v<T>(value);
 3011|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3012|       |                        if (bool(ctx.error)) {
 3013|       |                           return;
 3014|       |                        }
 3015|       |                     }
 3016|       |                  }
 3017|   581k|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3018|   581k|                  if constexpr (not Opts.null_terminated) {
 3019|   581k|                     if (it == end) {
  ------------------
  |  Branch (3019:26): [True: 36.0k, False: 545k]
  ------------------
 3020|  36.0k|                        ctx.error = error_code::end_reached;
 3021|  36.0k|                        return;
 3022|  36.0k|                     }
 3023|   581k|                  }
 3024|   545k|                  return;
 3025|   581k|               }
 3026|  1.87M|               else if (first) {
  ------------------
  |  Branch (3026:25): [True: 632k, False: 1.23M]
  ------------------
 3027|   632k|                  first = false;
 3028|   632k|               }
 3029|  1.23M|               else {
 3030|  1.23M|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3030:23): [True: 0, False: 1.23M]
  ------------------
 3031|      0|                     return;
 3032|      0|                  }
 3033|  1.23M|                  if constexpr (not Opts.null_terminated) {
 3034|  1.23M|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3034:26): [True: 0, False: 1.23M]
  ------------------
 3035|      0|                        ctx.error = error_code::unexpected_end;
 3036|      0|                        return;
 3037|      0|                     }
 3038|  1.23M|                  }
 3039|       |
 3040|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3041|       |                                (!Opts.comments)) {
 3042|       |                     if (ws_size && ws_size < size_t(end - it)) {
 3043|       |                        skip_matching_ws(ws_start, it, ws_size);
 3044|       |                     }
 3045|       |                  }
 3046|       |
 3047|  1.23M|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3047:23): [True: 0, False: 1.23M]
  ------------------
 3048|      0|                     return;
 3049|      0|                  }
 3050|  1.23M|               }
 3051|       |
 3052|  1.87M|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3052:49): [Folded, False: 0]
  |  Branch (3052:70): [Folded, False: 0]
  ------------------
 3053|       |
 3054|       |               if constexpr (reflection_type && (num_members == 0)) {
 3055|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3056|       |                     static_assert(false_v<T>, "This should be unreachable");
 3057|       |                  }
 3058|       |                  else {
 3059|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3060|       |                        return;
 3061|       |                     }
 3062|       |
 3063|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3064|       |
 3065|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3066|       |                     // handled by the user.
 3067|       |
 3068|       |                     const auto start = it;
 3069|       |                     uint64_t ascii_acc{};
 3070|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3071|       |                     if (bool(ctx.error)) [[unlikely]]
 3072|       |                        return;
 3073|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3074|       |                        return;
 3075|       |                     const sv key{start, size_t(it - start)};
 3076|       |                     ++it;
 3077|       |                     if constexpr (not Opts.null_terminated) {
 3078|       |                        if (it == end) [[unlikely]] {
 3079|       |                           ctx.error = error_code::unexpected_end;
 3080|       |                           return;
 3081|       |                        }
 3082|       |                     }
 3083|       |
 3084|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3085|       |                        return;
 3086|       |                     }
 3087|       |
 3088|       |                     // Check if this key is the variant tag that should be skipped
 3089|       |                     if constexpr (not tag.sv().empty()) {
 3090|       |                        if (key == tag.sv()) {
 3091|       |                           // Skip the tag value
 3092|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3093|       |                           if (bool(ctx.error)) [[unlikely]]
 3094|       |                              return;
 3095|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3096|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3097|       |                              return;
 3098|       |                           }
 3099|       |                           continue;
 3100|       |                        }
 3101|       |                     }
 3102|       |
 3103|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3104|       |                     if (bool(ctx.error)) [[unlikely]]
 3105|       |                        return;
 3106|       |                     if constexpr (not Opts.null_terminated) {
 3107|       |                        if (it == end) [[unlikely]] {
 3108|       |                           ctx.error = error_code::unexpected_end;
 3109|       |                           return;
 3110|       |                        }
 3111|       |                     }
 3112|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3113|       |                        return;
 3114|       |                     }
 3115|       |                  }
 3116|       |               }
 3117|       |               else if constexpr (reflection_type) {
 3118|       |                  static_assert(bool(hash_info<T>.type));
 3119|       |
 3120|       |                  if (*it != '"') [[unlikely]] {
 3121|       |                     ctx.error = error_code::expected_quote;
 3122|       |                     return;
 3123|       |                  }
 3124|       |                  ++it;
 3125|       |                  if constexpr (not Opts.null_terminated) {
 3126|       |                     if (it == end) [[unlikely]] {
 3127|       |                        ctx.error = error_code::unexpected_end;
 3128|       |                        return;
 3129|       |                     }
 3130|       |                  }
 3131|       |
 3132|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3133|       |                     // For tagged variants we first check to see if the key matches the tag
 3134|       |                     // We only need to do this if the tag is not part of the keys
 3135|       |
 3136|       |                     const auto start = it;
 3137|       |                     uint64_t ascii_acc{};
 3138|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3139|       |                     if (bool(ctx.error)) [[unlikely]]
 3140|       |                        return;
 3141|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3142|       |                        return;
 3143|       |                     const sv key{start, size_t(it - start)};
 3144|       |                     ++it;
 3145|       |                     if constexpr (not Opts.null_terminated) {
 3146|       |                        if (it == end) [[unlikely]] {
 3147|       |                           ctx.error = error_code::unexpected_end;
 3148|       |                           return;
 3149|       |                        }
 3150|       |                     }
 3151|       |
 3152|       |                     if (key == tag.sv()) {
 3153|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3154|       |                           return;
 3155|       |                        }
 3156|       |
 3157|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3158|       |                        if (bool(ctx.error)) [[unlikely]]
 3159|       |                           return;
 3160|       |
 3161|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3162|       |                           return;
 3163|       |                        }
 3164|       |                        continue;
 3165|       |                     }
 3166|       |                     else {
 3167|       |                        it = start; // reset the iterator
 3168|       |                     }
 3169|       |                  }
 3170|       |
 3171|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3172|       |                     size_t index = num_members;
 3173|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3174|       |                     if (bool(ctx.error)) [[unlikely]]
 3175|       |                        return;
 3176|       |                     if (index < num_members) {
 3177|       |                        fields[index] = true;
 3178|       |                     }
 3179|       |                  }
 3180|       |                  else {
 3181|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3182|       |                     if (bool(ctx.error)) [[unlikely]]
 3183|       |                        return;
 3184|       |                  }
 3185|       |               }
 3186|  1.87M|               else {
 3187|       |                  // For types like std::map, std::unordered_map
 3188|       |
 3189|  1.87M|                  auto reading = [&](auto&& key) {
 3190|  1.87M|                     if constexpr (Opts.partial_read) {
 3191|  1.87M|                        if (auto element = value.find(key); element != value.end()) {
 3192|  1.87M|                           ++read_count;
 3193|  1.87M|                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|  1.87M|                        }
 3195|  1.87M|                        else {
 3196|  1.87M|                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|  1.87M|                        }
 3198|  1.87M|                     }
 3199|  1.87M|                     else {
 3200|  1.87M|                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|  1.87M|                     }
 3202|  1.87M|                  };
 3203|       |
 3204|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3205|  1.87M|                  using Key = typename T::key_type;
 3206|  1.87M|                  if constexpr (std::is_same_v<Key, std::string>) {
 3207|  1.87M|                     ctx.scratch.clear();
 3208|  1.87M|                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3209|  1.87M|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3209:26): [True: 0, False: 1.87M]
  ------------------
 3210|      0|                        return;
 3211|       |
 3212|  1.87M|                     if (parse_ws_colon<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3212:26): [True: 0, False: 1.87M]
  ------------------
 3213|      0|                        return;
 3214|      0|                     }
 3215|       |
 3216|  1.87M|                     reading(ctx.scratch);
 3217|       |                     if constexpr (Opts.partial_read) {
 3218|       |                        if (read_count == value.size()) {
 3219|       |                           return;
 3220|       |                        }
 3221|       |                     }
 3222|  1.87M|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3222:26): [True: 50.9k, False: 1.82M]
  ------------------
 3223|  50.9k|                        return;
 3224|       |                  }
 3225|       |                  else if constexpr (str_t<Key>) {
 3226|       |                     Key key;
 3227|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3228|       |                     if (bool(ctx.error)) [[unlikely]]
 3229|       |                        return;
 3230|       |
 3231|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3232|       |                        return;
 3233|       |                     }
 3234|       |
 3235|       |                     reading(key);
 3236|       |                     if constexpr (Opts.partial_read) {
 3237|       |                        if (read_count == value.size()) {
 3238|       |                           return;
 3239|       |                        }
 3240|       |                     }
 3241|       |                     if (bool(ctx.error)) [[unlikely]]
 3242|       |                        return;
 3243|       |                  }
 3244|       |                  else {
 3245|       |                     Key key_value{};
 3246|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3247|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3248|       |                     }
 3249|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3250|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3251|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3252|       |                     }
 3253|       |                     else {
 3254|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3255|       |                     }
 3256|       |                     if (bool(ctx.error)) [[unlikely]]
 3257|       |                        return;
 3258|       |
 3259|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3260|       |                        return;
 3261|       |                     }
 3262|       |
 3263|       |                     reading(key_value);
 3264|       |                     if constexpr (Opts.partial_read) {
 3265|       |                        if (read_count == value.size()) {
 3266|       |                           return;
 3267|       |                        }
 3268|       |                     }
 3269|       |                     if (bool(ctx.error)) [[unlikely]]
 3270|       |                        return;
 3271|       |                  }
 3272|  1.87M|               }
 3273|       |
 3274|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3275|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3276|       |                  if (ctx.stream.enabled()) {
 3277|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3278|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3279|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3280|       |                        const char* new_it;
 3281|       |                        const char* new_end;
 3282|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3283|       |                        it = new_it;
 3284|       |                        end = new_end;
 3285|       |                        if (it >= end && ctx.stream.at_eof()) {
 3286|       |                           ctx.error = error_code::unexpected_end;
 3287|       |                           return;
 3288|       |                        }
 3289|       |                     }
 3290|       |                  }
 3291|       |               }
 3292|       |
 3293|  1.87M|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3293:20): [True: 0, False: 1.87M]
  ------------------
 3294|      0|                  return;
 3295|      0|               }
 3296|  1.87M|            }
 3297|   632k|         }
 3298|   632k|      }
_ZZN3glz4fromILj10ENS_17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES1_EEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS9_ILm1EEEEERS5_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2895|   632k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2896|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2897|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2898|       |                  return bit_array<num_members>{};
 2899|       |               }
 2900|   632k|               else {
 2901|   632k|                  return nullptr;
 2902|   632k|               }
 2903|   632k|            }();
_ZZN3glz4fromILj10ENS_17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES1_EEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS9_ILm1EEEEERS5_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2931|   632k|               ctx, [&]() -> void* {
 2932|       |                  if constexpr (tracks_include_keys) {
 2933|       |                     return &fields;
 2934|       |                  }
 2935|   632k|                  else {
 2936|   632k|                     return nullptr;
 2937|   632k|                  }
 2938|   632k|               }()};
_ZZN3glz4fromILj10ENS_17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES1_EEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS9_ILm1EEEEERS5_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT1_OT2_OT3_T4_ENKUlOT_E_clIRNSt3__112basic_stringIcNSS_11char_traitsIcEENSS_9allocatorIcEEEEEEDaSP_:
 3189|  1.87M|                  auto reading = [&](auto&& key) {
 3190|       |                     if constexpr (Opts.partial_read) {
 3191|       |                        if (auto element = value.find(key); element != value.end()) {
 3192|       |                           ++read_count;
 3193|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3194|       |                        }
 3195|       |                        else {
 3196|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3197|       |                        }
 3198|       |                     }
 3199|  1.87M|                     else {
 3200|  1.87M|                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3201|  1.87M|                     }
 3202|  1.87M|                  };
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERNS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEETkNS_10is_contextERNS_7contextERPKcSC_EEvOT0_OT1_OT2_T3_:
   49|  2.13M|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  2.13M|         else {
   60|  2.13M|            using V = std::remove_cvref_t<T>;
   61|  2.13M|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  2.13M|                                             end);
   63|  2.13M|         }
   64|  2.13M|      }
_ZN3glz4fromILj10ENS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS4_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT0_OT1_OT2_T3_:
  150|  2.13M|      {
  151|  2.13M|         using V = std::decay_t<decltype(get_member(std::declval<Value>(), meta_wrapper_v<T>))>;
  152|  2.13M|         from<JSON, V>::template op<Opts>(get_member(std::forward<Value>(value), meta_wrapper_v<T>),
  153|  2.13M|                                          std::forward<Ctx>(ctx), std::forward<It0>(it), end);
  154|  2.13M|      }
_ZN3glz4fromILj10ENSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERSH_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT0_OT1_OT2_T3_:
 3860|  2.13M|      {
 3861|       |         if constexpr (tagging == variant_tagging_kind::adjacent) {
 3862|       |            read_adjacent<Options>(value, ctx, it, end);
 3863|       |         }
 3864|  2.13M|         else {
 3865|  2.13M|            read_deduced<Options>(value, ctx, it, end);
 3866|  2.13M|         }
 3867|  2.13M|      }
_ZN3glz4fromILj10ENSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEEE12read_deducedITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERSH_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT0_OT1_OT2_T3_:
 3871|  2.13M|      {
 3872|  2.13M|         constexpr auto Opts = ws_handled_off<Options>();
 3873|  2.13M|         if constexpr (variant_is_auto_deducible<T>()) {
 3874|       |            if constexpr (not check_ws_handled(Options)) {
 3875|       |               if (skip_ws<Opts>(ctx, it, end)) {
 3876|       |                  return;
 3877|       |               }
 3878|       |            }
 3879|       |
 3880|  2.13M|            switch (*it) {
 3881|      0|            case '\0':
  ------------------
  |  Branch (3881:13): [True: 0, False: 2.13M]
  ------------------
 3882|      0|               ctx.error = error_code::unexpected_end;
 3883|      0|               return;
 3884|   576k|            case '{': {
  ------------------
  |  Branch (3884:13): [True: 576k, False: 1.55M]
  ------------------
 3885|       |               // This branch consumes the brace itself and hands the object to a reader with
 3886|       |               // `opening_handled`, which therefore does not count the level -- but does release it at
 3887|       |               // the closing brace. So the level is taken here, in both buffer modes, and paid back by
 3888|       |               // the reader below.
 3889|   576k|               if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (3889:20): [True: 0, False: 576k]
  ------------------
 3890|      0|                  return;
 3891|      0|               }
 3892|       |
 3893|   576k|               ++it;
 3894|   576k|               if constexpr (not Opts.null_terminated) {
 3895|   576k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3895:23): [True: 0, False: 576k]
  ------------------
 3896|      0|                     ctx.error = error_code::unexpected_end;
 3897|      0|                     return;
 3898|      0|                  }
 3899|   576k|               }
 3900|   576k|               using type_counts = variant_type_count<T>;
 3901|   576k|               constexpr auto n_object_candidates = variant_object_candidate_count_v<Opts, T>;
 3902|       |               if constexpr (n_object_candidates < 1) {
 3903|       |                  ctx.error = error_code::no_matching_variant_type;
 3904|       |                  return;
 3905|       |               }
 3906|   576k|               else if constexpr (n_object_candidates == 1 && tag_v<T>.empty()) {
 3907|   576k|                  constexpr auto first_idx = variant_first_object_candidate_v<Opts, T>;
 3908|   576k|                  using V = std::variant_alternative_t<first_idx, T>;
 3909|   576k|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (3909:23): [True: 576k, False: 0]
  ------------------
 3910|   576k|                  parse<JSON>::op<opening_handled<Opts>()>(std::get<V>(value), ctx, it, end);
 3911|   576k|                  return;
 3912|       |               }
 3913|       |               else {
 3914|       |                  auto possible_types = bit_array<std::variant_size_v<T>>{}.flip();
 3915|       |                  static constexpr auto& deduction_bits = variant_deduction_bits<T>;
 3916|       |                  static constexpr size_t deduction_key_count = variant_deduction_key_count<T>;
 3917|       |                  static constexpr auto tag_literal = string_literal_from_view<tag_v<T>.size()>(tag_v<T>);
 3918|       |
 3919|       |                  // Track if we've encountered a tag and what value it had
 3920|       |                  std::optional<size_t> tag_specified_index{};
 3921|       |
 3922|       |                  if (skip_ws<Opts>(ctx, it, end)) {
 3923|       |                     return;
 3924|       |                  }
 3925|       |                  // Once the reader knows which alternative this object holds it may have to read
 3926|       |                  // it again from here. Anchor the position rather than keep the pointer: the scan
 3927|       |                  // below skips values, and a streaming skip refills, which moves the window out
 3928|       |                  // from under a raw pointer (see rewind_anchor).
 3929|       |                  auto start = make_rewind_anchor(ctx, it);
 3930|       |                  bool first_key = true;
 3931|       |                  // Parse bifurcation for tagged variants:
 3932|       |                  //
 3933|       |                  // Without this optimization, tagged variant parsing always uses two passes:
 3934|       |                  //   1. Scan all keys to find the tag (e.g. "type"), skipping values
 3935|       |                  //   2. Reset `it = start` and re-parse the entire object into the resolved type
 3936|       |                  //
 3937|       |                  // When the tag is the first key, the second pass redundantly re-reads every
 3938|       |                  // field that follows it. This lambda avoids that: if the tag was the first key,
 3939|       |                  // it advances past the trailing comma so the object parser picks up at the
 3940|       |                  // second field. If the tag was found later, it falls back to the full re-parse.
 3941|       |                  //
 3942|       |                  // One exception: if the tag name is also a field on the resolved struct
 3943|       |                  // (contains_tag), we must re-parse regardless so the value is stored in
 3944|       |                  // the struct field. This override is applied inside each std::visit lambda.
 3945|       |                  //
 3946|       |                  // Either way the rewind can fail under a streaming read: the window only holds so
 3947|       |                  // much, and an object wider than it has no start left to return to.
 3948|       |                  auto position_after_tag = [&] {
 3949|       |                     if (first_key) {
 3950|       |                        if (*it == ',') ++it; // skip comma; handles tag-only objects where *it == '}'
 3951|       |                        return true;
 3952|       |                     }
 3953|       |                     return start.rewind(ctx, it, end); // tag came later, re-parse from the beginning
 3954|       |                  };
 3955|       |                  // `first_key` also answers "were we reset to the object start", which is what
 3956|       |                  // position_after_tag does for every key but the first.
 3957|       |                  for (; *it != '}'; first_key = false) {
 3958|       |                     if (!first_key) {
 3959|       |                        if (match_invalid_end<',', Opts>(ctx, it, end)) {
 3960|       |                           return;
 3961|       |                        }
 3962|       |                     }
 3963|       |
 3964|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3965|       |                        return;
 3966|       |                     }
 3967|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3968|       |                        return;
 3969|       |                     }
 3970|       |
 3971|       |                     auto* key_start = it;
 3972|       |                     skip_string_view(ctx, it, end);
 3973|       |                     if (bool(ctx.error)) [[unlikely]]
 3974|       |                        return;
 3975|       |                     if (validate_utf8_span<Opts>(ctx, key_start, it)) [[unlikely]]
 3976|       |                        return;
 3977|       |                     const sv key = {key_start, size_t(it - key_start)};
 3978|       |
 3979|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3980|       |                        return;
 3981|       |                     }
 3982|       |
 3983|       |                     if constexpr (deduction_key_count > 0) {
 3984|       |                        // We first check if a tag is defined and see if the key matches the tag
 3985|       |                        if constexpr (not tag_v<T>.empty()) {
 3986|       |                           if (key == tag_v<T>) {
 3987|       |                              if (parse_ws_colon<Opts>(ctx, it, end)) {
 3988|       |                                 return;
 3989|       |                              }
 3990|       |
 3991|       |                              using id_type = std::decay_t<decltype(ids_v<T>[0])>;
 3992|       |
 3993|       |                              std::conditional_t<std::integral<id_type>, id_type, sv> type_id{};
 3994|       |                              if constexpr (std::integral<id_type>) {
 3995|       |                                 from<JSON, id_type>::template op<ws_handled<Opts>()>(type_id, ctx, it, end);
 3996|       |                              }
 3997|       |                              else {
 3998|       |                                 // The id is turned into an index below and never leaves this
 3999|       |                                 // reader, so the view of the window it borrows cannot outlive it.
 4000|       |                                 parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4001|       |                              }
 4002|       |                              if (bool(ctx.error)) [[unlikely]]
 4003|       |                                 return;
 4004|       |                              if (skip_ws<Opts>(ctx, it, end)) {
 4005|       |                                 return;
 4006|       |                              }
 4007|       |                              if (!(*it == ',' || *it == '}')) [[unlikely]] {
 4008|       |                                 ctx.error = error_code::syntax_error;
 4009|       |                                 return;
 4010|       |                              }
 4011|       |
 4012|       |                              size_t type_index;
 4013|       |                              if constexpr (std::integral<id_type>) {
 4014|       |                                 type_index = variant_id_to_index<T>::op(type_id);
 4015|       |                              }
 4016|       |                              else {
 4017|       |                                 type_index = variant_id_to_index<T>::op(
 4018|       |                                    type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4019|       |                              }
 4020|       |                              if (type_index < ids_v<T>.size()) [[likely]] {
 4021|       |                                 // Check if the deduced types include the tag-specified type
 4022|       |                                 // If not, the tag doesn't match the fields
 4023|       |                                 // We're already inside if constexpr (deduction_registry.size()), so we know deduction
 4024|       |                                 // is happening. At this point, possible_types has been narrowed by field deduction.
 4025|       |                                 // Check if the tag-specified type is still possible
 4026|       |                                 const bool type_is_possible = possible_types[type_index];
 4027|       |                                 if (!type_is_possible) {
 4028|       |                                    // Tag specifies a type that doesn't match the fields seen so far
 4029|       |                                    ctx.error = error_code::no_matching_variant_type;
 4030|       |                                    return;
 4031|       |                                 }
 4032|       |
 4033|       |                                 if (!position_after_tag()) return;
 4034|       |                                 tag_specified_index = type_index; // Store the tag-specified type
 4035|       |                                 if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4036|       |                                 std::visit(
 4037|       |                                    [&](auto&& v) {
 4038|       |                                       using V = std::decay_t<decltype(v)>;
 4039|       |                                       constexpr bool is_object =
 4040|       |                                          (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4041|       |                                       if constexpr (variant_unit_alternative<V>) {
 4042|       |                                          // A unit alternative carries no data; its object holds only the
 4043|       |                                          // discriminator. Consume that body through an empty reflected object so
 4044|       |                                          // unknown-key policy and terminator handling match every other alternative.
 4045|       |                                          detail::variant_unit_body unit_body{};
 4046|       |                                          from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4047|       |                                                                                             tag_literal>(unit_body,
 4048|       |                                                                                                          ctx, it, end);
 4049|       |                                       }
 4050|       |                                       else if constexpr (is_object) {
 4051|       |                                          if constexpr (contains_tag<V, tag_literal>()) {
 4052|       |                                             // tag is a struct field, must re-parse
 4053|       |                                             if (!start.rewind(ctx, it, end)) return;
 4054|       |                                          }
 4055|       |                                          from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it,
 4056|       |                                                                                                           end);
 4057|       |                                       }
 4058|       |                                       else if constexpr (is_memory_object<V>) {
 4059|       |                                          if (!v) {
 4060|       |                                             if constexpr (is_specialization_v<V, std::optional>) {
 4061|       |                                                if constexpr (requires { v.emplace(); }) {
 4062|       |                                                   v.emplace();
 4063|       |                                                }
 4064|       |                                                else {
 4065|       |                                                   v = typename V::value_type{};
 4066|       |                                                }
 4067|       |                                             }
 4068|       |                                             else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4069|       |                                                v = std::make_unique<typename V::element_type>();
 4070|       |                                             else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4071|       |                                                v = std::make_shared<typename V::element_type>();
 4072|       |                                             else if constexpr (constructible<V>) {
 4073|       |                                                v = meta_construct_v<V>();
 4074|       |                                             }
 4075|       |                                             else if constexpr (std::is_pointer_v<V> &&
 4076|       |                                                                can_allocate_raw_pointer<Opts,
 4077|       |                                                                                         std::decay_t<decltype(ctx)>>) {
 4078|       |                                                if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4079|       |                                                   return;
 4080|       |                                                }
 4081|       |                                             }
 4082|       |                                             else {
 4083|       |                                                ctx.error = error_code::invalid_nullable_read;
 4084|       |                                                return;
 4085|       |                                                // Cannot read into unset nullable that is not std::optional,
 4086|       |                                                // std::unique_ptr, or std::shared_ptr
 4087|       |                                             }
 4088|       |                                          }
 4089|       |                                          if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4090|       |                                             // tag is a struct field, must re-parse
 4091|       |                                             if (!start.rewind(ctx, it, end)) return;
 4092|       |                                          }
 4093|       |                                          from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4094|       |                                             *v, ctx, it, end);
 4095|       |                                       }
 4096|       |                                       else if constexpr (custom_read<V>) {
 4097|       |                                          // Custom handlers parse the remaining body themselves and do not
 4098|       |                                          // accept the tag template parameter; the tag was already consumed.
 4099|       |                                          // This only works when the tag was the first key. If it came later,
 4100|       |                                          // we were reset to the object start and the custom handler would
 4101|       |                                          // absorb the tag, so error rather than corrupt the value.
 4102|       |                                          if (!first_key) {
 4103|       |                                             ctx.error = error_code::feature_not_supported;
 4104|       |                                             ctx.custom_error_message =
 4105|       |                                                "the tag must be the first key for a custom variant alternative";
 4106|       |                                             return;
 4107|       |                                          }
 4108|       |                                          from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4109|       |                                       }
 4110|       |                                    },
 4111|       |                                    value);
 4112|       |
 4113|       |                                 return; // we've decoded our target type
 4114|       |                              }
 4115|       |                              else [[unlikely]] {
 4116|       |                                 // Check if we have a default type (ids array shorter than variant)
 4117|       |                                 constexpr auto ids_size = ids_v<T>.size();
 4118|       |                                 constexpr auto variant_size = std::variant_size_v<T>;
 4119|       |                                 if constexpr (ids_size < variant_size) {
 4120|       |                                    // Use the first unlabeled type as the default
 4121|       |                                    const auto default_type_index = ids_size;
 4122|       |
 4123|       |                                    if (!position_after_tag()) return;
 4124|       |                                    tag_specified_index = default_type_index; // Store the default type index
 4125|       |                                    if (value.index() != default_type_index)
 4126|       |                                       emplace_runtime_variant(value, default_type_index);
 4127|       |                                    std::visit(
 4128|       |                                       [&](auto&& v) {
 4129|       |                                          using V = std::decay_t<decltype(v)>;
 4130|       |                                          constexpr bool is_object =
 4131|       |                                             (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4132|       |                                          if constexpr (variant_unit_alternative<V>) {
 4133|       |                                             // A unit alternative carries no data; its object holds only the
 4134|       |                                             // discriminator. Consume that body through an empty reflected object so
 4135|       |                                             // unknown-key policy and terminator handling match every other
 4136|       |                                             // alternative.
 4137|       |                                             detail::variant_unit_body unit_body{};
 4138|       |                                             from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4139|       |                                                                                                tag_literal>(
 4140|       |                                                unit_body, ctx, it, end);
 4141|       |                                          }
 4142|       |                                          else if constexpr (is_object) {
 4143|       |                                             if constexpr (contains_tag<V, tag_literal>()) {
 4144|       |                                                // tag is a struct field, must re-parse
 4145|       |                                                if (!start.rewind(ctx, it, end)) return;
 4146|       |                                             }
 4147|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4148|       |                                          }
 4149|       |                                          else if constexpr (is_memory_object<V>) {
 4150|       |                                             if (!v) {
 4151|       |                                                if constexpr (is_specialization_v<V, std::optional>) {
 4152|       |                                                   if constexpr (requires { v.emplace(); }) {
 4153|       |                                                      v.emplace();
 4154|       |                                                   }
 4155|       |                                                   else {
 4156|       |                                                      v = typename V::value_type{};
 4157|       |                                                   }
 4158|       |                                                }
 4159|       |                                                else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4160|       |                                                   v = std::make_unique<typename V::element_type>();
 4161|       |                                                else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4162|       |                                                   v = std::make_shared<typename V::element_type>();
 4163|       |                                                else if constexpr (constructible<V>) {
 4164|       |                                                   v = meta_construct_v<V>();
 4165|       |                                                }
 4166|       |                                                else if constexpr (std::is_pointer_v<V> &&
 4167|       |                                                                   can_allocate_raw_pointer<
 4168|       |                                                                      Opts, std::decay_t<decltype(ctx)>>) {
 4169|       |                                                   if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4170|       |                                                      return;
 4171|       |                                                   }
 4172|       |                                                }
 4173|       |                                                else {
 4174|       |                                                   ctx.error = error_code::invalid_nullable_read;
 4175|       |                                                   return;
 4176|       |                                                }
 4177|       |                                             }
 4178|       |                                             if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4179|       |                                                // tag is a struct field, must re-parse
 4180|       |                                                if (!start.rewind(ctx, it, end)) return;
 4181|       |                                             }
 4182|       |                                             from<JSON, memory_type<V>>::template op<opening_handled<Opts>()>(*v, ctx,
 4183|       |                                                                                                              it, end);
 4184|       |                                          }
 4185|       |                                          else if constexpr (custom_read<V>) {
 4186|       |                                             // Custom handlers parse the remaining body themselves; this only
 4187|       |                                             // works when the tag was the first key (see above). If it came
 4188|       |                                             // later we were reset to the object start, so error rather than
 4189|       |                                             // let the custom handler absorb the tag.
 4190|       |                                             if (!first_key) {
 4191|       |                                                ctx.error = error_code::feature_not_supported;
 4192|       |                                                ctx.custom_error_message =
 4193|       |                                                   "the tag must be the first key for a custom variant alternative";
 4194|       |                                                return;
 4195|       |                                             }
 4196|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4197|       |                                          }
 4198|       |                                       },
 4199|       |                                       value);
 4200|       |
 4201|       |                                    return;
 4202|       |                                 }
 4203|       |                                 else {
 4204|       |                                    ctx.error = error_code::no_matching_variant_type;
 4205|       |                                    ctx.custom_error_message = variant_ids_string_v<T>;
 4206|       |                                    return;
 4207|       |                                 }
 4208|       |                              }
 4209|       |                           }
 4210|       |                        }
 4211|       |
 4212|       |                        // Inline decode_hash lookup for variant deduction
 4213|       |                        using deduction_keys_t = keys_wrapper<variant_deduction_keys<T>>;
 4214|       |                        constexpr auto& DeductionHashInfo = hash_info<deduction_keys_t>;
 4215|       |                        const auto deduction_index =
 4216|       |                           decode_hash_with_size<JSON, deduction_keys_t, DeductionHashInfo, DeductionHashInfo.type>::op(
 4217|       |                              key.data(), key.data() + key.size(), key.size());
 4218|       |                        if (deduction_index < deduction_key_count && variant_deduction_keys<T>[deduction_index] == key)
 4219|       |                           [[likely]] {
 4220|       |                           possible_types &= deduction_bits[deduction_index];
 4221|       |                        }
 4222|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4223|       |                           ctx.error = error_code::unknown_key;
 4224|       |                           return;
 4225|       |                        }
 4226|       |                     }
 4227|       |                     else if constexpr (not tag_v<T>.empty()) {
 4228|       |                        // empty object case for variant, if there are no normal elements
 4229|       |                        if (key == tag_v<T>) {
 4230|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4231|       |                              return;
 4232|       |                           }
 4233|       |
 4234|       |                           // The id is turned into an index below and never leaves this reader,
 4235|       |                           // so the view of the window it borrows cannot outlive that window.
 4236|       |                           std::string_view type_id{};
 4237|       |                           parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4238|       |                           if (bool(ctx.error)) [[unlikely]]
 4239|       |                              return;
 4240|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4241|       |                              return;
 4242|       |                           }
 4243|       |
 4244|       |                           const auto type_index = variant_id_to_index<T>::op(
 4245|       |                              type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4246|       |                           if (type_index < ids_v<T>.size()) [[likely]] {
 4247|       |                              if (!position_after_tag()) return;
 4248|       |                              tag_specified_index = type_index; // Store the tag-specified type
 4249|       |                              if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4250|       |                           }
 4251|       |                           else {
 4252|       |                              // Check if we have a default type (ids array shorter than variant)
 4253|       |                              constexpr auto ids_size = ids_v<T>.size();
 4254|       |                              constexpr auto variant_size = std::variant_size_v<T>;
 4255|       |                              if constexpr (ids_size < variant_size) {
 4256|       |                                 // Use the first unlabeled type as the default
 4257|       |                                 if (!position_after_tag()) return;
 4258|       |                                 const auto default_index = ids_size;
 4259|       |                                 tag_specified_index = default_index; // Store the default type index
 4260|       |                                 if (value.index() != default_index) emplace_runtime_variant(value, default_index);
 4261|       |                              }
 4262|       |                              else {
 4263|       |                                 ctx.error = error_code::no_matching_variant_type;
 4264|       |                                 ctx.custom_error_message = variant_ids_string_v<T>;
 4265|       |                                 return;
 4266|       |                              }
 4267|       |                           }
 4268|       |                           // Parse the type (handles tag skipping and unknown keys)
 4269|       |                           std::visit(
 4270|       |                              [&](auto&& v) {
 4271|       |                                 using V = std::decay_t<decltype(v)>;
 4272|       |                                 if constexpr (custom_read<V>) {
 4273|       |                                    // Custom handlers parse the remaining object body themselves and do not
 4274|       |                                    // accept the tag template parameter that reflected objects use to skip an
 4275|       |                                    // interior tag key. That only works when the tag is the first key (it was
 4276|       |                                    // just consumed). If the tag came after other keys, position_after_tag()
 4277|       |                                    // reset us to the object start and the custom handler would absorb the tag
 4278|       |                                    // into its value, so error here rather than corrupt the result.
 4279|       |                                    if (!first_key) {
 4280|       |                                       ctx.error = error_code::feature_not_supported;
 4281|       |                                       ctx.custom_error_message =
 4282|       |                                          "the tag must be the first key for a custom variant alternative";
 4283|       |                                       return;
 4284|       |                                    }
 4285|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4286|       |                                 }
 4287|       |                                 else {
 4288|       |                                    if constexpr (contains_tag<V, tag_literal>()) {
 4289|       |                                       // tag is a struct field, must re-parse
 4290|       |                                       if (!start.rewind(ctx, it, end)) return;
 4291|       |                                    }
 4292|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4293|       |                                 }
 4294|       |                              },
 4295|       |                              value);
 4296|       |                           return;
 4297|       |                        }
 4298|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4299|       |                           ctx.error = error_code::unknown_key;
 4300|       |                           return;
 4301|       |                        }
 4302|       |                        else {
 4303|       |                           // Skip unknown key's value (non-tag key in empty variant)
 4304|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4305|       |                              return;
 4306|       |                           }
 4307|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 4308|       |                           if (bool(ctx.error)) [[unlikely]]
 4309|       |                              return;
 4310|       |                           resync_window_end(ctx, end); // a streaming skip refills
 4311|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4312|       |                              return;
 4313|       |                           }
 4314|       |                           continue; // Continue loop to find the tag
 4315|       |                        }
 4316|       |                     }
 4317|       |                     else if constexpr (Opts.error_on_unknown_keys) {
 4318|       |                        ctx.error = error_code::unknown_key;
 4319|       |                        return;
 4320|       |                     }
 4321|       |
 4322|       |                     auto matching_types = possible_types.popcount();
 4323|       |                     if (matching_types == 0) {
 4324|       |                        ctx.error = error_code::no_matching_variant_type;
 4325|       |                        return;
 4326|       |                     }
 4327|       |                     // Only short-circuit for variants without tags
 4328|       |                     else if constexpr (tag_v<T>.empty()) {
 4329|       |                        if (matching_types == 1) {
 4330|       |                           if (!start.rewind(ctx, it, end)) return;
 4331|       |                           const auto type_index = possible_types.countr_zero();
 4332|       |
 4333|       |                           if (value.index() != static_cast<size_t>(type_index))
 4334|       |                              emplace_runtime_variant(value, type_index);
 4335|       |                           std::visit(
 4336|       |                              [&](auto&& v) {
 4337|       |                                 using V = std::decay_t<decltype(v)>;
 4338|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4339|       |                                 if constexpr (variant_unit_alternative<V>) {
 4340|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4341|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4342|       |                                    // terminator handling match every other alternative.
 4343|       |                                    detail::variant_unit_body unit_body{};
 4344|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4345|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4346|       |                                                                                                    end);
 4347|       |                                 }
 4348|       |                                 else if constexpr (is_object) {
 4349|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4350|       |                                 }
 4351|       |                                 else if constexpr (is_memory_object<V>) {
 4352|       |                                    if (!v) {
 4353|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4354|       |                                          if constexpr (requires { v.emplace(); }) {
 4355|       |                                             v.emplace();
 4356|       |                                          }
 4357|       |                                          else {
 4358|       |                                             v = typename V::value_type{};
 4359|       |                                          }
 4360|       |                                       }
 4361|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4362|       |                                          v = std::make_unique<typename V::element_type>();
 4363|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4364|       |                                          v = std::make_shared<typename V::element_type>();
 4365|       |                                       else if constexpr (constructible<V>) {
 4366|       |                                          v = meta_construct_v<V>();
 4367|       |                                       }
 4368|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4369|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4370|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4371|       |                                             return;
 4372|       |                                          }
 4373|       |                                       }
 4374|       |                                       else {
 4375|       |                                          ctx.error = error_code::invalid_nullable_read;
 4376|       |                                          return;
 4377|       |                                          // Cannot read into unset nullable that is not std::optional,
 4378|       |                                          // std::unique_ptr, or std::shared_ptr
 4379|       |                                       }
 4380|       |                                    }
 4381|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4382|       |                                       *v, ctx, it, end);
 4383|       |                                 }
 4384|       |                                 else if constexpr (custom_read<V>) {
 4385|       |                                    // Custom handlers parse the remaining body themselves.
 4386|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4387|       |                                 }
 4388|       |                              },
 4389|       |                              value);
 4390|       |
 4391|       |                           return; // we've decoded our target type
 4392|       |                        }
 4393|       |                     }
 4394|       |                     // For tagged variants, continue processing to validate tags
 4395|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 4396|       |                        return;
 4397|       |                     }
 4398|       |
 4399|       |                     skip_value<JSON>::op<Opts>(ctx, it, end);
 4400|       |                     if (bool(ctx.error)) [[unlikely]]
 4401|       |                        return;
 4402|       |                     resync_window_end(ctx, end); // a streaming skip refills
 4403|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 4404|       |                        return;
 4405|       |                     }
 4406|       |                  }
 4407|       |                  // Only apply ambiguous variant resolution if we have multiple object types
 4408|       |                  if constexpr ((type_counts::n_object + type_counts::n_nullable_object) > 1) {
 4409|       |                     // After parsing all keys, check if we have multiple matching types
 4410|       |                     // If so, choose the one with the fewest fields
 4411|       |                     auto final_matching = possible_types.popcount();
 4412|       |                     if (final_matching == 0) {
 4413|       |                        ctx.error = error_code::no_matching_variant_type;
 4414|       |                     }
 4415|       |                     else if (final_matching == 1) {
 4416|       |                        // Single type remains after field deduction
 4417|       |                        const auto type_index = possible_types.countr_zero();
 4418|       |
 4419|       |                        // Validate against tag if one was specified
 4420|       |                        if (tag_specified_index.has_value() &&
 4421|       |                            tag_specified_index.value() != static_cast<size_t>(type_index)) {
 4422|       |                           ctx.error = error_code::no_matching_variant_type;
 4423|       |                           return;
 4424|       |                        }
 4425|       |
 4426|       |                        if (!start.rewind(ctx, it, end)) return;
 4427|       |                        if (value.index() != static_cast<size_t>(type_index))
 4428|       |                           emplace_runtime_variant(value, type_index);
 4429|       |                        std::visit(
 4430|       |                           [&](auto&& v) {
 4431|       |                              using V = std::decay_t<decltype(v)>;
 4432|       |                              constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4433|       |                              if constexpr (variant_unit_alternative<V>) {
 4434|       |                                 // A unit alternative carries no data; its object holds only the discriminator.
 4435|       |                                 // Consume that body through an empty reflected object so unknown-key policy and
 4436|       |                                 // terminator handling match every other alternative.
 4437|       |                                 detail::variant_unit_body unit_body{};
 4438|       |                                 from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4439|       |                                                                                    tag_literal>(unit_body, ctx, it,
 4440|       |                                                                                                 end);
 4441|       |                              }
 4442|       |                              else if constexpr (is_object) {
 4443|       |                                 from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4444|       |                              }
 4445|       |                              else if constexpr (is_memory_object<V>) {
 4446|       |                                 if (!v) {
 4447|       |                                    if constexpr (is_specialization_v<V, std::optional>) {
 4448|       |                                       if constexpr (requires { v.emplace(); }) {
 4449|       |                                          v.emplace();
 4450|       |                                       }
 4451|       |                                       else {
 4452|       |                                          v = typename V::value_type{};
 4453|       |                                       }
 4454|       |                                    }
 4455|       |                                    else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4456|       |                                       v = std::make_unique<typename V::element_type>();
 4457|       |                                    else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4458|       |                                       v = std::make_shared<typename V::element_type>();
 4459|       |                                    else if constexpr (constructible<V>) {
 4460|       |                                       v = meta_construct_v<V>();
 4461|       |                                    }
 4462|       |                                    else if constexpr (std::is_pointer_v<V> &&
 4463|       |                                                       can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4464|       |                                       if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4465|       |                                          return;
 4466|       |                                       }
 4467|       |                                    }
 4468|       |                                    else {
 4469|       |                                       ctx.error = error_code::invalid_nullable_read;
 4470|       |                                       return;
 4471|       |                                    }
 4472|       |                                 }
 4473|       |                                 from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(*v, ctx,
 4474|       |                                                                                                               it, end);
 4475|       |                              }
 4476|       |                              else if constexpr (custom_read<V>) {
 4477|       |                                 // Custom handlers parse the remaining body themselves.
 4478|       |                                 from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4479|       |                              }
 4480|       |                           },
 4481|       |                           value);
 4482|       |                     }
 4483|       |                     else if (final_matching > 1) {
 4484|       |                        constexpr auto N = std::variant_size_v<T>;
 4485|       |
 4486|       |                        // Compile-time array of field counts for each variant type
 4487|       |                        constexpr auto field_counts = []<size_t... I>(std::index_sequence<I...>) {
 4488|       |                           return std::array<size_t, N> {
 4489|       |                              ([]<size_t J = I>() -> size_t {
 4490|       |                                 using V = std::decay_t<std::variant_alternative_t<J, T>>;
 4491|       |                                 if constexpr (glaze_object_t<V> || reflectable<V>) {
 4492|       |                                    return reflect<V>::size;
 4493|       |                                 }
 4494|       |                                 else if constexpr (is_memory_object<V>) {
 4495|       |                                    using X = memory_type<V>;
 4496|       |                                    if constexpr (glaze_object_t<X> || reflectable<X>) {
 4497|       |                                       return reflect<X>::size;
 4498|       |                                    }
 4499|       |                                    else {
 4500|       |                                       return (std::numeric_limits<size_t>::max)();
 4501|       |                                    }
 4502|       |                                 }
 4503|       |                                 else {
 4504|       |                                    return (std::numeric_limits<size_t>::max)();
 4505|       |                                 }
 4506|       |                              }.template operator()<I>())...
 4507|       |                           };
 4508|       |                        }(std::make_index_sequence<N>{});
 4509|       |
 4510|       |                        // Find the type with minimum field count among the possible types
 4511|       |                        size_t min_fields = (std::numeric_limits<size_t>::max)();
 4512|       |                        size_t chosen_index = N; // Invalid index initially
 4513|       |
 4514|       |                        for (size_t i = 0; i < N; ++i) {
 4515|       |                           if (possible_types[i] && field_counts[i] < min_fields) {
 4516|       |                              min_fields = field_counts[i];
 4517|       |                              chosen_index = i;
 4518|       |                           }
 4519|       |                        }
 4520|       |
 4521|       |                        if (chosen_index < N) {
 4522|       |                           // Validate against tag if one was specified
 4523|       |                           if (tag_specified_index.has_value() && tag_specified_index.value() != chosen_index) {
 4524|       |                              ctx.error = error_code::no_matching_variant_type;
 4525|       |                              return;
 4526|       |                           }
 4527|       |
 4528|       |                           if (!start.rewind(ctx, it, end)) return;
 4529|       |                           if (value.index() != chosen_index) emplace_runtime_variant(value, chosen_index);
 4530|       |                           std::visit(
 4531|       |                              [&](auto&& v) {
 4532|       |                                 using V = std::decay_t<decltype(v)>;
 4533|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4534|       |                                 if constexpr (variant_unit_alternative<V>) {
 4535|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4536|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4537|       |                                    // terminator handling match every other alternative.
 4538|       |                                    detail::variant_unit_body unit_body{};
 4539|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4540|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4541|       |                                                                                                    end);
 4542|       |                                 }
 4543|       |                                 else if constexpr (is_object) {
 4544|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4545|       |                                 }
 4546|       |                                 else if constexpr (is_memory_object<V>) {
 4547|       |                                    if (!v) {
 4548|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4549|       |                                          if constexpr (requires { v.emplace(); }) {
 4550|       |                                             v.emplace();
 4551|       |                                          }
 4552|       |                                          else {
 4553|       |                                             v = typename V::value_type{};
 4554|       |                                          }
 4555|       |                                       }
 4556|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4557|       |                                          v = std::make_unique<typename V::element_type>();
 4558|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4559|       |                                          v = std::make_shared<typename V::element_type>();
 4560|       |                                       else if constexpr (constructible<V>) {
 4561|       |                                          v = meta_construct_v<V>();
 4562|       |                                       }
 4563|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4564|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4565|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4566|       |                                             return;
 4567|       |                                          }
 4568|       |                                       }
 4569|       |                                       else {
 4570|       |                                          ctx.error = error_code::invalid_nullable_read;
 4571|       |                                          return;
 4572|       |                                       }
 4573|       |                                    }
 4574|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4575|       |                                       *v, ctx, it, end);
 4576|       |                                 }
 4577|       |                                 else if constexpr (custom_read<V>) {
 4578|       |                                    // Custom handlers parse the remaining body themselves.
 4579|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4580|       |                                 }
 4581|       |                              },
 4582|       |                              value);
 4583|       |                        }
 4584|       |                        else {
 4585|       |                           ctx.error = error_code::no_matching_variant_type;
 4586|       |                        }
 4587|       |                     }
 4588|       |                  }
 4589|       |                  else {
 4590|       |                     // For variants with 0 or 1 object types, use the original error handling
 4591|       |                     ctx.error = error_code::no_matching_variant_type;
 4592|       |                  }
 4593|       |               }
 4594|      0|               break;
 4595|   576k|            }
 4596|    149|            case '[':
  ------------------
  |  Branch (4596:13): [True: 149, False: 2.13M]
  ------------------
 4597|       |               // As with '{' above: the array reader each alternative goes through counts the level.
 4598|    149|               process_variant_alternatives<T, is_variant_array>::template op<Opts>(value, ctx, it, end);
 4599|    149|               break;
 4600|   946k|            case '"': {
  ------------------
  |  Branch (4600:13): [True: 946k, False: 1.19M]
  ------------------
 4601|   946k|               process_variant_alternatives<T, is_variant_str>::template op<Opts>(value, ctx, it, end);
 4602|   946k|               break;
 4603|   576k|            }
 4604|      0|            case 't':
  ------------------
  |  Branch (4604:13): [True: 0, False: 2.13M]
  ------------------
 4605|      0|            case 'f': {
  ------------------
  |  Branch (4605:13): [True: 0, False: 2.13M]
  ------------------
 4606|      0|               process_variant_alternatives<T, is_variant_bool>::template op<Opts>(value, ctx, it, end);
 4607|      0|               break;
 4608|      0|            }
 4609|   277k|            case 'n':
  ------------------
  |  Branch (4609:13): [True: 277k, False: 1.85M]
  ------------------
 4610|       |               if constexpr (variant_count_v<T, is_variant_null> == 0) {
 4611|       |                  ctx.error = error_code::no_matching_variant_type;
 4612|       |               }
 4613|   277k|               else {
 4614|   277k|                  constexpr auto first_idx = variant_first_index_v<T, is_variant_null>;
 4615|   277k|                  using V = std::variant_alternative_t<first_idx, T>;
 4616|   277k|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (4616:23): [True: 0, False: 277k]
  ------------------
 4617|   277k|                  match<"null", Opts>(ctx, it, end);
 4618|   277k|               }
 4619|   277k|               break;
 4620|   335k|            default: {
  ------------------
  |  Branch (4620:13): [True: 335k, False: 1.80M]
  ------------------
 4621|       |               // Not bool, string, object, or array so must be number or null
 4622|   335k|               process_variant_alternatives<T, is_variant_num>::template op<Opts>(value, ctx, it, end);
 4623|   335k|            }
 4624|  2.13M|            }
 4625|       |         }
 4626|       |         else {
 4627|       |            // For non-auto-deducible variants, try each type until one succeeds
 4628|       |            constexpr auto N = std::variant_size_v<T>;
 4629|       |            bool parsed = false;
 4630|       |            bool exhausted = false; // speculation budget spent; see charge_speculation
 4631|       |
 4632|       |            for_each<N>([&]<size_t I>() {
 4633|       |               if (parsed || exhausted || variant_alternative_exhausted(ctx)) return;
 4634|       |
 4635|       |               auto copy_it = it;
 4636|       |               // A rejected alternative may have bailed out inside a container, which leaves its
 4637|       |               // nesting level counted (see enter_depth), so the depth rewinds with the iterator.
 4638|       |               const auto copy_depth = ctx.depth;
 4639|       |
 4640|       |               // Try parsing as this type
 4641|       |               if (value.index() != I) {
 4642|       |                  emplace_runtime_variant(value, I);
 4643|       |               }
 4644|       |
 4645|       |               std::visit([&](auto&& v) { parse<JSON>::op<Options>(v, ctx, it, end); }, value);
 4646|       |               if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 4647|       |                  exhausted = true; // only rejected attempts are charged; see charge_speculation
 4648|       |               }
 4649|       |
 4650|       |               if (!bool(ctx.error)) {
 4651|       |                  parsed = true;
 4652|       |               }
 4653|       |               else if constexpr (not Options.null_terminated) {
 4654|       |                  // In non-null-terminated mode, if we hit end_reached after advancing the iterator,
 4655|       |                  // it means we successfully parsed the value but couldn't skip trailing whitespace
 4656|       |                  if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 4657|       |                     // We advanced the iterator, so we did parse something -- unless what advanced it
 4658|       |                     // was an abandoned attempt, which is what a spent speculation budget means.
 4659|       |                     parsed = true;
 4660|       |                     ctx.error = error_code::none;
 4661|       |                  }
 4662|       |                  else {
 4663|       |                     // Reset for next attempt (unless this is the last type)
 4664|       |                     it = copy_it;
 4665|       |                     rewind_depth<Options>(ctx, copy_depth);
 4666|       |                     if constexpr (I + 1 < N) {
 4667|       |                        if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4668|       |                           ctx.error = error_code::none; // Clear error for next attempt
 4669|       |                        }
 4670|       |                     }
 4671|       |                  }
 4672|       |               }
 4673|       |               else {
 4674|       |                  // Reset for next attempt (unless this is the last type)
 4675|       |                  it = copy_it;
 4676|       |                  rewind_depth<Options>(ctx, copy_depth);
 4677|       |                  if constexpr (I + 1 < N) {
 4678|       |                     if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4679|       |                        ctx.error = error_code::none; // Clear error for next attempt
 4680|       |                     }
 4681|       |                  }
 4682|       |               }
 4683|       |            });
 4684|       |         }
 4685|  2.13M|      }
_ZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_:
 3520|  20.7k|      {
 3521|  20.7k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3522|       |
 3523|       |         if constexpr (category_count == 0) {
 3524|       |            ctx.error = error_code::no_matching_variant_type;
 3525|       |         }
 3526|  20.7k|         else {
 3527|  20.7k|            constexpr auto N = std::variant_size_v<Variant>;
 3528|  20.7k|            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3529|  20.7k|            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3530|       |
 3531|  20.7k|            bool found_match{};
 3532|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3533|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3534|       |            // so the budget stops it and the failure already in hand is reported.
 3535|  20.7k|            bool exhausted{};
 3536|       |
 3537|       |            // First pass: const glaze types in this category
 3538|       |            if constexpr (const_count > 0) {
 3539|       |               for_each<N>([&]<size_t I>() {
 3540|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3541|       |                     return;
 3542|       |                  }
 3543|       |                  using V = std::variant_alternative_t<I, Variant>;
 3544|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3545|       |                     // run time substitute to compare to const value
 3546|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3547|       |                     auto copy_it{it};
 3548|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3549|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3550|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3551|       |                     const auto copy_depth{ctx.depth};
 3552|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3553|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3554|       |                     if (substitute == const_value) {
 3555|       |                        found_match = true;
 3556|       |                        if (!std::holds_alternative<V>(value)) {
 3557|       |                           value = V{};
 3558|       |                        }
 3559|       |                     }
 3560|       |                     else {
 3561|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3562|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3563|       |                           exhausted = true;
 3564|       |                        }
 3565|       |                        if constexpr (not Options.null_terminated) {
 3566|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3567|       |                              ctx.error = error_code::none;
 3568|       |                           }
 3569|       |                        }
 3570|       |                        it = copy_it;
 3571|       |                        rewind_depth<Options>(ctx, copy_depth);
 3572|       |                     }
 3573|       |                  }
 3574|       |               });
 3575|       |               if (found_match) {
 3576|       |                  return;
 3577|       |               }
 3578|       |            }
 3579|       |
 3580|       |            // Second pass: non-const types in this category
 3581|  20.7k|            if constexpr (non_const_count > 0) {
 3582|       |               // Track position within matching types for "is last" check.
 3583|       |               // We iterate over all variant indices but only process matching types,
 3584|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3585|       |               // the loop index directly corresponded to position in filtered set).
 3586|       |               // This has negligible cost: one increment per matching type.
 3587|  20.7k|               size_t non_const_idx = 0;
 3588|       |
 3589|  20.7k|               for_each<N>([&]<size_t I>() {
 3590|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3591|  20.7k|                     return;
 3592|  20.7k|                  }
 3593|  20.7k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|  20.7k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|  20.7k|                     auto copy_it{it};
 3596|  20.7k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|  20.7k|                     if (!std::holds_alternative<V>(value)) {
 3598|  20.7k|                        value = V{};
 3599|  20.7k|                     }
 3600|  20.7k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|  20.7k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|  20.7k|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|  20.7k|                     }
 3604|  20.7k|                     if (!bool(ctx.error)) {
 3605|  20.7k|                        found_match = true;
 3606|  20.7k|                     }
 3607|  20.7k|                     else if constexpr (not Options.null_terminated) {
 3608|  20.7k|                        constexpr bool is_complete_type =
 3609|  20.7k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|  20.7k|                        if constexpr (is_complete_type) {
 3612|  20.7k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|  20.7k|                              found_match = true;
 3614|  20.7k|                              ctx.error = error_code::none;
 3615|  20.7k|                           }
 3616|  20.7k|                           else {
 3617|  20.7k|                              it = copy_it;
 3618|  20.7k|                              rewind_depth<Options>(ctx, copy_depth);
 3619|  20.7k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|  20.7k|                                  not variant_alternative_exhausted(ctx)) {
 3621|  20.7k|                                 ctx.error = error_code::none;
 3622|  20.7k|                              }
 3623|  20.7k|                           }
 3624|  20.7k|                        }
 3625|  20.7k|                        else {
 3626|  20.7k|                           it = copy_it;
 3627|  20.7k|                           rewind_depth<Options>(ctx, copy_depth);
 3628|  20.7k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|  20.7k|                               not variant_alternative_exhausted(ctx)) {
 3630|  20.7k|                              ctx.error = error_code::none;
 3631|  20.7k|                           }
 3632|  20.7k|                        }
 3633|  20.7k|                     }
 3634|  20.7k|                     else {
 3635|  20.7k|                        it = copy_it;
 3636|  20.7k|                        rewind_depth<Options>(ctx, copy_depth);
 3637|  20.7k|                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|  20.7k|                            not variant_alternative_exhausted(ctx)) {
 3639|  20.7k|                           ctx.error = error_code::none;
 3640|  20.7k|                        }
 3641|  20.7k|                     }
 3642|  20.7k|                     ++non_const_idx;
 3643|  20.7k|                  }
 3644|  20.7k|               });
 3645|  20.7k|               if (!found_match) {
  ------------------
  |  Branch (3645:20): [True: 6.05k, False: 14.7k]
  ------------------
 3646|  6.05k|                  if constexpr (non_const_count == 1) {
 3647|       |                     // Keep the specific error from the single type we tried
 3648|       |                  }
 3649|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3650|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3651|       |                     ctx.error = error_code::no_matching_variant_type;
 3652|       |                  }
 3653|  6.05k|               }
 3654|       |            }
 3655|       |            else {
 3656|       |               ctx.error = error_code::no_matching_variant_type;
 3657|       |            }
 3658|  20.7k|         }
 3659|  20.7k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm0EEEDav:
 3589|  20.7k|               for_each<N>([&]<size_t I>() {
 3590|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 20.7k]
  |  Branch (3590:38): [True: 0, False: 20.7k]
  |  Branch (3590:51): [True: 0, False: 20.7k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|  20.7k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|  20.7k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm1EEEDav:
 3589|  20.7k|               for_each<N>([&]<size_t I>() {
 3590|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 20.7k]
  |  Branch (3590:38): [True: 0, False: 20.7k]
  |  Branch (3590:51): [True: 0, False: 20.7k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|  20.7k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|  20.7k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm2EEEDav:
 3589|  20.7k|               for_each<N>([&]<size_t I>() {
 3590|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 20.7k]
  |  Branch (3590:38): [True: 0, False: 20.7k]
  |  Branch (3590:51): [True: 0, False: 20.7k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|  20.7k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|  20.7k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm3EEEDav:
 3589|  20.7k|               for_each<N>([&]<size_t I>() {
 3590|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 20.7k]
  |  Branch (3590:38): [True: 0, False: 20.7k]
  |  Branch (3590:51): [True: 0, False: 20.7k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|  20.7k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|  20.7k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm4EEEDav:
 3589|  20.7k|               for_each<N>([&]<size_t I>() {
 3590|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 20.7k]
  |  Branch (3590:38): [True: 0, False: 20.7k]
  |  Branch (3590:51): [True: 0, False: 20.7k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|  20.7k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|  20.7k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|  20.7k|                     auto copy_it{it};
 3596|  20.7k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|  20.7k|                     if (!std::holds_alternative<V>(value)) {
  ------------------
  |  Branch (3597:26): [True: 20.7k, False: 0]
  ------------------
 3598|  20.7k|                        value = V{};
 3599|  20.7k|                     }
 3600|  20.7k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|  20.7k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
  ------------------
  |  Branch (3601:26): [True: 6.05k, False: 14.7k]
  |  Branch (3601:45): [True: 0, False: 6.05k]
  ------------------
 3602|      0|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|      0|                     }
 3604|  20.7k|                     if (!bool(ctx.error)) {
  ------------------
  |  Branch (3604:26): [True: 14.7k, False: 6.05k]
  ------------------
 3605|  14.7k|                        found_match = true;
 3606|  14.7k|                     }
 3607|  6.05k|                     else if constexpr (not Options.null_terminated) {
 3608|  6.05k|                        constexpr bool is_complete_type =
 3609|  6.05k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
  ------------------
  |  Branch (3609:28): [Folded, False: 0]
  |  Branch (3609:40): [Folded, False: 0]
  |  Branch (3609:53): [Folded, False: 0]
  |  Branch (3609:68): [Folded, False: 0]
  |  Branch (3609:89): [Folded, False: 0]
  |  Branch (3609:103): [Folded, False: 0]
  ------------------
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|  6.05k|                        else {
 3626|  6.05k|                           it = copy_it;
 3627|  6.05k|                           rewind_depth<Options>(ctx, copy_depth);
 3628|  6.05k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
  ------------------
  |  Branch (3628:32): [True: 0, False: 6.05k]
  |  Branch (3628:71): [True: 0, False: 0]
  ------------------
 3629|      0|                               not variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3629:32): [True: 0, False: 0]
  ------------------
 3630|      0|                              ctx.error = error_code::none;
 3631|      0|                           }
 3632|  6.05k|                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|  20.7k|                     ++non_const_idx;
 3643|  20.7k|                  }
 3644|  20.7k|               });
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERNSt3__16vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS4_9allocatorIS9_EEEETkNS_10is_contextERNS_7contextERPKcSH_EEvOT0_OT1_OT2_T3_:
   49|  20.7k|      {
   50|       |         if constexpr (const_value_v<T>) {
   51|       |            if constexpr (check_error_on_const_read(Opts)) {
   52|       |               ctx.error = error_code::attempt_const_read;
   53|       |            }
   54|       |            else {
   55|       |               // do not read anything into the const value
   56|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   57|       |            }
   58|       |         }
   59|  20.7k|         else {
   60|  20.7k|            using V = std::remove_cvref_t<T>;
   61|  20.7k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   62|  20.7k|                                             end);
   63|  20.7k|         }
   64|  20.7k|      }
_ZN3glz4fromILj10ENSt3__16vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS1_9allocatorIS6_EEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS9_TkNS_10is_contextERNS_7contextERPKcSH_EEvOT0_OT1_OT2_T3_:
 2050|  20.7k|      {
 2051|  20.7k|         constexpr auto Opts = ws_handled_off<Options>();
 2052|       |         if constexpr (!check_ws_handled(Options)) {
 2053|       |            if (skip_ws<Opts>(ctx, it, end)) {
 2054|       |               return;
 2055|       |            }
 2056|       |         }
 2057|       |
 2058|  20.7k|         if (match_invalid_end<'[', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2058:14): [True: 0, False: 20.7k]
  ------------------
 2059|      0|            return;
 2060|      0|         }
 2061|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2062|       |         // released at each syntactic close below
 2063|  20.7k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2063:14): [True: 0, False: 20.7k]
  ------------------
 2064|      0|            return;
 2065|      0|         }
 2066|       |
 2067|  20.7k|         const auto ws_start = it;
 2068|  20.7k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2068:14): [True: 0, False: 20.7k]
  ------------------
 2069|      0|            return;
 2070|      0|         }
 2071|       |
 2072|  20.7k|         if (*it == ']') {
  ------------------
  |  Branch (2072:14): [True: 149, False: 20.6k]
  ------------------
 2073|    149|            --ctx.depth;
 2074|    149|            ++it;
 2075|    149|            if constexpr ((resizable<T> || is_inplace_vector<T>) && not check_append_arrays(Opts)) {
 2076|    149|               value.clear();
 2077|       |
 2078|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2079|       |                  value.shrink_to_fit();
 2080|       |               }
 2081|    149|            }
 2082|    149|            return;
 2083|    149|         }
 2084|       |
 2085|  20.6k|         const size_t ws_size = size_t(it - ws_start);
 2086|       |
 2087|  20.6k|         static constexpr bool should_append = (resizable<T> || is_inplace_vector<T>) && check_append_arrays(Opts);
  ------------------
  |  Branch (2087:49): [True: 20.6k, Folded]
  |  Branch (2087:65): [Folded, False: 0]
  |  Branch (2087:90): [Folded, False: 0]
  ------------------
 2088|  20.6k|         if constexpr (not should_append) {
 2089|  20.6k|            const auto n = value.size();
 2090|       |
 2091|  20.6k|            auto value_it = value.begin();
 2092|       |
 2093|  20.6k|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (2093:32): [True: 0, False: 20.6k]
  ------------------
 2094|      0|               parse<JSON>::op<ws_handled<Opts>()>(*value_it++, ctx, it, end);
 2095|      0|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2095:20): [True: 0, False: 0]
  ------------------
 2096|      0|                  return;
 2097|      0|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2097:20): [True: 0, False: 0]
  ------------------
 2098|      0|                  return;
 2099|      0|               }
 2100|      0|               if (*it == ',') {
  ------------------
  |  Branch (2100:20): [True: 0, False: 0]
  ------------------
 2101|      0|                  ++it;
 2102|       |
 2103|      0|                  if constexpr (!Opts.minified && !Opts.comments) {
 2104|      0|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2104:26): [True: 0, False: 0]
  |  Branch (2104:37): [True: 0, False: 0]
  ------------------
 2105|      0|                        skip_matching_ws(ws_start, it, ws_size);
 2106|      0|                     }
 2107|      0|                  }
 2108|       |
 2109|      0|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2109:23): [True: 0, False: 0]
  ------------------
 2110|      0|                     return;
 2111|      0|                  }
 2112|      0|               }
 2113|      0|               else if (*it == ']') {
  ------------------
  |  Branch (2113:25): [True: 0, False: 0]
  ------------------
 2114|      0|                  --ctx.depth;
 2115|      0|                  ++it;
 2116|      0|                  if constexpr (erasable<T>) {
 2117|      0|                     value.erase(value_it,
 2118|      0|                                 value.end()); // use erase rather than resize for non-default constructible elements
 2119|       |
 2120|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2121|       |                        value.shrink_to_fit();
 2122|       |                     }
 2123|      0|                  }
 2124|      0|                  return;
 2125|      0|               }
 2126|      0|               else [[unlikely]] {
 2127|      0|                  ctx.error = error_code::expected_bracket;
 2128|      0|                  return;
 2129|      0|               }
 2130|      0|            }
 2131|  20.6k|         }
 2132|       |
 2133|       |         if constexpr (Opts.partial_read) {
 2134|       |            // partial_read stops early on a success path, so give the level back like the
 2135|       |            // syntactic-close paths do; otherwise it accumulates across reads sharing a context.
 2136|       |            --ctx.depth;
 2137|       |            return;
 2138|       |         }
 2139|  20.6k|         else {
 2140|       |            // growing
 2141|  20.6k|            if constexpr (emplace_backable<T> || has_try_emplace_back<T>) {
 2142|   264k|               while (it < end) {
  ------------------
  |  Branch (2142:23): [True: 264k, False: 0]
  ------------------
 2143|       |                  // Streaming refill point: at start of each iteration, ensure buffer has data
 2144|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2145|       |                     if (ctx.stream.enabled()) {
 2146|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2147|       |                        const size_t remaining = ctx.stream.size() - consumed;
 2148|       |                        // Refill when less than half of buffer remains to ensure space for next element
 2149|       |                        if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2150|       |                           const char* new_it;
 2151|       |                           const char* new_end;
 2152|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2153|       |                           it = new_it;
 2154|       |                           end = new_end;
 2155|       |                           if (it >= end && ctx.stream.at_eof()) {
 2156|       |                              break; // No more data, exit loop normally
 2157|       |                           }
 2158|       |                        }
 2159|       |                     }
 2160|       |                  }
 2161|       |
 2162|       |                  if constexpr (has_try_emplace_back<T>) {
 2163|       |                     if (value.try_emplace_back())
 2164|       |                        parse<JSON>::op<ws_handled<Opts>()>(value.back(), ctx, it, end);
 2165|       |                     else
 2166|       |                        ctx.error = error_code::exceeded_static_array_size;
 2167|       |                  }
 2168|   264k|                  else {
 2169|   264k|                     parse<JSON>::op<ws_handled<Opts>()>(value.emplace_back(), ctx, it, end);
 2170|   264k|                  }
 2171|       |
 2172|   264k|                  if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2172:23): [True: 6.05k, False: 258k]
  ------------------
 2173|  6.05k|                     return;
 2174|       |
 2175|       |                  // Streaming refill point: after parsing each element, refill if buffer is low
 2176|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2177|       |                     if (ctx.stream.enabled()) {
 2178|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2179|       |                        // Refill when less than 25% of buffer remains to ensure enough space for next element
 2180|       |                        if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 2181|       |                           const char* new_it;
 2182|       |                           const char* new_end;
 2183|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2184|       |                           it = new_it;
 2185|       |                           end = new_end;
 2186|       |                           if (it >= end && ctx.stream.at_eof()) {
 2187|       |                              ctx.error = error_code::unexpected_end;
 2188|       |                              return;
 2189|       |                           }
 2190|       |                        }
 2191|       |                     }
 2192|       |                  }
 2193|       |
 2194|   258k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2194:23): [True: 0, False: 258k]
  ------------------
 2195|      0|                     return;
 2196|      0|                  }
 2197|   258k|                  if (*it == ',') [[likely]] {
  ------------------
  |  Branch (2197:23): [True: 244k, False: 14.5k]
  ------------------
 2198|   244k|                     ++it;
 2199|       |
 2200|   244k|                     if constexpr (!Opts.minified && !Opts.comments) {
 2201|   244k|                        if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2201:29): [True: 0, False: 244k]
  |  Branch (2201:40): [True: 0, False: 0]
  ------------------
 2202|      0|                           skip_matching_ws(ws_start, it, ws_size);
 2203|      0|                        }
 2204|   244k|                     }
 2205|       |
 2206|   244k|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2206:26): [True: 0, False: 244k]
  ------------------
 2207|      0|                        return;
 2208|      0|                     }
 2209|   244k|                  }
 2210|  14.5k|                  else if (*it == ']') {
  ------------------
  |  Branch (2210:28): [True: 14.5k, False: 0]
  ------------------
 2211|  14.5k|                     --ctx.depth;
 2212|  14.5k|                     ++it;
 2213|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2214|       |                        value.shrink_to_fit();
 2215|       |                     }
 2216|  14.5k|                     return;
 2217|  14.5k|                  }
 2218|      0|                  else [[unlikely]] {
 2219|      0|                     ctx.error = error_code::expected_bracket;
 2220|      0|                     return;
 2221|      0|                  }
 2222|   258k|               }
 2223|       |
 2224|       |               // A valid array always returns from inside the loop upon reaching ']'.
 2225|       |               // For a null-terminated buffer the loop can only exit here by falling
 2226|       |               // through when `it` reaches the terminator without a closing bracket,
 2227|       |               // which means the input was truncated (e.g. "[", "[1," or "[1,2,").
 2228|       |               // Non-null-terminated buffers surface this through skip_ws/depth
 2229|       |               // tracking (or the streaming refill break), so this guard is limited
 2230|       |               // to the null-terminated case.
 2231|       |               if constexpr (Opts.null_terminated) {
 2232|       |                  ctx.error = error_code::unexpected_end;
 2233|       |               }
 2234|       |            }
 2235|       |            else {
 2236|       |               ctx.error = error_code::exceeded_static_array_size;
 2237|       |            }
 2238|  20.6k|         }
 2239|  20.6k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm5EEEDav:
 3589|  20.7k|               for_each<N>([&]<size_t I>() {
 3590|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 14.7k, False: 6.05k]
  |  Branch (3590:38): [True: 0, False: 6.05k]
  |  Branch (3590:51): [True: 0, False: 6.05k]
  ------------------
 3591|  14.7k|                     return;
 3592|  14.7k|                  }
 3593|  6.05k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|  6.05k|               });
_ZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_:
 3520|   946k|      {
 3521|   946k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3522|       |
 3523|       |         if constexpr (category_count == 0) {
 3524|       |            ctx.error = error_code::no_matching_variant_type;
 3525|       |         }
 3526|   946k|         else {
 3527|   946k|            constexpr auto N = std::variant_size_v<Variant>;
 3528|   946k|            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3529|   946k|            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3530|       |
 3531|   946k|            bool found_match{};
 3532|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3533|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3534|       |            // so the budget stops it and the failure already in hand is reported.
 3535|   946k|            bool exhausted{};
 3536|       |
 3537|       |            // First pass: const glaze types in this category
 3538|       |            if constexpr (const_count > 0) {
 3539|       |               for_each<N>([&]<size_t I>() {
 3540|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3541|       |                     return;
 3542|       |                  }
 3543|       |                  using V = std::variant_alternative_t<I, Variant>;
 3544|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3545|       |                     // run time substitute to compare to const value
 3546|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3547|       |                     auto copy_it{it};
 3548|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3549|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3550|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3551|       |                     const auto copy_depth{ctx.depth};
 3552|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3553|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3554|       |                     if (substitute == const_value) {
 3555|       |                        found_match = true;
 3556|       |                        if (!std::holds_alternative<V>(value)) {
 3557|       |                           value = V{};
 3558|       |                        }
 3559|       |                     }
 3560|       |                     else {
 3561|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3562|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3563|       |                           exhausted = true;
 3564|       |                        }
 3565|       |                        if constexpr (not Options.null_terminated) {
 3566|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3567|       |                              ctx.error = error_code::none;
 3568|       |                           }
 3569|       |                        }
 3570|       |                        it = copy_it;
 3571|       |                        rewind_depth<Options>(ctx, copy_depth);
 3572|       |                     }
 3573|       |                  }
 3574|       |               });
 3575|       |               if (found_match) {
 3576|       |                  return;
 3577|       |               }
 3578|       |            }
 3579|       |
 3580|       |            // Second pass: non-const types in this category
 3581|   946k|            if constexpr (non_const_count > 0) {
 3582|       |               // Track position within matching types for "is last" check.
 3583|       |               // We iterate over all variant indices but only process matching types,
 3584|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3585|       |               // the loop index directly corresponded to position in filtered set).
 3586|       |               // This has negligible cost: one increment per matching type.
 3587|   946k|               size_t non_const_idx = 0;
 3588|       |
 3589|   946k|               for_each<N>([&]<size_t I>() {
 3590|   946k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3591|   946k|                     return;
 3592|   946k|                  }
 3593|   946k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|   946k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|   946k|                     auto copy_it{it};
 3596|   946k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|   946k|                     if (!std::holds_alternative<V>(value)) {
 3598|   946k|                        value = V{};
 3599|   946k|                     }
 3600|   946k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|   946k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|   946k|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|   946k|                     }
 3604|   946k|                     if (!bool(ctx.error)) {
 3605|   946k|                        found_match = true;
 3606|   946k|                     }
 3607|   946k|                     else if constexpr (not Options.null_terminated) {
 3608|   946k|                        constexpr bool is_complete_type =
 3609|   946k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|   946k|                        if constexpr (is_complete_type) {
 3612|   946k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|   946k|                              found_match = true;
 3614|   946k|                              ctx.error = error_code::none;
 3615|   946k|                           }
 3616|   946k|                           else {
 3617|   946k|                              it = copy_it;
 3618|   946k|                              rewind_depth<Options>(ctx, copy_depth);
 3619|   946k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|   946k|                                  not variant_alternative_exhausted(ctx)) {
 3621|   946k|                                 ctx.error = error_code::none;
 3622|   946k|                              }
 3623|   946k|                           }
 3624|   946k|                        }
 3625|   946k|                        else {
 3626|   946k|                           it = copy_it;
 3627|   946k|                           rewind_depth<Options>(ctx, copy_depth);
 3628|   946k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|   946k|                               not variant_alternative_exhausted(ctx)) {
 3630|   946k|                              ctx.error = error_code::none;
 3631|   946k|                           }
 3632|   946k|                        }
 3633|   946k|                     }
 3634|   946k|                     else {
 3635|   946k|                        it = copy_it;
 3636|   946k|                        rewind_depth<Options>(ctx, copy_depth);
 3637|   946k|                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|   946k|                            not variant_alternative_exhausted(ctx)) {
 3639|   946k|                           ctx.error = error_code::none;
 3640|   946k|                        }
 3641|   946k|                     }
 3642|   946k|                     ++non_const_idx;
 3643|   946k|                  }
 3644|   946k|               });
 3645|   946k|               if (!found_match) {
  ------------------
  |  Branch (3645:20): [True: 25.6k, False: 920k]
  ------------------
 3646|  25.6k|                  if constexpr (non_const_count == 1) {
 3647|       |                     // Keep the specific error from the single type we tried
 3648|       |                  }
 3649|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3650|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3651|       |                     ctx.error = error_code::no_matching_variant_type;
 3652|       |                  }
 3653|  25.6k|               }
 3654|       |            }
 3655|       |            else {
 3656|       |               ctx.error = error_code::no_matching_variant_type;
 3657|       |            }
 3658|   946k|         }
 3659|   946k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm0EEEDav:
 3589|   946k|               for_each<N>([&]<size_t I>() {
 3590|   946k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 946k]
  |  Branch (3590:38): [True: 0, False: 946k]
  |  Branch (3590:51): [True: 0, False: 946k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|   946k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|   946k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm1EEEDav:
 3589|   946k|               for_each<N>([&]<size_t I>() {
 3590|   946k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 946k]
  |  Branch (3590:38): [True: 0, False: 946k]
  |  Branch (3590:51): [True: 0, False: 946k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|   946k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|   946k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm2EEEDav:
 3589|   946k|               for_each<N>([&]<size_t I>() {
 3590|   946k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 946k]
  |  Branch (3590:38): [True: 0, False: 946k]
  |  Branch (3590:51): [True: 0, False: 946k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|   946k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|   946k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|   946k|                     auto copy_it{it};
 3596|   946k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|   946k|                     if (!std::holds_alternative<V>(value)) {
  ------------------
  |  Branch (3597:26): [True: 946k, False: 0]
  ------------------
 3598|   946k|                        value = V{};
 3599|   946k|                     }
 3600|   946k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|   946k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
  ------------------
  |  Branch (3601:26): [True: 25.6k, False: 920k]
  |  Branch (3601:45): [True: 0, False: 25.6k]
  ------------------
 3602|      0|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|      0|                     }
 3604|   946k|                     if (!bool(ctx.error)) {
  ------------------
  |  Branch (3604:26): [True: 920k, False: 25.6k]
  ------------------
 3605|   920k|                        found_match = true;
 3606|   920k|                     }
 3607|  25.6k|                     else if constexpr (not Options.null_terminated) {
 3608|  25.6k|                        constexpr bool is_complete_type =
 3609|  25.6k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
  ------------------
  |  Branch (3609:28): [Folded, False: 0]
  |  Branch (3609:40): [Folded, False: 0]
  |  Branch (3609:53): [True: 0, Folded]
  |  Branch (3609:68): [Folded, False: 0]
  |  Branch (3609:89): [Folded, False: 0]
  |  Branch (3609:103): [Folded, False: 0]
  ------------------
 3610|       |
 3611|  25.6k|                        if constexpr (is_complete_type) {
 3612|  25.6k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
  ------------------
  |  Branch (3612:32): [True: 0, False: 25.6k]
  |  Branch (3612:72): [True: 0, False: 0]
  |  Branch (3612:88): [True: 0, False: 0]
  ------------------
 3613|      0|                              found_match = true;
 3614|      0|                              ctx.error = error_code::none;
 3615|      0|                           }
 3616|  25.6k|                           else {
 3617|  25.6k|                              it = copy_it;
 3618|  25.6k|                              rewind_depth<Options>(ctx, copy_depth);
 3619|  25.6k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
  ------------------
  |  Branch (3619:35): [True: 0, False: 25.6k]
  |  Branch (3619:74): [True: 0, False: 0]
  ------------------
 3620|      0|                                  not variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3620:35): [True: 0, False: 0]
  ------------------
 3621|      0|                                 ctx.error = error_code::none;
 3622|      0|                              }
 3623|  25.6k|                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|   946k|                     ++non_const_idx;
 3643|   946k|                  }
 3644|   946k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm3EEEDav:
 3589|   946k|               for_each<N>([&]<size_t I>() {
 3590|   946k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 920k, False: 25.6k]
  |  Branch (3590:38): [True: 0, False: 25.6k]
  |  Branch (3590:51): [True: 0, False: 25.6k]
  ------------------
 3591|   920k|                     return;
 3592|   920k|                  }
 3593|  25.6k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|  25.6k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm4EEEDav:
 3589|   946k|               for_each<N>([&]<size_t I>() {
 3590|   946k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 920k, False: 25.6k]
  |  Branch (3590:38): [True: 0, False: 25.6k]
  |  Branch (3590:51): [True: 0, False: 25.6k]
  ------------------
 3591|   920k|                     return;
 3592|   920k|                  }
 3593|  25.6k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|  25.6k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm5EEEDav:
 3589|   946k|               for_each<N>([&]<size_t I>() {
 3590|   946k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 920k, False: 25.6k]
  |  Branch (3590:38): [True: 0, False: 25.6k]
  |  Branch (3590:51): [True: 0, False: 25.6k]
  ------------------
 3591|   920k|                     return;
 3592|   920k|                  }
 3593|  25.6k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|  25.6k|               });
_ZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_:
 3520|   335k|      {
 3521|   335k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3522|       |
 3523|       |         if constexpr (category_count == 0) {
 3524|       |            ctx.error = error_code::no_matching_variant_type;
 3525|       |         }
 3526|   335k|         else {
 3527|   335k|            constexpr auto N = std::variant_size_v<Variant>;
 3528|   335k|            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3529|   335k|            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3530|       |
 3531|   335k|            bool found_match{};
 3532|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3533|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3534|       |            // so the budget stops it and the failure already in hand is reported.
 3535|   335k|            bool exhausted{};
 3536|       |
 3537|       |            // First pass: const glaze types in this category
 3538|       |            if constexpr (const_count > 0) {
 3539|       |               for_each<N>([&]<size_t I>() {
 3540|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3541|       |                     return;
 3542|       |                  }
 3543|       |                  using V = std::variant_alternative_t<I, Variant>;
 3544|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3545|       |                     // run time substitute to compare to const value
 3546|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3547|       |                     auto copy_it{it};
 3548|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3549|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3550|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3551|       |                     const auto copy_depth{ctx.depth};
 3552|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3553|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3554|       |                     if (substitute == const_value) {
 3555|       |                        found_match = true;
 3556|       |                        if (!std::holds_alternative<V>(value)) {
 3557|       |                           value = V{};
 3558|       |                        }
 3559|       |                     }
 3560|       |                     else {
 3561|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3562|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3563|       |                           exhausted = true;
 3564|       |                        }
 3565|       |                        if constexpr (not Options.null_terminated) {
 3566|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3567|       |                              ctx.error = error_code::none;
 3568|       |                           }
 3569|       |                        }
 3570|       |                        it = copy_it;
 3571|       |                        rewind_depth<Options>(ctx, copy_depth);
 3572|       |                     }
 3573|       |                  }
 3574|       |               });
 3575|       |               if (found_match) {
 3576|       |                  return;
 3577|       |               }
 3578|       |            }
 3579|       |
 3580|       |            // Second pass: non-const types in this category
 3581|   335k|            if constexpr (non_const_count > 0) {
 3582|       |               // Track position within matching types for "is last" check.
 3583|       |               // We iterate over all variant indices but only process matching types,
 3584|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3585|       |               // the loop index directly corresponded to position in filtered set).
 3586|       |               // This has negligible cost: one increment per matching type.
 3587|   335k|               size_t non_const_idx = 0;
 3588|       |
 3589|   335k|               for_each<N>([&]<size_t I>() {
 3590|   335k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3591|   335k|                     return;
 3592|   335k|                  }
 3593|   335k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|   335k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|   335k|                     auto copy_it{it};
 3596|   335k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|   335k|                     if (!std::holds_alternative<V>(value)) {
 3598|   335k|                        value = V{};
 3599|   335k|                     }
 3600|   335k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|   335k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|   335k|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|   335k|                     }
 3604|   335k|                     if (!bool(ctx.error)) {
 3605|   335k|                        found_match = true;
 3606|   335k|                     }
 3607|   335k|                     else if constexpr (not Options.null_terminated) {
 3608|   335k|                        constexpr bool is_complete_type =
 3609|   335k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|   335k|                        if constexpr (is_complete_type) {
 3612|   335k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|   335k|                              found_match = true;
 3614|   335k|                              ctx.error = error_code::none;
 3615|   335k|                           }
 3616|   335k|                           else {
 3617|   335k|                              it = copy_it;
 3618|   335k|                              rewind_depth<Options>(ctx, copy_depth);
 3619|   335k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|   335k|                                  not variant_alternative_exhausted(ctx)) {
 3621|   335k|                                 ctx.error = error_code::none;
 3622|   335k|                              }
 3623|   335k|                           }
 3624|   335k|                        }
 3625|   335k|                        else {
 3626|   335k|                           it = copy_it;
 3627|   335k|                           rewind_depth<Options>(ctx, copy_depth);
 3628|   335k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|   335k|                               not variant_alternative_exhausted(ctx)) {
 3630|   335k|                              ctx.error = error_code::none;
 3631|   335k|                           }
 3632|   335k|                        }
 3633|   335k|                     }
 3634|   335k|                     else {
 3635|   335k|                        it = copy_it;
 3636|   335k|                        rewind_depth<Options>(ctx, copy_depth);
 3637|   335k|                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|   335k|                            not variant_alternative_exhausted(ctx)) {
 3639|   335k|                           ctx.error = error_code::none;
 3640|   335k|                        }
 3641|   335k|                     }
 3642|   335k|                     ++non_const_idx;
 3643|   335k|                  }
 3644|   335k|               });
 3645|   335k|               if (!found_match) {
  ------------------
  |  Branch (3645:20): [True: 0, False: 335k]
  ------------------
 3646|      0|                  if constexpr (non_const_count == 1) {
 3647|       |                     // Keep the specific error from the single type we tried
 3648|       |                  }
 3649|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3650|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3651|       |                     ctx.error = error_code::no_matching_variant_type;
 3652|       |                  }
 3653|      0|               }
 3654|       |            }
 3655|       |            else {
 3656|       |               ctx.error = error_code::no_matching_variant_type;
 3657|       |            }
 3658|   335k|         }
 3659|   335k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm0EEEDav:
 3589|   335k|               for_each<N>([&]<size_t I>() {
 3590|   335k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 335k]
  |  Branch (3590:38): [True: 0, False: 335k]
  |  Branch (3590:51): [True: 0, False: 335k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|   335k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|   335k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm1EEEDav:
 3589|   335k|               for_each<N>([&]<size_t I>() {
 3590|   335k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 0, False: 335k]
  |  Branch (3590:38): [True: 0, False: 335k]
  |  Branch (3590:51): [True: 0, False: 335k]
  ------------------
 3591|      0|                     return;
 3592|      0|                  }
 3593|   335k|                  using V = std::variant_alternative_t<I, Variant>;
 3594|   335k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|   335k|                     auto copy_it{it};
 3596|   335k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|   335k|                     if (!std::holds_alternative<V>(value)) {
  ------------------
  |  Branch (3597:26): [True: 335k, False: 0]
  ------------------
 3598|   335k|                        value = V{};
 3599|   335k|                     }
 3600|   335k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|   335k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
  ------------------
  |  Branch (3601:26): [True: 0, False: 335k]
  |  Branch (3601:45): [True: 0, False: 0]
  ------------------
 3602|      0|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|      0|                     }
 3604|   335k|                     if (!bool(ctx.error)) {
  ------------------
  |  Branch (3604:26): [True: 335k, False: 0]
  ------------------
 3605|   335k|                        found_match = true;
 3606|   335k|                     }
 3607|      0|                     else if constexpr (not Options.null_terminated) {
 3608|      0|                        constexpr bool is_complete_type =
 3609|      0|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
  ------------------
  |  Branch (3609:28): [True: 0, Folded]
  |  Branch (3609:40): [Folded, False: 0]
  |  Branch (3609:53): [Folded, False: 0]
  |  Branch (3609:68): [Folded, False: 0]
  |  Branch (3609:89): [Folded, False: 0]
  |  Branch (3609:103): [Folded, False: 0]
  ------------------
 3610|       |
 3611|      0|                        if constexpr (is_complete_type) {
 3612|      0|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
  ------------------
  |  Branch (3612:32): [True: 0, False: 0]
  |  Branch (3612:72): [True: 0, False: 0]
  |  Branch (3612:88): [True: 0, False: 0]
  ------------------
 3613|      0|                              found_match = true;
 3614|      0|                              ctx.error = error_code::none;
 3615|      0|                           }
 3616|      0|                           else {
 3617|      0|                              it = copy_it;
 3618|      0|                              rewind_depth<Options>(ctx, copy_depth);
 3619|      0|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
  ------------------
  |  Branch (3619:35): [True: 0, False: 0]
  |  Branch (3619:74): [True: 0, False: 0]
  ------------------
 3620|      0|                                  not variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3620:35): [True: 0, False: 0]
  ------------------
 3621|      0|                                 ctx.error = error_code::none;
 3622|      0|                              }
 3623|      0|                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|   335k|                     ++non_const_idx;
 3643|   335k|                  }
 3644|   335k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm2EEEDav:
 3589|   335k|               for_each<N>([&]<size_t I>() {
 3590|   335k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 335k, False: 0]
  |  Branch (3590:38): [True: 0, False: 0]
  |  Branch (3590:51): [True: 0, False: 0]
  ------------------
 3591|   335k|                     return;
 3592|   335k|                  }
 3593|      0|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|      0|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm3EEEDav:
 3589|   335k|               for_each<N>([&]<size_t I>() {
 3590|   335k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 335k, False: 0]
  |  Branch (3590:38): [True: 0, False: 0]
  |  Branch (3590:51): [True: 0, False: 0]
  ------------------
 3591|   335k|                     return;
 3592|   335k|                  }
 3593|      0|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|      0|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm4EEEDav:
 3589|   335k|               for_each<N>([&]<size_t I>() {
 3590|   335k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 335k, False: 0]
  |  Branch (3590:38): [True: 0, False: 0]
  |  Branch (3590:51): [True: 0, False: 0]
  ------------------
 3591|   335k|                     return;
 3592|   335k|                  }
 3593|      0|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|      0|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm5EEEDav:
 3589|   335k|               for_each<N>([&]<size_t I>() {
 3590|   335k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3590:23): [True: 335k, False: 0]
  |  Branch (3590:38): [True: 0, False: 0]
  |  Branch (3590:51): [True: 0, False: 0]
  ------------------
 3591|   335k|                     return;
 3592|   335k|                  }
 3593|      0|                  using V = std::variant_alternative_t<I, Variant>;
 3594|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3595|       |                     auto copy_it{it};
 3596|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3597|       |                     if (!std::holds_alternative<V>(value)) {
 3598|       |                        value = V{};
 3599|       |                     }
 3600|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3601|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3602|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3603|       |                     }
 3604|       |                     if (!bool(ctx.error)) {
 3605|       |                        found_match = true;
 3606|       |                     }
 3607|       |                     else if constexpr (not Options.null_terminated) {
 3608|       |                        constexpr bool is_complete_type =
 3609|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3610|       |
 3611|       |                        if constexpr (is_complete_type) {
 3612|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3613|       |                              found_match = true;
 3614|       |                              ctx.error = error_code::none;
 3615|       |                           }
 3616|       |                           else {
 3617|       |                              it = copy_it;
 3618|       |                              rewind_depth<Options>(ctx, copy_depth);
 3619|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3620|       |                                  not variant_alternative_exhausted(ctx)) {
 3621|       |                                 ctx.error = error_code::none;
 3622|       |                              }
 3623|       |                           }
 3624|       |                        }
 3625|       |                        else {
 3626|       |                           it = copy_it;
 3627|       |                           rewind_depth<Options>(ctx, copy_depth);
 3628|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3629|       |                               not variant_alternative_exhausted(ctx)) {
 3630|       |                              ctx.error = error_code::none;
 3631|       |                           }
 3632|       |                        }
 3633|       |                     }
 3634|       |                     else {
 3635|       |                        it = copy_it;
 3636|       |                        rewind_depth<Options>(ctx, copy_depth);
 3637|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3638|       |                            not variant_alternative_exhausted(ctx)) {
 3639|       |                           ctx.error = error_code::none;
 3640|       |                        }
 3641|       |                     }
 3642|       |                     ++non_const_idx;
 3643|       |                  }
 3644|      0|               });

_ZN3glz10skip_valueILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS7_QntdtT_8commentsEEvOT0_OT1_T2_:
  325|  32.5k|   {
  326|  32.5k|      using namespace glz::detail;
  327|       |
  328|       |      // Validating skips (parse_value/JSON pointer) require the full value in a
  329|       |      // contiguous buffer, so streaming refill is not applied there.
  330|       |      if constexpr (has_streaming_state<decltype(ctx)> && not check_validate_skipped(Opts)) {
  331|       |         if (ctx.stream.enabled()) {
  332|       |            skip_value_streaming<Opts>(ctx, it, end);
  333|       |            return;
  334|       |         }
  335|       |      }
  336|       |
  337|  32.5k|      if constexpr (not check_validate_skipped(Opts)) {
  338|  32.5k|         if constexpr (not check_ws_handled(Opts)) {
  339|  32.5k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (339:17): [True: 0, False: 32.5k]
  ------------------
  340|      0|               return;
  341|      0|            }
  342|  32.5k|         }
  343|  96.7k|         while (true) {
  ------------------
  |  Branch (343:17): [True: 96.7k, Folded]
  ------------------
  344|  96.7k|            switch (*it) {
  345|  4.34k|            case '{':
  ------------------
  |  Branch (345:13): [True: 4.34k, False: 92.4k]
  ------------------
  346|  4.34k|               ++it;
  347|  4.34k|               if constexpr (not Opts.null_terminated) {
  348|  4.34k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (348:23): [True: 0, False: 4.34k]
  ------------------
  349|      0|                     ctx.error = error_code::unexpected_end;
  350|      0|                     return;
  351|      0|                  }
  352|  4.34k|               }
  353|  4.34k|               skip_until_closed<Opts, '{', '}'>(ctx, it, end);
  354|  4.34k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (354:20): [True: 0, False: 4.34k]
  ------------------
  355|      0|                  return;
  356|  4.34k|               break;
  357|  11.5k|            case '[':
  ------------------
  |  Branch (357:13): [True: 11.5k, False: 85.2k]
  ------------------
  358|  11.5k|               ++it;
  359|  11.5k|               if constexpr (not Opts.null_terminated) {
  360|  11.5k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (360:23): [True: 0, False: 11.5k]
  ------------------
  361|      0|                     ctx.error = error_code::unexpected_end;
  362|      0|                     return;
  363|      0|                  }
  364|  11.5k|               }
  365|  11.5k|               skip_until_closed<Opts, '[', ']'>(ctx, it, end);
  366|  11.5k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (366:20): [True: 0, False: 11.5k]
  ------------------
  367|      0|                  return;
  368|  11.5k|               break;
  369|  11.5k|            case '"':
  ------------------
  |  Branch (369:13): [True: 9.48k, False: 87.2k]
  ------------------
  370|  9.48k|               skip_string<Opts>(ctx, it, end);
  371|  9.48k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (371:20): [True: 0, False: 9.48k]
  ------------------
  372|      0|                  return;
  373|  9.48k|               break;
  374|  9.48k|            case ',':
  ------------------
  |  Branch (374:13): [True: 6.23k, False: 90.5k]
  ------------------
  375|  7.17k|            case '}':
  ------------------
  |  Branch (375:13): [True: 938, False: 95.8k]
  ------------------
  376|  7.17k|            case ']':
  ------------------
  |  Branch (376:13): [True: 0, False: 96.7k]
  ------------------
  377|  7.17k|               break;
  378|      0|            case '\0':
  ------------------
  |  Branch (378:13): [True: 0, False: 96.7k]
  ------------------
  379|      0|               ctx.error = error_code::unexpected_end;
  380|      0|               return;
  381|  64.2k|            default: {
  ------------------
  |  Branch (381:13): [True: 64.2k, False: 32.5k]
  ------------------
  382|  64.2k|               ++it;
  383|  64.2k|               if constexpr (not Opts.null_terminated) {
  384|  64.2k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (384:23): [True: 0, False: 64.2k]
  ------------------
  385|      0|                     ctx.error = error_code::unexpected_end;
  386|      0|                     return;
  387|      0|                  }
  388|  64.2k|               }
  389|  64.2k|               continue;
  390|  7.17k|            }
  391|  96.7k|            }
  392|       |
  393|  32.5k|            break;
  394|  96.7k|         }
  395|       |      }
  396|       |      else {
  397|       |         if constexpr (not check_ws_handled(Opts)) {
  398|       |            if (skip_ws<Opts>(ctx, it, end)) {
  399|       |               return;
  400|       |            }
  401|       |         }
  402|       |         switch (*it) {
  403|       |         case '{': {
  404|       |            skip_object<Opts>(ctx, it, end);
  405|       |            break;
  406|       |         }
  407|       |         case '[': {
  408|       |            skip_array<Opts>(ctx, it, end);
  409|       |            break;
  410|       |         }
  411|       |         case '"': {
  412|       |            skip_string<Opts>(ctx, it, end);
  413|       |            break;
  414|       |         }
  415|       |         case 'n': {
  416|       |            ++it;
  417|       |            match<"ull", Opts>(ctx, it, end);
  418|       |            break;
  419|       |         }
  420|       |         case 'f': {
  421|       |            ++it;
  422|       |            match<"alse", Opts>(ctx, it, end);
  423|       |            break;
  424|       |         }
  425|       |         case 't': {
  426|       |            ++it;
  427|       |            match<"rue", Opts>(ctx, it, end);
  428|       |            break;
  429|       |         }
  430|       |         case '\0': {
  431|       |            ctx.error = error_code::unexpected_end;
  432|       |            break;
  433|       |         }
  434|       |         default: {
  435|       |            skip_number<Opts>(ctx, it, end);
  436|       |         }
  437|       |         }
  438|       |      }
  439|  32.5k|   }
_ZN3glz10skip_valueILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETkNS_10is_contextERNS_7contextERPKcS7_QntdtT_8commentsEEvOT0_OT1_T2_:
  325|  4.81M|   {
  326|  4.81M|      using namespace glz::detail;
  327|       |
  328|       |      // Validating skips (parse_value/JSON pointer) require the full value in a
  329|       |      // contiguous buffer, so streaming refill is not applied there.
  330|       |      if constexpr (has_streaming_state<decltype(ctx)> && not check_validate_skipped(Opts)) {
  331|       |         if (ctx.stream.enabled()) {
  332|       |            skip_value_streaming<Opts>(ctx, it, end);
  333|       |            return;
  334|       |         }
  335|       |      }
  336|       |
  337|  4.81M|      if constexpr (not check_validate_skipped(Opts)) {
  338|       |         if constexpr (not check_ws_handled(Opts)) {
  339|       |            if (skip_ws<Opts>(ctx, it, end)) {
  340|       |               return;
  341|       |            }
  342|       |         }
  343|  25.8M|         while (true) {
  ------------------
  |  Branch (343:17): [True: 25.8M, Folded]
  ------------------
  344|  25.8M|            switch (*it) {
  345|   149k|            case '{':
  ------------------
  |  Branch (345:13): [True: 149k, False: 25.6M]
  ------------------
  346|   149k|               ++it;
  347|   149k|               if constexpr (not Opts.null_terminated) {
  348|   149k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (348:23): [True: 5, False: 149k]
  ------------------
  349|      5|                     ctx.error = error_code::unexpected_end;
  350|      5|                     return;
  351|      5|                  }
  352|   149k|               }
  353|   149k|               skip_until_closed<Opts, '{', '}'>(ctx, it, end);
  354|   149k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (354:20): [True: 4.09k, False: 145k]
  ------------------
  355|  4.09k|                  return;
  356|   145k|               break;
  357|   145k|            case '[':
  ------------------
  |  Branch (357:13): [True: 16.5k, False: 25.8M]
  ------------------
  358|  16.5k|               ++it;
  359|  16.5k|               if constexpr (not Opts.null_terminated) {
  360|  16.5k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (360:23): [True: 4, False: 16.5k]
  ------------------
  361|      4|                     ctx.error = error_code::unexpected_end;
  362|      4|                     return;
  363|      4|                  }
  364|  16.5k|               }
  365|  16.5k|               skip_until_closed<Opts, '[', ']'>(ctx, it, end);
  366|  16.5k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (366:20): [True: 3.74k, False: 12.8k]
  ------------------
  367|  3.74k|                  return;
  368|  12.8k|               break;
  369|  20.3k|            case '"':
  ------------------
  |  Branch (369:13): [True: 20.3k, False: 25.8M]
  ------------------
  370|  20.3k|               skip_string<Opts>(ctx, it, end);
  371|  20.3k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (371:20): [True: 458, False: 19.8k]
  ------------------
  372|    458|                  return;
  373|  19.8k|               break;
  374|  4.62M|            case ',':
  ------------------
  |  Branch (374:13): [True: 4.62M, False: 21.2M]
  ------------------
  375|  4.62M|            case '}':
  ------------------
  |  Branch (375:13): [True: 2.68k, False: 25.8M]
  ------------------
  376|  4.62M|            case ']':
  ------------------
  |  Branch (376:13): [True: 796, False: 25.8M]
  ------------------
  377|  4.62M|               break;
  378|    613|            case '\0':
  ------------------
  |  Branch (378:13): [True: 613, False: 25.8M]
  ------------------
  379|    613|               ctx.error = error_code::unexpected_end;
  380|    613|               return;
  381|  21.0M|            default: {
  ------------------
  |  Branch (381:13): [True: 21.0M, False: 4.81M]
  ------------------
  382|  21.0M|               ++it;
  383|  21.0M|               if constexpr (not Opts.null_terminated) {
  384|  21.0M|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (384:23): [True: 128, False: 21.0M]
  ------------------
  385|    128|                     ctx.error = error_code::unexpected_end;
  386|    128|                     return;
  387|    128|                  }
  388|  21.0M|               }
  389|  21.0M|               continue;
  390|  4.62M|            }
  391|  25.8M|            }
  392|       |
  393|  4.80M|            break;
  394|  25.8M|         }
  395|       |      }
  396|       |      else {
  397|       |         if constexpr (not check_ws_handled(Opts)) {
  398|       |            if (skip_ws<Opts>(ctx, it, end)) {
  399|       |               return;
  400|       |            }
  401|       |         }
  402|       |         switch (*it) {
  403|       |         case '{': {
  404|       |            skip_object<Opts>(ctx, it, end);
  405|       |            break;
  406|       |         }
  407|       |         case '[': {
  408|       |            skip_array<Opts>(ctx, it, end);
  409|       |            break;
  410|       |         }
  411|       |         case '"': {
  412|       |            skip_string<Opts>(ctx, it, end);
  413|       |            break;
  414|       |         }
  415|       |         case 'n': {
  416|       |            ++it;
  417|       |            match<"ull", Opts>(ctx, it, end);
  418|       |            break;
  419|       |         }
  420|       |         case 'f': {
  421|       |            ++it;
  422|       |            match<"alse", Opts>(ctx, it, end);
  423|       |            break;
  424|       |         }
  425|       |         case 't': {
  426|       |            ++it;
  427|       |            match<"rue", Opts>(ctx, it, end);
  428|       |            break;
  429|       |         }
  430|       |         case '\0': {
  431|       |            ctx.error = error_code::unexpected_end;
  432|       |            break;
  433|       |         }
  434|       |         default: {
  435|       |            skip_number<Opts>(ctx, it, end);
  436|       |         }
  437|       |         }
  438|       |      }
  439|  4.81M|   }
_ZN3glz10skip_valueILj10EE2opITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS4_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS9_QntdtT_8commentsEEvOT0_OT1_T2_:
  325|  1.35M|   {
  326|  1.35M|      using namespace glz::detail;
  327|       |
  328|       |      // Validating skips (parse_value/JSON pointer) require the full value in a
  329|       |      // contiguous buffer, so streaming refill is not applied there.
  330|       |      if constexpr (has_streaming_state<decltype(ctx)> && not check_validate_skipped(Opts)) {
  331|       |         if (ctx.stream.enabled()) {
  332|       |            skip_value_streaming<Opts>(ctx, it, end);
  333|       |            return;
  334|       |         }
  335|       |      }
  336|       |
  337|       |      if constexpr (not check_validate_skipped(Opts)) {
  338|       |         if constexpr (not check_ws_handled(Opts)) {
  339|       |            if (skip_ws<Opts>(ctx, it, end)) {
  340|       |               return;
  341|       |            }
  342|       |         }
  343|       |         while (true) {
  344|       |            switch (*it) {
  345|       |            case '{':
  346|       |               ++it;
  347|       |               if constexpr (not Opts.null_terminated) {
  348|       |                  if (it == end) [[unlikely]] {
  349|       |                     ctx.error = error_code::unexpected_end;
  350|       |                     return;
  351|       |                  }
  352|       |               }
  353|       |               skip_until_closed<Opts, '{', '}'>(ctx, it, end);
  354|       |               if (bool(ctx.error)) [[unlikely]]
  355|       |                  return;
  356|       |               break;
  357|       |            case '[':
  358|       |               ++it;
  359|       |               if constexpr (not Opts.null_terminated) {
  360|       |                  if (it == end) [[unlikely]] {
  361|       |                     ctx.error = error_code::unexpected_end;
  362|       |                     return;
  363|       |                  }
  364|       |               }
  365|       |               skip_until_closed<Opts, '[', ']'>(ctx, it, end);
  366|       |               if (bool(ctx.error)) [[unlikely]]
  367|       |                  return;
  368|       |               break;
  369|       |            case '"':
  370|       |               skip_string<Opts>(ctx, it, end);
  371|       |               if (bool(ctx.error)) [[unlikely]]
  372|       |                  return;
  373|       |               break;
  374|       |            case ',':
  375|       |            case '}':
  376|       |            case ']':
  377|       |               break;
  378|       |            case '\0':
  379|       |               ctx.error = error_code::unexpected_end;
  380|       |               return;
  381|       |            default: {
  382|       |               ++it;
  383|       |               if constexpr (not Opts.null_terminated) {
  384|       |                  if (it == end) [[unlikely]] {
  385|       |                     ctx.error = error_code::unexpected_end;
  386|       |                     return;
  387|       |                  }
  388|       |               }
  389|       |               continue;
  390|       |            }
  391|       |            }
  392|       |
  393|       |            break;
  394|       |         }
  395|       |      }
  396|  1.35M|      else {
  397|  1.35M|         if constexpr (not check_ws_handled(Opts)) {
  398|  1.35M|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (398:17): [True: 15, False: 1.35M]
  ------------------
  399|     15|               return;
  400|     15|            }
  401|  1.35M|         }
  402|  1.35M|         switch (*it) {
  403|  99.5k|         case '{': {
  ------------------
  |  Branch (403:10): [True: 99.5k, False: 1.25M]
  ------------------
  404|  99.5k|            skip_object<Opts>(ctx, it, end);
  405|  99.5k|            break;
  406|      0|         }
  407|   186k|         case '[': {
  ------------------
  |  Branch (407:10): [True: 186k, False: 1.16M]
  ------------------
  408|   186k|            skip_array<Opts>(ctx, it, end);
  409|   186k|            break;
  410|      0|         }
  411|  77.6k|         case '"': {
  ------------------
  |  Branch (411:10): [True: 77.6k, False: 1.27M]
  ------------------
  412|  77.6k|            skip_string<Opts>(ctx, it, end);
  413|  77.6k|            break;
  414|      0|         }
  415|  3.82k|         case 'n': {
  ------------------
  |  Branch (415:10): [True: 3.82k, False: 1.34M]
  ------------------
  416|  3.82k|            ++it;
  417|  3.82k|            match<"ull", Opts>(ctx, it, end);
  418|  3.82k|            break;
  419|      0|         }
  420|  3.53k|         case 'f': {
  ------------------
  |  Branch (420:10): [True: 3.53k, False: 1.34M]
  ------------------
  421|  3.53k|            ++it;
  422|  3.53k|            match<"alse", Opts>(ctx, it, end);
  423|  3.53k|            break;
  424|      0|         }
  425|  2.89k|         case 't': {
  ------------------
  |  Branch (425:10): [True: 2.89k, False: 1.34M]
  ------------------
  426|  2.89k|            ++it;
  427|  2.89k|            match<"rue", Opts>(ctx, it, end);
  428|  2.89k|            break;
  429|      0|         }
  430|  1.34k|         case '\0': {
  ------------------
  |  Branch (430:10): [True: 1.34k, False: 1.35M]
  ------------------
  431|  1.34k|            ctx.error = error_code::unexpected_end;
  432|  1.34k|            break;
  433|      0|         }
  434|   976k|         default: {
  ------------------
  |  Branch (434:10): [True: 976k, False: 375k]
  ------------------
  435|   976k|            skip_number<Opts>(ctx, it, end);
  436|   976k|         }
  437|  1.35M|         }
  438|  1.35M|      }
  439|  1.35M|   }
_ZN3glz11skip_objectITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS2_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS7_EEvOT0_OT1_T2_:
   29|  99.5k|   {
   30|       |      if constexpr (!check_validate_skipped(Opts)) {
   31|       |         ++it;
   32|       |         if constexpr (not Opts.null_terminated) {
   33|       |            if (it == end) [[unlikely]] {
   34|       |               ctx.error = error_code::unexpected_end;
   35|       |               return;
   36|       |            }
   37|       |         }
   38|       |         skip_until_closed<Opts, '{', '}'>(ctx, it, end);
   39|       |      }
   40|  99.5k|      else {
   41|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
   42|       |         // released at each syntactic close below
   43|  99.5k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (43:14): [True: 195, False: 99.3k]
  ------------------
   44|    195|            return;
   45|    195|         }
   46|  99.3k|         ++it;
   47|  99.3k|         if constexpr (not Opts.null_terminated) {
   48|  99.3k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (48:17): [True: 4, False: 99.3k]
  ------------------
   49|      4|               ctx.error = error_code::unexpected_end;
   50|      4|               return;
   51|      4|            }
   52|  99.3k|         }
   53|  99.3k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (53:14): [True: 16, False: 99.3k]
  ------------------
   54|     16|            return;
   55|     16|         }
   56|  99.3k|         if (*it == '}') {
  ------------------
  |  Branch (56:14): [True: 1.94k, False: 97.4k]
  ------------------
   57|  1.94k|            --ctx.depth;
   58|  1.94k|            ++it;
   59|  1.94k|            if constexpr (not Opts.null_terminated) {
   60|  1.94k|               if (it == end) {
  ------------------
  |  Branch (60:20): [True: 2, False: 1.94k]
  ------------------
   61|      2|                  ctx.error = error_code::end_reached;
   62|      2|                  return;
   63|      2|               }
   64|  1.94k|            }
   65|  1.94k|            return;
   66|  1.94k|         }
   67|   177k|         while (true) {
  ------------------
  |  Branch (67:17): [True: 177k, Folded]
  ------------------
   68|   177k|            if (*it != '"') {
  ------------------
  |  Branch (68:17): [True: 12.1k, False: 165k]
  ------------------
   69|  12.1k|               ctx.error = error_code::syntax_error;
   70|  12.1k|               return;
   71|  12.1k|            }
   72|   165k|            skip_string<Opts>(ctx, it, end);
   73|   165k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (73:17): [True: 5.68k, False: 159k]
  ------------------
   74|  5.68k|               return;
   75|   159k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (75:17): [True: 77, False: 159k]
  ------------------
   76|     77|               return;
   77|     77|            }
   78|   159k|            if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (78:17): [True: 6.38k, False: 152k]
  ------------------
   79|  6.38k|               return;
   80|  6.38k|            }
   81|   152k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (81:17): [True: 6, False: 152k]
  ------------------
   82|      6|               return;
   83|      6|            }
   84|   152k|            skip_value<JSON>::op<Opts>(ctx, it, end);
   85|   152k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (85:17): [True: 25.5k, False: 127k]
  ------------------
   86|  25.5k|               return;
   87|   127k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (87:17): [True: 124, False: 127k]
  ------------------
   88|    124|               return;
   89|    124|            }
   90|   127k|            if (*it != ',') break;
  ------------------
  |  Branch (90:17): [True: 47.4k, False: 79.8k]
  ------------------
   91|  79.8k|            ++it;
   92|  79.8k|            if constexpr (not Opts.null_terminated) {
   93|  79.8k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (93:20): [True: 2, False: 79.8k]
  ------------------
   94|      2|                  ctx.error = error_code::unexpected_end;
   95|      2|                  return;
   96|      2|               }
   97|  79.8k|            }
   98|  79.8k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (98:17): [True: 5, False: 79.8k]
  ------------------
   99|      5|               return;
  100|      5|            }
  101|  79.8k|         }
  102|  47.4k|         match<'}'>(ctx, it);
  103|  47.4k|         --ctx.depth;
  104|  47.4k|         if constexpr (not Opts.null_terminated) {
  105|  47.4k|            if (it == end) {
  ------------------
  |  Branch (105:17): [True: 27.8k, False: 19.6k]
  ------------------
  106|  27.8k|               ctx.error = error_code::end_reached;
  107|  27.8k|               return;
  108|  27.8k|            }
  109|  47.4k|         }
  110|  47.4k|      }
  111|  99.5k|   }
_ZN3glz10skip_arrayITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS2_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS7_QooeqdtT_6formatL_ZNS_4JSONEEeqdtT_6formatL_ZNS_6NDJSONEEEEvOT0_OT1_T2_:
  116|   186k|   {
  117|       |      if constexpr (!check_validate_skipped(Opts)) {
  118|       |         ++it;
  119|       |         if constexpr (not Opts.null_terminated) {
  120|       |            if (it == end) [[unlikely]] {
  121|       |               ctx.error = error_code::unexpected_end;
  122|       |               return;
  123|       |            }
  124|       |         }
  125|       |         skip_until_closed<Opts, '[', ']'>(ctx, it, end);
  126|       |      }
  127|   186k|      else {
  128|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
  129|       |         // released at each syntactic close below
  130|   186k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (130:14): [True: 240, False: 186k]
  ------------------
  131|    240|            return;
  132|    240|         }
  133|   186k|         ++it;
  134|   186k|         if constexpr (not Opts.null_terminated) {
  135|   186k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (135:17): [True: 3, False: 186k]
  ------------------
  136|      3|               ctx.error = error_code::unexpected_end;
  137|      3|               return;
  138|      3|            }
  139|   186k|         }
  140|   186k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (140:14): [True: 3, False: 186k]
  ------------------
  141|      3|            return;
  142|      3|         }
  143|   186k|         if (*it == ']') {
  ------------------
  |  Branch (143:14): [True: 2.10k, False: 184k]
  ------------------
  144|  2.10k|            --ctx.depth;
  145|  2.10k|            ++it;
  146|  2.10k|            if constexpr (not Opts.null_terminated) {
  147|  2.10k|               if (it == end) {
  ------------------
  |  Branch (147:20): [True: 686, False: 1.41k]
  ------------------
  148|    686|                  ctx.error = error_code::end_reached;
  149|    686|                  return;
  150|    686|               }
  151|  2.10k|            }
  152|  1.41k|            return;
  153|  2.10k|         }
  154|  1.00M|         while (true) {
  ------------------
  |  Branch (154:17): [True: 1.00M, Folded]
  ------------------
  155|  1.00M|            skip_value<JSON>::op<Opts>(ctx, it, end);
  156|  1.00M|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (156:17): [True: 164k, False: 845k]
  ------------------
  157|   164k|               return;
  158|   845k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (158:17): [True: 7, False: 845k]
  ------------------
  159|      7|               return;
  160|      7|            }
  161|   845k|            if (*it != ',') break;
  ------------------
  |  Branch (161:17): [True: 19.9k, False: 825k]
  ------------------
  162|   825k|            ++it;
  163|   825k|            if constexpr (not Opts.null_terminated) {
  164|   825k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (164:20): [True: 2, False: 825k]
  ------------------
  165|      2|                  ctx.error = error_code::unexpected_end;
  166|      2|                  return;
  167|      2|               }
  168|   825k|            }
  169|   825k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (169:17): [True: 1, False: 825k]
  ------------------
  170|      1|               return;
  171|      1|            }
  172|   825k|         }
  173|  19.9k|         match<']'>(ctx, it);
  174|  19.9k|         --ctx.depth;
  175|  19.9k|         if constexpr (not Opts.null_terminated) {
  176|  19.9k|            if (it == end) {
  ------------------
  |  Branch (176:17): [True: 361, False: 19.6k]
  ------------------
  177|    361|               ctx.error = error_code::end_reached;
  178|    361|               return;
  179|    361|            }
  180|  19.9k|         }
  181|  19.9k|      }
  182|   186k|   }
_ZN3glz11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS5_EEDaOT0_OT1_T2_:
  312|  20.3k|   {
  313|  20.3k|      auto start = it;
  314|  20.3k|      struct opts_validate_skipped : std::decay_t<decltype(Opts)>
  315|  20.3k|      {
  316|  20.3k|         bool validate_skipped = true;
  317|  20.3k|      };
  318|  20.3k|      skip_value<JSON>::op<opts_validate_skipped{{Opts}}>(ctx, it, end);
  319|  20.3k|      return std::span{start, size_t(it - start)};
  320|  20.3k|   }
_ZN3glz10skip_valueILj10EE2opITnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS8_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS4_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES6_S9_S8_QntdtT_8commentsEEvSB_SD_SE_:
  325|  42.9k|   {
  326|  42.9k|      using namespace glz::detail;
  327|       |
  328|       |      // Validating skips (parse_value/JSON pointer) require the full value in a
  329|       |      // contiguous buffer, so streaming refill is not applied there.
  330|       |      if constexpr (has_streaming_state<decltype(ctx)> && not check_validate_skipped(Opts)) {
  331|       |         if (ctx.stream.enabled()) {
  332|       |            skip_value_streaming<Opts>(ctx, it, end);
  333|       |            return;
  334|       |         }
  335|       |      }
  336|       |
  337|       |      if constexpr (not check_validate_skipped(Opts)) {
  338|       |         if constexpr (not check_ws_handled(Opts)) {
  339|       |            if (skip_ws<Opts>(ctx, it, end)) {
  340|       |               return;
  341|       |            }
  342|       |         }
  343|       |         while (true) {
  344|       |            switch (*it) {
  345|       |            case '{':
  346|       |               ++it;
  347|       |               if constexpr (not Opts.null_terminated) {
  348|       |                  if (it == end) [[unlikely]] {
  349|       |                     ctx.error = error_code::unexpected_end;
  350|       |                     return;
  351|       |                  }
  352|       |               }
  353|       |               skip_until_closed<Opts, '{', '}'>(ctx, it, end);
  354|       |               if (bool(ctx.error)) [[unlikely]]
  355|       |                  return;
  356|       |               break;
  357|       |            case '[':
  358|       |               ++it;
  359|       |               if constexpr (not Opts.null_terminated) {
  360|       |                  if (it == end) [[unlikely]] {
  361|       |                     ctx.error = error_code::unexpected_end;
  362|       |                     return;
  363|       |                  }
  364|       |               }
  365|       |               skip_until_closed<Opts, '[', ']'>(ctx, it, end);
  366|       |               if (bool(ctx.error)) [[unlikely]]
  367|       |                  return;
  368|       |               break;
  369|       |            case '"':
  370|       |               skip_string<Opts>(ctx, it, end);
  371|       |               if (bool(ctx.error)) [[unlikely]]
  372|       |                  return;
  373|       |               break;
  374|       |            case ',':
  375|       |            case '}':
  376|       |            case ']':
  377|       |               break;
  378|       |            case '\0':
  379|       |               ctx.error = error_code::unexpected_end;
  380|       |               return;
  381|       |            default: {
  382|       |               ++it;
  383|       |               if constexpr (not Opts.null_terminated) {
  384|       |                  if (it == end) [[unlikely]] {
  385|       |                     ctx.error = error_code::unexpected_end;
  386|       |                     return;
  387|       |                  }
  388|       |               }
  389|       |               continue;
  390|       |            }
  391|       |            }
  392|       |
  393|       |            break;
  394|       |         }
  395|       |      }
  396|  42.9k|      else {
  397|  42.9k|         if constexpr (not check_ws_handled(Opts)) {
  398|  42.9k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (398:17): [True: 0, False: 42.9k]
  ------------------
  399|      0|               return;
  400|      0|            }
  401|  42.9k|         }
  402|  42.9k|         switch (*it) {
  403|  6.22k|         case '{': {
  ------------------
  |  Branch (403:10): [True: 6.22k, False: 36.7k]
  ------------------
  404|  6.22k|            skip_object<Opts>(ctx, it, end);
  405|  6.22k|            break;
  406|      0|         }
  407|  3.57k|         case '[': {
  ------------------
  |  Branch (407:10): [True: 3.57k, False: 39.3k]
  ------------------
  408|  3.57k|            skip_array<Opts>(ctx, it, end);
  409|  3.57k|            break;
  410|      0|         }
  411|  7.91k|         case '"': {
  ------------------
  |  Branch (411:10): [True: 7.91k, False: 35.0k]
  ------------------
  412|  7.91k|            skip_string<Opts>(ctx, it, end);
  413|  7.91k|            break;
  414|      0|         }
  415|    632|         case 'n': {
  ------------------
  |  Branch (415:10): [True: 632, False: 42.3k]
  ------------------
  416|    632|            ++it;
  417|    632|            match<"ull", Opts>(ctx, it, end);
  418|    632|            break;
  419|      0|         }
  420|    724|         case 'f': {
  ------------------
  |  Branch (420:10): [True: 724, False: 42.2k]
  ------------------
  421|    724|            ++it;
  422|    724|            match<"alse", Opts>(ctx, it, end);
  423|    724|            break;
  424|      0|         }
  425|    825|         case 't': {
  ------------------
  |  Branch (425:10): [True: 825, False: 42.1k]
  ------------------
  426|    825|            ++it;
  427|    825|            match<"rue", Opts>(ctx, it, end);
  428|    825|            break;
  429|      0|         }
  430|      0|         case '\0': {
  ------------------
  |  Branch (430:10): [True: 0, False: 42.9k]
  ------------------
  431|      0|            ctx.error = error_code::unexpected_end;
  432|      0|            break;
  433|      0|         }
  434|  23.0k|         default: {
  ------------------
  |  Branch (434:10): [True: 23.0k, False: 19.9k]
  ------------------
  435|  23.0k|            skip_number<Opts>(ctx, it, end);
  436|  23.0k|         }
  437|  42.9k|         }
  438|  42.9k|      }
  439|  42.9k|   }
_ZN3glz11skip_objectITnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS6_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS2_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES4_S7_S6_EEvS9_SB_SC_:
   29|  6.22k|   {
   30|       |      if constexpr (!check_validate_skipped(Opts)) {
   31|       |         ++it;
   32|       |         if constexpr (not Opts.null_terminated) {
   33|       |            if (it == end) [[unlikely]] {
   34|       |               ctx.error = error_code::unexpected_end;
   35|       |               return;
   36|       |            }
   37|       |         }
   38|       |         skip_until_closed<Opts, '{', '}'>(ctx, it, end);
   39|       |      }
   40|  6.22k|      else {
   41|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
   42|       |         // released at each syntactic close below
   43|  6.22k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (43:14): [True: 0, False: 6.22k]
  ------------------
   44|      0|            return;
   45|      0|         }
   46|  6.22k|         ++it;
   47|  6.22k|         if constexpr (not Opts.null_terminated) {
   48|  6.22k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (48:17): [True: 0, False: 6.22k]
  ------------------
   49|      0|               ctx.error = error_code::unexpected_end;
   50|      0|               return;
   51|      0|            }
   52|  6.22k|         }
   53|  6.22k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (53:14): [True: 0, False: 6.22k]
  ------------------
   54|      0|            return;
   55|      0|         }
   56|  6.22k|         if (*it == '}') {
  ------------------
  |  Branch (56:14): [True: 614, False: 5.61k]
  ------------------
   57|    614|            --ctx.depth;
   58|    614|            ++it;
   59|    614|            if constexpr (not Opts.null_terminated) {
   60|    614|               if (it == end) {
  ------------------
  |  Branch (60:20): [True: 0, False: 614]
  ------------------
   61|      0|                  ctx.error = error_code::end_reached;
   62|      0|                  return;
   63|      0|               }
   64|    614|            }
   65|    614|            return;
   66|    614|         }
   67|  12.3k|         while (true) {
  ------------------
  |  Branch (67:17): [True: 12.3k, Folded]
  ------------------
   68|  12.3k|            if (*it != '"') {
  ------------------
  |  Branch (68:17): [True: 0, False: 12.3k]
  ------------------
   69|      0|               ctx.error = error_code::syntax_error;
   70|      0|               return;
   71|      0|            }
   72|  12.3k|            skip_string<Opts>(ctx, it, end);
   73|  12.3k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (73:17): [True: 0, False: 12.3k]
  ------------------
   74|      0|               return;
   75|  12.3k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (75:17): [True: 0, False: 12.3k]
  ------------------
   76|      0|               return;
   77|      0|            }
   78|  12.3k|            if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (78:17): [True: 0, False: 12.3k]
  ------------------
   79|      0|               return;
   80|      0|            }
   81|  12.3k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (81:17): [True: 0, False: 12.3k]
  ------------------
   82|      0|               return;
   83|      0|            }
   84|  12.3k|            skip_value<JSON>::op<Opts>(ctx, it, end);
   85|  12.3k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (85:17): [True: 0, False: 12.3k]
  ------------------
   86|      0|               return;
   87|  12.3k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (87:17): [True: 0, False: 12.3k]
  ------------------
   88|      0|               return;
   89|      0|            }
   90|  12.3k|            if (*it != ',') break;
  ------------------
  |  Branch (90:17): [True: 5.61k, False: 6.71k]
  ------------------
   91|  6.71k|            ++it;
   92|  6.71k|            if constexpr (not Opts.null_terminated) {
   93|  6.71k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (93:20): [True: 0, False: 6.71k]
  ------------------
   94|      0|                  ctx.error = error_code::unexpected_end;
   95|      0|                  return;
   96|      0|               }
   97|  6.71k|            }
   98|  6.71k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (98:17): [True: 0, False: 6.71k]
  ------------------
   99|      0|               return;
  100|      0|            }
  101|  6.71k|         }
  102|  5.61k|         match<'}'>(ctx, it);
  103|  5.61k|         --ctx.depth;
  104|  5.61k|         if constexpr (not Opts.null_terminated) {
  105|  5.61k|            if (it == end) {
  ------------------
  |  Branch (105:17): [True: 0, False: 5.61k]
  ------------------
  106|      0|               ctx.error = error_code::end_reached;
  107|      0|               return;
  108|      0|            }
  109|  5.61k|         }
  110|  5.61k|      }
  111|  6.22k|   }
_ZN3glz10skip_arrayITnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS6_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS2_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES4_S7_S6_QooeqdtT_6formatL_ZNS_4JSONEEeqdtT_6formatL_ZNS_6NDJSONEEEEvS9_SB_SC_:
  116|  3.57k|   {
  117|       |      if constexpr (!check_validate_skipped(Opts)) {
  118|       |         ++it;
  119|       |         if constexpr (not Opts.null_terminated) {
  120|       |            if (it == end) [[unlikely]] {
  121|       |               ctx.error = error_code::unexpected_end;
  122|       |               return;
  123|       |            }
  124|       |         }
  125|       |         skip_until_closed<Opts, '[', ']'>(ctx, it, end);
  126|       |      }
  127|  3.57k|      else {
  128|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
  129|       |         // released at each syntactic close below
  130|  3.57k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (130:14): [True: 0, False: 3.57k]
  ------------------
  131|      0|            return;
  132|      0|         }
  133|  3.57k|         ++it;
  134|  3.57k|         if constexpr (not Opts.null_terminated) {
  135|  3.57k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (135:17): [True: 0, False: 3.57k]
  ------------------
  136|      0|               ctx.error = error_code::unexpected_end;
  137|      0|               return;
  138|      0|            }
  139|  3.57k|         }
  140|  3.57k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (140:14): [True: 0, False: 3.57k]
  ------------------
  141|      0|            return;
  142|      0|         }
  143|  3.57k|         if (*it == ']') {
  ------------------
  |  Branch (143:14): [True: 395, False: 3.18k]
  ------------------
  144|    395|            --ctx.depth;
  145|    395|            ++it;
  146|    395|            if constexpr (not Opts.null_terminated) {
  147|    395|               if (it == end) {
  ------------------
  |  Branch (147:20): [True: 0, False: 395]
  ------------------
  148|      0|                  ctx.error = error_code::end_reached;
  149|      0|                  return;
  150|      0|               }
  151|    395|            }
  152|    395|            return;
  153|    395|         }
  154|  10.2k|         while (true) {
  ------------------
  |  Branch (154:17): [True: 10.2k, Folded]
  ------------------
  155|  10.2k|            skip_value<JSON>::op<Opts>(ctx, it, end);
  156|  10.2k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (156:17): [True: 0, False: 10.2k]
  ------------------
  157|      0|               return;
  158|  10.2k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (158:17): [True: 0, False: 10.2k]
  ------------------
  159|      0|               return;
  160|      0|            }
  161|  10.2k|            if (*it != ',') break;
  ------------------
  |  Branch (161:17): [True: 3.18k, False: 7.11k]
  ------------------
  162|  7.11k|            ++it;
  163|  7.11k|            if constexpr (not Opts.null_terminated) {
  164|  7.11k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (164:20): [True: 0, False: 7.11k]
  ------------------
  165|      0|                  ctx.error = error_code::unexpected_end;
  166|      0|                  return;
  167|      0|               }
  168|  7.11k|            }
  169|  7.11k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (169:17): [True: 0, False: 7.11k]
  ------------------
  170|      0|               return;
  171|      0|            }
  172|  7.11k|         }
  173|  3.18k|         match<']'>(ctx, it);
  174|  3.18k|         --ctx.depth;
  175|  3.18k|         if constexpr (not Opts.null_terminated) {
  176|  3.18k|            if (it == end) {
  ------------------
  |  Branch (176:17): [True: 0, False: 3.18k]
  ------------------
  177|      0|               ctx.error = error_code::end_reached;
  178|      0|               return;
  179|      0|            }
  180|  3.18k|         }
  181|  3.18k|      }
  182|  3.57k|   }

_ZN3glz10write_jsonITkNS_15write_supportedIL_ZNS_4JSONEEEERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS2_8expectedIS8_NS_9error_ctxEEEOT_:
 2843|  45.3k|   {
 2844|  45.3k|      return write<opts{}>(std::forward<T>(value));
 2845|  45.3k|   }
_ZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS7_RKS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|  45.3k|      {
  846|       |         if constexpr (check_string_as_number(Opts)) {
  847|       |            const sv str = [&]() -> const sv {
  848|       |               if constexpr (array_char_t<T>) {
  849|       |                  const auto* start = value.data();
  850|       |                  const auto* end = static_cast<const char*>(std::memchr(start, '\0', value.size()));
  851|       |                  return sv{start, end ? size_t(end - start) : value.size()};
  852|       |               }
  853|       |               else if constexpr (u8str_t<T>) {
  854|       |                  return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  855|       |               }
  856|       |               else {
  857|       |                  return str_view<T>(value);
  858|       |               }
  859|       |            }();
  860|       |            if (!ensure_space(ctx, b, ix + str.size() + write_padding_bytes)) [[unlikely]] {
  861|       |               return;
  862|       |            }
  863|       |            dump_maybe_empty<false>(str, b, ix);
  864|       |         }
  865|       |         else if constexpr (char_t<T>) {
  866|       |            if constexpr (check_unquoted(Opts)) {
  867|       |               dump(value, b, ix);
  868|       |            }
  869|       |            else {
  870|       |               // 8 bytes is enough for quotes and escaped character (worst case: \uXXXX = 6 + 2 quotes)
  871|       |               if (!ensure_space(ctx, b, ix + 8)) [[unlikely]] {
  872|       |                  return;
  873|       |               }
  874|       |
  875|       |               std::memcpy(&b[ix], "\"", 1);
  876|       |               ++ix;
  877|       |               if (const auto escaped = char_escape_table[uint8_t(value)]; escaped) {
  878|       |                  std::memcpy(&b[ix], &escaped, 2);
  879|       |                  ix += 2;
  880|       |               }
  881|       |               else if (value == '\0') {
  882|       |                  // null character treated as empty string
  883|       |               }
  884|       |               else if constexpr (check_escape_control_characters(Opts)) {
  885|       |                  if (uint8_t(value) < 0x20) {
  886|       |                     // Write as \uXXXX format
  887|       |                     char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
  888|       |                     constexpr char hex_digits[] = "0123456789ABCDEF";
  889|       |                     unicode_escape[4] = hex_digits[(value >> 4) & 0xF];
  890|       |                     unicode_escape[5] = hex_digits[value & 0xF];
  891|       |                     std::memcpy(&b[ix], unicode_escape, 6);
  892|       |                     ix += 6;
  893|       |                  }
  894|       |                  else {
  895|       |                     std::memcpy(&b[ix], &value, 1);
  896|       |                     ++ix;
  897|       |                  }
  898|       |               }
  899|       |               else {
  900|       |                  if constexpr (check_reject_control_characters(Opts)) {
  901|       |                     if (uint8_t(value) < 0x20) [[unlikely]] {
  902|       |                        ctx.error = error_code::invalid_control_character;
  903|       |                     }
  904|       |                  }
  905|       |                  std::memcpy(&b[ix], &value, 1);
  906|       |                  ++ix;
  907|       |               }
  908|       |               std::memcpy(&b[ix], "\"", 1);
  909|       |               ++ix;
  910|       |            }
  911|       |         }
  912|  45.3k|         else {
  913|       |            if constexpr (check_raw_string(Opts)) {
  914|       |               const sv str = [&]() -> const sv {
  915|       |                  if constexpr (u8str_t<T>) {
  916|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  917|       |                  }
  918|       |                  else {
  919|       |                     return str_view<T>(value);
  920|       |                  }
  921|       |               }();
  922|       |
  923|       |               // We need space for quotes and the string length: 2 + n.
  924|       |               // Use +8 for extra buffer
  925|       |               if (!ensure_space(ctx, b, ix + 8 + str.size())) [[unlikely]] {
  926|       |                  return;
  927|       |               }
  928|       |               // now we don't have to check writing
  929|       |
  930|       |               if constexpr (not check_unquoted(Opts)) {
  931|       |                  std::memcpy(&b[ix], "\"", 1);
  932|       |                  ++ix;
  933|       |               }
  934|       |               if (str.size()) [[likely]] {
  935|       |                  const auto n = str.size();
  936|       |                  std::memcpy(&b[ix], str.data(), n);
  937|       |                  ix += n;
  938|       |               }
  939|       |               if constexpr (not check_unquoted(Opts)) {
  940|       |                  std::memcpy(&b[ix], "\"", 1);
  941|       |                  ++ix;
  942|       |               }
  943|       |            }
  944|  45.3k|            else {
  945|  45.3k|               const sv str = [&]() -> const sv {
  946|  45.3k|                  if constexpr (array_char_t<T>) {
  947|  45.3k|                     return sv{value.data(), value.size()};
  948|  45.3k|                  }
  949|  45.3k|                  else if constexpr (u8str_t<T>) {
  950|  45.3k|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|  45.3k|                  }
  952|  45.3k|                  else {
  953|  45.3k|                     return str_view<T>(value);
  954|  45.3k|                  }
  955|  45.3k|               }();
  956|  45.3k|               const auto n = str.size();
  957|       |
  958|       |               // In the case n == 0 we need two characters for quotes.
  959|       |               // For each individual character we need room for two characters to handle escapes.
  960|       |               // When using Unicode escapes, we might need up to 6 characters (\uXXXX) per character
  961|       |               if constexpr (check_escape_control_characters(Opts)) {
  962|       |                  if constexpr (has_bounded_capacity<B>) {
  963|       |                     // 6 bytes per character is a ceiling only a string of nothing but control
  964|       |                     // characters reaches. A resizable buffer merely over-allocates against it,
  965|       |                     // but a fixed buffer has nowhere to grow, so the ceiling would reject output
  966|       |                     // that fits. Measuring the string answers exactly, at the cost of a pass over
  967|       |                     // it, so bracket the measurement between two O(1) bounds and only pay it when
  968|       |                     // the answer is still in doubt: the ceiling fitting means yes, and the floor
  969|       |                     // of one byte per character not fitting means no.
  970|       |                     const size_t capacity = buffer_traits<std::remove_cvref_t<B>>::capacity(b);
  971|       |                     size_t required = ix + 10 + 6 * n;
  972|       |                     if (required > capacity) [[unlikely]] {
  973|       |                        required = ix + 10 + n;
  974|       |                        if (required <= capacity) {
  975|       |                           required = ix + 10 + detail::escaped_string_size(str);
  976|       |                        }
  977|       |                     }
  978|       |                     if (!ensure_space(ctx, b, required)) [[unlikely]] {
  979|       |                        return;
  980|       |                     }
  981|       |                  }
  982|       |                  // We need 2 + 6 * n characters in the worst case (all control chars)
  983|       |                  else if (!ensure_space(ctx, b, ix + 10 + 6 * n)) [[unlikely]] {
  984|       |                     return;
  985|       |                  }
  986|       |               }
  987|  45.3k|               else {
  988|       |                  // Using the original sizing
  989|  45.3k|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 45.3k]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|  45.3k|               }
  993|       |               // now we don't have to check writing
  994|       |
  995|       |               if constexpr (check_unquoted(Opts)) {
  996|       |                  if (n) {
  997|       |                     std::memcpy(&b[ix], str.data(), n);
  998|       |                     ix += n;
  999|       |                  }
 1000|       |               }
 1001|  45.3k|               else {
 1002|  45.3k|                  std::memcpy(&b[ix], "\"", 1);
 1003|  45.3k|                  ++ix;
 1004|       |
 1005|  45.3k|                  const auto* c = str.data();
 1006|  45.3k|                  const auto* const e = c + n;
 1007|  45.3k|                  const auto start = &b[ix];
 1008|  45.3k|                  auto data = start;
 1009|       |
 1010|       |                  // By default we don't escape control characters for performance. Invalid JSON characters
 1011|       |                  // result in null characters in the output, making the JSON invalid — these would then be
 1012|       |                  // detected upon reading. Enable the `escape_control_characters` option to properly escape
 1013|       |                  // control characters (0x00–0x1F) as \uXXXX sequences.
 1014|       |
 1015|       |                  // Escape handler: writes the escaped form of *c into data, advances both pointers
 1016|  45.3k|                  auto write_escape = [&]() {
 1017|  45.3k|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|  45.3k|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|  45.3k|                           std::memcpy(data, &escaped, 2);
 1020|  45.3k|                           data += 2;
 1021|  45.3k|                        }
 1022|  45.3k|                        else {
 1023|  45.3k|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|  45.3k|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|  45.3k|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|  45.3k|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|  45.3k|                           std::memcpy(data, unicode_escape, 6);
 1028|  45.3k|                           data += 6;
 1029|  45.3k|                        }
 1030|  45.3k|                     }
 1031|  45.3k|                     else {
 1032|  45.3k|                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|  45.3k|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|  45.3k|                              ctx.error = error_code::invalid_control_character;
 1040|  45.3k|                           }
 1041|  45.3k|                        }
 1042|  45.3k|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  45.3k|                        data += 2;
 1044|  45.3k|                     }
 1045|  45.3k|                     ++c;
 1046|  45.3k|                  };
 1047|       |
 1048|       |                  // Adding a helper here means adding a branch to string_escape_simd() in
 1049|       |                  // simd/backends.hpp, which names the widest one this cascade invokes, and a row
 1050|       |                  // to known_builds in tests/json_test/utf8_validation_test.cpp, which checks it.
 1051|       |#if defined(GLZ_USE_AVX2)
 1052|       |                  detail::avx2_string_escape(c, e, data, n, write_escape);
 1053|       |#endif
 1054|  45.3k|#if defined(GLZ_USE_SSE2)
 1055|  45.3k|                  detail::sse2_string_escape(c, e, data, n, write_escape);
 1056|       |#elif defined(GLZ_USE_NEON)
 1057|       |                  detail::neon_string_escape(c, e, data, n, write_escape);
 1058|       |#endif
 1059|       |
 1060|       |                  // SWAR: 8 bytes at a time
 1061|  45.3k|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 45.3k, False: 0]
  ------------------
 1062|  88.4k|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 43.1k, False: 45.3k]
  ------------------
 1063|  43.1k|                        std::memcpy(data, c, 8);
 1064|  43.1k|                        uint64_t swar;
 1065|  43.1k|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|  43.1k|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|  43.1k|                        const uint64_t lo7 = swar & lo7_mask;
 1072|  43.1k|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|  43.1k|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|  43.1k|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|  43.1k|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|  43.1k|                        next &= repeat_byte8(0b10000000);
 1078|  43.1k|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 30.8k, False: 12.2k]
  ------------------
 1079|  30.8k|                           data += 8;
 1080|  30.8k|                           c += 8;
 1081|  30.8k|                           continue;
 1082|  30.8k|                        }
 1083|       |
 1084|  12.2k|                        const auto length = (countr_zero(next) >> 3);
 1085|  12.2k|                        c += length;
 1086|  12.2k|                        data += length;
 1087|  12.2k|                        write_escape();
 1088|  12.2k|                     }
 1089|  45.3k|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|   216k|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 170k, False: 45.3k]
  ------------------
 1093|   170k|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 2.52k, False: 168k]
  ------------------
 1094|  2.52k|                        std::memcpy(data, &escaped, 2);
 1095|  2.52k|                        data += 2;
 1096|  2.52k|                     }
 1097|       |                     else if constexpr (check_escape_control_characters(Opts)) {
 1098|       |                        if (uint8_t(*c) < 0x20) {
 1099|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1100|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1101|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1102|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1103|       |                           std::memcpy(data, unicode_escape, 6);
 1104|       |                           data += 6;
 1105|       |                        }
 1106|       |                        else {
 1107|       |                           std::memcpy(data, c, 1);
 1108|       |                           ++data;
 1109|       |                        }
 1110|       |                     }
 1111|   168k|                     else {
 1112|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1113|       |                           if (uint8_t(*c) < 0x20) [[unlikely]] {
 1114|       |                              ctx.error = error_code::invalid_control_character;
 1115|       |                           }
 1116|       |                        }
 1117|   168k|                        std::memcpy(data, c, 1);
 1118|   168k|                        ++data;
 1119|   168k|                     }
 1120|   170k|                  }
 1121|       |
 1122|  45.3k|                  ix += size_t(data - start);
 1123|       |
 1124|  45.3k|                  std::memcpy(&b[ix], "\"", 1);
 1125|  45.3k|                  ++ix;
 1126|  45.3k|               }
 1127|  45.3k|            }
 1128|  45.3k|         }
 1129|  45.3k|      }
_ZZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS7_RKS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|  45.3k|               const sv str = [&]() -> const sv {
  946|       |                  if constexpr (array_char_t<T>) {
  947|       |                     return sv{value.data(), value.size()};
  948|       |                  }
  949|       |                  else if constexpr (u8str_t<T>) {
  950|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|       |                  }
  952|  45.3k|                  else {
  953|  45.3k|                     return str_view<T>(value);
  954|  45.3k|                  }
  955|  45.3k|               }();
_ZZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS7_RKS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
 1016|  13.1M|                  auto write_escape = [&]() {
 1017|       |                     if constexpr (check_escape_control_characters(Opts)) {
 1018|       |                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|       |                           std::memcpy(data, &escaped, 2);
 1020|       |                           data += 2;
 1021|       |                        }
 1022|       |                        else {
 1023|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|       |                           std::memcpy(data, unicode_escape, 6);
 1028|       |                           data += 6;
 1029|       |                        }
 1030|       |                     }
 1031|  13.1M|                     else {
 1032|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|       |                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|       |                              ctx.error = error_code::invalid_control_character;
 1040|       |                           }
 1041|       |                        }
 1042|  13.1M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  13.1M|                        data += 2;
 1044|  13.1M|                     }
 1045|  13.1M|                     ++c;
 1046|  13.1M|                  };
_ZN3glz10write_jsonITkNS_15write_supportedIL_ZNS_4JSONEEEERNSt3__17variantIJDnNS2_17basic_string_viewIcNS2_11char_traitsIcEEEElEEEEENS2_8expectedINS2_12basic_stringIcS6_NS2_9allocatorIcEEEENS_9error_ctxEEEOT_:
 2843|  44.3k|   {
 2844|  44.3k|      return write<opts{}>(std::forward<T>(value));
 2845|  44.3k|   }
_ZN3glz2toILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS5_NS1_9allocatorIcEEEERS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1955|  44.3k|      {
 1956|       |         // Adjacent tagging needs no per-alternative dispatch: the discriminator and the value are
 1957|       |         // written side by side whatever the alternative is. The visit below still instantiates in
 1958|       |         // that mode (`if constexpr` does not discard the statements after it), but both of its
 1959|       |         // tagged branches are compile-time dead there and the runtime `return` keeps it unreached.
 1960|       |         if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::adjacent) {
 1961|       |            write_adjacent<Opts>(value, ctx, b, ix);
 1962|       |            return;
 1963|       |         }
 1964|  44.3k|         std::visit(
 1965|  44.3k|            [&](auto&& val) {
 1966|  44.3k|               using V = std::decay_t<decltype(val)>;
 1967|       |
 1968|  44.3k|               if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 1969|  44.3k|                             custom_write<V>) {
 1970|       |                  // Custom alternative: the user's serializer emits the object body, into which we
 1971|       |                  // merge the variant tag. For this to produce valid JSON the custom to<> must (1)
 1972|       |                  // write an object body and (2) honor opening_and_closing_handled (suppress its own
 1973|       |                  // braces) so the tag shares the alternative's object. A custom writer that emits a
 1974|       |                  // scalar/array, or that ignores those flags, would yield malformed output.
 1975|       |                  //
 1976|       |                  // The tag-emission below mirrors the reflected-object branch that follows; keep the
 1977|       |                  // two in sync. The body size is not known at compile time, so we always write the
 1978|       |                  // tag separator and then drop it at runtime if the body turned out empty.
 1979|  44.3k|                  if (missing_id(value, ctx)) {
 1980|  44.3k|                     return;
 1981|  44.3k|                  }
 1982|  44.3k|                  using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 1983|  44.3k|                  if constexpr (Opts.prettify) {
 1984|  44.3k|                     dump("{\n", b, ix);
 1985|  44.3k|                     ctx.depth += check_indentation_width(Opts);
 1986|  44.3k|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 1987|  44.3k|                     dump('"', b, ix);
 1988|  44.3k|                     dump_maybe_empty(tag_v<T>, b, ix);
 1989|  44.3k|                     if constexpr (std::integral<id_type>) {
 1990|  44.3k|                        dump("\": ", b, ix);
 1991|  44.3k|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 1992|  44.3k|                     }
 1993|  44.3k|                     else {
 1994|  44.3k|                        dump("\": \"", b, ix);
 1995|  44.3k|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 1996|  44.3k|                        dump('"', b, ix);
 1997|  44.3k|                     }
 1998|  44.3k|                     const auto pos_after_tag = ix;
 1999|  44.3k|                     dump(",\n", b, ix);
 2000|  44.3k|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2001|  44.3k|                     const auto pos_body_start = ix;
 2002|  44.3k|                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2003|  44.3k|                     if (ix == pos_body_start) {
 2004|  44.3k|                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2005|  44.3k|                     }
 2006|  44.3k|                     ctx.depth -= check_indentation_width(Opts);
 2007|  44.3k|                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2008|  44.3k|                        return;
 2009|  44.3k|                     }
 2010|  44.3k|                     std::memcpy(&b[ix], "\n", 1);
 2011|  44.3k|                     ++ix;
 2012|  44.3k|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2013|  44.3k|                     ix += ctx.depth;
 2014|  44.3k|                     std::memcpy(&b[ix], "}", 1);
 2015|  44.3k|                     ++ix;
 2016|  44.3k|                  }
 2017|  44.3k|                  else {
 2018|  44.3k|                     dump("{\"", b, ix);
 2019|  44.3k|                     dump_maybe_empty(tag_v<T>, b, ix);
 2020|  44.3k|                     if constexpr (std::integral<id_type>) {
 2021|  44.3k|                        dump("\":", b, ix);
 2022|  44.3k|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2023|  44.3k|                     }
 2024|  44.3k|                     else {
 2025|  44.3k|                        dump("\":\"", b, ix);
 2026|  44.3k|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2027|  44.3k|                        dump('"', b, ix);
 2028|  44.3k|                     }
 2029|  44.3k|                     const auto pos_after_tag = ix;
 2030|  44.3k|                     dump(',', b, ix);
 2031|  44.3k|                     const auto pos_body_start = ix;
 2032|  44.3k|                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2033|  44.3k|                     if (ix == pos_body_start) {
 2034|  44.3k|                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2035|  44.3k|                     }
 2036|  44.3k|                     dump('}', b, ix);
 2037|  44.3k|                  }
 2038|  44.3k|               }
 2039|  44.3k|               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2040|  44.3k|                                  variant_unit_alternative<V>) {
 2041|       |                  // A unit alternative carries no data, so internal tagging renders it as the
 2042|       |                  // discriminator alone -- the same object an empty struct alternative produces.
 2043|  44.3k|                  if (missing_id(value, ctx)) {
 2044|  44.3k|                     return;
 2045|  44.3k|                  }
 2046|  44.3k|                  if constexpr (Opts.prettify) {
 2047|  44.3k|                     dump("{\n", b, ix);
 2048|  44.3k|                     ctx.depth += check_indentation_width(Opts);
 2049|  44.3k|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2050|  44.3k|                     dump('"', b, ix);
 2051|  44.3k|                     dump_maybe_empty(tag_v<T>, b, ix);
 2052|  44.3k|                     dump("\": ", b, ix);
 2053|  44.3k|                     write_id<Opts>(value, ctx, b, ix);
 2054|  44.3k|                     ctx.depth -= check_indentation_width(Opts);
 2055|  44.3k|                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2056|  44.3k|                        return;
 2057|  44.3k|                     }
 2058|  44.3k|                     std::memcpy(&b[ix], "\n", 1);
 2059|  44.3k|                     ++ix;
 2060|  44.3k|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2061|  44.3k|                     ix += ctx.depth;
 2062|  44.3k|                     std::memcpy(&b[ix], "}", 1);
 2063|  44.3k|                     ++ix;
 2064|  44.3k|                  }
 2065|  44.3k|                  else {
 2066|  44.3k|                     dump("{\"", b, ix);
 2067|  44.3k|                     dump_maybe_empty(tag_v<T>, b, ix);
 2068|  44.3k|                     dump("\":", b, ix);
 2069|  44.3k|                     write_id<Opts>(value, ctx, b, ix);
 2070|  44.3k|                     dump('}', b, ix);
 2071|  44.3k|                  }
 2072|  44.3k|               }
 2073|  44.3k|               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2074|  44.3k|                                  (glaze_object_t<V> || reflectable<V> || is_memory_object<V>) &&
 2075|  44.3k|                                  (not alternative_declares_key<V>(tag_v<T>))) {
 2076|       |                  // An alternative that declares a member named like the discriminator carries the
 2077|       |                  // discriminator itself, so no tag is merged here and the bare-write branch below
 2078|       |                  // handles it. Previously only `reflectable` alternatives were excluded; a
 2079|       |                  // `glaze_object_t` one fell through to this branch and emitted the key twice.
 2080|  44.3k|                  if (missing_id(value, ctx)) {
 2081|  44.3k|                     return;
 2082|  44.3k|                  }
 2083|  44.3k|                  constexpr auto N = []() {
 2084|  44.3k|                     if constexpr (is_memory_object<V>) {
 2085|  44.3k|                        return reflect<memory_type<V>>::size;
 2086|  44.3k|                     }
 2087|  44.3k|                     else {
 2088|  44.3k|                        return reflect<V>::size;
 2089|  44.3k|                     }
 2090|  44.3k|                  }();
 2091|       |
 2092|       |                  // must first write out type
 2093|  44.3k|                  if constexpr (Opts.prettify) {
 2094|  44.3k|                     dump("{\n", b, ix);
 2095|  44.3k|                     ctx.depth += check_indentation_width(Opts);
 2096|  44.3k|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2097|  44.3k|                     dump('"', b, ix);
 2098|  44.3k|                     dump_maybe_empty(tag_v<T>, b, ix);
 2099|       |
 2100|  44.3k|                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2101|       |
 2102|  44.3k|                     if constexpr (std::integral<id_type>) {
 2103|  44.3k|                        dump("\": ", b, ix);
 2104|  44.3k|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2105|  44.3k|                        if constexpr (N > 0) {
 2106|  44.3k|                           dump(",\n", b, ix);
 2107|  44.3k|                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2108|  44.3k|                        }
 2109|  44.3k|                     }
 2110|  44.3k|                     else {
 2111|  44.3k|                        dump("\": \"", b, ix);
 2112|  44.3k|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2113|  44.3k|                        if constexpr (N == 0) {
 2114|  44.3k|                           dump('"', b, ix);
 2115|  44.3k|                        }
 2116|  44.3k|                        else {
 2117|  44.3k|                           dump("\",\n", b, ix);
 2118|  44.3k|                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2119|  44.3k|                        }
 2120|  44.3k|                     }
 2121|  44.3k|                  }
 2122|  44.3k|                  else {
 2123|  44.3k|                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2124|       |
 2125|  44.3k|                     dump("{\"", b, ix);
 2126|  44.3k|                     dump_maybe_empty(tag_v<T>, b, ix);
 2127|       |
 2128|  44.3k|                     if constexpr (std::integral<id_type>) {
 2129|  44.3k|                        dump("\":", b, ix);
 2130|  44.3k|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2131|  44.3k|                        if constexpr (N > 0) {
 2132|  44.3k|                           dump(',', b, ix);
 2133|  44.3k|                        }
 2134|  44.3k|                     }
 2135|  44.3k|                     else {
 2136|  44.3k|                        dump("\":\"", b, ix);
 2137|  44.3k|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2138|  44.3k|                        if constexpr (N == 0) {
 2139|  44.3k|                           dump('"', b, ix);
 2140|  44.3k|                        }
 2141|  44.3k|                        else {
 2142|  44.3k|                           dump("\",", b, ix);
 2143|  44.3k|                        }
 2144|  44.3k|                     }
 2145|  44.3k|                  }
 2146|  44.3k|                  if constexpr (is_memory_object<V>) {
 2147|  44.3k|                     if (!val) [[unlikely]] {
 2148|  44.3k|                        ctx.error = error_code::invalid_variant_object;
 2149|  44.3k|                        return;
 2150|  44.3k|                     }
 2151|  44.3k|                     to<JSON, memory_type<V>>::template op<opening_and_closing_handled<Opts>()>(*val, ctx, b, ix);
 2152|  44.3k|                  }
 2153|  44.3k|                  else {
 2154|  44.3k|                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2155|  44.3k|                  }
 2156|       |                  // If we skip everything then we may have an extra comma, which we want to revert
 2157|  44.3k|                  if constexpr (Opts.skip_null_members) {
 2158|  44.3k|                     if (b[ix - 1] == ',') {
 2159|  44.3k|                        --ix;
 2160|  44.3k|                     }
 2161|  44.3k|                  }
 2162|       |
 2163|  44.3k|                  if constexpr (Opts.prettify) {
 2164|  44.3k|                     ctx.depth -= check_indentation_width(Opts);
 2165|  44.3k|                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2166|  44.3k|                        return;
 2167|  44.3k|                     }
 2168|  44.3k|                     std::memcpy(&b[ix], "\n", 1);
 2169|  44.3k|                     ++ix;
 2170|  44.3k|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2171|  44.3k|                     ix += ctx.depth;
 2172|  44.3k|                     std::memcpy(&b[ix], "}", 1);
 2173|  44.3k|                     ++ix;
 2174|  44.3k|                  }
 2175|  44.3k|                  else {
 2176|  44.3k|                     dump('}', b, ix);
 2177|  44.3k|                  }
 2178|  44.3k|               }
 2179|  44.3k|               else {
 2180|  44.3k|                  to<JSON, V>::template op<Opts>(val, ctx, b, ix);
 2181|  44.3k|               }
 2182|  44.3k|            },
 2183|  44.3k|            value);
 2184|  44.3k|      }
_ZZN3glz2toILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS5_NS1_9allocatorIcEEEERS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlOT_E_clIRDnEEDaSS_:
 1965|  5.64k|            [&](auto&& val) {
 1966|  5.64k|               using V = std::decay_t<decltype(val)>;
 1967|       |
 1968|       |               if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 1969|       |                             custom_write<V>) {
 1970|       |                  // Custom alternative: the user's serializer emits the object body, into which we
 1971|       |                  // merge the variant tag. For this to produce valid JSON the custom to<> must (1)
 1972|       |                  // write an object body and (2) honor opening_and_closing_handled (suppress its own
 1973|       |                  // braces) so the tag shares the alternative's object. A custom writer that emits a
 1974|       |                  // scalar/array, or that ignores those flags, would yield malformed output.
 1975|       |                  //
 1976|       |                  // The tag-emission below mirrors the reflected-object branch that follows; keep the
 1977|       |                  // two in sync. The body size is not known at compile time, so we always write the
 1978|       |                  // tag separator and then drop it at runtime if the body turned out empty.
 1979|       |                  if (missing_id(value, ctx)) {
 1980|       |                     return;
 1981|       |                  }
 1982|       |                  using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 1983|       |                  if constexpr (Opts.prettify) {
 1984|       |                     dump("{\n", b, ix);
 1985|       |                     ctx.depth += check_indentation_width(Opts);
 1986|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 1987|       |                     dump('"', b, ix);
 1988|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 1989|       |                     if constexpr (std::integral<id_type>) {
 1990|       |                        dump("\": ", b, ix);
 1991|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 1992|       |                     }
 1993|       |                     else {
 1994|       |                        dump("\": \"", b, ix);
 1995|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 1996|       |                        dump('"', b, ix);
 1997|       |                     }
 1998|       |                     const auto pos_after_tag = ix;
 1999|       |                     dump(",\n", b, ix);
 2000|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2001|       |                     const auto pos_body_start = ix;
 2002|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2003|       |                     if (ix == pos_body_start) {
 2004|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2005|       |                     }
 2006|       |                     ctx.depth -= check_indentation_width(Opts);
 2007|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2008|       |                        return;
 2009|       |                     }
 2010|       |                     std::memcpy(&b[ix], "\n", 1);
 2011|       |                     ++ix;
 2012|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2013|       |                     ix += ctx.depth;
 2014|       |                     std::memcpy(&b[ix], "}", 1);
 2015|       |                     ++ix;
 2016|       |                  }
 2017|       |                  else {
 2018|       |                     dump("{\"", b, ix);
 2019|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2020|       |                     if constexpr (std::integral<id_type>) {
 2021|       |                        dump("\":", b, ix);
 2022|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2023|       |                     }
 2024|       |                     else {
 2025|       |                        dump("\":\"", b, ix);
 2026|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2027|       |                        dump('"', b, ix);
 2028|       |                     }
 2029|       |                     const auto pos_after_tag = ix;
 2030|       |                     dump(',', b, ix);
 2031|       |                     const auto pos_body_start = ix;
 2032|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2033|       |                     if (ix == pos_body_start) {
 2034|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2035|       |                     }
 2036|       |                     dump('}', b, ix);
 2037|       |                  }
 2038|       |               }
 2039|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2040|       |                                  variant_unit_alternative<V>) {
 2041|       |                  // A unit alternative carries no data, so internal tagging renders it as the
 2042|       |                  // discriminator alone -- the same object an empty struct alternative produces.
 2043|       |                  if (missing_id(value, ctx)) {
 2044|       |                     return;
 2045|       |                  }
 2046|       |                  if constexpr (Opts.prettify) {
 2047|       |                     dump("{\n", b, ix);
 2048|       |                     ctx.depth += check_indentation_width(Opts);
 2049|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2050|       |                     dump('"', b, ix);
 2051|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2052|       |                     dump("\": ", b, ix);
 2053|       |                     write_id<Opts>(value, ctx, b, ix);
 2054|       |                     ctx.depth -= check_indentation_width(Opts);
 2055|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2056|       |                        return;
 2057|       |                     }
 2058|       |                     std::memcpy(&b[ix], "\n", 1);
 2059|       |                     ++ix;
 2060|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2061|       |                     ix += ctx.depth;
 2062|       |                     std::memcpy(&b[ix], "}", 1);
 2063|       |                     ++ix;
 2064|       |                  }
 2065|       |                  else {
 2066|       |                     dump("{\"", b, ix);
 2067|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2068|       |                     dump("\":", b, ix);
 2069|       |                     write_id<Opts>(value, ctx, b, ix);
 2070|       |                     dump('}', b, ix);
 2071|       |                  }
 2072|       |               }
 2073|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2074|       |                                  (glaze_object_t<V> || reflectable<V> || is_memory_object<V>) &&
 2075|       |                                  (not alternative_declares_key<V>(tag_v<T>))) {
 2076|       |                  // An alternative that declares a member named like the discriminator carries the
 2077|       |                  // discriminator itself, so no tag is merged here and the bare-write branch below
 2078|       |                  // handles it. Previously only `reflectable` alternatives were excluded; a
 2079|       |                  // `glaze_object_t` one fell through to this branch and emitted the key twice.
 2080|       |                  if (missing_id(value, ctx)) {
 2081|       |                     return;
 2082|       |                  }
 2083|       |                  constexpr auto N = []() {
 2084|       |                     if constexpr (is_memory_object<V>) {
 2085|       |                        return reflect<memory_type<V>>::size;
 2086|       |                     }
 2087|       |                     else {
 2088|       |                        return reflect<V>::size;
 2089|       |                     }
 2090|       |                  }();
 2091|       |
 2092|       |                  // must first write out type
 2093|       |                  if constexpr (Opts.prettify) {
 2094|       |                     dump("{\n", b, ix);
 2095|       |                     ctx.depth += check_indentation_width(Opts);
 2096|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2097|       |                     dump('"', b, ix);
 2098|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2099|       |
 2100|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2101|       |
 2102|       |                     if constexpr (std::integral<id_type>) {
 2103|       |                        dump("\": ", b, ix);
 2104|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2105|       |                        if constexpr (N > 0) {
 2106|       |                           dump(",\n", b, ix);
 2107|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2108|       |                        }
 2109|       |                     }
 2110|       |                     else {
 2111|       |                        dump("\": \"", b, ix);
 2112|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2113|       |                        if constexpr (N == 0) {
 2114|       |                           dump('"', b, ix);
 2115|       |                        }
 2116|       |                        else {
 2117|       |                           dump("\",\n", b, ix);
 2118|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2119|       |                        }
 2120|       |                     }
 2121|       |                  }
 2122|       |                  else {
 2123|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2124|       |
 2125|       |                     dump("{\"", b, ix);
 2126|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2127|       |
 2128|       |                     if constexpr (std::integral<id_type>) {
 2129|       |                        dump("\":", b, ix);
 2130|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2131|       |                        if constexpr (N > 0) {
 2132|       |                           dump(',', b, ix);
 2133|       |                        }
 2134|       |                     }
 2135|       |                     else {
 2136|       |                        dump("\":\"", b, ix);
 2137|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2138|       |                        if constexpr (N == 0) {
 2139|       |                           dump('"', b, ix);
 2140|       |                        }
 2141|       |                        else {
 2142|       |                           dump("\",", b, ix);
 2143|       |                        }
 2144|       |                     }
 2145|       |                  }
 2146|       |                  if constexpr (is_memory_object<V>) {
 2147|       |                     if (!val) [[unlikely]] {
 2148|       |                        ctx.error = error_code::invalid_variant_object;
 2149|       |                        return;
 2150|       |                     }
 2151|       |                     to<JSON, memory_type<V>>::template op<opening_and_closing_handled<Opts>()>(*val, ctx, b, ix);
 2152|       |                  }
 2153|       |                  else {
 2154|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2155|       |                  }
 2156|       |                  // If we skip everything then we may have an extra comma, which we want to revert
 2157|       |                  if constexpr (Opts.skip_null_members) {
 2158|       |                     if (b[ix - 1] == ',') {
 2159|       |                        --ix;
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (Opts.prettify) {
 2164|       |                     ctx.depth -= check_indentation_width(Opts);
 2165|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2166|       |                        return;
 2167|       |                     }
 2168|       |                     std::memcpy(&b[ix], "\n", 1);
 2169|       |                     ++ix;
 2170|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2171|       |                     ix += ctx.depth;
 2172|       |                     std::memcpy(&b[ix], "}", 1);
 2173|       |                     ++ix;
 2174|       |                  }
 2175|       |                  else {
 2176|       |                     dump('}', b, ix);
 2177|       |                  }
 2178|       |               }
 2179|  5.64k|               else {
 2180|  5.64k|                  to<JSON, V>::template op<Opts>(val, ctx, b, ix);
 2181|  5.64k|               }
 2182|  5.64k|            },
_ZN3glz2toILj10EDnE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERDnTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1849|  5.64k|      {
 1850|  5.64k|         if constexpr (not check_write_unchecked(Opts)) {
 1851|  5.64k|            if (!ensure_space(ctx, b, ix + 4)) [[unlikely]] {
  ------------------
  |  Branch (1851:17): [True: 0, False: 5.64k]
  ------------------
 1852|      0|               return;
 1853|      0|            }
 1854|  5.64k|         }
 1855|       |         if constexpr (std::endian::native == std::endian::big) {
 1856|       |            static constexpr char null_v[] = "null";
 1857|       |            std::memcpy(&b[ix], null_v, 4);
 1858|       |         }
 1859|  5.64k|         else {
 1860|  5.64k|            static constexpr uint32_t null_v = 1819047278;
 1861|  5.64k|            std::memcpy(&b[ix], &null_v, 4);
 1862|  5.64k|         }
 1863|  5.64k|         ix += 4;
 1864|  5.64k|      }
_ZZN3glz2toILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS5_NS1_9allocatorIcEEEERS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlOT_E_clIRS6_EEDaSS_:
 1965|  5.12k|            [&](auto&& val) {
 1966|  5.12k|               using V = std::decay_t<decltype(val)>;
 1967|       |
 1968|       |               if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 1969|       |                             custom_write<V>) {
 1970|       |                  // Custom alternative: the user's serializer emits the object body, into which we
 1971|       |                  // merge the variant tag. For this to produce valid JSON the custom to<> must (1)
 1972|       |                  // write an object body and (2) honor opening_and_closing_handled (suppress its own
 1973|       |                  // braces) so the tag shares the alternative's object. A custom writer that emits a
 1974|       |                  // scalar/array, or that ignores those flags, would yield malformed output.
 1975|       |                  //
 1976|       |                  // The tag-emission below mirrors the reflected-object branch that follows; keep the
 1977|       |                  // two in sync. The body size is not known at compile time, so we always write the
 1978|       |                  // tag separator and then drop it at runtime if the body turned out empty.
 1979|       |                  if (missing_id(value, ctx)) {
 1980|       |                     return;
 1981|       |                  }
 1982|       |                  using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 1983|       |                  if constexpr (Opts.prettify) {
 1984|       |                     dump("{\n", b, ix);
 1985|       |                     ctx.depth += check_indentation_width(Opts);
 1986|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 1987|       |                     dump('"', b, ix);
 1988|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 1989|       |                     if constexpr (std::integral<id_type>) {
 1990|       |                        dump("\": ", b, ix);
 1991|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 1992|       |                     }
 1993|       |                     else {
 1994|       |                        dump("\": \"", b, ix);
 1995|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 1996|       |                        dump('"', b, ix);
 1997|       |                     }
 1998|       |                     const auto pos_after_tag = ix;
 1999|       |                     dump(",\n", b, ix);
 2000|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2001|       |                     const auto pos_body_start = ix;
 2002|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2003|       |                     if (ix == pos_body_start) {
 2004|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2005|       |                     }
 2006|       |                     ctx.depth -= check_indentation_width(Opts);
 2007|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2008|       |                        return;
 2009|       |                     }
 2010|       |                     std::memcpy(&b[ix], "\n", 1);
 2011|       |                     ++ix;
 2012|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2013|       |                     ix += ctx.depth;
 2014|       |                     std::memcpy(&b[ix], "}", 1);
 2015|       |                     ++ix;
 2016|       |                  }
 2017|       |                  else {
 2018|       |                     dump("{\"", b, ix);
 2019|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2020|       |                     if constexpr (std::integral<id_type>) {
 2021|       |                        dump("\":", b, ix);
 2022|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2023|       |                     }
 2024|       |                     else {
 2025|       |                        dump("\":\"", b, ix);
 2026|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2027|       |                        dump('"', b, ix);
 2028|       |                     }
 2029|       |                     const auto pos_after_tag = ix;
 2030|       |                     dump(',', b, ix);
 2031|       |                     const auto pos_body_start = ix;
 2032|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2033|       |                     if (ix == pos_body_start) {
 2034|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2035|       |                     }
 2036|       |                     dump('}', b, ix);
 2037|       |                  }
 2038|       |               }
 2039|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2040|       |                                  variant_unit_alternative<V>) {
 2041|       |                  // A unit alternative carries no data, so internal tagging renders it as the
 2042|       |                  // discriminator alone -- the same object an empty struct alternative produces.
 2043|       |                  if (missing_id(value, ctx)) {
 2044|       |                     return;
 2045|       |                  }
 2046|       |                  if constexpr (Opts.prettify) {
 2047|       |                     dump("{\n", b, ix);
 2048|       |                     ctx.depth += check_indentation_width(Opts);
 2049|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2050|       |                     dump('"', b, ix);
 2051|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2052|       |                     dump("\": ", b, ix);
 2053|       |                     write_id<Opts>(value, ctx, b, ix);
 2054|       |                     ctx.depth -= check_indentation_width(Opts);
 2055|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2056|       |                        return;
 2057|       |                     }
 2058|       |                     std::memcpy(&b[ix], "\n", 1);
 2059|       |                     ++ix;
 2060|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2061|       |                     ix += ctx.depth;
 2062|       |                     std::memcpy(&b[ix], "}", 1);
 2063|       |                     ++ix;
 2064|       |                  }
 2065|       |                  else {
 2066|       |                     dump("{\"", b, ix);
 2067|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2068|       |                     dump("\":", b, ix);
 2069|       |                     write_id<Opts>(value, ctx, b, ix);
 2070|       |                     dump('}', b, ix);
 2071|       |                  }
 2072|       |               }
 2073|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2074|       |                                  (glaze_object_t<V> || reflectable<V> || is_memory_object<V>) &&
 2075|       |                                  (not alternative_declares_key<V>(tag_v<T>))) {
 2076|       |                  // An alternative that declares a member named like the discriminator carries the
 2077|       |                  // discriminator itself, so no tag is merged here and the bare-write branch below
 2078|       |                  // handles it. Previously only `reflectable` alternatives were excluded; a
 2079|       |                  // `glaze_object_t` one fell through to this branch and emitted the key twice.
 2080|       |                  if (missing_id(value, ctx)) {
 2081|       |                     return;
 2082|       |                  }
 2083|       |                  constexpr auto N = []() {
 2084|       |                     if constexpr (is_memory_object<V>) {
 2085|       |                        return reflect<memory_type<V>>::size;
 2086|       |                     }
 2087|       |                     else {
 2088|       |                        return reflect<V>::size;
 2089|       |                     }
 2090|       |                  }();
 2091|       |
 2092|       |                  // must first write out type
 2093|       |                  if constexpr (Opts.prettify) {
 2094|       |                     dump("{\n", b, ix);
 2095|       |                     ctx.depth += check_indentation_width(Opts);
 2096|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2097|       |                     dump('"', b, ix);
 2098|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2099|       |
 2100|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2101|       |
 2102|       |                     if constexpr (std::integral<id_type>) {
 2103|       |                        dump("\": ", b, ix);
 2104|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2105|       |                        if constexpr (N > 0) {
 2106|       |                           dump(",\n", b, ix);
 2107|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2108|       |                        }
 2109|       |                     }
 2110|       |                     else {
 2111|       |                        dump("\": \"", b, ix);
 2112|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2113|       |                        if constexpr (N == 0) {
 2114|       |                           dump('"', b, ix);
 2115|       |                        }
 2116|       |                        else {
 2117|       |                           dump("\",\n", b, ix);
 2118|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2119|       |                        }
 2120|       |                     }
 2121|       |                  }
 2122|       |                  else {
 2123|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2124|       |
 2125|       |                     dump("{\"", b, ix);
 2126|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2127|       |
 2128|       |                     if constexpr (std::integral<id_type>) {
 2129|       |                        dump("\":", b, ix);
 2130|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2131|       |                        if constexpr (N > 0) {
 2132|       |                           dump(',', b, ix);
 2133|       |                        }
 2134|       |                     }
 2135|       |                     else {
 2136|       |                        dump("\":\"", b, ix);
 2137|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2138|       |                        if constexpr (N == 0) {
 2139|       |                           dump('"', b, ix);
 2140|       |                        }
 2141|       |                        else {
 2142|       |                           dump("\",", b, ix);
 2143|       |                        }
 2144|       |                     }
 2145|       |                  }
 2146|       |                  if constexpr (is_memory_object<V>) {
 2147|       |                     if (!val) [[unlikely]] {
 2148|       |                        ctx.error = error_code::invalid_variant_object;
 2149|       |                        return;
 2150|       |                     }
 2151|       |                     to<JSON, memory_type<V>>::template op<opening_and_closing_handled<Opts>()>(*val, ctx, b, ix);
 2152|       |                  }
 2153|       |                  else {
 2154|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2155|       |                  }
 2156|       |                  // If we skip everything then we may have an extra comma, which we want to revert
 2157|       |                  if constexpr (Opts.skip_null_members) {
 2158|       |                     if (b[ix - 1] == ',') {
 2159|       |                        --ix;
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (Opts.prettify) {
 2164|       |                     ctx.depth -= check_indentation_width(Opts);
 2165|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2166|       |                        return;
 2167|       |                     }
 2168|       |                     std::memcpy(&b[ix], "\n", 1);
 2169|       |                     ++ix;
 2170|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2171|       |                     ix += ctx.depth;
 2172|       |                     std::memcpy(&b[ix], "}", 1);
 2173|       |                     ++ix;
 2174|       |                  }
 2175|       |                  else {
 2176|       |                     dump('}', b, ix);
 2177|       |                  }
 2178|       |               }
 2179|  5.12k|               else {
 2180|  5.12k|                  to<JSON, V>::template op<Opts>(val, ctx, b, ix);
 2181|  5.12k|               }
 2182|  5.12k|            },
_ZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|  5.12k|      {
  846|       |         if constexpr (check_string_as_number(Opts)) {
  847|       |            const sv str = [&]() -> const sv {
  848|       |               if constexpr (array_char_t<T>) {
  849|       |                  const auto* start = value.data();
  850|       |                  const auto* end = static_cast<const char*>(std::memchr(start, '\0', value.size()));
  851|       |                  return sv{start, end ? size_t(end - start) : value.size()};
  852|       |               }
  853|       |               else if constexpr (u8str_t<T>) {
  854|       |                  return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  855|       |               }
  856|       |               else {
  857|       |                  return str_view<T>(value);
  858|       |               }
  859|       |            }();
  860|       |            if (!ensure_space(ctx, b, ix + str.size() + write_padding_bytes)) [[unlikely]] {
  861|       |               return;
  862|       |            }
  863|       |            dump_maybe_empty<false>(str, b, ix);
  864|       |         }
  865|       |         else if constexpr (char_t<T>) {
  866|       |            if constexpr (check_unquoted(Opts)) {
  867|       |               dump(value, b, ix);
  868|       |            }
  869|       |            else {
  870|       |               // 8 bytes is enough for quotes and escaped character (worst case: \uXXXX = 6 + 2 quotes)
  871|       |               if (!ensure_space(ctx, b, ix + 8)) [[unlikely]] {
  872|       |                  return;
  873|       |               }
  874|       |
  875|       |               std::memcpy(&b[ix], "\"", 1);
  876|       |               ++ix;
  877|       |               if (const auto escaped = char_escape_table[uint8_t(value)]; escaped) {
  878|       |                  std::memcpy(&b[ix], &escaped, 2);
  879|       |                  ix += 2;
  880|       |               }
  881|       |               else if (value == '\0') {
  882|       |                  // null character treated as empty string
  883|       |               }
  884|       |               else if constexpr (check_escape_control_characters(Opts)) {
  885|       |                  if (uint8_t(value) < 0x20) {
  886|       |                     // Write as \uXXXX format
  887|       |                     char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
  888|       |                     constexpr char hex_digits[] = "0123456789ABCDEF";
  889|       |                     unicode_escape[4] = hex_digits[(value >> 4) & 0xF];
  890|       |                     unicode_escape[5] = hex_digits[value & 0xF];
  891|       |                     std::memcpy(&b[ix], unicode_escape, 6);
  892|       |                     ix += 6;
  893|       |                  }
  894|       |                  else {
  895|       |                     std::memcpy(&b[ix], &value, 1);
  896|       |                     ++ix;
  897|       |                  }
  898|       |               }
  899|       |               else {
  900|       |                  if constexpr (check_reject_control_characters(Opts)) {
  901|       |                     if (uint8_t(value) < 0x20) [[unlikely]] {
  902|       |                        ctx.error = error_code::invalid_control_character;
  903|       |                     }
  904|       |                  }
  905|       |                  std::memcpy(&b[ix], &value, 1);
  906|       |                  ++ix;
  907|       |               }
  908|       |               std::memcpy(&b[ix], "\"", 1);
  909|       |               ++ix;
  910|       |            }
  911|       |         }
  912|  5.12k|         else {
  913|       |            if constexpr (check_raw_string(Opts)) {
  914|       |               const sv str = [&]() -> const sv {
  915|       |                  if constexpr (u8str_t<T>) {
  916|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  917|       |                  }
  918|       |                  else {
  919|       |                     return str_view<T>(value);
  920|       |                  }
  921|       |               }();
  922|       |
  923|       |               // We need space for quotes and the string length: 2 + n.
  924|       |               // Use +8 for extra buffer
  925|       |               if (!ensure_space(ctx, b, ix + 8 + str.size())) [[unlikely]] {
  926|       |                  return;
  927|       |               }
  928|       |               // now we don't have to check writing
  929|       |
  930|       |               if constexpr (not check_unquoted(Opts)) {
  931|       |                  std::memcpy(&b[ix], "\"", 1);
  932|       |                  ++ix;
  933|       |               }
  934|       |               if (str.size()) [[likely]] {
  935|       |                  const auto n = str.size();
  936|       |                  std::memcpy(&b[ix], str.data(), n);
  937|       |                  ix += n;
  938|       |               }
  939|       |               if constexpr (not check_unquoted(Opts)) {
  940|       |                  std::memcpy(&b[ix], "\"", 1);
  941|       |                  ++ix;
  942|       |               }
  943|       |            }
  944|  5.12k|            else {
  945|  5.12k|               const sv str = [&]() -> const sv {
  946|  5.12k|                  if constexpr (array_char_t<T>) {
  947|  5.12k|                     return sv{value.data(), value.size()};
  948|  5.12k|                  }
  949|  5.12k|                  else if constexpr (u8str_t<T>) {
  950|  5.12k|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|  5.12k|                  }
  952|  5.12k|                  else {
  953|  5.12k|                     return str_view<T>(value);
  954|  5.12k|                  }
  955|  5.12k|               }();
  956|  5.12k|               const auto n = str.size();
  957|       |
  958|       |               // In the case n == 0 we need two characters for quotes.
  959|       |               // For each individual character we need room for two characters to handle escapes.
  960|       |               // When using Unicode escapes, we might need up to 6 characters (\uXXXX) per character
  961|       |               if constexpr (check_escape_control_characters(Opts)) {
  962|       |                  if constexpr (has_bounded_capacity<B>) {
  963|       |                     // 6 bytes per character is a ceiling only a string of nothing but control
  964|       |                     // characters reaches. A resizable buffer merely over-allocates against it,
  965|       |                     // but a fixed buffer has nowhere to grow, so the ceiling would reject output
  966|       |                     // that fits. Measuring the string answers exactly, at the cost of a pass over
  967|       |                     // it, so bracket the measurement between two O(1) bounds and only pay it when
  968|       |                     // the answer is still in doubt: the ceiling fitting means yes, and the floor
  969|       |                     // of one byte per character not fitting means no.
  970|       |                     const size_t capacity = buffer_traits<std::remove_cvref_t<B>>::capacity(b);
  971|       |                     size_t required = ix + 10 + 6 * n;
  972|       |                     if (required > capacity) [[unlikely]] {
  973|       |                        required = ix + 10 + n;
  974|       |                        if (required <= capacity) {
  975|       |                           required = ix + 10 + detail::escaped_string_size(str);
  976|       |                        }
  977|       |                     }
  978|       |                     if (!ensure_space(ctx, b, required)) [[unlikely]] {
  979|       |                        return;
  980|       |                     }
  981|       |                  }
  982|       |                  // We need 2 + 6 * n characters in the worst case (all control chars)
  983|       |                  else if (!ensure_space(ctx, b, ix + 10 + 6 * n)) [[unlikely]] {
  984|       |                     return;
  985|       |                  }
  986|       |               }
  987|  5.12k|               else {
  988|       |                  // Using the original sizing
  989|  5.12k|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 5.12k]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|  5.12k|               }
  993|       |               // now we don't have to check writing
  994|       |
  995|       |               if constexpr (check_unquoted(Opts)) {
  996|       |                  if (n) {
  997|       |                     std::memcpy(&b[ix], str.data(), n);
  998|       |                     ix += n;
  999|       |                  }
 1000|       |               }
 1001|  5.12k|               else {
 1002|  5.12k|                  std::memcpy(&b[ix], "\"", 1);
 1003|  5.12k|                  ++ix;
 1004|       |
 1005|  5.12k|                  const auto* c = str.data();
 1006|  5.12k|                  const auto* const e = c + n;
 1007|  5.12k|                  const auto start = &b[ix];
 1008|  5.12k|                  auto data = start;
 1009|       |
 1010|       |                  // By default we don't escape control characters for performance. Invalid JSON characters
 1011|       |                  // result in null characters in the output, making the JSON invalid — these would then be
 1012|       |                  // detected upon reading. Enable the `escape_control_characters` option to properly escape
 1013|       |                  // control characters (0x00–0x1F) as \uXXXX sequences.
 1014|       |
 1015|       |                  // Escape handler: writes the escaped form of *c into data, advances both pointers
 1016|  5.12k|                  auto write_escape = [&]() {
 1017|  5.12k|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|  5.12k|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|  5.12k|                           std::memcpy(data, &escaped, 2);
 1020|  5.12k|                           data += 2;
 1021|  5.12k|                        }
 1022|  5.12k|                        else {
 1023|  5.12k|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|  5.12k|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|  5.12k|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|  5.12k|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|  5.12k|                           std::memcpy(data, unicode_escape, 6);
 1028|  5.12k|                           data += 6;
 1029|  5.12k|                        }
 1030|  5.12k|                     }
 1031|  5.12k|                     else {
 1032|  5.12k|                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|  5.12k|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|  5.12k|                              ctx.error = error_code::invalid_control_character;
 1040|  5.12k|                           }
 1041|  5.12k|                        }
 1042|  5.12k|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  5.12k|                        data += 2;
 1044|  5.12k|                     }
 1045|  5.12k|                     ++c;
 1046|  5.12k|                  };
 1047|       |
 1048|       |                  // Adding a helper here means adding a branch to string_escape_simd() in
 1049|       |                  // simd/backends.hpp, which names the widest one this cascade invokes, and a row
 1050|       |                  // to known_builds in tests/json_test/utf8_validation_test.cpp, which checks it.
 1051|       |#if defined(GLZ_USE_AVX2)
 1052|       |                  detail::avx2_string_escape(c, e, data, n, write_escape);
 1053|       |#endif
 1054|  5.12k|#if defined(GLZ_USE_SSE2)
 1055|  5.12k|                  detail::sse2_string_escape(c, e, data, n, write_escape);
 1056|       |#elif defined(GLZ_USE_NEON)
 1057|       |                  detail::neon_string_escape(c, e, data, n, write_escape);
 1058|       |#endif
 1059|       |
 1060|       |                  // SWAR: 8 bytes at a time
 1061|  5.12k|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 3.56k, False: 1.56k]
  ------------------
 1062|  13.8k|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 10.2k, False: 3.56k]
  ------------------
 1063|  10.2k|                        std::memcpy(data, c, 8);
 1064|  10.2k|                        uint64_t swar;
 1065|  10.2k|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|  10.2k|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|  10.2k|                        const uint64_t lo7 = swar & lo7_mask;
 1072|  10.2k|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|  10.2k|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|  10.2k|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|  10.2k|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|  10.2k|                        next &= repeat_byte8(0b10000000);
 1078|  10.2k|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 1.10k, False: 9.13k]
  ------------------
 1079|  1.10k|                           data += 8;
 1080|  1.10k|                           c += 8;
 1081|  1.10k|                           continue;
 1082|  1.10k|                        }
 1083|       |
 1084|  9.13k|                        const auto length = (countr_zero(next) >> 3);
 1085|  9.13k|                        c += length;
 1086|  9.13k|                        data += length;
 1087|  9.13k|                        write_escape();
 1088|  9.13k|                     }
 1089|  3.56k|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|  23.8k|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 18.7k, False: 5.12k]
  ------------------
 1093|  18.7k|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 3.96k, False: 14.7k]
  ------------------
 1094|  3.96k|                        std::memcpy(data, &escaped, 2);
 1095|  3.96k|                        data += 2;
 1096|  3.96k|                     }
 1097|       |                     else if constexpr (check_escape_control_characters(Opts)) {
 1098|       |                        if (uint8_t(*c) < 0x20) {
 1099|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1100|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1101|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1102|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1103|       |                           std::memcpy(data, unicode_escape, 6);
 1104|       |                           data += 6;
 1105|       |                        }
 1106|       |                        else {
 1107|       |                           std::memcpy(data, c, 1);
 1108|       |                           ++data;
 1109|       |                        }
 1110|       |                     }
 1111|  14.7k|                     else {
 1112|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1113|       |                           if (uint8_t(*c) < 0x20) [[unlikely]] {
 1114|       |                              ctx.error = error_code::invalid_control_character;
 1115|       |                           }
 1116|       |                        }
 1117|  14.7k|                        std::memcpy(data, c, 1);
 1118|  14.7k|                        ++data;
 1119|  14.7k|                     }
 1120|  18.7k|                  }
 1121|       |
 1122|  5.12k|                  ix += size_t(data - start);
 1123|       |
 1124|  5.12k|                  std::memcpy(&b[ix], "\"", 1);
 1125|  5.12k|                  ++ix;
 1126|  5.12k|               }
 1127|  5.12k|            }
 1128|  5.12k|         }
 1129|  5.12k|      }
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|  5.12k|               const sv str = [&]() -> const sv {
  946|       |                  if constexpr (array_char_t<T>) {
  947|       |                     return sv{value.data(), value.size()};
  948|       |                  }
  949|       |                  else if constexpr (u8str_t<T>) {
  950|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|       |                  }
  952|  5.12k|                  else {
  953|  5.12k|                     return str_view<T>(value);
  954|  5.12k|                  }
  955|  5.12k|               }();
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
 1016|  20.8M|                  auto write_escape = [&]() {
 1017|       |                     if constexpr (check_escape_control_characters(Opts)) {
 1018|       |                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|       |                           std::memcpy(data, &escaped, 2);
 1020|       |                           data += 2;
 1021|       |                        }
 1022|       |                        else {
 1023|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|       |                           std::memcpy(data, unicode_escape, 6);
 1028|       |                           data += 6;
 1029|       |                        }
 1030|       |                     }
 1031|  20.8M|                     else {
 1032|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|       |                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|       |                              ctx.error = error_code::invalid_control_character;
 1040|       |                           }
 1041|       |                        }
 1042|  20.8M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  20.8M|                        data += 2;
 1044|  20.8M|                     }
 1045|  20.8M|                     ++c;
 1046|  20.8M|                  };
_ZZN3glz2toILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS5_NS1_9allocatorIcEEEERS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlOT_E_clIRlEEDaSS_:
 1965|  33.5k|            [&](auto&& val) {
 1966|  33.5k|               using V = std::decay_t<decltype(val)>;
 1967|       |
 1968|       |               if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 1969|       |                             custom_write<V>) {
 1970|       |                  // Custom alternative: the user's serializer emits the object body, into which we
 1971|       |                  // merge the variant tag. For this to produce valid JSON the custom to<> must (1)
 1972|       |                  // write an object body and (2) honor opening_and_closing_handled (suppress its own
 1973|       |                  // braces) so the tag shares the alternative's object. A custom writer that emits a
 1974|       |                  // scalar/array, or that ignores those flags, would yield malformed output.
 1975|       |                  //
 1976|       |                  // The tag-emission below mirrors the reflected-object branch that follows; keep the
 1977|       |                  // two in sync. The body size is not known at compile time, so we always write the
 1978|       |                  // tag separator and then drop it at runtime if the body turned out empty.
 1979|       |                  if (missing_id(value, ctx)) {
 1980|       |                     return;
 1981|       |                  }
 1982|       |                  using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 1983|       |                  if constexpr (Opts.prettify) {
 1984|       |                     dump("{\n", b, ix);
 1985|       |                     ctx.depth += check_indentation_width(Opts);
 1986|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 1987|       |                     dump('"', b, ix);
 1988|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 1989|       |                     if constexpr (std::integral<id_type>) {
 1990|       |                        dump("\": ", b, ix);
 1991|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 1992|       |                     }
 1993|       |                     else {
 1994|       |                        dump("\": \"", b, ix);
 1995|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 1996|       |                        dump('"', b, ix);
 1997|       |                     }
 1998|       |                     const auto pos_after_tag = ix;
 1999|       |                     dump(",\n", b, ix);
 2000|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2001|       |                     const auto pos_body_start = ix;
 2002|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2003|       |                     if (ix == pos_body_start) {
 2004|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2005|       |                     }
 2006|       |                     ctx.depth -= check_indentation_width(Opts);
 2007|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2008|       |                        return;
 2009|       |                     }
 2010|       |                     std::memcpy(&b[ix], "\n", 1);
 2011|       |                     ++ix;
 2012|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2013|       |                     ix += ctx.depth;
 2014|       |                     std::memcpy(&b[ix], "}", 1);
 2015|       |                     ++ix;
 2016|       |                  }
 2017|       |                  else {
 2018|       |                     dump("{\"", b, ix);
 2019|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2020|       |                     if constexpr (std::integral<id_type>) {
 2021|       |                        dump("\":", b, ix);
 2022|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2023|       |                     }
 2024|       |                     else {
 2025|       |                        dump("\":\"", b, ix);
 2026|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2027|       |                        dump('"', b, ix);
 2028|       |                     }
 2029|       |                     const auto pos_after_tag = ix;
 2030|       |                     dump(',', b, ix);
 2031|       |                     const auto pos_body_start = ix;
 2032|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2033|       |                     if (ix == pos_body_start) {
 2034|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2035|       |                     }
 2036|       |                     dump('}', b, ix);
 2037|       |                  }
 2038|       |               }
 2039|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2040|       |                                  variant_unit_alternative<V>) {
 2041|       |                  // A unit alternative carries no data, so internal tagging renders it as the
 2042|       |                  // discriminator alone -- the same object an empty struct alternative produces.
 2043|       |                  if (missing_id(value, ctx)) {
 2044|       |                     return;
 2045|       |                  }
 2046|       |                  if constexpr (Opts.prettify) {
 2047|       |                     dump("{\n", b, ix);
 2048|       |                     ctx.depth += check_indentation_width(Opts);
 2049|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2050|       |                     dump('"', b, ix);
 2051|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2052|       |                     dump("\": ", b, ix);
 2053|       |                     write_id<Opts>(value, ctx, b, ix);
 2054|       |                     ctx.depth -= check_indentation_width(Opts);
 2055|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2056|       |                        return;
 2057|       |                     }
 2058|       |                     std::memcpy(&b[ix], "\n", 1);
 2059|       |                     ++ix;
 2060|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2061|       |                     ix += ctx.depth;
 2062|       |                     std::memcpy(&b[ix], "}", 1);
 2063|       |                     ++ix;
 2064|       |                  }
 2065|       |                  else {
 2066|       |                     dump("{\"", b, ix);
 2067|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2068|       |                     dump("\":", b, ix);
 2069|       |                     write_id<Opts>(value, ctx, b, ix);
 2070|       |                     dump('}', b, ix);
 2071|       |                  }
 2072|       |               }
 2073|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2074|       |                                  (glaze_object_t<V> || reflectable<V> || is_memory_object<V>) &&
 2075|       |                                  (not alternative_declares_key<V>(tag_v<T>))) {
 2076|       |                  // An alternative that declares a member named like the discriminator carries the
 2077|       |                  // discriminator itself, so no tag is merged here and the bare-write branch below
 2078|       |                  // handles it. Previously only `reflectable` alternatives were excluded; a
 2079|       |                  // `glaze_object_t` one fell through to this branch and emitted the key twice.
 2080|       |                  if (missing_id(value, ctx)) {
 2081|       |                     return;
 2082|       |                  }
 2083|       |                  constexpr auto N = []() {
 2084|       |                     if constexpr (is_memory_object<V>) {
 2085|       |                        return reflect<memory_type<V>>::size;
 2086|       |                     }
 2087|       |                     else {
 2088|       |                        return reflect<V>::size;
 2089|       |                     }
 2090|       |                  }();
 2091|       |
 2092|       |                  // must first write out type
 2093|       |                  if constexpr (Opts.prettify) {
 2094|       |                     dump("{\n", b, ix);
 2095|       |                     ctx.depth += check_indentation_width(Opts);
 2096|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2097|       |                     dump('"', b, ix);
 2098|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2099|       |
 2100|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2101|       |
 2102|       |                     if constexpr (std::integral<id_type>) {
 2103|       |                        dump("\": ", b, ix);
 2104|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2105|       |                        if constexpr (N > 0) {
 2106|       |                           dump(",\n", b, ix);
 2107|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2108|       |                        }
 2109|       |                     }
 2110|       |                     else {
 2111|       |                        dump("\": \"", b, ix);
 2112|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2113|       |                        if constexpr (N == 0) {
 2114|       |                           dump('"', b, ix);
 2115|       |                        }
 2116|       |                        else {
 2117|       |                           dump("\",\n", b, ix);
 2118|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2119|       |                        }
 2120|       |                     }
 2121|       |                  }
 2122|       |                  else {
 2123|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2124|       |
 2125|       |                     dump("{\"", b, ix);
 2126|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2127|       |
 2128|       |                     if constexpr (std::integral<id_type>) {
 2129|       |                        dump("\":", b, ix);
 2130|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2131|       |                        if constexpr (N > 0) {
 2132|       |                           dump(',', b, ix);
 2133|       |                        }
 2134|       |                     }
 2135|       |                     else {
 2136|       |                        dump("\":\"", b, ix);
 2137|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2138|       |                        if constexpr (N == 0) {
 2139|       |                           dump('"', b, ix);
 2140|       |                        }
 2141|       |                        else {
 2142|       |                           dump("\",", b, ix);
 2143|       |                        }
 2144|       |                     }
 2145|       |                  }
 2146|       |                  if constexpr (is_memory_object<V>) {
 2147|       |                     if (!val) [[unlikely]] {
 2148|       |                        ctx.error = error_code::invalid_variant_object;
 2149|       |                        return;
 2150|       |                     }
 2151|       |                     to<JSON, memory_type<V>>::template op<opening_and_closing_handled<Opts>()>(*val, ctx, b, ix);
 2152|       |                  }
 2153|       |                  else {
 2154|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2155|       |                  }
 2156|       |                  // If we skip everything then we may have an extra comma, which we want to revert
 2157|       |                  if constexpr (Opts.skip_null_members) {
 2158|       |                     if (b[ix - 1] == ',') {
 2159|       |                        --ix;
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (Opts.prettify) {
 2164|       |                     ctx.depth -= check_indentation_width(Opts);
 2165|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2166|       |                        return;
 2167|       |                     }
 2168|       |                     std::memcpy(&b[ix], "\n", 1);
 2169|       |                     ++ix;
 2170|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2171|       |                     ix += ctx.depth;
 2172|       |                     std::memcpy(&b[ix], "}", 1);
 2173|       |                     ++ix;
 2174|       |                  }
 2175|       |                  else {
 2176|       |                     dump('}', b, ix);
 2177|       |                  }
 2178|       |               }
 2179|  33.5k|               else {
 2180|  33.5k|                  to<JSON, V>::template op<Opts>(val, ctx, b, ix);
 2181|  33.5k|               }
 2182|  33.5k|            },
_ZN3glz2toILj10ElE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERlTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  33.5k|      {
  815|  33.5k|         if constexpr (not check_write_unchecked(Opts)) {
  816|  33.5k|            static_assert(required_padding<T>());
  817|  33.5k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 33.5k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  33.5k|         }
  821|       |
  822|  33.5k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  33.5k|         else {
  832|  33.5k|            write_chars::op<O>(value, ctx, b, ix);
  833|  33.5k|         }
  834|  33.5k|      }
_ZN3glz16required_paddingIlEEmv:
  538|  33.5k|   {
  539|  33.5k|      constexpr auto value = []() -> size_t {
  540|  33.5k|         if constexpr (boolean_like<T>) {
  541|  33.5k|            return 8;
  542|  33.5k|         }
  543|  33.5k|         else if constexpr (num_t<T>) {
  544|  33.5k|            if constexpr (std::floating_point<T>) {
  545|  33.5k|               if constexpr (sizeof(T) > 8) {
  546|  33.5k|                  return 64;
  547|  33.5k|               }
  548|  33.5k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  33.5k|                  return zmij::double_buffer_size + 4;
  551|  33.5k|               }
  552|  33.5k|               else {
  553|  33.5k|                  return zmij::float_buffer_size + 4;
  554|  33.5k|               }
  555|  33.5k|            }
  556|  33.5k|            else if constexpr (sizeof(T) > 4) {
  557|  33.5k|               return 24;
  558|  33.5k|            }
  559|  33.5k|            else if constexpr (sizeof(T) > 2) {
  560|  33.5k|               return 16;
  561|  33.5k|            }
  562|  33.5k|            else {
  563|  33.5k|               return 8;
  564|  33.5k|            }
  565|  33.5k|         }
  566|  33.5k|         else if constexpr (nullable_like<T>) {
  567|  33.5k|            if constexpr (has_value_type<T>) {
  568|  33.5k|               return required_padding<typename T::value_type>();
  569|  33.5k|            }
  570|  33.5k|            else if constexpr (has_element_type<T>) {
  571|  33.5k|               return required_padding<typename T::element_type>();
  572|  33.5k|            }
  573|  33.5k|            else {
  574|  33.5k|               return 0;
  575|  33.5k|            }
  576|  33.5k|         }
  577|  33.5k|         else if constexpr (always_null_t<T>) {
  578|  33.5k|            return 8;
  579|  33.5k|         }
  580|  33.5k|         else {
  581|  33.5k|            return 0;
  582|  33.5k|         }
  583|  33.5k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  33.5k|      return value;
  591|  33.5k|   }
_ZN3glz2toILj10EiE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|    186|      {
  815|       |         if constexpr (not check_write_unchecked(Opts)) {
  816|       |            static_assert(required_padding<T>());
  817|       |            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  818|       |               return;
  819|       |            }
  820|       |         }
  821|       |
  822|    186|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|    186|         else {
  832|    186|            write_chars::op<O>(value, ctx, b, ix);
  833|    186|         }
  834|    186|      }
_ZN3glz2toILj10EiE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|    440|      {
  815|    440|         if constexpr (not check_write_unchecked(Opts)) {
  816|    440|            static_assert(required_padding<T>());
  817|    440|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 440]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|    440|         }
  821|       |
  822|    440|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|    440|         else {
  832|    440|            write_chars::op<O>(value, ctx, b, ix);
  833|    440|         }
  834|    440|      }
_ZN3glz16required_paddingIiEEmv:
  538|    733|   {
  539|    733|      constexpr auto value = []() -> size_t {
  540|    733|         if constexpr (boolean_like<T>) {
  541|    733|            return 8;
  542|    733|         }
  543|    733|         else if constexpr (num_t<T>) {
  544|    733|            if constexpr (std::floating_point<T>) {
  545|    733|               if constexpr (sizeof(T) > 8) {
  546|    733|                  return 64;
  547|    733|               }
  548|    733|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|    733|                  return zmij::double_buffer_size + 4;
  551|    733|               }
  552|    733|               else {
  553|    733|                  return zmij::float_buffer_size + 4;
  554|    733|               }
  555|    733|            }
  556|    733|            else if constexpr (sizeof(T) > 4) {
  557|    733|               return 24;
  558|    733|            }
  559|    733|            else if constexpr (sizeof(T) > 2) {
  560|    733|               return 16;
  561|    733|            }
  562|    733|            else {
  563|    733|               return 8;
  564|    733|            }
  565|    733|         }
  566|    733|         else if constexpr (nullable_like<T>) {
  567|    733|            if constexpr (has_value_type<T>) {
  568|    733|               return required_padding<typename T::value_type>();
  569|    733|            }
  570|    733|            else if constexpr (has_element_type<T>) {
  571|    733|               return required_padding<typename T::element_type>();
  572|    733|            }
  573|    733|            else {
  574|    733|               return 0;
  575|    733|            }
  576|    733|         }
  577|    733|         else if constexpr (always_null_t<T>) {
  578|    733|            return 8;
  579|    733|         }
  580|    733|         else {
  581|    733|            return 0;
  582|    733|         }
  583|    733|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|    733|      return value;
  591|    733|   }
_ZN3glz2toILj10EiE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|    293|      {
  815|    293|         if constexpr (not check_write_unchecked(Opts)) {
  816|    293|            static_assert(required_padding<T>());
  817|    293|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 293]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|    293|         }
  821|       |
  822|    293|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|    293|         else {
  832|    293|            write_chars::op<O>(value, ctx, b, ix);
  833|    293|         }
  834|    293|      }
_ZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEES2_RNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_:
 2471|    139|      {
 2472|    139|         using ValueType = std::decay_t<V>;
 2473|       |         if constexpr (has_unknown_writer<ValueType> && not check_disable_write_unknown(Options)) {
 2474|       |            constexpr auto& writer = meta_unknown_write_v<ValueType>;
 2475|       |
 2476|       |            using WriterType = meta_unknown_write_t<ValueType>;
 2477|       |            if constexpr (std::is_member_object_pointer_v<WriterType>) {
 2478|       |               decltype(auto) unknown_writer = value.*writer;
 2479|       |               if (unknown_writer.size() > 0) {
 2480|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2481|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2482|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2483|       |               }
 2484|       |               else {
 2485|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2486|       |               }
 2487|       |            }
 2488|       |            else if constexpr (std::is_member_function_pointer_v<WriterType>) {
 2489|       |               decltype(auto) unknown_writer = (value.*writer)();
 2490|       |               if (unknown_writer.size() > 0) {
 2491|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2492|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2493|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2494|       |               }
 2495|       |               else {
 2496|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2497|       |               }
 2498|       |            }
 2499|       |            else {
 2500|       |               static_assert(false_v<T>, "unknown_write type not handled");
 2501|       |            }
 2502|       |         }
 2503|    139|         else {
 2504|       |            // handles glaze_object_t without extra unknown fields
 2505|    139|            static constexpr auto Opts =
 2506|    139|               disable_write_unknown_off<opening_and_closing_handled_off<ws_handled_off<Options>()>()>();
 2507|       |
 2508|    139|            if constexpr (not check_opening_handled(Options)) {
 2509|       |               if constexpr (Options.prettify) {
 2510|       |                  ctx.depth += check_indentation_width(Options);
 2511|       |                  if constexpr (not check_write_unchecked(Options)) {
 2512|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2513|       |                        return;
 2514|       |                     }
 2515|       |                  }
 2516|       |                  std::memcpy(&b[ix], "{\n", 2);
 2517|       |                  ix += 2;
 2518|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2519|       |                  ix += ctx.depth;
 2520|       |               }
 2521|    139|               else {
 2522|    139|                  if constexpr (not check_write_unchecked(Options)) {
 2523|    139|                     if (!ensure_space(ctx, b, ix + 1)) [[unlikely]] {
  ------------------
  |  Branch (2523:26): [True: 0, False: 139]
  ------------------
 2524|      0|                        return;
 2525|      0|                     }
 2526|    139|                  }
 2527|    139|                  dump<not check_write_unchecked(Options)>('{', b, ix);
 2528|    139|               }
 2529|    139|            }
 2530|       |
 2531|      0|            static constexpr auto N = reflect<T>::size;
 2532|       |
 2533|    139|            decltype(auto) t = [&]() -> decltype(auto) {
 2534|    139|               if constexpr (reflectable<T>) {
 2535|    139|                  return to_tie(value);
 2536|    139|               }
 2537|    139|               else {
 2538|    139|                  return nullptr;
 2539|    139|               }
 2540|    139|            }();
 2541|       |
 2542|    139|            static constexpr auto padding = round_up_to_nearest_16(maximum_key_size<T> + write_padding_bytes);
 2543|       |            if constexpr (maybe_skipped<Opts, T>) {
 2544|       |               bool first = true;
 2545|       |               for_each<N>([&]<size_t I>() {
 2546|       |                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|       |                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|       |                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|       |                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|       |                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|       |                     else {
 2621|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2622|       |                           return;
 2623|       |                        }
 2624|       |                     }
 2625|       |
 2626|       |                     if (first) {
 2627|       |                        first = false;
 2628|       |                     }
 2629|       |                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|       |                        else {
 2638|       |                           std::memcpy(&b[ix], ",", 1);
 2639|       |                           ++ix;
 2640|       |                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|       |                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|       |                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|       |                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|       |                     static constexpr auto n = quoted_key.size();
 2650|       |                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|       |                     ix += n;
 2652|       |
 2653|       |                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2654|       |                     if constexpr (reflectable<T>) {
 2655|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|       |                  }
 2662|       |               });
 2663|       |            }
 2664|    139|            else {
 2665|    139|               static constexpr size_t fixed_max_size = Opts.prettify ? 0 : fixed_padding<T>;
  ------------------
  |  Branch (2665:57): [Folded, False: 139]
  ------------------
 2666|    139|               if constexpr (fixed_max_size && not check_write_unchecked(Options)) {
 2667|    139|                  if (!ensure_space(ctx, b, ix + fixed_max_size)) [[unlikely]] {
  ------------------
  |  Branch (2667:23): [True: 0, False: 139]
  ------------------
 2668|      0|                     return;
 2669|      0|                  }
 2670|    139|               }
 2671|       |
 2672|    139|               for_each<N>([&]<size_t I>() {
 2673|    139|                  if constexpr (write_can_error<T>()) {
 2674|    139|                     if (bool(ctx.error)) [[unlikely]] {
 2675|    139|                        return;
 2676|    139|                     }
 2677|    139|                  }
 2678|    139|                  if constexpr (not fixed_max_size) {
 2679|    139|                     if constexpr (Opts.prettify) {
 2680|    139|                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2681|    139|                           return;
 2682|    139|                        }
 2683|    139|                     }
 2684|    139|                     else {
 2685|    139|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2686|    139|                           return;
 2687|    139|                        }
 2688|    139|                     }
 2689|    139|                  }
 2690|       |
 2691|    139|                  if constexpr (I != 0 && Opts.prettify) {
 2692|    139|                     std::memcpy(&b[ix], ",\n", 2);
 2693|    139|                     ix += 2;
 2694|    139|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2695|    139|                     ix += ctx.depth;
 2696|    139|                  }
 2697|       |
 2698|    139|                  using val_t = field_t<T, I>;
 2699|       |
 2700|       |                  // MSVC requires get<I> rather than keys[I]
 2701|    139|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2702|    139|                  if constexpr (always_null_t<val_t>) {
 2703|    139|                     if constexpr (I == 0 || Opts.prettify) {
 2704|    139|                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2705|    139|                        static constexpr auto n = quoted_key.size();
 2706|    139|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2707|    139|                        ix += n;
 2708|    139|                     }
 2709|    139|                     else {
 2710|    139|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2711|    139|                        static constexpr auto n = quoted_key.size();
 2712|    139|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2713|    139|                        ix += n;
 2714|    139|                     }
 2715|    139|                  }
 2716|    139|                  else {
 2717|    139|                     if constexpr (I == 0 || Opts.prettify) {
 2718|    139|                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2719|    139|                        static constexpr auto n = quoted_key.size();
 2720|    139|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2721|    139|                        ix += n;
 2722|    139|                     }
 2723|    139|                     else {
 2724|    139|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2725|    139|                        static constexpr auto n = quoted_key.size();
 2726|    139|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2727|    139|                        ix += n;
 2728|    139|                     }
 2729|       |
 2730|    139|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2731|    139|                     if constexpr (reflectable<T>) {
 2732|    139|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2733|    139|                     }
 2734|    139|                     else {
 2735|    139|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2736|    139|                                                                 ix);
 2737|    139|                     }
 2738|    139|                  }
 2739|    139|               });
 2740|    139|            }
 2741|       |
 2742|       |            // Options is required here, because it must be the top level
 2743|    139|            if constexpr (not check_closing_handled(Options)) {
 2744|       |               if constexpr (Options.prettify) {
 2745|       |                  ctx.depth -= check_indentation_width(Options);
 2746|       |                  if constexpr (not check_write_unchecked(Options)) {
 2747|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2748|       |                        return;
 2749|       |                     }
 2750|       |                  }
 2751|       |                  std::memcpy(&b[ix], "\n", 1);
 2752|       |                  ++ix;
 2753|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2754|       |                  ix += ctx.depth;
 2755|       |                  std::memcpy(&b[ix], "}", 1);
 2756|       |                  ++ix;
 2757|       |               }
 2758|    139|               else {
 2759|    139|                  dump<not(fixed_padding<T> || check_write_unchecked(Options))>('}', b, ix);
 2760|    139|               }
 2761|    139|            }
 2762|    139|         }
 2763|    139|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEES2_RNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlvE_clEv:
 2533|    139|            decltype(auto) t = [&]() -> decltype(auto) {
 2534|    139|               if constexpr (reflectable<T>) {
 2535|    139|                  return to_tie(value);
 2536|       |               }
 2537|       |               else {
 2538|       |                  return nullptr;
 2539|       |               }
 2540|    139|            }();
_ZZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEES2_RNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm0EEEDav:
 2672|    139|               for_each<N>([&]<size_t I>() {
 2673|       |                  if constexpr (write_can_error<T>()) {
 2674|       |                     if (bool(ctx.error)) [[unlikely]] {
 2675|       |                        return;
 2676|       |                     }
 2677|       |                  }
 2678|       |                  if constexpr (not fixed_max_size) {
 2679|       |                     if constexpr (Opts.prettify) {
 2680|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2681|       |                           return;
 2682|       |                        }
 2683|       |                     }
 2684|       |                     else {
 2685|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2686|       |                           return;
 2687|       |                        }
 2688|       |                     }
 2689|       |                  }
 2690|       |
 2691|       |                  if constexpr (I != 0 && Opts.prettify) {
 2692|       |                     std::memcpy(&b[ix], ",\n", 2);
 2693|       |                     ix += 2;
 2694|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2695|       |                     ix += ctx.depth;
 2696|       |                  }
 2697|       |
 2698|    139|                  using val_t = field_t<T, I>;
 2699|       |
 2700|       |                  // MSVC requires get<I> rather than keys[I]
 2701|    139|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2702|       |                  if constexpr (always_null_t<val_t>) {
 2703|       |                     if constexpr (I == 0 || Opts.prettify) {
 2704|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2705|       |                        static constexpr auto n = quoted_key.size();
 2706|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2707|       |                        ix += n;
 2708|       |                     }
 2709|       |                     else {
 2710|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2711|       |                        static constexpr auto n = quoted_key.size();
 2712|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2713|       |                        ix += n;
 2714|       |                     }
 2715|       |                  }
 2716|    139|                  else {
 2717|    139|                     if constexpr (I == 0 || Opts.prettify) {
 2718|    139|                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2719|    139|                        static constexpr auto n = quoted_key.size();
 2720|    139|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2721|    139|                        ix += n;
 2722|       |                     }
 2723|       |                     else {
 2724|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2725|       |                        static constexpr auto n = quoted_key.size();
 2726|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2727|       |                        ix += n;
 2728|       |                     }
 2729|       |
 2730|    139|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2730:57): [True: 0, Folded]
  ------------------
 2731|    139|                     if constexpr (reflectable<T>) {
 2732|    139|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2733|       |                     }
 2734|       |                     else {
 2735|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2736|       |                                                                 ix);
 2737|       |                     }
 2738|    139|                  }
 2739|    139|               });
_ZN3glz2toILj10EdE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|    988|      {
  815|       |         if constexpr (not check_write_unchecked(Opts)) {
  816|       |            static_assert(required_padding<T>());
  817|       |            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  818|       |               return;
  819|       |            }
  820|       |         }
  821|       |
  822|    988|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|    988|         else {
  832|    988|            write_chars::op<O>(value, ctx, b, ix);
  833|    988|         }
  834|    988|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEES2_RNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm1EEEDav:
 2672|    139|               for_each<N>([&]<size_t I>() {
 2673|       |                  if constexpr (write_can_error<T>()) {
 2674|       |                     if (bool(ctx.error)) [[unlikely]] {
 2675|       |                        return;
 2676|       |                     }
 2677|       |                  }
 2678|       |                  if constexpr (not fixed_max_size) {
 2679|       |                     if constexpr (Opts.prettify) {
 2680|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2681|       |                           return;
 2682|       |                        }
 2683|       |                     }
 2684|       |                     else {
 2685|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2686|       |                           return;
 2687|       |                        }
 2688|       |                     }
 2689|       |                  }
 2690|       |
 2691|       |                  if constexpr (I != 0 && Opts.prettify) {
 2692|       |                     std::memcpy(&b[ix], ",\n", 2);
 2693|       |                     ix += 2;
 2694|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2695|       |                     ix += ctx.depth;
 2696|       |                  }
 2697|       |
 2698|    139|                  using val_t = field_t<T, I>;
 2699|       |
 2700|       |                  // MSVC requires get<I> rather than keys[I]
 2701|    139|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2702|       |                  if constexpr (always_null_t<val_t>) {
 2703|       |                     if constexpr (I == 0 || Opts.prettify) {
 2704|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2705|       |                        static constexpr auto n = quoted_key.size();
 2706|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2707|       |                        ix += n;
 2708|       |                     }
 2709|       |                     else {
 2710|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2711|       |                        static constexpr auto n = quoted_key.size();
 2712|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2713|       |                        ix += n;
 2714|       |                     }
 2715|       |                  }
 2716|    139|                  else {
 2717|       |                     if constexpr (I == 0 || Opts.prettify) {
 2718|       |                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2719|       |                        static constexpr auto n = quoted_key.size();
 2720|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2721|       |                        ix += n;
 2722|       |                     }
 2723|    139|                     else {
 2724|    139|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2725|    139|                        static constexpr auto n = quoted_key.size();
 2726|    139|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2727|    139|                        ix += n;
 2728|    139|                     }
 2729|       |
 2730|    139|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2730:57): [True: 0, Folded]
  ------------------
 2731|    139|                     if constexpr (reflectable<T>) {
 2732|    139|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2733|       |                     }
 2734|       |                     else {
 2735|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2736|       |                                                                 ix);
 2737|       |                     }
 2738|    139|                  }
 2739|    139|               });
_ZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_:
 2471|     70|      {
 2472|     70|         using ValueType = std::decay_t<V>;
 2473|       |         if constexpr (has_unknown_writer<ValueType> && not check_disable_write_unknown(Options)) {
 2474|       |            constexpr auto& writer = meta_unknown_write_v<ValueType>;
 2475|       |
 2476|       |            using WriterType = meta_unknown_write_t<ValueType>;
 2477|       |            if constexpr (std::is_member_object_pointer_v<WriterType>) {
 2478|       |               decltype(auto) unknown_writer = value.*writer;
 2479|       |               if (unknown_writer.size() > 0) {
 2480|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2481|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2482|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2483|       |               }
 2484|       |               else {
 2485|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2486|       |               }
 2487|       |            }
 2488|       |            else if constexpr (std::is_member_function_pointer_v<WriterType>) {
 2489|       |               decltype(auto) unknown_writer = (value.*writer)();
 2490|       |               if (unknown_writer.size() > 0) {
 2491|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2492|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2493|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2494|       |               }
 2495|       |               else {
 2496|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2497|       |               }
 2498|       |            }
 2499|       |            else {
 2500|       |               static_assert(false_v<T>, "unknown_write type not handled");
 2501|       |            }
 2502|       |         }
 2503|     70|         else {
 2504|       |            // handles glaze_object_t without extra unknown fields
 2505|     70|            static constexpr auto Opts =
 2506|     70|               disable_write_unknown_off<opening_and_closing_handled_off<ws_handled_off<Options>()>()>();
 2507|       |
 2508|     70|            if constexpr (not check_opening_handled(Options)) {
 2509|       |               if constexpr (Options.prettify) {
 2510|       |                  ctx.depth += check_indentation_width(Options);
 2511|       |                  if constexpr (not check_write_unchecked(Options)) {
 2512|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2513|       |                        return;
 2514|       |                     }
 2515|       |                  }
 2516|       |                  std::memcpy(&b[ix], "{\n", 2);
 2517|       |                  ix += 2;
 2518|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2519|       |                  ix += ctx.depth;
 2520|       |               }
 2521|     70|               else {
 2522|     70|                  if constexpr (not check_write_unchecked(Options)) {
 2523|     70|                     if (!ensure_space(ctx, b, ix + 1)) [[unlikely]] {
  ------------------
  |  Branch (2523:26): [True: 0, False: 70]
  ------------------
 2524|      0|                        return;
 2525|      0|                     }
 2526|     70|                  }
 2527|     70|                  dump<not check_write_unchecked(Options)>('{', b, ix);
 2528|     70|               }
 2529|     70|            }
 2530|       |
 2531|      0|            static constexpr auto N = reflect<T>::size;
 2532|       |
 2533|     70|            decltype(auto) t = [&]() -> decltype(auto) {
 2534|     70|               if constexpr (reflectable<T>) {
 2535|     70|                  return to_tie(value);
 2536|     70|               }
 2537|     70|               else {
 2538|     70|                  return nullptr;
 2539|     70|               }
 2540|     70|            }();
 2541|       |
 2542|     70|            static constexpr auto padding = round_up_to_nearest_16(maximum_key_size<T> + write_padding_bytes);
 2543|     70|            if constexpr (maybe_skipped<Opts, T>) {
 2544|     70|               bool first = true;
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|     70|                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|     70|                     return;
 2552|     70|                  }
 2553|     70|                  else {
 2554|     70|                     if constexpr (meta_has_skip_if<T>) {
 2555|     70|                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|     70|                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|     70|                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|     70|                           if constexpr (reflectable<T>) {
 2559|     70|                              return get<I>(t);
 2560|     70|                           }
 2561|     70|                           else {
 2562|     70|                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|     70|                           }
 2564|     70|                        }();
 2565|     70|                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|     70|                     }
 2567|       |
 2568|     70|                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|     70|                        if constexpr (always_null_t<val_t>)
 2570|     70|                           return;
 2571|     70|                        else {
 2572|     70|                           const auto is_null = [&]() {
 2573|     70|                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|     70|                                 if constexpr (reflectable<T>) {
 2575|     70|                                    return get<I>(t);
 2576|     70|                                 }
 2577|     70|                                 else {
 2578|     70|                                    return get<I>(reflect<T>::values);
 2579|     70|                                 }
 2580|     70|                              };
 2581|       |
 2582|     70|                              if constexpr (nullable_wrapper<val_t>) {
 2583|     70|                                 return !bool(element()(value).val);
 2584|     70|                              }
 2585|     70|                              else if constexpr (nullable_value_t<val_t>) {
 2586|     70|                                 return !get_member(value, element()).has_value();
 2587|     70|                              }
 2588|     70|                              else {
 2589|     70|                                 return !bool(get_member(value, element()));
 2590|     70|                              }
 2591|     70|                           }();
 2592|     70|                           if (is_null) return;
 2593|     70|                        }
 2594|     70|                     }
 2595|     70|                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|     70|                                        custom_getter_returns_nullable<val_t>()) {
 2597|     70|                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|     70|                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|     70|                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|     70|                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|     70|                           if constexpr (reflectable<T>) {
 2606|     70|                              return get_member(value, get<I>(t));
 2607|     70|                           }
 2608|     70|                           else {
 2609|     70|                              return get_member(value, get<I>(reflect<T>::values));
 2610|     70|                           }
 2611|     70|                        }();
 2612|     70|                        if (is_default_value(member)) return;
 2613|     70|                     }
 2614|       |
 2615|     70|                     if constexpr (Opts.prettify) {
 2616|     70|                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|     70|                           return;
 2618|     70|                        }
 2619|     70|                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2622|     70|                           return;
 2623|     70|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
 2627|     70|                        first = false;
 2628|     70|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|     70|                        if constexpr (Opts.prettify) {
 2632|     70|                           std::memcpy(&b[ix], ",\n", 2);
 2633|     70|                           ix += 2;
 2634|     70|                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|     70|                           ix += ctx.depth;
 2636|     70|                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|     70|                        if constexpr (is_output_streaming<B>) {
 2642|     70|                           flush_buffer(b, ix);
 2643|     70|                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|     70|                     }
 2657|     70|                     else {
 2658|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|     70|                                                                 ix);
 2660|     70|                     }
 2661|     70|                  }
 2662|     70|               });
 2663|       |            }
 2664|       |            else {
 2665|       |               static constexpr size_t fixed_max_size = Opts.prettify ? 0 : fixed_padding<T>;
 2666|       |               if constexpr (fixed_max_size && not check_write_unchecked(Options)) {
 2667|       |                  if (!ensure_space(ctx, b, ix + fixed_max_size)) [[unlikely]] {
 2668|       |                     return;
 2669|       |                  }
 2670|       |               }
 2671|       |
 2672|       |               for_each<N>([&]<size_t I>() {
 2673|       |                  if constexpr (write_can_error<T>()) {
 2674|       |                     if (bool(ctx.error)) [[unlikely]] {
 2675|       |                        return;
 2676|       |                     }
 2677|       |                  }
 2678|       |                  if constexpr (not fixed_max_size) {
 2679|       |                     if constexpr (Opts.prettify) {
 2680|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2681|       |                           return;
 2682|       |                        }
 2683|       |                     }
 2684|       |                     else {
 2685|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2686|       |                           return;
 2687|       |                        }
 2688|       |                     }
 2689|       |                  }
 2690|       |
 2691|       |                  if constexpr (I != 0 && Opts.prettify) {
 2692|       |                     std::memcpy(&b[ix], ",\n", 2);
 2693|       |                     ix += 2;
 2694|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2695|       |                     ix += ctx.depth;
 2696|       |                  }
 2697|       |
 2698|       |                  using val_t = field_t<T, I>;
 2699|       |
 2700|       |                  // MSVC requires get<I> rather than keys[I]
 2701|       |                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2702|       |                  if constexpr (always_null_t<val_t>) {
 2703|       |                     if constexpr (I == 0 || Opts.prettify) {
 2704|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2705|       |                        static constexpr auto n = quoted_key.size();
 2706|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2707|       |                        ix += n;
 2708|       |                     }
 2709|       |                     else {
 2710|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2711|       |                        static constexpr auto n = quoted_key.size();
 2712|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2713|       |                        ix += n;
 2714|       |                     }
 2715|       |                  }
 2716|       |                  else {
 2717|       |                     if constexpr (I == 0 || Opts.prettify) {
 2718|       |                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2719|       |                        static constexpr auto n = quoted_key.size();
 2720|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2721|       |                        ix += n;
 2722|       |                     }
 2723|       |                     else {
 2724|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2725|       |                        static constexpr auto n = quoted_key.size();
 2726|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2727|       |                        ix += n;
 2728|       |                     }
 2729|       |
 2730|       |                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2731|       |                     if constexpr (reflectable<T>) {
 2732|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2733|       |                     }
 2734|       |                     else {
 2735|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2736|       |                                                                 ix);
 2737|       |                     }
 2738|       |                  }
 2739|       |               });
 2740|       |            }
 2741|       |
 2742|       |            // Options is required here, because it must be the top level
 2743|     70|            if constexpr (not check_closing_handled(Options)) {
 2744|       |               if constexpr (Options.prettify) {
 2745|       |                  ctx.depth -= check_indentation_width(Options);
 2746|       |                  if constexpr (not check_write_unchecked(Options)) {
 2747|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2748|       |                        return;
 2749|       |                     }
 2750|       |                  }
 2751|       |                  std::memcpy(&b[ix], "\n", 1);
 2752|       |                  ++ix;
 2753|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2754|       |                  ix += ctx.depth;
 2755|       |                  std::memcpy(&b[ix], "}", 1);
 2756|       |                  ++ix;
 2757|       |               }
 2758|     70|               else {
 2759|     70|                  dump<not(fixed_padding<T> || check_write_unchecked(Options))>('}', b, ix);
 2760|     70|               }
 2761|     70|            }
 2762|     70|         }
 2763|     70|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlvE_clEv:
 2533|     70|            decltype(auto) t = [&]() -> decltype(auto) {
 2534|     70|               if constexpr (reflectable<T>) {
 2535|     70|                  return to_tie(value);
 2536|       |               }
 2537|       |               else {
 2538|       |                  return nullptr;
 2539|       |               }
 2540|     70|            }();
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm0EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 70, False: 0]
  ------------------
 2627|     70|                        first = false;
 2628|     70|                     }
 2629|      0|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|      0|                        else {
 2638|      0|                           std::memcpy(&b[ix], ",", 1);
 2639|      0|                           ++ix;
 2640|      0|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|      0|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [True: 0, Folded]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm1EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 0, False: 70]
  ------------------
 2627|      0|                        first = false;
 2628|      0|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [Folded, False: 70]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_SB_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|  1.03k|      {
  846|       |         if constexpr (check_string_as_number(Opts)) {
  847|       |            const sv str = [&]() -> const sv {
  848|       |               if constexpr (array_char_t<T>) {
  849|       |                  const auto* start = value.data();
  850|       |                  const auto* end = static_cast<const char*>(std::memchr(start, '\0', value.size()));
  851|       |                  return sv{start, end ? size_t(end - start) : value.size()};
  852|       |               }
  853|       |               else if constexpr (u8str_t<T>) {
  854|       |                  return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  855|       |               }
  856|       |               else {
  857|       |                  return str_view<T>(value);
  858|       |               }
  859|       |            }();
  860|       |            if (!ensure_space(ctx, b, ix + str.size() + write_padding_bytes)) [[unlikely]] {
  861|       |               return;
  862|       |            }
  863|       |            dump_maybe_empty<false>(str, b, ix);
  864|       |         }
  865|       |         else if constexpr (char_t<T>) {
  866|       |            if constexpr (check_unquoted(Opts)) {
  867|       |               dump(value, b, ix);
  868|       |            }
  869|       |            else {
  870|       |               // 8 bytes is enough for quotes and escaped character (worst case: \uXXXX = 6 + 2 quotes)
  871|       |               if (!ensure_space(ctx, b, ix + 8)) [[unlikely]] {
  872|       |                  return;
  873|       |               }
  874|       |
  875|       |               std::memcpy(&b[ix], "\"", 1);
  876|       |               ++ix;
  877|       |               if (const auto escaped = char_escape_table[uint8_t(value)]; escaped) {
  878|       |                  std::memcpy(&b[ix], &escaped, 2);
  879|       |                  ix += 2;
  880|       |               }
  881|       |               else if (value == '\0') {
  882|       |                  // null character treated as empty string
  883|       |               }
  884|       |               else if constexpr (check_escape_control_characters(Opts)) {
  885|       |                  if (uint8_t(value) < 0x20) {
  886|       |                     // Write as \uXXXX format
  887|       |                     char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
  888|       |                     constexpr char hex_digits[] = "0123456789ABCDEF";
  889|       |                     unicode_escape[4] = hex_digits[(value >> 4) & 0xF];
  890|       |                     unicode_escape[5] = hex_digits[value & 0xF];
  891|       |                     std::memcpy(&b[ix], unicode_escape, 6);
  892|       |                     ix += 6;
  893|       |                  }
  894|       |                  else {
  895|       |                     std::memcpy(&b[ix], &value, 1);
  896|       |                     ++ix;
  897|       |                  }
  898|       |               }
  899|       |               else {
  900|       |                  if constexpr (check_reject_control_characters(Opts)) {
  901|       |                     if (uint8_t(value) < 0x20) [[unlikely]] {
  902|       |                        ctx.error = error_code::invalid_control_character;
  903|       |                     }
  904|       |                  }
  905|       |                  std::memcpy(&b[ix], &value, 1);
  906|       |                  ++ix;
  907|       |               }
  908|       |               std::memcpy(&b[ix], "\"", 1);
  909|       |               ++ix;
  910|       |            }
  911|       |         }
  912|  1.03k|         else {
  913|       |            if constexpr (check_raw_string(Opts)) {
  914|       |               const sv str = [&]() -> const sv {
  915|       |                  if constexpr (u8str_t<T>) {
  916|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  917|       |                  }
  918|       |                  else {
  919|       |                     return str_view<T>(value);
  920|       |                  }
  921|       |               }();
  922|       |
  923|       |               // We need space for quotes and the string length: 2 + n.
  924|       |               // Use +8 for extra buffer
  925|       |               if (!ensure_space(ctx, b, ix + 8 + str.size())) [[unlikely]] {
  926|       |                  return;
  927|       |               }
  928|       |               // now we don't have to check writing
  929|       |
  930|       |               if constexpr (not check_unquoted(Opts)) {
  931|       |                  std::memcpy(&b[ix], "\"", 1);
  932|       |                  ++ix;
  933|       |               }
  934|       |               if (str.size()) [[likely]] {
  935|       |                  const auto n = str.size();
  936|       |                  std::memcpy(&b[ix], str.data(), n);
  937|       |                  ix += n;
  938|       |               }
  939|       |               if constexpr (not check_unquoted(Opts)) {
  940|       |                  std::memcpy(&b[ix], "\"", 1);
  941|       |                  ++ix;
  942|       |               }
  943|       |            }
  944|  1.03k|            else {
  945|  1.03k|               const sv str = [&]() -> const sv {
  946|  1.03k|                  if constexpr (array_char_t<T>) {
  947|  1.03k|                     return sv{value.data(), value.size()};
  948|  1.03k|                  }
  949|  1.03k|                  else if constexpr (u8str_t<T>) {
  950|  1.03k|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|  1.03k|                  }
  952|  1.03k|                  else {
  953|  1.03k|                     return str_view<T>(value);
  954|  1.03k|                  }
  955|  1.03k|               }();
  956|  1.03k|               const auto n = str.size();
  957|       |
  958|       |               // In the case n == 0 we need two characters for quotes.
  959|       |               // For each individual character we need room for two characters to handle escapes.
  960|       |               // When using Unicode escapes, we might need up to 6 characters (\uXXXX) per character
  961|       |               if constexpr (check_escape_control_characters(Opts)) {
  962|       |                  if constexpr (has_bounded_capacity<B>) {
  963|       |                     // 6 bytes per character is a ceiling only a string of nothing but control
  964|       |                     // characters reaches. A resizable buffer merely over-allocates against it,
  965|       |                     // but a fixed buffer has nowhere to grow, so the ceiling would reject output
  966|       |                     // that fits. Measuring the string answers exactly, at the cost of a pass over
  967|       |                     // it, so bracket the measurement between two O(1) bounds and only pay it when
  968|       |                     // the answer is still in doubt: the ceiling fitting means yes, and the floor
  969|       |                     // of one byte per character not fitting means no.
  970|       |                     const size_t capacity = buffer_traits<std::remove_cvref_t<B>>::capacity(b);
  971|       |                     size_t required = ix + 10 + 6 * n;
  972|       |                     if (required > capacity) [[unlikely]] {
  973|       |                        required = ix + 10 + n;
  974|       |                        if (required <= capacity) {
  975|       |                           required = ix + 10 + detail::escaped_string_size(str);
  976|       |                        }
  977|       |                     }
  978|       |                     if (!ensure_space(ctx, b, required)) [[unlikely]] {
  979|       |                        return;
  980|       |                     }
  981|       |                  }
  982|       |                  // We need 2 + 6 * n characters in the worst case (all control chars)
  983|       |                  else if (!ensure_space(ctx, b, ix + 10 + 6 * n)) [[unlikely]] {
  984|       |                     return;
  985|       |                  }
  986|       |               }
  987|  1.03k|               else {
  988|       |                  // Using the original sizing
  989|  1.03k|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 1.03k]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|  1.03k|               }
  993|       |               // now we don't have to check writing
  994|       |
  995|       |               if constexpr (check_unquoted(Opts)) {
  996|       |                  if (n) {
  997|       |                     std::memcpy(&b[ix], str.data(), n);
  998|       |                     ix += n;
  999|       |                  }
 1000|       |               }
 1001|  1.03k|               else {
 1002|  1.03k|                  std::memcpy(&b[ix], "\"", 1);
 1003|  1.03k|                  ++ix;
 1004|       |
 1005|  1.03k|                  const auto* c = str.data();
 1006|  1.03k|                  const auto* const e = c + n;
 1007|  1.03k|                  const auto start = &b[ix];
 1008|  1.03k|                  auto data = start;
 1009|       |
 1010|       |                  // By default we don't escape control characters for performance. Invalid JSON characters
 1011|       |                  // result in null characters in the output, making the JSON invalid — these would then be
 1012|       |                  // detected upon reading. Enable the `escape_control_characters` option to properly escape
 1013|       |                  // control characters (0x00–0x1F) as \uXXXX sequences.
 1014|       |
 1015|       |                  // Escape handler: writes the escaped form of *c into data, advances both pointers
 1016|  1.03k|                  auto write_escape = [&]() {
 1017|  1.03k|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|  1.03k|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|  1.03k|                           std::memcpy(data, &escaped, 2);
 1020|  1.03k|                           data += 2;
 1021|  1.03k|                        }
 1022|  1.03k|                        else {
 1023|  1.03k|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|  1.03k|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|  1.03k|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|  1.03k|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|  1.03k|                           std::memcpy(data, unicode_escape, 6);
 1028|  1.03k|                           data += 6;
 1029|  1.03k|                        }
 1030|  1.03k|                     }
 1031|  1.03k|                     else {
 1032|  1.03k|                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|  1.03k|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|  1.03k|                              ctx.error = error_code::invalid_control_character;
 1040|  1.03k|                           }
 1041|  1.03k|                        }
 1042|  1.03k|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  1.03k|                        data += 2;
 1044|  1.03k|                     }
 1045|  1.03k|                     ++c;
 1046|  1.03k|                  };
 1047|       |
 1048|       |                  // Adding a helper here means adding a branch to string_escape_simd() in
 1049|       |                  // simd/backends.hpp, which names the widest one this cascade invokes, and a row
 1050|       |                  // to known_builds in tests/json_test/utf8_validation_test.cpp, which checks it.
 1051|       |#if defined(GLZ_USE_AVX2)
 1052|       |                  detail::avx2_string_escape(c, e, data, n, write_escape);
 1053|       |#endif
 1054|  1.03k|#if defined(GLZ_USE_SSE2)
 1055|  1.03k|                  detail::sse2_string_escape(c, e, data, n, write_escape);
 1056|       |#elif defined(GLZ_USE_NEON)
 1057|       |                  detail::neon_string_escape(c, e, data, n, write_escape);
 1058|       |#endif
 1059|       |
 1060|       |                  // SWAR: 8 bytes at a time
 1061|  1.03k|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 374, False: 657]
  ------------------
 1062|    824|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 450, False: 374]
  ------------------
 1063|    450|                        std::memcpy(data, c, 8);
 1064|    450|                        uint64_t swar;
 1065|    450|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|    450|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|    450|                        const uint64_t lo7 = swar & lo7_mask;
 1072|    450|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|    450|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|    450|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|    450|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|    450|                        next &= repeat_byte8(0b10000000);
 1078|    450|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 187, False: 263]
  ------------------
 1079|    187|                           data += 8;
 1080|    187|                           c += 8;
 1081|    187|                           continue;
 1082|    187|                        }
 1083|       |
 1084|    263|                        const auto length = (countr_zero(next) >> 3);
 1085|    263|                        c += length;
 1086|    263|                        data += length;
 1087|    263|                        write_escape();
 1088|    263|                     }
 1089|    374|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|  3.74k|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 2.71k, False: 1.03k]
  ------------------
 1093|  2.71k|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 340, False: 2.37k]
  ------------------
 1094|    340|                        std::memcpy(data, &escaped, 2);
 1095|    340|                        data += 2;
 1096|    340|                     }
 1097|       |                     else if constexpr (check_escape_control_characters(Opts)) {
 1098|       |                        if (uint8_t(*c) < 0x20) {
 1099|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1100|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1101|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1102|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1103|       |                           std::memcpy(data, unicode_escape, 6);
 1104|       |                           data += 6;
 1105|       |                        }
 1106|       |                        else {
 1107|       |                           std::memcpy(data, c, 1);
 1108|       |                           ++data;
 1109|       |                        }
 1110|       |                     }
 1111|  2.37k|                     else {
 1112|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1113|       |                           if (uint8_t(*c) < 0x20) [[unlikely]] {
 1114|       |                              ctx.error = error_code::invalid_control_character;
 1115|       |                           }
 1116|       |                        }
 1117|  2.37k|                        std::memcpy(data, c, 1);
 1118|  2.37k|                        ++data;
 1119|  2.37k|                     }
 1120|  2.71k|                  }
 1121|       |
 1122|  1.03k|                  ix += size_t(data - start);
 1123|       |
 1124|  1.03k|                  std::memcpy(&b[ix], "\"", 1);
 1125|  1.03k|                  ++ix;
 1126|  1.03k|               }
 1127|  1.03k|            }
 1128|  1.03k|         }
 1129|  1.03k|      }
_ZZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_SB_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|  1.03k|               const sv str = [&]() -> const sv {
  946|       |                  if constexpr (array_char_t<T>) {
  947|       |                     return sv{value.data(), value.size()};
  948|       |                  }
  949|       |                  else if constexpr (u8str_t<T>) {
  950|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|       |                  }
  952|  1.03k|                  else {
  953|  1.03k|                     return str_view<T>(value);
  954|  1.03k|                  }
  955|  1.03k|               }();
_ZZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_SB_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
 1016|  10.0k|                  auto write_escape = [&]() {
 1017|       |                     if constexpr (check_escape_control_characters(Opts)) {
 1018|       |                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|       |                           std::memcpy(data, &escaped, 2);
 1020|       |                           data += 2;
 1021|       |                        }
 1022|       |                        else {
 1023|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|       |                           std::memcpy(data, unicode_escape, 6);
 1028|       |                           data += 6;
 1029|       |                        }
 1030|       |                     }
 1031|  10.0k|                     else {
 1032|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|       |                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|       |                              ctx.error = error_code::invalid_control_character;
 1040|       |                           }
 1041|       |                        }
 1042|  10.0k|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  10.0k|                        data += 2;
 1044|  10.0k|                     }
 1045|  10.0k|                     ++c;
 1046|  10.0k|                  };
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm2EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 0, False: 70]
  ------------------
 2627|      0|                        first = false;
 2628|      0|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [Folded, False: 70]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_:
 2471|    355|      {
 2472|    355|         using ValueType = std::decay_t<V>;
 2473|       |         if constexpr (has_unknown_writer<ValueType> && not check_disable_write_unknown(Options)) {
 2474|       |            constexpr auto& writer = meta_unknown_write_v<ValueType>;
 2475|       |
 2476|       |            using WriterType = meta_unknown_write_t<ValueType>;
 2477|       |            if constexpr (std::is_member_object_pointer_v<WriterType>) {
 2478|       |               decltype(auto) unknown_writer = value.*writer;
 2479|       |               if (unknown_writer.size() > 0) {
 2480|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2481|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2482|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2483|       |               }
 2484|       |               else {
 2485|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2486|       |               }
 2487|       |            }
 2488|       |            else if constexpr (std::is_member_function_pointer_v<WriterType>) {
 2489|       |               decltype(auto) unknown_writer = (value.*writer)();
 2490|       |               if (unknown_writer.size() > 0) {
 2491|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2492|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2493|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2494|       |               }
 2495|       |               else {
 2496|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2497|       |               }
 2498|       |            }
 2499|       |            else {
 2500|       |               static_assert(false_v<T>, "unknown_write type not handled");
 2501|       |            }
 2502|       |         }
 2503|    355|         else {
 2504|       |            // handles glaze_object_t without extra unknown fields
 2505|    355|            static constexpr auto Opts =
 2506|    355|               disable_write_unknown_off<opening_and_closing_handled_off<ws_handled_off<Options>()>()>();
 2507|       |
 2508|    355|            if constexpr (not check_opening_handled(Options)) {
 2509|       |               if constexpr (Options.prettify) {
 2510|       |                  ctx.depth += check_indentation_width(Options);
 2511|       |                  if constexpr (not check_write_unchecked(Options)) {
 2512|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2513|       |                        return;
 2514|       |                     }
 2515|       |                  }
 2516|       |                  std::memcpy(&b[ix], "{\n", 2);
 2517|       |                  ix += 2;
 2518|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2519|       |                  ix += ctx.depth;
 2520|       |               }
 2521|    355|               else {
 2522|    355|                  if constexpr (not check_write_unchecked(Options)) {
 2523|    355|                     if (!ensure_space(ctx, b, ix + 1)) [[unlikely]] {
  ------------------
  |  Branch (2523:26): [True: 0, False: 355]
  ------------------
 2524|      0|                        return;
 2525|      0|                     }
 2526|    355|                  }
 2527|    355|                  dump<not check_write_unchecked(Options)>('{', b, ix);
 2528|    355|               }
 2529|    355|            }
 2530|       |
 2531|      0|            static constexpr auto N = reflect<T>::size;
 2532|       |
 2533|    355|            decltype(auto) t = [&]() -> decltype(auto) {
 2534|    355|               if constexpr (reflectable<T>) {
 2535|    355|                  return to_tie(value);
 2536|    355|               }
 2537|    355|               else {
 2538|    355|                  return nullptr;
 2539|    355|               }
 2540|    355|            }();
 2541|       |
 2542|    355|            static constexpr auto padding = round_up_to_nearest_16(maximum_key_size<T> + write_padding_bytes);
 2543|       |            if constexpr (maybe_skipped<Opts, T>) {
 2544|       |               bool first = true;
 2545|       |               for_each<N>([&]<size_t I>() {
 2546|       |                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|       |                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|       |                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|       |                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|       |                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|       |                     else {
 2621|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2622|       |                           return;
 2623|       |                        }
 2624|       |                     }
 2625|       |
 2626|       |                     if (first) {
 2627|       |                        first = false;
 2628|       |                     }
 2629|       |                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|       |                        else {
 2638|       |                           std::memcpy(&b[ix], ",", 1);
 2639|       |                           ++ix;
 2640|       |                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|       |                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|       |                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|       |                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|       |                     static constexpr auto n = quoted_key.size();
 2650|       |                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|       |                     ix += n;
 2652|       |
 2653|       |                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2654|       |                     if constexpr (reflectable<T>) {
 2655|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|       |                  }
 2662|       |               });
 2663|       |            }
 2664|    355|            else {
 2665|    355|               static constexpr size_t fixed_max_size = Opts.prettify ? 0 : fixed_padding<T>;
  ------------------
  |  Branch (2665:57): [Folded, False: 355]
  ------------------
 2666|    355|               if constexpr (fixed_max_size && not check_write_unchecked(Options)) {
 2667|    355|                  if (!ensure_space(ctx, b, ix + fixed_max_size)) [[unlikely]] {
  ------------------
  |  Branch (2667:23): [True: 0, False: 355]
  ------------------
 2668|      0|                     return;
 2669|      0|                  }
 2670|    355|               }
 2671|       |
 2672|    355|               for_each<N>([&]<size_t I>() {
 2673|    355|                  if constexpr (write_can_error<T>()) {
 2674|    355|                     if (bool(ctx.error)) [[unlikely]] {
 2675|    355|                        return;
 2676|    355|                     }
 2677|    355|                  }
 2678|    355|                  if constexpr (not fixed_max_size) {
 2679|    355|                     if constexpr (Opts.prettify) {
 2680|    355|                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2681|    355|                           return;
 2682|    355|                        }
 2683|    355|                     }
 2684|    355|                     else {
 2685|    355|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2686|    355|                           return;
 2687|    355|                        }
 2688|    355|                     }
 2689|    355|                  }
 2690|       |
 2691|    355|                  if constexpr (I != 0 && Opts.prettify) {
 2692|    355|                     std::memcpy(&b[ix], ",\n", 2);
 2693|    355|                     ix += 2;
 2694|    355|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2695|    355|                     ix += ctx.depth;
 2696|    355|                  }
 2697|       |
 2698|    355|                  using val_t = field_t<T, I>;
 2699|       |
 2700|       |                  // MSVC requires get<I> rather than keys[I]
 2701|    355|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2702|    355|                  if constexpr (always_null_t<val_t>) {
 2703|    355|                     if constexpr (I == 0 || Opts.prettify) {
 2704|    355|                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2705|    355|                        static constexpr auto n = quoted_key.size();
 2706|    355|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2707|    355|                        ix += n;
 2708|    355|                     }
 2709|    355|                     else {
 2710|    355|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2711|    355|                        static constexpr auto n = quoted_key.size();
 2712|    355|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2713|    355|                        ix += n;
 2714|    355|                     }
 2715|    355|                  }
 2716|    355|                  else {
 2717|    355|                     if constexpr (I == 0 || Opts.prettify) {
 2718|    355|                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2719|    355|                        static constexpr auto n = quoted_key.size();
 2720|    355|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2721|    355|                        ix += n;
 2722|    355|                     }
 2723|    355|                     else {
 2724|    355|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2725|    355|                        static constexpr auto n = quoted_key.size();
 2726|    355|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2727|    355|                        ix += n;
 2728|    355|                     }
 2729|       |
 2730|    355|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2731|    355|                     if constexpr (reflectable<T>) {
 2732|    355|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2733|    355|                     }
 2734|    355|                     else {
 2735|    355|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2736|    355|                                                                 ix);
 2737|    355|                     }
 2738|    355|                  }
 2739|    355|               });
 2740|    355|            }
 2741|       |
 2742|       |            // Options is required here, because it must be the top level
 2743|    355|            if constexpr (not check_closing_handled(Options)) {
 2744|       |               if constexpr (Options.prettify) {
 2745|       |                  ctx.depth -= check_indentation_width(Options);
 2746|       |                  if constexpr (not check_write_unchecked(Options)) {
 2747|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2748|       |                        return;
 2749|       |                     }
 2750|       |                  }
 2751|       |                  std::memcpy(&b[ix], "\n", 1);
 2752|       |                  ++ix;
 2753|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2754|       |                  ix += ctx.depth;
 2755|       |                  std::memcpy(&b[ix], "}", 1);
 2756|       |                  ++ix;
 2757|       |               }
 2758|    355|               else {
 2759|    355|                  dump<not(fixed_padding<T> || check_write_unchecked(Options))>('}', b, ix);
 2760|    355|               }
 2761|    355|            }
 2762|    355|         }
 2763|    355|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlvE_clEv:
 2533|    355|            decltype(auto) t = [&]() -> decltype(auto) {
 2534|    355|               if constexpr (reflectable<T>) {
 2535|    355|                  return to_tie(value);
 2536|       |               }
 2537|       |               else {
 2538|       |                  return nullptr;
 2539|       |               }
 2540|    355|            }();
_ZZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm0EEEDav:
 2672|    355|               for_each<N>([&]<size_t I>() {
 2673|       |                  if constexpr (write_can_error<T>()) {
 2674|       |                     if (bool(ctx.error)) [[unlikely]] {
 2675|       |                        return;
 2676|       |                     }
 2677|       |                  }
 2678|       |                  if constexpr (not fixed_max_size) {
 2679|       |                     if constexpr (Opts.prettify) {
 2680|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2681|       |                           return;
 2682|       |                        }
 2683|       |                     }
 2684|       |                     else {
 2685|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2686|       |                           return;
 2687|       |                        }
 2688|       |                     }
 2689|       |                  }
 2690|       |
 2691|       |                  if constexpr (I != 0 && Opts.prettify) {
 2692|       |                     std::memcpy(&b[ix], ",\n", 2);
 2693|       |                     ix += 2;
 2694|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2695|       |                     ix += ctx.depth;
 2696|       |                  }
 2697|       |
 2698|    355|                  using val_t = field_t<T, I>;
 2699|       |
 2700|       |                  // MSVC requires get<I> rather than keys[I]
 2701|    355|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2702|       |                  if constexpr (always_null_t<val_t>) {
 2703|       |                     if constexpr (I == 0 || Opts.prettify) {
 2704|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2705|       |                        static constexpr auto n = quoted_key.size();
 2706|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2707|       |                        ix += n;
 2708|       |                     }
 2709|       |                     else {
 2710|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2711|       |                        static constexpr auto n = quoted_key.size();
 2712|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2713|       |                        ix += n;
 2714|       |                     }
 2715|       |                  }
 2716|    355|                  else {
 2717|    355|                     if constexpr (I == 0 || Opts.prettify) {
 2718|    355|                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2719|    355|                        static constexpr auto n = quoted_key.size();
 2720|    355|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2721|    355|                        ix += n;
 2722|       |                     }
 2723|       |                     else {
 2724|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2725|       |                        static constexpr auto n = quoted_key.size();
 2726|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2727|       |                        ix += n;
 2728|       |                     }
 2729|       |
 2730|    355|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2730:57): [True: 0, Folded]
  ------------------
 2731|    355|                     if constexpr (reflectable<T>) {
 2732|    355|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2733|       |                     }
 2734|       |                     else {
 2735|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2736|       |                                                                 ix);
 2737|       |                     }
 2738|    355|                  }
 2739|    355|               });
_ZZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm1EEEDav:
 2672|    355|               for_each<N>([&]<size_t I>() {
 2673|       |                  if constexpr (write_can_error<T>()) {
 2674|       |                     if (bool(ctx.error)) [[unlikely]] {
 2675|       |                        return;
 2676|       |                     }
 2677|       |                  }
 2678|       |                  if constexpr (not fixed_max_size) {
 2679|       |                     if constexpr (Opts.prettify) {
 2680|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2681|       |                           return;
 2682|       |                        }
 2683|       |                     }
 2684|       |                     else {
 2685|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2686|       |                           return;
 2687|       |                        }
 2688|       |                     }
 2689|       |                  }
 2690|       |
 2691|       |                  if constexpr (I != 0 && Opts.prettify) {
 2692|       |                     std::memcpy(&b[ix], ",\n", 2);
 2693|       |                     ix += 2;
 2694|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2695|       |                     ix += ctx.depth;
 2696|       |                  }
 2697|       |
 2698|    355|                  using val_t = field_t<T, I>;
 2699|       |
 2700|       |                  // MSVC requires get<I> rather than keys[I]
 2701|    355|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2702|       |                  if constexpr (always_null_t<val_t>) {
 2703|       |                     if constexpr (I == 0 || Opts.prettify) {
 2704|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2705|       |                        static constexpr auto n = quoted_key.size();
 2706|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2707|       |                        ix += n;
 2708|       |                     }
 2709|       |                     else {
 2710|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2711|       |                        static constexpr auto n = quoted_key.size();
 2712|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2713|       |                        ix += n;
 2714|       |                     }
 2715|       |                  }
 2716|    355|                  else {
 2717|       |                     if constexpr (I == 0 || Opts.prettify) {
 2718|       |                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2719|       |                        static constexpr auto n = quoted_key.size();
 2720|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2721|       |                        ix += n;
 2722|       |                     }
 2723|    355|                     else {
 2724|    355|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2725|    355|                        static constexpr auto n = quoted_key.size();
 2726|    355|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2727|    355|                        ix += n;
 2728|    355|                     }
 2729|       |
 2730|    355|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2730:57): [True: 0, Folded]
  ------------------
 2731|    355|                     if constexpr (reflectable<T>) {
 2732|    355|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2733|       |                     }
 2734|       |                     else {
 2735|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2736|       |                                                                 ix);
 2737|       |                     }
 2738|    355|                  }
 2739|    355|               });
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm3EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 0, False: 70]
  ------------------
 2627|      0|                        first = false;
 2628|      0|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [Folded, False: 70]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZN3glz2toILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_:
 2471|    116|      {
 2472|    116|         using ValueType = std::decay_t<V>;
 2473|       |         if constexpr (has_unknown_writer<ValueType> && not check_disable_write_unknown(Options)) {
 2474|       |            constexpr auto& writer = meta_unknown_write_v<ValueType>;
 2475|       |
 2476|       |            using WriterType = meta_unknown_write_t<ValueType>;
 2477|       |            if constexpr (std::is_member_object_pointer_v<WriterType>) {
 2478|       |               decltype(auto) unknown_writer = value.*writer;
 2479|       |               if (unknown_writer.size() > 0) {
 2480|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2481|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2482|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2483|       |               }
 2484|       |               else {
 2485|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2486|       |               }
 2487|       |            }
 2488|       |            else if constexpr (std::is_member_function_pointer_v<WriterType>) {
 2489|       |               decltype(auto) unknown_writer = (value.*writer)();
 2490|       |               if (unknown_writer.size() > 0) {
 2491|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2492|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2493|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2494|       |               }
 2495|       |               else {
 2496|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2497|       |               }
 2498|       |            }
 2499|       |            else {
 2500|       |               static_assert(false_v<T>, "unknown_write type not handled");
 2501|       |            }
 2502|       |         }
 2503|    116|         else {
 2504|       |            // handles glaze_object_t without extra unknown fields
 2505|    116|            static constexpr auto Opts =
 2506|    116|               disable_write_unknown_off<opening_and_closing_handled_off<ws_handled_off<Options>()>()>();
 2507|       |
 2508|    116|            if constexpr (not check_opening_handled(Options)) {
 2509|       |               if constexpr (Options.prettify) {
 2510|       |                  ctx.depth += check_indentation_width(Options);
 2511|       |                  if constexpr (not check_write_unchecked(Options)) {
 2512|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2513|       |                        return;
 2514|       |                     }
 2515|       |                  }
 2516|       |                  std::memcpy(&b[ix], "{\n", 2);
 2517|       |                  ix += 2;
 2518|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2519|       |                  ix += ctx.depth;
 2520|       |               }
 2521|    116|               else {
 2522|    116|                  if constexpr (not check_write_unchecked(Options)) {
 2523|    116|                     if (!ensure_space(ctx, b, ix + 1)) [[unlikely]] {
  ------------------
  |  Branch (2523:26): [True: 0, False: 116]
  ------------------
 2524|      0|                        return;
 2525|      0|                     }
 2526|    116|                  }
 2527|    116|                  dump<not check_write_unchecked(Options)>('{', b, ix);
 2528|    116|               }
 2529|    116|            }
 2530|       |
 2531|      0|            static constexpr auto N = reflect<T>::size;
 2532|       |
 2533|    116|            decltype(auto) t = [&]() -> decltype(auto) {
 2534|    116|               if constexpr (reflectable<T>) {
 2535|    116|                  return to_tie(value);
 2536|    116|               }
 2537|    116|               else {
 2538|    116|                  return nullptr;
 2539|    116|               }
 2540|    116|            }();
 2541|       |
 2542|    116|            static constexpr auto padding = round_up_to_nearest_16(maximum_key_size<T> + write_padding_bytes);
 2543|       |            if constexpr (maybe_skipped<Opts, T>) {
 2544|       |               bool first = true;
 2545|       |               for_each<N>([&]<size_t I>() {
 2546|       |                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|       |                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|       |                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|       |                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|       |                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|       |                     else {
 2621|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2622|       |                           return;
 2623|       |                        }
 2624|       |                     }
 2625|       |
 2626|       |                     if (first) {
 2627|       |                        first = false;
 2628|       |                     }
 2629|       |                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|       |                        else {
 2638|       |                           std::memcpy(&b[ix], ",", 1);
 2639|       |                           ++ix;
 2640|       |                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|       |                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|       |                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|       |                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|       |                     static constexpr auto n = quoted_key.size();
 2650|       |                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|       |                     ix += n;
 2652|       |
 2653|       |                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2654|       |                     if constexpr (reflectable<T>) {
 2655|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|       |                  }
 2662|       |               });
 2663|       |            }
 2664|    116|            else {
 2665|    116|               static constexpr size_t fixed_max_size = Opts.prettify ? 0 : fixed_padding<T>;
  ------------------
  |  Branch (2665:57): [Folded, False: 116]
  ------------------
 2666|       |               if constexpr (fixed_max_size && not check_write_unchecked(Options)) {
 2667|       |                  if (!ensure_space(ctx, b, ix + fixed_max_size)) [[unlikely]] {
 2668|       |                     return;
 2669|       |                  }
 2670|       |               }
 2671|       |
 2672|    116|               for_each<N>([&]<size_t I>() {
 2673|    116|                  if constexpr (write_can_error<T>()) {
 2674|    116|                     if (bool(ctx.error)) [[unlikely]] {
 2675|    116|                        return;
 2676|    116|                     }
 2677|    116|                  }
 2678|    116|                  if constexpr (not fixed_max_size) {
 2679|    116|                     if constexpr (Opts.prettify) {
 2680|    116|                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2681|    116|                           return;
 2682|    116|                        }
 2683|    116|                     }
 2684|    116|                     else {
 2685|    116|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2686|    116|                           return;
 2687|    116|                        }
 2688|    116|                     }
 2689|    116|                  }
 2690|       |
 2691|    116|                  if constexpr (I != 0 && Opts.prettify) {
 2692|    116|                     std::memcpy(&b[ix], ",\n", 2);
 2693|    116|                     ix += 2;
 2694|    116|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2695|    116|                     ix += ctx.depth;
 2696|    116|                  }
 2697|       |
 2698|    116|                  using val_t = field_t<T, I>;
 2699|       |
 2700|       |                  // MSVC requires get<I> rather than keys[I]
 2701|    116|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2702|    116|                  if constexpr (always_null_t<val_t>) {
 2703|    116|                     if constexpr (I == 0 || Opts.prettify) {
 2704|    116|                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2705|    116|                        static constexpr auto n = quoted_key.size();
 2706|    116|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2707|    116|                        ix += n;
 2708|    116|                     }
 2709|    116|                     else {
 2710|    116|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2711|    116|                        static constexpr auto n = quoted_key.size();
 2712|    116|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2713|    116|                        ix += n;
 2714|    116|                     }
 2715|    116|                  }
 2716|    116|                  else {
 2717|    116|                     if constexpr (I == 0 || Opts.prettify) {
 2718|    116|                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2719|    116|                        static constexpr auto n = quoted_key.size();
 2720|    116|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2721|    116|                        ix += n;
 2722|    116|                     }
 2723|    116|                     else {
 2724|    116|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2725|    116|                        static constexpr auto n = quoted_key.size();
 2726|    116|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2727|    116|                        ix += n;
 2728|    116|                     }
 2729|       |
 2730|    116|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2731|    116|                     if constexpr (reflectable<T>) {
 2732|    116|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2733|    116|                     }
 2734|    116|                     else {
 2735|    116|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2736|    116|                                                                 ix);
 2737|    116|                     }
 2738|    116|                  }
 2739|    116|               });
 2740|    116|            }
 2741|       |
 2742|       |            // Options is required here, because it must be the top level
 2743|    116|            if constexpr (not check_closing_handled(Options)) {
 2744|       |               if constexpr (Options.prettify) {
 2745|       |                  ctx.depth -= check_indentation_width(Options);
 2746|       |                  if constexpr (not check_write_unchecked(Options)) {
 2747|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2748|       |                        return;
 2749|       |                     }
 2750|       |                  }
 2751|       |                  std::memcpy(&b[ix], "\n", 1);
 2752|       |                  ++ix;
 2753|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2754|       |                  ix += ctx.depth;
 2755|       |                  std::memcpy(&b[ix], "}", 1);
 2756|       |                  ++ix;
 2757|       |               }
 2758|    116|               else {
 2759|    116|                  dump<not(fixed_padding<T> || check_write_unchecked(Options))>('}', b, ix);
 2760|    116|               }
 2761|    116|            }
 2762|    116|         }
 2763|    116|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlvE_clEv:
 2533|    116|            decltype(auto) t = [&]() -> decltype(auto) {
 2534|    116|               if constexpr (reflectable<T>) {
 2535|    116|                  return to_tie(value);
 2536|       |               }
 2537|       |               else {
 2538|       |                  return nullptr;
 2539|       |               }
 2540|    116|            }();
_ZZN3glz2toILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm0EEEDav:
 2672|    116|               for_each<N>([&]<size_t I>() {
 2673|       |                  if constexpr (write_can_error<T>()) {
 2674|       |                     if (bool(ctx.error)) [[unlikely]] {
 2675|       |                        return;
 2676|       |                     }
 2677|       |                  }
 2678|    116|                  if constexpr (not fixed_max_size) {
 2679|       |                     if constexpr (Opts.prettify) {
 2680|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2681|       |                           return;
 2682|       |                        }
 2683|       |                     }
 2684|    116|                     else {
 2685|    116|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2685:29): [True: 0, False: 116]
  ------------------
 2686|      0|                           return;
 2687|      0|                        }
 2688|    116|                     }
 2689|    116|                  }
 2690|       |
 2691|       |                  if constexpr (I != 0 && Opts.prettify) {
 2692|       |                     std::memcpy(&b[ix], ",\n", 2);
 2693|       |                     ix += 2;
 2694|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2695|       |                     ix += ctx.depth;
 2696|       |                  }
 2697|       |
 2698|    116|                  using val_t = field_t<T, I>;
 2699|       |
 2700|       |                  // MSVC requires get<I> rather than keys[I]
 2701|    116|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2702|       |                  if constexpr (always_null_t<val_t>) {
 2703|       |                     if constexpr (I == 0 || Opts.prettify) {
 2704|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2705|       |                        static constexpr auto n = quoted_key.size();
 2706|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2707|       |                        ix += n;
 2708|       |                     }
 2709|       |                     else {
 2710|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2711|       |                        static constexpr auto n = quoted_key.size();
 2712|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2713|       |                        ix += n;
 2714|       |                     }
 2715|       |                  }
 2716|    116|                  else {
 2717|    116|                     if constexpr (I == 0 || Opts.prettify) {
 2718|    116|                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2719|    116|                        static constexpr auto n = quoted_key.size();
 2720|    116|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2721|    116|                        ix += n;
 2722|       |                     }
 2723|       |                     else {
 2724|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2725|       |                        static constexpr auto n = quoted_key.size();
 2726|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2727|       |                        ix += n;
 2728|       |                     }
 2729|       |
 2730|    116|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2730:57): [True: 0, Folded]
  ------------------
 2731|    116|                     if constexpr (reflectable<T>) {
 2732|    116|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2733|       |                     }
 2734|       |                     else {
 2735|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2736|       |                                                                 ix);
 2737|       |                     }
 2738|    116|                  }
 2739|    116|               });
_ZZN3glz2toILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm1EEEDav:
 2672|    116|               for_each<N>([&]<size_t I>() {
 2673|       |                  if constexpr (write_can_error<T>()) {
 2674|       |                     if (bool(ctx.error)) [[unlikely]] {
 2675|       |                        return;
 2676|       |                     }
 2677|       |                  }
 2678|    116|                  if constexpr (not fixed_max_size) {
 2679|       |                     if constexpr (Opts.prettify) {
 2680|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2681|       |                           return;
 2682|       |                        }
 2683|       |                     }
 2684|    116|                     else {
 2685|    116|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2685:29): [True: 0, False: 116]
  ------------------
 2686|      0|                           return;
 2687|      0|                        }
 2688|    116|                     }
 2689|    116|                  }
 2690|       |
 2691|       |                  if constexpr (I != 0 && Opts.prettify) {
 2692|       |                     std::memcpy(&b[ix], ",\n", 2);
 2693|       |                     ix += 2;
 2694|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2695|       |                     ix += ctx.depth;
 2696|       |                  }
 2697|       |
 2698|    116|                  using val_t = field_t<T, I>;
 2699|       |
 2700|       |                  // MSVC requires get<I> rather than keys[I]
 2701|    116|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2702|       |                  if constexpr (always_null_t<val_t>) {
 2703|       |                     if constexpr (I == 0 || Opts.prettify) {
 2704|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2705|       |                        static constexpr auto n = quoted_key.size();
 2706|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2707|       |                        ix += n;
 2708|       |                     }
 2709|       |                     else {
 2710|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2711|       |                        static constexpr auto n = quoted_key.size();
 2712|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2713|       |                        ix += n;
 2714|       |                     }
 2715|       |                  }
 2716|    116|                  else {
 2717|       |                     if constexpr (I == 0 || Opts.prettify) {
 2718|       |                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2719|       |                        static constexpr auto n = quoted_key.size();
 2720|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2721|       |                        ix += n;
 2722|       |                     }
 2723|    116|                     else {
 2724|    116|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2725|    116|                        static constexpr auto n = quoted_key.size();
 2726|    116|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2727|    116|                        ix += n;
 2728|    116|                     }
 2729|       |
 2730|    116|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2730:57): [Folded, False: 116]
  ------------------
 2731|    116|                     if constexpr (reflectable<T>) {
 2732|    116|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2733|       |                     }
 2734|       |                     else {
 2735|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2736|       |                                                                 ix);
 2737|       |                     }
 2738|    116|                  }
 2739|    116|               });
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm4EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 0, False: 70]
  ------------------
 2627|      0|                        first = false;
 2628|      0|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [Folded, False: 70]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZN3glz2toILj10ENSt3__16vectorIiNS1_9allocatorIiEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS1_12basic_stringIcNS1_11char_traitsIcEENS3_IcEEEERS5_TkNS_10is_contextERNS_7contextEmQaa16writable_array_tIT_EquL_ZNS0_ILj10ESI_E14map_like_arrayEEeqcl17check_concatenateTL0__ELb0ELb1EEEvOT1_OT2_OT0_RT3_:
 1435|    149|      {
 1436|    149|         if (empty_range(value)) {
  ------------------
  |  Branch (1436:14): [True: 149, False: 0]
  ------------------
 1437|    149|            dump("[]", b, ix);
 1438|    149|         }
 1439|      0|         else {
 1440|       |            // For bounded buffers, skip pre-allocation path since value_padding is for SIMD, not actual size
 1441|      0|            if constexpr (has_size<T> && array_padding_known<T> && !has_bounded_capacity<B>) {
 1442|      0|               const auto n = value.size();
 1443|       |
 1444|      0|               static constexpr auto value_padding = []() -> size_t {
 1445|      0|                  if constexpr (required_padding<typename T::value_type>() > 0)
 1446|      0|                     return required_padding<typename T::value_type>();
 1447|      0|                  else
 1448|      0|                     return fixed_padding<typename T::value_type>;
 1449|      0|               }();
 1450|       |
 1451|       |               if constexpr (Opts.prettify) {
 1452|       |                  if constexpr (check_new_lines_in_arrays(Opts)) {
 1453|       |                     ctx.depth += check_indentation_width(Opts);
 1454|       |                  }
 1455|       |
 1456|       |                  // add space for '\n' and ',' characters for each element, hence `+ 2`
 1457|       |                  // use n + 1 because we put the end array character after the last element with whitespace
 1458|       |                  if (!ensure_space(ctx, b, ix + (n + 1) * (value_padding + ctx.depth + 2) + write_padding_bytes))
 1459|       |                     [[unlikely]] {
 1460|       |                     return;
 1461|       |                  }
 1462|       |
 1463|       |                  if constexpr (check_new_lines_in_arrays(Opts)) {
 1464|       |                     std::memcpy(&b[ix], "[\n", 2);
 1465|       |                     ix += 2;
 1466|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1467|       |                     ix += ctx.depth;
 1468|       |                  }
 1469|       |                  else {
 1470|       |                     std::memcpy(&b[ix], "[", 1);
 1471|       |                     ++ix;
 1472|       |                  }
 1473|       |               }
 1474|      0|               else {
 1475|      0|                  static constexpr auto comma_padding = 1;
 1476|      0|                  if (!ensure_space(ctx, b, ix + n * (value_padding + comma_padding) + write_padding_bytes))
  ------------------
  |  Branch (1476:23): [True: 0, False: 0]
  ------------------
 1477|      0|                     [[unlikely]] {
 1478|      0|                     return;
 1479|      0|                  }
 1480|      0|                  std::memcpy(&b[ix], "[", 1);
 1481|      0|                  ++ix;
 1482|      0|               }
 1483|       |
 1484|      0|               auto it = std::begin(value);
 1485|      0|               using val_t = std::remove_cvref_t<decltype(*it)>;
 1486|      0|               to<JSON, val_t>::template op<write_unchecked_on<Opts>()>(*it, ctx, b, ix);
 1487|       |
 1488|      0|               ++it;
 1489|      0|               for (const auto fin = std::end(value); it != fin; ++it) {
  ------------------
  |  Branch (1489:55): [True: 0, False: 0]
  ------------------
 1490|       |                  if constexpr (Opts.prettify) {
 1491|       |                     if constexpr (check_new_lines_in_arrays(Opts)) {
 1492|       |                        std::memcpy(&b[ix], ",\n", 2);
 1493|       |                        ix += 2;
 1494|       |                        fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1495|       |                        ix += ctx.depth;
 1496|       |                     }
 1497|       |                     else {
 1498|       |                        std::memcpy(&b[ix], ", ", 2);
 1499|       |                        ix += 2;
 1500|       |                     }
 1501|       |                  }
 1502|      0|                  else {
 1503|      0|                     std::memcpy(&b[ix], ",", 1);
 1504|      0|                     ++ix;
 1505|      0|                  }
 1506|       |                  if constexpr (is_output_streaming<B>) {
 1507|       |                     flush_buffer(b, ix);
 1508|       |                  }
 1509|       |
 1510|      0|                  to<JSON, val_t>::template op<write_unchecked_on<Opts>()>(*it, ctx, b, ix);
 1511|      0|               }
 1512|       |               if constexpr (Opts.prettify && check_new_lines_in_arrays(Opts)) {
 1513|       |                  ctx.depth -= check_indentation_width(Opts);
 1514|       |                  std::memcpy(&b[ix], "\n", 1);
 1515|       |                  ++ix;
 1516|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1517|       |                  ix += ctx.depth;
 1518|       |               }
 1519|       |
 1520|      0|               std::memcpy(&b[ix], "]", 1);
 1521|      0|               ++ix;
 1522|       |            }
 1523|       |            else {
 1524|       |               // we either can't get the size (std::forward_list) or we cannot compute the allocation size
 1525|       |
 1526|       |               if constexpr (Opts.prettify) {
 1527|       |                  if constexpr (check_new_lines_in_arrays(Opts)) {
 1528|       |                     ctx.depth += check_indentation_width(Opts);
 1529|       |                  }
 1530|       |
 1531|       |                  if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 1532|       |                     return;
 1533|       |                  }
 1534|       |
 1535|       |                  if constexpr (check_new_lines_in_arrays(Opts)) {
 1536|       |                     std::memcpy(&b[ix], "[\n", 2);
 1537|       |                     ix += 2;
 1538|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1539|       |                     ix += ctx.depth;
 1540|       |                  }
 1541|       |                  else {
 1542|       |                     std::memcpy(&b[ix], "[", 1);
 1543|       |                     ++ix;
 1544|       |                  }
 1545|       |               }
 1546|       |               else {
 1547|       |                  if (!ensure_space(ctx, b, ix + write_padding_bytes)) [[unlikely]] {
 1548|       |                     return;
 1549|       |                  }
 1550|       |                  std::memcpy(&b[ix], "[", 1);
 1551|       |                  ++ix;
 1552|       |               }
 1553|       |
 1554|       |               auto it = std::begin(value);
 1555|       |               using val_t = std::remove_cvref_t<decltype(*it)>;
 1556|       |               if constexpr (required_padding<val_t>()) {
 1557|       |                  to<JSON, val_t>::template op<write_unchecked_on<Opts>()>(*it, ctx, b, ix);
 1558|       |               }
 1559|       |               else {
 1560|       |                  to<JSON, val_t>::template op<Opts>(*it, ctx, b, ix);
 1561|       |                  if (bool(ctx.error)) [[unlikely]] {
 1562|       |                     return;
 1563|       |                  }
 1564|       |               }
 1565|       |
 1566|       |               ++it;
 1567|       |               for (const auto fin = std::end(value); it != fin; ++it) {
 1568|       |                  if constexpr (required_padding<val_t>()) {
 1569|       |                     if constexpr (Opts.prettify) {
 1570|       |                        if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 1571|       |                           return;
 1572|       |                        }
 1573|       |                     }
 1574|       |                     else {
 1575|       |                        if (!ensure_space(ctx, b, ix + write_padding_bytes)) [[unlikely]] {
 1576|       |                           return;
 1577|       |                        }
 1578|       |                     }
 1579|       |
 1580|       |                     if constexpr (Opts.prettify) {
 1581|       |                        if constexpr (check_new_lines_in_arrays(Opts)) {
 1582|       |                           std::memcpy(&b[ix], ",\n", 2);
 1583|       |                           ix += 2;
 1584|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1585|       |                           ix += ctx.depth;
 1586|       |                        }
 1587|       |                        else {
 1588|       |                           std::memcpy(&b[ix], ", ", 2);
 1589|       |                           ix += 2;
 1590|       |                        }
 1591|       |                     }
 1592|       |                     else {
 1593|       |                        std::memcpy(&b[ix], ",", 1);
 1594|       |                        ++ix;
 1595|       |                     }
 1596|       |                     if constexpr (is_output_streaming<B>) {
 1597|       |                        flush_buffer(b, ix);
 1598|       |                     }
 1599|       |
 1600|       |                     to<JSON, val_t>::template op<write_unchecked_on<Opts>()>(*it, ctx, b, ix);
 1601|       |                  }
 1602|       |                  else {
 1603|       |                     write_array_entry_separator<Opts>(ctx, b, ix);
 1604|       |                     to<JSON, val_t>::template op<Opts>(*it, ctx, b, ix);
 1605|       |                     if (bool(ctx.error)) [[unlikely]] {
 1606|       |                        return;
 1607|       |                     }
 1608|       |                  }
 1609|       |               }
 1610|       |               if constexpr (Opts.prettify && check_new_lines_in_arrays(Opts)) {
 1611|       |                  ctx.depth -= check_indentation_width(Opts);
 1612|       |                  dump_newline_indent(check_indentation_char(Opts), ctx.depth, b, ix);
 1613|       |               }
 1614|       |
 1615|       |               dump(']', b, ix);
 1616|       |            }
 1617|      0|         }
 1618|    149|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm5EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 0, False: 70]
  ------------------
 2627|      0|                        first = false;
 2628|      0|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [Folded, False: 70]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZN3glz2toILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS8_RSF_TkNS_10is_contextERNS_7contextEmQoo14writable_map_tIT_EaaL_ZNS0_ILj10ESN_E14map_like_arrayEEeqcl17check_concatenateTL0__ELb1EEEvOT1_OT2_OT0_RT3_:
 1623|    134|      {
 1624|    134|         if constexpr (not check_opening_handled(Opts)) {
 1625|    134|            dump('{', b, ix);
 1626|    134|         }
 1627|       |
 1628|    134|         if (!empty_range(value)) {
  ------------------
  |  Branch (1628:14): [True: 0, False: 134]
  ------------------
 1629|      0|            if constexpr (!check_opening_handled(Opts)) {
 1630|       |               if constexpr (Opts.prettify) {
 1631|       |                  ctx.depth += check_indentation_width(Opts);
 1632|       |                  if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 1633|       |                     return;
 1634|       |                  }
 1635|       |                  std::memcpy(&b[ix], "\n", 1);
 1636|       |                  ++ix;
 1637|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1638|       |                  ix += ctx.depth;
 1639|       |               }
 1640|      0|            }
 1641|       |
 1642|      0|            using val_t = detail::iterator_second_type<T>; // the type of value in each [key, value] pair
 1643|      0|            if constexpr (!never_written<Opts, val_t>) {
 1644|       |               if constexpr (null_t<val_t> && Opts.skip_null_members) {
 1645|       |                  auto write_first_entry = [&](auto&& it) {
 1646|       |                     auto&& [key, entry_val] = *it;
 1647|       |                     if (skip_member<Opts>(entry_val)) {
 1648|       |                        return true;
 1649|       |                     }
 1650|       |                     write_pair_content<Opts>(key, entry_val, ctx, b, ix);
 1651|       |                     return bool(ctx.error);
 1652|       |                  };
 1653|       |
 1654|       |                  auto it = std::begin(value);
 1655|       |                  bool first = write_first_entry(it);
 1656|       |                  if (bool(ctx.error)) [[unlikely]] {
 1657|       |                     return;
 1658|       |                  }
 1659|       |                  ++it;
 1660|       |                  for (const auto end = std::end(value); it != end; ++it) {
 1661|       |                     auto&& [key, entry_val] = *it;
 1662|       |                     if (skip_member<Opts>(entry_val)) {
 1663|       |                        continue;
 1664|       |                     }
 1665|       |
 1666|       |                     // When Opts.skip_null_members, *any* entry may be skipped, meaning separator dumping must be
 1667|       |                     // conditional for every entry.
 1668|       |                     // Alternatively, write separator after each entry except last but then branch is permanent
 1669|       |                     if (not first) {
 1670|       |                        write_object_entry_separator<Opts>(ctx, b, ix);
 1671|       |                     }
 1672|       |
 1673|       |                     write_pair_content<Opts>(key, entry_val, ctx, b, ix);
 1674|       |                     if (bool(ctx.error)) [[unlikely]] {
 1675|       |                        return;
 1676|       |                     }
 1677|       |
 1678|       |                     first = false;
 1679|       |                  }
 1680|       |               }
 1681|      0|               else {
 1682|      0|                  auto write_first_entry = [&](auto&& it) {
 1683|      0|                     auto&& [key, entry_val] = *it;
 1684|      0|                     write_pair_content<Opts>(key, entry_val, ctx, b, ix);
 1685|      0|                  };
 1686|       |
 1687|      0|                  auto it = std::begin(value);
 1688|      0|                  write_first_entry(it);
 1689|      0|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1689:23): [True: 0, False: 0]
  ------------------
 1690|      0|                     return;
 1691|      0|                  }
 1692|      0|                  ++it;
 1693|      0|                  for (const auto end = std::end(value); it != end; ++it) {
  ------------------
  |  Branch (1693:58): [True: 0, False: 0]
  ------------------
 1694|      0|                     auto&& [key, entry_val] = *it;
 1695|      0|                     write_object_entry_separator<Opts>(ctx, b, ix);
 1696|      0|                     write_pair_content<Opts>(key, entry_val, ctx, b, ix);
 1697|      0|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1697:26): [True: 0, False: 0]
  ------------------
 1698|      0|                        return;
 1699|      0|                     }
 1700|      0|                  }
 1701|      0|               }
 1702|      0|            }
 1703|       |
 1704|      0|            if constexpr (!check_closing_handled(Opts)) {
 1705|       |               if constexpr (Opts.prettify) {
 1706|       |                  ctx.depth -= check_indentation_width(Opts);
 1707|       |                  if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 1708|       |                     return;
 1709|       |                  }
 1710|       |                  std::memcpy(&b[ix], "\n", 1);
 1711|       |                  ++ix;
 1712|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1713|       |                  ix += ctx.depth;
 1714|       |               }
 1715|      0|            }
 1716|      0|         }
 1717|       |
 1718|    134|         if constexpr (!check_closing_handled(Opts)) {
 1719|    134|            dump('}', b, ix);
 1720|    134|         }
 1721|    134|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm6EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|     70|                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|     70|                        else {
 2572|     70|                           const auto is_null = [&]() {
 2573|     70|                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|     70|                                 if constexpr (reflectable<T>) {
 2575|     70|                                    return get<I>(t);
 2576|     70|                                 }
 2577|     70|                                 else {
 2578|     70|                                    return get<I>(reflect<T>::values);
 2579|     70|                                 }
 2580|     70|                              };
 2581|       |
 2582|     70|                              if constexpr (nullable_wrapper<val_t>) {
 2583|     70|                                 return !bool(element()(value).val);
 2584|     70|                              }
 2585|     70|                              else if constexpr (nullable_value_t<val_t>) {
 2586|     70|                                 return !get_member(value, element()).has_value();
 2587|     70|                              }
 2588|     70|                              else {
 2589|     70|                                 return !bool(get_member(value, element()));
 2590|     70|                              }
 2591|     70|                           }();
 2592|     70|                           if (is_null) return;
  ------------------
  |  Branch (2592:32): [True: 70, False: 0]
  ------------------
 2593|     70|                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|       |                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|       |                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|       |                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 0, False: 70]
  ------------------
 2627|      0|                        first = false;
 2628|      0|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [True: 0, Folded]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm6EEEDavENKUlvE_clEv:
 2572|     70|                           const auto is_null = [&]() {
 2573|     70|                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|     70|                                 if constexpr (reflectable<T>) {
 2575|     70|                                    return get<I>(t);
 2576|     70|                                 }
 2577|     70|                                 else {
 2578|     70|                                    return get<I>(reflect<T>::values);
 2579|     70|                                 }
 2580|     70|                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|     70|                              else if constexpr (nullable_value_t<val_t>) {
 2586|     70|                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|     70|                           }();
_ZZZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm6EEEDavENKUlvE_clEvENKUlvE_clEv:
 2573|     70|                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|     70|                                 if constexpr (reflectable<T>) {
 2575|     70|                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|     70|                              };
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm7EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 0, False: 70]
  ------------------
 2627|      0|                        first = false;
 2628|      0|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [Folded, False: 70]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZN3glz2toILj10ENSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS8_RSB_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1955|    127|      {
 1956|       |         // Adjacent tagging needs no per-alternative dispatch: the discriminator and the value are
 1957|       |         // written side by side whatever the alternative is. The visit below still instantiates in
 1958|       |         // that mode (`if constexpr` does not discard the statements after it), but both of its
 1959|       |         // tagged branches are compile-time dead there and the runtime `return` keeps it unreached.
 1960|       |         if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::adjacent) {
 1961|       |            write_adjacent<Opts>(value, ctx, b, ix);
 1962|       |            return;
 1963|       |         }
 1964|    127|         std::visit(
 1965|    127|            [&](auto&& val) {
 1966|    127|               using V = std::decay_t<decltype(val)>;
 1967|       |
 1968|    127|               if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 1969|    127|                             custom_write<V>) {
 1970|       |                  // Custom alternative: the user's serializer emits the object body, into which we
 1971|       |                  // merge the variant tag. For this to produce valid JSON the custom to<> must (1)
 1972|       |                  // write an object body and (2) honor opening_and_closing_handled (suppress its own
 1973|       |                  // braces) so the tag shares the alternative's object. A custom writer that emits a
 1974|       |                  // scalar/array, or that ignores those flags, would yield malformed output.
 1975|       |                  //
 1976|       |                  // The tag-emission below mirrors the reflected-object branch that follows; keep the
 1977|       |                  // two in sync. The body size is not known at compile time, so we always write the
 1978|       |                  // tag separator and then drop it at runtime if the body turned out empty.
 1979|    127|                  if (missing_id(value, ctx)) {
 1980|    127|                     return;
 1981|    127|                  }
 1982|    127|                  using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 1983|    127|                  if constexpr (Opts.prettify) {
 1984|    127|                     dump("{\n", b, ix);
 1985|    127|                     ctx.depth += check_indentation_width(Opts);
 1986|    127|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 1987|    127|                     dump('"', b, ix);
 1988|    127|                     dump_maybe_empty(tag_v<T>, b, ix);
 1989|    127|                     if constexpr (std::integral<id_type>) {
 1990|    127|                        dump("\": ", b, ix);
 1991|    127|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 1992|    127|                     }
 1993|    127|                     else {
 1994|    127|                        dump("\": \"", b, ix);
 1995|    127|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 1996|    127|                        dump('"', b, ix);
 1997|    127|                     }
 1998|    127|                     const auto pos_after_tag = ix;
 1999|    127|                     dump(",\n", b, ix);
 2000|    127|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2001|    127|                     const auto pos_body_start = ix;
 2002|    127|                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2003|    127|                     if (ix == pos_body_start) {
 2004|    127|                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2005|    127|                     }
 2006|    127|                     ctx.depth -= check_indentation_width(Opts);
 2007|    127|                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2008|    127|                        return;
 2009|    127|                     }
 2010|    127|                     std::memcpy(&b[ix], "\n", 1);
 2011|    127|                     ++ix;
 2012|    127|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2013|    127|                     ix += ctx.depth;
 2014|    127|                     std::memcpy(&b[ix], "}", 1);
 2015|    127|                     ++ix;
 2016|    127|                  }
 2017|    127|                  else {
 2018|    127|                     dump("{\"", b, ix);
 2019|    127|                     dump_maybe_empty(tag_v<T>, b, ix);
 2020|    127|                     if constexpr (std::integral<id_type>) {
 2021|    127|                        dump("\":", b, ix);
 2022|    127|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2023|    127|                     }
 2024|    127|                     else {
 2025|    127|                        dump("\":\"", b, ix);
 2026|    127|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2027|    127|                        dump('"', b, ix);
 2028|    127|                     }
 2029|    127|                     const auto pos_after_tag = ix;
 2030|    127|                     dump(',', b, ix);
 2031|    127|                     const auto pos_body_start = ix;
 2032|    127|                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2033|    127|                     if (ix == pos_body_start) {
 2034|    127|                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2035|    127|                     }
 2036|    127|                     dump('}', b, ix);
 2037|    127|                  }
 2038|    127|               }
 2039|    127|               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2040|    127|                                  variant_unit_alternative<V>) {
 2041|       |                  // A unit alternative carries no data, so internal tagging renders it as the
 2042|       |                  // discriminator alone -- the same object an empty struct alternative produces.
 2043|    127|                  if (missing_id(value, ctx)) {
 2044|    127|                     return;
 2045|    127|                  }
 2046|    127|                  if constexpr (Opts.prettify) {
 2047|    127|                     dump("{\n", b, ix);
 2048|    127|                     ctx.depth += check_indentation_width(Opts);
 2049|    127|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2050|    127|                     dump('"', b, ix);
 2051|    127|                     dump_maybe_empty(tag_v<T>, b, ix);
 2052|    127|                     dump("\": ", b, ix);
 2053|    127|                     write_id<Opts>(value, ctx, b, ix);
 2054|    127|                     ctx.depth -= check_indentation_width(Opts);
 2055|    127|                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2056|    127|                        return;
 2057|    127|                     }
 2058|    127|                     std::memcpy(&b[ix], "\n", 1);
 2059|    127|                     ++ix;
 2060|    127|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2061|    127|                     ix += ctx.depth;
 2062|    127|                     std::memcpy(&b[ix], "}", 1);
 2063|    127|                     ++ix;
 2064|    127|                  }
 2065|    127|                  else {
 2066|    127|                     dump("{\"", b, ix);
 2067|    127|                     dump_maybe_empty(tag_v<T>, b, ix);
 2068|    127|                     dump("\":", b, ix);
 2069|    127|                     write_id<Opts>(value, ctx, b, ix);
 2070|    127|                     dump('}', b, ix);
 2071|    127|                  }
 2072|    127|               }
 2073|    127|               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2074|    127|                                  (glaze_object_t<V> || reflectable<V> || is_memory_object<V>) &&
 2075|    127|                                  (not alternative_declares_key<V>(tag_v<T>))) {
 2076|       |                  // An alternative that declares a member named like the discriminator carries the
 2077|       |                  // discriminator itself, so no tag is merged here and the bare-write branch below
 2078|       |                  // handles it. Previously only `reflectable` alternatives were excluded; a
 2079|       |                  // `glaze_object_t` one fell through to this branch and emitted the key twice.
 2080|    127|                  if (missing_id(value, ctx)) {
 2081|    127|                     return;
 2082|    127|                  }
 2083|    127|                  constexpr auto N = []() {
 2084|    127|                     if constexpr (is_memory_object<V>) {
 2085|    127|                        return reflect<memory_type<V>>::size;
 2086|    127|                     }
 2087|    127|                     else {
 2088|    127|                        return reflect<V>::size;
 2089|    127|                     }
 2090|    127|                  }();
 2091|       |
 2092|       |                  // must first write out type
 2093|    127|                  if constexpr (Opts.prettify) {
 2094|    127|                     dump("{\n", b, ix);
 2095|    127|                     ctx.depth += check_indentation_width(Opts);
 2096|    127|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2097|    127|                     dump('"', b, ix);
 2098|    127|                     dump_maybe_empty(tag_v<T>, b, ix);
 2099|       |
 2100|    127|                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2101|       |
 2102|    127|                     if constexpr (std::integral<id_type>) {
 2103|    127|                        dump("\": ", b, ix);
 2104|    127|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2105|    127|                        if constexpr (N > 0) {
 2106|    127|                           dump(",\n", b, ix);
 2107|    127|                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2108|    127|                        }
 2109|    127|                     }
 2110|    127|                     else {
 2111|    127|                        dump("\": \"", b, ix);
 2112|    127|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2113|    127|                        if constexpr (N == 0) {
 2114|    127|                           dump('"', b, ix);
 2115|    127|                        }
 2116|    127|                        else {
 2117|    127|                           dump("\",\n", b, ix);
 2118|    127|                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2119|    127|                        }
 2120|    127|                     }
 2121|    127|                  }
 2122|    127|                  else {
 2123|    127|                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2124|       |
 2125|    127|                     dump("{\"", b, ix);
 2126|    127|                     dump_maybe_empty(tag_v<T>, b, ix);
 2127|       |
 2128|    127|                     if constexpr (std::integral<id_type>) {
 2129|    127|                        dump("\":", b, ix);
 2130|    127|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2131|    127|                        if constexpr (N > 0) {
 2132|    127|                           dump(',', b, ix);
 2133|    127|                        }
 2134|    127|                     }
 2135|    127|                     else {
 2136|    127|                        dump("\":\"", b, ix);
 2137|    127|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2138|    127|                        if constexpr (N == 0) {
 2139|    127|                           dump('"', b, ix);
 2140|    127|                        }
 2141|    127|                        else {
 2142|    127|                           dump("\",", b, ix);
 2143|    127|                        }
 2144|    127|                     }
 2145|    127|                  }
 2146|    127|                  if constexpr (is_memory_object<V>) {
 2147|    127|                     if (!val) [[unlikely]] {
 2148|    127|                        ctx.error = error_code::invalid_variant_object;
 2149|    127|                        return;
 2150|    127|                     }
 2151|    127|                     to<JSON, memory_type<V>>::template op<opening_and_closing_handled<Opts>()>(*val, ctx, b, ix);
 2152|    127|                  }
 2153|    127|                  else {
 2154|    127|                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2155|    127|                  }
 2156|       |                  // If we skip everything then we may have an extra comma, which we want to revert
 2157|    127|                  if constexpr (Opts.skip_null_members) {
 2158|    127|                     if (b[ix - 1] == ',') {
 2159|    127|                        --ix;
 2160|    127|                     }
 2161|    127|                  }
 2162|       |
 2163|    127|                  if constexpr (Opts.prettify) {
 2164|    127|                     ctx.depth -= check_indentation_width(Opts);
 2165|    127|                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2166|    127|                        return;
 2167|    127|                     }
 2168|    127|                     std::memcpy(&b[ix], "\n", 1);
 2169|    127|                     ++ix;
 2170|    127|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2171|    127|                     ix += ctx.depth;
 2172|    127|                     std::memcpy(&b[ix], "}", 1);
 2173|    127|                     ++ix;
 2174|    127|                  }
 2175|    127|                  else {
 2176|    127|                     dump('}', b, ix);
 2177|    127|                  }
 2178|    127|               }
 2179|    127|               else {
 2180|    127|                  to<JSON, V>::template op<Opts>(val, ctx, b, ix);
 2181|    127|               }
 2182|    127|            },
 2183|    127|            value);
 2184|    127|      }
_ZZN3glz2toILj10ENSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS8_RSB_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlOT_E_clISF_EEDaSS_:
 1965|    127|            [&](auto&& val) {
 1966|    127|               using V = std::decay_t<decltype(val)>;
 1967|       |
 1968|       |               if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 1969|       |                             custom_write<V>) {
 1970|       |                  // Custom alternative: the user's serializer emits the object body, into which we
 1971|       |                  // merge the variant tag. For this to produce valid JSON the custom to<> must (1)
 1972|       |                  // write an object body and (2) honor opening_and_closing_handled (suppress its own
 1973|       |                  // braces) so the tag shares the alternative's object. A custom writer that emits a
 1974|       |                  // scalar/array, or that ignores those flags, would yield malformed output.
 1975|       |                  //
 1976|       |                  // The tag-emission below mirrors the reflected-object branch that follows; keep the
 1977|       |                  // two in sync. The body size is not known at compile time, so we always write the
 1978|       |                  // tag separator and then drop it at runtime if the body turned out empty.
 1979|       |                  if (missing_id(value, ctx)) {
 1980|       |                     return;
 1981|       |                  }
 1982|       |                  using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 1983|       |                  if constexpr (Opts.prettify) {
 1984|       |                     dump("{\n", b, ix);
 1985|       |                     ctx.depth += check_indentation_width(Opts);
 1986|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 1987|       |                     dump('"', b, ix);
 1988|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 1989|       |                     if constexpr (std::integral<id_type>) {
 1990|       |                        dump("\": ", b, ix);
 1991|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 1992|       |                     }
 1993|       |                     else {
 1994|       |                        dump("\": \"", b, ix);
 1995|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 1996|       |                        dump('"', b, ix);
 1997|       |                     }
 1998|       |                     const auto pos_after_tag = ix;
 1999|       |                     dump(",\n", b, ix);
 2000|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2001|       |                     const auto pos_body_start = ix;
 2002|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2003|       |                     if (ix == pos_body_start) {
 2004|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2005|       |                     }
 2006|       |                     ctx.depth -= check_indentation_width(Opts);
 2007|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2008|       |                        return;
 2009|       |                     }
 2010|       |                     std::memcpy(&b[ix], "\n", 1);
 2011|       |                     ++ix;
 2012|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2013|       |                     ix += ctx.depth;
 2014|       |                     std::memcpy(&b[ix], "}", 1);
 2015|       |                     ++ix;
 2016|       |                  }
 2017|       |                  else {
 2018|       |                     dump("{\"", b, ix);
 2019|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2020|       |                     if constexpr (std::integral<id_type>) {
 2021|       |                        dump("\":", b, ix);
 2022|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2023|       |                     }
 2024|       |                     else {
 2025|       |                        dump("\":\"", b, ix);
 2026|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2027|       |                        dump('"', b, ix);
 2028|       |                     }
 2029|       |                     const auto pos_after_tag = ix;
 2030|       |                     dump(',', b, ix);
 2031|       |                     const auto pos_body_start = ix;
 2032|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2033|       |                     if (ix == pos_body_start) {
 2034|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2035|       |                     }
 2036|       |                     dump('}', b, ix);
 2037|       |                  }
 2038|       |               }
 2039|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2040|       |                                  variant_unit_alternative<V>) {
 2041|       |                  // A unit alternative carries no data, so internal tagging renders it as the
 2042|       |                  // discriminator alone -- the same object an empty struct alternative produces.
 2043|       |                  if (missing_id(value, ctx)) {
 2044|       |                     return;
 2045|       |                  }
 2046|       |                  if constexpr (Opts.prettify) {
 2047|       |                     dump("{\n", b, ix);
 2048|       |                     ctx.depth += check_indentation_width(Opts);
 2049|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2050|       |                     dump('"', b, ix);
 2051|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2052|       |                     dump("\": ", b, ix);
 2053|       |                     write_id<Opts>(value, ctx, b, ix);
 2054|       |                     ctx.depth -= check_indentation_width(Opts);
 2055|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2056|       |                        return;
 2057|       |                     }
 2058|       |                     std::memcpy(&b[ix], "\n", 1);
 2059|       |                     ++ix;
 2060|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2061|       |                     ix += ctx.depth;
 2062|       |                     std::memcpy(&b[ix], "}", 1);
 2063|       |                     ++ix;
 2064|       |                  }
 2065|       |                  else {
 2066|       |                     dump("{\"", b, ix);
 2067|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2068|       |                     dump("\":", b, ix);
 2069|       |                     write_id<Opts>(value, ctx, b, ix);
 2070|       |                     dump('}', b, ix);
 2071|       |                  }
 2072|       |               }
 2073|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2074|       |                                  (glaze_object_t<V> || reflectable<V> || is_memory_object<V>) &&
 2075|       |                                  (not alternative_declares_key<V>(tag_v<T>))) {
 2076|       |                  // An alternative that declares a member named like the discriminator carries the
 2077|       |                  // discriminator itself, so no tag is merged here and the bare-write branch below
 2078|       |                  // handles it. Previously only `reflectable` alternatives were excluded; a
 2079|       |                  // `glaze_object_t` one fell through to this branch and emitted the key twice.
 2080|       |                  if (missing_id(value, ctx)) {
 2081|       |                     return;
 2082|       |                  }
 2083|       |                  constexpr auto N = []() {
 2084|       |                     if constexpr (is_memory_object<V>) {
 2085|       |                        return reflect<memory_type<V>>::size;
 2086|       |                     }
 2087|       |                     else {
 2088|       |                        return reflect<V>::size;
 2089|       |                     }
 2090|       |                  }();
 2091|       |
 2092|       |                  // must first write out type
 2093|       |                  if constexpr (Opts.prettify) {
 2094|       |                     dump("{\n", b, ix);
 2095|       |                     ctx.depth += check_indentation_width(Opts);
 2096|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2097|       |                     dump('"', b, ix);
 2098|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2099|       |
 2100|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2101|       |
 2102|       |                     if constexpr (std::integral<id_type>) {
 2103|       |                        dump("\": ", b, ix);
 2104|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2105|       |                        if constexpr (N > 0) {
 2106|       |                           dump(",\n", b, ix);
 2107|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2108|       |                        }
 2109|       |                     }
 2110|       |                     else {
 2111|       |                        dump("\": \"", b, ix);
 2112|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2113|       |                        if constexpr (N == 0) {
 2114|       |                           dump('"', b, ix);
 2115|       |                        }
 2116|       |                        else {
 2117|       |                           dump("\",\n", b, ix);
 2118|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2119|       |                        }
 2120|       |                     }
 2121|       |                  }
 2122|       |                  else {
 2123|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2124|       |
 2125|       |                     dump("{\"", b, ix);
 2126|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2127|       |
 2128|       |                     if constexpr (std::integral<id_type>) {
 2129|       |                        dump("\":", b, ix);
 2130|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2131|       |                        if constexpr (N > 0) {
 2132|       |                           dump(',', b, ix);
 2133|       |                        }
 2134|       |                     }
 2135|       |                     else {
 2136|       |                        dump("\":\"", b, ix);
 2137|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2138|       |                        if constexpr (N == 0) {
 2139|       |                           dump('"', b, ix);
 2140|       |                        }
 2141|       |                        else {
 2142|       |                           dump("\",", b, ix);
 2143|       |                        }
 2144|       |                     }
 2145|       |                  }
 2146|       |                  if constexpr (is_memory_object<V>) {
 2147|       |                     if (!val) [[unlikely]] {
 2148|       |                        ctx.error = error_code::invalid_variant_object;
 2149|       |                        return;
 2150|       |                     }
 2151|       |                     to<JSON, memory_type<V>>::template op<opening_and_closing_handled<Opts>()>(*val, ctx, b, ix);
 2152|       |                  }
 2153|       |                  else {
 2154|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2155|       |                  }
 2156|       |                  // If we skip everything then we may have an extra comma, which we want to revert
 2157|       |                  if constexpr (Opts.skip_null_members) {
 2158|       |                     if (b[ix - 1] == ',') {
 2159|       |                        --ix;
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (Opts.prettify) {
 2164|       |                     ctx.depth -= check_indentation_width(Opts);
 2165|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2166|       |                        return;
 2167|       |                     }
 2168|       |                     std::memcpy(&b[ix], "\n", 1);
 2169|       |                     ++ix;
 2170|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2171|       |                     ix += ctx.depth;
 2172|       |                     std::memcpy(&b[ix], "}", 1);
 2173|       |                     ++ix;
 2174|       |                  }
 2175|       |                  else {
 2176|       |                     dump('}', b, ix);
 2177|       |                  }
 2178|       |               }
 2179|    127|               else {
 2180|    127|                  to<JSON, V>::template op<Opts>(val, ctx, b, ix);
 2181|    127|               }
 2182|    127|            },
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm8EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 0, False: 70]
  ------------------
 2627|      0|                        first = false;
 2628|      0|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [Folded, False: 70]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZN3glz2toILj10ENSt3__18functionIFiiEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS4_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1275|     70|      {
 1276|     70|         static constexpr auto name = name_v<std::decay_t<decltype(value)>>;
 1277|     70|         constexpr auto n = name.size();
 1278|       |
 1279|     70|         if (!ensure_space(ctx, b, ix + 8 + n)) [[unlikely]] {
  ------------------
  |  Branch (1279:14): [True: 0, False: 70]
  ------------------
 1280|      0|            return;
 1281|      0|         }
 1282|       |
 1283|     70|         std::memcpy(&b[ix], "\"", 1);
 1284|     70|         ++ix;
 1285|     70|         if constexpr (not name.empty()) {
 1286|     70|            std::memcpy(&b[ix], name.data(), n);
 1287|     70|            ix += n;
 1288|     70|         }
 1289|     70|         std::memcpy(&b[ix], "\"", 1);
 1290|     70|         ++ix;
 1291|     70|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm9EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 0, False: 70]
  ------------------
 2627|      0|                        first = false;
 2628|      0|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [Folded, False: 70]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZN3glz2toILj10ENSt3__18functionIFNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKS8_EEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS8_RSC_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1275|     70|      {
 1276|     70|         static constexpr auto name = name_v<std::decay_t<decltype(value)>>;
 1277|     70|         constexpr auto n = name.size();
 1278|       |
 1279|     70|         if (!ensure_space(ctx, b, ix + 8 + n)) [[unlikely]] {
  ------------------
  |  Branch (1279:14): [True: 0, False: 70]
  ------------------
 1280|      0|            return;
 1281|      0|         }
 1282|       |
 1283|     70|         std::memcpy(&b[ix], "\"", 1);
 1284|     70|         ++ix;
 1285|     70|         if constexpr (not name.empty()) {
 1286|     70|            std::memcpy(&b[ix], name.data(), n);
 1287|     70|            ix += n;
 1288|     70|         }
 1289|     70|         std::memcpy(&b[ix], "\"", 1);
 1290|     70|         ++ix;
 1291|     70|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm10EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 0, False: 70]
  ------------------
 2627|      0|                        first = false;
 2628|      0|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [Folded, False: 70]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZN3glz2toILj10ENSt3__18functionIFN12jsonrpc_fuzz5pointERKS4_EEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS8_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1275|     70|      {
 1276|     70|         static constexpr auto name = name_v<std::decay_t<decltype(value)>>;
 1277|     70|         constexpr auto n = name.size();
 1278|       |
 1279|     70|         if (!ensure_space(ctx, b, ix + 8 + n)) [[unlikely]] {
  ------------------
  |  Branch (1279:14): [True: 0, False: 70]
  ------------------
 1280|      0|            return;
 1281|      0|         }
 1282|       |
 1283|     70|         std::memcpy(&b[ix], "\"", 1);
 1284|     70|         ++ix;
 1285|     70|         if constexpr (not name.empty()) {
 1286|     70|            std::memcpy(&b[ix], name.data(), n);
 1287|     70|            ix += n;
 1288|     70|         }
 1289|     70|         std::memcpy(&b[ix], "\"", 1);
 1290|     70|         ++ix;
 1291|     70|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm11EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 0, False: 70]
  ------------------
 2627|      0|                        first = false;
 2628|      0|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [Folded, False: 70]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZN3glz2toILj10ENSt3__18functionIFdRNS1_6vectorIdNS1_9allocatorIdEEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS1_12basic_stringIcNS1_11char_traitsIcEENS4_IcEEEERS9_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1275|     70|      {
 1276|     70|         static constexpr auto name = name_v<std::decay_t<decltype(value)>>;
 1277|     70|         constexpr auto n = name.size();
 1278|       |
 1279|     70|         if (!ensure_space(ctx, b, ix + 8 + n)) [[unlikely]] {
  ------------------
  |  Branch (1279:14): [True: 0, False: 70]
  ------------------
 1280|      0|            return;
 1281|      0|         }
 1282|       |
 1283|     70|         std::memcpy(&b[ix], "\"", 1);
 1284|     70|         ++ix;
 1285|     70|         if constexpr (not name.empty()) {
 1286|     70|            std::memcpy(&b[ix], name.data(), n);
 1287|     70|            ix += n;
 1288|     70|         }
 1289|     70|         std::memcpy(&b[ix], "\"", 1);
 1290|     70|         ++ix;
 1291|     70|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm12EEEDav:
 2545|     70|               for_each<N>([&]<size_t I>() {
 2546|     70|                  using val_t = field_t<T, I>;
 2547|       |
 2548|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2549|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2550|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2551|       |                     return;
 2552|       |                  }
 2553|     70|                  else {
 2554|       |                     if constexpr (meta_has_skip_if<T>) {
 2555|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2556|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2557|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2558|       |                           if constexpr (reflectable<T>) {
 2559|       |                              return get<I>(t);
 2560|       |                           }
 2561|       |                           else {
 2562|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2563|       |                           }
 2564|       |                        }();
 2565|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2566|       |                     }
 2567|       |
 2568|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2569|       |                        if constexpr (always_null_t<val_t>)
 2570|       |                           return;
 2571|       |                        else {
 2572|       |                           const auto is_null = [&]() {
 2573|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2574|       |                                 if constexpr (reflectable<T>) {
 2575|       |                                    return get<I>(t);
 2576|       |                                 }
 2577|       |                                 else {
 2578|       |                                    return get<I>(reflect<T>::values);
 2579|       |                                 }
 2580|       |                              };
 2581|       |
 2582|       |                              if constexpr (nullable_wrapper<val_t>) {
 2583|       |                                 return !bool(element()(value).val);
 2584|       |                              }
 2585|       |                              else if constexpr (nullable_value_t<val_t>) {
 2586|       |                                 return !get_member(value, element()).has_value();
 2587|       |                              }
 2588|       |                              else {
 2589|       |                                 return !bool(get_member(value, element()));
 2590|       |                              }
 2591|       |                           }();
 2592|       |                           if (is_null) return;
 2593|       |                        }
 2594|       |                     }
 2595|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2596|       |                                        custom_getter_returns_nullable<val_t>()) {
 2597|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2598|       |                     }
 2599|     70|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2600|     70|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2601|     70|                     }
 2602|       |
 2603|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2604|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2605|       |                           if constexpr (reflectable<T>) {
 2606|       |                              return get_member(value, get<I>(t));
 2607|       |                           }
 2608|       |                           else {
 2609|       |                              return get_member(value, get<I>(reflect<T>::values));
 2610|       |                           }
 2611|       |                        }();
 2612|       |                        if (is_default_value(member)) return;
 2613|       |                     }
 2614|       |
 2615|       |                     if constexpr (Opts.prettify) {
 2616|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2617|       |                           return;
 2618|       |                        }
 2619|       |                     }
 2620|     70|                     else {
 2621|     70|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2621:29): [True: 0, False: 70]
  ------------------
 2622|      0|                           return;
 2623|      0|                        }
 2624|     70|                     }
 2625|       |
 2626|     70|                     if (first) {
  ------------------
  |  Branch (2626:26): [True: 0, False: 70]
  ------------------
 2627|      0|                        first = false;
 2628|      0|                     }
 2629|     70|                     else {
 2630|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2631|       |                        if constexpr (Opts.prettify) {
 2632|       |                           std::memcpy(&b[ix], ",\n", 2);
 2633|       |                           ix += 2;
 2634|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2635|       |                           ix += ctx.depth;
 2636|       |                        }
 2637|     70|                        else {
 2638|     70|                           std::memcpy(&b[ix], ",", 1);
 2639|     70|                           ++ix;
 2640|     70|                        }
 2641|       |                        if constexpr (is_output_streaming<B>) {
 2642|       |                           flush_buffer(b, ix);
 2643|       |                        }
 2644|     70|                     }
 2645|       |
 2646|       |                     // MSVC requires get<I> rather than keys[I]
 2647|     70|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2648|     70|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2649|     70|                     static constexpr auto n = quoted_key.size();
 2650|     70|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2651|     70|                     ix += n;
 2652|       |
 2653|     70|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2653:57): [Folded, False: 70]
  ------------------
 2654|     70|                     if constexpr (reflectable<T>) {
 2655|     70|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2656|       |                     }
 2657|       |                     else {
 2658|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2659|       |                                                                 ix);
 2660|       |                     }
 2661|     70|                  }
 2662|     70|               });
_ZN3glz2toILj10ENSt3__18functionIFvvEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS4_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1275|     70|      {
 1276|     70|         static constexpr auto name = name_v<std::decay_t<decltype(value)>>;
 1277|     70|         constexpr auto n = name.size();
 1278|       |
 1279|     70|         if (!ensure_space(ctx, b, ix + 8 + n)) [[unlikely]] {
  ------------------
  |  Branch (1279:14): [True: 0, False: 70]
  ------------------
 1280|      0|            return;
 1281|      0|         }
 1282|       |
 1283|     70|         std::memcpy(&b[ix], "\"", 1);
 1284|     70|         ++ix;
 1285|     70|         if constexpr (not name.empty()) {
 1286|     70|            std::memcpy(&b[ix], name.data(), n);
 1287|     70|            ix += n;
 1288|     70|         }
 1289|     70|         std::memcpy(&b[ix], "\"", 1);
 1290|     70|         ++ix;
 1291|     70|      }
_ZN3glz2toILj10EdE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  1.89k|      {
  815|  1.89k|         if constexpr (not check_write_unchecked(Opts)) {
  816|  1.89k|            static_assert(required_padding<T>());
  817|  1.89k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 1.89k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  1.89k|         }
  821|       |
  822|  1.89k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  1.89k|         else {
  832|  1.89k|            write_chars::op<O>(value, ctx, b, ix);
  833|  1.89k|         }
  834|  1.89k|      }
_ZN3glz16required_paddingIdEEmv:
  538|  1.89k|   {
  539|  1.89k|      constexpr auto value = []() -> size_t {
  540|  1.89k|         if constexpr (boolean_like<T>) {
  541|  1.89k|            return 8;
  542|  1.89k|         }
  543|  1.89k|         else if constexpr (num_t<T>) {
  544|  1.89k|            if constexpr (std::floating_point<T>) {
  545|  1.89k|               if constexpr (sizeof(T) > 8) {
  546|  1.89k|                  return 64;
  547|  1.89k|               }
  548|  1.89k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  1.89k|                  return zmij::double_buffer_size + 4;
  551|  1.89k|               }
  552|  1.89k|               else {
  553|  1.89k|                  return zmij::float_buffer_size + 4;
  554|  1.89k|               }
  555|  1.89k|            }
  556|  1.89k|            else if constexpr (sizeof(T) > 4) {
  557|  1.89k|               return 24;
  558|  1.89k|            }
  559|  1.89k|            else if constexpr (sizeof(T) > 2) {
  560|  1.89k|               return 16;
  561|  1.89k|            }
  562|  1.89k|            else {
  563|  1.89k|               return 8;
  564|  1.89k|            }
  565|  1.89k|         }
  566|  1.89k|         else if constexpr (nullable_like<T>) {
  567|  1.89k|            if constexpr (has_value_type<T>) {
  568|  1.89k|               return required_padding<typename T::value_type>();
  569|  1.89k|            }
  570|  1.89k|            else if constexpr (has_element_type<T>) {
  571|  1.89k|               return required_padding<typename T::element_type>();
  572|  1.89k|            }
  573|  1.89k|            else {
  574|  1.89k|               return 0;
  575|  1.89k|            }
  576|  1.89k|         }
  577|  1.89k|         else if constexpr (always_null_t<T>) {
  578|  1.89k|            return 8;
  579|  1.89k|         }
  580|  1.89k|         else {
  581|  1.89k|            return 0;
  582|  1.89k|         }
  583|  1.89k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  1.89k|      return value;
  591|  1.89k|   }
_ZN3glz2toILj10ENSt3__18optionalIdEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEmEEvOT0_OT1_OT2_RT3_:
 1813|     66|      {
 1814|     66|         if (value) {
  ------------------
  |  Branch (1814:14): [True: 0, False: 66]
  ------------------
 1815|      0|            if constexpr (required_padding<T>()) {
 1816|      0|               serialize<JSON>::op<Opts>(*value, ctx, b, ix);
 1817|       |            }
 1818|       |            else {
 1819|       |               serialize<JSON>::op<write_unchecked_off<Opts>()>(*value, ctx, b, ix);
 1820|       |            }
 1821|      0|         }
 1822|     66|         else {
 1823|     66|            dump<not check_write_unchecked(Opts)>("null", b, ix);
 1824|     66|         }
 1825|     66|      }
_ZN3glz10write_jsonITkNS_15write_supportedIL_ZNS_4JSONEEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS2_8expectedIS8_NS_9error_ctxEEEOT_:
 2843|  4.10M|   {
 2844|  4.10M|      return write<opts{}>(std::forward<T>(value));
 2845|  4.10M|   }
_ZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS7_S7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|  4.10M|      {
  846|       |         if constexpr (check_string_as_number(Opts)) {
  847|       |            const sv str = [&]() -> const sv {
  848|       |               if constexpr (array_char_t<T>) {
  849|       |                  const auto* start = value.data();
  850|       |                  const auto* end = static_cast<const char*>(std::memchr(start, '\0', value.size()));
  851|       |                  return sv{start, end ? size_t(end - start) : value.size()};
  852|       |               }
  853|       |               else if constexpr (u8str_t<T>) {
  854|       |                  return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  855|       |               }
  856|       |               else {
  857|       |                  return str_view<T>(value);
  858|       |               }
  859|       |            }();
  860|       |            if (!ensure_space(ctx, b, ix + str.size() + write_padding_bytes)) [[unlikely]] {
  861|       |               return;
  862|       |            }
  863|       |            dump_maybe_empty<false>(str, b, ix);
  864|       |         }
  865|       |         else if constexpr (char_t<T>) {
  866|       |            if constexpr (check_unquoted(Opts)) {
  867|       |               dump(value, b, ix);
  868|       |            }
  869|       |            else {
  870|       |               // 8 bytes is enough for quotes and escaped character (worst case: \uXXXX = 6 + 2 quotes)
  871|       |               if (!ensure_space(ctx, b, ix + 8)) [[unlikely]] {
  872|       |                  return;
  873|       |               }
  874|       |
  875|       |               std::memcpy(&b[ix], "\"", 1);
  876|       |               ++ix;
  877|       |               if (const auto escaped = char_escape_table[uint8_t(value)]; escaped) {
  878|       |                  std::memcpy(&b[ix], &escaped, 2);
  879|       |                  ix += 2;
  880|       |               }
  881|       |               else if (value == '\0') {
  882|       |                  // null character treated as empty string
  883|       |               }
  884|       |               else if constexpr (check_escape_control_characters(Opts)) {
  885|       |                  if (uint8_t(value) < 0x20) {
  886|       |                     // Write as \uXXXX format
  887|       |                     char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
  888|       |                     constexpr char hex_digits[] = "0123456789ABCDEF";
  889|       |                     unicode_escape[4] = hex_digits[(value >> 4) & 0xF];
  890|       |                     unicode_escape[5] = hex_digits[value & 0xF];
  891|       |                     std::memcpy(&b[ix], unicode_escape, 6);
  892|       |                     ix += 6;
  893|       |                  }
  894|       |                  else {
  895|       |                     std::memcpy(&b[ix], &value, 1);
  896|       |                     ++ix;
  897|       |                  }
  898|       |               }
  899|       |               else {
  900|       |                  if constexpr (check_reject_control_characters(Opts)) {
  901|       |                     if (uint8_t(value) < 0x20) [[unlikely]] {
  902|       |                        ctx.error = error_code::invalid_control_character;
  903|       |                     }
  904|       |                  }
  905|       |                  std::memcpy(&b[ix], &value, 1);
  906|       |                  ++ix;
  907|       |               }
  908|       |               std::memcpy(&b[ix], "\"", 1);
  909|       |               ++ix;
  910|       |            }
  911|       |         }
  912|  4.10M|         else {
  913|       |            if constexpr (check_raw_string(Opts)) {
  914|       |               const sv str = [&]() -> const sv {
  915|       |                  if constexpr (u8str_t<T>) {
  916|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  917|       |                  }
  918|       |                  else {
  919|       |                     return str_view<T>(value);
  920|       |                  }
  921|       |               }();
  922|       |
  923|       |               // We need space for quotes and the string length: 2 + n.
  924|       |               // Use +8 for extra buffer
  925|       |               if (!ensure_space(ctx, b, ix + 8 + str.size())) [[unlikely]] {
  926|       |                  return;
  927|       |               }
  928|       |               // now we don't have to check writing
  929|       |
  930|       |               if constexpr (not check_unquoted(Opts)) {
  931|       |                  std::memcpy(&b[ix], "\"", 1);
  932|       |                  ++ix;
  933|       |               }
  934|       |               if (str.size()) [[likely]] {
  935|       |                  const auto n = str.size();
  936|       |                  std::memcpy(&b[ix], str.data(), n);
  937|       |                  ix += n;
  938|       |               }
  939|       |               if constexpr (not check_unquoted(Opts)) {
  940|       |                  std::memcpy(&b[ix], "\"", 1);
  941|       |                  ++ix;
  942|       |               }
  943|       |            }
  944|  4.10M|            else {
  945|  4.10M|               const sv str = [&]() -> const sv {
  946|  4.10M|                  if constexpr (array_char_t<T>) {
  947|  4.10M|                     return sv{value.data(), value.size()};
  948|  4.10M|                  }
  949|  4.10M|                  else if constexpr (u8str_t<T>) {
  950|  4.10M|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|  4.10M|                  }
  952|  4.10M|                  else {
  953|  4.10M|                     return str_view<T>(value);
  954|  4.10M|                  }
  955|  4.10M|               }();
  956|  4.10M|               const auto n = str.size();
  957|       |
  958|       |               // In the case n == 0 we need two characters for quotes.
  959|       |               // For each individual character we need room for two characters to handle escapes.
  960|       |               // When using Unicode escapes, we might need up to 6 characters (\uXXXX) per character
  961|       |               if constexpr (check_escape_control_characters(Opts)) {
  962|       |                  if constexpr (has_bounded_capacity<B>) {
  963|       |                     // 6 bytes per character is a ceiling only a string of nothing but control
  964|       |                     // characters reaches. A resizable buffer merely over-allocates against it,
  965|       |                     // but a fixed buffer has nowhere to grow, so the ceiling would reject output
  966|       |                     // that fits. Measuring the string answers exactly, at the cost of a pass over
  967|       |                     // it, so bracket the measurement between two O(1) bounds and only pay it when
  968|       |                     // the answer is still in doubt: the ceiling fitting means yes, and the floor
  969|       |                     // of one byte per character not fitting means no.
  970|       |                     const size_t capacity = buffer_traits<std::remove_cvref_t<B>>::capacity(b);
  971|       |                     size_t required = ix + 10 + 6 * n;
  972|       |                     if (required > capacity) [[unlikely]] {
  973|       |                        required = ix + 10 + n;
  974|       |                        if (required <= capacity) {
  975|       |                           required = ix + 10 + detail::escaped_string_size(str);
  976|       |                        }
  977|       |                     }
  978|       |                     if (!ensure_space(ctx, b, required)) [[unlikely]] {
  979|       |                        return;
  980|       |                     }
  981|       |                  }
  982|       |                  // We need 2 + 6 * n characters in the worst case (all control chars)
  983|       |                  else if (!ensure_space(ctx, b, ix + 10 + 6 * n)) [[unlikely]] {
  984|       |                     return;
  985|       |                  }
  986|       |               }
  987|  4.10M|               else {
  988|       |                  // Using the original sizing
  989|  4.10M|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 4.10M]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|  4.10M|               }
  993|       |               // now we don't have to check writing
  994|       |
  995|       |               if constexpr (check_unquoted(Opts)) {
  996|       |                  if (n) {
  997|       |                     std::memcpy(&b[ix], str.data(), n);
  998|       |                     ix += n;
  999|       |                  }
 1000|       |               }
 1001|  4.10M|               else {
 1002|  4.10M|                  std::memcpy(&b[ix], "\"", 1);
 1003|  4.10M|                  ++ix;
 1004|       |
 1005|  4.10M|                  const auto* c = str.data();
 1006|  4.10M|                  const auto* const e = c + n;
 1007|  4.10M|                  const auto start = &b[ix];
 1008|  4.10M|                  auto data = start;
 1009|       |
 1010|       |                  // By default we don't escape control characters for performance. Invalid JSON characters
 1011|       |                  // result in null characters in the output, making the JSON invalid — these would then be
 1012|       |                  // detected upon reading. Enable the `escape_control_characters` option to properly escape
 1013|       |                  // control characters (0x00–0x1F) as \uXXXX sequences.
 1014|       |
 1015|       |                  // Escape handler: writes the escaped form of *c into data, advances both pointers
 1016|  4.10M|                  auto write_escape = [&]() {
 1017|  4.10M|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|  4.10M|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|  4.10M|                           std::memcpy(data, &escaped, 2);
 1020|  4.10M|                           data += 2;
 1021|  4.10M|                        }
 1022|  4.10M|                        else {
 1023|  4.10M|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|  4.10M|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|  4.10M|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|  4.10M|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|  4.10M|                           std::memcpy(data, unicode_escape, 6);
 1028|  4.10M|                           data += 6;
 1029|  4.10M|                        }
 1030|  4.10M|                     }
 1031|  4.10M|                     else {
 1032|  4.10M|                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|  4.10M|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|  4.10M|                              ctx.error = error_code::invalid_control_character;
 1040|  4.10M|                           }
 1041|  4.10M|                        }
 1042|  4.10M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  4.10M|                        data += 2;
 1044|  4.10M|                     }
 1045|  4.10M|                     ++c;
 1046|  4.10M|                  };
 1047|       |
 1048|       |                  // Adding a helper here means adding a branch to string_escape_simd() in
 1049|       |                  // simd/backends.hpp, which names the widest one this cascade invokes, and a row
 1050|       |                  // to known_builds in tests/json_test/utf8_validation_test.cpp, which checks it.
 1051|       |#if defined(GLZ_USE_AVX2)
 1052|       |                  detail::avx2_string_escape(c, e, data, n, write_escape);
 1053|       |#endif
 1054|  4.10M|#if defined(GLZ_USE_SSE2)
 1055|  4.10M|                  detail::sse2_string_escape(c, e, data, n, write_escape);
 1056|       |#elif defined(GLZ_USE_NEON)
 1057|       |                  detail::neon_string_escape(c, e, data, n, write_escape);
 1058|       |#endif
 1059|       |
 1060|       |                  // SWAR: 8 bytes at a time
 1061|  4.10M|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 4.10M, False: 0]
  ------------------
 1062|  4.43M|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 327k, False: 4.10M]
  ------------------
 1063|   327k|                        std::memcpy(data, c, 8);
 1064|   327k|                        uint64_t swar;
 1065|   327k|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|   327k|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|   327k|                        const uint64_t lo7 = swar & lo7_mask;
 1072|   327k|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|   327k|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|   327k|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|   327k|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|   327k|                        next &= repeat_byte8(0b10000000);
 1078|   327k|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 38.7k, False: 289k]
  ------------------
 1079|  38.7k|                           data += 8;
 1080|  38.7k|                           c += 8;
 1081|  38.7k|                           continue;
 1082|  38.7k|                        }
 1083|       |
 1084|   289k|                        const auto length = (countr_zero(next) >> 3);
 1085|   289k|                        c += length;
 1086|   289k|                        data += length;
 1087|   289k|                        write_escape();
 1088|   289k|                     }
 1089|  4.10M|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|  28.4M|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 24.3M, False: 4.10M]
  ------------------
 1093|  24.3M|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 41.8k, False: 24.2M]
  ------------------
 1094|  41.8k|                        std::memcpy(data, &escaped, 2);
 1095|  41.8k|                        data += 2;
 1096|  41.8k|                     }
 1097|       |                     else if constexpr (check_escape_control_characters(Opts)) {
 1098|       |                        if (uint8_t(*c) < 0x20) {
 1099|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1100|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1101|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1102|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1103|       |                           std::memcpy(data, unicode_escape, 6);
 1104|       |                           data += 6;
 1105|       |                        }
 1106|       |                        else {
 1107|       |                           std::memcpy(data, c, 1);
 1108|       |                           ++data;
 1109|       |                        }
 1110|       |                     }
 1111|  24.2M|                     else {
 1112|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1113|       |                           if (uint8_t(*c) < 0x20) [[unlikely]] {
 1114|       |                              ctx.error = error_code::invalid_control_character;
 1115|       |                           }
 1116|       |                        }
 1117|  24.2M|                        std::memcpy(data, c, 1);
 1118|  24.2M|                        ++data;
 1119|  24.2M|                     }
 1120|  24.3M|                  }
 1121|       |
 1122|  4.10M|                  ix += size_t(data - start);
 1123|       |
 1124|  4.10M|                  std::memcpy(&b[ix], "\"", 1);
 1125|  4.10M|                  ++ix;
 1126|  4.10M|               }
 1127|  4.10M|            }
 1128|  4.10M|         }
 1129|  4.10M|      }
_ZZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS7_S7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|  4.10M|               const sv str = [&]() -> const sv {
  946|       |                  if constexpr (array_char_t<T>) {
  947|       |                     return sv{value.data(), value.size()};
  948|       |                  }
  949|       |                  else if constexpr (u8str_t<T>) {
  950|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|       |                  }
  952|  4.10M|                  else {
  953|  4.10M|                     return str_view<T>(value);
  954|  4.10M|                  }
  955|  4.10M|               }();
_ZZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS7_S7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
 1016|  1.09M|                  auto write_escape = [&]() {
 1017|       |                     if constexpr (check_escape_control_characters(Opts)) {
 1018|       |                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|       |                           std::memcpy(data, &escaped, 2);
 1020|       |                           data += 2;
 1021|       |                        }
 1022|       |                        else {
 1023|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|       |                           std::memcpy(data, unicode_escape, 6);
 1028|       |                           data += 6;
 1029|       |                        }
 1030|       |                     }
 1031|  1.09M|                     else {
 1032|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|       |                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|       |                              ctx.error = error_code::invalid_control_character;
 1040|       |                           }
 1041|       |                        }
 1042|  1.09M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  1.09M|                        data += 2;
 1044|  1.09M|                     }
 1045|  1.09M|                     ++c;
 1046|  1.09M|                  };
_ZN3glz10write_jsonITkNS_15write_supportedIL_ZNS_4JSONEEEERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEENS2_8expectedINS2_12basic_stringIcS5_NS2_9allocatorIcEEEENS_9error_ctxEEEOT_:
 2843|     67|   {
 2844|     67|      return write<opts{}>(std::forward<T>(value));
 2845|     67|   }
_ZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|     67|      {
  846|       |         if constexpr (check_string_as_number(Opts)) {
  847|       |            const sv str = [&]() -> const sv {
  848|       |               if constexpr (array_char_t<T>) {
  849|       |                  const auto* start = value.data();
  850|       |                  const auto* end = static_cast<const char*>(std::memchr(start, '\0', value.size()));
  851|       |                  return sv{start, end ? size_t(end - start) : value.size()};
  852|       |               }
  853|       |               else if constexpr (u8str_t<T>) {
  854|       |                  return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  855|       |               }
  856|       |               else {
  857|       |                  return str_view<T>(value);
  858|       |               }
  859|       |            }();
  860|       |            if (!ensure_space(ctx, b, ix + str.size() + write_padding_bytes)) [[unlikely]] {
  861|       |               return;
  862|       |            }
  863|       |            dump_maybe_empty<false>(str, b, ix);
  864|       |         }
  865|       |         else if constexpr (char_t<T>) {
  866|       |            if constexpr (check_unquoted(Opts)) {
  867|       |               dump(value, b, ix);
  868|       |            }
  869|       |            else {
  870|       |               // 8 bytes is enough for quotes and escaped character (worst case: \uXXXX = 6 + 2 quotes)
  871|       |               if (!ensure_space(ctx, b, ix + 8)) [[unlikely]] {
  872|       |                  return;
  873|       |               }
  874|       |
  875|       |               std::memcpy(&b[ix], "\"", 1);
  876|       |               ++ix;
  877|       |               if (const auto escaped = char_escape_table[uint8_t(value)]; escaped) {
  878|       |                  std::memcpy(&b[ix], &escaped, 2);
  879|       |                  ix += 2;
  880|       |               }
  881|       |               else if (value == '\0') {
  882|       |                  // null character treated as empty string
  883|       |               }
  884|       |               else if constexpr (check_escape_control_characters(Opts)) {
  885|       |                  if (uint8_t(value) < 0x20) {
  886|       |                     // Write as \uXXXX format
  887|       |                     char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
  888|       |                     constexpr char hex_digits[] = "0123456789ABCDEF";
  889|       |                     unicode_escape[4] = hex_digits[(value >> 4) & 0xF];
  890|       |                     unicode_escape[5] = hex_digits[value & 0xF];
  891|       |                     std::memcpy(&b[ix], unicode_escape, 6);
  892|       |                     ix += 6;
  893|       |                  }
  894|       |                  else {
  895|       |                     std::memcpy(&b[ix], &value, 1);
  896|       |                     ++ix;
  897|       |                  }
  898|       |               }
  899|       |               else {
  900|       |                  if constexpr (check_reject_control_characters(Opts)) {
  901|       |                     if (uint8_t(value) < 0x20) [[unlikely]] {
  902|       |                        ctx.error = error_code::invalid_control_character;
  903|       |                     }
  904|       |                  }
  905|       |                  std::memcpy(&b[ix], &value, 1);
  906|       |                  ++ix;
  907|       |               }
  908|       |               std::memcpy(&b[ix], "\"", 1);
  909|       |               ++ix;
  910|       |            }
  911|       |         }
  912|     67|         else {
  913|       |            if constexpr (check_raw_string(Opts)) {
  914|       |               const sv str = [&]() -> const sv {
  915|       |                  if constexpr (u8str_t<T>) {
  916|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  917|       |                  }
  918|       |                  else {
  919|       |                     return str_view<T>(value);
  920|       |                  }
  921|       |               }();
  922|       |
  923|       |               // We need space for quotes and the string length: 2 + n.
  924|       |               // Use +8 for extra buffer
  925|       |               if (!ensure_space(ctx, b, ix + 8 + str.size())) [[unlikely]] {
  926|       |                  return;
  927|       |               }
  928|       |               // now we don't have to check writing
  929|       |
  930|       |               if constexpr (not check_unquoted(Opts)) {
  931|       |                  std::memcpy(&b[ix], "\"", 1);
  932|       |                  ++ix;
  933|       |               }
  934|       |               if (str.size()) [[likely]] {
  935|       |                  const auto n = str.size();
  936|       |                  std::memcpy(&b[ix], str.data(), n);
  937|       |                  ix += n;
  938|       |               }
  939|       |               if constexpr (not check_unquoted(Opts)) {
  940|       |                  std::memcpy(&b[ix], "\"", 1);
  941|       |                  ++ix;
  942|       |               }
  943|       |            }
  944|     67|            else {
  945|     67|               const sv str = [&]() -> const sv {
  946|     67|                  if constexpr (array_char_t<T>) {
  947|     67|                     return sv{value.data(), value.size()};
  948|     67|                  }
  949|     67|                  else if constexpr (u8str_t<T>) {
  950|     67|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|     67|                  }
  952|     67|                  else {
  953|     67|                     return str_view<T>(value);
  954|     67|                  }
  955|     67|               }();
  956|     67|               const auto n = str.size();
  957|       |
  958|       |               // In the case n == 0 we need two characters for quotes.
  959|       |               // For each individual character we need room for two characters to handle escapes.
  960|       |               // When using Unicode escapes, we might need up to 6 characters (\uXXXX) per character
  961|       |               if constexpr (check_escape_control_characters(Opts)) {
  962|       |                  if constexpr (has_bounded_capacity<B>) {
  963|       |                     // 6 bytes per character is a ceiling only a string of nothing but control
  964|       |                     // characters reaches. A resizable buffer merely over-allocates against it,
  965|       |                     // but a fixed buffer has nowhere to grow, so the ceiling would reject output
  966|       |                     // that fits. Measuring the string answers exactly, at the cost of a pass over
  967|       |                     // it, so bracket the measurement between two O(1) bounds and only pay it when
  968|       |                     // the answer is still in doubt: the ceiling fitting means yes, and the floor
  969|       |                     // of one byte per character not fitting means no.
  970|       |                     const size_t capacity = buffer_traits<std::remove_cvref_t<B>>::capacity(b);
  971|       |                     size_t required = ix + 10 + 6 * n;
  972|       |                     if (required > capacity) [[unlikely]] {
  973|       |                        required = ix + 10 + n;
  974|       |                        if (required <= capacity) {
  975|       |                           required = ix + 10 + detail::escaped_string_size(str);
  976|       |                        }
  977|       |                     }
  978|       |                     if (!ensure_space(ctx, b, required)) [[unlikely]] {
  979|       |                        return;
  980|       |                     }
  981|       |                  }
  982|       |                  // We need 2 + 6 * n characters in the worst case (all control chars)
  983|       |                  else if (!ensure_space(ctx, b, ix + 10 + 6 * n)) [[unlikely]] {
  984|       |                     return;
  985|       |                  }
  986|       |               }
  987|     67|               else {
  988|       |                  // Using the original sizing
  989|     67|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 67]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|     67|               }
  993|       |               // now we don't have to check writing
  994|       |
  995|       |               if constexpr (check_unquoted(Opts)) {
  996|       |                  if (n) {
  997|       |                     std::memcpy(&b[ix], str.data(), n);
  998|       |                     ix += n;
  999|       |                  }
 1000|       |               }
 1001|     67|               else {
 1002|     67|                  std::memcpy(&b[ix], "\"", 1);
 1003|     67|                  ++ix;
 1004|       |
 1005|     67|                  const auto* c = str.data();
 1006|     67|                  const auto* const e = c + n;
 1007|     67|                  const auto start = &b[ix];
 1008|     67|                  auto data = start;
 1009|       |
 1010|       |                  // By default we don't escape control characters for performance. Invalid JSON characters
 1011|       |                  // result in null characters in the output, making the JSON invalid — these would then be
 1012|       |                  // detected upon reading. Enable the `escape_control_characters` option to properly escape
 1013|       |                  // control characters (0x00–0x1F) as \uXXXX sequences.
 1014|       |
 1015|       |                  // Escape handler: writes the escaped form of *c into data, advances both pointers
 1016|     67|                  auto write_escape = [&]() {
 1017|     67|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|     67|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|     67|                           std::memcpy(data, &escaped, 2);
 1020|     67|                           data += 2;
 1021|     67|                        }
 1022|     67|                        else {
 1023|     67|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|     67|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|     67|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|     67|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|     67|                           std::memcpy(data, unicode_escape, 6);
 1028|     67|                           data += 6;
 1029|     67|                        }
 1030|     67|                     }
 1031|     67|                     else {
 1032|     67|                        if constexpr (check_reject_control_characters(Opts)) {
 1033|       |                           // A control character with no two-character escape cannot be written
 1034|       |                           // without \uXXXX. The table entry is zero, so the memcpy below would
 1035|       |                           // put two NULs where one byte was. Flag it and let the loop finish:
 1036|       |                           // returning early here would leave c un-advanced and the SIMD scan
 1037|       |                           // would find the same byte forever. The output is abandoned anyway.
 1038|     67|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|     67|                              ctx.error = error_code::invalid_control_character;
 1040|     67|                           }
 1041|     67|                        }
 1042|     67|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|     67|                        data += 2;
 1044|     67|                     }
 1045|     67|                     ++c;
 1046|     67|                  };
 1047|       |
 1048|       |                  // Adding a helper here means adding a branch to string_escape_simd() in
 1049|       |                  // simd/backends.hpp, which names the widest one this cascade invokes, and a row
 1050|       |                  // to known_builds in tests/json_test/utf8_validation_test.cpp, which checks it.
 1051|       |#if defined(GLZ_USE_AVX2)
 1052|       |                  detail::avx2_string_escape(c, e, data, n, write_escape);
 1053|       |#endif
 1054|     67|#if defined(GLZ_USE_SSE2)
 1055|     67|                  detail::sse2_string_escape(c, e, data, n, write_escape);
 1056|       |#elif defined(GLZ_USE_NEON)
 1057|       |                  detail::neon_string_escape(c, e, data, n, write_escape);
 1058|       |#endif
 1059|       |
 1060|       |                  // SWAR: 8 bytes at a time
 1061|     67|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 0, False: 67]
  ------------------
 1062|      0|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 0, False: 0]
  ------------------
 1063|      0|                        std::memcpy(data, c, 8);
 1064|      0|                        uint64_t swar;
 1065|      0|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|      0|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|      0|                        const uint64_t lo7 = swar & lo7_mask;
 1072|      0|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|      0|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|      0|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|      0|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|      0|                        next &= repeat_byte8(0b10000000);
 1078|      0|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 0, False: 0]
  ------------------
 1079|      0|                           data += 8;
 1080|      0|                           c += 8;
 1081|      0|                           continue;
 1082|      0|                        }
 1083|       |
 1084|      0|                        const auto length = (countr_zero(next) >> 3);
 1085|      0|                        c += length;
 1086|      0|                        data += length;
 1087|      0|                        write_escape();
 1088|      0|                     }
 1089|      0|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|    469|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 402, False: 67]
  ------------------
 1093|    402|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 0, False: 402]
  ------------------
 1094|      0|                        std::memcpy(data, &escaped, 2);
 1095|      0|                        data += 2;
 1096|      0|                     }
 1097|       |                     else if constexpr (check_escape_control_characters(Opts)) {
 1098|       |                        if (uint8_t(*c) < 0x20) {
 1099|       |                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1100|       |                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1101|       |                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1102|       |                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1103|       |                           std::memcpy(data, unicode_escape, 6);
 1104|       |                           data += 6;
 1105|       |                        }
 1106|       |                        else {
 1107|       |                           std::memcpy(data, c, 1);
 1108|       |                           ++data;
 1109|       |                        }
 1110|       |                     }
 1111|    402|                     else {
 1112|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1113|       |                           if (uint8_t(*c) < 0x20) [[unlikely]] {
 1114|       |                              ctx.error = error_code::invalid_control_character;
 1115|       |                           }
 1116|       |                        }
 1117|    402|                        std::memcpy(data, c, 1);
 1118|    402|                        ++data;
 1119|    402|                     }
 1120|    402|                  }
 1121|       |
 1122|     67|                  ix += size_t(data - start);
 1123|       |
 1124|     67|                  std::memcpy(&b[ix], "\"", 1);
 1125|     67|                  ++ix;
 1126|     67|               }
 1127|     67|            }
 1128|     67|         }
 1129|     67|      }
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|     67|               const sv str = [&]() -> const sv {
  946|       |                  if constexpr (array_char_t<T>) {
  947|       |                     return sv{value.data(), value.size()};
  948|       |                  }
  949|       |                  else if constexpr (u8str_t<T>) {
  950|       |                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|       |                  }
  952|     67|                  else {
  953|     67|                     return str_view<T>(value);
  954|     67|                  }
  955|     67|               }();

_ZN3glz6to_tieIRN12jsonrpc_fuzz5pointELm2EQleT0_L_ZNS_6detail25max_pure_reflection_countEEEEDcOT_:
  146|  87.7k|   {
  147|       |      if constexpr (N == 0) {
  148|       |         return tuple{};
  149|       |      }
  150|       |      else if constexpr (N == 1) {
  151|       |         auto& [p] = t;
  152|       |         return glz::tie(p);
  153|       |      }
  154|  87.7k|      else if constexpr (N == 2) {
  155|  87.7k|         auto& [p0, p1] = t;
  156|  87.7k|         return glz::tie(p0, p1);
  157|       |      }
  158|       |      else if constexpr (N == 3) {
  159|       |         auto& [p0, p1, p2] = t;
  160|       |         return glz::tie(p0, p1, p2);
  161|       |      }
  162|       |      else if constexpr (N == 4) {
  163|       |         auto& [p0, p1, p2, p3] = t;
  164|       |         return glz::tie(p0, p1, p2, p3);
  165|       |      }
  166|       |      else if constexpr (N == 5) {
  167|       |         auto& [p0, p1, p2, p3, p4] = t;
  168|       |         return glz::tie(p0, p1, p2, p3, p4);
  169|       |      }
  170|       |      else if constexpr (N == 6) {
  171|       |         auto& [p0, p1, p2, p3, p4, p5] = t;
  172|       |         return glz::tie(p0, p1, p2, p3, p4, p5);
  173|       |      }
  174|       |      else if constexpr (N == 7) {
  175|       |         auto& [p0, p1, p2, p3, p4, p5, p6] = t;
  176|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6);
  177|       |      }
  178|       |      else if constexpr (N == 8) {
  179|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7] = t;
  180|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7);
  181|       |      }
  182|       |      else if constexpr (N == 9) {
  183|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8] = t;
  184|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8);
  185|       |      }
  186|       |      else if constexpr (N == 10) {
  187|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9] = t;
  188|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
  189|       |      }
  190|       |      else if constexpr (N == 11) {
  191|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10] = t;
  192|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
  193|       |      }
  194|       |      else if constexpr (N == 12) {
  195|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11] = t;
  196|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
  197|       |      }
  198|       |      else if constexpr (N == 13) {
  199|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12] = t;
  200|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
  201|       |      }
  202|       |      else if constexpr (N == 14) {
  203|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13] = t;
  204|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
  205|       |      }
  206|       |      else if constexpr (N == 15) {
  207|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14] = t;
  208|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
  209|       |      }
  210|       |      else if constexpr (N == 16) {
  211|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15] = t;
  212|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
  213|       |      }
  214|       |      else if constexpr (N == 17) {
  215|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16] = t;
  216|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16);
  217|       |      }
  218|       |      else if constexpr (N == 18) {
  219|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17] = t;
  220|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17);
  221|       |      }
  222|       |      else if constexpr (N == 19) {
  223|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18] = t;
  224|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18);
  225|       |      }
  226|       |      else if constexpr (N == 20) {
  227|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19] = t;
  228|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19);
  229|       |      }
  230|       |      else if constexpr (N == 21) {
  231|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20] = t;
  232|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20);
  233|       |      }
  234|       |      else if constexpr (N == 22) {
  235|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21] = t;
  236|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  237|       |                         p21);
  238|       |      }
  239|       |      else if constexpr (N == 23) {
  240|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21,
  241|       |                p22] = t;
  242|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  243|       |                         p21, p22);
  244|       |      }
  245|       |      else if constexpr (N == 24) {
  246|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  247|       |                p23] = t;
  248|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  249|       |                         p21, p22, p23);
  250|       |      }
  251|       |      else if constexpr (N == 25) {
  252|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  253|       |                p23, p24] = t;
  254|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  255|       |                         p21, p22, p23, p24);
  256|       |      }
  257|       |      else if constexpr (N == 26) {
  258|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  259|       |                p23, p24, p25] = t;
  260|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  261|       |                         p21, p22, p23, p24, p25);
  262|       |      }
  263|       |      else if constexpr (N == 27) {
  264|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  265|       |                p23, p24, p25, p26] = t;
  266|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  267|       |                         p21, p22, p23, p24, p25, p26);
  268|       |      }
  269|       |      else if constexpr (N == 28) {
  270|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  271|       |                p23, p24, p25, p26, p27] = t;
  272|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  273|       |                         p21, p22, p23, p24, p25, p26, p27);
  274|       |      }
  275|       |      else if constexpr (N == 29) {
  276|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  277|       |                p23, p24, p25, p26, p27, p28] = t;
  278|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  279|       |                         p21, p22, p23, p24, p25, p26, p27, p28);
  280|       |      }
  281|       |      else if constexpr (N == 30) {
  282|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  283|       |                p23, p24, p25, p26, p27, p28, p29] = t;
  284|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  285|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29);
  286|       |      }
  287|       |      else if constexpr (N == 31) {
  288|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  289|       |                p23, p24, p25, p26, p27, p28, p29, p30] = t;
  290|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  291|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30);
  292|       |      }
  293|       |      else if constexpr (N == 32) {
  294|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  295|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31] = t;
  296|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  297|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31);
  298|       |      }
  299|       |      else if constexpr (N == 33) {
  300|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  301|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32] = t;
  302|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  303|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32);
  304|       |      }
  305|       |      else if constexpr (N == 34) {
  306|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  307|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33] = t;
  308|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  309|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33);
  310|       |      }
  311|       |      else if constexpr (N == 35) {
  312|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  313|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34] = t;
  314|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  315|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34);
  316|       |      }
  317|       |      else if constexpr (N == 36) {
  318|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  319|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35] = t;
  320|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  321|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35);
  322|       |      }
  323|       |      else if constexpr (N == 37) {
  324|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  325|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36] = t;
  326|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  327|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36);
  328|       |      }
  329|       |      else if constexpr (N == 38) {
  330|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  331|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37] = t;
  332|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  333|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37);
  334|       |      }
  335|       |      else if constexpr (N == 39) {
  336|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  337|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38] = t;
  338|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  339|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38);
  340|       |      }
  341|       |      else if constexpr (N == 40) {
  342|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  343|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39] = t;
  344|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  345|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39);
  346|       |      }
  347|       |      else if constexpr (N == 41) {
  348|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  349|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40] = t;
  350|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  351|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  352|       |                         p40);
  353|       |      }
  354|       |      else if constexpr (N == 42) {
  355|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  356|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41] = t;
  357|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  358|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  359|       |                         p40, p41);
  360|       |      }
  361|       |      else if constexpr (N == 43) {
  362|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  363|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42] = t;
  364|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  365|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  366|       |                         p40, p41, p42);
  367|       |      }
  368|       |      else if constexpr (N == 44) {
  369|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  370|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42,
  371|       |                p43] = t;
  372|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  373|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  374|       |                         p40, p41, p42, p43);
  375|       |      }
  376|       |      else if constexpr (N == 45) {
  377|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  378|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  379|       |                p44] = t;
  380|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  381|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  382|       |                         p40, p41, p42, p43, p44);
  383|       |      }
  384|       |      else if constexpr (N == 46) {
  385|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  386|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  387|       |                p44, p45] = t;
  388|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  389|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  390|       |                         p40, p41, p42, p43, p44, p45);
  391|       |      }
  392|       |      else if constexpr (N == 47) {
  393|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  394|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  395|       |                p44, p45, p46] = t;
  396|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  397|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  398|       |                         p40, p41, p42, p43, p44, p45, p46);
  399|       |      }
  400|       |      else if constexpr (N == 48) {
  401|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  402|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  403|       |                p44, p45, p46, p47] = t;
  404|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  405|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  406|       |                         p40, p41, p42, p43, p44, p45, p46, p47);
  407|       |      }
  408|       |      else if constexpr (N == 49) {
  409|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  410|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  411|       |                p44, p45, p46, p47, p48] = t;
  412|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  413|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  414|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48);
  415|       |      }
  416|       |      else if constexpr (N == 50) {
  417|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  418|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  419|       |                p44, p45, p46, p47, p48, p49] = t;
  420|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  421|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  422|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49);
  423|       |      }
  424|       |      else if constexpr (N == 51) {
  425|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  426|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  427|       |                p44, p45, p46, p47, p48, p49, p50] = t;
  428|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  429|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  430|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50);
  431|       |      }
  432|       |      else if constexpr (N == 52) {
  433|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  434|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  435|       |                p44, p45, p46, p47, p48, p49, p50, p51] = t;
  436|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  437|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  438|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51);
  439|       |      }
  440|       |      else if constexpr (N == 53) {
  441|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  442|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  443|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52] = t;
  444|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  445|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  446|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52);
  447|       |      }
  448|       |      else if constexpr (N == 54) {
  449|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  450|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  451|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53] = t;
  452|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  453|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  454|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53);
  455|       |      }
  456|       |      else if constexpr (N == 55) {
  457|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  458|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  459|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54] = t;
  460|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  461|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  462|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54);
  463|       |      }
  464|       |      else if constexpr (N == 56) {
  465|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  466|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  467|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55] = t;
  468|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  469|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  470|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55);
  471|       |      }
  472|       |      else if constexpr (N == 57) {
  473|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  474|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  475|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56] = t;
  476|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  477|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  478|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56);
  479|       |      }
  480|       |      else if constexpr (N == 58) {
  481|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  482|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  483|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57] = t;
  484|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  485|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  486|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57);
  487|       |      }
  488|       |      else if constexpr (N == 59) {
  489|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  490|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  491|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58] = t;
  492|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  493|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  494|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58);
  495|       |      }
  496|       |      else if constexpr (N == 60) {
  497|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  498|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  499|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59] = t;
  500|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  501|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  502|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  503|       |                         p59);
  504|       |      }
  505|       |      else if constexpr (N == 61) {
  506|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  507|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  508|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60] = t;
  509|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  510|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  511|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  512|       |                         p59, p60);
  513|       |      }
  514|       |      else if constexpr (N == 62) {
  515|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  516|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  517|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61] = t;
  518|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  519|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  520|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  521|       |                         p59, p60, p61);
  522|       |      }
  523|       |      else if constexpr (N == 63) {
  524|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  525|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  526|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62] = t;
  527|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  528|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  529|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  530|       |                         p59, p60, p61, p62);
  531|       |      }
  532|       |      else if constexpr (N == 64) {
  533|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  534|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  535|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63] = t;
  536|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  537|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  538|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  539|       |                         p59, p60, p61, p62, p63);
  540|       |      }
  541|       |      else if constexpr (N == 65) {
  542|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  543|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  544|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63,
  545|       |                p64] = t;
  546|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  547|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  548|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  549|       |                         p59, p60, p61, p62, p63, p64);
  550|       |      }
  551|       |      else if constexpr (N == 66) {
  552|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  553|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  554|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  555|       |                p65] = t;
  556|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  557|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  558|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  559|       |                         p59, p60, p61, p62, p63, p64, p65);
  560|       |      }
  561|       |      else if constexpr (N == 67) {
  562|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  563|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  564|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  565|       |                p65, p66] = t;
  566|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  567|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  568|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  569|       |                         p59, p60, p61, p62, p63, p64, p65, p66);
  570|       |      }
  571|       |      else if constexpr (N == 68) {
  572|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  573|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  574|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  575|       |                p65, p66, p67] = t;
  576|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  577|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  578|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  579|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67);
  580|       |      }
  581|       |      else if constexpr (N == 69) {
  582|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  583|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  584|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  585|       |                p65, p66, p67, p68] = t;
  586|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  587|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  588|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  589|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68);
  590|       |      }
  591|       |      else if constexpr (N == 70) {
  592|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  593|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  594|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  595|       |                p65, p66, p67, p68, p69] = t;
  596|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  597|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  598|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  599|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69);
  600|       |      }
  601|       |      else if constexpr (N == 71) {
  602|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  603|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  604|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  605|       |                p65, p66, p67, p68, p69, p70] = t;
  606|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  607|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  608|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  609|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70);
  610|       |      }
  611|       |      else if constexpr (N == 72) {
  612|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  613|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  614|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  615|       |                p65, p66, p67, p68, p69, p70, p71] = t;
  616|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  617|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  618|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  619|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71);
  620|       |      }
  621|       |      else if constexpr (N == 73) {
  622|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  623|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  624|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  625|       |                p65, p66, p67, p68, p69, p70, p71, p72] = t;
  626|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  627|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  628|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  629|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72);
  630|       |      }
  631|       |      else if constexpr (N == 74) {
  632|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  633|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  634|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  635|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73] = t;
  636|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  637|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  638|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  639|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73);
  640|       |      }
  641|       |      else if constexpr (N == 75) {
  642|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  643|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  644|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  645|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74] = t;
  646|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  647|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  648|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  649|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74);
  650|       |      }
  651|       |      else if constexpr (N == 76) {
  652|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  653|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  654|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  655|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75] = t;
  656|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  657|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  658|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  659|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75);
  660|       |      }
  661|       |      else if constexpr (N == 77) {
  662|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  663|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  664|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  665|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76] = t;
  666|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  667|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  668|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  669|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76);
  670|       |      }
  671|       |      else if constexpr (N == 78) {
  672|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  673|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  674|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  675|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77] = t;
  676|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  677|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  678|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  679|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77);
  680|       |      }
  681|       |      else if constexpr (N == 79) {
  682|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  683|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  684|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  685|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78] = t;
  686|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  687|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  688|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  689|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  690|       |                         p78);
  691|       |      }
  692|       |      else if constexpr (N == 80) {
  693|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  694|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  695|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  696|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79] = t;
  697|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  698|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  699|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  700|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  701|       |                         p78, p79);
  702|       |      }
  703|       |      else if constexpr (N == 81) {
  704|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  705|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  706|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  707|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80] = t;
  708|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  709|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  710|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  711|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  712|       |                         p78, p79, p80);
  713|       |      }
  714|       |      else if constexpr (N == 82) {
  715|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  716|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  717|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  718|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81] = t;
  719|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  720|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  721|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  722|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  723|       |                         p78, p79, p80, p81);
  724|       |      }
  725|       |      else if constexpr (N == 83) {
  726|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  727|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  728|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  729|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82] = t;
  730|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  731|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  732|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  733|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  734|       |                         p78, p79, p80, p81, p82);
  735|       |      }
  736|       |      else if constexpr (N == 84) {
  737|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  738|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  739|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  740|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83] = t;
  741|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  742|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  743|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  744|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  745|       |                         p78, p79, p80, p81, p82, p83);
  746|       |      }
  747|       |      else if constexpr (N == 85) {
  748|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  749|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  750|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  751|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84] = t;
  752|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  753|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  754|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  755|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  756|       |                         p78, p79, p80, p81, p82, p83, p84);
  757|       |      }
  758|       |      else if constexpr (N == 86) {
  759|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  760|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  761|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  762|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84,
  763|       |                p85] = t;
  764|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  765|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  766|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  767|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  768|       |                         p78, p79, p80, p81, p82, p83, p84, p85);
  769|       |      }
  770|       |      else if constexpr (N == 87) {
  771|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  772|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  773|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  774|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  775|       |                p86] = t;
  776|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  777|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  778|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  779|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  780|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86);
  781|       |      }
  782|       |      else if constexpr (N == 88) {
  783|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  784|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  785|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  786|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  787|       |                p86, p87] = t;
  788|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  789|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  790|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  791|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  792|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87);
  793|       |      }
  794|       |      else if constexpr (N == 89) {
  795|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  796|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  797|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  798|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  799|       |                p86, p87, p88] = t;
  800|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  801|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  802|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  803|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  804|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88);
  805|       |      }
  806|       |      else if constexpr (N == 90) {
  807|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  808|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  809|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  810|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  811|       |                p86, p87, p88, p89] = t;
  812|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  813|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  814|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  815|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  816|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89);
  817|       |      }
  818|       |      else if constexpr (N == 91) {
  819|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  820|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  821|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  822|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  823|       |                p86, p87, p88, p89, p90] = t;
  824|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  825|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  826|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  827|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  828|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90);
  829|       |      }
  830|       |      else if constexpr (N == 92) {
  831|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  832|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  833|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  834|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  835|       |                p86, p87, p88, p89, p90, p91] = t;
  836|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  837|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  838|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  839|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  840|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91);
  841|       |      }
  842|       |      else if constexpr (N == 93) {
  843|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  844|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  845|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  846|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  847|       |                p86, p87, p88, p89, p90, p91, p92] = t;
  848|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  849|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  850|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  851|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  852|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92);
  853|       |      }
  854|       |      else if constexpr (N == 94) {
  855|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  856|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  857|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  858|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  859|       |                p86, p87, p88, p89, p90, p91, p92, p93] = t;
  860|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  861|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  862|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  863|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  864|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93);
  865|       |      }
  866|       |      else if constexpr (N == 95) {
  867|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  868|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  869|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  870|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  871|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94] = t;
  872|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  873|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  874|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  875|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  876|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94);
  877|       |      }
  878|       |      else if constexpr (N == 96) {
  879|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  880|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  881|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  882|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  883|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95] = t;
  884|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  885|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  886|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  887|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  888|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95);
  889|       |      }
  890|       |      else if constexpr (N == 97) {
  891|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  892|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  893|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  894|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  895|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96] = t;
  896|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  897|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  898|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  899|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  900|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96);
  901|       |      }
  902|       |      else if constexpr (N == 98) {
  903|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  904|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  905|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  906|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  907|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97] = t;
  908|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  909|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  910|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  911|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  912|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  913|       |                         p97);
  914|       |      }
  915|       |      else if constexpr (N == 99) {
  916|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  917|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  918|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  919|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  920|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98] = t;
  921|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  922|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  923|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  924|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  925|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  926|       |                         p97, p98);
  927|       |      }
  928|       |      else if constexpr (N == 100) {
  929|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  930|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  931|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  932|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  933|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99] = t;
  934|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  935|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  936|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  937|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  938|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  939|       |                         p97, p98, p99);
  940|       |      }
  941|       |      else if constexpr (N == 101) {
  942|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  943|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  944|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  945|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  946|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100] = t;
  947|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  948|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  949|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  950|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  951|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  952|       |                         p97, p98, p99, p100);
  953|       |      }
  954|       |      else if constexpr (N == 102) {
  955|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  956|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  957|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  958|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  959|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101] = t;
  960|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  961|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  962|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  963|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  964|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  965|       |                         p97, p98, p99, p100, p101);
  966|       |      }
  967|       |      else if constexpr (N == 103) {
  968|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  969|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  970|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  971|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  972|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102] = t;
  973|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  974|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  975|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  976|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  977|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  978|       |                         p97, p98, p99, p100, p101, p102);
  979|       |      }
  980|       |      else if constexpr (N == 104) {
  981|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  982|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  983|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  984|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  985|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103] = t;
  986|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  987|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  988|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  989|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  990|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  991|       |                         p97, p98, p99, p100, p101, p102, p103);
  992|       |      }
  993|       |      else if constexpr (N == 105) {
  994|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  995|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  996|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  997|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  998|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104] = t;
  999|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1000|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1001|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1002|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1003|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1004|       |                         p97, p98, p99, p100, p101, p102, p103, p104);
 1005|       |      }
 1006|       |      else if constexpr (N == 106) {
 1007|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1008|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1009|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1010|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1011|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1012|       |                p105] = t;
 1013|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1014|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1015|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1016|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1017|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1018|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105);
 1019|       |      }
 1020|       |      else if constexpr (N == 107) {
 1021|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1022|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1023|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1024|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1025|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1026|       |                p105, p106] = t;
 1027|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1028|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1029|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1030|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1031|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1032|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106);
 1033|       |      }
 1034|       |      else if constexpr (N == 108) {
 1035|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1036|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1037|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1038|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1039|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1040|       |                p105, p106, p107] = t;
 1041|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1042|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1043|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1044|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1045|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1046|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107);
 1047|       |      }
 1048|       |      else if constexpr (N == 109) {
 1049|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1050|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1051|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1052|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1053|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1054|       |                p105, p106, p107, p108] = t;
 1055|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1056|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1057|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1058|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1059|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1060|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108);
 1061|       |      }
 1062|       |      else if constexpr (N == 110) {
 1063|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1064|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1065|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1066|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1067|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1068|       |                p105, p106, p107, p108, p109] = t;
 1069|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1070|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1071|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1072|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1073|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1074|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109);
 1075|       |      }
 1076|       |      else if constexpr (N == 111) {
 1077|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1078|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1079|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1080|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1081|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1082|       |                p105, p106, p107, p108, p109, p110] = t;
 1083|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1084|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1085|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1086|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1087|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1088|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110);
 1089|       |      }
 1090|       |      else if constexpr (N == 112) {
 1091|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1092|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1093|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1094|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1095|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1096|       |                p105, p106, p107, p108, p109, p110, p111] = t;
 1097|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1098|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1099|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1100|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1101|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1102|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111);
 1103|       |      }
 1104|       |      else if constexpr (N == 113) {
 1105|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1106|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1107|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1108|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1109|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1110|       |                p105, p106, p107, p108, p109, p110, p111, p112] = t;
 1111|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1112|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1113|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1114|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1115|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1116|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112);
 1117|       |      }
 1118|       |      else if constexpr (N == 114) {
 1119|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1120|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1121|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1122|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1123|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1124|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113] = t;
 1125|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1126|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1127|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1128|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1129|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1130|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1131|       |                         p113);
 1132|       |      }
 1133|       |      else if constexpr (N == 115) {
 1134|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1135|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1136|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1137|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1138|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1139|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114] = t;
 1140|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1141|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1142|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1143|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1144|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1145|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1146|       |                         p113, p114);
 1147|       |      }
 1148|       |      else if constexpr (N == 116) {
 1149|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1150|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1151|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1152|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1153|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1154|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115] = t;
 1155|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1156|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1157|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1158|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1159|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1160|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1161|       |                         p113, p114, p115);
 1162|       |      }
 1163|       |      else if constexpr (N == 117) {
 1164|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1165|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1166|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1167|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1168|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1169|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116] = t;
 1170|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1171|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1172|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1173|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1174|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1175|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1176|       |                         p113, p114, p115, p116);
 1177|       |      }
 1178|       |      else if constexpr (N == 118) {
 1179|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1180|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1181|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1182|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1183|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1184|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117] = t;
 1185|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1186|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1187|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1188|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1189|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1190|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1191|       |                         p113, p114, p115, p116, p117);
 1192|       |      }
 1193|       |      else if constexpr (N == 119) {
 1194|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1195|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1196|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1197|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1198|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1199|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118] = t;
 1200|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1201|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1202|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1203|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1204|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1205|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1206|       |                         p113, p114, p115, p116, p117, p118);
 1207|       |      }
 1208|       |      else if constexpr (N == 120) {
 1209|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1210|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1211|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1212|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1213|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1214|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119] = t;
 1215|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1216|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1217|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1218|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1219|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1220|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1221|       |                         p113, p114, p115, p116, p117, p118, p119);
 1222|       |      }
 1223|       |      else if constexpr (N == 121) {
 1224|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1225|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1226|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1227|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1228|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1229|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120] = t;
 1230|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1231|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1232|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1233|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1234|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1235|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1236|       |                         p113, p114, p115, p116, p117, p118, p119, p120);
 1237|       |      }
 1238|       |      else if constexpr (N == 122) {
 1239|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1240|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1241|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1242|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1243|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1244|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121] =
 1245|       |            t;
 1246|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1247|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1248|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1249|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1250|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1251|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1252|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121);
 1253|       |      }
 1254|       |      else if constexpr (N == 123) {
 1255|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1256|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1257|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1258|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1259|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1260|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1261|       |                p122] = t;
 1262|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1263|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1264|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1265|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1266|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1267|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1268|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122);
 1269|       |      }
 1270|       |      else if constexpr (N == 124) {
 1271|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1272|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1273|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1274|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1275|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1276|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1277|       |                p122, p123] = t;
 1278|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1279|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1280|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1281|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1282|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1283|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1284|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123);
 1285|       |      }
 1286|       |      else if constexpr (N == 125) {
 1287|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1288|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1289|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1290|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1291|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1292|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1293|       |                p122, p123, p124] = t;
 1294|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1295|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1296|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1297|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1298|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1299|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1300|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124);
 1301|       |      }
 1302|       |      else if constexpr (N == 126) {
 1303|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1304|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1305|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1306|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1307|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1308|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1309|       |                p122, p123, p124, p125] = t;
 1310|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1311|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1312|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1313|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1314|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1315|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1316|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125);
 1317|       |      }
 1318|       |      else if constexpr (N == 127) {
 1319|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1320|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1321|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1322|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1323|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1324|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1325|       |                p122, p123, p124, p125, p126] = t;
 1326|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1327|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1328|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1329|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1330|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1331|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1332|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126);
 1333|       |      }
 1334|       |      else if constexpr (N == 128) {
 1335|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1336|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1337|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1338|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1339|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1340|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1341|       |                p122, p123, p124, p125, p126, p127] = t;
 1342|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1343|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1344|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1345|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1346|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1347|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1348|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127);
 1349|       |      }
 1350|  87.7k|   }
_ZN3glz6to_tieIRN12jsonrpc_fuzz8fuzz_apiELm13EQleT0_L_ZNS_6detail25max_pure_reflection_countEEEEDcOT_:
  146|   121k|   {
  147|       |      if constexpr (N == 0) {
  148|       |         return tuple{};
  149|       |      }
  150|       |      else if constexpr (N == 1) {
  151|       |         auto& [p] = t;
  152|       |         return glz::tie(p);
  153|       |      }
  154|       |      else if constexpr (N == 2) {
  155|       |         auto& [p0, p1] = t;
  156|       |         return glz::tie(p0, p1);
  157|       |      }
  158|       |      else if constexpr (N == 3) {
  159|       |         auto& [p0, p1, p2] = t;
  160|       |         return glz::tie(p0, p1, p2);
  161|       |      }
  162|       |      else if constexpr (N == 4) {
  163|       |         auto& [p0, p1, p2, p3] = t;
  164|       |         return glz::tie(p0, p1, p2, p3);
  165|       |      }
  166|       |      else if constexpr (N == 5) {
  167|       |         auto& [p0, p1, p2, p3, p4] = t;
  168|       |         return glz::tie(p0, p1, p2, p3, p4);
  169|       |      }
  170|       |      else if constexpr (N == 6) {
  171|       |         auto& [p0, p1, p2, p3, p4, p5] = t;
  172|       |         return glz::tie(p0, p1, p2, p3, p4, p5);
  173|       |      }
  174|       |      else if constexpr (N == 7) {
  175|       |         auto& [p0, p1, p2, p3, p4, p5, p6] = t;
  176|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6);
  177|       |      }
  178|       |      else if constexpr (N == 8) {
  179|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7] = t;
  180|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7);
  181|       |      }
  182|       |      else if constexpr (N == 9) {
  183|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8] = t;
  184|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8);
  185|       |      }
  186|       |      else if constexpr (N == 10) {
  187|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9] = t;
  188|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
  189|       |      }
  190|       |      else if constexpr (N == 11) {
  191|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10] = t;
  192|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
  193|       |      }
  194|       |      else if constexpr (N == 12) {
  195|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11] = t;
  196|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
  197|       |      }
  198|   121k|      else if constexpr (N == 13) {
  199|   121k|         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12] = t;
  200|   121k|         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
  201|       |      }
  202|       |      else if constexpr (N == 14) {
  203|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13] = t;
  204|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
  205|       |      }
  206|       |      else if constexpr (N == 15) {
  207|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14] = t;
  208|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
  209|       |      }
  210|       |      else if constexpr (N == 16) {
  211|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15] = t;
  212|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
  213|       |      }
  214|       |      else if constexpr (N == 17) {
  215|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16] = t;
  216|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16);
  217|       |      }
  218|       |      else if constexpr (N == 18) {
  219|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17] = t;
  220|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17);
  221|       |      }
  222|       |      else if constexpr (N == 19) {
  223|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18] = t;
  224|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18);
  225|       |      }
  226|       |      else if constexpr (N == 20) {
  227|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19] = t;
  228|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19);
  229|       |      }
  230|       |      else if constexpr (N == 21) {
  231|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20] = t;
  232|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20);
  233|       |      }
  234|       |      else if constexpr (N == 22) {
  235|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21] = t;
  236|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  237|       |                         p21);
  238|       |      }
  239|       |      else if constexpr (N == 23) {
  240|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21,
  241|       |                p22] = t;
  242|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  243|       |                         p21, p22);
  244|       |      }
  245|       |      else if constexpr (N == 24) {
  246|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  247|       |                p23] = t;
  248|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  249|       |                         p21, p22, p23);
  250|       |      }
  251|       |      else if constexpr (N == 25) {
  252|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  253|       |                p23, p24] = t;
  254|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  255|       |                         p21, p22, p23, p24);
  256|       |      }
  257|       |      else if constexpr (N == 26) {
  258|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  259|       |                p23, p24, p25] = t;
  260|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  261|       |                         p21, p22, p23, p24, p25);
  262|       |      }
  263|       |      else if constexpr (N == 27) {
  264|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  265|       |                p23, p24, p25, p26] = t;
  266|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  267|       |                         p21, p22, p23, p24, p25, p26);
  268|       |      }
  269|       |      else if constexpr (N == 28) {
  270|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  271|       |                p23, p24, p25, p26, p27] = t;
  272|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  273|       |                         p21, p22, p23, p24, p25, p26, p27);
  274|       |      }
  275|       |      else if constexpr (N == 29) {
  276|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  277|       |                p23, p24, p25, p26, p27, p28] = t;
  278|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  279|       |                         p21, p22, p23, p24, p25, p26, p27, p28);
  280|       |      }
  281|       |      else if constexpr (N == 30) {
  282|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  283|       |                p23, p24, p25, p26, p27, p28, p29] = t;
  284|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  285|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29);
  286|       |      }
  287|       |      else if constexpr (N == 31) {
  288|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  289|       |                p23, p24, p25, p26, p27, p28, p29, p30] = t;
  290|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  291|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30);
  292|       |      }
  293|       |      else if constexpr (N == 32) {
  294|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  295|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31] = t;
  296|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  297|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31);
  298|       |      }
  299|       |      else if constexpr (N == 33) {
  300|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  301|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32] = t;
  302|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  303|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32);
  304|       |      }
  305|       |      else if constexpr (N == 34) {
  306|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  307|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33] = t;
  308|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  309|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33);
  310|       |      }
  311|       |      else if constexpr (N == 35) {
  312|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  313|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34] = t;
  314|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  315|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34);
  316|       |      }
  317|       |      else if constexpr (N == 36) {
  318|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  319|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35] = t;
  320|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  321|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35);
  322|       |      }
  323|       |      else if constexpr (N == 37) {
  324|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  325|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36] = t;
  326|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  327|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36);
  328|       |      }
  329|       |      else if constexpr (N == 38) {
  330|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  331|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37] = t;
  332|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  333|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37);
  334|       |      }
  335|       |      else if constexpr (N == 39) {
  336|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  337|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38] = t;
  338|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  339|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38);
  340|       |      }
  341|       |      else if constexpr (N == 40) {
  342|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  343|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39] = t;
  344|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  345|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39);
  346|       |      }
  347|       |      else if constexpr (N == 41) {
  348|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  349|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40] = t;
  350|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  351|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  352|       |                         p40);
  353|       |      }
  354|       |      else if constexpr (N == 42) {
  355|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  356|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41] = t;
  357|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  358|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  359|       |                         p40, p41);
  360|       |      }
  361|       |      else if constexpr (N == 43) {
  362|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  363|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42] = t;
  364|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  365|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  366|       |                         p40, p41, p42);
  367|       |      }
  368|       |      else if constexpr (N == 44) {
  369|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  370|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42,
  371|       |                p43] = t;
  372|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  373|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  374|       |                         p40, p41, p42, p43);
  375|       |      }
  376|       |      else if constexpr (N == 45) {
  377|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  378|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  379|       |                p44] = t;
  380|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  381|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  382|       |                         p40, p41, p42, p43, p44);
  383|       |      }
  384|       |      else if constexpr (N == 46) {
  385|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  386|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  387|       |                p44, p45] = t;
  388|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  389|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  390|       |                         p40, p41, p42, p43, p44, p45);
  391|       |      }
  392|       |      else if constexpr (N == 47) {
  393|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  394|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  395|       |                p44, p45, p46] = t;
  396|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  397|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  398|       |                         p40, p41, p42, p43, p44, p45, p46);
  399|       |      }
  400|       |      else if constexpr (N == 48) {
  401|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  402|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  403|       |                p44, p45, p46, p47] = t;
  404|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  405|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  406|       |                         p40, p41, p42, p43, p44, p45, p46, p47);
  407|       |      }
  408|       |      else if constexpr (N == 49) {
  409|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  410|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  411|       |                p44, p45, p46, p47, p48] = t;
  412|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  413|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  414|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48);
  415|       |      }
  416|       |      else if constexpr (N == 50) {
  417|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  418|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  419|       |                p44, p45, p46, p47, p48, p49] = t;
  420|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  421|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  422|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49);
  423|       |      }
  424|       |      else if constexpr (N == 51) {
  425|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  426|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  427|       |                p44, p45, p46, p47, p48, p49, p50] = t;
  428|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  429|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  430|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50);
  431|       |      }
  432|       |      else if constexpr (N == 52) {
  433|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  434|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  435|       |                p44, p45, p46, p47, p48, p49, p50, p51] = t;
  436|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  437|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  438|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51);
  439|       |      }
  440|       |      else if constexpr (N == 53) {
  441|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  442|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  443|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52] = t;
  444|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  445|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  446|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52);
  447|       |      }
  448|       |      else if constexpr (N == 54) {
  449|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  450|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  451|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53] = t;
  452|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  453|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  454|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53);
  455|       |      }
  456|       |      else if constexpr (N == 55) {
  457|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  458|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  459|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54] = t;
  460|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  461|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  462|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54);
  463|       |      }
  464|       |      else if constexpr (N == 56) {
  465|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  466|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  467|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55] = t;
  468|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  469|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  470|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55);
  471|       |      }
  472|       |      else if constexpr (N == 57) {
  473|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  474|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  475|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56] = t;
  476|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  477|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  478|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56);
  479|       |      }
  480|       |      else if constexpr (N == 58) {
  481|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  482|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  483|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57] = t;
  484|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  485|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  486|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57);
  487|       |      }
  488|       |      else if constexpr (N == 59) {
  489|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  490|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  491|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58] = t;
  492|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  493|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  494|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58);
  495|       |      }
  496|       |      else if constexpr (N == 60) {
  497|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  498|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  499|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59] = t;
  500|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  501|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  502|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  503|       |                         p59);
  504|       |      }
  505|       |      else if constexpr (N == 61) {
  506|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  507|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  508|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60] = t;
  509|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  510|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  511|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  512|       |                         p59, p60);
  513|       |      }
  514|       |      else if constexpr (N == 62) {
  515|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  516|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  517|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61] = t;
  518|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  519|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  520|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  521|       |                         p59, p60, p61);
  522|       |      }
  523|       |      else if constexpr (N == 63) {
  524|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  525|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  526|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62] = t;
  527|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  528|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  529|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  530|       |                         p59, p60, p61, p62);
  531|       |      }
  532|       |      else if constexpr (N == 64) {
  533|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  534|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  535|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63] = t;
  536|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  537|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  538|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  539|       |                         p59, p60, p61, p62, p63);
  540|       |      }
  541|       |      else if constexpr (N == 65) {
  542|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  543|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  544|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63,
  545|       |                p64] = t;
  546|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  547|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  548|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  549|       |                         p59, p60, p61, p62, p63, p64);
  550|       |      }
  551|       |      else if constexpr (N == 66) {
  552|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  553|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  554|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  555|       |                p65] = t;
  556|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  557|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  558|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  559|       |                         p59, p60, p61, p62, p63, p64, p65);
  560|       |      }
  561|       |      else if constexpr (N == 67) {
  562|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  563|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  564|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  565|       |                p65, p66] = t;
  566|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  567|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  568|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  569|       |                         p59, p60, p61, p62, p63, p64, p65, p66);
  570|       |      }
  571|       |      else if constexpr (N == 68) {
  572|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  573|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  574|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  575|       |                p65, p66, p67] = t;
  576|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  577|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  578|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  579|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67);
  580|       |      }
  581|       |      else if constexpr (N == 69) {
  582|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  583|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  584|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  585|       |                p65, p66, p67, p68] = t;
  586|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  587|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  588|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  589|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68);
  590|       |      }
  591|       |      else if constexpr (N == 70) {
  592|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  593|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  594|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  595|       |                p65, p66, p67, p68, p69] = t;
  596|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  597|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  598|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  599|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69);
  600|       |      }
  601|       |      else if constexpr (N == 71) {
  602|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  603|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  604|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  605|       |                p65, p66, p67, p68, p69, p70] = t;
  606|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  607|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  608|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  609|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70);
  610|       |      }
  611|       |      else if constexpr (N == 72) {
  612|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  613|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  614|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  615|       |                p65, p66, p67, p68, p69, p70, p71] = t;
  616|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  617|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  618|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  619|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71);
  620|       |      }
  621|       |      else if constexpr (N == 73) {
  622|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  623|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  624|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  625|       |                p65, p66, p67, p68, p69, p70, p71, p72] = t;
  626|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  627|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  628|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  629|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72);
  630|       |      }
  631|       |      else if constexpr (N == 74) {
  632|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  633|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  634|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  635|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73] = t;
  636|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  637|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  638|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  639|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73);
  640|       |      }
  641|       |      else if constexpr (N == 75) {
  642|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  643|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  644|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  645|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74] = t;
  646|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  647|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  648|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  649|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74);
  650|       |      }
  651|       |      else if constexpr (N == 76) {
  652|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  653|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  654|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  655|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75] = t;
  656|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  657|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  658|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  659|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75);
  660|       |      }
  661|       |      else if constexpr (N == 77) {
  662|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  663|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  664|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  665|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76] = t;
  666|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  667|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  668|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  669|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76);
  670|       |      }
  671|       |      else if constexpr (N == 78) {
  672|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  673|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  674|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  675|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77] = t;
  676|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  677|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  678|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  679|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77);
  680|       |      }
  681|       |      else if constexpr (N == 79) {
  682|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  683|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  684|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  685|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78] = t;
  686|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  687|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  688|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  689|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  690|       |                         p78);
  691|       |      }
  692|       |      else if constexpr (N == 80) {
  693|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  694|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  695|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  696|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79] = t;
  697|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  698|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  699|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  700|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  701|       |                         p78, p79);
  702|       |      }
  703|       |      else if constexpr (N == 81) {
  704|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  705|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  706|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  707|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80] = t;
  708|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  709|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  710|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  711|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  712|       |                         p78, p79, p80);
  713|       |      }
  714|       |      else if constexpr (N == 82) {
  715|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  716|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  717|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  718|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81] = t;
  719|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  720|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  721|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  722|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  723|       |                         p78, p79, p80, p81);
  724|       |      }
  725|       |      else if constexpr (N == 83) {
  726|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  727|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  728|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  729|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82] = t;
  730|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  731|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  732|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  733|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  734|       |                         p78, p79, p80, p81, p82);
  735|       |      }
  736|       |      else if constexpr (N == 84) {
  737|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  738|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  739|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  740|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83] = t;
  741|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  742|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  743|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  744|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  745|       |                         p78, p79, p80, p81, p82, p83);
  746|       |      }
  747|       |      else if constexpr (N == 85) {
  748|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  749|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  750|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  751|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84] = t;
  752|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  753|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  754|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  755|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  756|       |                         p78, p79, p80, p81, p82, p83, p84);
  757|       |      }
  758|       |      else if constexpr (N == 86) {
  759|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  760|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  761|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  762|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84,
  763|       |                p85] = t;
  764|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  765|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  766|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  767|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  768|       |                         p78, p79, p80, p81, p82, p83, p84, p85);
  769|       |      }
  770|       |      else if constexpr (N == 87) {
  771|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  772|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  773|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  774|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  775|       |                p86] = t;
  776|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  777|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  778|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  779|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  780|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86);
  781|       |      }
  782|       |      else if constexpr (N == 88) {
  783|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  784|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  785|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  786|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  787|       |                p86, p87] = t;
  788|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  789|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  790|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  791|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  792|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87);
  793|       |      }
  794|       |      else if constexpr (N == 89) {
  795|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  796|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  797|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  798|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  799|       |                p86, p87, p88] = t;
  800|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  801|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  802|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  803|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  804|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88);
  805|       |      }
  806|       |      else if constexpr (N == 90) {
  807|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  808|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  809|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  810|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  811|       |                p86, p87, p88, p89] = t;
  812|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  813|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  814|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  815|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  816|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89);
  817|       |      }
  818|       |      else if constexpr (N == 91) {
  819|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  820|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  821|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  822|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  823|       |                p86, p87, p88, p89, p90] = t;
  824|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  825|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  826|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  827|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  828|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90);
  829|       |      }
  830|       |      else if constexpr (N == 92) {
  831|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  832|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  833|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  834|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  835|       |                p86, p87, p88, p89, p90, p91] = t;
  836|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  837|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  838|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  839|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  840|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91);
  841|       |      }
  842|       |      else if constexpr (N == 93) {
  843|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  844|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  845|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  846|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  847|       |                p86, p87, p88, p89, p90, p91, p92] = t;
  848|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  849|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  850|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  851|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  852|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92);
  853|       |      }
  854|       |      else if constexpr (N == 94) {
  855|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  856|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  857|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  858|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  859|       |                p86, p87, p88, p89, p90, p91, p92, p93] = t;
  860|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  861|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  862|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  863|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  864|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93);
  865|       |      }
  866|       |      else if constexpr (N == 95) {
  867|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  868|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  869|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  870|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  871|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94] = t;
  872|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  873|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  874|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  875|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  876|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94);
  877|       |      }
  878|       |      else if constexpr (N == 96) {
  879|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  880|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  881|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  882|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  883|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95] = t;
  884|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  885|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  886|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  887|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  888|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95);
  889|       |      }
  890|       |      else if constexpr (N == 97) {
  891|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  892|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  893|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  894|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  895|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96] = t;
  896|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  897|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  898|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  899|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  900|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96);
  901|       |      }
  902|       |      else if constexpr (N == 98) {
  903|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  904|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  905|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  906|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  907|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97] = t;
  908|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  909|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  910|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  911|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  912|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  913|       |                         p97);
  914|       |      }
  915|       |      else if constexpr (N == 99) {
  916|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  917|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  918|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  919|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  920|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98] = t;
  921|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  922|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  923|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  924|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  925|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  926|       |                         p97, p98);
  927|       |      }
  928|       |      else if constexpr (N == 100) {
  929|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  930|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  931|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  932|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  933|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99] = t;
  934|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  935|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  936|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  937|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  938|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  939|       |                         p97, p98, p99);
  940|       |      }
  941|       |      else if constexpr (N == 101) {
  942|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  943|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  944|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  945|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  946|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100] = t;
  947|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  948|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  949|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  950|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  951|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  952|       |                         p97, p98, p99, p100);
  953|       |      }
  954|       |      else if constexpr (N == 102) {
  955|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  956|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  957|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  958|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  959|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101] = t;
  960|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  961|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  962|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  963|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  964|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  965|       |                         p97, p98, p99, p100, p101);
  966|       |      }
  967|       |      else if constexpr (N == 103) {
  968|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  969|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  970|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  971|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  972|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102] = t;
  973|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  974|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  975|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  976|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  977|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  978|       |                         p97, p98, p99, p100, p101, p102);
  979|       |      }
  980|       |      else if constexpr (N == 104) {
  981|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  982|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  983|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  984|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  985|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103] = t;
  986|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  987|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  988|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  989|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  990|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  991|       |                         p97, p98, p99, p100, p101, p102, p103);
  992|       |      }
  993|       |      else if constexpr (N == 105) {
  994|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  995|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  996|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  997|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  998|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104] = t;
  999|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1000|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1001|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1002|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1003|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1004|       |                         p97, p98, p99, p100, p101, p102, p103, p104);
 1005|       |      }
 1006|       |      else if constexpr (N == 106) {
 1007|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1008|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1009|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1010|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1011|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1012|       |                p105] = t;
 1013|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1014|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1015|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1016|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1017|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1018|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105);
 1019|       |      }
 1020|       |      else if constexpr (N == 107) {
 1021|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1022|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1023|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1024|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1025|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1026|       |                p105, p106] = t;
 1027|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1028|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1029|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1030|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1031|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1032|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106);
 1033|       |      }
 1034|       |      else if constexpr (N == 108) {
 1035|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1036|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1037|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1038|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1039|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1040|       |                p105, p106, p107] = t;
 1041|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1042|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1043|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1044|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1045|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1046|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107);
 1047|       |      }
 1048|       |      else if constexpr (N == 109) {
 1049|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1050|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1051|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1052|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1053|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1054|       |                p105, p106, p107, p108] = t;
 1055|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1056|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1057|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1058|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1059|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1060|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108);
 1061|       |      }
 1062|       |      else if constexpr (N == 110) {
 1063|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1064|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1065|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1066|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1067|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1068|       |                p105, p106, p107, p108, p109] = t;
 1069|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1070|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1071|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1072|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1073|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1074|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109);
 1075|       |      }
 1076|       |      else if constexpr (N == 111) {
 1077|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1078|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1079|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1080|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1081|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1082|       |                p105, p106, p107, p108, p109, p110] = t;
 1083|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1084|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1085|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1086|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1087|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1088|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110);
 1089|       |      }
 1090|       |      else if constexpr (N == 112) {
 1091|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1092|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1093|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1094|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1095|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1096|       |                p105, p106, p107, p108, p109, p110, p111] = t;
 1097|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1098|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1099|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1100|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1101|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1102|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111);
 1103|       |      }
 1104|       |      else if constexpr (N == 113) {
 1105|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1106|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1107|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1108|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1109|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1110|       |                p105, p106, p107, p108, p109, p110, p111, p112] = t;
 1111|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1112|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1113|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1114|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1115|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1116|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112);
 1117|       |      }
 1118|       |      else if constexpr (N == 114) {
 1119|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1120|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1121|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1122|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1123|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1124|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113] = t;
 1125|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1126|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1127|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1128|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1129|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1130|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1131|       |                         p113);
 1132|       |      }
 1133|       |      else if constexpr (N == 115) {
 1134|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1135|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1136|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1137|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1138|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1139|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114] = t;
 1140|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1141|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1142|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1143|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1144|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1145|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1146|       |                         p113, p114);
 1147|       |      }
 1148|       |      else if constexpr (N == 116) {
 1149|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1150|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1151|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1152|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1153|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1154|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115] = t;
 1155|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1156|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1157|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1158|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1159|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1160|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1161|       |                         p113, p114, p115);
 1162|       |      }
 1163|       |      else if constexpr (N == 117) {
 1164|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1165|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1166|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1167|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1168|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1169|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116] = t;
 1170|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1171|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1172|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1173|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1174|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1175|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1176|       |                         p113, p114, p115, p116);
 1177|       |      }
 1178|       |      else if constexpr (N == 118) {
 1179|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1180|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1181|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1182|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1183|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1184|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117] = t;
 1185|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1186|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1187|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1188|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1189|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1190|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1191|       |                         p113, p114, p115, p116, p117);
 1192|       |      }
 1193|       |      else if constexpr (N == 119) {
 1194|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1195|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1196|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1197|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1198|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1199|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118] = t;
 1200|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1201|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1202|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1203|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1204|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1205|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1206|       |                         p113, p114, p115, p116, p117, p118);
 1207|       |      }
 1208|       |      else if constexpr (N == 120) {
 1209|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1210|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1211|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1212|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1213|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1214|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119] = t;
 1215|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1216|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1217|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1218|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1219|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1220|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1221|       |                         p113, p114, p115, p116, p117, p118, p119);
 1222|       |      }
 1223|       |      else if constexpr (N == 121) {
 1224|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1225|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1226|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1227|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1228|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1229|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120] = t;
 1230|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1231|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1232|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1233|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1234|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1235|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1236|       |                         p113, p114, p115, p116, p117, p118, p119, p120);
 1237|       |      }
 1238|       |      else if constexpr (N == 122) {
 1239|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1240|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1241|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1242|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1243|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1244|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121] =
 1245|       |            t;
 1246|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1247|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1248|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1249|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1250|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1251|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1252|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121);
 1253|       |      }
 1254|       |      else if constexpr (N == 123) {
 1255|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1256|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1257|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1258|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1259|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1260|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1261|       |                p122] = t;
 1262|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1263|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1264|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1265|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1266|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1267|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1268|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122);
 1269|       |      }
 1270|       |      else if constexpr (N == 124) {
 1271|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1272|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1273|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1274|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1275|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1276|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1277|       |                p122, p123] = t;
 1278|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1279|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1280|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1281|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1282|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1283|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1284|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123);
 1285|       |      }
 1286|       |      else if constexpr (N == 125) {
 1287|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1288|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1289|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1290|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1291|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1292|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1293|       |                p122, p123, p124] = t;
 1294|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1295|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1296|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1297|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1298|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1299|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1300|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124);
 1301|       |      }
 1302|       |      else if constexpr (N == 126) {
 1303|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1304|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1305|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1306|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1307|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1308|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1309|       |                p122, p123, p124, p125] = t;
 1310|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1311|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1312|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1313|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1314|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1315|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1316|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125);
 1317|       |      }
 1318|       |      else if constexpr (N == 127) {
 1319|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1320|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1321|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1322|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1323|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1324|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1325|       |                p122, p123, p124, p125, p126] = t;
 1326|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1327|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1328|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1329|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1330|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1331|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1332|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126);
 1333|       |      }
 1334|       |      else if constexpr (N == 128) {
 1335|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1336|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1337|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1338|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1339|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1340|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1341|       |                p122, p123, p124, p125, p126, p127] = t;
 1342|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1343|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1344|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1345|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1346|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1347|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1348|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127);
 1349|       |      }
 1350|   121k|   }
_ZN3glz6to_tieIRN12jsonrpc_fuzz6nestedELm2EQleT0_L_ZNS_6detail25max_pure_reflection_countEEEEDcOT_:
  146|  97.2k|   {
  147|       |      if constexpr (N == 0) {
  148|       |         return tuple{};
  149|       |      }
  150|       |      else if constexpr (N == 1) {
  151|       |         auto& [p] = t;
  152|       |         return glz::tie(p);
  153|       |      }
  154|  97.2k|      else if constexpr (N == 2) {
  155|  97.2k|         auto& [p0, p1] = t;
  156|  97.2k|         return glz::tie(p0, p1);
  157|       |      }
  158|       |      else if constexpr (N == 3) {
  159|       |         auto& [p0, p1, p2] = t;
  160|       |         return glz::tie(p0, p1, p2);
  161|       |      }
  162|       |      else if constexpr (N == 4) {
  163|       |         auto& [p0, p1, p2, p3] = t;
  164|       |         return glz::tie(p0, p1, p2, p3);
  165|       |      }
  166|       |      else if constexpr (N == 5) {
  167|       |         auto& [p0, p1, p2, p3, p4] = t;
  168|       |         return glz::tie(p0, p1, p2, p3, p4);
  169|       |      }
  170|       |      else if constexpr (N == 6) {
  171|       |         auto& [p0, p1, p2, p3, p4, p5] = t;
  172|       |         return glz::tie(p0, p1, p2, p3, p4, p5);
  173|       |      }
  174|       |      else if constexpr (N == 7) {
  175|       |         auto& [p0, p1, p2, p3, p4, p5, p6] = t;
  176|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6);
  177|       |      }
  178|       |      else if constexpr (N == 8) {
  179|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7] = t;
  180|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7);
  181|       |      }
  182|       |      else if constexpr (N == 9) {
  183|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8] = t;
  184|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8);
  185|       |      }
  186|       |      else if constexpr (N == 10) {
  187|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9] = t;
  188|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
  189|       |      }
  190|       |      else if constexpr (N == 11) {
  191|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10] = t;
  192|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
  193|       |      }
  194|       |      else if constexpr (N == 12) {
  195|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11] = t;
  196|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
  197|       |      }
  198|       |      else if constexpr (N == 13) {
  199|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12] = t;
  200|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
  201|       |      }
  202|       |      else if constexpr (N == 14) {
  203|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13] = t;
  204|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
  205|       |      }
  206|       |      else if constexpr (N == 15) {
  207|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14] = t;
  208|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
  209|       |      }
  210|       |      else if constexpr (N == 16) {
  211|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15] = t;
  212|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
  213|       |      }
  214|       |      else if constexpr (N == 17) {
  215|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16] = t;
  216|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16);
  217|       |      }
  218|       |      else if constexpr (N == 18) {
  219|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17] = t;
  220|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17);
  221|       |      }
  222|       |      else if constexpr (N == 19) {
  223|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18] = t;
  224|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18);
  225|       |      }
  226|       |      else if constexpr (N == 20) {
  227|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19] = t;
  228|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19);
  229|       |      }
  230|       |      else if constexpr (N == 21) {
  231|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20] = t;
  232|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20);
  233|       |      }
  234|       |      else if constexpr (N == 22) {
  235|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21] = t;
  236|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  237|       |                         p21);
  238|       |      }
  239|       |      else if constexpr (N == 23) {
  240|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21,
  241|       |                p22] = t;
  242|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  243|       |                         p21, p22);
  244|       |      }
  245|       |      else if constexpr (N == 24) {
  246|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  247|       |                p23] = t;
  248|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  249|       |                         p21, p22, p23);
  250|       |      }
  251|       |      else if constexpr (N == 25) {
  252|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  253|       |                p23, p24] = t;
  254|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  255|       |                         p21, p22, p23, p24);
  256|       |      }
  257|       |      else if constexpr (N == 26) {
  258|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  259|       |                p23, p24, p25] = t;
  260|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  261|       |                         p21, p22, p23, p24, p25);
  262|       |      }
  263|       |      else if constexpr (N == 27) {
  264|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  265|       |                p23, p24, p25, p26] = t;
  266|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  267|       |                         p21, p22, p23, p24, p25, p26);
  268|       |      }
  269|       |      else if constexpr (N == 28) {
  270|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  271|       |                p23, p24, p25, p26, p27] = t;
  272|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  273|       |                         p21, p22, p23, p24, p25, p26, p27);
  274|       |      }
  275|       |      else if constexpr (N == 29) {
  276|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  277|       |                p23, p24, p25, p26, p27, p28] = t;
  278|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  279|       |                         p21, p22, p23, p24, p25, p26, p27, p28);
  280|       |      }
  281|       |      else if constexpr (N == 30) {
  282|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  283|       |                p23, p24, p25, p26, p27, p28, p29] = t;
  284|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  285|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29);
  286|       |      }
  287|       |      else if constexpr (N == 31) {
  288|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  289|       |                p23, p24, p25, p26, p27, p28, p29, p30] = t;
  290|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  291|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30);
  292|       |      }
  293|       |      else if constexpr (N == 32) {
  294|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  295|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31] = t;
  296|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  297|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31);
  298|       |      }
  299|       |      else if constexpr (N == 33) {
  300|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  301|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32] = t;
  302|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  303|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32);
  304|       |      }
  305|       |      else if constexpr (N == 34) {
  306|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  307|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33] = t;
  308|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  309|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33);
  310|       |      }
  311|       |      else if constexpr (N == 35) {
  312|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  313|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34] = t;
  314|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  315|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34);
  316|       |      }
  317|       |      else if constexpr (N == 36) {
  318|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  319|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35] = t;
  320|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  321|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35);
  322|       |      }
  323|       |      else if constexpr (N == 37) {
  324|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  325|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36] = t;
  326|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  327|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36);
  328|       |      }
  329|       |      else if constexpr (N == 38) {
  330|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  331|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37] = t;
  332|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  333|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37);
  334|       |      }
  335|       |      else if constexpr (N == 39) {
  336|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  337|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38] = t;
  338|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  339|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38);
  340|       |      }
  341|       |      else if constexpr (N == 40) {
  342|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  343|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39] = t;
  344|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  345|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39);
  346|       |      }
  347|       |      else if constexpr (N == 41) {
  348|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  349|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40] = t;
  350|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  351|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  352|       |                         p40);
  353|       |      }
  354|       |      else if constexpr (N == 42) {
  355|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  356|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41] = t;
  357|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  358|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  359|       |                         p40, p41);
  360|       |      }
  361|       |      else if constexpr (N == 43) {
  362|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  363|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42] = t;
  364|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  365|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  366|       |                         p40, p41, p42);
  367|       |      }
  368|       |      else if constexpr (N == 44) {
  369|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  370|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42,
  371|       |                p43] = t;
  372|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  373|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  374|       |                         p40, p41, p42, p43);
  375|       |      }
  376|       |      else if constexpr (N == 45) {
  377|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  378|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  379|       |                p44] = t;
  380|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  381|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  382|       |                         p40, p41, p42, p43, p44);
  383|       |      }
  384|       |      else if constexpr (N == 46) {
  385|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  386|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  387|       |                p44, p45] = t;
  388|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  389|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  390|       |                         p40, p41, p42, p43, p44, p45);
  391|       |      }
  392|       |      else if constexpr (N == 47) {
  393|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  394|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  395|       |                p44, p45, p46] = t;
  396|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  397|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  398|       |                         p40, p41, p42, p43, p44, p45, p46);
  399|       |      }
  400|       |      else if constexpr (N == 48) {
  401|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  402|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  403|       |                p44, p45, p46, p47] = t;
  404|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  405|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  406|       |                         p40, p41, p42, p43, p44, p45, p46, p47);
  407|       |      }
  408|       |      else if constexpr (N == 49) {
  409|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  410|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  411|       |                p44, p45, p46, p47, p48] = t;
  412|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  413|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  414|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48);
  415|       |      }
  416|       |      else if constexpr (N == 50) {
  417|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  418|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  419|       |                p44, p45, p46, p47, p48, p49] = t;
  420|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  421|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  422|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49);
  423|       |      }
  424|       |      else if constexpr (N == 51) {
  425|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  426|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  427|       |                p44, p45, p46, p47, p48, p49, p50] = t;
  428|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  429|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  430|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50);
  431|       |      }
  432|       |      else if constexpr (N == 52) {
  433|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  434|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  435|       |                p44, p45, p46, p47, p48, p49, p50, p51] = t;
  436|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  437|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  438|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51);
  439|       |      }
  440|       |      else if constexpr (N == 53) {
  441|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  442|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  443|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52] = t;
  444|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  445|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  446|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52);
  447|       |      }
  448|       |      else if constexpr (N == 54) {
  449|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  450|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  451|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53] = t;
  452|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  453|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  454|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53);
  455|       |      }
  456|       |      else if constexpr (N == 55) {
  457|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  458|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  459|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54] = t;
  460|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  461|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  462|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54);
  463|       |      }
  464|       |      else if constexpr (N == 56) {
  465|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  466|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  467|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55] = t;
  468|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  469|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  470|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55);
  471|       |      }
  472|       |      else if constexpr (N == 57) {
  473|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  474|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  475|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56] = t;
  476|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  477|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  478|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56);
  479|       |      }
  480|       |      else if constexpr (N == 58) {
  481|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  482|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  483|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57] = t;
  484|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  485|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  486|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57);
  487|       |      }
  488|       |      else if constexpr (N == 59) {
  489|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  490|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  491|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58] = t;
  492|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  493|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  494|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58);
  495|       |      }
  496|       |      else if constexpr (N == 60) {
  497|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  498|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  499|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59] = t;
  500|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  501|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  502|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  503|       |                         p59);
  504|       |      }
  505|       |      else if constexpr (N == 61) {
  506|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  507|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  508|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60] = t;
  509|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  510|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  511|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  512|       |                         p59, p60);
  513|       |      }
  514|       |      else if constexpr (N == 62) {
  515|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  516|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  517|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61] = t;
  518|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  519|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  520|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  521|       |                         p59, p60, p61);
  522|       |      }
  523|       |      else if constexpr (N == 63) {
  524|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  525|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  526|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62] = t;
  527|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  528|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  529|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  530|       |                         p59, p60, p61, p62);
  531|       |      }
  532|       |      else if constexpr (N == 64) {
  533|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  534|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  535|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63] = t;
  536|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  537|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  538|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  539|       |                         p59, p60, p61, p62, p63);
  540|       |      }
  541|       |      else if constexpr (N == 65) {
  542|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  543|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  544|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63,
  545|       |                p64] = t;
  546|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  547|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  548|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  549|       |                         p59, p60, p61, p62, p63, p64);
  550|       |      }
  551|       |      else if constexpr (N == 66) {
  552|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  553|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  554|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  555|       |                p65] = t;
  556|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  557|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  558|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  559|       |                         p59, p60, p61, p62, p63, p64, p65);
  560|       |      }
  561|       |      else if constexpr (N == 67) {
  562|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  563|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  564|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  565|       |                p65, p66] = t;
  566|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  567|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  568|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  569|       |                         p59, p60, p61, p62, p63, p64, p65, p66);
  570|       |      }
  571|       |      else if constexpr (N == 68) {
  572|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  573|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  574|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  575|       |                p65, p66, p67] = t;
  576|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  577|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  578|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  579|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67);
  580|       |      }
  581|       |      else if constexpr (N == 69) {
  582|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  583|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  584|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  585|       |                p65, p66, p67, p68] = t;
  586|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  587|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  588|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  589|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68);
  590|       |      }
  591|       |      else if constexpr (N == 70) {
  592|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  593|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  594|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  595|       |                p65, p66, p67, p68, p69] = t;
  596|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  597|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  598|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  599|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69);
  600|       |      }
  601|       |      else if constexpr (N == 71) {
  602|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  603|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  604|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  605|       |                p65, p66, p67, p68, p69, p70] = t;
  606|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  607|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  608|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  609|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70);
  610|       |      }
  611|       |      else if constexpr (N == 72) {
  612|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  613|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  614|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  615|       |                p65, p66, p67, p68, p69, p70, p71] = t;
  616|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  617|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  618|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  619|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71);
  620|       |      }
  621|       |      else if constexpr (N == 73) {
  622|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  623|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  624|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  625|       |                p65, p66, p67, p68, p69, p70, p71, p72] = t;
  626|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  627|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  628|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  629|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72);
  630|       |      }
  631|       |      else if constexpr (N == 74) {
  632|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  633|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  634|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  635|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73] = t;
  636|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  637|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  638|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  639|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73);
  640|       |      }
  641|       |      else if constexpr (N == 75) {
  642|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  643|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  644|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  645|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74] = t;
  646|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  647|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  648|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  649|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74);
  650|       |      }
  651|       |      else if constexpr (N == 76) {
  652|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  653|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  654|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  655|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75] = t;
  656|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  657|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  658|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  659|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75);
  660|       |      }
  661|       |      else if constexpr (N == 77) {
  662|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  663|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  664|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  665|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76] = t;
  666|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  667|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  668|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  669|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76);
  670|       |      }
  671|       |      else if constexpr (N == 78) {
  672|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  673|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  674|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  675|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77] = t;
  676|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  677|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  678|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  679|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77);
  680|       |      }
  681|       |      else if constexpr (N == 79) {
  682|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  683|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  684|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  685|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78] = t;
  686|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  687|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  688|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  689|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  690|       |                         p78);
  691|       |      }
  692|       |      else if constexpr (N == 80) {
  693|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  694|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  695|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  696|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79] = t;
  697|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  698|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  699|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  700|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  701|       |                         p78, p79);
  702|       |      }
  703|       |      else if constexpr (N == 81) {
  704|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  705|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  706|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  707|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80] = t;
  708|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  709|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  710|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  711|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  712|       |                         p78, p79, p80);
  713|       |      }
  714|       |      else if constexpr (N == 82) {
  715|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  716|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  717|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  718|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81] = t;
  719|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  720|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  721|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  722|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  723|       |                         p78, p79, p80, p81);
  724|       |      }
  725|       |      else if constexpr (N == 83) {
  726|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  727|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  728|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  729|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82] = t;
  730|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  731|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  732|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  733|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  734|       |                         p78, p79, p80, p81, p82);
  735|       |      }
  736|       |      else if constexpr (N == 84) {
  737|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  738|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  739|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  740|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83] = t;
  741|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  742|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  743|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  744|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  745|       |                         p78, p79, p80, p81, p82, p83);
  746|       |      }
  747|       |      else if constexpr (N == 85) {
  748|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  749|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  750|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  751|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84] = t;
  752|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  753|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  754|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  755|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  756|       |                         p78, p79, p80, p81, p82, p83, p84);
  757|       |      }
  758|       |      else if constexpr (N == 86) {
  759|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  760|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  761|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  762|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84,
  763|       |                p85] = t;
  764|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  765|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  766|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  767|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  768|       |                         p78, p79, p80, p81, p82, p83, p84, p85);
  769|       |      }
  770|       |      else if constexpr (N == 87) {
  771|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  772|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  773|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  774|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  775|       |                p86] = t;
  776|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  777|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  778|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  779|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  780|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86);
  781|       |      }
  782|       |      else if constexpr (N == 88) {
  783|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  784|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  785|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  786|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  787|       |                p86, p87] = t;
  788|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  789|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  790|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  791|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  792|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87);
  793|       |      }
  794|       |      else if constexpr (N == 89) {
  795|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  796|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  797|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  798|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  799|       |                p86, p87, p88] = t;
  800|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  801|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  802|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  803|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  804|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88);
  805|       |      }
  806|       |      else if constexpr (N == 90) {
  807|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  808|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  809|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  810|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  811|       |                p86, p87, p88, p89] = t;
  812|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  813|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  814|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  815|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  816|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89);
  817|       |      }
  818|       |      else if constexpr (N == 91) {
  819|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  820|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  821|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  822|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  823|       |                p86, p87, p88, p89, p90] = t;
  824|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  825|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  826|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  827|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  828|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90);
  829|       |      }
  830|       |      else if constexpr (N == 92) {
  831|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  832|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  833|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  834|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  835|       |                p86, p87, p88, p89, p90, p91] = t;
  836|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  837|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  838|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  839|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  840|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91);
  841|       |      }
  842|       |      else if constexpr (N == 93) {
  843|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  844|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  845|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  846|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  847|       |                p86, p87, p88, p89, p90, p91, p92] = t;
  848|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  849|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  850|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  851|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  852|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92);
  853|       |      }
  854|       |      else if constexpr (N == 94) {
  855|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  856|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  857|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  858|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  859|       |                p86, p87, p88, p89, p90, p91, p92, p93] = t;
  860|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  861|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  862|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  863|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  864|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93);
  865|       |      }
  866|       |      else if constexpr (N == 95) {
  867|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  868|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  869|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  870|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  871|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94] = t;
  872|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  873|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  874|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  875|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  876|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94);
  877|       |      }
  878|       |      else if constexpr (N == 96) {
  879|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  880|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  881|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  882|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  883|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95] = t;
  884|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  885|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  886|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  887|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  888|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95);
  889|       |      }
  890|       |      else if constexpr (N == 97) {
  891|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  892|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  893|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  894|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  895|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96] = t;
  896|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  897|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  898|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  899|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  900|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96);
  901|       |      }
  902|       |      else if constexpr (N == 98) {
  903|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  904|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  905|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  906|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  907|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97] = t;
  908|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  909|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  910|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  911|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  912|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  913|       |                         p97);
  914|       |      }
  915|       |      else if constexpr (N == 99) {
  916|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  917|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  918|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  919|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  920|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98] = t;
  921|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  922|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  923|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  924|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  925|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  926|       |                         p97, p98);
  927|       |      }
  928|       |      else if constexpr (N == 100) {
  929|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  930|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  931|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  932|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  933|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99] = t;
  934|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  935|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  936|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  937|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  938|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  939|       |                         p97, p98, p99);
  940|       |      }
  941|       |      else if constexpr (N == 101) {
  942|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  943|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  944|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  945|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  946|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100] = t;
  947|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  948|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  949|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  950|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  951|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  952|       |                         p97, p98, p99, p100);
  953|       |      }
  954|       |      else if constexpr (N == 102) {
  955|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  956|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  957|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  958|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  959|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101] = t;
  960|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  961|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  962|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  963|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  964|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  965|       |                         p97, p98, p99, p100, p101);
  966|       |      }
  967|       |      else if constexpr (N == 103) {
  968|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  969|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  970|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  971|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  972|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102] = t;
  973|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  974|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  975|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  976|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  977|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  978|       |                         p97, p98, p99, p100, p101, p102);
  979|       |      }
  980|       |      else if constexpr (N == 104) {
  981|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  982|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  983|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  984|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  985|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103] = t;
  986|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  987|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  988|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  989|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  990|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  991|       |                         p97, p98, p99, p100, p101, p102, p103);
  992|       |      }
  993|       |      else if constexpr (N == 105) {
  994|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  995|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  996|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  997|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  998|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104] = t;
  999|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1000|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1001|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1002|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1003|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1004|       |                         p97, p98, p99, p100, p101, p102, p103, p104);
 1005|       |      }
 1006|       |      else if constexpr (N == 106) {
 1007|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1008|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1009|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1010|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1011|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1012|       |                p105] = t;
 1013|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1014|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1015|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1016|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1017|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1018|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105);
 1019|       |      }
 1020|       |      else if constexpr (N == 107) {
 1021|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1022|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1023|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1024|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1025|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1026|       |                p105, p106] = t;
 1027|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1028|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1029|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1030|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1031|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1032|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106);
 1033|       |      }
 1034|       |      else if constexpr (N == 108) {
 1035|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1036|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1037|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1038|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1039|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1040|       |                p105, p106, p107] = t;
 1041|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1042|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1043|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1044|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1045|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1046|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107);
 1047|       |      }
 1048|       |      else if constexpr (N == 109) {
 1049|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1050|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1051|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1052|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1053|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1054|       |                p105, p106, p107, p108] = t;
 1055|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1056|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1057|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1058|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1059|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1060|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108);
 1061|       |      }
 1062|       |      else if constexpr (N == 110) {
 1063|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1064|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1065|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1066|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1067|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1068|       |                p105, p106, p107, p108, p109] = t;
 1069|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1070|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1071|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1072|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1073|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1074|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109);
 1075|       |      }
 1076|       |      else if constexpr (N == 111) {
 1077|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1078|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1079|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1080|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1081|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1082|       |                p105, p106, p107, p108, p109, p110] = t;
 1083|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1084|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1085|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1086|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1087|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1088|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110);
 1089|       |      }
 1090|       |      else if constexpr (N == 112) {
 1091|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1092|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1093|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1094|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1095|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1096|       |                p105, p106, p107, p108, p109, p110, p111] = t;
 1097|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1098|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1099|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1100|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1101|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1102|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111);
 1103|       |      }
 1104|       |      else if constexpr (N == 113) {
 1105|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1106|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1107|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1108|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1109|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1110|       |                p105, p106, p107, p108, p109, p110, p111, p112] = t;
 1111|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1112|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1113|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1114|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1115|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1116|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112);
 1117|       |      }
 1118|       |      else if constexpr (N == 114) {
 1119|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1120|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1121|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1122|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1123|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1124|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113] = t;
 1125|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1126|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1127|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1128|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1129|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1130|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1131|       |                         p113);
 1132|       |      }
 1133|       |      else if constexpr (N == 115) {
 1134|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1135|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1136|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1137|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1138|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1139|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114] = t;
 1140|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1141|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1142|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1143|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1144|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1145|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1146|       |                         p113, p114);
 1147|       |      }
 1148|       |      else if constexpr (N == 116) {
 1149|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1150|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1151|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1152|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1153|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1154|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115] = t;
 1155|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1156|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1157|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1158|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1159|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1160|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1161|       |                         p113, p114, p115);
 1162|       |      }
 1163|       |      else if constexpr (N == 117) {
 1164|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1165|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1166|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1167|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1168|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1169|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116] = t;
 1170|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1171|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1172|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1173|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1174|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1175|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1176|       |                         p113, p114, p115, p116);
 1177|       |      }
 1178|       |      else if constexpr (N == 118) {
 1179|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1180|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1181|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1182|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1183|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1184|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117] = t;
 1185|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1186|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1187|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1188|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1189|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1190|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1191|       |                         p113, p114, p115, p116, p117);
 1192|       |      }
 1193|       |      else if constexpr (N == 119) {
 1194|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1195|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1196|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1197|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1198|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1199|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118] = t;
 1200|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1201|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1202|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1203|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1204|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1205|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1206|       |                         p113, p114, p115, p116, p117, p118);
 1207|       |      }
 1208|       |      else if constexpr (N == 120) {
 1209|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1210|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1211|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1212|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1213|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1214|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119] = t;
 1215|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1216|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1217|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1218|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1219|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1220|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1221|       |                         p113, p114, p115, p116, p117, p118, p119);
 1222|       |      }
 1223|       |      else if constexpr (N == 121) {
 1224|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1225|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1226|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1227|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1228|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1229|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120] = t;
 1230|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1231|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1232|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1233|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1234|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1235|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1236|       |                         p113, p114, p115, p116, p117, p118, p119, p120);
 1237|       |      }
 1238|       |      else if constexpr (N == 122) {
 1239|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1240|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1241|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1242|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1243|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1244|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121] =
 1245|       |            t;
 1246|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1247|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1248|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1249|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1250|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1251|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1252|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121);
 1253|       |      }
 1254|       |      else if constexpr (N == 123) {
 1255|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1256|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1257|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1258|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1259|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1260|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1261|       |                p122] = t;
 1262|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1263|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1264|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1265|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1266|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1267|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1268|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122);
 1269|       |      }
 1270|       |      else if constexpr (N == 124) {
 1271|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1272|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1273|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1274|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1275|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1276|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1277|       |                p122, p123] = t;
 1278|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1279|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1280|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1281|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1282|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1283|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1284|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123);
 1285|       |      }
 1286|       |      else if constexpr (N == 125) {
 1287|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1288|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1289|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1290|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1291|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1292|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1293|       |                p122, p123, p124] = t;
 1294|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1295|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1296|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1297|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1298|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1299|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1300|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124);
 1301|       |      }
 1302|       |      else if constexpr (N == 126) {
 1303|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1304|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1305|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1306|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1307|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1308|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1309|       |                p122, p123, p124, p125] = t;
 1310|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1311|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1312|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1313|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1314|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1315|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1316|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125);
 1317|       |      }
 1318|       |      else if constexpr (N == 127) {
 1319|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1320|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1321|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1322|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1323|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1324|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1325|       |                p122, p123, p124, p125, p126] = t;
 1326|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1327|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1328|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1329|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1330|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1331|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1332|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126);
 1333|       |      }
 1334|       |      else if constexpr (N == 128) {
 1335|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1336|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1337|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1338|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1339|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1340|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1341|       |                p122, p123, p124, p125, p126, p127] = t;
 1342|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1343|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1344|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1345|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1346|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1347|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1348|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127);
 1349|       |      }
 1350|  97.2k|   }
_ZN3glz6to_tieIRN12jsonrpc_fuzz6amountELm1EQleT0_L_ZNS_6detail25max_pure_reflection_countEEEEDcOT_:
  146|    300|   {
  147|       |      if constexpr (N == 0) {
  148|       |         return tuple{};
  149|       |      }
  150|    300|      else if constexpr (N == 1) {
  151|    300|         auto& [p] = t;
  152|    300|         return glz::tie(p);
  153|       |      }
  154|       |      else if constexpr (N == 2) {
  155|       |         auto& [p0, p1] = t;
  156|       |         return glz::tie(p0, p1);
  157|       |      }
  158|       |      else if constexpr (N == 3) {
  159|       |         auto& [p0, p1, p2] = t;
  160|       |         return glz::tie(p0, p1, p2);
  161|       |      }
  162|       |      else if constexpr (N == 4) {
  163|       |         auto& [p0, p1, p2, p3] = t;
  164|       |         return glz::tie(p0, p1, p2, p3);
  165|       |      }
  166|       |      else if constexpr (N == 5) {
  167|       |         auto& [p0, p1, p2, p3, p4] = t;
  168|       |         return glz::tie(p0, p1, p2, p3, p4);
  169|       |      }
  170|       |      else if constexpr (N == 6) {
  171|       |         auto& [p0, p1, p2, p3, p4, p5] = t;
  172|       |         return glz::tie(p0, p1, p2, p3, p4, p5);
  173|       |      }
  174|       |      else if constexpr (N == 7) {
  175|       |         auto& [p0, p1, p2, p3, p4, p5, p6] = t;
  176|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6);
  177|       |      }
  178|       |      else if constexpr (N == 8) {
  179|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7] = t;
  180|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7);
  181|       |      }
  182|       |      else if constexpr (N == 9) {
  183|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8] = t;
  184|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8);
  185|       |      }
  186|       |      else if constexpr (N == 10) {
  187|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9] = t;
  188|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
  189|       |      }
  190|       |      else if constexpr (N == 11) {
  191|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10] = t;
  192|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
  193|       |      }
  194|       |      else if constexpr (N == 12) {
  195|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11] = t;
  196|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11);
  197|       |      }
  198|       |      else if constexpr (N == 13) {
  199|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12] = t;
  200|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12);
  201|       |      }
  202|       |      else if constexpr (N == 14) {
  203|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13] = t;
  204|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13);
  205|       |      }
  206|       |      else if constexpr (N == 15) {
  207|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14] = t;
  208|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
  209|       |      }
  210|       |      else if constexpr (N == 16) {
  211|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15] = t;
  212|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15);
  213|       |      }
  214|       |      else if constexpr (N == 17) {
  215|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16] = t;
  216|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16);
  217|       |      }
  218|       |      else if constexpr (N == 18) {
  219|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17] = t;
  220|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17);
  221|       |      }
  222|       |      else if constexpr (N == 19) {
  223|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18] = t;
  224|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18);
  225|       |      }
  226|       |      else if constexpr (N == 20) {
  227|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19] = t;
  228|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19);
  229|       |      }
  230|       |      else if constexpr (N == 21) {
  231|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20] = t;
  232|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20);
  233|       |      }
  234|       |      else if constexpr (N == 22) {
  235|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21] = t;
  236|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  237|       |                         p21);
  238|       |      }
  239|       |      else if constexpr (N == 23) {
  240|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21,
  241|       |                p22] = t;
  242|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  243|       |                         p21, p22);
  244|       |      }
  245|       |      else if constexpr (N == 24) {
  246|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  247|       |                p23] = t;
  248|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  249|       |                         p21, p22, p23);
  250|       |      }
  251|       |      else if constexpr (N == 25) {
  252|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  253|       |                p23, p24] = t;
  254|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  255|       |                         p21, p22, p23, p24);
  256|       |      }
  257|       |      else if constexpr (N == 26) {
  258|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  259|       |                p23, p24, p25] = t;
  260|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  261|       |                         p21, p22, p23, p24, p25);
  262|       |      }
  263|       |      else if constexpr (N == 27) {
  264|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  265|       |                p23, p24, p25, p26] = t;
  266|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  267|       |                         p21, p22, p23, p24, p25, p26);
  268|       |      }
  269|       |      else if constexpr (N == 28) {
  270|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  271|       |                p23, p24, p25, p26, p27] = t;
  272|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  273|       |                         p21, p22, p23, p24, p25, p26, p27);
  274|       |      }
  275|       |      else if constexpr (N == 29) {
  276|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  277|       |                p23, p24, p25, p26, p27, p28] = t;
  278|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  279|       |                         p21, p22, p23, p24, p25, p26, p27, p28);
  280|       |      }
  281|       |      else if constexpr (N == 30) {
  282|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  283|       |                p23, p24, p25, p26, p27, p28, p29] = t;
  284|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  285|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29);
  286|       |      }
  287|       |      else if constexpr (N == 31) {
  288|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  289|       |                p23, p24, p25, p26, p27, p28, p29, p30] = t;
  290|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  291|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30);
  292|       |      }
  293|       |      else if constexpr (N == 32) {
  294|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  295|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31] = t;
  296|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  297|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31);
  298|       |      }
  299|       |      else if constexpr (N == 33) {
  300|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  301|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32] = t;
  302|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  303|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32);
  304|       |      }
  305|       |      else if constexpr (N == 34) {
  306|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  307|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33] = t;
  308|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  309|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33);
  310|       |      }
  311|       |      else if constexpr (N == 35) {
  312|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  313|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34] = t;
  314|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  315|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34);
  316|       |      }
  317|       |      else if constexpr (N == 36) {
  318|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  319|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35] = t;
  320|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  321|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35);
  322|       |      }
  323|       |      else if constexpr (N == 37) {
  324|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  325|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36] = t;
  326|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  327|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36);
  328|       |      }
  329|       |      else if constexpr (N == 38) {
  330|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  331|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37] = t;
  332|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  333|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37);
  334|       |      }
  335|       |      else if constexpr (N == 39) {
  336|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  337|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38] = t;
  338|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  339|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38);
  340|       |      }
  341|       |      else if constexpr (N == 40) {
  342|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  343|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39] = t;
  344|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  345|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39);
  346|       |      }
  347|       |      else if constexpr (N == 41) {
  348|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  349|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40] = t;
  350|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  351|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  352|       |                         p40);
  353|       |      }
  354|       |      else if constexpr (N == 42) {
  355|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  356|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41] = t;
  357|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  358|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  359|       |                         p40, p41);
  360|       |      }
  361|       |      else if constexpr (N == 43) {
  362|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  363|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42] = t;
  364|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  365|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  366|       |                         p40, p41, p42);
  367|       |      }
  368|       |      else if constexpr (N == 44) {
  369|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  370|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42,
  371|       |                p43] = t;
  372|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  373|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  374|       |                         p40, p41, p42, p43);
  375|       |      }
  376|       |      else if constexpr (N == 45) {
  377|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  378|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  379|       |                p44] = t;
  380|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  381|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  382|       |                         p40, p41, p42, p43, p44);
  383|       |      }
  384|       |      else if constexpr (N == 46) {
  385|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  386|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  387|       |                p44, p45] = t;
  388|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  389|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  390|       |                         p40, p41, p42, p43, p44, p45);
  391|       |      }
  392|       |      else if constexpr (N == 47) {
  393|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  394|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  395|       |                p44, p45, p46] = t;
  396|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  397|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  398|       |                         p40, p41, p42, p43, p44, p45, p46);
  399|       |      }
  400|       |      else if constexpr (N == 48) {
  401|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  402|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  403|       |                p44, p45, p46, p47] = t;
  404|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  405|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  406|       |                         p40, p41, p42, p43, p44, p45, p46, p47);
  407|       |      }
  408|       |      else if constexpr (N == 49) {
  409|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  410|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  411|       |                p44, p45, p46, p47, p48] = t;
  412|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  413|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  414|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48);
  415|       |      }
  416|       |      else if constexpr (N == 50) {
  417|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  418|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  419|       |                p44, p45, p46, p47, p48, p49] = t;
  420|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  421|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  422|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49);
  423|       |      }
  424|       |      else if constexpr (N == 51) {
  425|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  426|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  427|       |                p44, p45, p46, p47, p48, p49, p50] = t;
  428|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  429|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  430|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50);
  431|       |      }
  432|       |      else if constexpr (N == 52) {
  433|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  434|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  435|       |                p44, p45, p46, p47, p48, p49, p50, p51] = t;
  436|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  437|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  438|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51);
  439|       |      }
  440|       |      else if constexpr (N == 53) {
  441|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  442|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  443|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52] = t;
  444|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  445|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  446|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52);
  447|       |      }
  448|       |      else if constexpr (N == 54) {
  449|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  450|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  451|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53] = t;
  452|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  453|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  454|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53);
  455|       |      }
  456|       |      else if constexpr (N == 55) {
  457|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  458|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  459|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54] = t;
  460|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  461|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  462|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54);
  463|       |      }
  464|       |      else if constexpr (N == 56) {
  465|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  466|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  467|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55] = t;
  468|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  469|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  470|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55);
  471|       |      }
  472|       |      else if constexpr (N == 57) {
  473|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  474|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  475|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56] = t;
  476|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  477|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  478|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56);
  479|       |      }
  480|       |      else if constexpr (N == 58) {
  481|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  482|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  483|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57] = t;
  484|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  485|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  486|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57);
  487|       |      }
  488|       |      else if constexpr (N == 59) {
  489|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  490|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  491|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58] = t;
  492|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  493|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  494|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58);
  495|       |      }
  496|       |      else if constexpr (N == 60) {
  497|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  498|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  499|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59] = t;
  500|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  501|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  502|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  503|       |                         p59);
  504|       |      }
  505|       |      else if constexpr (N == 61) {
  506|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  507|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  508|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60] = t;
  509|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  510|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  511|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  512|       |                         p59, p60);
  513|       |      }
  514|       |      else if constexpr (N == 62) {
  515|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  516|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  517|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61] = t;
  518|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  519|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  520|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  521|       |                         p59, p60, p61);
  522|       |      }
  523|       |      else if constexpr (N == 63) {
  524|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  525|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  526|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62] = t;
  527|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  528|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  529|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  530|       |                         p59, p60, p61, p62);
  531|       |      }
  532|       |      else if constexpr (N == 64) {
  533|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  534|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  535|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63] = t;
  536|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  537|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  538|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  539|       |                         p59, p60, p61, p62, p63);
  540|       |      }
  541|       |      else if constexpr (N == 65) {
  542|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  543|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  544|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63,
  545|       |                p64] = t;
  546|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  547|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  548|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  549|       |                         p59, p60, p61, p62, p63, p64);
  550|       |      }
  551|       |      else if constexpr (N == 66) {
  552|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  553|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  554|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  555|       |                p65] = t;
  556|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  557|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  558|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  559|       |                         p59, p60, p61, p62, p63, p64, p65);
  560|       |      }
  561|       |      else if constexpr (N == 67) {
  562|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  563|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  564|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  565|       |                p65, p66] = t;
  566|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  567|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  568|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  569|       |                         p59, p60, p61, p62, p63, p64, p65, p66);
  570|       |      }
  571|       |      else if constexpr (N == 68) {
  572|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  573|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  574|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  575|       |                p65, p66, p67] = t;
  576|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  577|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  578|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  579|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67);
  580|       |      }
  581|       |      else if constexpr (N == 69) {
  582|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  583|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  584|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  585|       |                p65, p66, p67, p68] = t;
  586|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  587|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  588|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  589|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68);
  590|       |      }
  591|       |      else if constexpr (N == 70) {
  592|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  593|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  594|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  595|       |                p65, p66, p67, p68, p69] = t;
  596|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  597|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  598|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  599|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69);
  600|       |      }
  601|       |      else if constexpr (N == 71) {
  602|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  603|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  604|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  605|       |                p65, p66, p67, p68, p69, p70] = t;
  606|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  607|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  608|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  609|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70);
  610|       |      }
  611|       |      else if constexpr (N == 72) {
  612|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  613|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  614|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  615|       |                p65, p66, p67, p68, p69, p70, p71] = t;
  616|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  617|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  618|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  619|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71);
  620|       |      }
  621|       |      else if constexpr (N == 73) {
  622|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  623|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  624|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  625|       |                p65, p66, p67, p68, p69, p70, p71, p72] = t;
  626|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  627|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  628|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  629|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72);
  630|       |      }
  631|       |      else if constexpr (N == 74) {
  632|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  633|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  634|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  635|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73] = t;
  636|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  637|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  638|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  639|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73);
  640|       |      }
  641|       |      else if constexpr (N == 75) {
  642|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  643|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  644|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  645|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74] = t;
  646|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  647|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  648|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  649|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74);
  650|       |      }
  651|       |      else if constexpr (N == 76) {
  652|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  653|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  654|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  655|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75] = t;
  656|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  657|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  658|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  659|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75);
  660|       |      }
  661|       |      else if constexpr (N == 77) {
  662|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  663|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  664|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  665|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76] = t;
  666|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  667|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  668|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  669|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76);
  670|       |      }
  671|       |      else if constexpr (N == 78) {
  672|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  673|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  674|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  675|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77] = t;
  676|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  677|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  678|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  679|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77);
  680|       |      }
  681|       |      else if constexpr (N == 79) {
  682|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  683|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  684|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  685|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78] = t;
  686|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  687|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  688|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  689|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  690|       |                         p78);
  691|       |      }
  692|       |      else if constexpr (N == 80) {
  693|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  694|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  695|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  696|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79] = t;
  697|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  698|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  699|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  700|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  701|       |                         p78, p79);
  702|       |      }
  703|       |      else if constexpr (N == 81) {
  704|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  705|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  706|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  707|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80] = t;
  708|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  709|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  710|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  711|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  712|       |                         p78, p79, p80);
  713|       |      }
  714|       |      else if constexpr (N == 82) {
  715|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  716|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  717|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  718|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81] = t;
  719|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  720|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  721|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  722|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  723|       |                         p78, p79, p80, p81);
  724|       |      }
  725|       |      else if constexpr (N == 83) {
  726|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  727|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  728|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  729|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82] = t;
  730|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  731|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  732|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  733|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  734|       |                         p78, p79, p80, p81, p82);
  735|       |      }
  736|       |      else if constexpr (N == 84) {
  737|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  738|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  739|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  740|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83] = t;
  741|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  742|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  743|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  744|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  745|       |                         p78, p79, p80, p81, p82, p83);
  746|       |      }
  747|       |      else if constexpr (N == 85) {
  748|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  749|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  750|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  751|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84] = t;
  752|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  753|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  754|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  755|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  756|       |                         p78, p79, p80, p81, p82, p83, p84);
  757|       |      }
  758|       |      else if constexpr (N == 86) {
  759|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  760|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  761|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  762|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84,
  763|       |                p85] = t;
  764|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  765|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  766|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  767|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  768|       |                         p78, p79, p80, p81, p82, p83, p84, p85);
  769|       |      }
  770|       |      else if constexpr (N == 87) {
  771|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  772|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  773|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  774|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  775|       |                p86] = t;
  776|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  777|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  778|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  779|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  780|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86);
  781|       |      }
  782|       |      else if constexpr (N == 88) {
  783|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  784|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  785|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  786|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  787|       |                p86, p87] = t;
  788|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  789|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  790|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  791|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  792|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87);
  793|       |      }
  794|       |      else if constexpr (N == 89) {
  795|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  796|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  797|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  798|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  799|       |                p86, p87, p88] = t;
  800|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  801|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  802|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  803|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  804|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88);
  805|       |      }
  806|       |      else if constexpr (N == 90) {
  807|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  808|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  809|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  810|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  811|       |                p86, p87, p88, p89] = t;
  812|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  813|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  814|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  815|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  816|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89);
  817|       |      }
  818|       |      else if constexpr (N == 91) {
  819|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  820|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  821|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  822|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  823|       |                p86, p87, p88, p89, p90] = t;
  824|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  825|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  826|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  827|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  828|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90);
  829|       |      }
  830|       |      else if constexpr (N == 92) {
  831|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  832|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  833|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  834|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  835|       |                p86, p87, p88, p89, p90, p91] = t;
  836|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  837|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  838|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  839|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  840|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91);
  841|       |      }
  842|       |      else if constexpr (N == 93) {
  843|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  844|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  845|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  846|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  847|       |                p86, p87, p88, p89, p90, p91, p92] = t;
  848|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  849|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  850|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  851|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  852|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92);
  853|       |      }
  854|       |      else if constexpr (N == 94) {
  855|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  856|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  857|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  858|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  859|       |                p86, p87, p88, p89, p90, p91, p92, p93] = t;
  860|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  861|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  862|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  863|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  864|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93);
  865|       |      }
  866|       |      else if constexpr (N == 95) {
  867|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  868|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  869|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  870|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  871|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94] = t;
  872|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  873|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  874|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  875|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  876|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94);
  877|       |      }
  878|       |      else if constexpr (N == 96) {
  879|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  880|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  881|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  882|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  883|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95] = t;
  884|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  885|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  886|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  887|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  888|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95);
  889|       |      }
  890|       |      else if constexpr (N == 97) {
  891|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  892|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  893|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  894|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  895|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96] = t;
  896|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  897|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  898|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  899|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  900|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96);
  901|       |      }
  902|       |      else if constexpr (N == 98) {
  903|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  904|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  905|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  906|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  907|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97] = t;
  908|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  909|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  910|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  911|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  912|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  913|       |                         p97);
  914|       |      }
  915|       |      else if constexpr (N == 99) {
  916|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  917|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  918|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  919|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  920|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98] = t;
  921|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  922|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  923|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  924|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  925|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  926|       |                         p97, p98);
  927|       |      }
  928|       |      else if constexpr (N == 100) {
  929|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  930|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  931|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  932|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  933|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99] = t;
  934|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  935|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  936|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  937|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  938|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  939|       |                         p97, p98, p99);
  940|       |      }
  941|       |      else if constexpr (N == 101) {
  942|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  943|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  944|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  945|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  946|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100] = t;
  947|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  948|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  949|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  950|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  951|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  952|       |                         p97, p98, p99, p100);
  953|       |      }
  954|       |      else if constexpr (N == 102) {
  955|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  956|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  957|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  958|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  959|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101] = t;
  960|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  961|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  962|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  963|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  964|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  965|       |                         p97, p98, p99, p100, p101);
  966|       |      }
  967|       |      else if constexpr (N == 103) {
  968|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  969|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  970|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  971|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  972|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102] = t;
  973|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  974|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  975|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  976|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  977|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  978|       |                         p97, p98, p99, p100, p101, p102);
  979|       |      }
  980|       |      else if constexpr (N == 104) {
  981|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  982|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  983|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  984|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  985|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103] = t;
  986|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
  987|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
  988|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
  989|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
  990|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
  991|       |                         p97, p98, p99, p100, p101, p102, p103);
  992|       |      }
  993|       |      else if constexpr (N == 105) {
  994|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
  995|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
  996|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
  997|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
  998|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104] = t;
  999|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1000|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1001|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1002|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1003|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1004|       |                         p97, p98, p99, p100, p101, p102, p103, p104);
 1005|       |      }
 1006|       |      else if constexpr (N == 106) {
 1007|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1008|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1009|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1010|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1011|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1012|       |                p105] = t;
 1013|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1014|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1015|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1016|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1017|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1018|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105);
 1019|       |      }
 1020|       |      else if constexpr (N == 107) {
 1021|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1022|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1023|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1024|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1025|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1026|       |                p105, p106] = t;
 1027|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1028|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1029|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1030|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1031|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1032|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106);
 1033|       |      }
 1034|       |      else if constexpr (N == 108) {
 1035|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1036|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1037|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1038|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1039|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1040|       |                p105, p106, p107] = t;
 1041|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1042|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1043|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1044|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1045|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1046|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107);
 1047|       |      }
 1048|       |      else if constexpr (N == 109) {
 1049|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1050|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1051|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1052|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1053|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1054|       |                p105, p106, p107, p108] = t;
 1055|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1056|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1057|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1058|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1059|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1060|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108);
 1061|       |      }
 1062|       |      else if constexpr (N == 110) {
 1063|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1064|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1065|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1066|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1067|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1068|       |                p105, p106, p107, p108, p109] = t;
 1069|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1070|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1071|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1072|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1073|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1074|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109);
 1075|       |      }
 1076|       |      else if constexpr (N == 111) {
 1077|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1078|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1079|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1080|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1081|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1082|       |                p105, p106, p107, p108, p109, p110] = t;
 1083|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1084|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1085|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1086|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1087|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1088|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110);
 1089|       |      }
 1090|       |      else if constexpr (N == 112) {
 1091|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1092|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1093|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1094|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1095|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1096|       |                p105, p106, p107, p108, p109, p110, p111] = t;
 1097|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1098|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1099|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1100|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1101|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1102|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111);
 1103|       |      }
 1104|       |      else if constexpr (N == 113) {
 1105|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1106|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1107|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1108|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1109|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1110|       |                p105, p106, p107, p108, p109, p110, p111, p112] = t;
 1111|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1112|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1113|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1114|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1115|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1116|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112);
 1117|       |      }
 1118|       |      else if constexpr (N == 114) {
 1119|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1120|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1121|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1122|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1123|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1124|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113] = t;
 1125|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1126|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1127|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1128|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1129|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1130|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1131|       |                         p113);
 1132|       |      }
 1133|       |      else if constexpr (N == 115) {
 1134|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1135|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1136|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1137|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1138|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1139|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114] = t;
 1140|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1141|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1142|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1143|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1144|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1145|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1146|       |                         p113, p114);
 1147|       |      }
 1148|       |      else if constexpr (N == 116) {
 1149|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1150|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1151|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1152|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1153|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1154|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115] = t;
 1155|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1156|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1157|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1158|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1159|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1160|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1161|       |                         p113, p114, p115);
 1162|       |      }
 1163|       |      else if constexpr (N == 117) {
 1164|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1165|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1166|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1167|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1168|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1169|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116] = t;
 1170|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1171|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1172|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1173|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1174|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1175|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1176|       |                         p113, p114, p115, p116);
 1177|       |      }
 1178|       |      else if constexpr (N == 118) {
 1179|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1180|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1181|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1182|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1183|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1184|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117] = t;
 1185|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1186|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1187|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1188|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1189|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1190|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1191|       |                         p113, p114, p115, p116, p117);
 1192|       |      }
 1193|       |      else if constexpr (N == 119) {
 1194|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1195|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1196|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1197|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1198|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1199|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118] = t;
 1200|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1201|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1202|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1203|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1204|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1205|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1206|       |                         p113, p114, p115, p116, p117, p118);
 1207|       |      }
 1208|       |      else if constexpr (N == 120) {
 1209|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1210|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1211|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1212|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1213|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1214|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119] = t;
 1215|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1216|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1217|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1218|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1219|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1220|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1221|       |                         p113, p114, p115, p116, p117, p118, p119);
 1222|       |      }
 1223|       |      else if constexpr (N == 121) {
 1224|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1225|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1226|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1227|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1228|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1229|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120] = t;
 1230|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1231|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1232|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1233|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1234|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1235|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1236|       |                         p113, p114, p115, p116, p117, p118, p119, p120);
 1237|       |      }
 1238|       |      else if constexpr (N == 122) {
 1239|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1240|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1241|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1242|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1243|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1244|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121] =
 1245|       |            t;
 1246|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1247|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1248|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1249|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1250|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1251|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1252|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121);
 1253|       |      }
 1254|       |      else if constexpr (N == 123) {
 1255|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1256|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1257|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1258|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1259|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1260|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1261|       |                p122] = t;
 1262|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1263|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1264|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1265|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1266|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1267|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1268|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122);
 1269|       |      }
 1270|       |      else if constexpr (N == 124) {
 1271|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1272|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1273|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1274|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1275|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1276|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1277|       |                p122, p123] = t;
 1278|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1279|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1280|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1281|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1282|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1283|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1284|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123);
 1285|       |      }
 1286|       |      else if constexpr (N == 125) {
 1287|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1288|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1289|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1290|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1291|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1292|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1293|       |                p122, p123, p124] = t;
 1294|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1295|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1296|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1297|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1298|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1299|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1300|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124);
 1301|       |      }
 1302|       |      else if constexpr (N == 126) {
 1303|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1304|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1305|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1306|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1307|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1308|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1309|       |                p122, p123, p124, p125] = t;
 1310|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1311|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1312|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1313|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1314|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1315|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1316|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125);
 1317|       |      }
 1318|       |      else if constexpr (N == 127) {
 1319|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1320|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1321|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1322|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1323|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1324|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1325|       |                p122, p123, p124, p125, p126] = t;
 1326|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1327|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1328|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1329|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1330|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1331|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1332|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126);
 1333|       |      }
 1334|       |      else if constexpr (N == 128) {
 1335|       |         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22,
 1336|       |                p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43,
 1337|       |                p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58, p59, p60, p61, p62, p63, p64,
 1338|       |                p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77, p78, p79, p80, p81, p82, p83, p84, p85,
 1339|       |                p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96, p97, p98, p99, p100, p101, p102, p103, p104,
 1340|       |                p105, p106, p107, p108, p109, p110, p111, p112, p113, p114, p115, p116, p117, p118, p119, p120, p121,
 1341|       |                p122, p123, p124, p125, p126, p127] = t;
 1342|       |         return glz::tie(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,
 1343|       |                         p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39,
 1344|       |                         p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53, p54, p55, p56, p57, p58,
 1345|       |                         p59, p60, p61, p62, p63, p64, p65, p66, p67, p68, p69, p70, p71, p72, p73, p74, p75, p76, p77,
 1346|       |                         p78, p79, p80, p81, p82, p83, p84, p85, p86, p87, p88, p89, p90, p91, p92, p93, p94, p95, p96,
 1347|       |                         p97, p98, p99, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111, p112,
 1348|       |                         p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127);
 1349|       |      }
 1350|    300|   }

_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE17register_endpointIN12jsonrpc_fuzz10member_apiENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  151|  80.3k|      {
  152|  80.3k|         register_read_write_endpoint(path, value, reg);
  153|  80.3k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz10member_apiENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  127|  80.3k|      {
  128|  80.3k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  80.3k|            if (state.has_body()) {
  130|  80.3k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  131|  80.3k|                  return;
  132|  80.3k|               }
  133|  80.3k|            }
  134|       |
  135|  80.3k|            if (state.notify()) {
  136|  80.3k|               return;
  137|  80.3k|            }
  138|       |
  139|  80.3k|            if (!state.has_body()) {
  140|  80.3k|               jsonrpc::write_response<Opts>(value, state);
  141|  80.3k|            }
  142|  80.3k|            else {
  143|  80.3k|               jsonrpc::write_response<Opts>(state);
  144|  80.3k|            }
  145|  80.3k|         };
  146|  80.3k|      }
_ZNK3glz7jsonrpc5state8has_bodyEv:
   28|  73.6k|         bool has_body() const { return has_params; }
_ZN3glz7jsonrpc11write_errorITkNS0_8is_stateERNS0_5stateEEEvOT_NS_3rpc7error_eERKNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEERKNS8_8optionalISE_EE:
   76|  18.2k|      {
   77|  18.2k|         if (state.notify()) {
  ------------------
  |  Branch (77:14): [True: 2.60k, False: 15.6k]
  ------------------
   78|  2.60k|            return; // No response for notifications
   79|  2.60k|         }
   80|       |
   81|  15.6k|         state.response = R"({"jsonrpc":"2.0","error":{"code":)";
   82|  15.6k|         state.response += std::to_string(static_cast<int>(code));
   83|  15.6k|         state.response += R"(,"message":)";
   84|  15.6k|         state.response += write_json(message).value_or("\"\"");
   85|  15.6k|         if (data) {
  ------------------
  |  Branch (85:14): [True: 15.6k, False: 0]
  ------------------
   86|  15.6k|            state.response += R"(,"data":)";
   87|  15.6k|            state.response += write_json(*data).value_or("null");
   88|  15.6k|         }
   89|  15.6k|         state.response += R"(},"id":)";
   90|  15.6k|         state.response += write_json(state.id).value_or("null");
   91|  15.6k|         state.response += "}";
   92|  15.6k|      }
_ZNK3glz7jsonrpc5state6notifyEv:
   27|  57.7k|         bool notify() const { return is_notification; }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS0_8is_stateERNS0_5stateEEEvOT0_:
   63|  4.98k|      {
   64|  4.98k|         if (state.notify()) {
  ------------------
  |  Branch (64:14): [True: 0, False: 4.98k]
  ------------------
   65|      0|            return; // No response for notifications
   66|      0|         }
   67|       |
   68|  4.98k|         state.response = R"({"jsonrpc":"2.0","result":null,"id":)";
   69|  4.98k|         state.response += write_json(state.id).value_or("null");
   70|  4.98k|         state.response += "}";
   71|  4.98k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointIiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_:
  241|   240k|      {
  242|   240k|         register_read_write_endpoint(path, var, reg);
  243|   240k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_:
  127|   240k|      {
  128|   240k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|   240k|            if (state.has_body()) {
  130|   240k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  131|   240k|                  return;
  132|   240k|               }
  133|   240k|            }
  134|       |
  135|   240k|            if (state.notify()) {
  136|   240k|               return;
  137|   240k|            }
  138|       |
  139|   240k|            if (!state.has_body()) {
  140|   240k|               jsonrpc::write_response<Opts>(value, state);
  141|   240k|            }
  142|   240k|            else {
  143|   240k|               jsonrpc::write_response<Opts>(state);
  144|   240k|            }
  145|   240k|         };
  146|   240k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESH_:
  128|    896|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|    896|            if (state.has_body()) {
  ------------------
  |  Branch (129:17): [True: 331, False: 565]
  ------------------
  130|    331|               if (!jsonrpc::read_params<Opts>(value, state)) {
  ------------------
  |  Branch (130:20): [True: 220, False: 111]
  ------------------
  131|    220|                  return;
  132|    220|               }
  133|    331|            }
  134|       |
  135|    676|            if (state.notify()) {
  ------------------
  |  Branch (135:17): [True: 518, False: 158]
  ------------------
  136|    518|               return;
  137|    518|            }
  138|       |
  139|    158|            if (!state.has_body()) {
  ------------------
  |  Branch (139:17): [True: 75, False: 83]
  ------------------
  140|     75|               jsonrpc::write_response<Opts>(value, state);
  141|     75|            }
  142|     83|            else {
  143|     83|               jsonrpc::write_response<Opts>(state);
  144|     83|            }
  145|    158|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERiTkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   97|  2.30k|      {
   98|  2.30k|         if (!state.has_body()) {
  ------------------
  |  Branch (98:14): [True: 955, False: 1.35k]
  ------------------
   99|    955|            return true; // No params to read
  100|    955|         }
  101|       |
  102|  1.35k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  103|  1.35k|         if (ec) {
  ------------------
  |  Branch (103:14): [True: 664, False: 686]
  ------------------
  104|    664|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  105|    664|            return false;
  106|    664|         }
  107|    686|         return true;
  108|  1.35k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERiTkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   37|    440|      {
   38|    440|         if (state.notify()) {
  ------------------
  |  Branch (38:14): [True: 0, False: 440]
  ------------------
   39|      0|            return; // No response for notifications
   40|      0|         }
   41|       |
   42|    440|         std::string result_json;
   43|    440|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   44|    440|         if (ec) {
  ------------------
  |  Branch (44:14): [True: 0, False: 440]
  ------------------
   45|       |            // Write error response
   46|      0|            state.response =
   47|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   48|      0|            state.response += write_json(state.id).value_or("null");
   49|      0|            state.response += "}";
   50|      0|            return;
   51|      0|         }
   52|       |
   53|    440|         state.response = R"({"jsonrpc":"2.0","result":)";
   54|    440|         state.response += result_json;
   55|    440|         state.response += R"(,"id":)";
   56|    440|         state.response += write_json(state.id).value_or("null");
   57|    440|         state.response += "}";
   58|    440|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE45register_member_function_with_params_endpointIN12jsonrpc_fuzz10member_apiEMS5_FiiEiiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEERT_T0_RT3_:
  271|  80.3k|      {
  272|  80.3k|         reg.endpoints[path] = [&value, func](jsonrpc::state&& state) mutable {
  273|  80.3k|            static thread_local Input input{};
  274|  80.3k|            input = {}; // reset to avoid stale optional/variant fields across calls
  275|  80.3k|            if (state.has_body()) {
  276|  80.3k|               if (!jsonrpc::read_params<Opts>(input, state)) {
  277|  80.3k|                  return;
  278|  80.3k|               }
  279|  80.3k|            }
  280|       |
  281|  80.3k|            if constexpr (std::same_as<Ret, void>) {
  282|  80.3k|               (value.*func)(input);
  283|       |
  284|  80.3k|               if (state.notify()) {
  285|  80.3k|                  return;
  286|  80.3k|               }
  287|       |
  288|  80.3k|               jsonrpc::write_response<Opts>(state);
  289|  80.3k|            }
  290|  80.3k|            else {
  291|  80.3k|               if (state.notify()) {
  292|  80.3k|                  std::ignore = (value.*func)(input);
  293|  80.3k|                  return;
  294|  80.3k|               }
  295|       |
  296|  80.3k|               jsonrpc::write_response<Opts>((value.*func)(input), state);
  297|  80.3k|            }
  298|  80.3k|         };
  299|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE45register_member_function_with_params_endpointIN12jsonrpc_fuzz10member_apiEMS5_FiiEiiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEERT_T0_RT3_ENUlONS_7jsonrpc5stateEE_clESM_:
  272|    965|         reg.endpoints[path] = [&value, func](jsonrpc::state&& state) mutable {
  273|    965|            static thread_local Input input{};
  274|    965|            input = {}; // reset to avoid stale optional/variant fields across calls
  275|    965|            if (state.has_body()) {
  ------------------
  |  Branch (275:17): [True: 485, False: 480]
  ------------------
  276|    485|               if (!jsonrpc::read_params<Opts>(input, state)) {
  ------------------
  |  Branch (276:20): [True: 199, False: 286]
  ------------------
  277|    199|                  return;
  278|    199|               }
  279|    485|            }
  280|       |
  281|       |            if constexpr (std::same_as<Ret, void>) {
  282|       |               (value.*func)(input);
  283|       |
  284|       |               if (state.notify()) {
  285|       |                  return;
  286|       |               }
  287|       |
  288|       |               jsonrpc::write_response<Opts>(state);
  289|       |            }
  290|    766|            else {
  291|    766|               if (state.notify()) {
  ------------------
  |  Branch (291:20): [True: 473, False: 293]
  ------------------
  292|    473|                  std::ignore = (value.*func)(input);
  293|    473|                  return;
  294|    473|               }
  295|       |
  296|    293|               jsonrpc::write_response<Opts>((value.*func)(input), state);
  297|    293|            }
  298|    766|         };
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEiTkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   37|    293|      {
   38|    293|         if (state.notify()) {
  ------------------
  |  Branch (38:14): [True: 0, False: 293]
  ------------------
   39|      0|            return; // No response for notifications
   40|      0|         }
   41|       |
   42|    293|         std::string result_json;
   43|    293|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   44|    293|         if (ec) {
  ------------------
  |  Branch (44:14): [True: 0, False: 293]
  ------------------
   45|       |            // Write error response
   46|      0|            state.response =
   47|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   48|      0|            state.response += write_json(state.id).value_or("null");
   49|      0|            state.response += "}";
   50|      0|            return;
   51|      0|         }
   52|       |
   53|    293|         state.response = R"({"jsonrpc":"2.0","result":)";
   54|    293|         state.response += result_json;
   55|    293|         state.response += R"(,"id":)";
   56|    293|         state.response += write_json(state.id).value_or("null");
   57|    293|         state.response += "}";
   58|    293|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE33register_member_function_endpointIN12jsonrpc_fuzz10member_apiEMS5_FvvEvNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEERT_T0_RT2_:
  247|  80.3k|      {
  248|  80.3k|         reg.endpoints[path] = [&value, func](jsonrpc::state&& state) mutable {
  249|  80.3k|            if constexpr (std::same_as<Ret, void>) {
  250|  80.3k|               (value.*func)();
  251|       |
  252|  80.3k|               if (state.notify()) {
  253|  80.3k|                  return;
  254|  80.3k|               }
  255|       |
  256|  80.3k|               jsonrpc::write_response<Opts>(state);
  257|  80.3k|            }
  258|  80.3k|            else {
  259|  80.3k|               if (state.notify()) {
  260|  80.3k|                  std::ignore = (value.*func)();
  261|  80.3k|                  return;
  262|  80.3k|               }
  263|       |
  264|  80.3k|               jsonrpc::write_response<Opts>((value.*func)(), state);
  265|  80.3k|            }
  266|  80.3k|         };
  267|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE33register_member_function_endpointIN12jsonrpc_fuzz10member_apiEMS5_FvvEvNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEERT_T0_RT2_ENUlONS_7jsonrpc5stateEE_clESM_:
  248|    396|         reg.endpoints[path] = [&value, func](jsonrpc::state&& state) mutable {
  249|    396|            if constexpr (std::same_as<Ret, void>) {
  250|    396|               (value.*func)();
  251|       |
  252|    396|               if (state.notify()) {
  ------------------
  |  Branch (252:20): [True: 323, False: 73]
  ------------------
  253|    323|                  return;
  254|    323|               }
  255|       |
  256|     73|               jsonrpc::write_response<Opts>(state);
  257|       |            }
  258|       |            else {
  259|       |               if (state.notify()) {
  260|       |                  std::ignore = (value.*func)();
  261|       |                  return;
  262|       |               }
  263|       |
  264|       |               jsonrpc::write_response<Opts>((value.*func)(), state);
  265|       |            }
  266|    396|         };
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE45register_member_function_with_params_endpointIN12jsonrpc_fuzz10member_apiEMS5_FNS4_5pointERKS6_ES6_S6_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSD_11char_traitsIcEEEERT_T0_RT3_:
  271|  80.3k|      {
  272|  80.3k|         reg.endpoints[path] = [&value, func](jsonrpc::state&& state) mutable {
  273|  80.3k|            static thread_local Input input{};
  274|  80.3k|            input = {}; // reset to avoid stale optional/variant fields across calls
  275|  80.3k|            if (state.has_body()) {
  276|  80.3k|               if (!jsonrpc::read_params<Opts>(input, state)) {
  277|  80.3k|                  return;
  278|  80.3k|               }
  279|  80.3k|            }
  280|       |
  281|  80.3k|            if constexpr (std::same_as<Ret, void>) {
  282|  80.3k|               (value.*func)(input);
  283|       |
  284|  80.3k|               if (state.notify()) {
  285|  80.3k|                  return;
  286|  80.3k|               }
  287|       |
  288|  80.3k|               jsonrpc::write_response<Opts>(state);
  289|  80.3k|            }
  290|  80.3k|            else {
  291|  80.3k|               if (state.notify()) {
  292|  80.3k|                  std::ignore = (value.*func)(input);
  293|  80.3k|                  return;
  294|  80.3k|               }
  295|       |
  296|  80.3k|               jsonrpc::write_response<Opts>((value.*func)(input), state);
  297|  80.3k|            }
  298|  80.3k|         };
  299|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE45register_member_function_with_params_endpointIN12jsonrpc_fuzz10member_apiEMS5_FNS4_5pointERKS6_ES6_S6_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSD_11char_traitsIcEEEERT_T0_RT3_ENUlONS_7jsonrpc5stateEE_clESP_:
  272|  1.13k|         reg.endpoints[path] = [&value, func](jsonrpc::state&& state) mutable {
  273|  1.13k|            static thread_local Input input{};
  274|  1.13k|            input = {}; // reset to avoid stale optional/variant fields across calls
  275|  1.13k|            if (state.has_body()) {
  ------------------
  |  Branch (275:17): [True: 544, False: 586]
  ------------------
  276|    544|               if (!jsonrpc::read_params<Opts>(input, state)) {
  ------------------
  |  Branch (276:20): [True: 474, False: 70]
  ------------------
  277|    474|                  return;
  278|    474|               }
  279|    544|            }
  280|       |
  281|       |            if constexpr (std::same_as<Ret, void>) {
  282|       |               (value.*func)(input);
  283|       |
  284|       |               if (state.notify()) {
  285|       |                  return;
  286|       |               }
  287|       |
  288|       |               jsonrpc::write_response<Opts>(state);
  289|       |            }
  290|    656|            else {
  291|    656|               if (state.notify()) {
  ------------------
  |  Branch (291:20): [True: 517, False: 139]
  ------------------
  292|    517|                  std::ignore = (value.*func)(input);
  293|    517|                  return;
  294|    517|               }
  295|       |
  296|    139|               jsonrpc::write_response<Opts>((value.*func)(input), state);
  297|    139|            }
  298|    656|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz5pointETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   97|  2.51k|      {
   98|  2.51k|         if (!state.has_body()) {
  ------------------
  |  Branch (98:14): [True: 1.06k, False: 1.45k]
  ------------------
   99|  1.06k|            return true; // No params to read
  100|  1.06k|         }
  101|       |
  102|  1.45k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  103|  1.45k|         if (ec) {
  ------------------
  |  Branch (103:14): [True: 1.33k, False: 119]
  ------------------
  104|  1.33k|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  105|  1.33k|            return false;
  106|  1.33k|         }
  107|    119|         return true;
  108|  1.45k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   37|    139|      {
   38|    139|         if (state.notify()) {
  ------------------
  |  Branch (38:14): [True: 0, False: 139]
  ------------------
   39|      0|            return; // No response for notifications
   40|      0|         }
   41|       |
   42|    139|         std::string result_json;
   43|    139|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   44|    139|         if (ec) {
  ------------------
  |  Branch (44:14): [True: 0, False: 139]
  ------------------
   45|       |            // Write error response
   46|      0|            state.response =
   47|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   48|      0|            state.response += write_json(state.id).value_or("null");
   49|      0|            state.response += "}";
   50|      0|            return;
   51|      0|         }
   52|       |
   53|    139|         state.response = R"({"jsonrpc":"2.0","result":)";
   54|    139|         state.response += result_json;
   55|    139|         state.response += R"(,"id":)";
   56|    139|         state.response += write_json(state.id).value_or("null");
   57|    139|         state.response += "}";
   58|    139|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE17register_endpointIN12jsonrpc_fuzz8fuzz_apiENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  151|  80.3k|      {
  152|  80.3k|         register_read_write_endpoint(path, value, reg);
  153|  80.3k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz8fuzz_apiENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  127|  80.3k|      {
  128|  80.3k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  80.3k|            if (state.has_body()) {
  130|  80.3k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  131|  80.3k|                  return;
  132|  80.3k|               }
  133|  80.3k|            }
  134|       |
  135|  80.3k|            if (state.notify()) {
  136|  80.3k|               return;
  137|  80.3k|            }
  138|       |
  139|  80.3k|            if (!state.has_body()) {
  140|  80.3k|               jsonrpc::write_response<Opts>(value, state);
  141|  80.3k|            }
  142|  80.3k|            else {
  143|  80.3k|               jsonrpc::write_response<Opts>(state);
  144|  80.3k|            }
  145|  80.3k|         };
  146|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz8fuzz_apiENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_:
  128|  13.6k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  13.6k|            if (state.has_body()) {
  ------------------
  |  Branch (129:17): [True: 9.24k, False: 4.39k]
  ------------------
  130|  9.24k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  ------------------
  |  Branch (130:20): [True: 8.15k, False: 1.09k]
  ------------------
  131|  8.15k|                  return;
  132|  8.15k|               }
  133|  9.24k|            }
  134|       |
  135|  5.48k|            if (state.notify()) {
  ------------------
  |  Branch (135:17): [True: 4.51k, False: 973]
  ------------------
  136|  4.51k|               return;
  137|  4.51k|            }
  138|       |
  139|    973|            if (!state.has_body()) {
  ------------------
  |  Branch (139:17): [True: 70, False: 903]
  ------------------
  140|     70|               jsonrpc::write_response<Opts>(value, state);
  141|     70|            }
  142|    903|            else {
  143|    903|               jsonrpc::write_response<Opts>(state);
  144|    903|            }
  145|    973|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz8fuzz_apiETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   97|  9.24k|      {
   98|  9.24k|         if (!state.has_body()) {
  ------------------
  |  Branch (98:14): [True: 0, False: 9.24k]
  ------------------
   99|      0|            return true; // No params to read
  100|      0|         }
  101|       |
  102|  9.24k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  103|  9.24k|         if (ec) {
  ------------------
  |  Branch (103:14): [True: 8.15k, False: 1.09k]
  ------------------
  104|  8.15k|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  105|  8.15k|            return false;
  106|  8.15k|         }
  107|  1.09k|         return true;
  108|  9.24k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz8fuzz_apiETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   37|     70|      {
   38|     70|         if (state.notify()) {
  ------------------
  |  Branch (38:14): [True: 0, False: 70]
  ------------------
   39|      0|            return; // No response for notifications
   40|      0|         }
   41|       |
   42|     70|         std::string result_json;
   43|     70|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   44|     70|         if (ec) {
  ------------------
  |  Branch (44:14): [True: 0, False: 70]
  ------------------
   45|       |            // Write error response
   46|      0|            state.response =
   47|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   48|      0|            state.response += write_json(state.id).value_or("null");
   49|      0|            state.response += "}";
   50|      0|            return;
   51|      0|         }
   52|       |
   53|     70|         state.response = R"({"jsonrpc":"2.0","result":)";
   54|     70|         state.response += result_json;
   55|     70|         state.response += R"(,"id":)";
   56|     70|         state.response += write_json(state.id).value_or("null");
   57|     70|         state.response += "}";
   58|     70|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS7_EERT_RT0_:
  241|   160k|      {
  242|   160k|         register_read_write_endpoint(path, var, reg);
  243|   160k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS7_EERT_RT0_:
  127|   160k|      {
  128|   160k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|   160k|            if (state.has_body()) {
  130|   160k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  131|   160k|                  return;
  132|   160k|               }
  133|   160k|            }
  134|       |
  135|   160k|            if (state.notify()) {
  136|   160k|               return;
  137|   160k|            }
  138|       |
  139|   160k|            if (!state.has_body()) {
  140|   160k|               jsonrpc::write_response<Opts>(value, state);
  141|   160k|            }
  142|   160k|            else {
  143|   160k|               jsonrpc::write_response<Opts>(state);
  144|   160k|            }
  145|   160k|         };
  146|   160k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS7_EERT_RT0_ENUlONS_7jsonrpc5stateEE_clESL_:
  128|    625|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|    625|            if (state.has_body()) {
  ------------------
  |  Branch (129:17): [True: 272, False: 353]
  ------------------
  130|    272|               if (!jsonrpc::read_params<Opts>(value, state)) {
  ------------------
  |  Branch (130:20): [True: 168, False: 104]
  ------------------
  131|    168|                  return;
  132|    168|               }
  133|    272|            }
  134|       |
  135|    457|            if (state.notify()) {
  ------------------
  |  Branch (135:17): [True: 346, False: 111]
  ------------------
  136|    346|               return;
  137|    346|            }
  138|       |
  139|    111|            if (!state.has_body()) {
  ------------------
  |  Branch (139:17): [True: 24, False: 87]
  ------------------
  140|     24|               jsonrpc::write_response<Opts>(value, state);
  141|     24|            }
  142|     87|            else {
  143|     87|               jsonrpc::write_response<Opts>(state);
  144|     87|            }
  145|    111|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   97|  3.78k|      {
   98|  3.78k|         if (!state.has_body()) {
  ------------------
  |  Branch (98:14): [True: 2.31k, False: 1.47k]
  ------------------
   99|  2.31k|            return true; // No params to read
  100|  2.31k|         }
  101|       |
  102|  1.47k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  103|  1.47k|         if (ec) {
  ------------------
  |  Branch (103:14): [True: 738, False: 736]
  ------------------
  104|    738|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  105|    738|            return false;
  106|    738|         }
  107|    736|         return true;
  108|  1.47k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   37|    718|      {
   38|    718|         if (state.notify()) {
  ------------------
  |  Branch (38:14): [True: 0, False: 718]
  ------------------
   39|      0|            return; // No response for notifications
   40|      0|         }
   41|       |
   42|    718|         std::string result_json;
   43|    718|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   44|    718|         if (ec) {
  ------------------
  |  Branch (44:14): [True: 0, False: 718]
  ------------------
   45|       |            // Write error response
   46|      0|            state.response =
   47|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   48|      0|            state.response += write_json(state.id).value_or("null");
   49|      0|            state.response += "}";
   50|      0|            return;
   51|      0|         }
   52|       |
   53|    718|         state.response = R"({"jsonrpc":"2.0","result":)";
   54|    718|         state.response += result_json;
   55|    718|         state.response += R"(,"id":)";
   56|    718|         state.response += write_json(state.id).value_or("null");
   57|    718|         state.response += "}";
   58|    718|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointIdNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_:
  241|   160k|      {
  242|   160k|         register_read_write_endpoint(path, var, reg);
  243|   160k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIdNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_:
  127|   160k|      {
  128|   160k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|   160k|            if (state.has_body()) {
  130|   160k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  131|   160k|                  return;
  132|   160k|               }
  133|   160k|            }
  134|       |
  135|   160k|            if (state.notify()) {
  136|   160k|               return;
  137|   160k|            }
  138|       |
  139|   160k|            if (!state.has_body()) {
  140|   160k|               jsonrpc::write_response<Opts>(value, state);
  141|   160k|            }
  142|   160k|            else {
  143|   160k|               jsonrpc::write_response<Opts>(state);
  144|   160k|            }
  145|   160k|         };
  146|   160k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIdNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESH_:
  128|  1.38k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  1.38k|            if (state.has_body()) {
  ------------------
  |  Branch (129:17): [True: 711, False: 672]
  ------------------
  130|    711|               if (!jsonrpc::read_params<Opts>(value, state)) {
  ------------------
  |  Branch (130:20): [True: 208, False: 503]
  ------------------
  131|    208|                  return;
  132|    208|               }
  133|    711|            }
  134|       |
  135|  1.17k|            if (state.notify()) {
  ------------------
  |  Branch (135:17): [True: 685, False: 490]
  ------------------
  136|    685|               return;
  137|    685|            }
  138|       |
  139|    490|            if (!state.has_body()) {
  ------------------
  |  Branch (139:17): [True: 21, False: 469]
  ------------------
  140|     21|               jsonrpc::write_response<Opts>(value, state);
  141|     21|            }
  142|    469|            else {
  143|    469|               jsonrpc::write_response<Opts>(state);
  144|    469|            }
  145|    490|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERdTkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   97|    711|      {
   98|    711|         if (!state.has_body()) {
  ------------------
  |  Branch (98:14): [True: 0, False: 711]
  ------------------
   99|      0|            return true; // No params to read
  100|      0|         }
  101|       |
  102|    711|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  103|    711|         if (ec) {
  ------------------
  |  Branch (103:14): [True: 208, False: 503]
  ------------------
  104|    208|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  105|    208|            return false;
  106|    208|         }
  107|    503|         return true;
  108|    711|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERdTkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   37|  1.89k|      {
   38|  1.89k|         if (state.notify()) {
  ------------------
  |  Branch (38:14): [True: 0, False: 1.89k]
  ------------------
   39|      0|            return; // No response for notifications
   40|      0|         }
   41|       |
   42|  1.89k|         std::string result_json;
   43|  1.89k|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   44|  1.89k|         if (ec) {
  ------------------
  |  Branch (44:14): [True: 0, False: 1.89k]
  ------------------
   45|       |            // Write error response
   46|      0|            state.response =
   47|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   48|      0|            state.response += write_json(state.id).value_or("null");
   49|      0|            state.response += "}";
   50|      0|            return;
   51|      0|         }
   52|       |
   53|  1.89k|         state.response = R"({"jsonrpc":"2.0","result":)";
   54|  1.89k|         state.response += result_json;
   55|  1.89k|         state.response += R"(,"id":)";
   56|  1.89k|         state.response += write_json(state.id).value_or("null");
   57|  1.89k|         state.response += "}";
   58|  1.89k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE24register_object_endpointIN12jsonrpc_fuzz5pointENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  212|  80.3k|      {
  213|  80.3k|         register_read_write_endpoint(path, obj, reg);
  214|  80.3k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz5pointENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  127|  80.3k|      {
  128|  80.3k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  80.3k|            if (state.has_body()) {
  130|  80.3k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  131|  80.3k|                  return;
  132|  80.3k|               }
  133|  80.3k|            }
  134|       |
  135|  80.3k|            if (state.notify()) {
  136|  80.3k|               return;
  137|  80.3k|            }
  138|       |
  139|  80.3k|            if (!state.has_body()) {
  140|  80.3k|               jsonrpc::write_response<Opts>(value, state);
  141|  80.3k|            }
  142|  80.3k|            else {
  143|  80.3k|               jsonrpc::write_response<Opts>(state);
  144|  80.3k|            }
  145|  80.3k|         };
  146|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz5pointENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_:
  128|  1.46k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  1.46k|            if (state.has_body()) {
  ------------------
  |  Branch (129:17): [True: 332, False: 1.13k]
  ------------------
  130|    332|               if (!jsonrpc::read_params<Opts>(value, state)) {
  ------------------
  |  Branch (130:20): [True: 323, False: 9]
  ------------------
  131|    323|                  return;
  132|    323|               }
  133|    332|            }
  134|       |
  135|  1.14k|            if (state.notify()) {
  ------------------
  |  Branch (135:17): [True: 1.00k, False: 139]
  ------------------
  136|  1.00k|               return;
  137|  1.00k|            }
  138|       |
  139|    139|            if (!state.has_body()) {
  ------------------
  |  Branch (139:17): [True: 132, False: 7]
  ------------------
  140|    132|               jsonrpc::write_response<Opts>(value, state);
  141|    132|            }
  142|      7|            else {
  143|      7|               jsonrpc::write_response<Opts>(state);
  144|      7|            }
  145|    139|         };
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz5pointETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   37|    285|      {
   38|    285|         if (state.notify()) {
  ------------------
  |  Branch (38:14): [True: 0, False: 285]
  ------------------
   39|      0|            return; // No response for notifications
   40|      0|         }
   41|       |
   42|    285|         std::string result_json;
   43|    285|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   44|    285|         if (ec) {
  ------------------
  |  Branch (44:14): [True: 0, False: 285]
  ------------------
   45|       |            // Write error response
   46|      0|            state.response =
   47|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   48|      0|            state.response += write_json(state.id).value_or("null");
   49|      0|            state.response += "}";
   50|      0|            return;
   51|      0|         }
   52|       |
   53|    285|         state.response = R"({"jsonrpc":"2.0","result":)";
   54|    285|         state.response += result_json;
   55|    285|         state.response += R"(,"id":)";
   56|    285|         state.response += write_json(state.id).value_or("null");
   57|    285|         state.response += "}";
   58|    285|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE24register_object_endpointIN12jsonrpc_fuzz6nestedENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  212|  80.3k|      {
  213|  80.3k|         register_read_write_endpoint(path, obj, reg);
  214|  80.3k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz6nestedENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  127|  80.3k|      {
  128|  80.3k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  80.3k|            if (state.has_body()) {
  130|  80.3k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  131|  80.3k|                  return;
  132|  80.3k|               }
  133|  80.3k|            }
  134|       |
  135|  80.3k|            if (state.notify()) {
  136|  80.3k|               return;
  137|  80.3k|            }
  138|       |
  139|  80.3k|            if (!state.has_body()) {
  140|  80.3k|               jsonrpc::write_response<Opts>(value, state);
  141|  80.3k|            }
  142|  80.3k|            else {
  143|  80.3k|               jsonrpc::write_response<Opts>(state);
  144|  80.3k|            }
  145|  80.3k|         };
  146|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz6nestedENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_:
  128|  2.88k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  2.88k|            if (state.has_body()) {
  ------------------
  |  Branch (129:17): [True: 1.83k, False: 1.05k]
  ------------------
  130|  1.83k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  ------------------
  |  Branch (130:20): [True: 1.51k, False: 318]
  ------------------
  131|  1.51k|                  return;
  132|  1.51k|               }
  133|  1.83k|            }
  134|       |
  135|  1.37k|            if (state.notify()) {
  ------------------
  |  Branch (135:17): [True: 1.06k, False: 311]
  ------------------
  136|  1.06k|               return;
  137|  1.06k|            }
  138|       |
  139|    311|            if (!state.has_body()) {
  ------------------
  |  Branch (139:17): [True: 46, False: 265]
  ------------------
  140|     46|               jsonrpc::write_response<Opts>(value, state);
  141|     46|            }
  142|    265|            else {
  143|    265|               jsonrpc::write_response<Opts>(state);
  144|    265|            }
  145|    311|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz6nestedETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   97|  1.83k|      {
   98|  1.83k|         if (!state.has_body()) {
  ------------------
  |  Branch (98:14): [True: 0, False: 1.83k]
  ------------------
   99|      0|            return true; // No params to read
  100|      0|         }
  101|       |
  102|  1.83k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  103|  1.83k|         if (ec) {
  ------------------
  |  Branch (103:14): [True: 1.51k, False: 318]
  ------------------
  104|  1.51k|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  105|  1.51k|            return false;
  106|  1.51k|         }
  107|    318|         return true;
  108|  1.83k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz6nestedETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   37|     46|      {
   38|     46|         if (state.notify()) {
  ------------------
  |  Branch (38:14): [True: 0, False: 46]
  ------------------
   39|      0|            return; // No response for notifications
   40|      0|         }
   41|       |
   42|     46|         std::string result_json;
   43|     46|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   44|     46|         if (ec) {
  ------------------
  |  Branch (44:14): [True: 0, False: 46]
  ------------------
   45|       |            // Write error response
   46|      0|            state.response =
   47|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   48|      0|            state.response += write_json(state.id).value_or("null");
   49|      0|            state.response += "}";
   50|      0|            return;
   51|      0|         }
   52|       |
   53|     46|         state.response = R"({"jsonrpc":"2.0","result":)";
   54|     46|         state.response += result_json;
   55|     46|         state.response += R"(,"id":)";
   56|     46|         state.response += write_json(state.id).value_or("null");
   57|     46|         state.response += "}";
   58|     46|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointINSt3__16vectorIiNS4_9allocatorIiEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_:
  241|  80.3k|      {
  242|  80.3k|         register_read_write_endpoint(path, var, reg);
  243|  80.3k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__16vectorIiNS4_9allocatorIiEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_:
  127|  80.3k|      {
  128|  80.3k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  80.3k|            if (state.has_body()) {
  130|  80.3k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  131|  80.3k|                  return;
  132|  80.3k|               }
  133|  80.3k|            }
  134|       |
  135|  80.3k|            if (state.notify()) {
  136|  80.3k|               return;
  137|  80.3k|            }
  138|       |
  139|  80.3k|            if (!state.has_body()) {
  140|  80.3k|               jsonrpc::write_response<Opts>(value, state);
  141|  80.3k|            }
  142|  80.3k|            else {
  143|  80.3k|               jsonrpc::write_response<Opts>(state);
  144|  80.3k|            }
  145|  80.3k|         };
  146|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__16vectorIiNS4_9allocatorIiEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESL_:
  128|  3.29k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  3.29k|            if (state.has_body()) {
  ------------------
  |  Branch (129:17): [True: 1.92k, False: 1.37k]
  ------------------
  130|  1.92k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  ------------------
  |  Branch (130:20): [True: 1.47k, False: 443]
  ------------------
  131|  1.47k|                  return;
  132|  1.47k|               }
  133|  1.92k|            }
  134|       |
  135|  1.81k|            if (state.notify()) {
  ------------------
  |  Branch (135:17): [True: 1.30k, False: 510]
  ------------------
  136|  1.30k|               return;
  137|  1.30k|            }
  138|       |
  139|    510|            if (!state.has_body()) {
  ------------------
  |  Branch (139:17): [True: 79, False: 431]
  ------------------
  140|     79|               jsonrpc::write_response<Opts>(value, state);
  141|     79|            }
  142|    431|            else {
  143|    431|               jsonrpc::write_response<Opts>(state);
  144|    431|            }
  145|    510|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIiNS3_9allocatorIiEEEETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   97|  1.92k|      {
   98|  1.92k|         if (!state.has_body()) {
  ------------------
  |  Branch (98:14): [True: 0, False: 1.92k]
  ------------------
   99|      0|            return true; // No params to read
  100|      0|         }
  101|       |
  102|  1.92k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  103|  1.92k|         if (ec) {
  ------------------
  |  Branch (103:14): [True: 1.47k, False: 443]
  ------------------
  104|  1.47k|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  105|  1.47k|            return false;
  106|  1.47k|         }
  107|    443|         return true;
  108|  1.92k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIiNS3_9allocatorIiEEEETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   37|     79|      {
   38|     79|         if (state.notify()) {
  ------------------
  |  Branch (38:14): [True: 0, False: 79]
  ------------------
   39|      0|            return; // No response for notifications
   40|      0|         }
   41|       |
   42|     79|         std::string result_json;
   43|     79|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   44|     79|         if (ec) {
  ------------------
  |  Branch (44:14): [True: 0, False: 79]
  ------------------
   45|       |            // Write error response
   46|      0|            state.response =
   47|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   48|      0|            state.response += write_json(state.id).value_or("null");
   49|      0|            state.response += "}";
   50|      0|            return;
   51|      0|         }
   52|       |
   53|     79|         state.response = R"({"jsonrpc":"2.0","result":)";
   54|     79|         state.response += result_json;
   55|     79|         state.response += R"(,"id":)";
   56|     79|         state.response += write_json(state.id).value_or("null");
   57|     79|         state.response += "}";
   58|     79|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointINSt3__13mapINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiNS4_4lessISB_EENS9_INS4_4pairIKSB_iEEEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_:
  241|  80.3k|      {
  242|  80.3k|         register_read_write_endpoint(path, var, reg);
  243|  80.3k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__13mapINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiNS4_4lessISB_EENS9_INS4_4pairIKSB_iEEEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_:
  127|  80.3k|      {
  128|  80.3k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  80.3k|            if (state.has_body()) {
  130|  80.3k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  131|  80.3k|                  return;
  132|  80.3k|               }
  133|  80.3k|            }
  134|       |
  135|  80.3k|            if (state.notify()) {
  136|  80.3k|               return;
  137|  80.3k|            }
  138|       |
  139|  80.3k|            if (!state.has_body()) {
  140|  80.3k|               jsonrpc::write_response<Opts>(value, state);
  141|  80.3k|            }
  142|  80.3k|            else {
  143|  80.3k|               jsonrpc::write_response<Opts>(state);
  144|  80.3k|            }
  145|  80.3k|         };
  146|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__13mapINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiNS4_4lessISB_EENS9_INS4_4pairIKSB_iEEEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_ENUlONS_7jsonrpc5stateEE_clEST_:
  128|  2.63k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  2.63k|            if (state.has_body()) {
  ------------------
  |  Branch (129:17): [True: 1.69k, False: 941]
  ------------------
  130|  1.69k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  ------------------
  |  Branch (130:20): [True: 1.30k, False: 388]
  ------------------
  131|  1.30k|                  return;
  132|  1.30k|               }
  133|  1.69k|            }
  134|       |
  135|  1.32k|            if (state.notify()) {
  ------------------
  |  Branch (135:17): [True: 956, False: 373]
  ------------------
  136|    956|               return;
  137|    956|            }
  138|       |
  139|    373|            if (!state.has_body()) {
  ------------------
  |  Branch (139:17): [True: 64, False: 309]
  ------------------
  140|     64|               jsonrpc::write_response<Opts>(value, state);
  141|     64|            }
  142|    309|            else {
  143|    309|               jsonrpc::write_response<Opts>(state);
  144|    309|            }
  145|    373|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__13mapINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEiNS3_4lessISA_EENS8_INS3_4pairIKSA_iEEEEEETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   97|  1.69k|      {
   98|  1.69k|         if (!state.has_body()) {
  ------------------
  |  Branch (98:14): [True: 0, False: 1.69k]
  ------------------
   99|      0|            return true; // No params to read
  100|      0|         }
  101|       |
  102|  1.69k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  103|  1.69k|         if (ec) {
  ------------------
  |  Branch (103:14): [True: 1.30k, False: 388]
  ------------------
  104|  1.30k|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  105|  1.30k|            return false;
  106|  1.30k|         }
  107|    388|         return true;
  108|  1.69k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__13mapINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEiNS3_4lessISA_EENS8_INS3_4pairIKSA_iEEEEEETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   37|     64|      {
   38|     64|         if (state.notify()) {
  ------------------
  |  Branch (38:14): [True: 0, False: 64]
  ------------------
   39|      0|            return; // No response for notifications
   40|      0|         }
   41|       |
   42|     64|         std::string result_json;
   43|     64|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   44|     64|         if (ec) {
  ------------------
  |  Branch (44:14): [True: 0, False: 64]
  ------------------
   45|       |            // Write error response
   46|      0|            state.response =
   47|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   48|      0|            state.response += write_json(state.id).value_or("null");
   49|      0|            state.response += "}";
   50|      0|            return;
   51|      0|         }
   52|       |
   53|     64|         state.response = R"({"jsonrpc":"2.0","result":)";
   54|     64|         state.response += result_json;
   55|     64|         state.response += R"(,"id":)";
   56|     64|         state.response += write_json(state.id).value_or("null");
   57|     64|         state.response += "}";
   58|     64|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointINSt3__18optionalIdEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_:
  241|  80.3k|      {
  242|  80.3k|         register_read_write_endpoint(path, var, reg);
  243|  80.3k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__18optionalIdEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_:
  127|  80.3k|      {
  128|  80.3k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  80.3k|            if (state.has_body()) {
  130|  80.3k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  131|  80.3k|                  return;
  132|  80.3k|               }
  133|  80.3k|            }
  134|       |
  135|  80.3k|            if (state.notify()) {
  136|  80.3k|               return;
  137|  80.3k|            }
  138|       |
  139|  80.3k|            if (!state.has_body()) {
  140|  80.3k|               jsonrpc::write_response<Opts>(value, state);
  141|  80.3k|            }
  142|  80.3k|            else {
  143|  80.3k|               jsonrpc::write_response<Opts>(state);
  144|  80.3k|            }
  145|  80.3k|         };
  146|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__18optionalIdEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_:
  128|  3.69k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  3.69k|            if (state.has_body()) {
  ------------------
  |  Branch (129:17): [True: 2.23k, False: 1.46k]
  ------------------
  130|  2.23k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  ------------------
  |  Branch (130:20): [True: 397, False: 1.83k]
  ------------------
  131|    397|                  return;
  132|    397|               }
  133|  2.23k|            }
  134|       |
  135|  3.30k|            if (state.notify()) {
  ------------------
  |  Branch (135:17): [True: 1.53k, False: 1.76k]
  ------------------
  136|  1.53k|               return;
  137|  1.53k|            }
  138|       |
  139|  1.76k|            if (!state.has_body()) {
  ------------------
  |  Branch (139:17): [True: 66, False: 1.70k]
  ------------------
  140|     66|               jsonrpc::write_response<Opts>(value, state);
  141|     66|            }
  142|  1.70k|            else {
  143|  1.70k|               jsonrpc::write_response<Opts>(state);
  144|  1.70k|            }
  145|  1.76k|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__18optionalIdEETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   97|  2.23k|      {
   98|  2.23k|         if (!state.has_body()) {
  ------------------
  |  Branch (98:14): [True: 0, False: 2.23k]
  ------------------
   99|      0|            return true; // No params to read
  100|      0|         }
  101|       |
  102|  2.23k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  103|  2.23k|         if (ec) {
  ------------------
  |  Branch (103:14): [True: 397, False: 1.83k]
  ------------------
  104|    397|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  105|    397|            return false;
  106|    397|         }
  107|  1.83k|         return true;
  108|  2.23k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__18optionalIdEETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   37|     66|      {
   38|     66|         if (state.notify()) {
  ------------------
  |  Branch (38:14): [True: 0, False: 66]
  ------------------
   39|      0|            return; // No response for notifications
   40|      0|         }
   41|       |
   42|     66|         std::string result_json;
   43|     66|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   44|     66|         if (ec) {
  ------------------
  |  Branch (44:14): [True: 0, False: 66]
  ------------------
   45|       |            // Write error response
   46|      0|            state.response =
   47|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   48|      0|            state.response += write_json(state.id).value_or("null");
   49|      0|            state.response += "}";
   50|      0|            return;
   51|      0|         }
   52|       |
   53|     66|         state.response = R"({"jsonrpc":"2.0","result":)";
   54|     66|         state.response += result_json;
   55|     66|         state.response += R"(,"id":)";
   56|     66|         state.response += write_json(state.id).value_or("null");
   57|     66|         state.response += "}";
   58|     66|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointINSt3__17variantIJNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_:
  241|  80.3k|      {
  242|  80.3k|         register_read_write_endpoint(path, var, reg);
  243|  80.3k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__17variantIJNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_:
  127|  80.3k|      {
  128|  80.3k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  80.3k|            if (state.has_body()) {
  130|  80.3k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  131|  80.3k|                  return;
  132|  80.3k|               }
  133|  80.3k|            }
  134|       |
  135|  80.3k|            if (state.notify()) {
  136|  80.3k|               return;
  137|  80.3k|            }
  138|       |
  139|  80.3k|            if (!state.has_body()) {
  140|  80.3k|               jsonrpc::write_response<Opts>(value, state);
  141|  80.3k|            }
  142|  80.3k|            else {
  143|  80.3k|               jsonrpc::write_response<Opts>(state);
  144|  80.3k|            }
  145|  80.3k|         };
  146|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__17variantIJNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_ENUlONS_7jsonrpc5stateEE_clESP_:
  128|  2.31k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  129|  2.31k|            if (state.has_body()) {
  ------------------
  |  Branch (129:17): [True: 1.25k, False: 1.06k]
  ------------------
  130|  1.25k|               if (!jsonrpc::read_params<Opts>(value, state)) {
  ------------------
  |  Branch (130:20): [True: 816, False: 437]
  ------------------
  131|    816|                  return;
  132|    816|               }
  133|  1.25k|            }
  134|       |
  135|  1.49k|            if (state.notify()) {
  ------------------
  |  Branch (135:17): [True: 1.06k, False: 436]
  ------------------
  136|  1.06k|               return;
  137|  1.06k|            }
  138|       |
  139|    436|            if (!state.has_body()) {
  ------------------
  |  Branch (139:17): [True: 57, False: 379]
  ------------------
  140|     57|               jsonrpc::write_response<Opts>(value, state);
  141|     57|            }
  142|    379|            else {
  143|    379|               jsonrpc::write_response<Opts>(state);
  144|    379|            }
  145|    436|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__17variantIJNS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   97|  1.25k|      {
   98|  1.25k|         if (!state.has_body()) {
  ------------------
  |  Branch (98:14): [True: 0, False: 1.25k]
  ------------------
   99|      0|            return true; // No params to read
  100|      0|         }
  101|       |
  102|  1.25k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  103|  1.25k|         if (ec) {
  ------------------
  |  Branch (103:14): [True: 816, False: 437]
  ------------------
  104|    816|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  105|    816|            return false;
  106|    816|         }
  107|    437|         return true;
  108|  1.25k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__17variantIJNS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   37|     57|      {
   38|     57|         if (state.notify()) {
  ------------------
  |  Branch (38:14): [True: 0, False: 57]
  ------------------
   39|      0|            return; // No response for notifications
   40|      0|         }
   41|       |
   42|     57|         std::string result_json;
   43|     57|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   44|     57|         if (ec) {
  ------------------
  |  Branch (44:14): [True: 0, False: 57]
  ------------------
   45|       |            // Write error response
   46|      0|            state.response =
   47|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   48|      0|            state.response += write_json(state.id).value_or("null");
   49|      0|            state.response += "}";
   50|      0|            return;
   51|      0|         }
   52|       |
   53|     57|         state.response = R"({"jsonrpc":"2.0","result":)";
   54|     57|         state.response += result_json;
   55|     57|         state.response += R"(,"id":)";
   56|     57|         state.response += write_json(state.id).value_or("null");
   57|     57|         state.response += "}";
   58|     57|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFiiEEEiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_:
  180|  80.3k|      {
  181|  80.3k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  182|  80.3k|            static thread_local std::decay_t<Params> params{};
  183|  80.3k|            params = {}; // reset to avoid stale optional/variant fields across calls
  184|  80.3k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  185|  80.3k|               return;
  186|  80.3k|            }
  187|       |
  188|  80.3k|            using Result = std::invoke_result_t<decltype(func), Params>;
  189|       |
  190|  80.3k|            if (state.notify()) {
  191|  80.3k|               if constexpr (std::same_as<Result, void>) {
  192|  80.3k|                  func(params);
  193|  80.3k|               }
  194|  80.3k|               else {
  195|  80.3k|                  std::ignore = func(params);
  196|  80.3k|               }
  197|  80.3k|               return;
  198|  80.3k|            }
  199|  80.3k|            if constexpr (std::same_as<Result, void>) {
  200|  80.3k|               func(params);
  201|  80.3k|               jsonrpc::write_response<Opts>(state);
  202|  80.3k|            }
  203|  80.3k|            else {
  204|  80.3k|               auto ret = func(params);
  205|  80.3k|               jsonrpc::write_response<Opts>(ret, state);
  206|  80.3k|            }
  207|  80.3k|         };
  208|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFiiEEEiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_ENUlONS_7jsonrpc5stateEE_clESL_:
  181|  1.48k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  182|  1.48k|            static thread_local std::decay_t<Params> params{};
  183|  1.48k|            params = {}; // reset to avoid stale optional/variant fields across calls
  184|  1.48k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  ------------------
  |  Branch (184:17): [True: 245, False: 1.24k]
  ------------------
  185|    245|               return;
  186|    245|            }
  187|       |
  188|  1.24k|            using Result = std::invoke_result_t<decltype(func), Params>;
  189|       |
  190|  1.24k|            if (state.notify()) {
  ------------------
  |  Branch (190:17): [True: 879, False: 365]
  ------------------
  191|       |               if constexpr (std::same_as<Result, void>) {
  192|       |                  func(params);
  193|       |               }
  194|    879|               else {
  195|    879|                  std::ignore = func(params);
  196|    879|               }
  197|    879|               return;
  198|    879|            }
  199|       |            if constexpr (std::same_as<Result, void>) {
  200|       |               func(params);
  201|       |               jsonrpc::write_response<Opts>(state);
  202|       |            }
  203|    365|            else {
  204|    365|               auto ret = func(params);
  205|    365|               jsonrpc::write_response<Opts>(ret, state);
  206|    365|            }
  207|    365|         };
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKSB_EEESD_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT1_:
  180|  80.3k|      {
  181|  80.3k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  182|  80.3k|            static thread_local std::decay_t<Params> params{};
  183|  80.3k|            params = {}; // reset to avoid stale optional/variant fields across calls
  184|  80.3k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  185|  80.3k|               return;
  186|  80.3k|            }
  187|       |
  188|  80.3k|            using Result = std::invoke_result_t<decltype(func), Params>;
  189|       |
  190|  80.3k|            if (state.notify()) {
  191|  80.3k|               if constexpr (std::same_as<Result, void>) {
  192|  80.3k|                  func(params);
  193|  80.3k|               }
  194|  80.3k|               else {
  195|  80.3k|                  std::ignore = func(params);
  196|  80.3k|               }
  197|  80.3k|               return;
  198|  80.3k|            }
  199|  80.3k|            if constexpr (std::same_as<Result, void>) {
  200|  80.3k|               func(params);
  201|  80.3k|               jsonrpc::write_response<Opts>(state);
  202|  80.3k|            }
  203|  80.3k|            else {
  204|  80.3k|               auto ret = func(params);
  205|  80.3k|               jsonrpc::write_response<Opts>(ret, state);
  206|  80.3k|            }
  207|  80.3k|         };
  208|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKSB_EEESD_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT1_ENUlONS_7jsonrpc5stateEE_clESR_:
  181|  3.51k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  182|  3.51k|            static thread_local std::decay_t<Params> params{};
  183|  3.51k|            params = {}; // reset to avoid stale optional/variant fields across calls
  184|  3.51k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  ------------------
  |  Branch (184:17): [True: 570, False: 2.94k]
  ------------------
  185|    570|               return;
  186|    570|            }
  187|       |
  188|  2.94k|            using Result = std::invoke_result_t<decltype(func), Params>;
  189|       |
  190|  2.94k|            if (state.notify()) {
  ------------------
  |  Branch (190:17): [True: 2.25k, False: 694]
  ------------------
  191|       |               if constexpr (std::same_as<Result, void>) {
  192|       |                  func(params);
  193|       |               }
  194|  2.25k|               else {
  195|  2.25k|                  std::ignore = func(params);
  196|  2.25k|               }
  197|  2.25k|               return;
  198|  2.25k|            }
  199|       |            if constexpr (std::same_as<Result, void>) {
  200|       |               func(params);
  201|       |               jsonrpc::write_response<Opts>(state);
  202|       |            }
  203|    694|            else {
  204|    694|               auto ret = func(params);
  205|    694|               jsonrpc::write_response<Opts>(ret, state);
  206|    694|            }
  207|    694|         };
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFN12jsonrpc_fuzz5pointERKS7_EEES9_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_:
  180|  80.3k|      {
  181|  80.3k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  182|  80.3k|            static thread_local std::decay_t<Params> params{};
  183|  80.3k|            params = {}; // reset to avoid stale optional/variant fields across calls
  184|  80.3k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  185|  80.3k|               return;
  186|  80.3k|            }
  187|       |
  188|  80.3k|            using Result = std::invoke_result_t<decltype(func), Params>;
  189|       |
  190|  80.3k|            if (state.notify()) {
  191|  80.3k|               if constexpr (std::same_as<Result, void>) {
  192|  80.3k|                  func(params);
  193|  80.3k|               }
  194|  80.3k|               else {
  195|  80.3k|                  std::ignore = func(params);
  196|  80.3k|               }
  197|  80.3k|               return;
  198|  80.3k|            }
  199|  80.3k|            if constexpr (std::same_as<Result, void>) {
  200|  80.3k|               func(params);
  201|  80.3k|               jsonrpc::write_response<Opts>(state);
  202|  80.3k|            }
  203|  80.3k|            else {
  204|  80.3k|               auto ret = func(params);
  205|  80.3k|               jsonrpc::write_response<Opts>(ret, state);
  206|  80.3k|            }
  207|  80.3k|         };
  208|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFN12jsonrpc_fuzz5pointERKS7_EEES9_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_ENUlONS_7jsonrpc5stateEE_clESP_:
  181|  1.64k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  182|  1.64k|            static thread_local std::decay_t<Params> params{};
  183|  1.64k|            params = {}; // reset to avoid stale optional/variant fields across calls
  184|  1.64k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  ------------------
  |  Branch (184:17): [True: 537, False: 1.10k]
  ------------------
  185|    537|               return;
  186|    537|            }
  187|       |
  188|  1.10k|            using Result = std::invoke_result_t<decltype(func), Params>;
  189|       |
  190|  1.10k|            if (state.notify()) {
  ------------------
  |  Branch (190:17): [True: 952, False: 153]
  ------------------
  191|       |               if constexpr (std::same_as<Result, void>) {
  192|       |                  func(params);
  193|       |               }
  194|    952|               else {
  195|    952|                  std::ignore = func(params);
  196|    952|               }
  197|    952|               return;
  198|    952|            }
  199|       |            if constexpr (std::same_as<Result, void>) {
  200|       |               func(params);
  201|       |               jsonrpc::write_response<Opts>(state);
  202|       |            }
  203|    153|            else {
  204|    153|               auto ret = func(params);
  205|    153|               jsonrpc::write_response<Opts>(ret, state);
  206|    153|            }
  207|    153|         };
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFdRNS4_6vectorIdNS4_9allocatorIdEEEEEEESA_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_:
  180|  80.3k|      {
  181|  80.3k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  182|  80.3k|            static thread_local std::decay_t<Params> params{};
  183|  80.3k|            params = {}; // reset to avoid stale optional/variant fields across calls
  184|  80.3k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  185|  80.3k|               return;
  186|  80.3k|            }
  187|       |
  188|  80.3k|            using Result = std::invoke_result_t<decltype(func), Params>;
  189|       |
  190|  80.3k|            if (state.notify()) {
  191|  80.3k|               if constexpr (std::same_as<Result, void>) {
  192|  80.3k|                  func(params);
  193|  80.3k|               }
  194|  80.3k|               else {
  195|  80.3k|                  std::ignore = func(params);
  196|  80.3k|               }
  197|  80.3k|               return;
  198|  80.3k|            }
  199|  80.3k|            if constexpr (std::same_as<Result, void>) {
  200|  80.3k|               func(params);
  201|  80.3k|               jsonrpc::write_response<Opts>(state);
  202|  80.3k|            }
  203|  80.3k|            else {
  204|  80.3k|               auto ret = func(params);
  205|  80.3k|               jsonrpc::write_response<Opts>(ret, state);
  206|  80.3k|            }
  207|  80.3k|         };
  208|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFdRNS4_6vectorIdNS4_9allocatorIdEEEEEEESA_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_ENUlONS_7jsonrpc5stateEE_clESQ_:
  181|  5.91k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  182|  5.91k|            static thread_local std::decay_t<Params> params{};
  183|  5.91k|            params = {}; // reset to avoid stale optional/variant fields across calls
  184|  5.91k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  ------------------
  |  Branch (184:17): [True: 1.67k, False: 4.24k]
  ------------------
  185|  1.67k|               return;
  186|  1.67k|            }
  187|       |
  188|  4.24k|            using Result = std::invoke_result_t<decltype(func), Params>;
  189|       |
  190|  4.24k|            if (state.notify()) {
  ------------------
  |  Branch (190:17): [True: 2.36k, False: 1.87k]
  ------------------
  191|       |               if constexpr (std::same_as<Result, void>) {
  192|       |                  func(params);
  193|       |               }
  194|  2.36k|               else {
  195|  2.36k|                  std::ignore = func(params);
  196|  2.36k|               }
  197|  2.36k|               return;
  198|  2.36k|            }
  199|       |            if constexpr (std::same_as<Result, void>) {
  200|       |               func(params);
  201|       |               jsonrpc::write_response<Opts>(state);
  202|       |            }
  203|  1.87k|            else {
  204|  1.87k|               auto ret = func(params);
  205|  1.87k|               jsonrpc::write_response<Opts>(ret, state);
  206|  1.87k|            }
  207|  1.87k|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIdNS3_9allocatorIdEEEETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   97|  5.91k|      {
   98|  5.91k|         if (!state.has_body()) {
  ------------------
  |  Branch (98:14): [True: 2.37k, False: 3.54k]
  ------------------
   99|  2.37k|            return true; // No params to read
  100|  2.37k|         }
  101|       |
  102|  3.54k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  103|  3.54k|         if (ec) {
  ------------------
  |  Branch (103:14): [True: 1.67k, False: 1.86k]
  ------------------
  104|  1.67k|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  105|  1.67k|            return false;
  106|  1.67k|         }
  107|  1.86k|         return true;
  108|  3.54k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_function_endpointIRNSt3__18functionIFvvEEEvNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_:
  157|  80.3k|      {
  158|  80.3k|         if constexpr (std::same_as<Result, void>) {
  159|  80.3k|            reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  160|  80.3k|               func();
  161|  80.3k|               if (state.notify()) {
  162|  80.3k|                  return;
  163|  80.3k|               }
  164|  80.3k|               jsonrpc::write_response<Opts>(state);
  165|  80.3k|            };
  166|       |         }
  167|       |         else {
  168|       |            reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  169|       |               if (state.notify()) {
  170|       |                  std::ignore = func();
  171|       |                  return;
  172|       |               }
  173|       |               jsonrpc::write_response<Opts>(func(), state);
  174|       |            };
  175|       |         }
  176|  80.3k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_function_endpointIRNSt3__18functionIFvvEEEvNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_ENUlONS_7jsonrpc5stateEE_clESL_:
  159|    694|            reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  160|    694|               func();
  161|    694|               if (state.notify()) {
  ------------------
  |  Branch (161:20): [True: 415, False: 279]
  ------------------
  162|    415|                  return;
  163|    415|               }
  164|    279|               jsonrpc::write_response<Opts>(state);
  165|    279|            };

jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE2onIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_:
  307|  80.3k|      {
  308|  80.3k|         using impl = registry_impl<read_opts, Proto>;
  309|       |
  310|  80.3k|         if constexpr (parent == root && (glaze_object_t<T> || reflectable<T>)) {
  311|  80.3k|            impl::register_endpoint(root, value, *this);
  312|  80.3k|         }
  313|       |
  314|  80.3k|         register_members<root, T, parent>(value);
  315|  80.3k|      }
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_:
  176|  80.3k|      {
  177|  80.3k|         using namespace glz::detail;
  178|  80.3k|         static constexpr auto N = reflect<T>::size;
  179|       |
  180|  80.3k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  80.3k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  80.3k|               return to_tie(value);
  183|  80.3k|            }
  184|  80.3k|            else {
  185|  80.3k|               return nullptr;
  186|  80.3k|            }
  187|  80.3k|         }();
  188|       |
  189|  80.3k|         using impl = registry_impl<read_opts, Proto>;
  190|       |
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|  80.3k|            if constexpr (std::is_invocable_v<Func>) {
  215|  80.3k|               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|  80.3k|               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|  80.3k|            }
  218|  80.3k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  80.3k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  80.3k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  80.3k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  80.3k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  80.3k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|  80.3k|            }
  227|  80.3k|            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|  80.3k|               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|  80.3k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|  80.3k|               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|  80.3k|               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|  80.3k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|  80.3k|            }
  237|  80.3k|            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|  80.3k|                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|  80.3k|                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|  80.3k|               if (func) { // Only traverse if pointer is valid
  242|  80.3k|                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|  80.3k|                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|  80.3k|                     full_key, *func, *this);
  245|  80.3k|               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|  80.3k|            }
  248|  80.3k|            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|  80.3k|               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|  80.3k|               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|  80.3k|            }
  253|  80.3k|            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|  80.3k|               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|  80.3k|            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  80.3k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  80.3k|                  using F = std::decay_t<Func>;
  262|  80.3k|                  using Ret = typename return_type<F>::type;
  263|  80.3k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  80.3k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|  80.3k|                  if constexpr (std::is_void_v<Ret>) {
  266|  80.3k|                     if constexpr (n_args == 0) {
  267|  80.3k|                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|  80.3k|                     }
  269|  80.3k|                     else if constexpr (n_args == 1) {
  270|  80.3k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|  80.3k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|  80.3k|                                                                                                        func, *this);
  273|  80.3k|                     }
  274|  80.3k|                     else {
  275|  80.3k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|  80.3k|                     }
  277|  80.3k|                  }
  278|  80.3k|                  else {
  279|       |                     // Member function pointers
  280|  80.3k|                     if constexpr (n_args == 0) {
  281|  80.3k|                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|  80.3k|                     }
  283|  80.3k|                     else if constexpr (n_args == 1) {
  284|  80.3k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|  80.3k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|  80.3k|                                                                                                       func, *this);
  287|  80.3k|                     }
  288|  80.3k|                     else {
  289|  80.3k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|  80.3k|                     }
  291|  80.3k|                  }
  292|  80.3k|               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
  300|  80.3k|      }
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlvE_clEv:
  180|  80.3k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|       |            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|       |               return to_tie(value);
  183|       |            }
  184|  80.3k|            else {
  185|  80.3k|               return nullptr;
  186|  80.3k|            }
  187|  80.3k|         }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi0EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi0EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|       |               if constexpr (reflectable<T>) {
  194|       |                  return get_member(value, get<I>(t));
  195|       |               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi1EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  80.3k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  80.3k|                  using F = std::decay_t<Func>;
  262|  80.3k|                  using Ret = typename return_type<F>::type;
  263|  80.3k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  80.3k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|  80.3k|                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|  80.3k|                     else if constexpr (n_args == 1) {
  284|  80.3k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|  80.3k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|  80.3k|                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|  80.3k|                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi1EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|       |               if constexpr (reflectable<T>) {
  194|       |                  return get_member(value, get<I>(t));
  195|       |               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi2EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  80.3k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  80.3k|                  using F = std::decay_t<Func>;
  262|  80.3k|                  using Ret = typename return_type<F>::type;
  263|  80.3k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  80.3k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|  80.3k|                  if constexpr (std::is_void_v<Ret>) {
  266|  80.3k|                     if constexpr (n_args == 0) {
  267|  80.3k|                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi2EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|       |               if constexpr (reflectable<T>) {
  194|       |                  return get_member(value, get<I>(t));
  195|       |               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi3EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  80.3k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  80.3k|                  using F = std::decay_t<Func>;
  262|  80.3k|                  using Ret = typename return_type<F>::type;
  263|  80.3k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  80.3k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|  80.3k|                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|  80.3k|                     else if constexpr (n_args == 1) {
  284|  80.3k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|  80.3k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|  80.3k|                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|  80.3k|                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi3EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|       |               if constexpr (reflectable<T>) {
  194|       |                  return get_member(value, get<I>(t));
  195|       |               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE2onIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_:
  307|  80.3k|      {
  308|  80.3k|         using impl = registry_impl<read_opts, Proto>;
  309|       |
  310|  80.3k|         if constexpr (parent == root && (glaze_object_t<T> || reflectable<T>)) {
  311|  80.3k|            impl::register_endpoint(root, value, *this);
  312|  80.3k|         }
  313|       |
  314|  80.3k|         register_members<root, T, parent>(value);
  315|  80.3k|      }
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_:
  176|  80.3k|      {
  177|  80.3k|         using namespace glz::detail;
  178|  80.3k|         static constexpr auto N = reflect<T>::size;
  179|       |
  180|  80.3k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  80.3k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  80.3k|               return to_tie(value);
  183|  80.3k|            }
  184|  80.3k|            else {
  185|  80.3k|               return nullptr;
  186|  80.3k|            }
  187|  80.3k|         }();
  188|       |
  189|  80.3k|         using impl = registry_impl<read_opts, Proto>;
  190|       |
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|  80.3k|            if constexpr (std::is_invocable_v<Func>) {
  215|  80.3k|               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|  80.3k|               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|  80.3k|            }
  218|  80.3k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  80.3k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  80.3k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  80.3k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  80.3k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  80.3k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|  80.3k|            }
  227|  80.3k|            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|  80.3k|               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|  80.3k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|  80.3k|               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|  80.3k|               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|  80.3k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|  80.3k|            }
  237|  80.3k|            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|  80.3k|                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|  80.3k|                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|  80.3k|               if (func) { // Only traverse if pointer is valid
  242|  80.3k|                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|  80.3k|                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|  80.3k|                     full_key, *func, *this);
  245|  80.3k|               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|  80.3k|            }
  248|  80.3k|            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|  80.3k|               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|  80.3k|               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|  80.3k|            }
  253|  80.3k|            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|  80.3k|               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|  80.3k|            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  80.3k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  80.3k|                  using F = std::decay_t<Func>;
  262|  80.3k|                  using Ret = typename return_type<F>::type;
  263|  80.3k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  80.3k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|  80.3k|                  if constexpr (std::is_void_v<Ret>) {
  266|  80.3k|                     if constexpr (n_args == 0) {
  267|  80.3k|                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|  80.3k|                     }
  269|  80.3k|                     else if constexpr (n_args == 1) {
  270|  80.3k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|  80.3k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|  80.3k|                                                                                                        func, *this);
  273|  80.3k|                     }
  274|  80.3k|                     else {
  275|  80.3k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|  80.3k|                     }
  277|  80.3k|                  }
  278|  80.3k|                  else {
  279|       |                     // Member function pointers
  280|  80.3k|                     if constexpr (n_args == 0) {
  281|  80.3k|                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|  80.3k|                     }
  283|  80.3k|                     else if constexpr (n_args == 1) {
  284|  80.3k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|  80.3k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|  80.3k|                                                                                                       func, *this);
  287|  80.3k|                     }
  288|  80.3k|                     else {
  289|  80.3k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|  80.3k|                     }
  291|  80.3k|                  }
  292|  80.3k|               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
  300|  80.3k|      }
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlvE_clEv:
  180|  80.3k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  80.3k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  80.3k|               return to_tie(value);
  183|       |            }
  184|       |            else {
  185|       |               return nullptr;
  186|       |            }
  187|  80.3k|         }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm0EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm0EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm1EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm1EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm2EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|  80.3k|            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|  80.3k|               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|  80.3k|               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm2EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE2onIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS2_16register_membersIL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS9_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS9_E11reflectableIS9_EEEvSB_:
  307|  80.3k|      {
  308|  80.3k|         using impl = registry_impl<read_opts, Proto>;
  309|       |
  310|       |         if constexpr (parent == root && (glaze_object_t<T> || reflectable<T>)) {
  311|       |            impl::register_endpoint(root, value, *this);
  312|       |         }
  313|       |
  314|  80.3k|         register_members<root, T, parent>(value);
  315|  80.3k|      }
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_:
  176|  80.3k|      {
  177|  80.3k|         using namespace glz::detail;
  178|  80.3k|         static constexpr auto N = reflect<T>::size;
  179|       |
  180|  80.3k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  80.3k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  80.3k|               return to_tie(value);
  183|  80.3k|            }
  184|  80.3k|            else {
  185|  80.3k|               return nullptr;
  186|  80.3k|            }
  187|  80.3k|         }();
  188|       |
  189|  80.3k|         using impl = registry_impl<read_opts, Proto>;
  190|       |
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|  80.3k|            if constexpr (std::is_invocable_v<Func>) {
  215|  80.3k|               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|  80.3k|               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|  80.3k|            }
  218|  80.3k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  80.3k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  80.3k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  80.3k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  80.3k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  80.3k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|  80.3k|            }
  227|  80.3k|            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|  80.3k|               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|  80.3k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|  80.3k|               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|  80.3k|               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|  80.3k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|  80.3k|            }
  237|  80.3k|            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|  80.3k|                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|  80.3k|                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|  80.3k|               if (func) { // Only traverse if pointer is valid
  242|  80.3k|                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|  80.3k|                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|  80.3k|                     full_key, *func, *this);
  245|  80.3k|               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|  80.3k|            }
  248|  80.3k|            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|  80.3k|               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|  80.3k|               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|  80.3k|            }
  253|  80.3k|            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|  80.3k|               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|  80.3k|            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  80.3k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  80.3k|                  using F = std::decay_t<Func>;
  262|  80.3k|                  using Ret = typename return_type<F>::type;
  263|  80.3k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  80.3k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|  80.3k|                  if constexpr (std::is_void_v<Ret>) {
  266|  80.3k|                     if constexpr (n_args == 0) {
  267|  80.3k|                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|  80.3k|                     }
  269|  80.3k|                     else if constexpr (n_args == 1) {
  270|  80.3k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|  80.3k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|  80.3k|                                                                                                        func, *this);
  273|  80.3k|                     }
  274|  80.3k|                     else {
  275|  80.3k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|  80.3k|                     }
  277|  80.3k|                  }
  278|  80.3k|                  else {
  279|       |                     // Member function pointers
  280|  80.3k|                     if constexpr (n_args == 0) {
  281|  80.3k|                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|  80.3k|                     }
  283|  80.3k|                     else if constexpr (n_args == 1) {
  284|  80.3k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|  80.3k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|  80.3k|                                                                                                       func, *this);
  287|  80.3k|                     }
  288|  80.3k|                     else {
  289|  80.3k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|  80.3k|                     }
  291|  80.3k|                  }
  292|  80.3k|               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
  300|  80.3k|      }
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlvE_clEv:
  180|  80.3k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  80.3k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  80.3k|               return to_tie(value);
  183|       |            }
  184|       |            else {
  185|       |               return nullptr;
  186|       |            }
  187|  80.3k|         }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi0EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi0EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi1EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi1EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm3EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|  80.3k|            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|  80.3k|               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|  80.3k|               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm3EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE2onIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS2_16register_membersIL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS9_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS9_E11reflectableIS9_EEEvSB_:
  307|  80.3k|      {
  308|  80.3k|         using impl = registry_impl<read_opts, Proto>;
  309|       |
  310|       |         if constexpr (parent == root && (glaze_object_t<T> || reflectable<T>)) {
  311|       |            impl::register_endpoint(root, value, *this);
  312|       |         }
  313|       |
  314|  80.3k|         register_members<root, T, parent>(value);
  315|  80.3k|      }
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_:
  176|  80.3k|      {
  177|  80.3k|         using namespace glz::detail;
  178|  80.3k|         static constexpr auto N = reflect<T>::size;
  179|       |
  180|  80.3k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  80.3k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  80.3k|               return to_tie(value);
  183|  80.3k|            }
  184|  80.3k|            else {
  185|  80.3k|               return nullptr;
  186|  80.3k|            }
  187|  80.3k|         }();
  188|       |
  189|  80.3k|         using impl = registry_impl<read_opts, Proto>;
  190|       |
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|  80.3k|            if constexpr (std::is_invocable_v<Func>) {
  215|  80.3k|               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|  80.3k|               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|  80.3k|            }
  218|  80.3k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  80.3k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  80.3k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  80.3k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  80.3k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  80.3k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|  80.3k|            }
  227|  80.3k|            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|  80.3k|               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|  80.3k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|  80.3k|               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|  80.3k|               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|  80.3k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|  80.3k|            }
  237|  80.3k|            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|  80.3k|                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|  80.3k|                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|  80.3k|               if (func) { // Only traverse if pointer is valid
  242|  80.3k|                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|  80.3k|                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|  80.3k|                     full_key, *func, *this);
  245|  80.3k|               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|  80.3k|            }
  248|  80.3k|            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|  80.3k|               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|  80.3k|               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|  80.3k|            }
  253|  80.3k|            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|  80.3k|               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|  80.3k|            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  80.3k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  80.3k|                  using F = std::decay_t<Func>;
  262|  80.3k|                  using Ret = typename return_type<F>::type;
  263|  80.3k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  80.3k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|  80.3k|                  if constexpr (std::is_void_v<Ret>) {
  266|  80.3k|                     if constexpr (n_args == 0) {
  267|  80.3k|                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|  80.3k|                     }
  269|  80.3k|                     else if constexpr (n_args == 1) {
  270|  80.3k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|  80.3k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|  80.3k|                                                                                                        func, *this);
  273|  80.3k|                     }
  274|  80.3k|                     else {
  275|  80.3k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|  80.3k|                     }
  277|  80.3k|                  }
  278|  80.3k|                  else {
  279|       |                     // Member function pointers
  280|  80.3k|                     if constexpr (n_args == 0) {
  281|  80.3k|                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|  80.3k|                     }
  283|  80.3k|                     else if constexpr (n_args == 1) {
  284|  80.3k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|  80.3k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|  80.3k|                                                                                                       func, *this);
  287|  80.3k|                     }
  288|  80.3k|                     else {
  289|  80.3k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|  80.3k|                     }
  291|  80.3k|                  }
  292|  80.3k|               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
  300|  80.3k|      }
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlvE_clEv:
  180|  80.3k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  80.3k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  80.3k|               return to_tie(value);
  183|       |            }
  184|       |            else {
  185|       |               return nullptr;
  186|       |            }
  187|  80.3k|         }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi0EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi0EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi1EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi1EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm4EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm4EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm5EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm5EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm6EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm6EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm7EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  80.3k|            else {
  258|  80.3k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  80.3k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  80.3k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  80.3k|               }
  298|  80.3k|            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm7EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm8EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|  80.3k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  80.3k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  80.3k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  80.3k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  80.3k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  80.3k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm8EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm9EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|  80.3k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  80.3k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  80.3k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  80.3k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  80.3k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  80.3k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm9EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm10EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|  80.3k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  80.3k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  80.3k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  80.3k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  80.3k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  80.3k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm10EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm11EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|  80.3k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  80.3k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  80.3k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  80.3k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  80.3k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  80.3k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm11EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm12EEEDav:
  191|  80.3k|         for_each<N>([&]<auto I>() {
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|  80.3k|               }
  196|  80.3k|               else {
  197|  80.3k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  80.3k|               }
  199|  80.3k|            }();
  200|       |
  201|  80.3k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  80.3k|            static constexpr std::string_view full_key = [&] {
  204|  80.3k|               if constexpr (parent == detail::empty_path) {
  205|  80.3k|                  return join_v<chars<"/">, key>;
  206|  80.3k|               }
  207|  80.3k|               else {
  208|  80.3k|                  return join_v<parent, chars<"/">, key>;
  209|  80.3k|               }
  210|  80.3k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  80.3k|            using Func = decltype(func);
  214|  80.3k|            if constexpr (std::is_invocable_v<Func>) {
  215|  80.3k|               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|  80.3k|               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  80.3k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm12EEEDavENKUlvE_clEv:
  192|  80.3k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  80.3k|               if constexpr (reflectable<T>) {
  194|  80.3k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  80.3k|            }();
_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE4callENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEQeqT0_L_ZNS_7JSONRPCEE:
  514|  80.3k|      {
  515|       |         // Find first non-whitespace to determine batch vs single request
  516|  80.3k|         auto it = std::find_if(json_request.begin(), json_request.end(),
  517|  80.3k|                                [](char c) { return !std::isspace(static_cast<unsigned char>(c)); });
  518|       |
  519|  80.3k|         if (it != json_request.end() && *it == '[') {
  ------------------
  |  Branch (519:14): [True: 80.3k, False: 16]
  |  Branch (519:42): [True: 30.6k, False: 49.6k]
  ------------------
  520|       |            // Batch request
  521|  30.6k|            std::vector<glz::raw_json_view> batch_requests{};
  522|  30.6k|            if (const auto ec = glz::read<read_opts>(batch_requests, json_request); ec) {
  ------------------
  |  Branch (522:85): [True: 9.81k, False: 20.8k]
  ------------------
  523|  9.81k|               return R"({"jsonrpc":"2.0","error":{"code":-32700,"message":"Parse error","data":)" +
  524|  9.81k|                      write_json(format_error(ec, json_request)).value_or("null") + R"(},"id":null})";
  525|  9.81k|            }
  526|  20.8k|            if (batch_requests.empty()) {
  ------------------
  |  Branch (526:17): [True: 17, False: 20.8k]
  ------------------
  527|     17|               return R"({"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid Request","data":"Empty batch"},"id":null})";
  528|     17|            }
  529|  20.8k|            return process_batch(batch_requests);
  530|  20.8k|         }
  531|       |
  532|       |         // Single request
  533|  49.6k|         auto response = process_single_request(json_request);
  534|  49.6k|         return response.value_or("");
  535|  80.3k|      }
_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE4callENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEQeqT0_L_ZNS_7JSONRPCEEENKUlcE_clEc:
  517|   107k|                                [](char c) { return !std::isspace(static_cast<unsigned char>(c)); });
_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE13process_batchERKNSt3__16vectorINS_14basic_raw_jsonINS3_17basic_string_viewIcNS3_11char_traitsIcEEEEEENS3_9allocatorISA_EEEEQeqT0_L_ZNS_7JSONRPCEE:
  645|  20.8k|      {
  646|  20.8k|         std::vector<std::string> responses;
  647|  20.8k|         responses.reserve(batch.size());
  648|       |
  649|  20.8k|         size_t total_size = 2; // []
  650|  4.10M|         for (const auto& req : batch) {
  ------------------
  |  Branch (650:31): [True: 4.10M, False: 20.8k]
  ------------------
  651|  4.10M|            auto response = process_single_request(req.str);
  652|  4.10M|            if (response.has_value()) {
  ------------------
  |  Branch (652:17): [True: 4.08M, False: 20.0k]
  ------------------
  653|  4.08M|               total_size += response->size() + 1; // +1 for comma
  654|       |               // Checked as the batch is walked rather than after it, so the elements past the
  655|       |               // limit are never run and what they would have answered with is never built. The
  656|       |               // element that trips it has already been built, so the peak is the limit plus one
  657|       |               // response rather than the limit exactly. The elements already run keep their
  658|       |               // effects -- a JSON RPC batch is not a transaction -- but the caller is told the
  659|       |               // batch failed rather than handed a partial array it cannot distinguish from a
  660|       |               // complete one.
  661|  4.08M|               if (total_size > max_batch_response_size) {
  ------------------
  |  Branch (661:20): [True: 6, False: 4.08M]
  ------------------
  662|      6|                  return R"({"jsonrpc":"2.0","error":{"code":-32000,"message":"Server error","data":"Batch response exceeds max_batch_response_size"},"id":null})";
  663|      6|               }
  664|  4.08M|               responses.push_back(std::move(*response));
  665|  4.08M|            }
  666|  4.10M|         }
  667|       |
  668|       |         // If all were notifications, return empty string
  669|  20.8k|         if (responses.empty()) {
  ------------------
  |  Branch (669:14): [True: 196, False: 20.6k]
  ------------------
  670|    196|            return "";
  671|    196|         }
  672|       |
  673|       |         // Build batch response array with pre-reserved capacity
  674|  20.6k|         std::string result;
  675|  20.6k|         result.reserve(total_size);
  676|  20.6k|         result = "[";
  677|  3.17M|         for (size_t i = 0; i < responses.size(); ++i) {
  ------------------
  |  Branch (677:29): [True: 3.15M, False: 20.6k]
  ------------------
  678|  3.15M|            if (i > 0) {
  ------------------
  |  Branch (678:17): [True: 3.13M, False: 20.6k]
  ------------------
  679|  3.13M|               result += ",";
  680|  3.13M|            }
  681|  3.15M|            result += responses[i];
  682|  3.15M|         }
  683|  20.6k|         result += "]";
  684|  20.6k|         return result;
  685|  20.8k|      }
_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE22process_single_requestENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEQeqT0_L_ZNS_7JSONRPCEE:
  541|  4.15M|      {
  542|  4.15M|         rpc::request_envelope_t request{};
  543|  4.15M|         if (const auto read_ec = glz::read<read_opts>(request, json_request); read_ec) {
  ------------------
  |  Branch (543:80): [True: 4.09M, False: 62.7k]
  ------------------
  544|       |            // Check if it's a JSON syntax error vs schema error
  545|  4.09M|            static constexpr registry_validate_opts<read_opts> validate_opts{{read_opts}};
  546|  4.09M|            glz::skip skip_value{};
  547|  4.09M|            context validate_ctx{};
  548|  4.09M|            if (glz::read<validate_opts>(skip_value, json_request, validate_ctx)) {
  ------------------
  |  Branch (548:17): [True: 4.03M, False: 62.2k]
  ------------------
  549|       |               // JSON is syntactically invalid - return Parse error (-32700)
  550|  4.03M|               return R"({"jsonrpc":"2.0","error":{"code":-32700,"message":"Parse error","data":)" +
  551|  4.03M|                      write_json(format_error(read_ec, json_request)).value_or("null") + R"(},"id":null})";
  552|  4.03M|            }
  553|       |            // Valid JSON but invalid request structure - return Invalid Request (-32600)
  554|  62.2k|            auto id = glz::get_as_json<rpc::id_t, "/id", read_opts>(json_request);
  555|  62.2k|            std::string id_json = id.has_value() ? glz::write_json(id.value()).value_or("null") : "null";
  ------------------
  |  Branch (555:35): [True: 5.48k, False: 56.7k]
  ------------------
  556|  62.2k|            return R"({"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid Request","data":)" +
  557|  62.2k|                   write_json(format_error(read_ec, json_request)).value_or("null") + R"(},"id":)" + id_json + "}";
  558|  4.09M|         }
  559|       |
  560|  62.7k|         auto& req = request;
  561|       |
  562|  62.7k|         const auto invalid_request = [&req](const std::string& data) {
  563|  62.7k|            std::string id_json = glz::write_json(req.id).value_or("null");
  564|  62.7k|            return R"({"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid Request","data":)" +
  565|  62.7k|                   write_json(data).value_or("null") + R"(},"id":)" + id_json + "}";
  566|  62.7k|         };
  567|       |
  568|       |         // `jsonrpc` and `method` are both required members, and an absent one cannot be allowed to
  569|       |         // fall through to a default: an absent version would pass for 2.0, and an absent method
  570|       |         // names "", which is the root endpoint -- so `{"id":1}` would answer with the whole
  571|       |         // registered object rather than being rejected.
  572|  62.7k|         if (!req.version) {
  ------------------
  |  Branch (572:14): [True: 9.99k, False: 52.7k]
  ------------------
  573|  9.99k|            return invalid_request("Missing 'jsonrpc' member");
  574|  9.99k|         }
  575|  52.7k|         if (*req.version != rpc::supported_version) {
  ------------------
  |  Branch (575:14): [True: 3.76k, False: 49.0k]
  ------------------
  576|  3.76k|            return invalid_request("Invalid version: " + std::string(*req.version));
  577|  3.76k|         }
  578|  49.0k|         if (!req.method) {
  ------------------
  |  Branch (578:14): [True: 232, False: 48.7k]
  ------------------
  579|    232|            return invalid_request("Missing 'method' member");
  580|    232|         }
  581|  48.7k|         const std::string_view method_name = *req.method;
  582|       |
  583|       |         // Check if this is a notification (id is null)
  584|  48.7k|         bool is_notification = std::holds_alternative<glz::generic::null_t>(req.id);
  585|       |
  586|       |         // Look up the endpoint - try direct lookup first (handles methods that already start with /)
  587|  48.7k|         auto it = endpoints.find(method_name);
  588|  48.7k|         if (it == endpoints.end()) {
  ------------------
  |  Branch (588:14): [True: 35.1k, False: 13.6k]
  ------------------
  589|  35.1k|            if (!method_name.empty()) {
  ------------------
  |  Branch (589:17): [True: 35.1k, False: 0]
  ------------------
  590|       |               // Try with leading slash using stack buffer for common case
  591|  35.1k|               char buf[256];
  592|  35.1k|               if (method_name.size() < sizeof(buf) - 1) {
  ------------------
  |  Branch (592:20): [True: 35.1k, False: 0]
  ------------------
  593|  35.1k|                  buf[0] = '/';
  594|  35.1k|                  std::memcpy(buf + 1, method_name.data(), method_name.size());
  595|  35.1k|                  it = endpoints.find(std::string_view{buf, method_name.size() + 1});
  596|  35.1k|               }
  597|      0|               else {
  598|       |                  // Fallback for very long method names
  599|      0|                  std::string method_path = "/";
  600|      0|                  method_path += method_name;
  601|      0|                  it = endpoints.find(method_path);
  602|      0|               }
  603|  35.1k|            }
  604|      0|            else {
  605|       |               // Empty method - try root endpoint
  606|      0|               it = endpoints.find("");
  607|      0|            }
  608|  35.1k|            if (it == endpoints.end()) {
  ------------------
  |  Branch (608:17): [True: 198, False: 34.9k]
  ------------------
  609|    198|               if (is_notification) {
  ------------------
  |  Branch (609:20): [True: 131, False: 67]
  ------------------
  610|    131|                  return std::nullopt; // No response for notifications
  611|    131|               }
  612|     67|               std::string id_json = glz::write_json(req.id).value_or("null");
  613|     67|               return R"({"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found","data":)" +
  614|     67|                      write_json(method_name).value_or("null") + R"(},"id":)" + id_json + "}";
  615|    198|            }
  616|  35.1k|         }
  617|       |
  618|       |         // Prepare state
  619|  48.5k|         std::string response;
  620|  48.5k|         bool has_params = !req.params.str.empty() && req.params.str != "null";
  ------------------
  |  Branch (620:28): [True: 27.0k, False: 21.5k]
  |  Branch (620:55): [True: 27.0k, False: 5]
  ------------------
  621|  48.5k|         jsonrpc::state state{req.id, response, is_notification, has_params, req.params.str};
  622|       |
  623|  48.5k|         try {
  624|  48.5k|            it->second(std::move(state));
  625|  48.5k|         }
  626|  48.5k|         catch (const std::exception& e) {
  627|      0|            if (is_notification) {
  ------------------
  |  Branch (627:17): [True: 0, False: 0]
  ------------------
  628|      0|               return std::nullopt;
  629|      0|            }
  630|      0|            std::string id_json = glz::write_json(req.id).value_or("null");
  631|      0|            return R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":)" +
  632|      0|                   write_json(std::string_view{e.what()}).value_or("null") + R"(},"id":)" + id_json + "}";
  633|      0|         }
  634|       |
  635|  48.5k|         if (is_notification) {
  ------------------
  |  Branch (635:14): [True: 23.7k, False: 24.8k]
  ------------------
  636|  23.7k|            return std::nullopt;
  637|  23.7k|         }
  638|       |
  639|  24.8k|         return response;
  640|  48.5k|      }
_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE22process_single_requestENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEQeqT0_L_ZNS_7JSONRPCEEENKUlRKNS3_12basic_stringIcS6_NS3_9allocatorIcEEEEE_clESD_:
  562|  13.9k|         const auto invalid_request = [&req](const std::string& data) {
  563|  13.9k|            std::string id_json = glz::write_json(req.id).value_or("null");
  564|  13.9k|            return R"({"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid Request","data":)" +
  565|  13.9k|                   write_json(data).value_or("null") + R"(},"id":)" + id_json + "}";
  566|  13.9k|         };

_ZNK3glz6detail11string_hashclENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   27|  1.93M|      [[nodiscard]] size_t operator()(std::string_view txt) const { return std::hash<std::string_view>{}(txt); }

_ZN3glz6detail18sse2_string_escapeIcRZNS_2toILj10ENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS9_RKS9_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_EUlvE0_EEvRPKcST_RPT_mSN_:
   20|  45.3k|   {
   21|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   22|  45.3k|      if (n > 15) {
  ------------------
  |  Branch (22:11): [True: 29.6k, False: 15.6k]
  ------------------
   23|  29.6k|         const __m128i quote_vec = _mm_set1_epi8('"');
   24|  29.6k|         const __m128i bs_vec = _mm_set1_epi8('\\');
   25|  29.6k|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   26|  29.6k|         const __m128i zero = _mm_setzero_si128();
   27|       |
   28|  13.2M|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (28:45): [True: 13.2M, False: 29.6k]
  ------------------
   29|  13.2M|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   30|  13.2M|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   31|       |
   32|  13.2M|            const uint32_t mask = static_cast<uint32_t>(
   33|  13.2M|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   34|  13.2M|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   35|       |
   36|  13.2M|            if (mask == 0) {
  ------------------
  |  Branch (36:17): [True: 101k, False: 13.1M]
  ------------------
   37|   101k|               data += 16;
   38|   101k|               c += 16;
   39|   101k|               continue;
   40|   101k|            }
   41|       |
   42|  13.1M|            const uint32_t length = countr_zero(mask);
   43|  13.1M|            c += length;
   44|  13.1M|            data += length;
   45|  13.1M|            write_escape();
   46|  13.1M|         }
   47|  29.6k|      }
   48|  45.3k|   }
_ZN3glz6detail18sse2_string_escapeIcRZNS_2toILj10ENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS3_12basic_stringIcS6_NS3_9allocatorIcEEEERS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_EUlvE0_EEvRPKcSU_RPT_mSO_:
   20|  5.12k|   {
   21|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   22|  5.12k|      if (n > 15) {
  ------------------
  |  Branch (22:11): [True: 2.58k, False: 2.53k]
  ------------------
   23|  2.58k|         const __m128i quote_vec = _mm_set1_epi8('"');
   24|  2.58k|         const __m128i bs_vec = _mm_set1_epi8('\\');
   25|  2.58k|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   26|  2.58k|         const __m128i zero = _mm_setzero_si128();
   27|       |
   28|  21.6M|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (28:45): [True: 21.6M, False: 2.58k]
  ------------------
   29|  21.6M|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   30|  21.6M|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   31|       |
   32|  21.6M|            const uint32_t mask = static_cast<uint32_t>(
   33|  21.6M|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   34|  21.6M|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   35|       |
   36|  21.6M|            if (mask == 0) {
  ------------------
  |  Branch (36:17): [True: 830k, False: 20.8M]
  ------------------
   37|   830k|               data += 16;
   38|   830k|               c += 16;
   39|   830k|               continue;
   40|   830k|            }
   41|       |
   42|  20.8M|            const uint32_t length = countr_zero(mask);
   43|  20.8M|            c += length;
   44|  20.8M|            data += length;
   45|  20.8M|            write_escape();
   46|  20.8M|         }
   47|  2.58k|      }
   48|  5.12k|   }
_ZN3glz6detail18sse2_string_escapeIcRZNS_2toILj10ENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS9_SD_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_EUlvE0_EEvRPKcSR_RPT_mSL_:
   20|  1.03k|   {
   21|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   22|  1.03k|      if (n > 15) {
  ------------------
  |  Branch (22:11): [True: 271, False: 760]
  ------------------
   23|    271|         const __m128i quote_vec = _mm_set1_epi8('"');
   24|    271|         const __m128i bs_vec = _mm_set1_epi8('\\');
   25|    271|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   26|    271|         const __m128i zero = _mm_setzero_si128();
   27|       |
   28|  1.56M|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (28:45): [True: 1.56M, False: 271]
  ------------------
   29|  1.56M|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   30|  1.56M|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   31|       |
   32|  1.56M|            const uint32_t mask = static_cast<uint32_t>(
   33|  1.56M|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   34|  1.56M|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   35|       |
   36|  1.56M|            if (mask == 0) {
  ------------------
  |  Branch (36:17): [True: 1.55M, False: 9.82k]
  ------------------
   37|  1.55M|               data += 16;
   38|  1.55M|               c += 16;
   39|  1.55M|               continue;
   40|  1.55M|            }
   41|       |
   42|  9.82k|            const uint32_t length = countr_zero(mask);
   43|  9.82k|            c += length;
   44|  9.82k|            data += length;
   45|  9.82k|            write_escape();
   46|  9.82k|         }
   47|    271|      }
   48|  1.03k|   }
_ZN3glz6detail18sse2_string_escapeIcRZNS_2toILj10ENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS9_S9_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_EUlvE0_EEvRPKcSR_RPT_mSL_:
   20|  4.10M|   {
   21|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   22|  4.10M|      if (n > 15) {
  ------------------
  |  Branch (22:11): [True: 4.10M, False: 0]
  ------------------
   23|  4.10M|         const __m128i quote_vec = _mm_set1_epi8('"');
   24|  4.10M|         const __m128i bs_vec = _mm_set1_epi8('\\');
   25|  4.10M|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   26|  4.10M|         const __m128i zero = _mm_setzero_si128();
   27|       |
   28|  9.12M|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (28:45): [True: 5.01M, False: 4.10M]
  ------------------
   29|  5.01M|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   30|  5.01M|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   31|       |
   32|  5.01M|            const uint32_t mask = static_cast<uint32_t>(
   33|  5.01M|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   34|  5.01M|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   35|       |
   36|  5.01M|            if (mask == 0) {
  ------------------
  |  Branch (36:17): [True: 4.20M, False: 806k]
  ------------------
   37|  4.20M|               data += 16;
   38|  4.20M|               c += 16;
   39|  4.20M|               continue;
   40|  4.20M|            }
   41|       |
   42|   806k|            const uint32_t length = countr_zero(mask);
   43|   806k|            c += length;
   44|   806k|            data += length;
   45|   806k|            write_escape();
   46|   806k|         }
   47|  4.10M|      }
   48|  4.10M|   }
_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_:
   20|     67|   {
   21|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   22|     67|      if (n > 15) {
  ------------------
  |  Branch (22:11): [True: 0, False: 67]
  ------------------
   23|      0|         const __m128i quote_vec = _mm_set1_epi8('"');
   24|      0|         const __m128i bs_vec = _mm_set1_epi8('\\');
   25|      0|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   26|      0|         const __m128i zero = _mm_setzero_si128();
   27|       |
   28|      0|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (28:45): [True: 0, False: 0]
  ------------------
   29|      0|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   30|      0|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   31|       |
   32|      0|            const uint32_t mask = static_cast<uint32_t>(
   33|      0|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   34|      0|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   35|       |
   36|      0|            if (mask == 0) {
  ------------------
  |  Branch (36:17): [True: 0, False: 0]
  ------------------
   37|      0|               data += 16;
   38|      0|               c += 16;
   39|      0|               continue;
   40|      0|            }
   41|       |
   42|      0|            const uint32_t length = countr_zero(mask);
   43|      0|            c += length;
   44|      0|            data += length;
   45|      0|            write_escape();
   46|      0|         }
   47|      0|      }
   48|     67|   }

_ZN3glz6detail10structural11load_windowEPKccc:
   87|  2.96M|   {
   88|  2.96M|      const __m128i v0 = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
   89|  2.96M|      const __m128i v1 = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
   90|  2.96M|      const __m128i v2 = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 32));
   91|  2.96M|      const __m128i v3 = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 48));
   92|       |
   93|  2.96M|      const auto mask_of = [&](const char c) {
   94|  2.96M|         const __m128i cv = _mm_set1_epi8(c);
   95|  2.96M|         return uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v0, cv)))) |
   96|  2.96M|                (uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v1, cv)))) << 16) |
   97|  2.96M|                (uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v2, cv)))) << 32) |
   98|  2.96M|                (uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v3, cv)))) << 48);
   99|  2.96M|      };
  100|       |
  101|  2.96M|      const uint64_t high =
  102|  2.96M|         uint64_t(uint16_t(_mm_movemask_epi8(v0))) | (uint64_t(uint16_t(_mm_movemask_epi8(v1))) << 16) |
  103|  2.96M|         (uint64_t(uint16_t(_mm_movemask_epi8(v2))) << 32) | (uint64_t(uint16_t(_mm_movemask_epi8(v3))) << 48);
  104|       |
  105|  2.96M|      return {mask_of('"'), mask_of('\\'), mask_of(open_c), mask_of(close_c), high};
  106|  2.96M|   }
_ZZN3glz6detail10structural11load_windowEPKcccENKUlcE_clEc:
   93|  11.8M|      const auto mask_of = [&](const char c) {
   94|  11.8M|         const __m128i cv = _mm_set1_epi8(c);
   95|  11.8M|         return uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v0, cv)))) |
   96|  11.8M|                (uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v1, cv)))) << 16) |
   97|  11.8M|                (uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v2, cv)))) << 32) |
   98|  11.8M|                (uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v3, cv)))) << 48);
   99|  11.8M|      };

_ZN3glz4atoiITkNSt3__18integralEicEEbRT_RPKT0_S6_:
  806|   376k|   {
  807|       |      // The number of characters needed at most for each type, rounded to nearest 8 bytes
  808|   376k|      constexpr auto buffer_length = int_buffer_lengths[std::bit_width(sizeof(T)) - 1];
  809|       |      // We copy the rest of the buffer, or buffer_length bytes, into a null terminated buffer. The
  810|       |      // trailing byte is never written by the copy, so the null-terminated atoi below always halts
  811|       |      // inside the array even when the input fills it: the exponent scan stops at a non-digit rather
  812|       |      // than after a fixed digit count, and a value-initialized array alone would not terminate a
  813|       |      // copy that covers every byte.
  814|   376k|      std::array<char, buffer_length + 1> data{};
  815|   376k|      const auto n = size_t(end - it);
  816|   376k|      if (n > 0) [[likely]] {
  ------------------
  |  Branch (816:11): [True: 376k, False: 0]
  ------------------
  817|   376k|         const auto truncated = n > buffer_length;
  818|   376k|         std::memcpy(data.data(), it, truncated ? buffer_length : n);
  ------------------
  |  Branch (818:39): [True: 357k, False: 18.9k]
  ------------------
  819|       |
  820|   376k|         const auto start = data.data();
  821|   376k|         const auto* c = start;
  822|   376k|         const auto valid = glz::atoi(v, c);
  823|   376k|         const auto consumed = size_t(c - start);
  824|   376k|         it += consumed;
  825|       |         // Reaching the end of a truncated copy means the number was cut off: parsing halted on the
  826|       |         // terminator this buffer supplies rather than on a character of the input, so what parsed is
  827|       |         // a prefix and its value is not the number's. Only zero padding can stretch a number this
  828|       |         // far -- no in-range integer needs buffer_length characters -- but a caller that ignores
  829|       |         // trailing content would otherwise take the prefix's value as the answer.
  830|   376k|         return valid && not(truncated && consumed == buffer_length);
  ------------------
  |  Branch (830:17): [True: 370k, False: 5.19k]
  |  Branch (830:30): [True: 356k, False: 14.0k]
  |  Branch (830:43): [True: 8, False: 356k]
  ------------------
  831|   376k|      }
  832|      0|      else [[unlikely]] {
  833|      0|         return false;
  834|      0|      }
  835|   376k|   }
_ZN3glz4atoiITkNSt3__18integralEiKcQsr3stdE11is_signed_vIT_EEEbRS3_RPT0_:
  718|   376k|   {
  719|   376k|      using X = std::decay_t<T>;
  720|   376k|      using utype = std::make_unsigned_t<X>;
  721|       |
  722|   376k|      const uint8_t sign = *c == '-';
  723|   376k|      if (auto ptr = parse_int(v, reinterpret_cast<const uint8_t*>(c))) [[likely]] {
  ------------------
  |  Branch (723:16): [True: 372k, False: 3.28k]
  ------------------
  724|   372k|         c = reinterpret_cast<const Char*>(ptr);
  725|   372k|         if (*c == 'e' || *c == 'E') {
  ------------------
  |  Branch (725:14): [True: 10.0k, False: 362k]
  |  Branch (725:27): [True: 30.9k, False: 331k]
  ------------------
  726|  40.9k|            ++c;
  727|  40.9k|         }
  728|   331k|         else {
  729|   331k|            if (*c == '.') [[unlikely]] {
  ------------------
  |  Branch (729:17): [True: 44, False: 331k]
  ------------------
  730|     44|               return false;
  731|     44|            }
  732|   331k|            return true;
  733|   331k|         }
  734|       |
  735|  40.9k|         c += (*c == '+');
  736|       |
  737|  40.9k|         if (not is_digit(*c)) [[unlikely]] {
  ------------------
  |  Branch (737:14): [True: 284, False: 40.6k]
  ------------------
  738|    284|            return false;
  739|    284|         }
  740|  40.6k|         const uint32_t exp = parse_exponent(c);
  741|       |         // As in the unsigned overload: only a non-zero magnitude can overflow, so "0e19" and
  742|       |         // "-0e19" are in range for every width. `v` is already the signed mantissa, and negative
  743|       |         // zero compares equal to zero, so both spellings land here with the value they should keep.
  744|       |         if constexpr (sizeof(T) == 1) {
  745|       |            if (exp > 2) [[unlikely]] {
  746|       |               return v == 0;
  747|       |            }
  748|       |         }
  749|       |         else if constexpr (sizeof(T) == 2) {
  750|       |            if (exp > 4) [[unlikely]] {
  751|       |               return v == 0;
  752|       |            }
  753|       |         }
  754|  40.6k|         else if constexpr (sizeof(T) == 4) {
  755|  40.6k|            if (exp > 9) [[unlikely]] {
  ------------------
  |  Branch (755:17): [True: 3.40k, False: 37.2k]
  ------------------
  756|  3.40k|               return v == 0;
  757|  3.40k|            }
  758|       |         }
  759|       |         else {
  760|       |            if (exp > 18) [[unlikely]] {
  761|       |               return v == 0;
  762|       |            }
  763|       |         }
  764|       |
  765|  37.2k|         utype i = utype((utype(v) ^ -sign) + sign);
  766|  40.6k|         if constexpr (sizeof(T) < 8) {
  767|       |            // Scale in a width the product cannot wrap, then range check before narrowing. Scaling
  768|       |            // inside `utype` truncated first and checked afterwards, so an out-of-range magnitude
  769|       |            // aliased onto an accepted one: "13e2" read as 20 for int8_t and "5e9" as 705032704 for
  770|       |            // int32_t. The widest case here is a 4-byte magnitude scaled by 10^9, which stays well
  771|       |            // inside uint64_t. The unsigned path already widens the same way.
  772|  40.6k|            const uint64_t scaled = uint64_t(i) * powers_of_ten_int[exp];
  773|  40.6k|            v = T((utype(scaled) ^ -sign) + sign);
  774|       |            // Bound the magnitude directly rather than subtracting the sign from it: a negative
  775|       |            // zero makes `scaled - sign` underflow, and the old narrow expression only survived
  776|       |            // that because it promoted to int. A negative value may reach one past the positive
  777|       |            // limit, which is exactly INT_MIN's magnitude.
  778|  40.6k|            return scaled <= uint64_t((std::numeric_limits<T>::max)()) + sign;
  779|       |         }
  780|       |         else {
  781|       |            // Scale the sign-stripped magnitude `i`, not the two's-complement bit pattern of `v`:
  782|       |            // for a negative value that pattern is a huge unsigned number, so every negative
  783|       |            // 64-bit integer written with an exponent ("-1e2") overflowed and was rejected. The
  784|       |            // narrower branches above already scale `i`.
  785|       |#if defined(__SIZEOF_INT128__)
  786|       |            const __uint128_t res = __uint128_t(i) * powers_of_ten_int[exp];
  787|       |            v = T((uint64_t(res) ^ -sign) + sign);
  788|       |            // Compare the full 128-bit product. Narrowing it to 64 bits first would let an
  789|       |            // out-of-range magnitude alias onto an accepted one, e.g. 9e36 truncating into range.
  790|       |            return res <= __uint128_t(9223372036854775807ull + sign);
  791|       |#else
  792|       |            const auto res = full_multiplication(i, powers_of_ten_int[exp]);
  793|       |            v = T((uint64_t(res.low) ^ -sign) + sign);
  794|       |            return res.high == 0 && (uint64_t(res.low) <= (9223372036854775807ull + sign));
  795|       |#endif
  796|       |         }
  797|  40.6k|      }
  798|  43.9k|      return false;
  799|   376k|   }
_ZN3glz9parse_intITkNSt3__18integralEiQaasr3stdE11is_signed_vIT_ElestS2_Li8EEEPKhRS2_S4_:
  479|   376k|   {
  480|   376k|      const uint8_t sign = *c == '-';
  481|   376k|      c += sign;
  482|       |
  483|   376k|      if (is_digit(*c)) [[likely]] {
  ------------------
  |  Branch (483:11): [True: 373k, False: 2.78k]
  ------------------
  484|   373k|         v = *c - '0';
  485|   373k|         ++c;
  486|   373k|      }
  487|  2.78k|      else [[unlikely]] {
  488|  2.78k|         return {};
  489|  2.78k|      }
  490|       |
  491|   373k|      if (is_digit(*c)) {
  ------------------
  |  Branch (491:11): [True: 272k, False: 101k]
  ------------------
  492|   272k|         v = v * 10 + (*c - '0');
  493|   272k|         ++c;
  494|   272k|      }
  495|   101k|      else {
  496|   101k|         if (sign) {
  ------------------
  |  Branch (496:14): [True: 40.7k, False: 60.4k]
  ------------------
  497|  40.7k|            v = -v;
  498|  40.7k|         }
  499|   101k|         return c;
  500|   101k|      }
  501|       |
  502|   272k|      if (c[-2] == '0') [[unlikely]] {
  ------------------
  |  Branch (502:11): [True: 77, False: 272k]
  ------------------
  503|     77|         return {};
  504|     77|      }
  505|       |
  506|   272k|      if constexpr (sizeof(T) > 1) {
  507|   272k|         if (is_digit(*c)) {
  ------------------
  |  Branch (507:14): [True: 161k, False: 110k]
  ------------------
  508|   161k|            v = v * 10 + (*c - '0');
  509|   161k|            ++c;
  510|   161k|         }
  511|   110k|         else {
  512|   110k|            if (sign) {
  ------------------
  |  Branch (512:17): [True: 66.4k, False: 44.0k]
  ------------------
  513|  66.4k|               v = -v;
  514|  66.4k|            }
  515|   110k|            return c;
  516|   110k|         }
  517|       |
  518|   161k|         if (is_digit(*c)) {
  ------------------
  |  Branch (518:14): [True: 105k, False: 55.6k]
  ------------------
  519|   105k|            v = v * 10 + (*c - '0');
  520|   105k|            ++c;
  521|   105k|         }
  522|  55.6k|         else {
  523|  55.6k|            if (sign) {
  ------------------
  |  Branch (523:17): [True: 37.5k, False: 18.0k]
  ------------------
  524|  37.5k|               v = -v;
  525|  37.5k|            }
  526|  55.6k|            return c;
  527|  55.6k|         }
  528|       |
  529|   105k|         if constexpr (sizeof(T) > 2) {
  530|   105k|            if (is_digit(*c)) {
  ------------------
  |  Branch (530:17): [True: 77.4k, False: 28.3k]
  ------------------
  531|  77.4k|               v = v * 10 + (*c - '0');
  532|  77.4k|               ++c;
  533|  77.4k|            }
  534|  28.3k|            else {
  535|  28.3k|               if (sign) {
  ------------------
  |  Branch (535:20): [True: 5.24k, False: 23.0k]
  ------------------
  536|  5.24k|                  v = -v;
  537|  5.24k|               }
  538|  28.3k|               return c;
  539|  28.3k|            }
  540|       |
  541|  77.4k|            if (is_digit(*c)) {
  ------------------
  |  Branch (541:17): [True: 63.6k, False: 13.7k]
  ------------------
  542|  63.6k|               v = v * 10 + (*c - '0');
  543|  63.6k|               ++c;
  544|  63.6k|            }
  545|  13.7k|            else {
  546|  13.7k|               if (sign) {
  ------------------
  |  Branch (546:20): [True: 6.20k, False: 7.59k]
  ------------------
  547|  6.20k|                  v = -v;
  548|  6.20k|               }
  549|  13.7k|               return c;
  550|  13.7k|            }
  551|       |
  552|  63.6k|            if (is_digit(*c)) {
  ------------------
  |  Branch (552:17): [True: 45.0k, False: 18.6k]
  ------------------
  553|  45.0k|               v = v * 10 + (*c - '0');
  554|  45.0k|               ++c;
  555|  45.0k|            }
  556|  18.6k|            else {
  557|  18.6k|               if (sign) {
  ------------------
  |  Branch (557:20): [True: 5.13k, False: 13.4k]
  ------------------
  558|  5.13k|                  v = -v;
  559|  5.13k|               }
  560|  18.6k|               return c;
  561|  18.6k|            }
  562|       |
  563|  45.0k|            if (is_digit(*c)) {
  ------------------
  |  Branch (563:17): [True: 31.5k, False: 13.4k]
  ------------------
  564|  31.5k|               v = v * 10 + (*c - '0');
  565|  31.5k|               ++c;
  566|  31.5k|            }
  567|  13.4k|            else {
  568|  13.4k|               if (sign) {
  ------------------
  |  Branch (568:20): [True: 3.61k, False: 9.83k]
  ------------------
  569|  3.61k|                  v = -v;
  570|  3.61k|               }
  571|  13.4k|               return c;
  572|  13.4k|            }
  573|       |
  574|  31.5k|            if (is_digit(*c)) {
  ------------------
  |  Branch (574:17): [True: 19.4k, False: 12.0k]
  ------------------
  575|  19.4k|               v = v * 10 + (*c - '0');
  576|  19.4k|               ++c;
  577|  19.4k|            }
  578|  12.0k|            else {
  579|  12.0k|               if (sign) {
  ------------------
  |  Branch (579:20): [True: 5.25k, False: 6.83k]
  ------------------
  580|  5.25k|                  v = -v;
  581|  5.25k|               }
  582|  12.0k|               return c;
  583|  12.0k|            }
  584|       |
  585|       |            if constexpr (sizeof(T) > 4) {
  586|       |               if (is_digit(*c)) {
  587|       |                  v = v * 10 + (*c - '0');
  588|       |                  ++c;
  589|       |               }
  590|       |               else {
  591|       |                  if (sign) {
  592|       |                     v = -v;
  593|       |                  }
  594|       |                  return c;
  595|       |               }
  596|       |
  597|       |               if (is_digit(*c)) {
  598|       |                  v = v * 10 + (*c - '0');
  599|       |                  ++c;
  600|       |               }
  601|       |               else {
  602|       |                  if (sign) {
  603|       |                     v = -v;
  604|       |                  }
  605|       |                  return c;
  606|       |               }
  607|       |
  608|       |               if (is_digit(*c)) {
  609|       |                  v = v * 10 + (*c - '0');
  610|       |                  ++c;
  611|       |               }
  612|       |               else {
  613|       |                  if (sign) {
  614|       |                     v = -v;
  615|       |                  }
  616|       |                  return c;
  617|       |               }
  618|       |
  619|       |               if (is_digit(*c)) {
  620|       |                  v = v * 10 + (*c - '0');
  621|       |                  ++c;
  622|       |               }
  623|       |               else {
  624|       |                  if (sign) {
  625|       |                     v = -v;
  626|       |                  }
  627|       |                  return c;
  628|       |               }
  629|       |
  630|       |               if (is_digit(*c)) {
  631|       |                  v = v * 10 + (*c - '0');
  632|       |                  ++c;
  633|       |               }
  634|       |               else {
  635|       |                  if (sign) {
  636|       |                     v = -v;
  637|       |                  }
  638|       |                  return c;
  639|       |               }
  640|       |
  641|       |               if (is_digit(*c)) {
  642|       |                  v = v * 10 + (*c - '0');
  643|       |                  ++c;
  644|       |               }
  645|       |               else {
  646|       |                  if (sign) {
  647|       |                     v = -v;
  648|       |                  }
  649|       |                  return c;
  650|       |               }
  651|       |
  652|       |               if (is_digit(*c)) {
  653|       |                  v = v * 10 + (*c - '0');
  654|       |                  ++c;
  655|       |               }
  656|       |               else {
  657|       |                  if (sign) {
  658|       |                     v = -v;
  659|       |                  }
  660|       |                  return c;
  661|       |               }
  662|       |
  663|       |               if (is_digit(*c)) {
  664|       |                  v = v * 10 + (*c - '0');
  665|       |                  ++c;
  666|       |               }
  667|       |               else {
  668|       |                  if (sign) {
  669|       |                     v = -v;
  670|       |                  }
  671|       |                  return c;
  672|       |               }
  673|       |
  674|       |               if (is_digit(*c)) {
  675|       |                  v = v * 10 + (*c - '0');
  676|       |                  ++c;
  677|       |               }
  678|       |               else {
  679|       |                  if (sign) {
  680|       |                     v = -v;
  681|       |                  }
  682|       |                  return c;
  683|       |               }
  684|       |            }
  685|  19.4k|         }
  686|   105k|      }
  687|       |
  688|   272k|      if (is_digit(*c)) {
  ------------------
  |  Branch (688:11): [True: 6.65k, False: 265k]
  ------------------
  689|  6.65k|         if (sign) {
  ------------------
  |  Branch (689:14): [True: 3.43k, False: 3.22k]
  ------------------
  690|  3.43k|            if (would_overflow_negative<T>(v, *c)) [[unlikely]] {
  ------------------
  |  Branch (690:17): [True: 208, False: 3.22k]
  ------------------
  691|    208|               return {};
  692|    208|            }
  693|  3.22k|            v = -1 * v;
  694|  3.22k|            v = v * 10 - (*c - '0');
  695|  3.22k|         }
  696|  3.22k|         else {
  697|  3.22k|            if (would_overflow_positive<T>(v, *c)) [[unlikely]] {
  ------------------
  |  Branch (697:17): [True: 125, False: 3.09k]
  ------------------
  698|    125|               return {};
  699|    125|            }
  700|  3.09k|            v = v * 10 + (*c - '0');
  701|  3.09k|         }
  702|  6.32k|         ++c;
  703|  6.32k|         if (is_digit(*c)) [[unlikely]] {
  ------------------
  |  Branch (703:14): [True: 96, False: 6.22k]
  ------------------
  704|     96|            return {};
  705|     96|         }
  706|  6.22k|         return c;
  707|  6.32k|      }
  708|       |
  709|   265k|      if (sign) {
  ------------------
  |  Branch (709:11): [True: 4.21k, False: 261k]
  ------------------
  710|  4.21k|         v = -v;
  711|  4.21k|      }
  712|   265k|      return c;
  713|   272k|   }
_ZN3glz23would_overflow_negativeIiEEbu17__remove_volatileIT_Eh:
  154|  3.43k|   {
  155|       |      // For negative: max magnitude is max + 1 (e.g., -2147483648 for int32)
  156|  3.43k|      using U = std::remove_volatile_t<T>;
  157|  3.43k|      constexpr auto max_val = static_cast<uint64_t>((std::numeric_limits<U>::max)()) + 1;
  158|  3.43k|      constexpr auto threshold = max_val / 10;
  159|  3.43k|      constexpr auto last_digit = max_val % 10;
  160|  3.43k|      const auto uv = static_cast<uint64_t>(v);
  161|  3.43k|      const auto digit = static_cast<uint64_t>(next_digit - '0');
  162|       |      // When digit > last_digit, effective threshold is one less
  163|  3.43k|      return uv > (threshold - uint64_t(digit > last_digit));
  164|  3.43k|   }
_ZN3glz23would_overflow_positiveIiEEbu17__remove_volatileIT_Eh:
  140|  3.22k|   {
  141|  3.22k|      using U = std::remove_volatile_t<T>;
  142|  3.22k|      constexpr auto max_val = static_cast<uint64_t>((std::numeric_limits<U>::max)());
  143|  3.22k|      constexpr auto threshold = max_val / 10;
  144|  3.22k|      constexpr auto last_digit = max_val % 10;
  145|  3.22k|      const auto uv = static_cast<uint64_t>(v);
  146|  3.22k|      const auto digit = static_cast<uint64_t>(next_digit - '0');
  147|       |      // When digit > last_digit, effective threshold is one less
  148|       |      // This is branch-free and faster than bitwise OR/AND approach
  149|  3.22k|      return uv > (threshold - uint64_t(digit > last_digit));
  150|  3.22k|   }
_ZN3glz8is_digitEh:
  106|  19.4M|   GLZ_ALWAYS_INLINE constexpr bool is_digit(const uint8_t c) noexcept { return c <= '9' && c >= '0'; }
  ------------------
  |  Branch (106:81): [True: 19.0M, False: 362k]
  |  Branch (106:93): [True: 13.1M, False: 5.89M]
  ------------------
_ZN3glz14parse_exponentIKcEEjRPT_:
  124|  47.0k|   {
  125|  47.0k|      uint32_t exp = uint32_t(*c - '0');
  126|  47.0k|      ++c;
  127|  89.8k|      while (is_digit(*c)) {
  ------------------
  |  Branch (127:14): [True: 42.8k, False: 47.0k]
  ------------------
  128|       |         // Written as a select rather than a branch: the clamp only ever engages on absurdly long
  129|       |         // exponents, so a branch here would be a mispredict risk on the path that matters.
  130|  42.8k|         exp = exp < exponent_clamp ? exp * 10 + uint32_t(*c - '0') : exp;
  ------------------
  |  Branch (130:16): [True: 38.2k, False: 4.63k]
  ------------------
  131|  42.8k|         ++c;
  132|  42.8k|      }
  133|  47.0k|      return exp;
  134|  47.0k|   }
_ZN3glz4atoiITkNSt3__18integralElcEEbRT_RPKT0_S6_:
  806|  72.2k|   {
  807|       |      // The number of characters needed at most for each type, rounded to nearest 8 bytes
  808|  72.2k|      constexpr auto buffer_length = int_buffer_lengths[std::bit_width(sizeof(T)) - 1];
  809|       |      // We copy the rest of the buffer, or buffer_length bytes, into a null terminated buffer. The
  810|       |      // trailing byte is never written by the copy, so the null-terminated atoi below always halts
  811|       |      // inside the array even when the input fills it: the exponent scan stops at a non-digit rather
  812|       |      // than after a fixed digit count, and a value-initialized array alone would not terminate a
  813|       |      // copy that covers every byte.
  814|  72.2k|      std::array<char, buffer_length + 1> data{};
  815|  72.2k|      const auto n = size_t(end - it);
  816|  72.2k|      if (n > 0) [[likely]] {
  ------------------
  |  Branch (816:11): [True: 72.2k, False: 0]
  ------------------
  817|  72.2k|         const auto truncated = n > buffer_length;
  818|  72.2k|         std::memcpy(data.data(), it, truncated ? buffer_length : n);
  ------------------
  |  Branch (818:39): [True: 19.1k, False: 53.1k]
  ------------------
  819|       |
  820|  72.2k|         const auto start = data.data();
  821|  72.2k|         const auto* c = start;
  822|  72.2k|         const auto valid = glz::atoi(v, c);
  823|  72.2k|         const auto consumed = size_t(c - start);
  824|  72.2k|         it += consumed;
  825|       |         // Reaching the end of a truncated copy means the number was cut off: parsing halted on the
  826|       |         // terminator this buffer supplies rather than on a character of the input, so what parsed is
  827|       |         // a prefix and its value is not the number's. Only zero padding can stretch a number this
  828|       |         // far -- no in-range integer needs buffer_length characters -- but a caller that ignores
  829|       |         // trailing content would otherwise take the prefix's value as the answer.
  830|  72.2k|         return valid && not(truncated && consumed == buffer_length);
  ------------------
  |  Branch (830:17): [True: 56.0k, False: 16.1k]
  |  Branch (830:30): [True: 18.6k, False: 37.3k]
  |  Branch (830:43): [True: 25, False: 18.6k]
  ------------------
  831|  72.2k|      }
  832|      0|      else [[unlikely]] {
  833|      0|         return false;
  834|      0|      }
  835|  72.2k|   }
_ZN3glz4atoiITkNSt3__18integralElKcQsr3stdE11is_signed_vIT_EEEbRS3_RPT0_:
  718|  72.2k|   {
  719|  72.2k|      using X = std::decay_t<T>;
  720|  72.2k|      using utype = std::make_unsigned_t<X>;
  721|       |
  722|  72.2k|      const uint8_t sign = *c == '-';
  723|  72.2k|      if (auto ptr = parse_int(v, reinterpret_cast<const uint8_t*>(c))) [[likely]] {
  ------------------
  |  Branch (723:16): [True: 63.6k, False: 8.53k]
  ------------------
  724|  63.6k|         c = reinterpret_cast<const Char*>(ptr);
  725|  63.6k|         if (*c == 'e' || *c == 'E') {
  ------------------
  |  Branch (725:14): [True: 2.52k, False: 61.1k]
  |  Branch (725:27): [True: 5.15k, False: 56.0k]
  ------------------
  726|  7.68k|            ++c;
  727|  7.68k|         }
  728|  56.0k|         else {
  729|  56.0k|            if (*c == '.') [[unlikely]] {
  ------------------
  |  Branch (729:17): [True: 2.26k, False: 53.7k]
  ------------------
  730|  2.26k|               return false;
  731|  2.26k|            }
  732|  53.7k|            return true;
  733|  56.0k|         }
  734|       |
  735|  7.68k|         c += (*c == '+');
  736|       |
  737|  7.68k|         if (not is_digit(*c)) [[unlikely]] {
  ------------------
  |  Branch (737:14): [True: 1.27k, False: 6.40k]
  ------------------
  738|  1.27k|            return false;
  739|  1.27k|         }
  740|  6.40k|         const uint32_t exp = parse_exponent(c);
  741|       |         // As in the unsigned overload: only a non-zero magnitude can overflow, so "0e19" and
  742|       |         // "-0e19" are in range for every width. `v` is already the signed mantissa, and negative
  743|       |         // zero compares equal to zero, so both spellings land here with the value they should keep.
  744|       |         if constexpr (sizeof(T) == 1) {
  745|       |            if (exp > 2) [[unlikely]] {
  746|       |               return v == 0;
  747|       |            }
  748|       |         }
  749|       |         else if constexpr (sizeof(T) == 2) {
  750|       |            if (exp > 4) [[unlikely]] {
  751|       |               return v == 0;
  752|       |            }
  753|       |         }
  754|       |         else if constexpr (sizeof(T) == 4) {
  755|       |            if (exp > 9) [[unlikely]] {
  756|       |               return v == 0;
  757|       |            }
  758|       |         }
  759|  6.40k|         else {
  760|  6.40k|            if (exp > 18) [[unlikely]] {
  ------------------
  |  Branch (760:17): [True: 3.02k, False: 3.38k]
  ------------------
  761|  3.02k|               return v == 0;
  762|  3.02k|            }
  763|  6.40k|         }
  764|       |
  765|  3.38k|         utype i = utype((utype(v) ^ -sign) + sign);
  766|       |         if constexpr (sizeof(T) < 8) {
  767|       |            // Scale in a width the product cannot wrap, then range check before narrowing. Scaling
  768|       |            // inside `utype` truncated first and checked afterwards, so an out-of-range magnitude
  769|       |            // aliased onto an accepted one: "13e2" read as 20 for int8_t and "5e9" as 705032704 for
  770|       |            // int32_t. The widest case here is a 4-byte magnitude scaled by 10^9, which stays well
  771|       |            // inside uint64_t. The unsigned path already widens the same way.
  772|       |            const uint64_t scaled = uint64_t(i) * powers_of_ten_int[exp];
  773|       |            v = T((utype(scaled) ^ -sign) + sign);
  774|       |            // Bound the magnitude directly rather than subtracting the sign from it: a negative
  775|       |            // zero makes `scaled - sign` underflow, and the old narrow expression only survived
  776|       |            // that because it promoted to int. A negative value may reach one past the positive
  777|       |            // limit, which is exactly INT_MIN's magnitude.
  778|       |            return scaled <= uint64_t((std::numeric_limits<T>::max)()) + sign;
  779|       |         }
  780|  6.40k|         else {
  781|       |            // Scale the sign-stripped magnitude `i`, not the two's-complement bit pattern of `v`:
  782|       |            // for a negative value that pattern is a huge unsigned number, so every negative
  783|       |            // 64-bit integer written with an exponent ("-1e2") overflowed and was rejected. The
  784|       |            // narrower branches above already scale `i`.
  785|  6.40k|#if defined(__SIZEOF_INT128__)
  786|  6.40k|            const __uint128_t res = __uint128_t(i) * powers_of_ten_int[exp];
  787|  6.40k|            v = T((uint64_t(res) ^ -sign) + sign);
  788|       |            // Compare the full 128-bit product. Narrowing it to 64 bits first would let an
  789|       |            // out-of-range magnitude alias onto an accepted one, e.g. 9e36 truncating into range.
  790|  6.40k|            return res <= __uint128_t(9223372036854775807ull + sign);
  791|       |#else
  792|       |            const auto res = full_multiplication(i, powers_of_ten_int[exp]);
  793|       |            v = T((uint64_t(res.low) ^ -sign) + sign);
  794|       |            return res.high == 0 && (uint64_t(res.low) <= (9223372036854775807ull + sign));
  795|       |#endif
  796|  6.40k|         }
  797|  6.40k|      }
  798|  14.9k|      return false;
  799|  72.2k|   }
_ZN3glz9parse_intITkNSt3__18integralElQaasr3stdE11is_signed_vIT_ElestS2_Li8EEEPKhRS2_S4_:
  479|  72.2k|   {
  480|  72.2k|      const uint8_t sign = *c == '-';
  481|  72.2k|      c += sign;
  482|       |
  483|  72.2k|      if (is_digit(*c)) [[likely]] {
  ------------------
  |  Branch (483:11): [True: 71.2k, False: 989]
  ------------------
  484|  71.2k|         v = *c - '0';
  485|  71.2k|         ++c;
  486|  71.2k|      }
  487|    989|      else [[unlikely]] {
  488|    989|         return {};
  489|    989|      }
  490|       |
  491|  71.2k|      if (is_digit(*c)) {
  ------------------
  |  Branch (491:11): [True: 36.8k, False: 34.3k]
  ------------------
  492|  36.8k|         v = v * 10 + (*c - '0');
  493|  36.8k|         ++c;
  494|  36.8k|      }
  495|  34.3k|      else {
  496|  34.3k|         if (sign) {
  ------------------
  |  Branch (496:14): [True: 1.00k, False: 33.3k]
  ------------------
  497|  1.00k|            v = -v;
  498|  1.00k|         }
  499|  34.3k|         return c;
  500|  34.3k|      }
  501|       |
  502|  36.8k|      if (c[-2] == '0') [[unlikely]] {
  ------------------
  |  Branch (502:11): [True: 384, False: 36.4k]
  ------------------
  503|    384|         return {};
  504|    384|      }
  505|       |
  506|  36.4k|      if constexpr (sizeof(T) > 1) {
  507|  36.4k|         if (is_digit(*c)) {
  ------------------
  |  Branch (507:14): [True: 34.9k, False: 1.53k]
  ------------------
  508|  34.9k|            v = v * 10 + (*c - '0');
  509|  34.9k|            ++c;
  510|  34.9k|         }
  511|  1.53k|         else {
  512|  1.53k|            if (sign) {
  ------------------
  |  Branch (512:17): [True: 461, False: 1.07k]
  ------------------
  513|    461|               v = -v;
  514|    461|            }
  515|  1.53k|            return c;
  516|  1.53k|         }
  517|       |
  518|  34.9k|         if (is_digit(*c)) {
  ------------------
  |  Branch (518:14): [True: 32.9k, False: 1.95k]
  ------------------
  519|  32.9k|            v = v * 10 + (*c - '0');
  520|  32.9k|            ++c;
  521|  32.9k|         }
  522|  1.95k|         else {
  523|  1.95k|            if (sign) {
  ------------------
  |  Branch (523:17): [True: 735, False: 1.21k]
  ------------------
  524|    735|               v = -v;
  525|    735|            }
  526|  1.95k|            return c;
  527|  1.95k|         }
  528|       |
  529|  32.9k|         if constexpr (sizeof(T) > 2) {
  530|  32.9k|            if (is_digit(*c)) {
  ------------------
  |  Branch (530:17): [True: 31.1k, False: 1.86k]
  ------------------
  531|  31.1k|               v = v * 10 + (*c - '0');
  532|  31.1k|               ++c;
  533|  31.1k|            }
  534|  1.86k|            else {
  535|  1.86k|               if (sign) {
  ------------------
  |  Branch (535:20): [True: 1.03k, False: 832]
  ------------------
  536|  1.03k|                  v = -v;
  537|  1.03k|               }
  538|  1.86k|               return c;
  539|  1.86k|            }
  540|       |
  541|  31.1k|            if (is_digit(*c)) {
  ------------------
  |  Branch (541:17): [True: 27.6k, False: 3.50k]
  ------------------
  542|  27.6k|               v = v * 10 + (*c - '0');
  543|  27.6k|               ++c;
  544|  27.6k|            }
  545|  3.50k|            else {
  546|  3.50k|               if (sign) {
  ------------------
  |  Branch (546:20): [True: 2.57k, False: 932]
  ------------------
  547|  2.57k|                  v = -v;
  548|  2.57k|               }
  549|  3.50k|               return c;
  550|  3.50k|            }
  551|       |
  552|  27.6k|            if (is_digit(*c)) {
  ------------------
  |  Branch (552:17): [True: 26.4k, False: 1.18k]
  ------------------
  553|  26.4k|               v = v * 10 + (*c - '0');
  554|  26.4k|               ++c;
  555|  26.4k|            }
  556|  1.18k|            else {
  557|  1.18k|               if (sign) {
  ------------------
  |  Branch (557:20): [True: 631, False: 555]
  ------------------
  558|    631|                  v = -v;
  559|    631|               }
  560|  1.18k|               return c;
  561|  1.18k|            }
  562|       |
  563|  26.4k|            if (is_digit(*c)) {
  ------------------
  |  Branch (563:17): [True: 24.8k, False: 1.57k]
  ------------------
  564|  24.8k|               v = v * 10 + (*c - '0');
  565|  24.8k|               ++c;
  566|  24.8k|            }
  567|  1.57k|            else {
  568|  1.57k|               if (sign) {
  ------------------
  |  Branch (568:20): [True: 799, False: 774]
  ------------------
  569|    799|                  v = -v;
  570|    799|               }
  571|  1.57k|               return c;
  572|  1.57k|            }
  573|       |
  574|  24.8k|            if (is_digit(*c)) {
  ------------------
  |  Branch (574:17): [True: 23.3k, False: 1.53k]
  ------------------
  575|  23.3k|               v = v * 10 + (*c - '0');
  576|  23.3k|               ++c;
  577|  23.3k|            }
  578|  1.53k|            else {
  579|  1.53k|               if (sign) {
  ------------------
  |  Branch (579:20): [True: 918, False: 614]
  ------------------
  580|    918|                  v = -v;
  581|    918|               }
  582|  1.53k|               return c;
  583|  1.53k|            }
  584|       |
  585|  23.3k|            if constexpr (sizeof(T) > 4) {
  586|  23.3k|               if (is_digit(*c)) {
  ------------------
  |  Branch (586:20): [True: 21.9k, False: 1.37k]
  ------------------
  587|  21.9k|                  v = v * 10 + (*c - '0');
  588|  21.9k|                  ++c;
  589|  21.9k|               }
  590|  1.37k|               else {
  591|  1.37k|                  if (sign) {
  ------------------
  |  Branch (591:23): [True: 559, False: 813]
  ------------------
  592|    559|                     v = -v;
  593|    559|                  }
  594|  1.37k|                  return c;
  595|  1.37k|               }
  596|       |
  597|  21.9k|               if (is_digit(*c)) {
  ------------------
  |  Branch (597:20): [True: 20.7k, False: 1.18k]
  ------------------
  598|  20.7k|                  v = v * 10 + (*c - '0');
  599|  20.7k|                  ++c;
  600|  20.7k|               }
  601|  1.18k|               else {
  602|  1.18k|                  if (sign) {
  ------------------
  |  Branch (602:23): [True: 402, False: 780]
  ------------------
  603|    402|                     v = -v;
  604|    402|                  }
  605|  1.18k|                  return c;
  606|  1.18k|               }
  607|       |
  608|  20.7k|               if (is_digit(*c)) {
  ------------------
  |  Branch (608:20): [True: 19.5k, False: 1.25k]
  ------------------
  609|  19.5k|                  v = v * 10 + (*c - '0');
  610|  19.5k|                  ++c;
  611|  19.5k|               }
  612|  1.25k|               else {
  613|  1.25k|                  if (sign) {
  ------------------
  |  Branch (613:23): [True: 443, False: 811]
  ------------------
  614|    443|                     v = -v;
  615|    443|                  }
  616|  1.25k|                  return c;
  617|  1.25k|               }
  618|       |
  619|  19.5k|               if (is_digit(*c)) {
  ------------------
  |  Branch (619:20): [True: 18.2k, False: 1.27k]
  ------------------
  620|  18.2k|                  v = v * 10 + (*c - '0');
  621|  18.2k|                  ++c;
  622|  18.2k|               }
  623|  1.27k|               else {
  624|  1.27k|                  if (sign) {
  ------------------
  |  Branch (624:23): [True: 572, False: 699]
  ------------------
  625|    572|                     v = -v;
  626|    572|                  }
  627|  1.27k|                  return c;
  628|  1.27k|               }
  629|       |
  630|  18.2k|               if (is_digit(*c)) {
  ------------------
  |  Branch (630:20): [True: 17.1k, False: 1.10k]
  ------------------
  631|  17.1k|                  v = v * 10 + (*c - '0');
  632|  17.1k|                  ++c;
  633|  17.1k|               }
  634|  1.10k|               else {
  635|  1.10k|                  if (sign) {
  ------------------
  |  Branch (635:23): [True: 473, False: 636]
  ------------------
  636|    473|                     v = -v;
  637|    473|                  }
  638|  1.10k|                  return c;
  639|  1.10k|               }
  640|       |
  641|  17.1k|               if (is_digit(*c)) {
  ------------------
  |  Branch (641:20): [True: 15.6k, False: 1.47k]
  ------------------
  642|  15.6k|                  v = v * 10 + (*c - '0');
  643|  15.6k|                  ++c;
  644|  15.6k|               }
  645|  1.47k|               else {
  646|  1.47k|                  if (sign) {
  ------------------
  |  Branch (646:23): [True: 817, False: 659]
  ------------------
  647|    817|                     v = -v;
  648|    817|                  }
  649|  1.47k|                  return c;
  650|  1.47k|               }
  651|       |
  652|  15.6k|               if (is_digit(*c)) {
  ------------------
  |  Branch (652:20): [True: 14.5k, False: 1.12k]
  ------------------
  653|  14.5k|                  v = v * 10 + (*c - '0');
  654|  14.5k|                  ++c;
  655|  14.5k|               }
  656|  1.12k|               else {
  657|  1.12k|                  if (sign) {
  ------------------
  |  Branch (657:23): [True: 449, False: 672]
  ------------------
  658|    449|                     v = -v;
  659|    449|                  }
  660|  1.12k|                  return c;
  661|  1.12k|               }
  662|       |
  663|  14.5k|               if (is_digit(*c)) {
  ------------------
  |  Branch (663:20): [True: 13.6k, False: 899]
  ------------------
  664|  13.6k|                  v = v * 10 + (*c - '0');
  665|  13.6k|                  ++c;
  666|  13.6k|               }
  667|    899|               else {
  668|    899|                  if (sign) {
  ------------------
  |  Branch (668:23): [True: 359, False: 540]
  ------------------
  669|    359|                     v = -v;
  670|    359|                  }
  671|    899|                  return c;
  672|    899|               }
  673|       |
  674|  13.6k|               if (is_digit(*c)) {
  ------------------
  |  Branch (674:20): [True: 9.16k, False: 4.47k]
  ------------------
  675|  9.16k|                  v = v * 10 + (*c - '0');
  676|  9.16k|                  ++c;
  677|  9.16k|               }
  678|  4.47k|               else {
  679|  4.47k|                  if (sign) {
  ------------------
  |  Branch (679:23): [True: 3.56k, False: 908]
  ------------------
  680|  3.56k|                     v = -v;
  681|  3.56k|                  }
  682|  4.47k|                  return c;
  683|  4.47k|               }
  684|  13.6k|            }
  685|  23.3k|         }
  686|  32.9k|      }
  687|       |
  688|  36.4k|      if (is_digit(*c)) {
  ------------------
  |  Branch (688:11): [True: 8.09k, False: 28.3k]
  ------------------
  689|  8.09k|         if (sign) {
  ------------------
  |  Branch (689:14): [True: 7.16k, False: 930]
  ------------------
  690|  7.16k|            if (would_overflow_negative<T>(v, *c)) [[unlikely]] {
  ------------------
  |  Branch (690:17): [True: 6.21k, False: 948]
  ------------------
  691|  6.21k|               return {};
  692|  6.21k|            }
  693|    948|            v = -1 * v;
  694|    948|            v = v * 10 - (*c - '0');
  695|    948|         }
  696|    930|         else {
  697|    930|            if (would_overflow_positive<T>(v, *c)) [[unlikely]] {
  ------------------
  |  Branch (697:17): [True: 296, False: 634]
  ------------------
  698|    296|               return {};
  699|    296|            }
  700|    634|            v = v * 10 + (*c - '0');
  701|    634|         }
  702|  1.58k|         ++c;
  703|  1.58k|         if (is_digit(*c)) [[unlikely]] {
  ------------------
  |  Branch (703:14): [True: 654, False: 928]
  ------------------
  704|    654|            return {};
  705|    654|         }
  706|    928|         return c;
  707|  1.58k|      }
  708|       |
  709|  28.3k|      if (sign) {
  ------------------
  |  Branch (709:11): [True: 540, False: 27.8k]
  ------------------
  710|    540|         v = -v;
  711|    540|      }
  712|  28.3k|      return c;
  713|  36.4k|   }
_ZN3glz23would_overflow_negativeIlEEbu17__remove_volatileIT_Eh:
  154|  7.16k|   {
  155|       |      // For negative: max magnitude is max + 1 (e.g., -2147483648 for int32)
  156|  7.16k|      using U = std::remove_volatile_t<T>;
  157|  7.16k|      constexpr auto max_val = static_cast<uint64_t>((std::numeric_limits<U>::max)()) + 1;
  158|  7.16k|      constexpr auto threshold = max_val / 10;
  159|  7.16k|      constexpr auto last_digit = max_val % 10;
  160|  7.16k|      const auto uv = static_cast<uint64_t>(v);
  161|  7.16k|      const auto digit = static_cast<uint64_t>(next_digit - '0');
  162|       |      // When digit > last_digit, effective threshold is one less
  163|  7.16k|      return uv > (threshold - uint64_t(digit > last_digit));
  164|  7.16k|   }
_ZN3glz23would_overflow_positiveIlEEbu17__remove_volatileIT_Eh:
  140|    930|   {
  141|    930|      using U = std::remove_volatile_t<T>;
  142|    930|      constexpr auto max_val = static_cast<uint64_t>((std::numeric_limits<U>::max)());
  143|    930|      constexpr auto threshold = max_val / 10;
  144|    930|      constexpr auto last_digit = max_val % 10;
  145|    930|      const auto uv = static_cast<uint64_t>(v);
  146|    930|      const auto digit = static_cast<uint64_t>(next_digit - '0');
  147|       |      // When digit > last_digit, effective threshold is one less
  148|       |      // This is branch-free and faster than bitwise OR/AND approach
  149|    930|      return uv > (threshold - uint64_t(digit > last_digit));
  150|    930|   }

_ZN3glz9has_quoteEm:
   86|  87.3M|   {
   87|  87.3M|      return has_zero(chunk ^ repeat_byte8('"'));
   88|  87.3M|   }
_ZN3glz8has_zeroEm:
   81|   152M|   {
   82|   152M|      return (((chunk - 0x0101010101010101ull) & ~chunk) & 0x8080808080808080ull);
   83|   152M|   }
_ZN3glz8has_charILc123EEEmm:
  102|  23.2M|   {
  103|  23.2M|      return has_zero(chunk ^ repeat_byte8(Char));
  104|  23.2M|   }
_ZN3glz8has_charILc125EEEmm:
  102|  23.2M|   {
  103|  23.2M|      return has_zero(chunk ^ repeat_byte8(Char));
  104|  23.2M|   }
_ZN3glz11countr_zeroEm:
   29|  8.30M|   {
   30|       |#ifdef _MSC_VER
   31|       |      return std::countr_zero(x);
   32|       |#else
   33|  8.30M|#if __has_builtin(__builtin_ctzll)
   34|  8.30M|      return __builtin_ctzll(x);
   35|       |#else
   36|       |      return std::countr_zero(x);
   37|       |#endif
   38|  8.30M|#endif
   39|  8.30M|   }
_ZN3glz8has_charILc91EEEmm:
  102|  9.37M|   {
  103|  9.37M|      return has_zero(chunk ^ repeat_byte8(Char));
  104|  9.37M|   }
_ZN3glz8has_charILc93EEEmm:
  102|  9.37M|   {
  103|  9.37M|      return has_zero(chunk ^ repeat_byte8(Char));
  104|  9.37M|   }
_ZN3glz11countr_zeroEj:
   16|  34.8M|   {
   17|       |#ifdef _MSC_VER
   18|       |      return std::countr_zero(x);
   19|       |#else
   20|  34.8M|#if __has_builtin(__builtin_ctzl)
   21|  34.8M|      return __builtin_ctzl(x);
   22|       |#else
   23|       |      return std::countr_zero(x);
   24|       |#endif
   25|  34.8M|#endif
   26|  34.8M|   }

_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointELm0ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm2EcEEbPKT1_:
  245|  5.77k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|  5.77k|      else if constexpr (N == 2) {
  304|  5.77k|         static constexpr auto packed = pack<Str, 2>();
  305|  5.77k|         uint16_t in;
  306|  5.77k|         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|  5.77k|         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  5.77k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointELm1ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm2EcEEbPKT1_:
  245|  1.38k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|  1.38k|      else if constexpr (N == 2) {
  304|  1.38k|         static constexpr auto packed = pack<Str, 2>();
  305|  1.38k|         uint16_t in;
  306|  1.38k|         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|  1.38k|         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  1.38k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm0ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|  26.1k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|  26.1k|      else if constexpr (N == 6) {
  268|  26.1k|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|  26.1k|         uint64_t in{};
  270|  26.1k|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|  26.1k|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  26.1k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm1ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm5EcEEbPKT1_:
  245|    141|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|    141|      else if constexpr (N == 5) {
  277|    141|         static constexpr auto packed = pack<Str, 4>();
  278|    141|         uint32_t in;
  279|    141|         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|    141|         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    141|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm2ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm9EcEEbPKT1_:
  245|    931|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|    931|      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|    931|         return 0 == std::memcmp(Str.data(), other, N);
  323|    931|      }
  324|    931|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm3ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|    814|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|    814|      else if constexpr (N == 6) {
  268|    814|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|    814|         uint64_t in{};
  270|    814|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|    814|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    814|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedELm0ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|  16.1k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|  16.1k|      else if constexpr (N == 6) {
  268|  16.1k|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|  16.1k|         uint64_t in{};
  270|  16.1k|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|  16.1k|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  16.1k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedELm1ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|    812|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|    812|      else if constexpr (N == 6) {
  268|    812|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|    812|         uint64_t in{};
  270|    812|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|    812|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    812|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm4ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm7EcEEbPKT1_:
  245|  7.81k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|  7.81k|      else if constexpr (N == 7) {
  259|  7.81k|         static constexpr auto packed = pack_buffered<Str, 8>();
  260|  7.81k|         uint64_t in{};
  261|  7.81k|         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|  7.81k|         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  7.81k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm5ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|  1.30k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|  1.30k|      else if constexpr (N == 6) {
  268|  1.30k|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|  1.30k|         uint64_t in{};
  270|  1.30k|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|  1.30k|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  1.30k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm6ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|  1.40k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|  1.40k|      else if constexpr (N == 6) {
  268|  1.40k|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|  1.40k|         uint64_t in{};
  270|  1.40k|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|  1.40k|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  1.40k|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc117ELc108ELc108EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS9_EEvOT1_OT2_T3_E1SELm3EcEEbPKSB_:
  245|  1.22k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|  1.22k|      else if constexpr (N == 3) {
  295|  1.22k|         static constexpr auto packed = pack<Str, 2>();
  296|  1.22k|         uint16_t in;
  297|  1.22k|         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|  1.22k|         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  1.22k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm7ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm8EcEEbPKT1_:
  245|  1.96k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|  1.96k|      if constexpr (N == 8) {
  250|  1.96k|         static constexpr auto packed = pack<Str, 8>();
  251|  1.96k|         uint64_t in;
  252|  1.96k|         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|  1.96k|         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  1.96k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6amountELm0ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|    421|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|    421|      else if constexpr (N == 6) {
  268|    421|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|    421|         uint64_t in{};
  270|    421|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|    421|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    421|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm8ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm8EcEEbPKT1_:
  245|    499|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|    499|      if constexpr (N == 8) {
  250|    499|         static constexpr auto packed = pack<Str, 8>();
  251|    499|         uint64_t in;
  252|    499|         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|    499|         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    499|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm9ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|    436|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|    436|      else if constexpr (N == 6) {
  268|    436|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|    436|         uint64_t in{};
  270|    436|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|    436|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    436|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm10ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm9EcEEbPKT1_:
  245|    432|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|    432|      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|    432|         return 0 == std::memcmp(Str.data(), other, N);
  323|    432|      }
  324|    432|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm11ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|    327|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|    327|      else if constexpr (N == 6) {
  268|    327|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|    327|         uint64_t in{};
  270|    327|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|    327|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    327|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm12ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|    221|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|    221|      else if constexpr (N == 6) {
  268|    221|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|    221|         uint64_t in{};
  270|    221|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|    221|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    221|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc110ELc117ELc108ELc108EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETkNS_10is_contextERNS_7contextERPKcS9_EEvOT1_OT2_T3_E1SELm4EcEEbPKSB_:
  245|    761|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|    761|      else if constexpr (N == 4) {
  286|    761|         static constexpr auto packed = pack<Str, 4>();
  287|    761|         uint32_t in;
  288|    761|         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|    761|         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    761|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm0ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm8EcEEbPKT1_:
  245|  75.0k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|  75.0k|      if constexpr (N == 8) {
  250|  75.0k|         static constexpr auto packed = pack<Str, 8>();
  251|  75.0k|         uint64_t in;
  252|  75.0k|         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|  75.0k|         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  75.0k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm1ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm7EcEEbPKT1_:
  245|  65.7k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|  65.7k|      else if constexpr (N == 7) {
  259|  65.7k|         static constexpr auto packed = pack_buffered<Str, 8>();
  260|  65.7k|         uint64_t in{};
  261|  65.7k|         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|  65.7k|         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  65.7k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm2ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm7EcEEbPKT1_:
  245|  46.7k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|  46.7k|      else if constexpr (N == 7) {
  259|  46.7k|         static constexpr auto packed = pack_buffered<Str, 8>();
  260|  46.7k|         uint64_t in{};
  261|  46.7k|         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|  46.7k|         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  46.7k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm3ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm3EcEEbPKT1_:
  245|  83.9k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|  83.9k|      else if constexpr (N == 3) {
  295|  83.9k|         static constexpr auto packed = pack<Str, 2>();
  296|  83.9k|         uint16_t in;
  297|  83.9k|         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|  83.9k|         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  83.9k|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc110ELc117ELc108ELc108EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS9_EEvOT1_OT2_T3_E1SELm4EcEEbPKSB_:
  245|   278k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|   278k|      else if constexpr (N == 4) {
  286|   278k|         static constexpr auto packed = pack<Str, 4>();
  287|   278k|         uint32_t in;
  288|   278k|         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|   278k|         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|   278k|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc117ELc108ELc108EEEETnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS6_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSB_EEvOT1_OT2_T3_E1SELm3EcEEbPKSD_:
  245|  3.08k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|  3.08k|      else if constexpr (N == 3) {
  295|  3.08k|         static constexpr auto packed = pack<Str, 2>();
  296|  3.08k|         uint16_t in;
  297|  3.08k|         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|  3.08k|         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  3.08k|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc97ELc108ELc115ELc101EEEETnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS6_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSB_EEvOT1_OT2_T3_E1SELm4EcEEbPKSD_:
  245|  2.42k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|  2.42k|      else if constexpr (N == 4) {
  286|  2.42k|         static constexpr auto packed = pack<Str, 4>();
  287|  2.42k|         uint32_t in;
  288|  2.42k|         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|  2.42k|         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  2.42k|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc114ELc117ELc101EEEETnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS6_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSB_EEvOT1_OT2_T3_E1SELm3EcEEbPKSD_:
  245|  2.17k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|  2.17k|      else if constexpr (N == 3) {
  295|  2.17k|         static constexpr auto packed = pack<Str, 2>();
  296|  2.17k|         uint16_t in;
  297|  2.17k|         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|  2.17k|         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  2.17k|   }
_ZN3glz10comparitorIL_ZZZNS_13get_view_jsonITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc47ELc105ELc100EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEEEEDaOT1_ENKUlTnmvE_clILm0EEEDavE3keyELm2EcEEbPKSC_:
  245|  23.5k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|  23.5k|      else if constexpr (N == 2) {
  304|  23.5k|         static constexpr auto packed = pack<Str, 2>();
  305|  23.5k|         uint16_t in;
  306|  23.5k|         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|  23.5k|         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  23.5k|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc117ELc108ELc108EEEETnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSA_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS6_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES8_SB_SA_EEvSF_OSG_T3_E1SELm3EcEEbPKSE_:
  245|    632|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|    632|      else if constexpr (N == 3) {
  295|    632|         static constexpr auto packed = pack<Str, 2>();
  296|    632|         uint16_t in;
  297|    632|         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|    632|         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    632|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc97ELc108ELc115ELc101EEEETnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSA_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS6_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES8_SB_SA_EEvSF_OSG_T3_E1SELm4EcEEbPKSE_:
  245|    724|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|    724|      else if constexpr (N == 4) {
  286|    724|         static constexpr auto packed = pack<Str, 4>();
  287|    724|         uint32_t in;
  288|    724|         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|    724|         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    724|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc114ELc117ELc101EEEETnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSA_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS6_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES8_SB_SA_EEvSF_OSG_T3_E1SELm3EcEEbPKSE_:
  245|    825|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|    825|      else if constexpr (N == 3) {
  295|    825|         static constexpr auto packed = pack<Str, 2>();
  296|    825|         uint16_t in;
  297|    825|         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|    825|         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    825|   }

_ZN3glz4dumpILb1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10byte_sizedEcEEvT1_RT0_Rm:
  150|   631k|   {
  151|   631k|      if constexpr (Checked && vector_like<B>) {
  152|   631k|         if (ix == b.size()) [[unlikely]] {
  ------------------
  |  Branch (152:14): [True: 0, False: 631k]
  ------------------
  153|      0|            grow_buffer(b, b.size() == 0 ? 64 : ix + 1);
  ------------------
  |  Branch (153:28): [True: 0, False: 0]
  ------------------
  154|      0|         }
  155|   631k|      }
  156|   631k|      assign_maybe_cast(c, b, ix);
  157|   631k|      ++ix;
  158|   631k|   }
_ZN3glz17assign_maybe_castITkNS_10byte_sizedEcNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvT_RT0_Rm:
   95|   631k|   {
   96|   631k|      using V = std::decay_t<decltype(b[0])>;
   97|   631k|      using C = std::decay_t<decltype(c)>;
   98|   631k|      if constexpr (std::same_as<V, C>) {
   99|   631k|         b[ix] = c;
  100|       |      }
  101|       |      else {
  102|       |         b[ix] = static_cast<V>(c);
  103|       |      }
  104|   631k|   }
_ZN3glz4dumpILb1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvNS1_17basic_string_viewIcS4_EERT0_Rm:
  192|  8.45M|   {
  193|  8.45M|      const auto n = str.size();
  194|  8.45M|      if constexpr (vector_like<B>) {
  195|  8.45M|         if constexpr (Checked) {
  196|  8.45M|            const auto k = ix + n;
  197|  8.45M|            if (ix + n > b.size()) [[unlikely]] {
  ------------------
  |  Branch (197:17): [True: 0, False: 8.45M]
  ------------------
  198|      0|               grow_buffer(b, k);
  199|      0|            }
  200|  8.45M|         }
  201|  8.45M|      }
  202|  8.45M|      std::memcpy(&b[ix], str.data(), n);
  203|  8.45M|      ix += n;
  204|  8.45M|   }
_ZN3glz16dump_maybe_emptyILb1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvNS1_17basic_string_viewIcS4_EERT0_Rm:
  319|  4.33M|   {
  320|  4.33M|      const auto n = str.size();
  321|  4.33M|      if (n) {
  ------------------
  |  Branch (321:11): [True: 4.33M, False: 0]
  ------------------
  322|  4.33M|         if constexpr (vector_like<B>) {
  323|  4.33M|            if constexpr (Checked) {
  324|  4.33M|               const auto k = ix + n;
  325|  4.33M|               if (k > b.size()) [[unlikely]] {
  ------------------
  |  Branch (325:20): [True: 0, False: 4.33M]
  ------------------
  326|      0|                  grow_buffer(b, k);
  327|      0|               }
  328|  4.33M|            }
  329|  4.33M|         }
  330|  4.33M|         std::memcpy(&b[ix], str.data(), n);
  331|  4.33M|         ix += n;
  332|  4.33M|      }
  333|  4.33M|   }
_ZN3glz5dumpnINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10byte_sizedEcEEvT0_mRT_Rm:
  222|   210k|   {
  223|   210k|      if constexpr (vector_like<B>) {
  224|   210k|         const auto k = ix + n;
  225|   210k|         if (k > b.size()) [[unlikely]] {
  ------------------
  |  Branch (225:14): [True: 0, False: 210k]
  ------------------
  226|      0|            grow_buffer(b, k);
  227|      0|         }
  228|   210k|      }
  229|   210k|      fill_bytes(data_at(b, ix), c, n);
  230|   210k|      ix += n;
  231|   210k|   }
_ZN3glz10fill_bytesIcEEvPT_cm:
   54|   210k|   {
   55|   210k|      auto* p = reinterpret_cast<char*>(dst);
   56|   210k|      if (n >= 64) [[unlikely]] {
  ------------------
  |  Branch (56:11): [True: 0, False: 210k]
  ------------------
   57|      0|         std::memset(p, c, n);
   58|      0|         return;
   59|      0|      }
   60|   210k|      const uint64_t v = 0x0101010101010101ull * uint8_t(c);
   61|   210k|      if (n >= 8) {
  ------------------
  |  Branch (61:11): [True: 45.9k, False: 164k]
  ------------------
   62|  45.9k|         size_t i = 0;
   63|   160k|         for (; i + 8 <= n; i += 8) {
  ------------------
  |  Branch (63:17): [True: 114k, False: 45.9k]
  ------------------
   64|   114k|            std::memcpy(p + i, &v, 8);
   65|   114k|         }
   66|  45.9k|         if (i < n) {
  ------------------
  |  Branch (66:14): [True: 40.1k, False: 5.72k]
  ------------------
   67|  40.1k|            std::memcpy(p + n - 8, &v, 8); // overlaps what is already written, stays within n
   68|  40.1k|         }
   69|  45.9k|      }
   70|   164k|      else if (n >= 4) {
  ------------------
  |  Branch (70:16): [True: 14.5k, False: 149k]
  ------------------
   71|  14.5k|         std::memcpy(p, &v, 4);
   72|  14.5k|         std::memcpy(p + n - 4, &v, 4);
   73|  14.5k|      }
   74|   149k|      else if (n) {
  ------------------
  |  Branch (74:16): [True: 39.0k, False: 110k]
  ------------------
   75|  39.0k|         std::memcpy(p, &v, 1);
   76|  39.0k|         std::memcpy(p + (n >> 1), &v, 1);
   77|  39.0k|         std::memcpy(p + n - 1, &v, 1);
   78|  39.0k|      }
   79|   210k|   }
_ZN3glz7data_atINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEDaRT_m:
  117|   210k|   {
  118|       |      if constexpr (std::is_pointer_v<std::remove_cvref_t<B>>) {
  119|       |         return b + ix;
  120|       |      }
  121|   210k|      else {
  122|   210k|         static_assert(has_data<std::remove_cvref_t<B>>,
  123|   210k|                       "an output buffer must be contiguous: dump writes through memset and memcpy");
  124|       |         if constexpr (has_data_offset<std::remove_cvref_t<B>>) {
  125|       |            assert(ix >= b.data_offset() && "Index before flush offset");
  126|       |            return b.data() + (ix - b.data_offset());
  127|       |         }
  128|   210k|         else {
  129|   210k|            return b.data() + ix;
  130|   210k|         }
  131|   210k|      }
  132|   210k|   }
_ZN3glz4dumpILb0ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10byte_sizedEcEEvT1_RT0_Rm:
  150|    494|   {
  151|       |      if constexpr (Checked && vector_like<B>) {
  152|       |         if (ix == b.size()) [[unlikely]] {
  153|       |            grow_buffer(b, b.size() == 0 ? 64 : ix + 1);
  154|       |         }
  155|       |      }
  156|    494|      assign_maybe_cast(c, b, ix);
  157|    494|      ++ix;
  158|    494|   }

_ZN3glz10fast_float4spanIKcEC2Ev:
  438|  2.17M|  constexpr span() : ptr(nullptr), length(0) {}
_ZN3glz10fast_float10is_integerIcEEbT_:
 1481|   868k|fastfloat_really_inline constexpr bool is_integer(UC c) noexcept {
 1482|   868k|  return !(c > UC('9') || c < UC('0'));
  ------------------
  |  Branch (1482:12): [True: 4, False: 868k]
  |  Branch (1482:27): [True: 35, False: 868k]
  ------------------
 1483|   868k|}
_ZN3glz10fast_float11digit_valueIcEEmT_:
 1489|  7.08M|fastfloat_really_inline constexpr uint64_t digit_value(UC c) noexcept {
 1490|  7.08M|  return uint64_t(uint8_t(c) - uint8_t('0'));
 1491|  7.08M|}
_ZN3glz10fast_float4spanIKcEC2EPS2_m:
  436|  1.10M|  constexpr span(T const *_ptr, size_t _length) : ptr(_ptr), length(_length) {}
_ZN3glz10fast_float26loop_parse_if_eight_digitsERPKcS2_Rm:
 1679|  19.6k|                           uint64_t &i) {
 1680|       |  // optimizes better than parse_if_eight_digits_unrolled() for UC = char.
 1681|  1.64M|  while ((std::distance(p, pend) >= 8) &&
  ------------------
  |  Branch (1681:10): [True: 1.64M, False: 1.84k]
  ------------------
 1682|  1.64M|         is_made_of_eight_digits_fast(read8_to_u64(p))) {
  ------------------
  |  Branch (1682:10): [True: 1.62M, False: 17.7k]
  ------------------
 1683|  1.62M|    i = i * 100000000 +
 1684|  1.62M|        parse_eight_digits_unrolled(read8_to_u64(
 1685|  1.62M|            p)); // in rare cases, this will overflow, but that's ok
 1686|  1.62M|    p += 8;
 1687|  1.62M|  }
 1688|  19.6k|}
_ZN3glz10fast_float28is_made_of_eight_digits_fastEm:
 1597|  1.64M|is_made_of_eight_digits_fast(uint64_t val) noexcept {
 1598|  1.64M|  return !((((val + 0x4646464646464646) | (val - 0x3030303030303030)) &
 1599|  1.64M|            0x8080808080808080));
 1600|  1.64M|}
_ZN3glz10fast_float12read8_to_u64IcEEmPKT_:
 1503|  3.55M|read8_to_u64(UC const *chars) {
 1504|  3.55M|  if (cpp20_and_in_constexpr() || !std::is_same<UC, char>::value) {
  ------------------
  |  Branch (1504:7): [Folded, False: 0]
  |  Branch (1504:35): [Folded, False: 0]
  ------------------
 1505|      0|    uint64_t val = 0;
 1506|      0|    for (int i = 0; i < 8; ++i) {
  ------------------
  |  Branch (1506:21): [True: 0, False: 0]
  ------------------
 1507|      0|      val |= uint64_t(uint8_t(*chars)) << (i * 8);
 1508|      0|      ++chars;
 1509|      0|    }
 1510|      0|    return val;
 1511|      0|  }
 1512|  3.55M|  uint64_t val;
 1513|  3.55M|  ::memcpy(&val, chars, sizeof(uint64_t));
 1514|       |#if GLZ_FASTFLOAT_IS_BIG_ENDIAN == 1
 1515|       |  // Need to read as-if the number was in little-endian order.
 1516|       |  val = byteswap(val);
 1517|       |#endif
 1518|  3.55M|  return val;
 1519|  3.55M|}
_ZN3glz10fast_float27parse_eight_digits_unrolledEm:
 1575|  1.90M|parse_eight_digits_unrolled(uint64_t val) {
 1576|  1.90M|  uint64_t const mask = 0x000000FF000000FF;
 1577|  1.90M|  uint64_t const mul1 = 0x000F424000000064; // 100 + (1000000ULL << 32)
 1578|  1.90M|  uint64_t const mul2 = 0x0000271000000001; // 1 + (10000ULL << 32)
 1579|  1.90M|  val -= 0x3030303030303030;
 1580|  1.90M|  val = (val * 10) + (val >> 8); // val = (val * 2561) >> 8;
 1581|  1.90M|  val = (((val & mask) * mul1) + (((val >> 16) & mask) * mul2)) >> 32;
 1582|  1.90M|  return uint32_t(val);
 1583|  1.90M|}
_ZNK3glz10fast_float4spanIKcE3lenEv:
  440|  51.1k|  constexpr size_t len() const noexcept { return length; }
_ZN3glz10fast_float19from_chars_advancedIdcEENS0_19from_chars_result_tIT0_EERNS0_22parsed_number_string_tIS3_EERT_:
 4249|  1.08M|from_chars_advanced(parsed_number_string_t<UC> &pns, T &value) noexcept {
 4250|       |
 4251|  1.08M|  static_assert(is_supported_float_type<T>::value,
 4252|  1.08M|                "only some floating-point types are supported");
 4253|  1.08M|  static_assert(is_supported_char_type<UC>::value,
 4254|  1.08M|                "only char, wchar_t, char16_t and char32_t are supported");
 4255|       |
 4256|  1.08M|  from_chars_result_t<UC> answer;
 4257|       |
 4258|  1.08M|  answer.ec = std::errc(); // be optimistic
 4259|  1.08M|  answer.ptr = pns.lastmatch;
 4260|       |  // The implementation of the Clinger's fast path is convoluted because
 4261|       |  // we want round-to-nearest in all cases, irrespective of the rounding mode
 4262|       |  // selected on the thread.
 4263|       |  // We proceed optimistically, assuming that detail::rounds_to_nearest()
 4264|       |  // returns true.
 4265|  1.08M|  if (binary_format<T>::min_exponent_fast_path() <= pns.exponent &&
  ------------------
  |  Branch (4265:7): [True: 1.08M, False: 3.63k]
  ------------------
 4266|  1.08M|      pns.exponent <= binary_format<T>::max_exponent_fast_path() &&
  ------------------
  |  Branch (4266:7): [True: 1.07M, False: 5.06k]
  ------------------
 4267|  1.07M|      !pns.too_many_digits) {
  ------------------
  |  Branch (4267:7): [True: 1.06M, False: 14.4k]
  ------------------
 4268|       |    // Unfortunately, the conventional Clinger's fast path is only possible
 4269|       |    // when the system rounds to the nearest float.
 4270|       |    //
 4271|       |    // We expect the next branch to almost always be selected.
 4272|       |    // We could check it first (before the previous branch), but
 4273|       |    // there might be performance advantages at having the check
 4274|       |    // be last.
 4275|  1.06M|    if (!cpp20_and_in_constexpr() && detail::rounds_to_nearest()) {
  ------------------
  |  Branch (4275:9): [True: 1.06M, Folded]
  |  Branch (4275:38): [True: 1.06M, False: 0]
  ------------------
 4276|       |      // We have that fegetround() == FE_TONEAREST.
 4277|       |      // Next is Clinger's fast path.
 4278|  1.06M|      if (pns.mantissa <= binary_format<T>::max_mantissa_fast_path()) {
  ------------------
  |  Branch (4278:11): [True: 1.06M, False: 2.10k]
  ------------------
 4279|  1.06M|        value = T(pns.mantissa);
 4280|  1.06M|        if (pns.exponent < 0) {
  ------------------
  |  Branch (4280:13): [True: 3.23k, False: 1.05M]
  ------------------
 4281|  3.23k|          value = value / binary_format<T>::exact_power_of_ten(-pns.exponent);
 4282|  1.05M|        } else {
 4283|  1.05M|          value = value * binary_format<T>::exact_power_of_ten(pns.exponent);
 4284|  1.05M|        }
 4285|  1.06M|        if (pns.negative) {
  ------------------
  |  Branch (4285:13): [True: 867k, False: 195k]
  ------------------
 4286|   867k|          value = -value;
 4287|   867k|        }
 4288|  1.06M|        return answer;
 4289|  1.06M|      }
 4290|  1.06M|    } else {
 4291|       |      // We do not have that fegetround() == FE_TONEAREST.
 4292|       |      // Next is a modified Clinger's fast path, inspired by Jakub Jelínek's
 4293|       |      // proposal
 4294|      0|      if (pns.exponent >= 0 &&
  ------------------
  |  Branch (4294:11): [True: 0, False: 0]
  ------------------
 4295|      0|          pns.mantissa <=
  ------------------
  |  Branch (4295:11): [True: 0, False: 0]
  ------------------
 4296|      0|              binary_format<T>::max_mantissa_fast_path(pns.exponent)) {
 4297|      0|#if defined(__clang__) || defined(GLZ_FASTFLOAT_32BIT)
 4298|       |        // Clang may map 0 to -0.0 when fegetround() == FE_DOWNWARD
 4299|      0|        if (pns.mantissa == 0) {
  ------------------
  |  Branch (4299:13): [True: 0, False: 0]
  ------------------
 4300|      0|          value = pns.negative ? T(-0.) : T(0.);
  ------------------
  |  Branch (4300:19): [True: 0, False: 0]
  ------------------
 4301|      0|          return answer;
 4302|      0|        }
 4303|      0|#endif
 4304|      0|        value = T(pns.mantissa) *
 4305|      0|                binary_format<T>::exact_power_of_ten(pns.exponent);
 4306|      0|        if (pns.negative) {
  ------------------
  |  Branch (4306:13): [True: 0, False: 0]
  ------------------
 4307|      0|          value = -value;
 4308|      0|        }
 4309|      0|        return answer;
 4310|      0|      }
 4311|      0|    }
 4312|  1.06M|  }
 4313|  25.2k|  adjusted_mantissa am =
 4314|  25.2k|      compute_float<binary_format<T>>(pns.exponent, pns.mantissa);
 4315|  25.2k|  if (pns.too_many_digits && am.power2 >= 0) {
  ------------------
  |  Branch (4315:7): [True: 19.4k, False: 5.80k]
  |  Branch (4315:30): [True: 19.4k, False: 0]
  ------------------
 4316|  19.4k|    if (am != compute_float<binary_format<T>>(pns.exponent, pns.mantissa + 1)) {
  ------------------
  |  Branch (4316:9): [True: 13.0k, False: 6.39k]
  ------------------
 4317|  13.0k|      am = compute_error<binary_format<T>>(pns.exponent, pns.mantissa);
 4318|  13.0k|    }
 4319|  19.4k|  }
 4320|       |  // If we called compute_float<binary_format<T>>(pns.exponent, pns.mantissa)
 4321|       |  // and we have an invalid power (am.power2 < 0), then we need to go the long
 4322|       |  // way around again. This is very uncommon.
 4323|  25.2k|  if (am.power2 < 0) {
  ------------------
  |  Branch (4323:7): [True: 13.0k, False: 12.1k]
  ------------------
 4324|  13.0k|    am = digit_comp<T>(pns, am);
 4325|  13.0k|  }
 4326|  25.2k|  to_float(pns.negative, am, value);
 4327|       |  // Test for over/underflow.
 4328|  25.2k|  if ((pns.mantissa != 0 && am.mantissa == 0 && am.power2 == 0) ||
  ------------------
  |  Branch (4328:8): [True: 24.9k, False: 331]
  |  Branch (4328:29): [True: 1.50k, False: 23.4k]
  |  Branch (4328:49): [True: 99, False: 1.40k]
  ------------------
 4329|  25.1k|      am.power2 == binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (4329:7): [True: 189, False: 24.9k]
  ------------------
 4330|    288|    answer.ec = std::errc::result_out_of_range;
 4331|    288|  }
 4332|  25.2k|  return answer;
 4333|  1.08M|}
_ZN3glz10fast_float13binary_formatIdE22min_exponent_fast_pathEv:
  695|  1.08M|inline constexpr int binary_format<double>::min_exponent_fast_path() {
  696|       |#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
  697|       |  return 0;
  698|       |#else
  699|  1.08M|  return -22;
  700|  1.08M|#endif
  701|  1.08M|}
_ZN3glz10fast_float13binary_formatIdE22max_exponent_fast_pathEv:
  767|  1.08M|inline constexpr int binary_format<double>::max_exponent_fast_path() {
  768|  1.08M|  return 22;
  769|  1.08M|}
_ZN3glz10fast_float6detail17rounds_to_nearestEv:
 4129|  1.06M|fastfloat_really_inline bool rounds_to_nearest() noexcept {
 4130|       |  // https://lemire.me/blog/2020/06/26/gcc-not-nearest/
 4131|       |#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
 4132|       |  return false;
 4133|       |#endif
 4134|       |  // See
 4135|       |  // A fast function to check your floating-point rounding mode
 4136|       |  // https://lemire.me/blog/2022/11/16/a-fast-function-to-check-your-floating-point-rounding-mode/
 4137|       |  //
 4138|       |  // This function is meant to be equivalent to :
 4139|       |  // prior: #include <cfenv>
 4140|       |  //  return fegetround() == FE_TONEAREST;
 4141|       |  // However, it is expected to be much faster than the fegetround()
 4142|       |  // function call.
 4143|       |  //
 4144|       |  // The volatile keyword prevents the compiler from computing the function
 4145|       |  // at compile-time.
 4146|       |  // There might be other ways to prevent compile-time optimizations (e.g.,
 4147|       |  // asm). The value does not need to be std::numeric_limits<float>::min(), any
 4148|       |  // small value so that 1 + x should round to 1 would do (after accounting for
 4149|       |  // excess precision, as in 387 instructions).
 4150|  1.06M|  static float volatile fmin = (std::numeric_limits<float>::min)();
 4151|  1.06M|  float fmini = fmin; // we copy it so that it gets loaded at most once.
 4152|       |//
 4153|       |// Explanation:
 4154|       |// Only when fegetround() == FE_TONEAREST do we have that
 4155|       |// fmin + 1.0f == 1.0f - fmin.
 4156|       |//
 4157|       |// FE_UPWARD:
 4158|       |//  fmin + 1.0f > 1
 4159|       |//  1.0f - fmin == 1
 4160|       |//
 4161|       |// FE_DOWNWARD or  FE_TOWARDZERO:
 4162|       |//  fmin + 1.0f == 1
 4163|       |//  1.0f - fmin < 1
 4164|       |//
 4165|       |// Note: This may fail to be accurate if fast-math has been
 4166|       |// enabled, as rounding conventions may not apply.
 4167|       |#ifdef GLZ_FASTFLOAT_VISUAL_STUDIO
 4168|       |#pragma warning(push)
 4169|       |//  todo: is there a VS warning?
 4170|       |//  see
 4171|       |//  https://stackoverflow.com/questions/46079446/is-there-a-warning-for-floating-point-equality-checking-in-visual-studio-2013
 4172|       |#elif defined(__clang__)
 4173|       |#pragma clang diagnostic push
 4174|  1.06M|#pragma clang diagnostic ignored "-Wfloat-equal"
 4175|       |#elif defined(__GNUC__)
 4176|       |#pragma GCC diagnostic push
 4177|       |#pragma GCC diagnostic ignored "-Wfloat-equal"
 4178|       |#endif
 4179|  1.06M|  return (fmini + 1.0f == 1.0f - fmini);
 4180|       |#ifdef GLZ_FASTFLOAT_VISUAL_STUDIO
 4181|       |#pragma warning(pop)
 4182|       |#elif defined(__clang__)
 4183|       |#pragma clang diagnostic pop
 4184|       |#elif defined(__GNUC__)
 4185|       |#pragma GCC diagnostic pop
 4186|       |#endif
 4187|  1.06M|}
_ZN3glz10fast_float13binary_formatIdE22max_mantissa_fast_pathEv:
  777|  1.06M|inline constexpr uint64_t binary_format<double>::max_mantissa_fast_path() {
  778|  1.06M|  return uint64_t(2) << mantissa_explicit_bits();
  779|  1.06M|}
_ZN3glz10fast_float13binary_formatIdE22mantissa_explicit_bitsEv:
  713|  1.33M|inline constexpr int binary_format<double>::mantissa_explicit_bits() {
  714|  1.33M|  return 52;
  715|  1.33M|}
_ZN3glz10fast_float13binary_formatIdE18exact_power_of_tenEl:
 1057|  1.06M|binary_format<double>::exact_power_of_ten(int64_t power) {
 1058|       |  // Work around clang bug https://godbolt.org/z/zedh7rrhc
 1059|  1.06M|  return (void)powers_of_ten[0], powers_of_ten[power];
 1060|  1.06M|}
_ZN3glz10fast_float13compute_floatINS0_13binary_formatIdEEEENS0_17adjusted_mantissaElm:
 2852|  44.7k|compute_float(int64_t q, uint64_t w) noexcept {
 2853|  44.7k|  adjusted_mantissa answer;
 2854|  44.7k|  if ((w == 0) || (q < binary::smallest_power_of_ten())) {
  ------------------
  |  Branch (2854:7): [True: 331, False: 44.3k]
  |  Branch (2854:19): [True: 93, False: 44.2k]
  ------------------
 2855|    424|    answer.power2 = 0;
 2856|    424|    answer.mantissa = 0;
 2857|       |    // result should be zero
 2858|    424|    return answer;
 2859|    424|  }
 2860|  44.2k|  if (q > binary::largest_power_of_ten()) {
  ------------------
  |  Branch (2860:7): [True: 226, False: 44.0k]
  ------------------
 2861|       |    // we want to get infinity:
 2862|    226|    answer.power2 = binary::infinite_power();
 2863|    226|    answer.mantissa = 0;
 2864|    226|    return answer;
 2865|    226|  }
 2866|       |  // At this point in time q is in [powers::smallest_power_of_five,
 2867|       |  // powers::largest_power_of_five].
 2868|       |
 2869|       |  // We want the most significant bit of i to be 1. Shift if needed.
 2870|  44.0k|  int lz = leading_zeroes(w);
 2871|  44.0k|  w <<= lz;
 2872|       |
 2873|       |  // The required precision is binary::mantissa_explicit_bits() + 3 because
 2874|       |  // 1. We need the implicit bit
 2875|       |  // 2. We need an extra bit for rounding purposes
 2876|       |  // 3. We might lose a bit due to the "upperbit" routine (result too small,
 2877|       |  // requiring a shift)
 2878|       |
 2879|  44.0k|  value128 product =
 2880|  44.0k|      compute_product_approximation<binary::mantissa_explicit_bits() + 3>(q, w);
 2881|       |  // The computed 'product' is always sufficient.
 2882|       |  // Mathematical proof:
 2883|       |  // Noble Mushtak and Daniel Lemire, Fast Number Parsing Without Fallback (to
 2884|       |  // appear) See script/mushtak_lemire.py
 2885|       |
 2886|       |  // The "compute_product_approximation" function can be slightly slower than a
 2887|       |  // branchless approach: value128 product = compute_product(q, w); but in
 2888|       |  // practice, we can win big with the compute_product_approximation if its
 2889|       |  // additional branch is easily predicted. Which is best is data specific.
 2890|  44.0k|  int upperbit = int(product.high >> 63);
 2891|  44.0k|  int shift = upperbit + 64 - binary::mantissa_explicit_bits() - 3;
 2892|       |
 2893|  44.0k|  answer.mantissa = product.high >> shift;
 2894|       |
 2895|  44.0k|  answer.power2 = int32_t(detail::power(int32_t(q)) + upperbit - lz -
 2896|  44.0k|                          binary::minimum_exponent());
 2897|  44.0k|  if (answer.power2 <= 0) { // we have a subnormal?
  ------------------
  |  Branch (2897:7): [True: 2.60k, False: 41.4k]
  ------------------
 2898|       |    // Here have that answer.power2 <= 0 so -answer.power2 >= 0
 2899|  2.60k|    if (-answer.power2 + 1 >=
  ------------------
  |  Branch (2899:9): [True: 5, False: 2.60k]
  ------------------
 2900|  2.60k|        64) { // if we have more than 64 bits below the minimum exponent, you
 2901|       |              // have a zero for sure.
 2902|      5|      answer.power2 = 0;
 2903|      5|      answer.mantissa = 0;
 2904|       |      // result should be zero
 2905|      5|      return answer;
 2906|      5|    }
 2907|       |    // next line is safe because -answer.power2 + 1 < 64
 2908|  2.60k|    answer.mantissa >>= -answer.power2 + 1;
 2909|       |    // Thankfully, we can't have both "round-to-even" and subnormals because
 2910|       |    // "round-to-even" only occurs for powers close to 0 in the 32-bit and
 2911|       |    // and 64-bit case (with no more than 19 digits).
 2912|  2.60k|    answer.mantissa += (answer.mantissa & 1); // round up
 2913|  2.60k|    answer.mantissa >>= 1;
 2914|       |    // There is a weird scenario where we don't have a subnormal but just.
 2915|       |    // Suppose we start with 2.2250738585072013e-308, we end up
 2916|       |    // with 0x3fffffffffffff x 2^-1023-53 which is technically subnormal
 2917|       |    // whereas 0x40000000000000 x 2^-1023-53  is normal. Now, we need to round
 2918|       |    // up 0x3fffffffffffff x 2^-1023-53  and once we do, we are no longer
 2919|       |    // subnormal, but we can only know this after rounding.
 2920|       |    // So we only declare a subnormal if we are smaller than the threshold.
 2921|  2.60k|    answer.power2 =
 2922|  2.60k|        (answer.mantissa < (uint64_t(1) << binary::mantissa_explicit_bits()))
  ------------------
  |  Branch (2922:9): [True: 2.60k, False: 0]
  ------------------
 2923|  2.60k|            ? 0
 2924|  2.60k|            : 1;
 2925|  2.60k|    return answer;
 2926|  2.60k|  }
 2927|       |
 2928|       |  // usually, we round *up*, but if we fall right in between and and we have an
 2929|       |  // even basis, we need to round down
 2930|       |  // We are only concerned with the cases where 5**q fits in single 64-bit word.
 2931|  41.4k|  if ((product.low <= 1) && (q >= binary::min_exponent_round_to_even()) &&
  ------------------
  |  Branch (2931:7): [True: 15.1k, False: 26.2k]
  |  Branch (2931:29): [True: 14.3k, False: 799]
  ------------------
 2932|  14.3k|      (q <= binary::max_exponent_round_to_even()) &&
  ------------------
  |  Branch (2932:7): [True: 13.8k, False: 523]
  ------------------
 2933|  13.8k|      ((answer.mantissa & 3) == 1)) { // we may fall between two floats!
  ------------------
  |  Branch (2933:7): [True: 9.67k, False: 4.16k]
  ------------------
 2934|       |    // To be in-between two floats we need that in doing
 2935|       |    //   answer.mantissa = product.high >> (upperbit + 64 -
 2936|       |    //   binary::mantissa_explicit_bits() - 3);
 2937|       |    // ... we dropped out only zeroes. But if this happened, then we can go
 2938|       |    // back!!!
 2939|  9.67k|    if ((answer.mantissa << shift) == product.high) {
  ------------------
  |  Branch (2939:9): [True: 5.08k, False: 4.59k]
  ------------------
 2940|  5.08k|      answer.mantissa &= ~uint64_t(1); // flip it so that we do not round up
 2941|  5.08k|    }
 2942|  9.67k|  }
 2943|       |
 2944|  41.4k|  answer.mantissa += (answer.mantissa & 1); // round up
 2945|  41.4k|  answer.mantissa >>= 1;
 2946|  41.4k|  if (answer.mantissa >= (uint64_t(2) << binary::mantissa_explicit_bits())) {
  ------------------
  |  Branch (2946:7): [True: 1.00k, False: 40.4k]
  ------------------
 2947|  1.00k|    answer.mantissa = (uint64_t(1) << binary::mantissa_explicit_bits());
 2948|  1.00k|    answer.power2++; // undo previous addition
 2949|  1.00k|  }
 2950|       |
 2951|  41.4k|  answer.mantissa &= ~(uint64_t(1) << binary::mantissa_explicit_bits());
 2952|  41.4k|  if (answer.power2 >= binary::infinite_power()) { // infinity
  ------------------
  |  Branch (2952:7): [True: 17, False: 41.4k]
  ------------------
 2953|     17|    answer.power2 = binary::infinite_power();
 2954|     17|    answer.mantissa = 0;
 2955|     17|  }
 2956|  41.4k|  return answer;
 2957|  44.0k|}
_ZN3glz10fast_float17adjusted_mantissaC2Ev:
  568|  70.8k|  adjusted_mantissa() = default;
_ZN3glz10fast_float13binary_formatIdE21smallest_power_of_tenEv:
 1077|  44.3k|inline constexpr int binary_format<double>::smallest_power_of_ten() {
 1078|  44.3k|  return -342;
 1079|  44.3k|}
_ZN3glz10fast_float13binary_formatIdE20largest_power_of_tenEv:
 1068|  44.2k|template <> inline constexpr int binary_format<double>::largest_power_of_ten() {
 1069|  44.2k|  return 308;
 1070|  44.2k|}
_ZN3glz10fast_float14leading_zeroesEm:
  488|  64.9k|leading_zeroes(uint64_t input_num) {
  489|  64.9k|  assert(input_num > 0);
  ------------------
  |  Branch (489:3): [True: 64.9k, False: 0]
  ------------------
  490|  64.9k|  if (cpp20_and_in_constexpr()) {
  ------------------
  |  Branch (490:7): [Folded, False: 64.9k]
  ------------------
  491|      0|    return leading_zeroes_generic(input_num);
  492|      0|  }
  493|       |#ifdef GLZ_FASTFLOAT_VISUAL_STUDIO
  494|       |#if defined(_M_X64) || defined(_M_ARM64)
  495|       |  unsigned long leading_zero = 0;
  496|       |  // Search the mask data from most significant bit (MSB)
  497|       |  // to least significant bit (LSB) for a set bit (1).
  498|       |  _BitScanReverse64(&leading_zero, input_num);
  499|       |  return (int)(63 - leading_zero);
  500|       |#else
  501|       |  return leading_zeroes_generic(input_num);
  502|       |#endif
  503|       |#else
  504|  64.9k|  return __builtin_clzll(input_num);
  505|  64.9k|#endif
  506|  64.9k|}
_ZN3glz10fast_float29compute_product_approximationILi55EEENS0_8value128Elm:
 2771|  57.1k|compute_product_approximation(int64_t q, uint64_t w) {
 2772|  57.1k|  int const index = 2 * int(q - powers::smallest_power_of_five);
 2773|       |  // For small values of q, e.g., q in [0,27], the answer is always exact
 2774|       |  // because The line value128 firstproduct = full_multiplication(w,
 2775|       |  // power_of_five_128[index]); gives the exact answer.
 2776|  57.1k|  value128 firstproduct =
 2777|  57.1k|      full_multiplication(w, powers::power_of_five_128[index]);
 2778|  57.1k|  static_assert((bit_precision >= 0) && (bit_precision <= 64),
 2779|  57.1k|                " precision should  be in (0,64]");
 2780|  57.1k|  constexpr uint64_t precision_mask =
 2781|  57.1k|      (bit_precision < 64) ? (uint64_t(0xFFFFFFFFFFFFFFFF) >> bit_precision)
  ------------------
  |  Branch (2781:7): [True: 0, Folded]
  ------------------
 2782|  57.1k|                           : uint64_t(0xFFFFFFFFFFFFFFFF);
 2783|  57.1k|  if ((firstproduct.high & precision_mask) ==
  ------------------
  |  Branch (2783:7): [True: 7.70k, False: 49.4k]
  ------------------
 2784|  57.1k|      precision_mask) { // could further guard with  (lower + w < lower)
 2785|       |    // regarding the second product, we only need secondproduct.high, but our
 2786|       |    // expectation is that the compiler will optimize this extra work away if
 2787|       |    // needed.
 2788|  7.70k|    value128 secondproduct =
 2789|  7.70k|        full_multiplication(w, powers::power_of_five_128[index + 1]);
 2790|  7.70k|    firstproduct.low += secondproduct.high;
 2791|  7.70k|    if (secondproduct.high > firstproduct.low) {
  ------------------
  |  Branch (2791:9): [True: 3.32k, False: 4.38k]
  ------------------
 2792|  3.32k|      firstproduct.high++;
 2793|  3.32k|    }
 2794|  7.70k|  }
 2795|  57.1k|  return firstproduct;
 2796|  57.1k|}
_ZN3glz10fast_float19full_multiplicationEmm:
  540|  64.8k|full_multiplication(uint64_t a, uint64_t b) {
  541|  64.8k|  if (cpp20_and_in_constexpr()) {
  ------------------
  |  Branch (541:7): [Folded, False: 64.8k]
  ------------------
  542|      0|    value128 answer;
  543|      0|    answer.low = umul128_generic(a, b, &answer.high);
  544|      0|    return answer;
  545|      0|  }
  546|  64.8k|  value128 answer;
  547|       |#if defined(_M_ARM64) && !defined(__MINGW32__)
  548|       |  // ARM64 has native support for 64-bit multiplications, no need to emulate
  549|       |  // But MinGW on ARM64 doesn't have native support for 64-bit multiplications
  550|       |  answer.high = __umulh(a, b);
  551|       |  answer.low = a * b;
  552|       |#elif defined(GLZ_FASTFLOAT_32BIT) ||                                              \
  553|       |    (defined(_WIN64) && !defined(__clang__) && !defined(_M_ARM64))
  554|       |  answer.low = _umul128(a, b, &answer.high); // _umul128 not available on ARM64
  555|       |#elif defined(GLZ_FASTFLOAT_64BIT) && defined(__SIZEOF_INT128__)
  556|       |  __uint128_t r = ((__uint128_t)a) * b;
  557|  64.8k|  answer.low = uint64_t(r);
  558|  64.8k|  answer.high = uint64_t(r >> 64);
  559|       |#else
  560|       |  answer.low = umul128_generic(a, b, &answer.high);
  561|       |#endif
  562|  64.8k|  return answer;
  563|  64.8k|}
_ZN3glz10fast_float8value128C2Ev:
  454|  64.8k|  constexpr value128() : low(0), high(0) {}
_ZN3glz10fast_float6detail5powerEi:
 2814|  57.1k|constexpr fastfloat_really_inline int32_t power(int32_t q) noexcept {
 2815|  57.1k|  return (((152170 + 65536) * q) >> 16) + 63;
 2816|  57.1k|}
_ZN3glz10fast_float13binary_formatIdE16minimum_exponentEv:
  742|  70.1k|template <> inline constexpr int binary_format<double>::minimum_exponent() {
  743|  70.1k|  return -1023;
  744|  70.1k|}
_ZN3glz10fast_float13binary_formatIdE26min_exponent_round_to_evenEv:
  733|  15.1k|inline constexpr int binary_format<double>::min_exponent_round_to_even() {
  734|  15.1k|  return -4;
  735|  15.1k|}
_ZN3glz10fast_float13binary_formatIdE26max_exponent_round_to_evenEv:
  723|  14.3k|inline constexpr int binary_format<double>::max_exponent_round_to_even() {
  724|  14.3k|  return 23;
  725|  14.3k|}
_ZNK3glz10fast_float17adjusted_mantissaneERKS1_:
  574|  19.4k|  constexpr bool operator!=(adjusted_mantissa const &o) const {
  575|  19.4k|    return mantissa != o.mantissa || power2 != o.power2;
  ------------------
  |  Branch (575:12): [True: 13.0k, False: 6.39k]
  |  Branch (575:38): [True: 0, False: 6.39k]
  ------------------
  576|  19.4k|  }
_ZN3glz10fast_float13compute_errorINS0_13binary_formatIdEEEENS0_17adjusted_mantissaElm:
 2837|  13.0k|compute_error(int64_t q, uint64_t w) noexcept {
 2838|  13.0k|  int lz = leading_zeroes(w);
 2839|  13.0k|  w <<= lz;
 2840|  13.0k|  value128 product =
 2841|  13.0k|      compute_product_approximation<binary::mantissa_explicit_bits() + 3>(q, w);
 2842|  13.0k|  return compute_error_scaled<binary>(q, product.high, lz);
 2843|  13.0k|}
_ZN3glz10fast_float20compute_error_scaledINS0_13binary_formatIdEEEENS0_17adjusted_mantissaElmi:
 2823|  13.0k|compute_error_scaled(int64_t q, uint64_t w, int lz) noexcept {
 2824|  13.0k|  int hilz = int(w >> 63) ^ 1;
 2825|  13.0k|  adjusted_mantissa answer;
 2826|  13.0k|  answer.mantissa = w << hilz;
 2827|  13.0k|  int bias = binary::mantissa_explicit_bits() - binary::minimum_exponent();
 2828|  13.0k|  answer.power2 = int32_t(detail::power(int32_t(q)) + bias - hilz - lz - 62 +
 2829|  13.0k|                          invalid_am_bias);
 2830|  13.0k|  return answer;
 2831|  13.0k|}
_ZN3glz10fast_float10digit_compIdcEENS0_17adjusted_mantissaERNS0_22parsed_number_string_tIT0_EES2_:
 4034|  13.0k|digit_comp(parsed_number_string_t<UC> &num, adjusted_mantissa am) noexcept {
 4035|       |  // remove the invalid exponent bias
 4036|  13.0k|  am.power2 -= invalid_am_bias;
 4037|       |
 4038|  13.0k|  int32_t sci_exp = scientific_exponent(num);
 4039|  13.0k|  size_t max_digits = binary_format<T>::max_digits();
 4040|  13.0k|  size_t digits = 0;
 4041|  13.0k|  bigint bigmant;
 4042|  13.0k|  parse_mantissa(bigmant, num, max_digits, digits);
 4043|       |  // can't underflow, since digits is at most max_digits.
 4044|  13.0k|  int32_t exponent = sci_exp + 1 - int32_t(digits);
 4045|  13.0k|  if (exponent >= 0) {
  ------------------
  |  Branch (4045:7): [True: 3.89k, False: 9.16k]
  ------------------
 4046|  3.89k|    return positive_digit_comp<T>(bigmant, exponent);
 4047|  9.16k|  } else {
 4048|  9.16k|    return negative_digit_comp<T>(bigmant, am, exponent);
 4049|  9.16k|  }
 4050|  13.0k|}
_ZN3glz10fast_float19scientific_exponentIcEEiRNS0_22parsed_number_string_tIT_EE:
 3640|  13.0k|scientific_exponent(parsed_number_string_t<UC> &num) noexcept {
 3641|  13.0k|  uint64_t mantissa = num.mantissa;
 3642|  13.0k|  int32_t exponent = int32_t(num.exponent);
 3643|  65.3k|  while (mantissa >= 10000) {
  ------------------
  |  Branch (3643:10): [True: 52.2k, False: 13.0k]
  ------------------
 3644|  52.2k|    mantissa /= 10000;
 3645|  52.2k|    exponent += 4;
 3646|  52.2k|  }
 3647|  26.1k|  while (mantissa >= 100) {
  ------------------
  |  Branch (3647:10): [True: 13.0k, False: 13.0k]
  ------------------
 3648|  13.0k|    mantissa /= 100;
 3649|  13.0k|    exponent += 2;
 3650|  13.0k|  }
 3651|  13.0k|  while (mantissa >= 10) {
  ------------------
  |  Branch (3651:10): [True: 0, False: 13.0k]
  ------------------
 3652|      0|    mantissa /= 10;
 3653|      0|    exponent += 1;
 3654|      0|  }
 3655|  13.0k|  return exponent;
 3656|  13.0k|}
_ZN3glz10fast_float13binary_formatIdE10max_digitsEv:
 1085|  13.0k|template <> inline constexpr size_t binary_format<double>::max_digits() {
 1086|  13.0k|  return 769;
 1087|  13.0k|}
_ZN3glz10fast_float6bigintC2Ev:
 3399|  13.0k|  GLZ_FASTFLOAT_CONSTEXPR20 bigint() : vec() {}
_ZN3glz10fast_float8stackvecILt62EEC2Ev:
 3006|  92.4k|  stackvec() = default;
_ZN3glz10fast_float14parse_mantissaIcEEvRNS0_6bigintERNS0_22parsed_number_string_tIT_EEmRm:
 3859|  13.0k|               size_t max_digits, size_t &digits) noexcept {
 3860|       |  // try to minimize the number of big integer and scalar multiplication.
 3861|       |  // therefore, try to parse 8 digits at a time, and multiply by the largest
 3862|       |  // scalar value (9 or 19 digits) for each step.
 3863|  13.0k|  size_t counter = 0;
 3864|  13.0k|  digits = 0;
 3865|  13.0k|  limb value = 0;
 3866|  13.0k|#ifdef GLZ_FASTFLOAT_64BIT_LIMB
 3867|  13.0k|  size_t step = 19;
 3868|       |#else
 3869|       |  size_t step = 9;
 3870|       |#endif
 3871|       |
 3872|       |  // process all integer digits.
 3873|  13.0k|  UC const *p = num.integer.ptr;
 3874|  13.0k|  UC const *pend = p + num.integer.len();
 3875|  13.0k|  skip_zeros(p, pend);
 3876|       |  // process all digits, in increments of step per loop
 3877|  30.3k|  while (p != pend) {
  ------------------
  |  Branch (3877:10): [True: 17.2k, False: 13.0k]
  ------------------
 3878|  42.6k|    while ((std::distance(p, pend) >= 8) && (step - counter >= 8) &&
  ------------------
  |  Branch (3878:12): [True: 30.0k, False: 12.6k]
  |  Branch (3878:45): [True: 25.3k, False: 4.63k]
  ------------------
 3879|  25.3k|           (max_digits - digits >= 8)) {
  ------------------
  |  Branch (3879:12): [True: 25.3k, False: 0]
  ------------------
 3880|  25.3k|      parse_eight_digits(p, value, counter, digits);
 3881|  25.3k|    }
 3882|  61.8k|    while (counter < step && p != pend && digits < max_digits) {
  ------------------
  |  Branch (3882:12): [True: 51.7k, False: 10.0k]
  |  Branch (3882:30): [True: 44.6k, False: 7.15k]
  |  Branch (3882:43): [True: 44.6k, False: 0]
  ------------------
 3883|  44.6k|      parse_one_digit(p, value, counter, digits);
 3884|  44.6k|    }
 3885|  17.2k|    if (digits == max_digits) {
  ------------------
  |  Branch (3885:9): [True: 0, False: 17.2k]
  ------------------
 3886|       |      // add the temporary value, then check if we've truncated any digits
 3887|      0|      add_native(result, limb(powers_of_ten_uint64[counter]), value);
 3888|      0|      bool truncated = is_truncated(p, pend);
 3889|      0|      if (num.fraction.ptr != nullptr) {
  ------------------
  |  Branch (3889:11): [True: 0, False: 0]
  ------------------
 3890|      0|        truncated |= is_truncated(num.fraction);
 3891|      0|      }
 3892|      0|      if (truncated) {
  ------------------
  |  Branch (3892:11): [True: 0, False: 0]
  ------------------
 3893|      0|        round_up_bigint(result, digits);
 3894|      0|      }
 3895|      0|      return;
 3896|  17.2k|    } else {
 3897|  17.2k|      add_native(result, limb(powers_of_ten_uint64[counter]), value);
 3898|  17.2k|      counter = 0;
 3899|  17.2k|      value = 0;
 3900|  17.2k|    }
 3901|  17.2k|  }
 3902|       |
 3903|       |  // add our fraction digits, if they're available.
 3904|  13.0k|  if (num.fraction.ptr != nullptr) {
  ------------------
  |  Branch (3904:7): [True: 10.6k, False: 2.45k]
  ------------------
 3905|  10.6k|    p = num.fraction.ptr;
 3906|  10.6k|    pend = p + num.fraction.len();
 3907|  10.6k|    if (digits == 0) {
  ------------------
  |  Branch (3907:9): [True: 1.75k, False: 8.85k]
  ------------------
 3908|  1.75k|      skip_zeros(p, pend);
 3909|  1.75k|    }
 3910|       |    // process all digits, in increments of step per loop
 3911|   141k|    while (p != pend) {
  ------------------
  |  Branch (3911:12): [True: 133k, False: 7.91k]
  ------------------
 3912|   388k|      while ((std::distance(p, pend) >= 8) && (step - counter >= 8) &&
  ------------------
  |  Branch (3912:14): [True: 378k, False: 10.2k]
  |  Branch (3912:47): [True: 256k, False: 122k]
  ------------------
 3913|   256k|             (max_digits - digits >= 8)) {
  ------------------
  |  Branch (3913:14): [True: 254k, False: 1.49k]
  ------------------
 3914|   254k|        parse_eight_digits(p, value, counter, digits);
 3915|   254k|      }
 3916|   531k|      while (counter < step && p != pend && digits < max_digits) {
  ------------------
  |  Branch (3916:14): [True: 407k, False: 123k]
  |  Branch (3916:32): [True: 399k, False: 8.04k]
  |  Branch (3916:45): [True: 397k, False: 2.00k]
  ------------------
 3917|   397k|        parse_one_digit(p, value, counter, digits);
 3918|   397k|      }
 3919|   133k|      if (digits == max_digits) {
  ------------------
  |  Branch (3919:11): [True: 2.69k, False: 131k]
  ------------------
 3920|       |        // add the temporary value, then check if we've truncated any digits
 3921|  2.69k|        add_native(result, limb(powers_of_ten_uint64[counter]), value);
 3922|  2.69k|        bool truncated = is_truncated(p, pend);
 3923|  2.69k|        if (truncated) {
  ------------------
  |  Branch (3923:13): [True: 1.77k, False: 916]
  ------------------
 3924|  1.77k|          round_up_bigint(result, digits);
 3925|  1.77k|        }
 3926|  2.69k|        return;
 3927|   131k|      } else {
 3928|   131k|        add_native(result, limb(powers_of_ten_uint64[counter]), value);
 3929|   131k|        counter = 0;
 3930|   131k|        value = 0;
 3931|   131k|      }
 3932|   133k|    }
 3933|  10.6k|  }
 3934|       |
 3935|  10.3k|  if (counter != 0) {
  ------------------
  |  Branch (3935:7): [True: 0, False: 10.3k]
  ------------------
 3936|      0|    add_native(result, limb(powers_of_ten_uint64[counter]), value);
 3937|      0|  }
 3938|  10.3k|}
_ZN3glz10fast_float10skip_zerosIcEEvRPKT_S4_:
 3773|  14.8k|skip_zeros(UC const *&first, UC const *last) noexcept {
 3774|  14.8k|  uint64_t val;
 3775|  31.2k|  while (!cpp20_and_in_constexpr() &&
  ------------------
  |  Branch (3775:10): [True: 31.2k, Folded]
  ------------------
 3776|  31.2k|         std::distance(first, last) >= int_cmp_len<UC>()) {
  ------------------
  |  Branch (3776:10): [True: 28.1k, False: 3.08k]
  ------------------
 3777|  28.1k|    ::memcpy(&val, first, sizeof(uint64_t));
 3778|  28.1k|    if (val != int_cmp_zeros<UC>()) {
  ------------------
  |  Branch (3778:9): [True: 11.7k, False: 16.4k]
  ------------------
 3779|  11.7k|      break;
 3780|  11.7k|    }
 3781|  16.4k|    first += int_cmp_len<UC>();
 3782|  16.4k|  }
 3783|  19.3k|  while (first != last) {
  ------------------
  |  Branch (3783:10): [True: 17.5k, False: 1.75k]
  ------------------
 3784|  17.5k|    if (*first != UC('0')) {
  ------------------
  |  Branch (3784:9): [True: 13.0k, False: 4.48k]
  ------------------
 3785|  13.0k|      break;
 3786|  13.0k|    }
 3787|  4.48k|    first++;
 3788|  4.48k|  }
 3789|  14.8k|}
_ZN3glz10fast_float11int_cmp_lenIcEEiv:
 1180|   144k|template <typename UC> constexpr int int_cmp_len() {
 1181|   144k|  return sizeof(uint64_t) / sizeof(UC);
 1182|   144k|}
_ZN3glz10fast_float13int_cmp_zerosIcEEmv:
 1170|  76.3k|template <typename UC> constexpr uint64_t int_cmp_zeros() {
 1171|  76.3k|  static_assert((sizeof(UC) == 1) || (sizeof(UC) == 2) || (sizeof(UC) == 4),
 1172|  76.3k|                "Unsupported character size");
 1173|  76.3k|  return (sizeof(UC) == 1) ? 0x3030303030303030
  ------------------
  |  Branch (1173:10): [True: 76.3k, Folded]
  ------------------
 1174|  76.3k|         : (sizeof(UC) == 2)
  ------------------
  |  Branch (1174:12): [Folded, False: 0]
  ------------------
 1175|      0|             ? (uint64_t(UC('0')) << 48 | uint64_t(UC('0')) << 32 |
 1176|      0|                uint64_t(UC('0')) << 16 | UC('0'))
 1177|      0|             : (uint64_t(UC('0')) << 32 | UC('0'));
 1178|  76.3k|}
_ZN3glz10fast_float18parse_eight_digitsIcEEvRPKT_RmS6_S6_:
 3824|   279k|                   size_t &count) noexcept {
 3825|   279k|  value = value * 100000000 + parse_eight_digits_unrolled(p);
 3826|   279k|  p += 8;
 3827|   279k|  counter += 8;
 3828|   279k|  count += 8;
 3829|   279k|}
_ZN3glz10fast_float27parse_eight_digits_unrolledIcEEjPKT_:
 1588|   279k|parse_eight_digits_unrolled(UC const *chars) noexcept {
 1589|   279k|  if (cpp20_and_in_constexpr() || !has_simd_opt<UC>()) {
  ------------------
  |  Branch (1589:7): [Folded, False: 0]
  |  Branch (1589:35): [True: 0, Folded]
  ------------------
 1590|   279k|    return parse_eight_digits_unrolled(read8_to_u64(chars)); // truncation okay
 1591|   279k|  }
 1592|      0|  return parse_eight_digits_unrolled(simd_read8_to_u64(chars));
 1593|   279k|}
_ZN3glz10fast_float15parse_one_digitIcEEvRPKT_RmS6_S6_:
 3834|   441k|                size_t &count) noexcept {
 3835|   441k|  value = value * 10 + limb(*p - UC('0'));
 3836|   441k|  p++;
 3837|   441k|  counter++;
 3838|   441k|  count++;
 3839|   441k|}
_ZN3glz10fast_float10add_nativeERNS0_6bigintEmm:
 3842|   153k|add_native(bigint &big, limb power, limb value) noexcept {
 3843|   153k|  big.mul(power);
 3844|   153k|  big.add(value);
 3845|   153k|}
_ZN3glz10fast_float6bigint3mulEm:
 3552|   153k|  GLZ_FASTFLOAT_CONSTEXPR20 bool mul(limb y) noexcept { return small_mul(vec, y); }
_ZN3glz10fast_float9small_mulILt62EEEbRNS0_8stackvecIXT_EEEm:
 3249|   263k|                                            limb y) noexcept {
 3250|   263k|  limb carry = 0;
 3251|  3.88M|  for (size_t index = 0; index < vec.len(); index++) {
  ------------------
  |  Branch (3251:26): [True: 3.62M, False: 263k]
  ------------------
 3252|  3.62M|    vec[index] = scalar_mul(vec[index], y, carry);
 3253|  3.62M|  }
 3254|   263k|  if (carry != 0) {
  ------------------
  |  Branch (3254:7): [True: 237k, False: 26.5k]
  ------------------
 3255|   237k|    GLZ_FASTFLOAT_TRY(vec.try_push(carry));
  ------------------
  |  |  354|   237k|  {                                                                            \
  |  |  355|   237k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 237k]
  |  |  ------------------
  |  |  356|   237k|      return false;                                                            \
  |  |  357|   237k|  }
  ------------------
 3256|   237k|  }
 3257|   263k|  return true;
 3258|   263k|}
_ZNK3glz10fast_float8stackvecILt62EE3lenEv:
 3039|  5.07M|  constexpr size_t len() const noexcept { return length; }
_ZN3glz10fast_float10scalar_mulEmmRm:
 3196|  3.62M|scalar_mul(limb x, limb y, limb &carry) noexcept {
 3197|  3.62M|#ifdef GLZ_FASTFLOAT_64BIT_LIMB
 3198|  3.62M|#if defined(__SIZEOF_INT128__)
 3199|       |  // GCC and clang both define it as an extension.
 3200|  3.62M|  __uint128_t z = __uint128_t(x) * __uint128_t(y) + __uint128_t(carry);
 3201|  3.62M|  carry = limb(z >> limb_bits);
 3202|  3.62M|  return limb(z);
 3203|       |#else
 3204|       |  // fallback, no native 128-bit integer multiplication with carry.
 3205|       |  // on msvc, this optimizes identically, somehow.
 3206|       |  value128 z = full_multiplication(x, y);
 3207|       |  bool overflow;
 3208|       |  z.low = scalar_add(z.low, carry, overflow);
 3209|       |  z.high += uint64_t(overflow); // cannot overflow
 3210|       |  carry = z.high;
 3211|       |  return z.low;
 3212|       |#endif
 3213|       |#else
 3214|       |  uint64_t z = uint64_t(x) * uint64_t(y) + uint64_t(carry);
 3215|       |  carry = limb(z >> limb_bits);
 3216|       |  return limb(z);
 3217|       |#endif
 3218|  3.62M|}
_ZN3glz10fast_float8stackvecILt62EEixEm:
 3017|  9.04M|  GLZ_FASTFLOAT_CONSTEXPR14 limb &operator[](size_t index) noexcept {
 3018|  9.04M|    GLZ_FASTFLOAT_DEBUG_ASSERT(index < length);
  ------------------
  |  |  349|  9.04M|  { ((void)(x)); }
  ------------------
 3019|  9.04M|    return data[index];
 3020|  9.04M|  }
_ZN3glz10fast_float8stackvecILt62EE8try_pushEm:
 3052|   254k|  GLZ_FASTFLOAT_CONSTEXPR14 bool try_push(limb value) noexcept {
 3053|   254k|    if (len() < capacity()) {
  ------------------
  |  Branch (3053:9): [True: 254k, False: 0]
  ------------------
 3054|   254k|      push_unchecked(value);
 3055|   254k|      return true;
 3056|   254k|    } else {
 3057|      0|      return false;
 3058|      0|    }
 3059|   254k|  }
_ZNK3glz10fast_float8stackvecILt62EE8capacityEv:
 3043|   417k|  constexpr size_t capacity() const noexcept { return size; }
_ZN3glz10fast_float8stackvecILt62EE14push_uncheckedEm:
 3046|   264k|  GLZ_FASTFLOAT_CONSTEXPR14 void push_unchecked(limb value) noexcept {
 3047|   264k|    data[length] = value;
 3048|   264k|    length++;
 3049|   264k|  }
_ZN3glz10fast_float6bigint3addEm:
 3554|   153k|  GLZ_FASTFLOAT_CONSTEXPR20 bool add(limb y) noexcept { return small_add(vec, y); }
_ZN3glz10fast_float9small_addILt62EEEbRNS0_8stackvecIXT_EEEm:
 3242|   153k|small_add(stackvec<size> &vec, limb y) noexcept {
 3243|   153k|  return small_add_from(vec, y, 0);
 3244|   153k|}
_ZN3glz10fast_float14small_add_fromILt62EEEbRNS0_8stackvecIXT_EEEmm:
 3224|   153k|                                                 size_t start) noexcept {
 3225|   153k|  size_t index = start;
 3226|   153k|  limb carry = y;
 3227|   153k|  bool overflow;
 3228|   204k|  while (carry != 0 && index < vec.len()) {
  ------------------
  |  Branch (3228:10): [True: 65.2k, False: 139k]
  |  Branch (3228:24): [True: 51.6k, False: 13.5k]
  ------------------
 3229|  51.6k|    vec[index] = scalar_add(vec[index], carry, overflow);
 3230|  51.6k|    carry = limb(overflow);
 3231|  51.6k|    index += 1;
 3232|  51.6k|  }
 3233|   153k|  if (carry != 0) {
  ------------------
  |  Branch (3233:7): [True: 13.5k, False: 139k]
  ------------------
 3234|  13.5k|    GLZ_FASTFLOAT_TRY(vec.try_push(carry));
  ------------------
  |  |  354|  13.5k|  {                                                                            \
  |  |  355|  13.5k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 13.5k]
  |  |  ------------------
  |  |  356|  13.5k|      return false;                                                            \
  |  |  357|  13.5k|  }
  ------------------
 3235|  13.5k|  }
 3236|   153k|  return true;
 3237|   153k|}
_ZN3glz10fast_float10scalar_addEmmRb:
 3176|  1.07M|scalar_add(limb x, limb y, bool &overflow) noexcept {
 3177|  1.07M|  limb z;
 3178|       |// gcc and clang
 3179|  1.07M|#if defined(__has_builtin)
 3180|  1.07M|#if __has_builtin(__builtin_add_overflow)
 3181|  1.07M|  if (!cpp20_and_in_constexpr()) {
  ------------------
  |  Branch (3181:7): [True: 1.07M, Folded]
  ------------------
 3182|  1.07M|    overflow = __builtin_add_overflow(x, y, &z);
 3183|  1.07M|    return z;
 3184|  1.07M|  }
 3185|      0|#endif
 3186|      0|#endif
 3187|       |
 3188|       |  // generic, this still optimizes correctly on MSVC.
 3189|      0|  z = x + y;
 3190|      0|  overflow = z < x;
 3191|      0|  return z;
 3192|  1.07M|}
_ZN3glz10fast_float12is_truncatedIcEEbPKT_S4_:
 3795|  2.69k|is_truncated(UC const *first, UC const *last) noexcept {
 3796|       |  // do 8-bit optimizations, can just compare to 8 literal 0s.
 3797|  2.69k|  uint64_t val;
 3798|  49.8k|  while (!cpp20_and_in_constexpr() &&
  ------------------
  |  Branch (3798:10): [True: 49.8k, Folded]
  ------------------
 3799|  49.8k|         std::distance(first, last) >= int_cmp_len<UC>()) {
  ------------------
  |  Branch (3799:10): [True: 48.1k, False: 1.78k]
  ------------------
 3800|  48.1k|    ::memcpy(&val, first, sizeof(uint64_t));
 3801|  48.1k|    if (val != int_cmp_zeros<UC>()) {
  ------------------
  |  Branch (3801:9): [True: 912, False: 47.1k]
  ------------------
 3802|    912|      return true;
 3803|    912|    }
 3804|  47.1k|    first += int_cmp_len<UC>();
 3805|  47.1k|  }
 3806|  6.26k|  while (first != last) {
  ------------------
  |  Branch (3806:10): [True: 5.35k, False: 916]
  ------------------
 3807|  5.35k|    if (*first != UC('0')) {
  ------------------
  |  Branch (3807:9): [True: 865, False: 4.48k]
  ------------------
 3808|    865|      return true;
 3809|    865|    }
 3810|  4.48k|    ++first;
 3811|  4.48k|  }
 3812|    916|  return false;
 3813|  1.78k|}
_ZN3glz10fast_float15round_up_bigintERNS0_6bigintERm:
 3848|  1.77k|round_up_bigint(bigint &big, size_t &count) noexcept {
 3849|       |  // need to round-up the digits, but need to avoid rounding
 3850|       |  // ....9999 to ...10000, which could cause a false halfway point.
 3851|  1.77k|  add_native(big, 10, 1);
 3852|  1.77k|  count++;
 3853|  1.77k|}
_ZN3glz10fast_float19positive_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintEi:
 3942|  3.89k|positive_digit_comp(bigint &bigmant, int32_t exponent) noexcept {
 3943|  3.89k|  GLZ_FASTFLOAT_ASSERT(bigmant.pow10(uint32_t(exponent)));
  ------------------
  |  |  344|  3.89k|  { ((void)(x)); }
  ------------------
 3944|  3.89k|  adjusted_mantissa answer;
 3945|  3.89k|  bool truncated;
 3946|  3.89k|  answer.mantissa = bigmant.hi64(truncated);
 3947|  3.89k|  int bias = binary_format<T>::mantissa_explicit_bits() -
 3948|  3.89k|             binary_format<T>::minimum_exponent();
 3949|  3.89k|  answer.power2 = bigmant.bit_length() - 64 + bias;
 3950|       |
 3951|  3.89k|  round<T>(answer, [truncated](adjusted_mantissa &a, int32_t shift) {
 3952|  3.89k|    round_nearest_tie_even(
 3953|  3.89k|        a, shift,
 3954|  3.89k|        [truncated](bool is_odd, bool is_halfway, bool is_above) -> bool {
 3955|  3.89k|          return is_above || (is_halfway && truncated) ||
 3956|  3.89k|                 (is_odd && is_halfway);
 3957|  3.89k|        });
 3958|  3.89k|  });
 3959|       |
 3960|  3.89k|  return answer;
 3961|  3.89k|}
_ZN3glz10fast_float6bigint5pow10Ej:
 3591|  3.89k|  GLZ_FASTFLOAT_CONSTEXPR20 bool pow10(uint32_t exp) noexcept {
 3592|  3.89k|    GLZ_FASTFLOAT_TRY(pow5(exp));
  ------------------
  |  |  354|  3.89k|  {                                                                            \
  |  |  355|  3.89k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 3.89k]
  |  |  ------------------
  |  |  356|  3.89k|      return false;                                                            \
  |  |  357|  3.89k|  }
  ------------------
 3593|  3.89k|    return pow2(exp);
 3594|  3.89k|  }
_ZN3glz10fast_float6bigint4pow5Ej:
 3560|  13.0k|  GLZ_FASTFLOAT_CONSTEXPR20 bool pow5(uint32_t exp) noexcept {
 3561|       |    // multiply by a power of 5
 3562|  13.0k|    size_t large_length = sizeof(large_power_of_5) / sizeof(limb);
 3563|  13.0k|    limb_span large = limb_span(large_power_of_5, large_length);
 3564|  30.6k|    while (exp >= large_step) {
  ------------------
  |  Branch (3564:12): [True: 17.5k, False: 13.0k]
  ------------------
 3565|  17.5k|      GLZ_FASTFLOAT_TRY(large_mul(vec, large));
  ------------------
  |  |  354|  17.5k|  {                                                                            \
  |  |  355|  17.5k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 17.5k]
  |  |  ------------------
  |  |  356|  17.5k|      return false;                                                            \
  |  |  357|  17.5k|  }
  ------------------
 3566|  17.5k|      exp -= large_step;
 3567|  17.5k|    }
 3568|  13.0k|#ifdef GLZ_FASTFLOAT_64BIT_LIMB
 3569|  13.0k|    uint32_t small_step = 27;
 3570|  13.0k|    limb max_native = 7450580596923828125UL;
 3571|       |#else
 3572|       |    uint32_t small_step = 13;
 3573|       |    limb max_native = 1220703125U;
 3574|       |#endif
 3575|  25.5k|    while (exp >= small_step) {
  ------------------
  |  Branch (3575:12): [True: 12.4k, False: 13.0k]
  ------------------
 3576|  12.4k|      GLZ_FASTFLOAT_TRY(small_mul(vec, max_native));
  ------------------
  |  |  354|  12.4k|  {                                                                            \
  |  |  355|  12.4k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 12.4k]
  |  |  ------------------
  |  |  356|  12.4k|      return false;                                                            \
  |  |  357|  12.4k|  }
  ------------------
 3577|  12.4k|      exp -= small_step;
 3578|  12.4k|    }
 3579|  13.0k|    if (exp != 0) {
  ------------------
  |  Branch (3579:9): [True: 10.6k, False: 2.43k]
  ------------------
 3580|       |      // Work around clang bug https://godbolt.org/z/zedh7rrhc
 3581|       |      // This is similar to https://github.com/llvm/llvm-project/issues/47746,
 3582|       |      // except the workaround described there don't work here
 3583|  10.6k|      GLZ_FASTFLOAT_TRY(small_mul(
  ------------------
  |  |  354|  10.6k|  {                                                                            \
  |  |  355|  10.6k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 10.6k]
  |  |  ------------------
  |  |  356|  10.6k|      return false;                                                            \
  |  |  357|  10.6k|  }
  ------------------
 3584|  10.6k|          vec, limb(((void)small_power_of_5[0], small_power_of_5[exp]))));
 3585|  10.6k|    }
 3586|       |
 3587|  13.0k|    return true;
 3588|  13.0k|  }
_ZN3glz10fast_float4spanImEC2EPKmm:
  436|   118k|  constexpr span(T const *_ptr, size_t _length) : ptr(_ptr), length(_length) {}
_ZN3glz10fast_float9large_mulILt62EEEbRNS0_8stackvecIXT_EEENS0_4spanImEE:
 3329|  17.5k|GLZ_FASTFLOAT_CONSTEXPR20 bool large_mul(stackvec<size> &x, limb_span y) noexcept {
 3330|  17.5k|  if (y.len() == 1) {
  ------------------
  |  Branch (3330:7): [True: 0, False: 17.5k]
  ------------------
 3331|      0|    GLZ_FASTFLOAT_TRY(small_mul(x, y[0]));
  ------------------
  |  |  354|      0|  {                                                                            \
  |  |  355|      0|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  356|      0|      return false;                                                            \
  |  |  357|      0|  }
  ------------------
 3332|  17.5k|  } else {
 3333|  17.5k|    GLZ_FASTFLOAT_TRY(long_mul(x, y));
  ------------------
  |  |  354|  17.5k|  {                                                                            \
  |  |  355|  17.5k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 17.5k]
  |  |  ------------------
  |  |  356|  17.5k|      return false;                                                            \
  |  |  357|  17.5k|  }
  ------------------
 3334|  17.5k|  }
 3335|  17.5k|  return true;
 3336|  17.5k|}
_ZNK3glz10fast_float4spanImE3lenEv:
  440|  1.32M|  constexpr size_t len() const noexcept { return length; }
_ZNK3glz10fast_float4spanImEixEm:
  442|   818k|  GLZ_FASTFLOAT_CONSTEXPR14 const T &operator[](size_t index) const noexcept {
  443|   818k|    GLZ_FASTFLOAT_DEBUG_ASSERT(index < length);
  ------------------
  |  |  349|   818k|  { ((void)(x)); }
  ------------------
  444|   818k|    return ptr[index];
  445|   818k|  }
_ZN3glz10fast_float8long_mulILt62EEEbRNS0_8stackvecIXT_EEENS0_4spanImEE:
 3301|  17.5k|GLZ_FASTFLOAT_CONSTEXPR20 bool long_mul(stackvec<size> &x, limb_span y) noexcept {
 3302|  17.5k|  limb_span xs = limb_span(x.data, x.len());
 3303|  17.5k|  stackvec<size> z(xs);
 3304|  17.5k|  limb_span zs = limb_span(z.data, z.len());
 3305|       |
 3306|  17.5k|  if (y.len() != 0) {
  ------------------
  |  Branch (3306:7): [True: 17.5k, False: 0]
  ------------------
 3307|  17.5k|    limb y0 = y[0];
 3308|  17.5k|    GLZ_FASTFLOAT_TRY(small_mul(x, y0));
  ------------------
  |  |  354|  17.5k|  {                                                                            \
  |  |  355|  17.5k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 17.5k]
  |  |  ------------------
  |  |  356|  17.5k|      return false;                                                            \
  |  |  357|  17.5k|  }
  ------------------
 3309|  87.7k|    for (size_t index = 1; index < y.len(); index++) {
  ------------------
  |  Branch (3309:28): [True: 70.2k, False: 17.5k]
  ------------------
 3310|  70.2k|      limb yi = y[index];
 3311|  70.2k|      stackvec<size> zi;
 3312|  70.2k|      if (yi != 0) {
  ------------------
  |  Branch (3312:11): [True: 70.2k, False: 0]
  ------------------
 3313|       |        // re-use the same buffer throughout
 3314|  70.2k|        zi.set_len(0);
 3315|  70.2k|        GLZ_FASTFLOAT_TRY(zi.try_extend(zs));
  ------------------
  |  |  354|  70.2k|  {                                                                            \
  |  |  355|  70.2k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 70.2k]
  |  |  ------------------
  |  |  356|  70.2k|      return false;                                                            \
  |  |  357|  70.2k|  }
  ------------------
 3316|  70.2k|        GLZ_FASTFLOAT_TRY(small_mul(zi, yi));
  ------------------
  |  |  354|  70.2k|  {                                                                            \
  |  |  355|  70.2k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 70.2k]
  |  |  ------------------
  |  |  356|  70.2k|      return false;                                                            \
  |  |  357|  70.2k|  }
  ------------------
 3317|  70.2k|        limb_span zis = limb_span(zi.data, zi.len());
 3318|  70.2k|        GLZ_FASTFLOAT_TRY(large_add_from(x, zis, index));
  ------------------
  |  |  354|  70.2k|  {                                                                            \
  |  |  355|  70.2k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 70.2k]
  |  |  ------------------
  |  |  356|  70.2k|      return false;                                                            \
  |  |  357|  70.2k|  }
  ------------------
 3319|  70.2k|      }
 3320|  70.2k|    }
 3321|  17.5k|  }
 3322|       |
 3323|  17.5k|  x.normalize();
 3324|  17.5k|  return true;
 3325|  17.5k|}
_ZN3glz10fast_float8stackvecILt62EEC2ENS0_4spanImEE:
 3013|  17.5k|  GLZ_FASTFLOAT_CONSTEXPR20 stackvec(limb_span s) {
 3014|  17.5k|    GLZ_FASTFLOAT_ASSERT(try_extend(s));
  ------------------
  |  |  344|  17.5k|  { ((void)(x)); }
  ------------------
 3015|  17.5k|  }
_ZN3glz10fast_float8stackvecILt62EE7set_lenEm:
 3035|   232k|  GLZ_FASTFLOAT_CONSTEXPR14 void set_len(size_t len) noexcept {
 3036|   232k|    length = uint16_t(len);
 3037|   232k|  }
_ZN3glz10fast_float8stackvecILt62EE10try_extendENS0_4spanImEE:
 3069|  87.7k|  GLZ_FASTFLOAT_CONSTEXPR20 bool try_extend(limb_span s) noexcept {
 3070|  87.7k|    if (len() + s.len() <= capacity()) {
  ------------------
  |  Branch (3070:9): [True: 87.7k, False: 0]
  ------------------
 3071|  87.7k|      extend_unchecked(s);
 3072|  87.7k|      return true;
 3073|  87.7k|    } else {
 3074|      0|      return false;
 3075|      0|    }
 3076|  87.7k|  }
_ZN3glz10fast_float8stackvecILt62EE16extend_uncheckedENS0_4spanImEE:
 3062|  87.7k|  GLZ_FASTFLOAT_CONSTEXPR20 void extend_unchecked(limb_span s) noexcept {
 3063|  87.7k|    limb *ptr = data + length;
 3064|  87.7k|    std::copy_n(s.ptr, s.len(), ptr);
 3065|  87.7k|    set_len(len() + s.len());
 3066|  87.7k|  }
_ZN3glz10fast_float14large_add_fromILt62EEEbRNS0_8stackvecIXT_EEENS0_4spanImEEm:
 3264|  70.2k|                                          size_t start) noexcept {
 3265|       |  // the effective x buffer is from `xstart..x.len()`, so exit early
 3266|       |  // if we can't get that current range.
 3267|  70.2k|  if (x.len() < start || y.len() > x.len() - start) {
  ------------------
  |  Branch (3267:7): [True: 0, False: 70.2k]
  |  Branch (3267:26): [True: 68.6k, False: 1.52k]
  ------------------
 3268|  68.6k|    GLZ_FASTFLOAT_TRY(x.try_resize(y.len() + start, 0));
  ------------------
  |  |  354|  68.6k|  {                                                                            \
  |  |  355|  68.6k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 68.6k]
  |  |  ------------------
  |  |  356|  68.6k|      return false;                                                            \
  |  |  357|  68.6k|  }
  ------------------
 3269|  68.6k|  }
 3270|       |
 3271|  70.2k|  bool carry = false;
 3272|   801k|  for (size_t index = 0; index < y.len(); index++) {
  ------------------
  |  Branch (3272:26): [True: 730k, False: 70.2k]
  ------------------
 3273|   730k|    limb xi = x[index + start];
 3274|   730k|    limb yi = y[index];
 3275|   730k|    bool c1 = false;
 3276|   730k|    bool c2 = false;
 3277|   730k|    xi = scalar_add(xi, yi, c1);
 3278|   730k|    if (carry) {
  ------------------
  |  Branch (3278:9): [True: 290k, False: 440k]
  ------------------
 3279|   290k|      xi = scalar_add(xi, 1, c2);
 3280|   290k|    }
 3281|   730k|    x[index + start] = xi;
 3282|   730k|    carry = c1 | c2;
 3283|   730k|  }
 3284|       |
 3285|       |  // handle overflow
 3286|  70.2k|  if (carry) {
  ------------------
  |  Branch (3286:7): [True: 0, False: 70.2k]
  ------------------
 3287|      0|    GLZ_FASTFLOAT_TRY(small_add_from(x, 1, y.len() + start));
  ------------------
  |  |  354|      0|  {                                                                            \
  |  |  355|      0|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  356|      0|      return false;                                                            \
  |  |  357|      0|  }
  ------------------
 3288|      0|  }
 3289|  70.2k|  return true;
 3290|  70.2k|}
_ZN3glz10fast_float8stackvecILt62EE10try_resizeEmm:
 3095|  68.6k|  GLZ_FASTFLOAT_CONSTEXPR20 bool try_resize(size_t new_len, limb value) noexcept {
 3096|  68.6k|    if (new_len > capacity()) {
  ------------------
  |  Branch (3096:9): [True: 0, False: 68.6k]
  ------------------
 3097|      0|      return false;
 3098|  68.6k|    } else {
 3099|  68.6k|      resize_unchecked(new_len, value);
 3100|  68.6k|      return true;
 3101|  68.6k|    }
 3102|  68.6k|  }
_ZN3glz10fast_float8stackvecILt62EE16resize_uncheckedEmm:
 3082|  68.6k|  void resize_unchecked(size_t new_len, limb value) noexcept {
 3083|  68.6k|    if (new_len > len()) {
  ------------------
  |  Branch (3083:9): [True: 68.6k, False: 0]
  ------------------
 3084|  68.6k|      size_t count = new_len - len();
 3085|  68.6k|      limb *first = data + len();
 3086|  68.6k|      limb *last = first + count;
 3087|  68.6k|      ::std::fill(first, last, value);
 3088|  68.6k|      set_len(new_len);
 3089|  68.6k|    } else {
 3090|      0|      set_len(new_len);
 3091|      0|    }
 3092|  68.6k|  }
_ZN3glz10fast_float8stackvecILt62EE9normalizeEv:
 3118|  26.7k|  GLZ_FASTFLOAT_CONSTEXPR14 void normalize() noexcept {
 3119|  26.7k|    while (len() > 0 && rindex(0) == 0) {
  ------------------
  |  Branch (3119:12): [True: 26.7k, False: 0]
  |  Branch (3119:25): [True: 0, False: 26.7k]
  ------------------
 3120|      0|      length--;
 3121|      0|    }
 3122|  26.7k|  }
_ZNK3glz10fast_float8stackvecILt62EE6rindexEm:
 3028|  40.0k|  GLZ_FASTFLOAT_CONSTEXPR14 const limb &rindex(size_t index) const noexcept {
 3029|  40.0k|    GLZ_FASTFLOAT_DEBUG_ASSERT(index < length);
  ------------------
  |  |  349|  40.0k|  { ((void)(x)); }
  ------------------
 3030|  40.0k|    size_t rindex = length - index - 1;
 3031|  40.0k|    return data[rindex];
 3032|  40.0k|  }
_ZN3glz10fast_float6bigint4pow2Ej:
 3557|  12.8k|  GLZ_FASTFLOAT_CONSTEXPR20 bool pow2(uint32_t exp) noexcept { return shl(exp); }
_ZN3glz10fast_float6bigint3shlEm:
 3519|  12.8k|  GLZ_FASTFLOAT_CONSTEXPR20 bool shl(size_t n) noexcept {
 3520|  12.8k|    size_t rem = n % limb_bits;
 3521|  12.8k|    size_t div = n / limb_bits;
 3522|  12.8k|    if (rem != 0) {
  ------------------
  |  Branch (3522:9): [True: 10.2k, False: 2.56k]
  ------------------
 3523|  10.2k|      GLZ_FASTFLOAT_TRY(shl_bits(rem));
  ------------------
  |  |  354|  10.2k|  {                                                                            \
  |  |  355|  10.2k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 10.2k]
  |  |  ------------------
  |  |  356|  10.2k|      return false;                                                            \
  |  |  357|  10.2k|  }
  ------------------
 3524|  10.2k|    }
 3525|  12.8k|    if (div != 0) {
  ------------------
  |  Branch (3525:9): [True: 5.78k, False: 7.07k]
  ------------------
 3526|  5.78k|      GLZ_FASTFLOAT_TRY(shl_limbs(div));
  ------------------
  |  |  354|  5.78k|  {                                                                            \
  |  |  355|  5.78k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 5.78k]
  |  |  ------------------
  |  |  356|  5.78k|      return false;                                                            \
  |  |  357|  5.78k|  }
  ------------------
 3527|  5.78k|    }
 3528|  12.8k|    return true;
 3529|  12.8k|  }
_ZN3glz10fast_float6bigint8shl_bitsEm:
 3472|  10.2k|  GLZ_FASTFLOAT_CONSTEXPR20 bool shl_bits(size_t n) noexcept {
 3473|       |    // Internally, for each item, we shift left by n, and add the previous
 3474|       |    // right shifted limb-bits.
 3475|       |    // For example, we transform (for u8) shifted left 2, to:
 3476|       |    //      b10100100 b01000010
 3477|       |    //      b10 b10010001 b00001000
 3478|  10.2k|    GLZ_FASTFLOAT_DEBUG_ASSERT(n != 0);
  ------------------
  |  |  349|  10.2k|  { ((void)(x)); }
  ------------------
 3479|  10.2k|    GLZ_FASTFLOAT_DEBUG_ASSERT(n < sizeof(limb) * 8);
  ------------------
  |  |  349|  10.2k|  { ((void)(x)); }
  ------------------
 3480|       |
 3481|  10.2k|    size_t shl = n;
 3482|  10.2k|    size_t shr = limb_bits - shl;
 3483|  10.2k|    limb prev = 0;
 3484|   122k|    for (size_t index = 0; index < vec.len(); index++) {
  ------------------
  |  Branch (3484:28): [True: 112k, False: 10.2k]
  ------------------
 3485|   112k|      limb xi = vec[index];
 3486|   112k|      vec[index] = (xi << shl) | (prev >> shr);
 3487|   112k|      prev = xi;
 3488|   112k|    }
 3489|       |
 3490|  10.2k|    limb carry = prev >> shr;
 3491|  10.2k|    if (carry != 0) {
  ------------------
  |  Branch (3491:9): [True: 3.87k, False: 6.41k]
  ------------------
 3492|  3.87k|      return vec.try_push(carry);
 3493|  3.87k|    }
 3494|  6.41k|    return true;
 3495|  10.2k|  }
_ZN3glz10fast_float6bigint9shl_limbsEm:
 3498|  5.78k|  GLZ_FASTFLOAT_CONSTEXPR20 bool shl_limbs(size_t n) noexcept {
 3499|  5.78k|    GLZ_FASTFLOAT_DEBUG_ASSERT(n != 0);
  ------------------
  |  |  349|  5.78k|  { ((void)(x)); }
  ------------------
 3500|  5.78k|    if (n + vec.len() > vec.capacity()) {
  ------------------
  |  Branch (3500:9): [True: 0, False: 5.78k]
  ------------------
 3501|      0|      return false;
 3502|  5.78k|    } else if (!vec.is_empty()) {
  ------------------
  |  Branch (3502:16): [True: 5.78k, False: 0]
  ------------------
 3503|       |      // move limbs
 3504|  5.78k|      limb *dst = vec.data + n;
 3505|  5.78k|      limb const *src = vec.data;
 3506|  5.78k|      std::copy_backward(src, src + vec.len(), dst + vec.len());
 3507|       |      // fill in empty limbs
 3508|  5.78k|      limb *first = vec.data;
 3509|  5.78k|      limb *last = first + n;
 3510|  5.78k|      ::std::fill(first, last, 0);
 3511|  5.78k|      vec.set_len(n + vec.len());
 3512|  5.78k|      return true;
 3513|  5.78k|    } else {
 3514|      0|      return true;
 3515|      0|    }
 3516|  5.78k|  }
_ZNK3glz10fast_float8stackvecILt62EE8is_emptyEv:
 3041|  9.68k|  constexpr bool is_empty() const noexcept { return length == 0; }
_ZNK3glz10fast_float6bigint4hi64ERb:
 3418|  3.89k|  GLZ_FASTFLOAT_CONSTEXPR20 uint64_t hi64(bool &truncated) const noexcept {
 3419|  3.89k|#ifdef GLZ_FASTFLOAT_64BIT_LIMB
 3420|  3.89k|    if (vec.len() == 0) {
  ------------------
  |  Branch (3420:9): [True: 0, False: 3.89k]
  ------------------
 3421|      0|      return empty_hi64(truncated);
 3422|  3.89k|    } else if (vec.len() == 1) {
  ------------------
  |  Branch (3422:16): [True: 698, False: 3.20k]
  ------------------
 3423|    698|      return uint64_hi64(vec.rindex(0), truncated);
 3424|  3.20k|    } else {
 3425|  3.20k|      uint64_t result = uint64_hi64(vec.rindex(0), vec.rindex(1), truncated);
 3426|  3.20k|      truncated |= vec.nonzero(2);
 3427|  3.20k|      return result;
 3428|  3.20k|    }
 3429|       |#else
 3430|       |    if (vec.len() == 0) {
 3431|       |      return empty_hi64(truncated);
 3432|       |    } else if (vec.len() == 1) {
 3433|       |      return uint32_hi64(vec.rindex(0), truncated);
 3434|       |    } else if (vec.len() == 2) {
 3435|       |      return uint32_hi64(vec.rindex(0), vec.rindex(1), truncated);
 3436|       |    } else {
 3437|       |      uint64_t result =
 3438|       |          uint32_hi64(vec.rindex(0), vec.rindex(1), vec.rindex(2), truncated);
 3439|       |      truncated |= vec.nonzero(3);
 3440|       |      return result;
 3441|       |    }
 3442|       |#endif
 3443|  3.89k|  }
_ZN3glz10fast_float11uint64_hi64EmRb:
 3132|    698|uint64_hi64(uint64_t r0, bool &truncated) noexcept {
 3133|    698|  truncated = false;
 3134|    698|  int shl = leading_zeroes(r0);
 3135|    698|  return r0 << shl;
 3136|    698|}
_ZN3glz10fast_float11uint64_hi64EmmRb:
 3139|  3.20k|uint64_hi64(uint64_t r0, uint64_t r1, bool &truncated) noexcept {
 3140|  3.20k|  int shl = leading_zeroes(r0);
 3141|  3.20k|  if (shl == 0) {
  ------------------
  |  Branch (3141:7): [True: 446, False: 2.75k]
  ------------------
 3142|    446|    truncated = r1 != 0;
 3143|    446|    return r0;
 3144|  2.75k|  } else {
 3145|  2.75k|    int shr = 64 - shl;
 3146|  2.75k|    truncated = (r1 << shl) != 0;
 3147|  2.75k|    return (r0 << shl) | (r1 >> shr);
 3148|  2.75k|  }
 3149|  3.20k|}
_ZNK3glz10fast_float8stackvecILt62EE7nonzeroEm:
 3107|  3.20k|  GLZ_FASTFLOAT_CONSTEXPR14 bool nonzero(size_t index) const noexcept {
 3108|  3.40k|    while (index < len()) {
  ------------------
  |  Branch (3108:12): [True: 2.32k, False: 1.07k]
  ------------------
 3109|  2.32k|      if (rindex(index) != 0) {
  ------------------
  |  Branch (3109:11): [True: 2.12k, False: 199]
  ------------------
 3110|  2.12k|        return true;
 3111|  2.12k|      }
 3112|    199|      index++;
 3113|    199|    }
 3114|  1.07k|    return false;
 3115|  3.20k|  }
_ZNK3glz10fast_float6bigint10bit_lengthEv:
 3547|  3.89k|  GLZ_FASTFLOAT_CONSTEXPR20 int bit_length() const noexcept {
 3548|  3.89k|    int lz = ctlz();
 3549|  3.89k|    return int(limb_bits * vec.len()) - lz;
 3550|  3.89k|  }
_ZNK3glz10fast_float6bigint4ctlzEv:
 3532|  3.89k|  GLZ_FASTFLOAT_CONSTEXPR20 int ctlz() const noexcept {
 3533|  3.89k|    if (vec.is_empty()) {
  ------------------
  |  Branch (3533:9): [True: 0, False: 3.89k]
  ------------------
 3534|      0|      return 0;
 3535|  3.89k|    } else {
 3536|  3.89k|#ifdef GLZ_FASTFLOAT_64BIT_LIMB
 3537|  3.89k|      return leading_zeroes(vec.rindex(0));
 3538|       |#else
 3539|       |      // no use defining a specialized leading_zeroes for a 32-bit type.
 3540|       |      uint64_t r0 = vec.rindex(0);
 3541|       |      return leading_zeroes(r0 << 32);
 3542|       |#endif
 3543|  3.89k|    }
 3544|  3.89k|  }
_ZN3glz10fast_float5roundIdZNS0_19positive_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintEiEUlRS3_iE_EEvS6_T0_:
 3707|  3.89k|                                                         callback cb) noexcept {
 3708|  3.89k|  int32_t mantissa_shift = 64 - binary_format<T>::mantissa_explicit_bits() - 1;
 3709|  3.89k|  if (-am.power2 >= mantissa_shift) {
  ------------------
  |  Branch (3709:7): [True: 0, False: 3.89k]
  ------------------
 3710|       |    // have a denormal float
 3711|      0|    int32_t shift = -am.power2 + 1;
 3712|      0|    cb(am, (std::min<int32_t>)(shift, 64));
 3713|       |    // check for round-up: if rounding-nearest carried us to the hidden bit.
 3714|      0|    am.power2 = (am.mantissa <
  ------------------
  |  Branch (3714:17): [True: 0, False: 0]
  ------------------
 3715|      0|                 (uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))
 3716|      0|                    ? 0
 3717|      0|                    : 1;
 3718|      0|    return;
 3719|      0|  }
 3720|       |
 3721|       |  // have a normal float, use the default shift.
 3722|  3.89k|  cb(am, mantissa_shift);
 3723|       |
 3724|       |  // check for carry
 3725|  3.89k|  if (am.mantissa >=
  ------------------
  |  Branch (3725:7): [True: 196, False: 3.70k]
  ------------------
 3726|  3.89k|      (uint64_t(2) << binary_format<T>::mantissa_explicit_bits())) {
 3727|    196|    am.mantissa = (uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 3728|    196|    am.power2++;
 3729|    196|  }
 3730|       |
 3731|       |  // check for infinite: we could have carried to an infinite power
 3732|  3.89k|  am.mantissa &= ~(uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 3733|  3.89k|  if (am.power2 >= binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (3733:7): [True: 0, False: 3.89k]
  ------------------
 3734|      0|    am.power2 = binary_format<T>::infinite_power();
 3735|      0|    am.mantissa = 0;
 3736|      0|  }
 3737|  3.89k|}
_ZZN3glz10fast_float19positive_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintEiENKUlRS2_iE_clES5_i:
 3951|  3.89k|  round<T>(answer, [truncated](adjusted_mantissa &a, int32_t shift) {
 3952|  3.89k|    round_nearest_tie_even(
 3953|  3.89k|        a, shift,
 3954|  3.89k|        [truncated](bool is_odd, bool is_halfway, bool is_above) -> bool {
 3955|  3.89k|          return is_above || (is_halfway && truncated) ||
 3956|  3.89k|                 (is_odd && is_halfway);
 3957|  3.89k|        });
 3958|  3.89k|  });
_ZN3glz10fast_float22round_nearest_tie_evenIZZNS0_19positive_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintEiENKUlRS3_iE_clES6_iEUlbbbE_EEvS6_iT_:
 3742|  3.89k|                       callback cb) noexcept {
 3743|  3.89k|  uint64_t const mask = (shift == 64) ? UINT64_MAX : (uint64_t(1) << shift) - 1;
  ------------------
  |  Branch (3743:25): [True: 0, False: 3.89k]
  ------------------
 3744|  3.89k|  uint64_t const halfway = (shift == 0) ? 0 : uint64_t(1) << (shift - 1);
  ------------------
  |  Branch (3744:28): [True: 0, False: 3.89k]
  ------------------
 3745|  3.89k|  uint64_t truncated_bits = am.mantissa & mask;
 3746|  3.89k|  bool is_above = truncated_bits > halfway;
 3747|  3.89k|  bool is_halfway = truncated_bits == halfway;
 3748|       |
 3749|       |  // shift digits into position
 3750|  3.89k|  if (shift == 64) {
  ------------------
  |  Branch (3750:7): [True: 0, False: 3.89k]
  ------------------
 3751|      0|    am.mantissa = 0;
 3752|  3.89k|  } else {
 3753|  3.89k|    am.mantissa >>= shift;
 3754|  3.89k|  }
 3755|  3.89k|  am.power2 += shift;
 3756|       |
 3757|  3.89k|  bool is_odd = (am.mantissa & 1) == 1;
 3758|  3.89k|  am.mantissa += uint64_t(cb(is_odd, is_halfway, is_above));
 3759|  3.89k|}
_ZZZN3glz10fast_float19positive_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintEiENKUlRS2_iE_clES5_iENKUlbbbE_clEbbb:
 3954|  3.89k|        [truncated](bool is_odd, bool is_halfway, bool is_above) -> bool {
 3955|  3.89k|          return is_above || (is_halfway && truncated) ||
  ------------------
  |  Branch (3955:18): [True: 601, False: 3.29k]
  |  Branch (3955:31): [True: 714, False: 2.58k]
  |  Branch (3955:45): [True: 480, False: 234]
  ------------------
 3956|  2.81k|                 (is_odd && is_halfway);
  ------------------
  |  Branch (3956:19): [True: 673, False: 2.14k]
  |  Branch (3956:29): [True: 15, False: 658]
  ------------------
 3957|  3.89k|        });
_ZN3glz10fast_float19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES2_i:
 3970|  9.16k|    bigint &bigmant, adjusted_mantissa am, int32_t exponent) noexcept {
 3971|  9.16k|  bigint &real_digits = bigmant;
 3972|  9.16k|  int32_t real_exp = exponent;
 3973|       |
 3974|       |  // get the value of `b`, rounded down, and get a bigint representation of b+h
 3975|  9.16k|  adjusted_mantissa am_b = am;
 3976|       |  // gcc7 buf: use a lambda to remove the noexcept qualifier bug with
 3977|       |  // -Wnoexcept-type.
 3978|  9.16k|  round<T>(am_b,
 3979|  9.16k|           [](adjusted_mantissa &a, int32_t shift) { round_down(a, shift); });
 3980|  9.16k|  T b;
 3981|  9.16k|  to_float(false, am_b, b);
 3982|  9.16k|  adjusted_mantissa theor = to_extended_halfway(b);
 3983|  9.16k|  bigint theor_digits(theor.mantissa);
 3984|  9.16k|  int32_t theor_exp = theor.power2;
 3985|       |
 3986|       |  // scale real digits and theor digits to be same power.
 3987|  9.16k|  int32_t pow2_exp = theor_exp - real_exp;
 3988|  9.16k|  uint32_t pow5_exp = uint32_t(-real_exp);
 3989|  9.16k|  if (pow5_exp != 0) {
  ------------------
  |  Branch (3989:7): [True: 9.16k, False: 0]
  ------------------
 3990|  9.16k|    GLZ_FASTFLOAT_ASSERT(theor_digits.pow5(pow5_exp));
  ------------------
  |  |  344|  9.16k|  { ((void)(x)); }
  ------------------
 3991|  9.16k|  }
 3992|  9.16k|  if (pow2_exp > 0) {
  ------------------
  |  Branch (3992:7): [True: 6.51k, False: 2.65k]
  ------------------
 3993|  6.51k|    GLZ_FASTFLOAT_ASSERT(theor_digits.pow2(uint32_t(pow2_exp)));
  ------------------
  |  |  344|  6.51k|  { ((void)(x)); }
  ------------------
 3994|  6.51k|  } else if (pow2_exp < 0) {
  ------------------
  |  Branch (3994:14): [True: 2.45k, False: 198]
  ------------------
 3995|  2.45k|    GLZ_FASTFLOAT_ASSERT(real_digits.pow2(uint32_t(-pow2_exp)));
  ------------------
  |  |  344|  2.45k|  { ((void)(x)); }
  ------------------
 3996|  2.45k|  }
 3997|       |
 3998|       |  // compare digits, and use it to director rounding
 3999|  9.16k|  int ord = real_digits.compare(theor_digits);
 4000|  9.16k|  adjusted_mantissa answer = am;
 4001|  9.16k|  round<T>(answer, [ord](adjusted_mantissa &a, int32_t shift) {
 4002|  9.16k|    round_nearest_tie_even(
 4003|  9.16k|        a, shift, [ord](bool is_odd, bool _, bool __) -> bool {
 4004|  9.16k|          (void)_;  // not needed, since we've done our comparison
 4005|  9.16k|          (void)__; // not needed, since we've done our comparison
 4006|  9.16k|          if (ord > 0) {
 4007|  9.16k|            return true;
 4008|  9.16k|          } else if (ord < 0) {
 4009|  9.16k|            return false;
 4010|  9.16k|          } else {
 4011|  9.16k|            return is_odd;
 4012|  9.16k|          }
 4013|  9.16k|        });
 4014|  9.16k|  });
 4015|       |
 4016|  9.16k|  return answer;
 4017|  9.16k|}
_ZN3glz10fast_float5roundIdZNS0_19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES3_iEUlRS3_iE_EEvS6_T0_:
 3707|  9.16k|                                                         callback cb) noexcept {
 3708|  9.16k|  int32_t mantissa_shift = 64 - binary_format<T>::mantissa_explicit_bits() - 1;
 3709|  9.16k|  if (-am.power2 >= mantissa_shift) {
  ------------------
  |  Branch (3709:7): [True: 449, False: 8.71k]
  ------------------
 3710|       |    // have a denormal float
 3711|    449|    int32_t shift = -am.power2 + 1;
 3712|    449|    cb(am, (std::min<int32_t>)(shift, 64));
 3713|       |    // check for round-up: if rounding-nearest carried us to the hidden bit.
 3714|    449|    am.power2 = (am.mantissa <
  ------------------
  |  Branch (3714:17): [True: 449, False: 0]
  ------------------
 3715|    449|                 (uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))
 3716|    449|                    ? 0
 3717|    449|                    : 1;
 3718|    449|    return;
 3719|    449|  }
 3720|       |
 3721|       |  // have a normal float, use the default shift.
 3722|  8.71k|  cb(am, mantissa_shift);
 3723|       |
 3724|       |  // check for carry
 3725|  8.71k|  if (am.mantissa >=
  ------------------
  |  Branch (3725:7): [True: 0, False: 8.71k]
  ------------------
 3726|  8.71k|      (uint64_t(2) << binary_format<T>::mantissa_explicit_bits())) {
 3727|      0|    am.mantissa = (uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 3728|      0|    am.power2++;
 3729|      0|  }
 3730|       |
 3731|       |  // check for infinite: we could have carried to an infinite power
 3732|  8.71k|  am.mantissa &= ~(uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 3733|  8.71k|  if (am.power2 >= binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (3733:7): [True: 0, False: 8.71k]
  ------------------
 3734|      0|    am.power2 = binary_format<T>::infinite_power();
 3735|      0|    am.mantissa = 0;
 3736|      0|  }
 3737|  8.71k|}
_ZZN3glz10fast_float19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES2_iENKUlRS2_iE_clES5_i:
 3979|  9.16k|           [](adjusted_mantissa &a, int32_t shift) { round_down(a, shift); });
_ZN3glz10fast_float10round_downERNS0_17adjusted_mantissaEi:
 3762|  9.16k|round_down(adjusted_mantissa &am, int32_t shift) noexcept {
 3763|  9.16k|  if (shift == 64) {
  ------------------
  |  Branch (3763:7): [True: 0, False: 9.16k]
  ------------------
 3764|      0|    am.mantissa = 0;
 3765|  9.16k|  } else {
 3766|  9.16k|    am.mantissa >>= shift;
 3767|  9.16k|  }
 3768|  9.16k|  am.power2 += shift;
 3769|  9.16k|}
_ZN3glz10fast_float19to_extended_halfwayIdEENS0_17adjusted_mantissaET_:
 3696|  9.16k|to_extended_halfway(T value) noexcept {
 3697|  9.16k|  adjusted_mantissa am = to_extended(value);
 3698|  9.16k|  am.mantissa <<= 1;
 3699|  9.16k|  am.mantissa += 1;
 3700|  9.16k|  am.power2 -= 1;
 3701|  9.16k|  return am;
 3702|  9.16k|}
_ZN3glz10fast_float11to_extendedIdEENS0_17adjusted_mantissaET_:
 3661|  9.16k|to_extended(T value) noexcept {
 3662|  9.16k|  using equiv_uint = equiv_uint_t<T>;
 3663|  9.16k|  constexpr equiv_uint exponent_mask = binary_format<T>::exponent_mask();
 3664|  9.16k|  constexpr equiv_uint mantissa_mask = binary_format<T>::mantissa_mask();
 3665|  9.16k|  constexpr equiv_uint hidden_bit_mask = binary_format<T>::hidden_bit_mask();
 3666|       |
 3667|  9.16k|  adjusted_mantissa am;
 3668|  9.16k|  int32_t bias = binary_format<T>::mantissa_explicit_bits() -
 3669|  9.16k|                 binary_format<T>::minimum_exponent();
 3670|  9.16k|  equiv_uint bits;
 3671|  9.16k|#if GLZ_FASTFLOAT_HAS_BIT_CAST
 3672|  9.16k|  bits = std::bit_cast<equiv_uint>(value);
 3673|       |#else
 3674|       |  ::memcpy(&bits, &value, sizeof(T));
 3675|       |#endif
 3676|  9.16k|  if ((bits & exponent_mask) == 0) {
  ------------------
  |  Branch (3676:7): [True: 449, False: 8.71k]
  ------------------
 3677|       |    // denormal
 3678|    449|    am.power2 = 1 - bias;
 3679|    449|    am.mantissa = bits & mantissa_mask;
 3680|  8.71k|  } else {
 3681|       |    // normal
 3682|  8.71k|    am.power2 = int32_t((bits & exponent_mask) >>
 3683|  8.71k|                        binary_format<T>::mantissa_explicit_bits());
 3684|  8.71k|    am.power2 -= bias;
 3685|  8.71k|    am.mantissa = (bits & mantissa_mask) | hidden_bit_mask;
 3686|  8.71k|  }
 3687|       |
 3688|  9.16k|  return am;
 3689|  9.16k|}
_ZN3glz10fast_float6bigintC2Em:
 3406|  9.16k|  GLZ_FASTFLOAT_CONSTEXPR20 bigint(uint64_t value) : vec() {
 3407|  9.16k|#ifdef GLZ_FASTFLOAT_64BIT_LIMB
 3408|  9.16k|    vec.push_unchecked(value);
 3409|       |#else
 3410|       |    vec.push_unchecked(uint32_t(value));
 3411|       |    vec.push_unchecked(uint32_t(value >> 32));
 3412|       |#endif
 3413|  9.16k|    vec.normalize();
 3414|  9.16k|  }
_ZNK3glz10fast_float6bigint7compareERKS1_:
 3451|  9.16k|  GLZ_FASTFLOAT_CONSTEXPR20 int compare(bigint const &other) const noexcept {
 3452|  9.16k|    if (vec.len() > other.vec.len()) {
  ------------------
  |  Branch (3452:9): [True: 0, False: 9.16k]
  ------------------
 3453|      0|      return 1;
 3454|  9.16k|    } else if (vec.len() < other.vec.len()) {
  ------------------
  |  Branch (3454:16): [True: 0, False: 9.16k]
  ------------------
 3455|      0|      return -1;
 3456|  9.16k|    } else {
 3457|  66.7k|      for (size_t index = vec.len(); index > 0; index--) {
  ------------------
  |  Branch (3457:38): [True: 65.9k, False: 781]
  ------------------
 3458|  65.9k|        limb xi = vec[index - 1];
 3459|  65.9k|        limb yi = other.vec[index - 1];
 3460|  65.9k|        if (xi > yi) {
  ------------------
  |  Branch (3460:13): [True: 4.65k, False: 61.3k]
  ------------------
 3461|  4.65k|          return 1;
 3462|  61.3k|        } else if (xi < yi) {
  ------------------
  |  Branch (3462:20): [True: 3.73k, False: 57.5k]
  ------------------
 3463|  3.73k|          return -1;
 3464|  3.73k|        }
 3465|  65.9k|      }
 3466|    781|      return 0;
 3467|  9.16k|    }
 3468|  9.16k|  }
_ZNK3glz10fast_float8stackvecILt62EEixEm:
 3022|   131k|  GLZ_FASTFLOAT_CONSTEXPR14 const limb &operator[](size_t index) const noexcept {
 3023|   131k|    GLZ_FASTFLOAT_DEBUG_ASSERT(index < length);
  ------------------
  |  |  349|   131k|  { ((void)(x)); }
  ------------------
 3024|   131k|    return data[index];
 3025|   131k|  }
_ZN3glz10fast_float5roundIdZNS0_19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES3_iEUlRS3_iE0_EEvS6_T0_:
 3707|  9.16k|                                                         callback cb) noexcept {
 3708|  9.16k|  int32_t mantissa_shift = 64 - binary_format<T>::mantissa_explicit_bits() - 1;
 3709|  9.16k|  if (-am.power2 >= mantissa_shift) {
  ------------------
  |  Branch (3709:7): [True: 449, False: 8.71k]
  ------------------
 3710|       |    // have a denormal float
 3711|    449|    int32_t shift = -am.power2 + 1;
 3712|    449|    cb(am, (std::min<int32_t>)(shift, 64));
 3713|       |    // check for round-up: if rounding-nearest carried us to the hidden bit.
 3714|    449|    am.power2 = (am.mantissa <
  ------------------
  |  Branch (3714:17): [True: 449, False: 0]
  ------------------
 3715|    449|                 (uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))
 3716|    449|                    ? 0
 3717|    449|                    : 1;
 3718|    449|    return;
 3719|    449|  }
 3720|       |
 3721|       |  // have a normal float, use the default shift.
 3722|  8.71k|  cb(am, mantissa_shift);
 3723|       |
 3724|       |  // check for carry
 3725|  8.71k|  if (am.mantissa >=
  ------------------
  |  Branch (3725:7): [True: 334, False: 8.38k]
  ------------------
 3726|  8.71k|      (uint64_t(2) << binary_format<T>::mantissa_explicit_bits())) {
 3727|    334|    am.mantissa = (uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 3728|    334|    am.power2++;
 3729|    334|  }
 3730|       |
 3731|       |  // check for infinite: we could have carried to an infinite power
 3732|  8.71k|  am.mantissa &= ~(uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 3733|  8.71k|  if (am.power2 >= binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (3733:7): [True: 0, False: 8.71k]
  ------------------
 3734|      0|    am.power2 = binary_format<T>::infinite_power();
 3735|      0|    am.mantissa = 0;
 3736|      0|  }
 3737|  8.71k|}
_ZZN3glz10fast_float19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES2_iENKUlRS2_iE0_clES5_i:
 4001|  9.16k|  round<T>(answer, [ord](adjusted_mantissa &a, int32_t shift) {
 4002|  9.16k|    round_nearest_tie_even(
 4003|  9.16k|        a, shift, [ord](bool is_odd, bool _, bool __) -> bool {
 4004|  9.16k|          (void)_;  // not needed, since we've done our comparison
 4005|  9.16k|          (void)__; // not needed, since we've done our comparison
 4006|  9.16k|          if (ord > 0) {
 4007|  9.16k|            return true;
 4008|  9.16k|          } else if (ord < 0) {
 4009|  9.16k|            return false;
 4010|  9.16k|          } else {
 4011|  9.16k|            return is_odd;
 4012|  9.16k|          }
 4013|  9.16k|        });
 4014|  9.16k|  });
_ZN3glz10fast_float22round_nearest_tie_evenIZZNS0_19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES3_iENKUlRS3_iE0_clES6_iEUlbbbE_EEvS6_iT_:
 3742|  9.16k|                       callback cb) noexcept {
 3743|  9.16k|  uint64_t const mask = (shift == 64) ? UINT64_MAX : (uint64_t(1) << shift) - 1;
  ------------------
  |  Branch (3743:25): [True: 0, False: 9.16k]
  ------------------
 3744|  9.16k|  uint64_t const halfway = (shift == 0) ? 0 : uint64_t(1) << (shift - 1);
  ------------------
  |  Branch (3744:28): [True: 0, False: 9.16k]
  ------------------
 3745|  9.16k|  uint64_t truncated_bits = am.mantissa & mask;
 3746|  9.16k|  bool is_above = truncated_bits > halfway;
 3747|  9.16k|  bool is_halfway = truncated_bits == halfway;
 3748|       |
 3749|       |  // shift digits into position
 3750|  9.16k|  if (shift == 64) {
  ------------------
  |  Branch (3750:7): [True: 0, False: 9.16k]
  ------------------
 3751|      0|    am.mantissa = 0;
 3752|  9.16k|  } else {
 3753|  9.16k|    am.mantissa >>= shift;
 3754|  9.16k|  }
 3755|  9.16k|  am.power2 += shift;
 3756|       |
 3757|  9.16k|  bool is_odd = (am.mantissa & 1) == 1;
 3758|  9.16k|  am.mantissa += uint64_t(cb(is_odd, is_halfway, is_above));
 3759|  9.16k|}
_ZZZN3glz10fast_float19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES2_iENKUlRS2_iE0_clES5_iENKUlbbbE_clEbbb:
 4003|  9.16k|        a, shift, [ord](bool is_odd, bool _, bool __) -> bool {
 4004|  9.16k|          (void)_;  // not needed, since we've done our comparison
 4005|  9.16k|          (void)__; // not needed, since we've done our comparison
 4006|  9.16k|          if (ord > 0) {
  ------------------
  |  Branch (4006:15): [True: 4.65k, False: 4.51k]
  ------------------
 4007|  4.65k|            return true;
 4008|  4.65k|          } else if (ord < 0) {
  ------------------
  |  Branch (4008:22): [True: 3.73k, False: 781]
  ------------------
 4009|  3.73k|            return false;
 4010|  3.73k|          } else {
 4011|    781|            return is_odd;
 4012|    781|          }
 4013|  9.16k|        });
_ZN3glz10fast_float8to_floatIdEEvbNS0_17adjusted_mantissaERT_:
 1131|  34.4k|to_float(bool negative, adjusted_mantissa am, T &value) {
 1132|  34.4k|  using equiv_uint = equiv_uint_t<T>;
 1133|  34.4k|  equiv_uint word = equiv_uint(am.mantissa);
 1134|  34.4k|  word = equiv_uint(word | equiv_uint(am.power2)
 1135|  34.4k|                               << binary_format<T>::mantissa_explicit_bits());
 1136|  34.4k|  word =
 1137|  34.4k|      equiv_uint(word | equiv_uint(negative) << binary_format<T>::sign_index());
 1138|  34.4k|#if GLZ_FASTFLOAT_HAS_BIT_CAST
 1139|  34.4k|  value = std::bit_cast<T>(word);
 1140|       |#else
 1141|       |  ::memcpy(&value, &word, sizeof(T));
 1142|       |#endif
 1143|  34.4k|}
_ZN3glz10fast_float13binary_formatIdE10sign_indexEv:
  758|  34.4k|template <> inline constexpr int binary_format<double>::sign_index() {
  759|  34.4k|  return 63;
  760|  34.4k|}
_ZN3glz10fast_float13binary_formatIdE14infinite_powerEv:
  750|  88.1k|template <> inline constexpr int binary_format<double>::infinite_power() {
  751|  88.1k|  return 0x7FF;
  752|  88.1k|}

jsonrpc_registry.cpp:_ZN3glz8for_eachILm4EZNS_8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS5_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_EUlTnDavE_EEvOS9_:
   27|  80.3k|   {
   28|  80.3k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|  80.3k|         else if constexpr (N == 4) {
   44|  80.3k|            lambda.template operator()<0>();
   45|  80.3k|            lambda.template operator()<1>();
   46|  80.3k|            lambda.template operator()<2>();
   47|  80.3k|            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  80.3k|      }
   55|  80.3k|   }
_ZN3glz8for_eachILm2EZNS_2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEES3_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_EUlTnmvE_EEvSK_:
   27|    139|   {
   28|    139|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|    139|         else if constexpr (N == 2) {
   35|    139|            lambda.template operator()<0>();
   36|    139|            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|    139|      }
   55|    139|   }
_ZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_m:
   86|  42.4k|   {
   87|  42.4k|      if constexpr (N > 0) {
   88|  42.4k|         assert(index < N && "glz::visit index out of range");
  ------------------
  |  Branch (88:10): [True: 42.4k, False: 0]
  |  Branch (88:10): [True: 42.4k, Folded]
  |  Branch (88:10): [True: 42.4k, False: 0]
  ------------------
   89|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   90|       |         if constexpr (N == 1) {
   91|       |            (void)index;
   92|       |            (void)(lambda.template operator()<0>());
   93|       |         }
   94|       |         else if constexpr (N == 2) {
   95|       |            switch (index) {
   96|       |            case 0:
   97|       |               lambda.template operator()<0>();
   98|       |               break;
   99|       |            case 1:
  100|       |               lambda.template operator()<1>();
  101|       |               break;
  102|       |            default:
  103|       |               std::unreachable();
  104|       |            }
  105|       |         }
  106|       |         else if constexpr (N == 3) {
  107|       |            switch (index) {
  108|       |            case 0:
  109|       |               lambda.template operator()<0>();
  110|       |               break;
  111|       |            case 1:
  112|       |               lambda.template operator()<1>();
  113|       |               break;
  114|       |            case 2:
  115|       |               lambda.template operator()<2>();
  116|       |               break;
  117|       |            default:
  118|       |               std::unreachable();
  119|       |            }
  120|       |         }
  121|       |         else if constexpr (N == 4) {
  122|       |            switch (index) {
  123|       |            case 0:
  124|       |               lambda.template operator()<0>();
  125|       |               break;
  126|       |            case 1:
  127|       |               lambda.template operator()<1>();
  128|       |               break;
  129|       |            case 2:
  130|       |               lambda.template operator()<2>();
  131|       |               break;
  132|       |            case 3:
  133|       |               lambda.template operator()<3>();
  134|       |               break;
  135|       |            default:
  136|       |               std::unreachable();
  137|       |            }
  138|       |         }
  139|       |         else if constexpr (N == 5) {
  140|       |            switch (index) {
  141|       |            case 0:
  142|       |               lambda.template operator()<0>();
  143|       |               break;
  144|       |            case 1:
  145|       |               lambda.template operator()<1>();
  146|       |               break;
  147|       |            case 2:
  148|       |               lambda.template operator()<2>();
  149|       |               break;
  150|       |            case 3:
  151|       |               lambda.template operator()<3>();
  152|       |               break;
  153|       |            case 4:
  154|       |               lambda.template operator()<4>();
  155|       |               break;
  156|       |            default:
  157|       |               std::unreachable();
  158|       |            }
  159|       |         }
  160|       |         else if constexpr (N == 6) {
  161|       |            switch (index) {
  162|       |            case 0:
  163|       |               lambda.template operator()<0>();
  164|       |               break;
  165|       |            case 1:
  166|       |               lambda.template operator()<1>();
  167|       |               break;
  168|       |            case 2:
  169|       |               lambda.template operator()<2>();
  170|       |               break;
  171|       |            case 3:
  172|       |               lambda.template operator()<3>();
  173|       |               break;
  174|       |            case 4:
  175|       |               lambda.template operator()<4>();
  176|       |               break;
  177|       |            case 5:
  178|       |               lambda.template operator()<5>();
  179|       |               break;
  180|       |            default:
  181|       |               std::unreachable();
  182|       |            }
  183|       |         }
  184|       |         else if constexpr (N == 7) {
  185|       |            switch (index) {
  186|       |            case 0:
  187|       |               lambda.template operator()<0>();
  188|       |               break;
  189|       |            case 1:
  190|       |               lambda.template operator()<1>();
  191|       |               break;
  192|       |            case 2:
  193|       |               lambda.template operator()<2>();
  194|       |               break;
  195|       |            case 3:
  196|       |               lambda.template operator()<3>();
  197|       |               break;
  198|       |            case 4:
  199|       |               lambda.template operator()<4>();
  200|       |               break;
  201|       |            case 5:
  202|       |               lambda.template operator()<5>();
  203|       |               break;
  204|       |            case 6:
  205|       |               lambda.template operator()<6>();
  206|       |               break;
  207|       |            default:
  208|       |               std::unreachable();
  209|       |            }
  210|       |         }
  211|       |         else if constexpr (N == 8) {
  212|       |            switch (index) {
  213|       |            case 0:
  214|       |               lambda.template operator()<0>();
  215|       |               break;
  216|       |            case 1:
  217|       |               lambda.template operator()<1>();
  218|       |               break;
  219|       |            case 2:
  220|       |               lambda.template operator()<2>();
  221|       |               break;
  222|       |            case 3:
  223|       |               lambda.template operator()<3>();
  224|       |               break;
  225|       |            case 4:
  226|       |               lambda.template operator()<4>();
  227|       |               break;
  228|       |            case 5:
  229|       |               lambda.template operator()<5>();
  230|       |               break;
  231|       |            case 6:
  232|       |               lambda.template operator()<6>();
  233|       |               break;
  234|       |            case 7:
  235|       |               lambda.template operator()<7>();
  236|       |               break;
  237|       |            default:
  238|       |               std::unreachable();
  239|       |            }
  240|       |         }
  241|       |         else if constexpr (N == 9) {
  242|       |            switch (index) {
  243|       |            case 0:
  244|       |               lambda.template operator()<0>();
  245|       |               break;
  246|       |            case 1:
  247|       |               lambda.template operator()<1>();
  248|       |               break;
  249|       |            case 2:
  250|       |               lambda.template operator()<2>();
  251|       |               break;
  252|       |            case 3:
  253|       |               lambda.template operator()<3>();
  254|       |               break;
  255|       |            case 4:
  256|       |               lambda.template operator()<4>();
  257|       |               break;
  258|       |            case 5:
  259|       |               lambda.template operator()<5>();
  260|       |               break;
  261|       |            case 6:
  262|       |               lambda.template operator()<6>();
  263|       |               break;
  264|       |            case 7:
  265|       |               lambda.template operator()<7>();
  266|       |               break;
  267|       |            case 8:
  268|       |               lambda.template operator()<8>();
  269|       |               break;
  270|       |            default:
  271|       |               std::unreachable();
  272|       |            }
  273|       |         }
  274|       |         else if constexpr (N == 10) {
  275|       |            switch (index) {
  276|       |            case 0:
  277|       |               lambda.template operator()<0>();
  278|       |               break;
  279|       |            case 1:
  280|       |               lambda.template operator()<1>();
  281|       |               break;
  282|       |            case 2:
  283|       |               lambda.template operator()<2>();
  284|       |               break;
  285|       |            case 3:
  286|       |               lambda.template operator()<3>();
  287|       |               break;
  288|       |            case 4:
  289|       |               lambda.template operator()<4>();
  290|       |               break;
  291|       |            case 5:
  292|       |               lambda.template operator()<5>();
  293|       |               break;
  294|       |            case 6:
  295|       |               lambda.template operator()<6>();
  296|       |               break;
  297|       |            case 7:
  298|       |               lambda.template operator()<7>();
  299|       |               break;
  300|       |            case 8:
  301|       |               lambda.template operator()<8>();
  302|       |               break;
  303|       |            case 9:
  304|       |               lambda.template operator()<9>();
  305|       |               break;
  306|       |            default:
  307|       |               std::unreachable();
  308|       |            }
  309|       |         }
  310|  42.4k|         else {
  311|       |#ifdef _MSC_VER
  312|       |            using Lambda = std::decay_t<decltype(lambda)>;
  313|       |            static const auto jump_table = []<size_t... I>(std::index_sequence<I...>) {
  314|       |               return std::array{make_jump_function<I, Lambda>()...};
  315|       |            }(std::make_index_sequence<N>{});
  316|       |#else
  317|  42.4k|            static constexpr auto jump_table = []<size_t... I>(std::index_sequence<I...>) {
  318|  42.4k|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
  319|  42.4k|            }(std::make_index_sequence<N>{});
  320|  42.4k|#endif
  321|       |
  322|  42.4k|#if defined(__clang__)
  323|  42.4k|            [[assume(index < N)]];
  324|  42.4k|#endif
  325|  42.4k|            jump_table[index](lambda);
  326|       |
  327|       |            // This code runs significantly slower on Clang
  328|       |            // Simple tests with assembly show that this should be faster,
  329|       |            // but full Glaze assembly need to be looked into
  330|       |            /*[&, index]<size_t... I>(std::index_sequence<I...>) {
  331|       |               (void)((index == I ? lambda.template operator()<I>() : void()), ...);
  332|       |            }(std::make_index_sequence<N>{});*/
  333|  42.4k|         }
  334|  42.4k|      }
  335|  42.4k|   }
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E_clESU_:
  318|  26.1k|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E0_clESU_:
  318|    146|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E1_clESU_:
  318|    935|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E2_clESU_:
  318|    821|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E3_clESU_:
  318|  7.82k|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E4_clESU_:
  318|  1.30k|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E5_clESU_:
  318|  1.41k|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E6_clESU_:
  318|  1.97k|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZN3glz8for_eachILm2EZNS_28process_variant_alternativesINSt3__17variantIJNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSC_TkNS_10is_contextERNS_7contextERPKcSL_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSO_:
   27|  1.97k|   {
   28|  1.97k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|  1.97k|         else if constexpr (N == 2) {
   35|  1.97k|            lambda.template operator()<0>();
   36|  1.97k|            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  1.97k|      }
   55|  1.97k|   }
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E7_clESU_:
  318|    508|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E8_clESU_:
  318|    444|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E9_clESU_:
  318|    440|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E10_clESU_:
  318|    332|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E11_clESU_:
  318|    226|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZN3glz8for_eachILm13EZNS_2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS3_RNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_EUlTnmvE_EEvSL_:
   27|     70|   {
   28|     70|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|     70|         else {
   50|     70|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|     70|               (void)(lambda.template operator()<I>(), ...);
   52|     70|            }(std::make_index_sequence<N>{});
   53|     70|         }
   54|     70|      }
   55|     70|   }
_ZZN3glz8for_eachILm13EZNS_2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS3_RNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_EUlTnmvE_EEvSL_ENKUlTpTnmNS8_16integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSU_:
   50|     70|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|     70|               (void)(lambda.template operator()<I>(), ...);
   52|     70|            }(std::make_index_sequence<N>{});
_ZN3glz8for_eachILm2EZNS_2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS3_RNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_EUlTnmvE_EEvSL_:
   27|    355|   {
   28|    355|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|    355|         else if constexpr (N == 2) {
   35|    355|            lambda.template operator()<0>();
   36|    355|            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|    355|      }
   55|    355|   }
_ZN3glz8for_eachILm2EZNS_2toILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS3_RNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_EUlTnmvE_EEvSL_:
   27|    116|   {
   28|    116|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|    116|         else if constexpr (N == 2) {
   35|    116|            lambda.template operator()<0>();
   36|    116|            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|    116|      }
   55|    116|   }
jsonrpc_registry.cpp:_ZN3glz8for_eachILm13EZNS_8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS5_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_EUlTnDavE_EEvOS9_:
   27|  80.3k|   {
   28|  80.3k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|  80.3k|         else {
   50|  80.3k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|  80.3k|               (void)(lambda.template operator()<I>(), ...);
   52|  80.3k|            }(std::make_index_sequence<N>{});
   53|  80.3k|         }
   54|  80.3k|      }
   55|  80.3k|   }
jsonrpc_registry.cpp:_ZZN3glz8for_eachILm13EZNS_8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS5_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_EUlTnDavE_EEvOS9_ENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSF_:
   50|  80.3k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|  80.3k|               (void)(lambda.template operator()<I>(), ...);
   52|  80.3k|            }(std::make_index_sequence<N>{});
jsonrpc_registry.cpp:_ZN3glz8for_eachILm2EZNS_8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS4_IL_ZNS5_L10empty_pathEENS6_8fuzz_apiEL_ZNS5_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS9_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS9_E11reflectableIS9_EEEvSB_EUlTnDavE_EEvOSA_:
   27|  80.3k|   {
   28|  80.3k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|  80.3k|         else if constexpr (N == 2) {
   35|  80.3k|            lambda.template operator()<0>();
   36|  80.3k|            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  80.3k|      }
   55|  80.3k|   }
jsonrpc_registry.cpp:_ZN3glz8for_eachILm2EZNS_8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS4_IL_ZNS5_L10empty_pathEENS6_8fuzz_apiEL_ZNS5_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS9_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS9_E11reflectableIS9_EEEvSB_EUlTnDavE_EEvOSA_:
   27|  80.3k|   {
   28|  80.3k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|  80.3k|         else if constexpr (N == 2) {
   35|  80.3k|            lambda.template operator()<0>();
   36|  80.3k|            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  80.3k|      }
   55|  80.3k|   }
_ZN3glz5visitILm4EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_m:
   86|   273k|   {
   87|   273k|      if constexpr (N > 0) {
   88|   273k|         assert(index < N && "glz::visit index out of range");
  ------------------
  |  Branch (88:10): [True: 273k, False: 0]
  |  Branch (88:10): [True: 273k, Folded]
  |  Branch (88:10): [True: 273k, False: 0]
  ------------------
   89|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   90|       |         if constexpr (N == 1) {
   91|       |            (void)index;
   92|       |            (void)(lambda.template operator()<0>());
   93|       |         }
   94|       |         else if constexpr (N == 2) {
   95|       |            switch (index) {
   96|       |            case 0:
   97|       |               lambda.template operator()<0>();
   98|       |               break;
   99|       |            case 1:
  100|       |               lambda.template operator()<1>();
  101|       |               break;
  102|       |            default:
  103|       |               std::unreachable();
  104|       |            }
  105|       |         }
  106|       |         else if constexpr (N == 3) {
  107|       |            switch (index) {
  108|       |            case 0:
  109|       |               lambda.template operator()<0>();
  110|       |               break;
  111|       |            case 1:
  112|       |               lambda.template operator()<1>();
  113|       |               break;
  114|       |            case 2:
  115|       |               lambda.template operator()<2>();
  116|       |               break;
  117|       |            default:
  118|       |               std::unreachable();
  119|       |            }
  120|       |         }
  121|   273k|         else if constexpr (N == 4) {
  122|   273k|            switch (index) {
  123|  75.7k|            case 0:
  ------------------
  |  Branch (123:13): [True: 75.7k, False: 197k]
  ------------------
  124|  75.7k|               lambda.template operator()<0>();
  125|  75.7k|               break;
  126|  66.4k|            case 1:
  ------------------
  |  Branch (126:13): [True: 66.4k, False: 206k]
  ------------------
  127|  66.4k|               lambda.template operator()<1>();
  128|  66.4k|               break;
  129|  46.9k|            case 2:
  ------------------
  |  Branch (129:13): [True: 46.9k, False: 226k]
  ------------------
  130|  46.9k|               lambda.template operator()<2>();
  131|  46.9k|               break;
  132|  84.1k|            case 3:
  ------------------
  |  Branch (132:13): [True: 84.1k, False: 189k]
  ------------------
  133|  84.1k|               lambda.template operator()<3>();
  134|  84.1k|               break;
  135|      0|            default:
  ------------------
  |  Branch (135:13): [True: 0, False: 273k]
  ------------------
  136|      0|               std::unreachable();
  137|   273k|            }
  138|       |         }
  139|       |         else if constexpr (N == 5) {
  140|       |            switch (index) {
  141|       |            case 0:
  142|       |               lambda.template operator()<0>();
  143|       |               break;
  144|       |            case 1:
  145|       |               lambda.template operator()<1>();
  146|       |               break;
  147|       |            case 2:
  148|       |               lambda.template operator()<2>();
  149|       |               break;
  150|       |            case 3:
  151|       |               lambda.template operator()<3>();
  152|       |               break;
  153|       |            case 4:
  154|       |               lambda.template operator()<4>();
  155|       |               break;
  156|       |            default:
  157|       |               std::unreachable();
  158|       |            }
  159|       |         }
  160|       |         else if constexpr (N == 6) {
  161|       |            switch (index) {
  162|       |            case 0:
  163|       |               lambda.template operator()<0>();
  164|       |               break;
  165|       |            case 1:
  166|       |               lambda.template operator()<1>();
  167|       |               break;
  168|       |            case 2:
  169|       |               lambda.template operator()<2>();
  170|       |               break;
  171|       |            case 3:
  172|       |               lambda.template operator()<3>();
  173|       |               break;
  174|       |            case 4:
  175|       |               lambda.template operator()<4>();
  176|       |               break;
  177|       |            case 5:
  178|       |               lambda.template operator()<5>();
  179|       |               break;
  180|       |            default:
  181|       |               std::unreachable();
  182|       |            }
  183|       |         }
  184|       |         else if constexpr (N == 7) {
  185|       |            switch (index) {
  186|       |            case 0:
  187|       |               lambda.template operator()<0>();
  188|       |               break;
  189|       |            case 1:
  190|       |               lambda.template operator()<1>();
  191|       |               break;
  192|       |            case 2:
  193|       |               lambda.template operator()<2>();
  194|       |               break;
  195|       |            case 3:
  196|       |               lambda.template operator()<3>();
  197|       |               break;
  198|       |            case 4:
  199|       |               lambda.template operator()<4>();
  200|       |               break;
  201|       |            case 5:
  202|       |               lambda.template operator()<5>();
  203|       |               break;
  204|       |            case 6:
  205|       |               lambda.template operator()<6>();
  206|       |               break;
  207|       |            default:
  208|       |               std::unreachable();
  209|       |            }
  210|       |         }
  211|       |         else if constexpr (N == 8) {
  212|       |            switch (index) {
  213|       |            case 0:
  214|       |               lambda.template operator()<0>();
  215|       |               break;
  216|       |            case 1:
  217|       |               lambda.template operator()<1>();
  218|       |               break;
  219|       |            case 2:
  220|       |               lambda.template operator()<2>();
  221|       |               break;
  222|       |            case 3:
  223|       |               lambda.template operator()<3>();
  224|       |               break;
  225|       |            case 4:
  226|       |               lambda.template operator()<4>();
  227|       |               break;
  228|       |            case 5:
  229|       |               lambda.template operator()<5>();
  230|       |               break;
  231|       |            case 6:
  232|       |               lambda.template operator()<6>();
  233|       |               break;
  234|       |            case 7:
  235|       |               lambda.template operator()<7>();
  236|       |               break;
  237|       |            default:
  238|       |               std::unreachable();
  239|       |            }
  240|       |         }
  241|       |         else if constexpr (N == 9) {
  242|       |            switch (index) {
  243|       |            case 0:
  244|       |               lambda.template operator()<0>();
  245|       |               break;
  246|       |            case 1:
  247|       |               lambda.template operator()<1>();
  248|       |               break;
  249|       |            case 2:
  250|       |               lambda.template operator()<2>();
  251|       |               break;
  252|       |            case 3:
  253|       |               lambda.template operator()<3>();
  254|       |               break;
  255|       |            case 4:
  256|       |               lambda.template operator()<4>();
  257|       |               break;
  258|       |            case 5:
  259|       |               lambda.template operator()<5>();
  260|       |               break;
  261|       |            case 6:
  262|       |               lambda.template operator()<6>();
  263|       |               break;
  264|       |            case 7:
  265|       |               lambda.template operator()<7>();
  266|       |               break;
  267|       |            case 8:
  268|       |               lambda.template operator()<8>();
  269|       |               break;
  270|       |            default:
  271|       |               std::unreachable();
  272|       |            }
  273|       |         }
  274|       |         else if constexpr (N == 10) {
  275|       |            switch (index) {
  276|       |            case 0:
  277|       |               lambda.template operator()<0>();
  278|       |               break;
  279|       |            case 1:
  280|       |               lambda.template operator()<1>();
  281|       |               break;
  282|       |            case 2:
  283|       |               lambda.template operator()<2>();
  284|       |               break;
  285|       |            case 3:
  286|       |               lambda.template operator()<3>();
  287|       |               break;
  288|       |            case 4:
  289|       |               lambda.template operator()<4>();
  290|       |               break;
  291|       |            case 5:
  292|       |               lambda.template operator()<5>();
  293|       |               break;
  294|       |            case 6:
  295|       |               lambda.template operator()<6>();
  296|       |               break;
  297|       |            case 7:
  298|       |               lambda.template operator()<7>();
  299|       |               break;
  300|       |            case 8:
  301|       |               lambda.template operator()<8>();
  302|       |               break;
  303|       |            case 9:
  304|       |               lambda.template operator()<9>();
  305|       |               break;
  306|       |            default:
  307|       |               std::unreachable();
  308|       |            }
  309|       |         }
  310|       |         else {
  311|       |#ifdef _MSC_VER
  312|       |            using Lambda = std::decay_t<decltype(lambda)>;
  313|       |            static const auto jump_table = []<size_t... I>(std::index_sequence<I...>) {
  314|       |               return std::array{make_jump_function<I, Lambda>()...};
  315|       |            }(std::make_index_sequence<N>{});
  316|       |#else
  317|       |            static constexpr auto jump_table = []<size_t... I>(std::index_sequence<I...>) {
  318|       |               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
  319|       |            }(std::make_index_sequence<N>{});
  320|       |#endif
  321|       |
  322|       |#if defined(__clang__)
  323|       |            [[assume(index < N)]];
  324|       |#endif
  325|       |            jump_table[index](lambda);
  326|       |
  327|       |            // This code runs significantly slower on Clang
  328|       |            // Simple tests with assembly show that this should be faster,
  329|       |            // but full Glaze assembly need to be looked into
  330|       |            /*[&, index]<size_t... I>(std::index_sequence<I...>) {
  331|       |               (void)((index == I ? lambda.template operator()<I>() : void()), ...);
  332|       |            }(std::make_index_sequence<N>{});*/
  333|       |         }
  334|   273k|      }
  335|   273k|   }
_ZN3glz8for_eachILm3EZNS_28process_variant_alternativesINSt3__17variantIJDnNS2_17basic_string_viewIcNS2_11char_traitsIcEEEElEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS8_TkNS_10is_contextERNS_7contextERPKcSH_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSK_:
   27|  7.25k|   {
   28|  7.25k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|  7.25k|         else if constexpr (N == 3) {
   39|  7.25k|            lambda.template operator()<0>();
   40|  7.25k|            lambda.template operator()<1>();
   41|  7.25k|            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  7.25k|      }
   55|  7.25k|   }
_ZN3glz8for_eachILm3EZNS_28process_variant_alternativesINSt3__17variantIJDnNS2_17basic_string_viewIcNS2_11char_traitsIcEEEElEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS8_TkNS_10is_contextERNS_7contextERPKcSH_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSK_:
   27|  72.2k|   {
   28|  72.2k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|  72.2k|         else if constexpr (N == 3) {
   39|  72.2k|            lambda.template operator()<0>();
   40|  72.2k|            lambda.template operator()<1>();
   41|  72.2k|            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  72.2k|      }
   55|  72.2k|   }
_ZN3glz8for_eachILm1EZNS_13get_view_jsonITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc47ELc105ELc100EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEEEEDaOT1_EUlTnmvE_EEvOT0_:
   27|  62.2k|   {
   28|  62.2k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|  62.2k|         if constexpr (N == 1) {
   32|  62.2k|            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  62.2k|      }
   55|  62.2k|   }
_ZN3glz8for_eachILm6EZNS_28process_variant_alternativesINSt3__17variantIJDndNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS7_ISE_EEEENSD_ISE_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSI_TkNS_10is_contextERNS_7contextERPKcSR_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSU_:
   27|  20.7k|   {
   28|  20.7k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|  20.7k|         else {
   50|  20.7k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|  20.7k|               (void)(lambda.template operator()<I>(), ...);
   52|  20.7k|            }(std::make_index_sequence<N>{});
   53|  20.7k|         }
   54|  20.7k|      }
   55|  20.7k|   }
_ZZN3glz8for_eachILm6EZNS_28process_variant_alternativesINSt3__17variantIJDndNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS7_ISE_EEEENSD_ISE_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSI_TkNS_10is_contextERNS_7contextERPKcSR_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSU_ENKUlTpTnmNS2_16integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5EEEEDaS12_:
   50|  20.7k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|  20.7k|               (void)(lambda.template operator()<I>(), ...);
   52|  20.7k|            }(std::make_index_sequence<N>{});
_ZN3glz8for_eachILm6EZNS_28process_variant_alternativesINSt3__17variantIJDndNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS7_ISE_EEEENSD_ISE_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSI_TkNS_10is_contextERNS_7contextERPKcSR_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSU_:
   27|   946k|   {
   28|   946k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|   946k|         else {
   50|   946k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|   946k|               (void)(lambda.template operator()<I>(), ...);
   52|   946k|            }(std::make_index_sequence<N>{});
   53|   946k|         }
   54|   946k|      }
   55|   946k|   }
_ZZN3glz8for_eachILm6EZNS_28process_variant_alternativesINSt3__17variantIJDndNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS7_ISE_EEEENSD_ISE_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSI_TkNS_10is_contextERNS_7contextERPKcSR_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSU_ENKUlTpTnmNS2_16integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5EEEEDaS12_:
   50|   946k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|   946k|               (void)(lambda.template operator()<I>(), ...);
   52|   946k|            }(std::make_index_sequence<N>{});
_ZN3glz8for_eachILm6EZNS_28process_variant_alternativesINSt3__17variantIJDndNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS7_ISE_EEEENSD_ISE_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSI_TkNS_10is_contextERNS_7contextERPKcSR_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSU_:
   27|   335k|   {
   28|   335k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|   335k|         else {
   50|   335k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|   335k|               (void)(lambda.template operator()<I>(), ...);
   52|   335k|            }(std::make_index_sequence<N>{});
   53|   335k|         }
   54|   335k|      }
   55|   335k|   }
_ZZN3glz8for_eachILm6EZNS_28process_variant_alternativesINSt3__17variantIJDndNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS7_ISE_EEEENSD_ISE_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSI_TkNS_10is_contextERNS_7contextERPKcSR_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSU_ENKUlTpTnmNS2_16integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5EEEEDaS12_:
   50|   335k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|   335k|               (void)(lambda.template operator()<I>(), ...);
   52|   335k|            }(std::make_index_sequence<N>{});

_ZN3glz10from_charsILb0EdcEENS_10fast_float19from_chars_result_tIT1_EEPKS3_S6_RT0_:
  235|  1.08M|   {
  236|  1.08M|      using namespace glz::fast_float;
  237|  1.08M|      static_assert(is_supported_float_type<T>(), "only some floating-point types are supported");
  238|  1.08M|      static_assert(is_supported_char_type<UC>(), "only char, wchar_t, char16_t and char32_t are supported");
  239|       |
  240|  1.08M|      parsed_number_string_t<UC> pns = glz::parse_number_string<null_terminated, UC>(first, last);
  241|  1.08M|      if (!pns.valid) [[unlikely]] {
  ------------------
  |  Branch (241:11): [True: 1.43k, False: 1.08M]
  ------------------
  242|  1.43k|         return {.ptr = first, .ec = std::errc::invalid_argument};
  243|  1.43k|      }
  244|       |
  245|  1.08M|      return from_chars_advanced(pns, value);
  246|  1.08M|   }
_ZN3glz19parse_number_stringILb0EcEENS_10fast_float22parsed_number_string_tIT0_EEPKS3_S6_:
   18|  1.08M|   {
   19|  1.08M|      using namespace glz::fast_float;
   20|  1.08M|      static constexpr UC decimal_point = '.';
   21|       |
   22|  1.08M|      parsed_number_string_t<UC> answer;
   23|  1.08M|      answer.valid = false;
   24|  1.08M|      answer.too_many_digits = false;
   25|  1.08M|      answer.negative = (*p == UC('-'));
   26|  1.08M|      if (*p == UC('-')) { // C++17 20.19.3.(7.1) explicitly forbids '+' sign here
  ------------------
  |  Branch (26:11): [True: 868k, False: 221k]
  ------------------
   27|   868k|         ++p;
   28|       |
   29|   868k|         if constexpr (not null_terminated) {
   30|   868k|            if (p == pend) [[unlikely]] {
  ------------------
  |  Branch (30:17): [True: 7, False: 868k]
  ------------------
   31|      7|               return answer;
   32|      7|            }
   33|   868k|         }
   34|       |
   35|   868k|         if (!glz::fast_float::is_integer(*p)) [[unlikely]] { // a sign must be followed by an integer
  ------------------
  |  Branch (35:14): [True: 39, False: 868k]
  ------------------
   36|     39|            return answer;
   37|     39|         }
   38|   868k|      }
   39|  1.08M|      UC const* const start_digits = p;
   40|       |
   41|  1.08M|      uint64_t i = 0; // an unsigned int avoids signed overflows (which are bad)
   42|       |
   43|  1.08M|      uint64_t digit;
   44|       |      if constexpr (null_terminated) {
   45|       |         while ((digit = glz::fast_float::digit_value(*p)) <= 9) {
   46|       |            // a multiplication by 10 is cheaper than an arbitrary integer
   47|       |            // multiplication
   48|       |            i = 10 * i + digit; // might overflow, we will handle the overflow later
   49|       |            ++p;
   50|       |         }
   51|       |      }
   52|  1.08M|      else {
   53|  6.97M|         while ((p != pend) && (digit = glz::fast_float::digit_value(*p)) <= 9) {
  ------------------
  |  Branch (53:17): [True: 6.96M, False: 703]
  |  Branch (53:32): [True: 5.88M, False: 1.08M]
  ------------------
   54|       |            // a multiplication by 10 is cheaper than an arbitrary integer
   55|       |            // multiplication
   56|  5.88M|            i = 10 * i + digit; // might overflow, we will handle the overflow later
   57|  5.88M|            ++p;
   58|  5.88M|         }
   59|  1.08M|      }
   60|       |
   61|  1.08M|      UC const* const end_of_integer_part = p;
   62|  1.08M|      int64_t digit_count = int64_t(end_of_integer_part - start_digits);
   63|  1.08M|      answer.integer = glz::fast_float::span<const UC>(start_digits, size_t(digit_count));
   64|       |
   65|       |      // at least 1 digit in integer part, without leading zeros
   66|  1.08M|      if (digit_count == 0 || (start_digits[0] == UC('0') && digit_count > 1)) {
  ------------------
  |  Branch (66:11): [True: 1.26k, False: 1.08M]
  |  Branch (66:32): [True: 12.2k, False: 1.07M]
  |  Branch (66:62): [True: 33, False: 12.2k]
  ------------------
   67|  1.28k|         return answer;
   68|  1.28k|      }
   69|       |
   70|  1.08M|      int64_t exponent = 0;
   71|  1.08M|      const bool has_decimal_point = [&] {
   72|  1.08M|         if constexpr (null_terminated) {
   73|  1.08M|            return (*p == decimal_point);
   74|  1.08M|         }
   75|  1.08M|         else {
   76|  1.08M|            return (p != pend) && (*p == decimal_point);
   77|  1.08M|         }
   78|  1.08M|      }();
   79|  1.08M|      if (has_decimal_point) {
  ------------------
  |  Branch (79:11): [True: 19.6k, False: 1.06M]
  ------------------
   80|  19.6k|         ++p;
   81|  19.6k|         UC const* before = p;
   82|       |         // can occur at most twice without overflowing, but let it occur more, since
   83|       |         // for integers with many digits, digit parsing is the primary bottleneck.
   84|  19.6k|         loop_parse_if_eight_digits(p, pend, i);
   85|       |
   86|       |         if constexpr (null_terminated) {
   87|       |            while ((digit = glz::fast_float::digit_value(*p)) <= 9) {
   88|       |               ++p;
   89|       |               i = i * 10 + digit; // in rare cases, this will overflow, but that's ok
   90|       |            }
   91|       |         }
   92|  19.6k|         else {
   93|  86.9k|            while ((p != pend) && (digit = glz::fast_float::digit_value(*p)) <= 9) {
  ------------------
  |  Branch (93:20): [True: 85.8k, False: 1.09k]
  |  Branch (93:35): [True: 67.3k, False: 18.5k]
  ------------------
   94|  67.3k|               ++p;
   95|  67.3k|               i = i * 10 + digit; // in rare cases, this will overflow, but that's ok
   96|  67.3k|            }
   97|  19.6k|         }
   98|  19.6k|         exponent = before - p;
   99|  19.6k|         answer.fraction = glz::fast_float::span<const UC>(before, size_t(p - before));
  100|  19.6k|         digit_count -= exponent;
  101|  19.6k|      }
  102|       |      // at least 1 digit in fractional part
  103|  1.08M|      if (has_decimal_point && exponent == 0) {
  ------------------
  |  Branch (103:11): [True: 19.6k, False: 1.06M]
  |  Branch (103:32): [True: 31, False: 19.5k]
  ------------------
  104|     31|         return answer;
  105|     31|      }
  106|       |
  107|  1.08M|      int64_t exp_number = 0; // explicit exponential part
  108|       |
  109|       |      // An exponent marker must be followed by at least one digit, after an optional sign. Unlike
  110|       |      // std::from_chars, which ends the number before a digitless marker, "1e", "1e+" and "1.0E-" are
  111|       |      // rejected: ending early would read "1.0e" as 1 wherever trailing content goes unchecked.
  112|       |      if constexpr (null_terminated) {
  113|       |         if ((UC('e') == *p) || (UC('E') == *p)) {
  114|       |            ++p;
  115|       |            bool neg_exp = false;
  116|       |            if (UC('-') == *p) {
  117|       |               neg_exp = true;
  118|       |               ++p;
  119|       |            }
  120|       |            else if (UC('+') == *p) { // '+' on exponent is allowed by C++17 20.19.3.(7.1)
  121|       |               ++p;
  122|       |            }
  123|       |            if ((digit = glz::fast_float::digit_value(*p)) > 9) [[unlikely]] {
  124|       |               return answer;
  125|       |            }
  126|       |            else {
  127|       |               do {
  128|       |                  if (exp_number < 0x10000000) {
  129|       |                     exp_number = 10 * exp_number + digit;
  130|       |                  }
  131|       |                  ++p;
  132|       |               } while ((digit = glz::fast_float::digit_value(*p)) <= 9);
  133|       |               if (neg_exp) {
  134|       |                  exp_number = -exp_number;
  135|       |               }
  136|       |               exponent += exp_number;
  137|       |            }
  138|       |         }
  139|       |      }
  140|  1.08M|      else {
  141|  1.08M|         if ((p != pend) && ((UC('e') == *p) || (UC('E') == *p))) {
  ------------------
  |  Branch (141:14): [True: 1.08M, False: 1.78k]
  |  Branch (141:30): [True: 3.44k, False: 1.08M]
  |  Branch (141:49): [True: 5.30k, False: 1.07M]
  ------------------
  142|  8.75k|            ++p;
  143|  8.75k|            bool neg_exp = false;
  144|  8.75k|            if ((p != pend) && (UC('-') == *p)) {
  ------------------
  |  Branch (144:17): [True: 8.75k, False: 6]
  |  Branch (144:32): [True: 2.01k, False: 6.73k]
  ------------------
  145|  2.01k|               neg_exp = true;
  146|  2.01k|               ++p;
  147|  2.01k|            }
  148|  6.73k|            else if ((p != pend) && (UC('+') == *p)) { // '+' on exponent is allowed by C++17 20.19.3.(7.1)
  ------------------
  |  Branch (148:22): [True: 6.73k, False: 6]
  |  Branch (148:37): [True: 202, False: 6.53k]
  ------------------
  149|    202|               ++p;
  150|    202|            }
  151|  8.75k|            if ((p == pend) || (digit = glz::fast_float::digit_value(*p)) > 9) [[unlikely]] {
  ------------------
  |  Branch (151:17): [True: 12, False: 8.74k]
  |  Branch (151:32): [True: 58, False: 8.68k]
  ------------------
  152|     70|               return answer;
  153|     70|            }
  154|  8.68k|            else {
  155|  22.3k|               do {
  156|  22.3k|                  if (exp_number < 0x10000000) {
  ------------------
  |  Branch (156:23): [True: 21.2k, False: 1.12k]
  ------------------
  157|  21.2k|                     exp_number = 10 * exp_number + digit;
  158|  21.2k|                  }
  159|  22.3k|                  ++p;
  160|  22.3k|               } while ((p != pend) && (digit = glz::fast_float::digit_value(*p)) <= 9);
  ------------------
  |  Branch (160:25): [True: 21.7k, False: 633]
  |  Branch (160:40): [True: 13.6k, False: 8.05k]
  ------------------
  161|  8.68k|               if (neg_exp) {
  ------------------
  |  Branch (161:20): [True: 2.01k, False: 6.67k]
  ------------------
  162|  2.01k|                  exp_number = -exp_number;
  163|  2.01k|               }
  164|  8.68k|               exponent += exp_number;
  165|  8.68k|            }
  166|  8.75k|         }
  167|  1.08M|      }
  168|       |
  169|  1.08M|      answer.lastmatch = p;
  170|  1.08M|      answer.valid = true;
  171|       |
  172|       |      // If we frequently had to deal with long strings of digits,
  173|       |      // we could extend our code by using a 128-bit integer instead
  174|       |      // of a 64-bit integer. However, this is uncommon.
  175|       |      //
  176|       |      // We can deal with up to 19 digits.
  177|  1.08M|      if (digit_count > 19) { // this is uncommon
  ------------------
  |  Branch (177:11): [True: 20.5k, False: 1.06M]
  ------------------
  178|       |         // It is possible that the integer had an overflow.
  179|       |         // We have to handle the case where we have 0.0000somenumber.
  180|       |         // We need to be mindful of the case where we only have zeroes...
  181|       |         // E.g., 0.000000000...000.
  182|  20.5k|         UC const* start = start_digits;
  183|       |         if constexpr (null_terminated) {
  184|       |            while ((*start == UC('0') || *start == decimal_point)) {
  185|       |               if (*start == UC('0')) {
  186|       |                  --digit_count;
  187|       |               }
  188|       |               ++start;
  189|       |            }
  190|       |         }
  191|  20.5k|         else {
  192|  4.26M|            while ((start != pend) && (*start == UC('0') || *start == decimal_point)) {
  ------------------
  |  Branch (192:20): [True: 4.26M, False: 24]
  |  Branch (192:40): [True: 4.23M, False: 24.1k]
  |  Branch (192:61): [True: 3.61k, False: 20.4k]
  ------------------
  193|  4.24M|               if (*start == UC('0')) {
  ------------------
  |  Branch (193:20): [True: 4.23M, False: 3.61k]
  ------------------
  194|  4.23M|                  --digit_count;
  195|  4.23M|               }
  196|  4.24M|               ++start;
  197|  4.24M|            }
  198|  20.5k|         }
  199|       |
  200|  20.5k|         if (digit_count > 19) {
  ------------------
  |  Branch (200:14): [True: 19.4k, False: 1.06k]
  ------------------
  201|  19.4k|            answer.too_many_digits = true;
  202|       |            // Let us start again, this time, avoiding overflows.
  203|       |            // We don't need to check if is_integer, since we use the
  204|       |            // pre-tokenized spans from above.
  205|  19.4k|            i = 0;
  206|  19.4k|            p = answer.integer.ptr;
  207|  19.4k|            UC const* int_end = p + answer.integer.len();
  208|  19.4k|            const uint64_t minimal_nineteen_digit_integer{1000000000000000000};
  209|   289k|            while ((i < minimal_nineteen_digit_integer) && (p != int_end)) {
  ------------------
  |  Branch (209:20): [True: 278k, False: 11.4k]
  |  Branch (209:60): [True: 269k, False: 8.05k]
  ------------------
  210|   269k|               i = i * 10 + uint64_t(*p - UC('0'));
  211|   269k|               ++p;
  212|   269k|            }
  213|  19.4k|            if (i >= minimal_nineteen_digit_integer) { // We have a big integers
  ------------------
  |  Branch (213:17): [True: 11.4k, False: 8.05k]
  ------------------
  214|  11.4k|               exponent = end_of_integer_part - p + exp_number;
  215|  11.4k|            }
  216|  8.05k|            else { // We have a value with a fractional component.
  217|  8.05k|               p = answer.fraction.ptr;
  218|  8.05k|               UC const* frac_end = p + answer.fraction.len();
  219|   269k|               while ((i < minimal_nineteen_digit_integer) && (p != frac_end)) {
  ------------------
  |  Branch (219:23): [True: 261k, False: 8.05k]
  |  Branch (219:63): [True: 261k, False: 0]
  ------------------
  220|   261k|                  i = i * 10 + uint64_t(*p - UC('0'));
  221|   261k|                  ++p;
  222|   261k|               }
  223|  8.05k|               exponent = answer.fraction.ptr - p + exp_number;
  224|  8.05k|            }
  225|       |            // We have now corrected both exponent and i, to a truncated value
  226|  19.4k|         }
  227|  20.5k|      }
  228|  1.08M|      answer.exponent = exponent;
  229|  1.08M|      answer.mantissa = i;
  230|  1.08M|      return answer;
  231|  1.08M|   }
_ZZN3glz19parse_number_stringILb0EcEENS_10fast_float22parsed_number_string_tIT0_EEPKS3_S6_ENKUlvE_clEv:
   71|  1.08M|      const bool has_decimal_point = [&] {
   72|       |         if constexpr (null_terminated) {
   73|       |            return (*p == decimal_point);
   74|       |         }
   75|  1.08M|         else {
   76|  1.08M|            return (p != pend) && (*p == decimal_point);
  ------------------
  |  Branch (76:20): [True: 1.08M, False: 689]
  |  Branch (76:35): [True: 19.6k, False: 1.06M]
  ------------------
   77|  1.08M|         }
   78|  1.08M|      }();

_ZN3glz8to_charsImQsr3stdE7same_asIu14__remove_cvrefIT_EmEEEPcS3_S1_:
  221|  4.33M|   {
  222|  4.33M|      using namespace itoa_impl;
  223|  4.33M|      if (val < 100000000) {
  ------------------
  |  Branch (223:11): [True: 4.33M, False: 0]
  ------------------
  224|  4.33M|         return u64_len_1_8(buf, uint32_t(val));
  225|  4.33M|      }
  226|      0|      else if (val < 10000000000000000ull) {
  ------------------
  |  Branch (226:16): [True: 0, False: 0]
  ------------------
  227|      0|         const uint64_t hgh = div_1e8(val);
  228|      0|         const uint32_t low = uint32_t(val - hgh * 100000000);
  229|      0|         buf = u64_len_1_8(buf, uint32_t(hgh));
  230|      0|         return u64_len_8(buf, low);
  231|      0|      }
  232|      0|      else {
  233|      0|         const uint64_t tmp = div_1e8(val);
  234|      0|         const uint32_t low = uint32_t(val - tmp * 100000000);
  235|      0|         const uint32_t hgh = uint32_t(tmp / 10000);
  236|      0|         const uint32_t mid = uint32_t(tmp - uint64_t(hgh) * 10000);
  237|      0|         buf = u64_len_5_8(buf, hgh);
  238|      0|         buf = u64_len_4(buf, mid);
  239|      0|         return u64_len_8(buf, low);
  240|      0|      }
  241|  4.33M|   }
_ZN3glz9itoa_impl11u64_len_1_8EPcj:
  157|  4.33M|      {
  158|  4.33M|         if (val < 100) {
  ------------------
  |  Branch (158:14): [True: 4.32M, False: 8.84k]
  ------------------
  159|  4.32M|            return u32_2(buf, val);
  160|  4.32M|         }
  161|  8.84k|         else if (val < 10000) {
  ------------------
  |  Branch (161:19): [True: 7.78k, False: 1.06k]
  ------------------
  162|  7.78k|            return u32_4(buf, val);
  163|  7.78k|         }
  164|  1.06k|         else if (val < 1000000) {
  ------------------
  |  Branch (164:19): [True: 970, False: 91]
  ------------------
  165|    970|            return u32_6(buf, val);
  166|    970|         }
  167|     91|         else {
  168|     91|            return u32_8(buf, val);
  169|     91|         }
  170|  4.33M|      }
_ZN3glz9itoa_impl5u32_2EPcj:
   74|  4.32M|      {
   75|  4.32M|         const uint32_t lz = val < 10;
   76|  4.32M|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
   77|  4.32M|         return buf + 2 - lz;
   78|  4.32M|      }
_ZN3glz9itoa_impl5u32_4EPcj:
   81|  7.78k|      {
   82|  7.78k|         const uint32_t aa = (val * 5243) >> 19; // val / 100
   83|  7.78k|         const uint32_t lz = aa < 10;
   84|  7.78k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   85|  7.78k|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
   86|  7.78k|         return buf + 4 - lz;
   87|  7.78k|      }
_ZN3glz9itoa_impl5u32_6EPcj:
   90|    970|      {
   91|    970|         const uint32_t aa = uint32_t((uint64_t(val) * 429497) >> 32); // val / 10000
   92|    970|         const uint32_t bbcc = val - aa * 10000;
   93|    970|         const uint32_t bb = (bbcc * 5243) >> 19; // bbcc / 100
   94|    970|         const uint32_t lz = aa < 10;
   95|    970|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   96|    970|         std::memcpy(buf + 2 - lz, &digit_pairs[bb], 2);
   97|    970|         std::memcpy(buf + 4 - lz, &digit_pairs[bbcc - bb * 100], 2);
   98|    970|         return buf + 6 - lz;
   99|    970|      }
_ZN3glz9itoa_impl5u32_8EPcj:
  102|     91|      {
  103|     91|         const uint32_t aabb = uint32_t((uint64_t(val) * 109951163) >> 40); // val / 10000
  104|     91|         const uint32_t ccdd = val - aabb * 10000;
  105|     91|         const uint32_t aa = (aabb * 5243) >> 19; // aabb / 100
  106|     91|         const uint32_t cc = (ccdd * 5243) >> 19; // ccdd / 100
  107|     91|         const uint32_t lz = aa < 10;
  108|     91|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  109|     91|         std::memcpy(buf + 2 - lz, &digit_pairs[aabb - aa * 100], 2);
  110|     91|         std::memcpy(buf + 4 - lz, &digit_pairs[cc], 2);
  111|     91|         std::memcpy(buf + 6 - lz, &digit_pairs[ccdd - cc * 100], 2);
  112|     91|         return buf + 8 - lz;
  113|     91|      }

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

_ZN3glz7skip_wsIXtlNS_7ws_optsEEETkNS_10is_contextERNS_7contextERPKcS5_EEbOT0_OT1_T2_:
  663|  27.8M|   {
  664|  27.8M|      using namespace glz::detail;
  665|       |
  666|  27.8M|      if constexpr (not Opts.minified) {
  667|       |         if constexpr (Opts.null_terminated) {
  668|       |            if constexpr (Opts.comments) {
  669|       |               while (whitespace_comment_table[uint8_t(*it)]) {
  670|       |                  if (*it == '/') [[unlikely]] {
  671|       |                     skip_comment(ctx, it, end);
  672|       |                     if (bool(ctx.error)) [[unlikely]] {
  673|       |                        return true;
  674|       |                     }
  675|       |                  }
  676|       |                  else [[likely]] {
  677|       |                     ++it;
  678|       |                  }
  679|       |               }
  680|       |            }
  681|       |            else {
  682|       |               while (whitespace_table[uint8_t(*it)]) {
  683|       |                  ++it;
  684|       |               }
  685|       |            }
  686|       |         }
  687|  27.8M|         else {
  688|       |            if constexpr (Opts.comments) {
  689|       |               while (it < end && whitespace_comment_table[uint8_t(*it)]) {
  690|       |                  if (*it == '/') [[unlikely]] {
  691|       |                     skip_comment(ctx, it, end);
  692|       |                     if (bool(ctx.error)) [[unlikely]] {
  693|       |                        return true;
  694|       |                     }
  695|       |                  }
  696|       |                  else [[likely]] {
  697|       |                     ++it;
  698|       |                  }
  699|       |               }
  700|       |               if (it == end) [[unlikely]] {
  701|       |                  ctx.error = error_code::end_reached;
  702|       |                  return true;
  703|       |               }
  704|       |            }
  705|  27.8M|            else {
  706|  60.5M|               while (it < end && whitespace_table[uint8_t(*it)]) {
  ------------------
  |  Branch (706:23): [True: 60.5M, False: 1.49k]
  |  Branch (706:35): [True: 32.6M, False: 27.8M]
  ------------------
  707|  32.6M|                  ++it;
  708|  32.6M|               }
  709|  27.8M|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (709:20): [True: 1.49k, False: 27.8M]
  ------------------
  710|  1.49k|                  ctx.error = error_code::end_reached;
  711|  1.49k|                  return true;
  712|  1.49k|               }
  713|  27.8M|            }
  714|  27.8M|         }
  715|       |      }
  716|       |      else if constexpr (not Opts.null_terminated) {
  717|       |         // Minified input has no whitespace to skip, but a non-null-terminated buffer can still
  718|       |         // be exhausted at this point. The non-minified branch above performs the same check; a
  719|       |         // null-terminated buffer relies on the trailing sentinel and keeps this a pure no-op.
  720|       |         if (it == end) [[unlikely]] {
  721|       |            ctx.error = error_code::end_reached;
  722|       |            return true;
  723|       |         }
  724|       |      }
  725|       |
  726|  27.8M|      return false;
  727|  27.8M|   }
_ZN3glz17match_invalid_endILc123EXtlNS_22match_invalid_end_optsEEETkNS_10is_contextENS_7contextERPKcS4_EEbRT1_OT2_T3_:
  470|   331k|   {
  471|   331k|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (471:11): [True: 142k, False: 189k]
  ------------------
  472|       |         if constexpr (C == '"') {
  473|       |            ctx.error = error_code::expected_quote;
  474|       |         }
  475|       |         else if constexpr (C == ',') {
  476|       |            ctx.error = error_code::expected_comma;
  477|       |         }
  478|       |         else if constexpr (C == ':') {
  479|       |            ctx.error = error_code::expected_colon;
  480|       |         }
  481|       |         else if constexpr (C == '[' || C == ']') {
  482|       |            ctx.error = error_code::expected_bracket;
  483|       |         }
  484|   142k|         else if constexpr (C == '{' || C == '}') {
  485|   142k|            ctx.error = error_code::expected_brace;
  486|       |         }
  487|       |         else {
  488|       |            ctx.error = error_code::syntax_error;
  489|       |         }
  490|   142k|         return true;
  491|   142k|      }
  492|   189k|      else [[likely]] {
  493|   189k|         ++it;
  494|   189k|      }
  495|   189k|      if constexpr (not Opts.null_terminated) {
  496|   189k|         if (it == end) [[unlikely]] {
  ------------------
  |  Branch (496:14): [True: 1, False: 189k]
  ------------------
  497|      1|            ctx.error = error_code::unexpected_end;
  498|      1|            return true;
  499|      1|         }
  500|   189k|      }
  501|   189k|      return false;
  502|   331k|   }
_ZN3glz17match_invalid_endILc44EXtlNS_22match_invalid_end_optsEEETkNS_10is_contextENS_7contextERPKcS4_EEbRT1_OT2_T3_:
  470|  1.50M|   {
  471|  1.50M|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (471:11): [True: 8.37k, False: 1.49M]
  ------------------
  472|       |         if constexpr (C == '"') {
  473|       |            ctx.error = error_code::expected_quote;
  474|       |         }
  475|  8.37k|         else if constexpr (C == ',') {
  476|  8.37k|            ctx.error = error_code::expected_comma;
  477|       |         }
  478|       |         else if constexpr (C == ':') {
  479|       |            ctx.error = error_code::expected_colon;
  480|       |         }
  481|       |         else if constexpr (C == '[' || C == ']') {
  482|       |            ctx.error = error_code::expected_bracket;
  483|       |         }
  484|       |         else if constexpr (C == '{' || C == '}') {
  485|       |            ctx.error = error_code::expected_brace;
  486|       |         }
  487|       |         else {
  488|       |            ctx.error = error_code::syntax_error;
  489|       |         }
  490|  8.37k|         return true;
  491|  8.37k|      }
  492|  1.49M|      else [[likely]] {
  493|  1.49M|         ++it;
  494|  1.49M|      }
  495|  1.49M|      if constexpr (not Opts.null_terminated) {
  496|  1.49M|         if (it == end) [[unlikely]] {
  ------------------
  |  Branch (496:14): [True: 1, False: 1.49M]
  ------------------
  497|      1|            ctx.error = error_code::unexpected_end;
  498|      1|            return true;
  499|      1|         }
  500|  1.49M|      }
  501|  1.49M|      return false;
  502|  1.50M|   }
_ZN3glz16skip_matching_wsIcRPKcEEvPKT_OT0_m:
  730|   874k|   {
  731|   874k|      if (length > 7) {
  ------------------
  |  Branch (731:11): [True: 755k, False: 119k]
  ------------------
  732|   755k|         uint64_t v[2];
  733|   767k|         while (length > 8) {
  ------------------
  |  Branch (733:17): [True: 87.2k, False: 680k]
  ------------------
  734|  87.2k|            std::memcpy(v, ws, 8);
  735|  87.2k|            std::memcpy(v + 1, it, 8);
  736|  87.2k|            if (v[0] != v[1]) {
  ------------------
  |  Branch (736:17): [True: 75.3k, False: 11.8k]
  ------------------
  737|  75.3k|               return;
  738|  75.3k|            }
  739|  11.8k|            length -= 8;
  740|  11.8k|            ws += 8;
  741|  11.8k|            it += 8;
  742|  11.8k|         }
  743|       |
  744|   680k|         const auto shift = 8 - length;
  745|   680k|         ws -= shift;
  746|   680k|         it -= shift;
  747|       |
  748|   680k|         std::memcpy(v, ws, 8);
  749|   680k|         std::memcpy(v + 1, it, 8);
  750|   680k|         if (v[0] != v[1]) {
  ------------------
  |  Branch (750:14): [True: 675k, False: 4.92k]
  ------------------
  751|   675k|            return;
  752|   675k|         }
  753|  4.92k|         it += 8;
  754|  4.92k|         return;
  755|   680k|      }
  756|   119k|      {
  757|   119k|         constexpr uint64_t n{sizeof(uint32_t)};
  758|   119k|         if (length >= n) {
  ------------------
  |  Branch (758:14): [True: 26.7k, False: 92.2k]
  ------------------
  759|  26.7k|            uint32_t v[2];
  760|  26.7k|            std::memcpy(v, ws, n);
  761|  26.7k|            std::memcpy(v + 1, it, n);
  762|  26.7k|            if (v[0] != v[1]) {
  ------------------
  |  Branch (762:17): [True: 21.3k, False: 5.39k]
  ------------------
  763|  21.3k|               return;
  764|  21.3k|            }
  765|  5.39k|            length -= n;
  766|  5.39k|            ws += n;
  767|  5.39k|            it += n;
  768|  5.39k|         }
  769|   119k|      }
  770|  97.6k|      {
  771|  97.6k|         constexpr uint64_t n{sizeof(uint16_t)};
  772|  97.6k|         if (length >= n) {
  ------------------
  |  Branch (772:14): [True: 46.2k, False: 51.4k]
  ------------------
  773|  46.2k|            uint16_t v[2];
  774|  46.2k|            std::memcpy(v, ws, n);
  775|  46.2k|            std::memcpy(v + 1, it, n);
  776|  46.2k|            if (v[0] != v[1]) {
  ------------------
  |  Branch (776:17): [True: 41.7k, False: 4.43k]
  ------------------
  777|  41.7k|               return;
  778|  41.7k|            }
  779|       |            // length -= n;
  780|       |            // ws += n;
  781|  4.43k|            it += n;
  782|  4.43k|         }
  783|  97.6k|      }
  784|       |      // We have to call a whitespace check after this function
  785|       |      // in case the whitespace is mismatching.
  786|       |      // So, we forgo this check as to not duplicate.
  787|       |      /*if (length && *ws == *it) {
  788|       |         ++it;
  789|       |      }*/
  790|  97.6k|   }
_ZN3glz17match_invalid_endILc58EXtlNS_22match_invalid_end_optsEEETkNS_10is_contextENS_7contextERPKcS4_EEbRT1_OT2_T3_:
  470|  2.43M|   {
  471|  2.43M|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (471:11): [True: 9.06k, False: 2.42M]
  ------------------
  472|       |         if constexpr (C == '"') {
  473|       |            ctx.error = error_code::expected_quote;
  474|       |         }
  475|       |         else if constexpr (C == ',') {
  476|       |            ctx.error = error_code::expected_comma;
  477|       |         }
  478|  9.06k|         else if constexpr (C == ':') {
  479|  9.06k|            ctx.error = error_code::expected_colon;
  480|       |         }
  481|       |         else if constexpr (C == '[' || C == ']') {
  482|       |            ctx.error = error_code::expected_bracket;
  483|       |         }
  484|       |         else if constexpr (C == '{' || C == '}') {
  485|       |            ctx.error = error_code::expected_brace;
  486|       |         }
  487|       |         else {
  488|       |            ctx.error = error_code::syntax_error;
  489|       |         }
  490|  9.06k|         return true;
  491|  9.06k|      }
  492|  2.42M|      else [[likely]] {
  493|  2.42M|         ++it;
  494|  2.42M|      }
  495|  2.42M|      if constexpr (not Opts.null_terminated) {
  496|  2.42M|         if (it == end) [[unlikely]] {
  ------------------
  |  Branch (496:14): [True: 9, False: 2.42M]
  ------------------
  497|      9|            ctx.error = error_code::unexpected_end;
  498|      9|            return true;
  499|      9|         }
  500|  2.42M|      }
  501|  2.42M|      return false;
  502|  2.43M|   }
_ZN3glz17skip_until_closedIXtlNS_22skip_until_closed_optsELb0ELb1EEELc123ELc125ELm1ETkNS_10is_contextERNS_7contextERPKcS5_QntdtT_8commentsEEvOT3_OT4_T5_:
 1325|   153k|   {
 1326|   153k|      static constexpr bool opening_not_handled = false;
 1327|   153k|      static constexpr bool skip_validation = false;
 1328|       |      // skip_validation routes skip_string through the end-bounded skip_string_view path, which
 1329|       |      // stops on `end` rather than on a sentinel, so this flag has no effect from here.
 1330|   153k|      static constexpr bool null_terminated_unused = true;
 1331|       |
 1332|   153k|      size_t depth = Depth;
 1333|       |
 1334|   153k|#if defined(GLZ_STRUCTURAL_SIMD)
 1335|   153k|      if (skip_windows<Opts, open, close>(it, end, depth)) {
  ------------------
  |  Branch (1335:11): [True: 61.9k, False: 91.5k]
  ------------------
 1336|  61.9k|         return;
 1337|  61.9k|      }
 1338|  91.5k|#endif
 1339|       |
 1340|       |      // Chunked while eight bytes remain, then a byte at a time; a padded input has room for the
 1341|       |      // load that straddles the end of the document and leaves the tail below unreachable. The
 1342|       |      // bound is a pointer so each chunk costs one compare rather than a subtract and a compare,
 1343|       |      // and is only formed once that much buffer is left for it to point into. Where it is not, the
 1344|       |      // fallback is the opening bracket, which sits before `it` and so fails the test on the first
 1345|       |      // look. Never `it` itself -- that passes, and the chunk behind it would read past `end`.
 1346|  91.5k|      const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
 1347|  91.5k|      const auto* const chunk_limit = (end - it >= scan_min) ? end - scan_min : it - 1;
  ------------------
  |  Branch (1347:39): [True: 90.9k, False: 613]
  ------------------
 1348|       |
 1349|  23.3M|      while (it <= chunk_limit) {
  ------------------
  |  Branch (1349:14): [True: 23.2M, False: 23.2k]
  ------------------
 1350|  23.2M|         uint64_t chunk;
 1351|  23.2M|         std::memcpy(&chunk, it, 8);
 1352|       |         if constexpr (std::endian::native == std::endian::big) {
 1353|       |            chunk = std::byteswap(chunk);
 1354|       |         }
 1355|  23.2M|         const uint64_t test = has_quote(chunk) | has_char<open>(chunk) | has_char<close>(chunk);
 1356|  23.2M|         if (test) {
  ------------------
  |  Branch (1356:14): [True: 2.59M, False: 20.6M]
  ------------------
 1357|  2.59M|            it += (countr_zero(test) >> 3);
 1358|       |
 1359|  2.59M|            switch (*it) {
 1360|   289k|            case '"': {
  ------------------
  |  Branch (1360:13): [True: 289k, False: 2.30M]
  ------------------
 1361|   289k|               skip_string<skip_string_opts{opening_not_handled, skip_validation, Opts.validate_utf8,
 1362|   289k|                                            null_terminated_unused}>(ctx, it, end);
 1363|   289k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1363:20): [True: 2.45k, False: 286k]
  ------------------
 1364|  2.45k|                  return;
 1365|  2.45k|               }
 1366|   286k|               break;
 1367|   289k|            }
 1368|  2.19M|            case open: {
  ------------------
  |  Branch (1368:13): [True: 2.19M, False: 398k]
  ------------------
 1369|  2.19M|               ++it;
 1370|  2.19M|               ++depth;
 1371|  2.19M|               break;
 1372|   289k|            }
 1373|   109k|            case close: {
  ------------------
  |  Branch (1373:13): [True: 109k, False: 2.48M]
  ------------------
 1374|   109k|               ++it;
 1375|   109k|               --depth;
 1376|   109k|               if (depth == 0) {
  ------------------
  |  Branch (1376:20): [True: 65.8k, False: 43.2k]
  ------------------
 1377|  65.8k|                  return;
 1378|  65.8k|               }
 1379|  43.2k|               break;
 1380|   109k|            }
 1381|  43.2k|            default: {
  ------------------
  |  Branch (1381:13): [True: 0, False: 2.59M]
  ------------------
 1382|      0|               ctx.error = error_code::unexpected_end;
 1383|      0|               return;
 1384|   109k|            }
 1385|  2.59M|            }
 1386|  2.59M|         }
 1387|  20.6M|         else {
 1388|  20.6M|            it += 8;
 1389|  20.6M|         }
 1390|  23.2M|      }
 1391|       |
 1392|       |      // Tail end of buffer. Should be rare we even get here
 1393|  38.4k|      while (it < end) {
  ------------------
  |  Branch (1393:14): [True: 37.6k, False: 728]
  ------------------
 1394|  37.6k|         switch (*it) {
 1395|  6.79k|         case '"': {
  ------------------
  |  Branch (1395:10): [True: 6.79k, False: 30.9k]
  ------------------
 1396|  6.79k|            skip_string<skip_string_opts{opening_not_handled, skip_validation, Opts.validate_utf8,
 1397|  6.79k|                                         null_terminated_unused}>(ctx, it, end);
 1398|  6.79k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1398:17): [True: 904, False: 5.88k]
  ------------------
 1399|    904|               return;
 1400|    904|            }
 1401|  5.88k|            break;
 1402|  6.79k|         }
 1403|  5.88k|         case open: {
  ------------------
  |  Branch (1403:10): [True: 282, False: 37.4k]
  ------------------
 1404|    282|            ++it;
 1405|    282|            ++depth;
 1406|    282|            break;
 1407|  6.79k|         }
 1408|  22.5k|         case close: {
  ------------------
  |  Branch (1408:10): [True: 22.5k, False: 15.1k]
  ------------------
 1409|  22.5k|            ++it;
 1410|  22.5k|            --depth;
 1411|  22.5k|            if (depth == 0) {
  ------------------
  |  Branch (1411:17): [True: 21.5k, False: 926]
  ------------------
 1412|  21.5k|               return;
 1413|  21.5k|            }
 1414|    926|            break;
 1415|  22.5k|         }
 1416|  8.11k|         default: {
  ------------------
  |  Branch (1416:10): [True: 8.11k, False: 29.5k]
  ------------------
 1417|  8.11k|            ++it;
 1418|  8.11k|         }
 1419|  37.6k|         }
 1420|  37.6k|      }
 1421|       |
 1422|    728|      ctx.error = error_code::unexpected_end;
 1423|    728|   }
_ZN3glz12skip_windowsIXtlNS_22skip_until_closed_optsELb0ELb1EEELc123ELc125ERPKcS3_EEbOT2_T3_Rm:
 1243|   153k|   {
 1244|   153k|      uint64_t escape_carry{};
 1245|   153k|      uint64_t in_string_carry{}; // all ones while the next window opens inside a string
 1246|   153k|      auto string_open = it; // opening quote of the string still open, when there is one
 1247|       |
 1248|  2.52M|      while (end - it >= 64) {
  ------------------
  |  Branch (1248:14): [True: 2.44M, False: 86.4k]
  ------------------
 1249|  2.44M|         const auto w = detail::structural::load_window(it, Open, Close);
 1250|       |
 1251|  2.44M|         if constexpr (Opts.validate_utf8) {
 1252|  2.44M|            if (w.non_ascii) [[unlikely]] {
  ------------------
  |  Branch (1252:17): [True: 41.5k, False: 2.39M]
  ------------------
 1253|  41.5k|               if (in_string_carry) {
  ------------------
  |  Branch (1253:20): [True: 2.02k, False: 39.5k]
  ------------------
 1254|  2.02k|                  it = string_open;
 1255|  2.02k|               }
 1256|  41.5k|               return false;
 1257|  41.5k|            }
 1258|  2.44M|         }
 1259|       |
 1260|  2.39M|         const uint64_t escaped = escaped_mask(w.backslash, escape_carry);
 1261|  2.44M|         const uint64_t quote = w.quote & ~escaped;
 1262|  2.44M|         const uint64_t in_string = prefix_xor(quote) ^ in_string_carry;
 1263|       |
 1264|       |         // A backslash outside a string cannot occur in JSON, and the parity above takes it at
 1265|       |         // face value: it cancels the next quote, and every byte after that is on the wrong side
 1266|       |         // of the string boundary for the rest of the document. The byte scan reaches a backslash
 1267|       |         // only through a string, so it does not make that mistake, and a malformed document must
 1268|       |         // not be read one way here and another way on a target without these masks. Hand it over
 1269|       |         // instead. The test is exact where it has to be -- at the first stray backslash nothing
 1270|       |         // has diverged yet, so `in_string` is still right about it -- and anything it flags later
 1271|       |         // only costs a window.
 1272|  2.44M|         if (w.backslash & ~in_string) [[unlikely]] {
  ------------------
  |  Branch (1272:14): [True: 5.10k, False: 2.43M]
  ------------------
 1273|  5.10k|            if (in_string_carry) {
  ------------------
  |  Branch (1273:17): [True: 597, False: 4.51k]
  ------------------
 1274|    597|               it = string_open;
 1275|    597|            }
 1276|  5.10k|            return false;
 1277|  5.10k|         }
 1278|       |
 1279|  2.43M|         in_string_carry = uint64_t(int64_t(in_string) >> 63); // sign extend the last byte's state
 1280|  2.43M|         if (in_string_carry && quote) {
  ------------------
  |  Branch (1280:14): [True: 1.09M, False: 1.33M]
  |  Branch (1280:33): [True: 50.2k, False: 1.04M]
  ------------------
 1281|       |            // Ending inside a string means the window's last unescaped quote opened it.
 1282|  50.2k|            string_open = it + (63 - std::countl_zero(quote));
 1283|  50.2k|         }
 1284|       |
 1285|  2.43M|         const uint64_t opens = w.open & ~in_string;
 1286|  2.43M|         const uint64_t closes = w.close & ~in_string;
 1287|       |
 1288|       |         // Every close in the window drops the depth by one at most, so a depth above that count
 1289|       |         // cannot reach zero anywhere inside it and the net change is all that matters.
 1290|  2.43M|         if (depth > size_t(std::popcount(closes))) {
  ------------------
  |  Branch (1290:14): [True: 2.32M, False: 106k]
  ------------------
 1291|  2.32M|            depth += size_t(std::popcount(opens));
 1292|  2.32M|            depth -= size_t(std::popcount(closes));
 1293|  2.32M|            it += 64;
 1294|  2.32M|            continue;
 1295|  2.32M|         }
 1296|       |
 1297|   106k|         uint64_t brackets = opens | closes;
 1298|   139k|         while (brackets) {
  ------------------
  |  Branch (1298:17): [True: 94.8k, False: 44.9k]
  ------------------
 1299|  94.8k|            const auto i = countr_zero(brackets);
 1300|  94.8k|            brackets &= brackets - 1;
 1301|  94.8k|            if ((closes >> i) & 1) {
  ------------------
  |  Branch (1301:17): [True: 78.8k, False: 16.0k]
  ------------------
 1302|  78.8k|               --depth;
 1303|  78.8k|               if (depth == 0) {
  ------------------
  |  Branch (1303:20): [True: 61.9k, False: 16.9k]
  ------------------
 1304|  61.9k|                  it += i + 1;
 1305|  61.9k|                  return true;
 1306|  61.9k|               }
 1307|  78.8k|            }
 1308|  16.0k|            else {
 1309|  16.0k|               ++depth;
 1310|  16.0k|            }
 1311|  94.8k|         }
 1312|  44.9k|         it += 64;
 1313|  44.9k|      }
 1314|       |
 1315|  86.4k|      if (in_string_carry) {
  ------------------
  |  Branch (1315:11): [True: 3.33k, False: 83.0k]
  ------------------
 1316|  3.33k|         it = string_open;
 1317|  3.33k|      }
 1318|  86.4k|      return false;
 1319|   153k|   }
_ZN3glz12escaped_maskEmRm:
 1215|  2.91M|   {
 1216|  2.91M|      if (backslash == 0) {
  ------------------
  |  Branch (1216:11): [True: 2.85M, False: 65.1k]
  ------------------
 1217|  2.85M|         const uint64_t escaped = carry;
 1218|  2.85M|         carry = 0;
 1219|  2.85M|         return escaped;
 1220|  2.85M|      }
 1221|  65.1k|      backslash &= ~carry;
 1222|  65.1k|      const uint64_t follows_escape = (backslash << 1) | carry;
 1223|  65.1k|      constexpr uint64_t even_bits = 0x5555555555555555ull;
 1224|  65.1k|      const uint64_t odd_starts = backslash & ~even_bits & ~follows_escape;
 1225|  65.1k|      const uint64_t even_sequences = odd_starts + backslash;
 1226|  65.1k|      carry = uint64_t(even_sequences < odd_starts); // unsigned wraparound is the run crossing over
 1227|  65.1k|      return (even_bits ^ (even_sequences << 1)) & follows_escape;
 1228|  2.91M|   }
_ZN3glz10prefix_xorEm:
 1200|  2.91M|   {
 1201|  2.91M|      x ^= x << 1;
 1202|  2.91M|      x ^= x << 2;
 1203|  2.91M|      x ^= x << 4;
 1204|  2.91M|      x ^= x << 8;
 1205|  2.91M|      x ^= x << 16;
 1206|  2.91M|      x ^= x << 32;
 1207|  2.91M|      return x;
 1208|  2.91M|   }
_ZN3glz9chunk_minILm8EEElb:
   47|  3.23M|   {
   48|  3.23M|      static_assert(Width <= padding_bytes);
   49|  3.23M|      return padded ? 1 : std::ptrdiff_t(Width);
  ------------------
  |  Branch (49:14): [True: 0, False: 3.23M]
  ------------------
   50|  3.23M|   }
_ZN3glz11skip_stringIXtlNS_16skip_string_optsELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS5_EEvOT0_OT1_T2_:
 1012|   372k|   {
 1013|   372k|      if constexpr (not Opts.opening_handled) {
 1014|   372k|         ++it;
 1015|   372k|      }
 1016|       |
 1017|   372k|      const auto* const utf8_start = it;
 1018|       |
 1019|       |      if constexpr (Opts.validate_skipped) {
 1020|       |         // The bound as a pointer, so each chunk costs one compare. `end - scan_min` is only a
 1021|       |         // pointer into the buffer once at least that much of it is left, and a string can start
 1022|       |         // within a few bytes of the end; where it is not, the fallback is the opening quote, which
 1023|       |         // sits before `it` and so fails the test on the first look. Never `it` itself -- that
 1024|       |         // passes, and the chunk behind it would read past the end of the buffer.
 1025|       |         const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
 1026|       |         const auto* const chunk_limit = (end - it >= scan_min) ? end - scan_min : it - 1;
 1027|       |
 1028|       |         while (it <= chunk_limit) {
 1029|       |            uint64_t swar;
 1030|       |            std::memcpy(&swar, it, 8);
 1031|       |            if constexpr (std::endian::native == std::endian::big) {
 1032|       |               swar = std::byteswap(swar);
 1033|       |            }
 1034|       |
 1035|       |            constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1036|       |            const uint64_t lo7 = swar & lo7_mask;
 1037|       |            const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1038|       |            const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1039|       |            const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1040|       |            uint64_t next = ~((backslash & quote & less_32) | swar);
 1041|       |            next &= repeat_byte8(0b10000000);
 1042|       |
 1043|       |            if (next == 0) {
 1044|       |               // No special characters in this chunk
 1045|       |               it += 8;
 1046|       |               continue;
 1047|       |            }
 1048|       |
 1049|       |            // Find the first occurrence
 1050|       |            size_t offset = (countr_zero(next) >> 3);
 1051|       |            it += offset;
 1052|       |
 1053|       |            const auto c = *it;
 1054|       |            if ((c & 0b11100000) == 0) [[unlikely]] {
 1055|       |               // Invalid control character (<0x20)
 1056|       |               ctx.error = error_code::syntax_error;
 1057|       |               return;
 1058|       |            }
 1059|       |            else if (c == '"') {
 1060|       |               // Check if this quote is escaped
 1061|       |               const auto* p = it - 1;
 1062|       |               int backslash_count{};
 1063|       |               // We don't have to worry about rewinding too far because we started with a quote
 1064|       |               while (*p == '\\') {
 1065|       |                  ++backslash_count;
 1066|       |                  --p;
 1067|       |               }
 1068|       |               if ((backslash_count & 1) == 0) {
 1069|       |                  // Even number of backslashes => not escaped => closing quote found
 1070|       |                  validate_utf8_span<Opts>(ctx, utf8_start, it);
 1071|       |                  ++it;
 1072|       |                  return;
 1073|       |               }
 1074|       |               else {
 1075|       |                  // Odd number of backslashes => escaped quote
 1076|       |                  ++it;
 1077|       |                  continue;
 1078|       |               }
 1079|       |            }
 1080|       |            else if (c == '\\') {
 1081|       |               // Handle escape sequence
 1082|       |               ++it;
 1083|       |
 1084|       |               // The backslash can be the last byte the chunk covers, which lands `it` on `end`.
 1085|       |               // A null-terminated buffer answers that read with its terminator, which the escape
 1086|       |               // table below rejects; a bounded one has nothing there to read.
 1087|       |               if constexpr (not Opts.null_terminated) {
 1088|       |                  if (it == end) [[unlikely]] {
 1089|       |                     ctx.error = error_code::unexpected_end;
 1090|       |                     return;
 1091|       |                  }
 1092|       |               }
 1093|       |
 1094|       |               if (*it == 'u') {
 1095|       |                  ++it;
 1096|       |                  if (not skip_unicode_code_point(it, end)) [[unlikely]] {
 1097|       |                     ctx.error = error_code::unicode_escape_conversion_failure;
 1098|       |                     return;
 1099|       |                  }
 1100|       |               }
 1101|       |               else {
 1102|       |                  if (not char_unescape_table[uint8_t(*it)]) [[unlikely]] {
 1103|       |                     ctx.error = error_code::invalid_escape;
 1104|       |                     return;
 1105|       |                  }
 1106|       |                  ++it;
 1107|       |               }
 1108|       |            }
 1109|       |         }
 1110|       |
 1111|       |         while (true) {
 1112|       |            // A null-terminated buffer terminates on the trailing '\0' (caught by the control
 1113|       |            // character check below); a non-null-terminated buffer has no sentinel, so bound the
 1114|       |            // scan before each dereference.
 1115|       |            if constexpr (not Opts.null_terminated) {
 1116|       |               if (it == end) [[unlikely]] {
 1117|       |                  ctx.error = error_code::unexpected_end;
 1118|       |                  return;
 1119|       |               }
 1120|       |            }
 1121|       |            if ((*it & 0b11100000) == 0) [[unlikely]] {
 1122|       |               ctx.error = error_code::syntax_error;
 1123|       |               return;
 1124|       |            }
 1125|       |
 1126|       |            switch (*it) {
 1127|       |            case '"': {
 1128|       |               validate_utf8_span<Opts>(ctx, utf8_start, it);
 1129|       |               ++it;
 1130|       |               return;
 1131|       |            }
 1132|       |            case '\\': {
 1133|       |               ++it;
 1134|       |               if constexpr (not Opts.null_terminated) {
 1135|       |                  if (it == end) [[unlikely]] {
 1136|       |                     ctx.error = error_code::unexpected_end;
 1137|       |                     return;
 1138|       |                  }
 1139|       |               }
 1140|       |               if (char_unescape_table[uint8_t(*it)]) {
 1141|       |                  ++it;
 1142|       |                  continue;
 1143|       |               }
 1144|       |               else if (*it == 'u') {
 1145|       |                  ++it;
 1146|       |                  if (skip_unicode_code_point(it, end)) [[likely]] {
 1147|       |                     continue;
 1148|       |                  }
 1149|       |                  else [[unlikely]] {
 1150|       |                     ctx.error = error_code::unicode_escape_conversion_failure;
 1151|       |                     return;
 1152|       |                  }
 1153|       |               }
 1154|       |               // Same code the chunked loop above reports. Both loops run over one buffer now, so
 1155|       |               // an escape that lands in the last few bytes must be diagnosed the same as one that
 1156|       |               // does not.
 1157|       |               ctx.error = error_code::invalid_escape;
 1158|       |               return;
 1159|       |            }
 1160|       |            }
 1161|       |            ++it;
 1162|       |         }
 1163|       |      }
 1164|   372k|      else {
 1165|   372k|         uint64_t ascii_acc{};
 1166|   372k|         skip_string_view(ctx, it, end, ascii_acc);
 1167|   372k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1167:14): [True: 2.71k, False: 370k]
  ------------------
 1168|  2.71k|            return;
 1169|  2.71k|         }
 1170|   370k|         if (validate_utf8_span<Opts>(ctx, utf8_start, it, ascii_acc)) [[unlikely]] {
  ------------------
  |  Branch (1170:14): [True: 1.91k, False: 368k]
  ------------------
 1171|  1.91k|            return;
 1172|  1.91k|         }
 1173|   368k|         ++it; // skip the quote
 1174|   368k|      }
 1175|   372k|   }
_ZN3glz16skip_string_viewITkNS_10is_contextERNS_7contextERPKcS4_EEvOT_OT0_T1_Rm:
  910|   600k|   {
  911|       |      // The bound as a pointer, so each chunk costs one compare rather than a subtract and a
  912|       |      // compare. `end - 8` is only a pointer into the buffer once eight bytes are left; where they
  913|       |      // are not, the fallback is the opening quote, which sits before `it` and so fails the test on
  914|       |      // the first look. Never `it` itself -- that passes, and the chunk behind it would read past
  915|       |      // `end`. Reading eight at a time never passes `end`, so this is safe on buffers that are
  916|       |      // neither padded nor null terminated.
  917|   600k|      const auto* const chunk_limit = (end - it >= 8) ? end - 8 : it - 1;
  ------------------
  |  Branch (917:39): [True: 565k, False: 34.5k]
  ------------------
  918|  34.1M|      while (it <= chunk_limit) {
  ------------------
  |  Branch (918:14): [True: 34.1M, False: 44.7k]
  ------------------
  919|  34.1M|         uint64_t chunk;
  920|  34.1M|         std::memcpy(&chunk, it, 8);
  921|       |         if constexpr (std::endian::native == std::endian::big) {
  922|       |            chunk = std::byteswap(chunk);
  923|       |         }
  924|  34.1M|         const uint64_t test = has_quote(chunk);
  925|  34.1M|         if (test) [[unlikely]] {
  ------------------
  |  Branch (925:14): [True: 601k, False: 33.5M]
  ------------------
  926|   601k|            const size_t offset = size_t(countr_zero(test)) >> 3;
  927|       |            // Only bytes up to and including the quote belong to the string. Masking the rest off
  928|       |            // keeps a non-ASCII byte in whatever follows from forcing a needless validation pass.
  929|   601k|            ascii_acc |= chunk & (~uint64_t(0) >> (56 - 8 * offset));
  930|   601k|            it += offset;
  931|   601k|            auto* prev = it - 1;
  932|   758k|            while (*prev == '\\') {
  ------------------
  |  Branch (932:20): [True: 157k, False: 601k]
  ------------------
  933|   157k|               --prev;
  934|   157k|            }
  935|   601k|            if (size_t(it - prev) % 2) {
  ------------------
  |  Branch (935:17): [True: 555k, False: 45.8k]
  ------------------
  936|   555k|               return;
  937|   555k|            }
  938|  45.8k|            ++it; // skip the escaped quote
  939|  45.8k|         }
  940|  33.5M|         else {
  941|  33.5M|            ascii_acc |= chunk;
  942|  33.5M|            it += 8;
  943|  33.5M|         }
  944|  34.1M|      }
  945|       |
  946|       |      // Fewer than eight bytes left in the buffer, so finish one at a time.
  947|   141k|      while (it < end) {
  ------------------
  |  Branch (947:14): [True: 138k, False: 2.86k]
  ------------------
  948|   138k|         ascii_acc |= uint64_t(uint8_t(*it));
  949|   138k|         if (*it == '"') {
  ------------------
  |  Branch (949:14): [True: 45.9k, False: 92.3k]
  ------------------
  950|  45.9k|            auto* prev = it - 1;
  951|  58.8k|            while (*prev == '\\') {
  ------------------
  |  Branch (951:20): [True: 12.9k, False: 45.9k]
  ------------------
  952|  12.9k|               --prev;
  953|  12.9k|            }
  954|  45.9k|            if (size_t(it - prev) % 2) {
  ------------------
  |  Branch (954:17): [True: 41.9k, False: 4.00k]
  ------------------
  955|  41.9k|               return;
  956|  41.9k|            }
  957|  45.9k|         }
  958|  96.3k|         ++it;
  959|  96.3k|      }
  960|       |
  961|  2.86k|      ctx.error = error_code::expected_quote;
  962|  2.86k|   }
_ZN3glz18validate_utf8_spanITnDaXtlNS_16skip_string_optsELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEccEEbOT0_PKT1_PKT2_m:
  873|   370k|   {
  874|       |      if constexpr (not check_validate_utf8(Opts)) {
  875|       |         // Everything the caller computed for us is dead, which lets its scan loop drop the
  876|       |         // accumulator entirely.
  877|       |         (void)ctx, (void)start, (void)fin, (void)ascii_acc;
  878|       |         return false;
  879|       |      }
  880|   370k|      else {
  881|   370k|         if ((ascii_acc & repeat_byte8(0b10000000)) == 0) {
  ------------------
  |  Branch (881:14): [True: 347k, False: 22.4k]
  ------------------
  882|   347k|            return false; // pure ASCII is trivially well formed UTF-8
  883|   347k|         }
  884|  22.4k|         if (!validate_utf8(start, size_t(fin - start))) [[unlikely]] {
  ------------------
  |  Branch (884:14): [True: 1.91k, False: 20.5k]
  ------------------
  885|  1.91k|            ctx.error = error_code::invalid_utf8;
  886|  1.91k|            return true;
  887|  1.91k|         }
  888|  20.5k|         return false;
  889|  22.4k|      }
  890|   370k|   }
_ZN3glz13validate_utf8IcEEbPKT_m:
  842|   451k|   {
  843|   451k|      const uint8_t* it = reinterpret_cast<const uint8_t*>(str);
  844|   451k|      const uint8_t* const end = it + size;
  845|       |#if defined(GLZ_UTF8_SIMD)
  846|       |      // 16 is a measured compromise, not a register-size coincidence. The scalar path skips ASCII 8
  847|       |      // bytes at a time, so on ASCII it stays ahead of the vector path's fixed setup cost until the
  848|       |      // input is long enough for the 64 byte ASCII step to engage; on non-ASCII the vector path
  849|       |      // wins from roughly 8 bytes. Raising the threshold buys a few percent on short ASCII and
  850|       |      // costs up to 2.3x on mid length non-ASCII strings, so it stays low.
  851|       |      if (size >= 16) {
  852|       |         return detail::utf8_simd::validate(it, end);
  853|       |      }
  854|       |#endif
  855|   451k|      return validate_utf8_scalar(it, end);
  856|   451k|   }
_ZN3glz20validate_utf8_scalarEPKhS1_:
  793|   451k|   {
  794|  34.9M|      while (it < end) {
  ------------------
  |  Branch (794:14): [True: 34.4M, False: 432k]
  ------------------
  795|       |         // Optimistic SWAR check for ASCII
  796|  34.4M|         if (it + 8 <= end) {
  ------------------
  |  Branch (796:14): [True: 33.1M, False: 1.38M]
  ------------------
  797|  33.1M|            uint64_t chunk;
  798|  33.1M|            std::memcpy(&chunk, it, 8);
  799|  33.1M|            if ((chunk & glz::repeat_byte8(0x80)) == 0) {
  ------------------
  |  Branch (799:17): [True: 31.9M, False: 1.14M]
  ------------------
  800|  31.9M|               it += 8;
  801|  31.9M|               continue;
  802|  31.9M|            }
  803|  33.1M|         }
  804|       |
  805|       |         // Byte-by-byte validation (standard conformant)
  806|  2.52M|         uint8_t byte = *it;
  807|       |
  808|  2.52M|         if (byte < 0x80) {
  ------------------
  |  Branch (808:14): [True: 2.15M, False: 364k]
  ------------------
  809|  2.15M|            it++;
  810|  2.15M|         }
  811|   364k|         else if ((byte & 0xE0) == 0xC0) {
  ------------------
  |  Branch (811:19): [True: 153k, False: 210k]
  ------------------
  812|       |            // 2-byte sequence
  813|   153k|            if (it + 2 > end || (it[1] & 0xC0) != 0x80) return false;
  ------------------
  |  Branch (813:17): [True: 64, False: 153k]
  |  Branch (813:33): [True: 3.66k, False: 150k]
  ------------------
  814|   150k|            if (byte < 0xC2) return false; // Overlong
  ------------------
  |  Branch (814:17): [True: 180, False: 150k]
  ------------------
  815|   150k|            it += 2;
  816|   150k|         }
  817|   210k|         else if ((byte & 0xF0) == 0xE0) {
  ------------------
  |  Branch (817:19): [True: 105k, False: 105k]
  ------------------
  818|       |            // 3-byte sequence
  819|   105k|            if (it + 3 > end || (it[1] & 0xC0) != 0x80 || (it[2] & 0xC0) != 0x80) return false;
  ------------------
  |  Branch (819:17): [True: 81, False: 105k]
  |  Branch (819:33): [True: 1.41k, False: 103k]
  |  Branch (819:59): [True: 456, False: 103k]
  ------------------
  820|   103k|            if (byte == 0xE0 && it[1] < 0xA0) return false; // Overlong
  ------------------
  |  Branch (820:17): [True: 30.5k, False: 72.8k]
  |  Branch (820:33): [True: 190, False: 30.3k]
  ------------------
  821|   103k|            if (byte == 0xED && it[1] >= 0xA0) return false; // Surrogate
  ------------------
  |  Branch (821:17): [True: 35.7k, False: 67.5k]
  |  Branch (821:33): [True: 159, False: 35.5k]
  ------------------
  822|   103k|            it += 3;
  823|   103k|         }
  824|   105k|         else if ((byte & 0xF8) == 0xF0) {
  ------------------
  |  Branch (824:19): [True: 96.2k, False: 9.02k]
  ------------------
  825|       |            // 4-byte sequence
  826|  96.2k|            if (it + 4 > end || (it[1] & 0xC0) != 0x80 || (it[2] & 0xC0) != 0x80 || (it[3] & 0xC0) != 0x80)
  ------------------
  |  Branch (826:17): [True: 93, False: 96.1k]
  |  Branch (826:33): [True: 2.09k, False: 94.0k]
  |  Branch (826:59): [True: 411, False: 93.6k]
  |  Branch (826:85): [True: 387, False: 93.2k]
  ------------------
  827|  2.98k|               return false;
  828|  93.2k|            if (byte == 0xF0 && it[1] < 0x90) return false; // Overlong
  ------------------
  |  Branch (828:17): [True: 35.5k, False: 57.7k]
  |  Branch (828:33): [True: 221, False: 35.3k]
  ------------------
  829|  93.0k|            if (byte == 0xF4 && it[1] >= 0x90) return false; // > U+10FFFF
  ------------------
  |  Branch (829:17): [True: 44.3k, False: 48.6k]
  |  Branch (829:33): [True: 136, False: 44.2k]
  ------------------
  830|  92.9k|            if (byte > 0xF4) return false; // > U+10FFFF
  ------------------
  |  Branch (830:17): [True: 162, False: 92.7k]
  ------------------
  831|  92.7k|            it += 4;
  832|  92.7k|         }
  833|  9.02k|         else {
  834|  9.02k|            return false;
  835|  9.02k|         }
  836|  2.52M|      }
  837|       |
  838|   432k|      return true;
  839|   451k|   }
_ZN3glz17skip_until_closedIXtlNS_22skip_until_closed_optsELb0ELb1EEELc91ELc93ELm1ETkNS_10is_contextERNS_7contextERPKcS5_QntdtT_8commentsEEvOT3_OT4_T5_:
 1325|  28.0k|   {
 1326|  28.0k|      static constexpr bool opening_not_handled = false;
 1327|  28.0k|      static constexpr bool skip_validation = false;
 1328|       |      // skip_validation routes skip_string through the end-bounded skip_string_view path, which
 1329|       |      // stops on `end` rather than on a sentinel, so this flag has no effect from here.
 1330|  28.0k|      static constexpr bool null_terminated_unused = true;
 1331|       |
 1332|  28.0k|      size_t depth = Depth;
 1333|       |
 1334|  28.0k|#if defined(GLZ_STRUCTURAL_SIMD)
 1335|  28.0k|      if (skip_windows<Opts, open, close>(it, end, depth)) {
  ------------------
  |  Branch (1335:11): [True: 9.44k, False: 18.6k]
  ------------------
 1336|  9.44k|         return;
 1337|  9.44k|      }
 1338|  18.6k|#endif
 1339|       |
 1340|       |      // Chunked while eight bytes remain, then a byte at a time; a padded input has room for the
 1341|       |      // load that straddles the end of the document and leaves the tail below unreachable. The
 1342|       |      // bound is a pointer so each chunk costs one compare rather than a subtract and a compare,
 1343|       |      // and is only formed once that much buffer is left for it to point into. Where it is not, the
 1344|       |      // fallback is the opening bracket, which sits before `it` and so fails the test on the first
 1345|       |      // look. Never `it` itself -- that passes, and the chunk behind it would read past `end`.
 1346|  18.6k|      const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
 1347|  18.6k|      const auto* const chunk_limit = (end - it >= scan_min) ? end - scan_min : it - 1;
  ------------------
  |  Branch (1347:39): [True: 16.0k, False: 2.63k]
  ------------------
 1348|       |
 1349|  9.38M|      while (it <= chunk_limit) {
  ------------------
  |  Branch (1349:14): [True: 9.37M, False: 6.55k]
  ------------------
 1350|  9.37M|         uint64_t chunk;
 1351|  9.37M|         std::memcpy(&chunk, it, 8);
 1352|       |         if constexpr (std::endian::native == std::endian::big) {
 1353|       |            chunk = std::byteswap(chunk);
 1354|       |         }
 1355|  9.37M|         const uint64_t test = has_quote(chunk) | has_char<open>(chunk) | has_char<close>(chunk);
 1356|  9.37M|         if (test) {
  ------------------
  |  Branch (1356:14): [True: 389k, False: 8.98M]
  ------------------
 1357|   389k|            it += (countr_zero(test) >> 3);
 1358|       |
 1359|   389k|            switch (*it) {
 1360|  74.2k|            case '"': {
  ------------------
  |  Branch (1360:13): [True: 74.2k, False: 315k]
  ------------------
 1361|  74.2k|               skip_string<skip_string_opts{opening_not_handled, skip_validation, Opts.validate_utf8,
 1362|  74.2k|                                            null_terminated_unused}>(ctx, it, end);
 1363|  74.2k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1363:20): [True: 660, False: 73.5k]
  ------------------
 1364|    660|                  return;
 1365|    660|               }
 1366|  73.5k|               break;
 1367|  74.2k|            }
 1368|   298k|            case open: {
  ------------------
  |  Branch (1368:13): [True: 298k, False: 91.2k]
  ------------------
 1369|   298k|               ++it;
 1370|   298k|               ++depth;
 1371|   298k|               break;
 1372|  74.2k|            }
 1373|  16.9k|            case close: {
  ------------------
  |  Branch (1373:13): [True: 16.9k, False: 372k]
  ------------------
 1374|  16.9k|               ++it;
 1375|  16.9k|               --depth;
 1376|  16.9k|               if (depth == 0) {
  ------------------
  |  Branch (1376:20): [True: 11.4k, False: 5.56k]
  ------------------
 1377|  11.4k|                  return;
 1378|  11.4k|               }
 1379|  5.56k|               break;
 1380|  16.9k|            }
 1381|  5.56k|            default: {
  ------------------
  |  Branch (1381:13): [True: 0, False: 389k]
  ------------------
 1382|      0|               ctx.error = error_code::unexpected_end;
 1383|      0|               return;
 1384|  16.9k|            }
 1385|   389k|            }
 1386|   389k|         }
 1387|  8.98M|         else {
 1388|  8.98M|            it += 8;
 1389|  8.98M|         }
 1390|  9.37M|      }
 1391|       |
 1392|       |      // Tail end of buffer. Should be rare we even get here
 1393|  18.5k|      while (it < end) {
  ------------------
  |  Branch (1393:14): [True: 16.0k, False: 2.47k]
  ------------------
 1394|  16.0k|         switch (*it) {
 1395|  2.68k|         case '"': {
  ------------------
  |  Branch (1395:10): [True: 2.68k, False: 13.3k]
  ------------------
 1396|  2.68k|            skip_string<skip_string_opts{opening_not_handled, skip_validation, Opts.validate_utf8,
 1397|  2.68k|                                         null_terminated_unused}>(ctx, it, end);
 1398|  2.68k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1398:17): [True: 610, False: 2.07k]
  ------------------
 1399|    610|               return;
 1400|    610|            }
 1401|  2.07k|            break;
 1402|  2.68k|         }
 1403|  2.07k|         case open: {
  ------------------
  |  Branch (1403:10): [True: 668, False: 15.4k]
  ------------------
 1404|    668|            ++it;
 1405|    668|            ++depth;
 1406|    668|            break;
 1407|  2.68k|         }
 1408|  4.46k|         case close: {
  ------------------
  |  Branch (1408:10): [True: 4.46k, False: 11.6k]
  ------------------
 1409|  4.46k|            ++it;
 1410|  4.46k|            --depth;
 1411|  4.46k|            if (depth == 0) {
  ------------------
  |  Branch (1411:17): [True: 3.47k, False: 989]
  ------------------
 1412|  3.47k|               return;
 1413|  3.47k|            }
 1414|    989|            break;
 1415|  4.46k|         }
 1416|  8.26k|         default: {
  ------------------
  |  Branch (1416:10): [True: 8.26k, False: 7.81k]
  ------------------
 1417|  8.26k|            ++it;
 1418|  8.26k|         }
 1419|  16.0k|         }
 1420|  16.0k|      }
 1421|       |
 1422|  2.47k|      ctx.error = error_code::unexpected_end;
 1423|  2.47k|   }
_ZN3glz12skip_windowsIXtlNS_22skip_until_closed_optsELb0ELb1EEELc91ELc93ERPKcS3_EEbOT2_T3_Rm:
 1243|  28.0k|   {
 1244|  28.0k|      uint64_t escape_carry{};
 1245|  28.0k|      uint64_t in_string_carry{}; // all ones while the next window opens inside a string
 1246|  28.0k|      auto string_open = it; // opening quote of the string still open, when there is one
 1247|       |
 1248|   538k|      while (end - it >= 64) {
  ------------------
  |  Branch (1248:14): [True: 521k, False: 17.2k]
  ------------------
 1249|   521k|         const auto w = detail::structural::load_window(it, Open, Close);
 1250|       |
 1251|   521k|         if constexpr (Opts.validate_utf8) {
 1252|   521k|            if (w.non_ascii) [[unlikely]] {
  ------------------
  |  Branch (1252:17): [True: 4.58k, False: 517k]
  ------------------
 1253|  4.58k|               if (in_string_carry) {
  ------------------
  |  Branch (1253:20): [True: 463, False: 4.12k]
  ------------------
 1254|    463|                  it = string_open;
 1255|    463|               }
 1256|  4.58k|               return false;
 1257|  4.58k|            }
 1258|   521k|         }
 1259|       |
 1260|   517k|         const uint64_t escaped = escaped_mask(w.backslash, escape_carry);
 1261|   521k|         const uint64_t quote = w.quote & ~escaped;
 1262|   521k|         const uint64_t in_string = prefix_xor(quote) ^ in_string_carry;
 1263|       |
 1264|       |         // A backslash outside a string cannot occur in JSON, and the parity above takes it at
 1265|       |         // face value: it cancels the next quote, and every byte after that is on the wrong side
 1266|       |         // of the string boundary for the rest of the document. The byte scan reaches a backslash
 1267|       |         // only through a string, so it does not make that mistake, and a malformed document must
 1268|       |         // not be read one way here and another way on a target without these masks. Hand it over
 1269|       |         // instead. The test is exact where it has to be -- at the first stray backslash nothing
 1270|       |         // has diverged yet, so `in_string` is still right about it -- and anything it flags later
 1271|       |         // only costs a window.
 1272|   521k|         if (w.backslash & ~in_string) [[unlikely]] {
  ------------------
  |  Branch (1272:14): [True: 1.40k, False: 520k]
  ------------------
 1273|  1.40k|            if (in_string_carry) {
  ------------------
  |  Branch (1273:17): [True: 215, False: 1.19k]
  ------------------
 1274|    215|               it = string_open;
 1275|    215|            }
 1276|  1.40k|            return false;
 1277|  1.40k|         }
 1278|       |
 1279|   520k|         in_string_carry = uint64_t(int64_t(in_string) >> 63); // sign extend the last byte's state
 1280|   520k|         if (in_string_carry && quote) {
  ------------------
  |  Branch (1280:14): [True: 21.6k, False: 498k]
  |  Branch (1280:33): [True: 6.29k, False: 15.3k]
  ------------------
 1281|       |            // Ending inside a string means the window's last unescaped quote opened it.
 1282|  6.29k|            string_open = it + (63 - std::countl_zero(quote));
 1283|  6.29k|         }
 1284|       |
 1285|   520k|         const uint64_t opens = w.open & ~in_string;
 1286|   520k|         const uint64_t closes = w.close & ~in_string;
 1287|       |
 1288|       |         // Every close in the window drops the depth by one at most, so a depth above that count
 1289|       |         // cannot reach zero anywhere inside it and the net change is all that matters.
 1290|   520k|         if (depth > size_t(std::popcount(closes))) {
  ------------------
  |  Branch (1290:14): [True: 505k, False: 14.9k]
  ------------------
 1291|   505k|            depth += size_t(std::popcount(opens));
 1292|   505k|            depth -= size_t(std::popcount(closes));
 1293|   505k|            it += 64;
 1294|   505k|            continue;
 1295|   505k|         }
 1296|       |
 1297|  14.9k|         uint64_t brackets = opens | closes;
 1298|  27.9k|         while (brackets) {
  ------------------
  |  Branch (1298:17): [True: 22.4k, False: 5.49k]
  ------------------
 1299|  22.4k|            const auto i = countr_zero(brackets);
 1300|  22.4k|            brackets &= brackets - 1;
 1301|  22.4k|            if ((closes >> i) & 1) {
  ------------------
  |  Branch (1301:17): [True: 15.2k, False: 7.17k]
  ------------------
 1302|  15.2k|               --depth;
 1303|  15.2k|               if (depth == 0) {
  ------------------
  |  Branch (1303:20): [True: 9.44k, False: 5.84k]
  ------------------
 1304|  9.44k|                  it += i + 1;
 1305|  9.44k|                  return true;
 1306|  9.44k|               }
 1307|  15.2k|            }
 1308|  7.17k|            else {
 1309|  7.17k|               ++depth;
 1310|  7.17k|            }
 1311|  22.4k|         }
 1312|  5.49k|         it += 64;
 1313|  5.49k|      }
 1314|       |
 1315|  17.2k|      if (in_string_carry) {
  ------------------
  |  Branch (1315:11): [True: 1.20k, False: 16.0k]
  ------------------
 1316|  1.20k|         it = string_open;
 1317|  1.20k|      }
 1318|  17.2k|      return false;
 1319|  28.0k|   }
_ZN3glz11skip_stringIXtlNS_16skip_string_optsELb0ELb0ELb1EEETkNS_10is_contextERNS_7contextERPKcS5_EEvOT0_OT1_T2_:
 1012|  29.8k|   {
 1013|  29.8k|      if constexpr (not Opts.opening_handled) {
 1014|  29.8k|         ++it;
 1015|  29.8k|      }
 1016|       |
 1017|  29.8k|      const auto* const utf8_start = it;
 1018|       |
 1019|       |      if constexpr (Opts.validate_skipped) {
 1020|       |         // The bound as a pointer, so each chunk costs one compare. `end - scan_min` is only a
 1021|       |         // pointer into the buffer once at least that much of it is left, and a string can start
 1022|       |         // within a few bytes of the end; where it is not, the fallback is the opening quote, which
 1023|       |         // sits before `it` and so fails the test on the first look. Never `it` itself -- that
 1024|       |         // passes, and the chunk behind it would read past the end of the buffer.
 1025|       |         const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
 1026|       |         const auto* const chunk_limit = (end - it >= scan_min) ? end - scan_min : it - 1;
 1027|       |
 1028|       |         while (it <= chunk_limit) {
 1029|       |            uint64_t swar;
 1030|       |            std::memcpy(&swar, it, 8);
 1031|       |            if constexpr (std::endian::native == std::endian::big) {
 1032|       |               swar = std::byteswap(swar);
 1033|       |            }
 1034|       |
 1035|       |            constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1036|       |            const uint64_t lo7 = swar & lo7_mask;
 1037|       |            const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1038|       |            const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1039|       |            const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1040|       |            uint64_t next = ~((backslash & quote & less_32) | swar);
 1041|       |            next &= repeat_byte8(0b10000000);
 1042|       |
 1043|       |            if (next == 0) {
 1044|       |               // No special characters in this chunk
 1045|       |               it += 8;
 1046|       |               continue;
 1047|       |            }
 1048|       |
 1049|       |            // Find the first occurrence
 1050|       |            size_t offset = (countr_zero(next) >> 3);
 1051|       |            it += offset;
 1052|       |
 1053|       |            const auto c = *it;
 1054|       |            if ((c & 0b11100000) == 0) [[unlikely]] {
 1055|       |               // Invalid control character (<0x20)
 1056|       |               ctx.error = error_code::syntax_error;
 1057|       |               return;
 1058|       |            }
 1059|       |            else if (c == '"') {
 1060|       |               // Check if this quote is escaped
 1061|       |               const auto* p = it - 1;
 1062|       |               int backslash_count{};
 1063|       |               // We don't have to worry about rewinding too far because we started with a quote
 1064|       |               while (*p == '\\') {
 1065|       |                  ++backslash_count;
 1066|       |                  --p;
 1067|       |               }
 1068|       |               if ((backslash_count & 1) == 0) {
 1069|       |                  // Even number of backslashes => not escaped => closing quote found
 1070|       |                  validate_utf8_span<Opts>(ctx, utf8_start, it);
 1071|       |                  ++it;
 1072|       |                  return;
 1073|       |               }
 1074|       |               else {
 1075|       |                  // Odd number of backslashes => escaped quote
 1076|       |                  ++it;
 1077|       |                  continue;
 1078|       |               }
 1079|       |            }
 1080|       |            else if (c == '\\') {
 1081|       |               // Handle escape sequence
 1082|       |               ++it;
 1083|       |
 1084|       |               // The backslash can be the last byte the chunk covers, which lands `it` on `end`.
 1085|       |               // A null-terminated buffer answers that read with its terminator, which the escape
 1086|       |               // table below rejects; a bounded one has nothing there to read.
 1087|       |               if constexpr (not Opts.null_terminated) {
 1088|       |                  if (it == end) [[unlikely]] {
 1089|       |                     ctx.error = error_code::unexpected_end;
 1090|       |                     return;
 1091|       |                  }
 1092|       |               }
 1093|       |
 1094|       |               if (*it == 'u') {
 1095|       |                  ++it;
 1096|       |                  if (not skip_unicode_code_point(it, end)) [[unlikely]] {
 1097|       |                     ctx.error = error_code::unicode_escape_conversion_failure;
 1098|       |                     return;
 1099|       |                  }
 1100|       |               }
 1101|       |               else {
 1102|       |                  if (not char_unescape_table[uint8_t(*it)]) [[unlikely]] {
 1103|       |                     ctx.error = error_code::invalid_escape;
 1104|       |                     return;
 1105|       |                  }
 1106|       |                  ++it;
 1107|       |               }
 1108|       |            }
 1109|       |         }
 1110|       |
 1111|       |         while (true) {
 1112|       |            // A null-terminated buffer terminates on the trailing '\0' (caught by the control
 1113|       |            // character check below); a non-null-terminated buffer has no sentinel, so bound the
 1114|       |            // scan before each dereference.
 1115|       |            if constexpr (not Opts.null_terminated) {
 1116|       |               if (it == end) [[unlikely]] {
 1117|       |                  ctx.error = error_code::unexpected_end;
 1118|       |                  return;
 1119|       |               }
 1120|       |            }
 1121|       |            if ((*it & 0b11100000) == 0) [[unlikely]] {
 1122|       |               ctx.error = error_code::syntax_error;
 1123|       |               return;
 1124|       |            }
 1125|       |
 1126|       |            switch (*it) {
 1127|       |            case '"': {
 1128|       |               validate_utf8_span<Opts>(ctx, utf8_start, it);
 1129|       |               ++it;
 1130|       |               return;
 1131|       |            }
 1132|       |            case '\\': {
 1133|       |               ++it;
 1134|       |               if constexpr (not Opts.null_terminated) {
 1135|       |                  if (it == end) [[unlikely]] {
 1136|       |                     ctx.error = error_code::unexpected_end;
 1137|       |                     return;
 1138|       |                  }
 1139|       |               }
 1140|       |               if (char_unescape_table[uint8_t(*it)]) {
 1141|       |                  ++it;
 1142|       |                  continue;
 1143|       |               }
 1144|       |               else if (*it == 'u') {
 1145|       |                  ++it;
 1146|       |                  if (skip_unicode_code_point(it, end)) [[likely]] {
 1147|       |                     continue;
 1148|       |                  }
 1149|       |                  else [[unlikely]] {
 1150|       |                     ctx.error = error_code::unicode_escape_conversion_failure;
 1151|       |                     return;
 1152|       |                  }
 1153|       |               }
 1154|       |               // Same code the chunked loop above reports. Both loops run over one buffer now, so
 1155|       |               // an escape that lands in the last few bytes must be diagnosed the same as one that
 1156|       |               // does not.
 1157|       |               ctx.error = error_code::invalid_escape;
 1158|       |               return;
 1159|       |            }
 1160|       |            }
 1161|       |            ++it;
 1162|       |         }
 1163|       |      }
 1164|  29.8k|      else {
 1165|  29.8k|         uint64_t ascii_acc{};
 1166|  29.8k|         skip_string_view(ctx, it, end, ascii_acc);
 1167|  29.8k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1167:14): [True: 124, False: 29.6k]
  ------------------
 1168|    124|            return;
 1169|    124|         }
 1170|  29.6k|         if (validate_utf8_span<Opts>(ctx, utf8_start, it, ascii_acc)) [[unlikely]] {
  ------------------
  |  Branch (1170:14): [True: 334, False: 29.3k]
  ------------------
 1171|    334|            return;
 1172|    334|         }
 1173|  29.3k|         ++it; // skip the quote
 1174|  29.3k|      }
 1175|  29.8k|   }
_ZN3glz18validate_utf8_spanITnDaXtlNS_16skip_string_optsELb0ELb0ELb1EEETkNS_10is_contextERNS_7contextEccEEbOT0_PKT1_PKT2_m:
  873|  29.6k|   {
  874|       |      if constexpr (not check_validate_utf8(Opts)) {
  875|       |         // Everything the caller computed for us is dead, which lets its scan loop drop the
  876|       |         // accumulator entirely.
  877|       |         (void)ctx, (void)start, (void)fin, (void)ascii_acc;
  878|       |         return false;
  879|       |      }
  880|  29.6k|      else {
  881|  29.6k|         if ((ascii_acc & repeat_byte8(0b10000000)) == 0) {
  ------------------
  |  Branch (881:14): [True: 27.7k, False: 1.91k]
  ------------------
  882|  27.7k|            return false; // pure ASCII is trivially well formed UTF-8
  883|  27.7k|         }
  884|  1.91k|         if (!validate_utf8(start, size_t(fin - start))) [[unlikely]] {
  ------------------
  |  Branch (884:14): [True: 334, False: 1.58k]
  ------------------
  885|    334|            ctx.error = error_code::invalid_utf8;
  886|    334|            return true;
  887|    334|         }
  888|  1.58k|         return false;
  889|  1.91k|      }
  890|  29.6k|   }
_ZN3glz17match_invalid_endILc34EXtlNS_22match_invalid_end_optsEEETkNS_10is_contextENS_7contextERPKcS4_EEbRT1_OT2_T3_:
  470|  3.00M|   {
  471|  3.00M|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (471:11): [True: 1.67k, False: 3.00M]
  ------------------
  472|  1.67k|         if constexpr (C == '"') {
  473|  1.67k|            ctx.error = error_code::expected_quote;
  474|       |         }
  475|       |         else if constexpr (C == ',') {
  476|       |            ctx.error = error_code::expected_comma;
  477|       |         }
  478|       |         else if constexpr (C == ':') {
  479|       |            ctx.error = error_code::expected_colon;
  480|       |         }
  481|       |         else if constexpr (C == '[' || C == ']') {
  482|       |            ctx.error = error_code::expected_bracket;
  483|       |         }
  484|       |         else if constexpr (C == '{' || C == '}') {
  485|       |            ctx.error = error_code::expected_brace;
  486|       |         }
  487|       |         else {
  488|       |            ctx.error = error_code::syntax_error;
  489|       |         }
  490|  1.67k|         return true;
  491|  1.67k|      }
  492|  3.00M|      else [[likely]] {
  493|  3.00M|         ++it;
  494|  3.00M|      }
  495|  3.00M|      if constexpr (not Opts.null_terminated) {
  496|  3.00M|         if (it == end) [[unlikely]] {
  ------------------
  |  Branch (496:14): [True: 4, False: 3.00M]
  ------------------
  497|      4|            ctx.error = error_code::unexpected_end;
  498|      4|            return true;
  499|      4|         }
  500|  3.00M|      }
  501|  3.00M|      return false;
  502|  3.00M|   }
_ZN3glz18validate_utf8_spanITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETkNS_10is_contextERNS_7contextEccEEbOT0_PKT1_PKT2_m:
  873|   956k|   {
  874|       |      if constexpr (not check_validate_utf8(Opts)) {
  875|       |         // Everything the caller computed for us is dead, which lets its scan loop drop the
  876|       |         // accumulator entirely.
  877|       |         (void)ctx, (void)start, (void)fin, (void)ascii_acc;
  878|       |         return false;
  879|       |      }
  880|   956k|      else {
  881|   956k|         if ((ascii_acc & repeat_byte8(0b10000000)) == 0) {
  ------------------
  |  Branch (881:14): [True: 927k, False: 28.9k]
  ------------------
  882|   927k|            return false; // pure ASCII is trivially well formed UTF-8
  883|   927k|         }
  884|  28.9k|         if (!validate_utf8(start, size_t(fin - start))) [[unlikely]] {
  ------------------
  |  Branch (884:14): [True: 15.6k, False: 13.2k]
  ------------------
  885|  15.6k|            ctx.error = error_code::invalid_utf8;
  886|  15.6k|            return true;
  887|  15.6k|         }
  888|  13.2k|         return false;
  889|  28.9k|      }
  890|   956k|   }
_ZN3glz25handle_unicode_code_pointIccEENS_14unicode_resultERPKT_RPT0_S4_:
  347|  72.2k|   {
  348|  72.2k|      using namespace unicode;
  349|       |
  350|  72.2k|      if (end - it <= 4) [[unlikely]] {
  ------------------
  |  Branch (350:11): [True: 91, False: 72.2k]
  ------------------
  351|     91|         return {0, escape_prefix_intact<false>(it, end)};
  352|     91|      }
  353|  72.2k|      const uint32_t high = hex_to_u32(it);
  354|  72.2k|      if (high == 0xFFFFFFFFu) [[unlikely]] {
  ------------------
  |  Branch (354:11): [True: 123, False: 72.0k]
  ------------------
  355|    123|         return {};
  356|    123|      }
  357|  72.0k|      it += 4; // skip the code point characters
  358|       |
  359|  72.0k|      uint32_t code_point;
  360|       |
  361|  72.0k|      if ((high & generic_surrogate_mask) == generic_surrogate_value) {
  ------------------
  |  Branch (361:11): [True: 2.96k, False: 69.1k]
  ------------------
  362|       |         // surrogate pair code points
  363|  2.96k|         if ((high & surrogate_mask) != high_surrogate_value) {
  ------------------
  |  Branch (363:14): [True: 21, False: 2.94k]
  ------------------
  364|     21|            return {};
  365|     21|         }
  366|       |
  367|  2.94k|         if (end - it <= 6) [[unlikely]] {
  ------------------
  |  Branch (367:14): [True: 67, False: 2.87k]
  ------------------
  368|     67|            return {0, escape_prefix_intact<true>(it, end)};
  369|     67|         }
  370|       |         // The next two characters must be `\u`
  371|  2.87k|         uint16_t u;
  372|  2.87k|         std::memcpy(&u, it, 2);
  373|  2.87k|         if (u != to_uint16_t(R"(\u)")) [[unlikely]] {
  ------------------
  |  Branch (373:14): [True: 106, False: 2.77k]
  ------------------
  374|    106|            return {};
  375|    106|         }
  376|  2.77k|         it += 2;
  377|       |         // verify that second unicode escape sequence is present
  378|  2.77k|         const uint32_t low = hex_to_u32(it);
  379|  2.77k|         if (low == 0xFFFFFFFFu) [[unlikely]] {
  ------------------
  |  Branch (379:14): [True: 18, False: 2.75k]
  ------------------
  380|     18|            return {};
  381|     18|         }
  382|  2.75k|         it += 4;
  383|       |
  384|  2.75k|         if ((low & surrogate_mask) != low_surrogate_value) [[unlikely]] {
  ------------------
  |  Branch (384:14): [True: 48, False: 2.70k]
  ------------------
  385|     48|            return {};
  386|     48|         }
  387|       |
  388|  2.70k|         code_point = (high & surrogate_codepoint_mask) << surrogate_codepoint_bits;
  389|  2.70k|         code_point |= (low & surrogate_codepoint_mask);
  390|  2.70k|         code_point += surrogate_codepoint_offset;
  391|  2.70k|      }
  392|  69.1k|      else {
  393|  69.1k|         code_point = high;
  394|  69.1k|      }
  395|  71.8k|      const uint32_t offset = code_point_to_utf8(code_point, dst);
  396|  71.8k|      dst += offset;
  397|  71.8k|      return {offset, false};
  398|  72.0k|   }
_ZN3glz20escape_prefix_intactILb0EccEEbPKT0_PKT1_:
  329|     91|   {
  330|     91|      auto n = size_t(end - it);
  331|       |      if constexpr (ExpectOpener) {
  332|       |         if (n > 0 && it[0] != '\\') return false;
  333|       |         if (n > 1 && it[1] != 'u') return false;
  334|       |         if (n < 2) return true;
  335|       |         it += 2;
  336|       |         n -= 2;
  337|       |      }
  338|    199|      for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (338:26): [True: 199, False: 0]
  ------------------
  339|    199|         if (digit_hex_table[uint8_t(it[i])] == 255) return false;
  ------------------
  |  Branch (339:14): [True: 91, False: 108]
  ------------------
  340|    199|      }
  341|      0|      return true;
  342|     91|   }
_ZN3glz10hex_to_u32EPKc:
  224|   234k|   {
  225|   234k|      constexpr auto& t = digit_hex_table;
  226|   234k|      const uint8_t arr[4]{t[uint8_t(c[3])], t[uint8_t(c[2])], t[uint8_t(c[1])], t[uint8_t(c[0])]};
  227|   234k|      auto chunk = std::bit_cast<uint32_t>(arr);
  228|       |      // On big-endian, bit_cast produces bytes in opposite order than expected
  229|       |      // byteswap to get consistent little-endian representation
  230|       |      if constexpr (std::endian::native == std::endian::big) {
  231|       |         chunk = std::byteswap(chunk);
  232|       |      }
  233|       |      // check that all hex characters are valid
  234|   234k|      if (chunk & repeat_byte4(0b11110000u)) [[unlikely]] {
  ------------------
  |  Branch (234:11): [True: 4.13k, False: 230k]
  ------------------
  235|  4.13k|         return 0xFFFFFFFFu;
  236|  4.13k|      }
  237|       |
  238|       |      // now pack into first four bytes of uint32_t
  239|   230k|      uint32_t packed{};
  240|   230k|      packed |= (chunk & 0x0000000F);
  241|   230k|      packed |= (chunk & 0x00000F00) >> 4;
  242|   230k|      packed |= (chunk & 0x000F0000) >> 8;
  243|   230k|      packed |= (chunk & 0x0F000000) >> 12;
  244|   230k|      return packed;
  245|   234k|   }
_ZN3glz20escape_prefix_intactILb1EccEEbPKT0_PKT1_:
  329|     67|   {
  330|     67|      auto n = size_t(end - it);
  331|     67|      if constexpr (ExpectOpener) {
  332|     67|         if (n > 0 && it[0] != '\\') return false;
  ------------------
  |  Branch (332:14): [True: 67, False: 0]
  |  Branch (332:23): [True: 20, False: 47]
  ------------------
  333|     47|         if (n > 1 && it[1] != 'u') return false;
  ------------------
  |  Branch (333:14): [True: 47, False: 0]
  |  Branch (333:23): [True: 22, False: 25]
  ------------------
  334|     25|         if (n < 2) return true;
  ------------------
  |  Branch (334:14): [True: 0, False: 25]
  ------------------
  335|     25|         it += 2;
  336|     25|         n -= 2;
  337|     25|      }
  338|     95|      for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (338:26): [True: 53, False: 42]
  ------------------
  339|     53|         if (digit_hex_table[uint8_t(it[i])] == 255) return false;
  ------------------
  |  Branch (339:14): [True: 25, False: 28]
  ------------------
  340|     53|      }
  341|     42|      return true;
  342|     67|   }
_ZN3glz18code_point_to_utf8IcEEjjPT_:
  249|  71.8k|   {
  250|  71.8k|      if (code_point <= 0x7F) {
  ------------------
  |  Branch (250:11): [True: 879, False: 70.9k]
  ------------------
  251|    879|         c[0] = Char(code_point);
  252|    879|         return 1;
  253|    879|      }
  254|  70.9k|      if (code_point <= 0x7FF) {
  ------------------
  |  Branch (254:11): [True: 63.4k, False: 7.45k]
  ------------------
  255|  63.4k|         c[0] = Char(0xC0 | ((code_point >> 6) & 0x1F));
  256|  63.4k|         c[1] = Char(0x80 | (code_point & 0x3F));
  257|  63.4k|         return 2;
  258|  63.4k|      }
  259|  7.45k|      if (code_point <= 0xFFFF) {
  ------------------
  |  Branch (259:11): [True: 4.74k, False: 2.70k]
  ------------------
  260|  4.74k|         c[0] = Char(0xE0 | ((code_point >> 12) & 0x0F));
  261|  4.74k|         c[1] = Char(0x80 | ((code_point >> 6) & 0x3F));
  262|  4.74k|         c[2] = Char(0x80 | (code_point & 0x3F));
  263|  4.74k|         return 3;
  264|  4.74k|      }
  265|  2.70k|      if (code_point <= 0x10FFFF) {
  ------------------
  |  Branch (265:11): [True: 2.70k, False: 0]
  ------------------
  266|  2.70k|         c[0] = Char(0xF0 | ((code_point >> 18) & 0x07));
  267|  2.70k|         c[1] = Char(0x80 | ((code_point >> 12) & 0x3F));
  268|  2.70k|         c[2] = Char(0x80 | ((code_point >> 6) & 0x3F));
  269|  2.70k|         c[3] = Char(0x80 | (code_point & 0x3F));
  270|  2.70k|         return 4;
  271|  2.70k|      }
  272|      0|      return 0;
  273|  2.70k|   }
_ZN3glz17match_invalid_endILc91EXtlNS_22match_invalid_end_optsEEETkNS_10is_contextENS_7contextERPKcS4_EEbRT1_OT2_T3_:
  470|  64.6k|   {
  471|  64.6k|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (471:11): [True: 204, False: 64.4k]
  ------------------
  472|       |         if constexpr (C == '"') {
  473|       |            ctx.error = error_code::expected_quote;
  474|       |         }
  475|       |         else if constexpr (C == ',') {
  476|       |            ctx.error = error_code::expected_comma;
  477|       |         }
  478|       |         else if constexpr (C == ':') {
  479|       |            ctx.error = error_code::expected_colon;
  480|       |         }
  481|    204|         else if constexpr (C == '[' || C == ']') {
  482|    204|            ctx.error = error_code::expected_bracket;
  483|       |         }
  484|       |         else if constexpr (C == '{' || C == '}') {
  485|       |            ctx.error = error_code::expected_brace;
  486|       |         }
  487|       |         else {
  488|       |            ctx.error = error_code::syntax_error;
  489|       |         }
  490|    204|         return true;
  491|    204|      }
  492|  64.4k|      else [[likely]] {
  493|  64.4k|         ++it;
  494|  64.4k|      }
  495|  64.4k|      if constexpr (not Opts.null_terminated) {
  496|  64.4k|         if (it == end) [[unlikely]] {
  ------------------
  |  Branch (496:14): [True: 14, False: 64.4k]
  ------------------
  497|     14|            ctx.error = error_code::unexpected_end;
  498|     14|            return true;
  499|     14|         }
  500|  64.4k|      }
  501|  64.4k|      return false;
  502|  64.6k|   }
_ZN3glz18validate_utf8_spanITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEccEEbOT0_PKT1_PKT2_m:
  873|  2.04M|   {
  874|       |      if constexpr (not check_validate_utf8(Opts)) {
  875|       |         // Everything the caller computed for us is dead, which lets its scan loop drop the
  876|       |         // accumulator entirely.
  877|       |         (void)ctx, (void)start, (void)fin, (void)ascii_acc;
  878|       |         return false;
  879|       |      }
  880|  2.04M|      else {
  881|  2.04M|         if ((ascii_acc & repeat_byte8(0b10000000)) == 0) {
  ------------------
  |  Branch (881:14): [True: 1.88M, False: 157k]
  ------------------
  882|  1.88M|            return false; // pure ASCII is trivially well formed UTF-8
  883|  1.88M|         }
  884|   157k|         if (!validate_utf8(start, size_t(fin - start))) [[unlikely]] {
  ------------------
  |  Branch (884:14): [True: 40, False: 157k]
  ------------------
  885|     40|            ctx.error = error_code::invalid_utf8;
  886|     40|            return true;
  887|     40|         }
  888|   157k|         return false;
  889|   157k|      }
  890|  2.04M|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc117ELc108ELc108EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS8_EEvOT1_OT2_T3_:
  539|  1.49k|   {
  540|  1.49k|      static constexpr auto S = str.sv();
  541|  1.49k|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 274, False: 1.22k]
  |  Branch (541:54): [True: 273, False: 947]
  ------------------
  542|    547|         ctx.error = error_code::syntax_error;
  543|    547|      }
  544|    947|      else [[likely]] {
  545|    947|         it += str.size();
  546|    947|      }
  547|  1.49k|   }
_ZN3glz16skip_string_viewITkNS_10is_contextERNS_7contextERPKcS4_EEvOT_OT0_T1_:
  965|   197k|   {
  966|   197k|      uint64_t ascii_acc{};
  967|   197k|      skip_string_view(ctx, it, end, ascii_acc);
  968|   197k|   }
_ZN3glz5matchILc34ETkNS_10is_contextENS_7contextERPKcEEbRT0_OT1_:
  506|  54.2k|   {
  507|  54.2k|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (507:11): [True: 0, False: 54.2k]
  ------------------
  508|      0|         if constexpr (C == '"') {
  509|      0|            ctx.error = error_code::expected_quote;
  510|       |         }
  511|       |         else if constexpr (C == ',') {
  512|       |            ctx.error = error_code::expected_comma;
  513|       |         }
  514|       |         else if constexpr (C == ':') {
  515|       |            ctx.error = error_code::expected_colon;
  516|       |         }
  517|       |         else if constexpr (C == '[' || C == ']') {
  518|       |            ctx.error = error_code::expected_bracket;
  519|       |         }
  520|       |         else if constexpr (C == '{' || C == '}') {
  521|       |            ctx.error = error_code::expected_brace;
  522|       |         }
  523|       |         else {
  524|       |            ctx.error = error_code::syntax_error;
  525|       |         }
  526|      0|         return true;
  527|      0|      }
  528|  54.2k|      else [[likely]] {
  529|  54.2k|         ++it;
  530|  54.2k|         return false;
  531|  54.2k|      }
  532|  54.2k|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm5EEEtlA5_cLc110ELc117ELc108ELc108EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETkNS_10is_contextERNS_7contextERPKcS8_EEvOT1_OT2_T3_:
  539|    779|   {
  540|    779|      static constexpr auto S = str.sv();
  541|    779|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 18, False: 761]
  |  Branch (541:54): [True: 212, False: 549]
  ------------------
  542|    230|         ctx.error = error_code::syntax_error;
  543|    230|      }
  544|    549|      else [[likely]] {
  545|    549|         it += str.size();
  546|    549|      }
  547|    779|   }
_ZN3glz11skip_numberIXtlNS_16skip_number_optsEEETkNS_10is_contextERNS_7contextERPKcS5_EEvOT0_OT1_T2_:
 1633|  64.1k|   {
 1634|  64.1k|      if constexpr (not Opts.validate) {
 1635|       |         if constexpr (Opts.null_terminated) {
 1636|       |            // Relies on the trailing '\0' sentinel (numeric_table['\0'] == false) to terminate.
 1637|       |            while (numeric_table[uint8_t(*it)]) {
 1638|       |               ++it;
 1639|       |            }
 1640|       |         }
 1641|  64.1k|         else {
 1642|  14.1M|            while (it < end && numeric_table[uint8_t(*it)]) {
  ------------------
  |  Branch (1642:20): [True: 14.1M, False: 54]
  |  Branch (1642:32): [True: 14.1M, False: 64.0k]
  ------------------
 1643|  14.1M|               ++it;
 1644|  14.1M|            }
 1645|  64.1k|         }
 1646|       |      }
 1647|       |      else {
 1648|       |         skip_number_with_validation(ctx, it, end);
 1649|       |      }
 1650|  64.1k|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm5EEEtlA5_cLc110ELc117ELc108ELc108EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS8_EEvOT1_OT2_T3_:
  539|   278k|   {
  540|   278k|      static constexpr auto S = str.sv();
  541|   278k|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 233, False: 278k]
  |  Branch (541:54): [True: 467, False: 278k]
  ------------------
  542|    700|         ctx.error = error_code::syntax_error;
  543|    700|      }
  544|   278k|      else [[likely]] {
  545|   278k|         it += str.size();
  546|   278k|      }
  547|   278k|   }
_ZN3glz5matchILc125ETkNS_10is_contextENS_7contextERPKcEEbRT0_OT1_:
  506|  53.0k|   {
  507|  53.0k|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (507:11): [True: 7.61k, False: 45.4k]
  ------------------
  508|       |         if constexpr (C == '"') {
  509|       |            ctx.error = error_code::expected_quote;
  510|       |         }
  511|       |         else if constexpr (C == ',') {
  512|       |            ctx.error = error_code::expected_comma;
  513|       |         }
  514|       |         else if constexpr (C == ':') {
  515|       |            ctx.error = error_code::expected_colon;
  516|       |         }
  517|       |         else if constexpr (C == '[' || C == ']') {
  518|       |            ctx.error = error_code::expected_bracket;
  519|       |         }
  520|  7.61k|         else if constexpr (C == '{' || C == '}') {
  521|  7.61k|            ctx.error = error_code::expected_brace;
  522|       |         }
  523|       |         else {
  524|       |            ctx.error = error_code::syntax_error;
  525|       |         }
  526|  7.61k|         return true;
  527|  7.61k|      }
  528|  45.4k|      else [[likely]] {
  529|  45.4k|         ++it;
  530|  45.4k|         return false;
  531|  45.4k|      }
  532|  53.0k|   }
_ZN3glz5matchILc93ETkNS_10is_contextENS_7contextERPKcEEbRT0_OT1_:
  506|  23.1k|   {
  507|  23.1k|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (507:11): [True: 2.06k, False: 21.1k]
  ------------------
  508|       |         if constexpr (C == '"') {
  509|       |            ctx.error = error_code::expected_quote;
  510|       |         }
  511|       |         else if constexpr (C == ',') {
  512|       |            ctx.error = error_code::expected_comma;
  513|       |         }
  514|       |         else if constexpr (C == ':') {
  515|       |            ctx.error = error_code::expected_colon;
  516|       |         }
  517|  2.06k|         else if constexpr (C == '[' || C == ']') {
  518|  2.06k|            ctx.error = error_code::expected_bracket;
  519|       |         }
  520|       |         else if constexpr (C == '{' || C == '}') {
  521|       |            ctx.error = error_code::expected_brace;
  522|       |         }
  523|       |         else {
  524|       |            ctx.error = error_code::syntax_error;
  525|       |         }
  526|  2.06k|         return true;
  527|  2.06k|      }
  528|  21.1k|      else [[likely]] {
  529|  21.1k|         ++it;
  530|  21.1k|         return false;
  531|  21.1k|      }
  532|  23.1k|   }
_ZN3glz11skip_stringIXtlNS_16skip_string_optsELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS5_EEvOT0_OT1_T2_:
 1012|   262k|   {
 1013|   262k|      if constexpr (not Opts.opening_handled) {
 1014|   262k|         ++it;
 1015|   262k|      }
 1016|       |
 1017|   262k|      const auto* const utf8_start = it;
 1018|       |
 1019|   262k|      if constexpr (Opts.validate_skipped) {
 1020|       |         // The bound as a pointer, so each chunk costs one compare. `end - scan_min` is only a
 1021|       |         // pointer into the buffer once at least that much of it is left, and a string can start
 1022|       |         // within a few bytes of the end; where it is not, the fallback is the opening quote, which
 1023|       |         // sits before `it` and so fails the test on the first look. Never `it` itself -- that
 1024|       |         // passes, and the chunk behind it would read past the end of the buffer.
 1025|   262k|         const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
 1026|   262k|         const auto* const chunk_limit = (end - it >= scan_min) ? end - scan_min : it - 1;
  ------------------
  |  Branch (1026:42): [True: 232k, False: 30.1k]
  ------------------
 1027|       |
 1028|  4.92M|         while (it <= chunk_limit) {
  ------------------
  |  Branch (1028:17): [True: 4.87M, False: 40.6k]
  ------------------
 1029|  4.87M|            uint64_t swar;
 1030|  4.87M|            std::memcpy(&swar, it, 8);
 1031|       |            if constexpr (std::endian::native == std::endian::big) {
 1032|       |               swar = std::byteswap(swar);
 1033|       |            }
 1034|       |
 1035|  4.87M|            constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1036|  4.87M|            const uint64_t lo7 = swar & lo7_mask;
 1037|  4.87M|            const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1038|  4.87M|            const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1039|  4.87M|            const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1040|  4.87M|            uint64_t next = ~((backslash & quote & less_32) | swar);
 1041|  4.87M|            next &= repeat_byte8(0b10000000);
 1042|       |
 1043|  4.87M|            if (next == 0) {
  ------------------
  |  Branch (1043:17): [True: 4.42M, False: 453k]
  ------------------
 1044|       |               // No special characters in this chunk
 1045|  4.42M|               it += 8;
 1046|  4.42M|               continue;
 1047|  4.42M|            }
 1048|       |
 1049|       |            // Find the first occurrence
 1050|   453k|            size_t offset = (countr_zero(next) >> 3);
 1051|   453k|            it += offset;
 1052|       |
 1053|   453k|            const auto c = *it;
 1054|   453k|            if ((c & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1054:17): [True: 2.36k, False: 450k]
  ------------------
 1055|       |               // Invalid control character (<0x20)
 1056|  2.36k|               ctx.error = error_code::syntax_error;
 1057|  2.36k|               return;
 1058|  2.36k|            }
 1059|   450k|            else if (c == '"') {
  ------------------
  |  Branch (1059:22): [True: 206k, False: 243k]
  ------------------
 1060|       |               // Check if this quote is escaped
 1061|   206k|               const auto* p = it - 1;
 1062|   206k|               int backslash_count{};
 1063|       |               // We don't have to worry about rewinding too far because we started with a quote
 1064|   226k|               while (*p == '\\') {
  ------------------
  |  Branch (1064:23): [True: 19.6k, False: 206k]
  ------------------
 1065|  19.6k|                  ++backslash_count;
 1066|  19.6k|                  --p;
 1067|  19.6k|               }
 1068|   206k|               if ((backslash_count & 1) == 0) {
  ------------------
  |  Branch (1068:20): [True: 206k, False: 0]
  ------------------
 1069|       |                  // Even number of backslashes => not escaped => closing quote found
 1070|   206k|                  validate_utf8_span<Opts>(ctx, utf8_start, it);
 1071|   206k|                  ++it;
 1072|   206k|                  return;
 1073|   206k|               }
 1074|      0|               else {
 1075|       |                  // Odd number of backslashes => escaped quote
 1076|      0|                  ++it;
 1077|      0|                  continue;
 1078|      0|               }
 1079|   206k|            }
 1080|   243k|            else if (c == '\\') {
  ------------------
  |  Branch (1080:22): [True: 243k, False: 0]
  ------------------
 1081|       |               // Handle escape sequence
 1082|   243k|               ++it;
 1083|       |
 1084|       |               // The backslash can be the last byte the chunk covers, which lands `it` on `end`.
 1085|       |               // A null-terminated buffer answers that read with its terminator, which the escape
 1086|       |               // table below rejects; a bounded one has nothing there to read.
 1087|   243k|               if constexpr (not Opts.null_terminated) {
 1088|   243k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1088:23): [True: 8, False: 243k]
  ------------------
 1089|      8|                     ctx.error = error_code::unexpected_end;
 1090|      8|                     return;
 1091|      8|                  }
 1092|   243k|               }
 1093|       |
 1094|   243k|               if (*it == 'u') {
  ------------------
  |  Branch (1094:20): [True: 153k, False: 90.0k]
  ------------------
 1095|   153k|                  ++it;
 1096|   153k|                  if (not skip_unicode_code_point(it, end)) [[unlikely]] {
  ------------------
  |  Branch (1096:23): [True: 11.7k, False: 142k]
  ------------------
 1097|  11.7k|                     ctx.error = error_code::unicode_escape_conversion_failure;
 1098|  11.7k|                     return;
 1099|  11.7k|                  }
 1100|   153k|               }
 1101|  90.0k|               else {
 1102|  90.0k|                  if (not char_unescape_table[uint8_t(*it)]) [[unlikely]] {
  ------------------
  |  Branch (1102:23): [True: 1.45k, False: 88.6k]
  ------------------
 1103|  1.45k|                     ctx.error = error_code::invalid_escape;
 1104|  1.45k|                     return;
 1105|  1.45k|                  }
 1106|  88.6k|                  ++it;
 1107|  88.6k|               }
 1108|   243k|            }
 1109|   453k|         }
 1110|       |
 1111|  88.5k|         while (true) {
  ------------------
  |  Branch (1111:17): [True: 88.5k, Folded]
  ------------------
 1112|       |            // A null-terminated buffer terminates on the trailing '\0' (caught by the control
 1113|       |            // character check below); a non-null-terminated buffer has no sentinel, so bound the
 1114|       |            // scan before each dereference.
 1115|  88.5k|            if constexpr (not Opts.null_terminated) {
 1116|  88.5k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1116:20): [True: 303, False: 88.2k]
  ------------------
 1117|    303|                  ctx.error = error_code::unexpected_end;
 1118|    303|                  return;
 1119|    303|               }
 1120|  88.5k|            }
 1121|  88.5k|            if ((*it & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1121:17): [True: 1.69k, False: 86.8k]
  ------------------
 1122|  1.69k|               ctx.error = error_code::syntax_error;
 1123|  1.69k|               return;
 1124|  1.69k|            }
 1125|       |
 1126|  86.8k|            switch (*it) {
  ------------------
  |  Branch (1126:21): [True: 46.3k, False: 40.4k]
  ------------------
 1127|  33.9k|            case '"': {
  ------------------
  |  Branch (1127:13): [True: 33.9k, False: 52.8k]
  ------------------
 1128|  33.9k|               validate_utf8_span<Opts>(ctx, utf8_start, it);
 1129|  33.9k|               ++it;
 1130|  33.9k|               return;
 1131|      0|            }
 1132|  12.4k|            case '\\': {
  ------------------
  |  Branch (1132:13): [True: 12.4k, False: 74.4k]
  ------------------
 1133|  12.4k|               ++it;
 1134|  12.4k|               if constexpr (not Opts.null_terminated) {
 1135|  12.4k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1135:23): [True: 13, False: 12.3k]
  ------------------
 1136|     13|                     ctx.error = error_code::unexpected_end;
 1137|     13|                     return;
 1138|     13|                  }
 1139|  12.4k|               }
 1140|  12.4k|               if (char_unescape_table[uint8_t(*it)]) {
  ------------------
  |  Branch (1140:20): [True: 6.83k, False: 5.57k]
  ------------------
 1141|  6.83k|                  ++it;
 1142|  6.83k|                  continue;
 1143|  6.83k|               }
 1144|  5.57k|               else if (*it == 'u') {
  ------------------
  |  Branch (1144:25): [True: 4.26k, False: 1.30k]
  ------------------
 1145|  4.26k|                  ++it;
 1146|  4.26k|                  if (skip_unicode_code_point(it, end)) [[likely]] {
  ------------------
  |  Branch (1146:23): [True: 965, False: 3.30k]
  ------------------
 1147|    965|                     continue;
 1148|    965|                  }
 1149|  3.30k|                  else [[unlikely]] {
 1150|  3.30k|                     ctx.error = error_code::unicode_escape_conversion_failure;
 1151|  3.30k|                     return;
 1152|  3.30k|                  }
 1153|  4.26k|               }
 1154|       |               // Same code the chunked loop above reports. Both loops run over one buffer now, so
 1155|       |               // an escape that lands in the last few bytes must be diagnosed the same as one that
 1156|       |               // does not.
 1157|  1.30k|               ctx.error = error_code::invalid_escape;
 1158|  1.30k|               return;
 1159|  12.4k|            }
 1160|  86.8k|            }
 1161|  40.1k|            ++it;
 1162|  40.1k|         }
 1163|       |      }
 1164|       |      else {
 1165|       |         uint64_t ascii_acc{};
 1166|       |         skip_string_view(ctx, it, end, ascii_acc);
 1167|       |         if (bool(ctx.error)) [[unlikely]] {
 1168|       |            return;
 1169|       |         }
 1170|       |         if (validate_utf8_span<Opts>(ctx, utf8_start, it, ascii_acc)) [[unlikely]] {
 1171|       |            return;
 1172|       |         }
 1173|       |         ++it; // skip the quote
 1174|       |      }
 1175|   262k|   }
_ZN3glz18validate_utf8_spanITnDaXtlNS_16skip_string_optsELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEccEEbOT0_PKT1_PKT2_m:
  873|   240k|   {
  874|       |      if constexpr (not check_validate_utf8(Opts)) {
  875|       |         // Everything the caller computed for us is dead, which lets its scan loop drop the
  876|       |         // accumulator entirely.
  877|       |         (void)ctx, (void)start, (void)fin, (void)ascii_acc;
  878|       |         return false;
  879|       |      }
  880|   240k|      else {
  881|   240k|         if ((ascii_acc & repeat_byte8(0b10000000)) == 0) {
  ------------------
  |  Branch (881:14): [True: 0, False: 240k]
  ------------------
  882|      0|            return false; // pure ASCII is trivially well formed UTF-8
  883|      0|         }
  884|   240k|         if (!validate_utf8(start, size_t(fin - start))) [[unlikely]] {
  ------------------
  |  Branch (884:14): [True: 764, False: 240k]
  ------------------
  885|    764|            ctx.error = error_code::invalid_utf8;
  886|    764|            return true;
  887|    764|         }
  888|   240k|         return false;
  889|   240k|      }
  890|   240k|   }
_ZN3glz23skip_unicode_code_pointIcEEbRPKT_S3_:
  402|   158k|   {
  403|   158k|      using namespace unicode;
  404|   158k|      if (it + 4 >= end) [[unlikely]] {
  ------------------
  |  Branch (404:11): [True: 5.65k, False: 152k]
  ------------------
  405|  5.65k|         return false;
  406|  5.65k|      }
  407|       |
  408|   152k|      const uint32_t high = hex_to_u32(it);
  409|   152k|      if (high == 0xFFFFFFFFu) [[unlikely]] {
  ------------------
  |  Branch (409:11): [True: 3.05k, False: 149k]
  ------------------
  410|  3.05k|         return false;
  411|  3.05k|      }
  412|   149k|      it += 4; // skip the code point characters
  413|       |
  414|   149k|      uint32_t code_point;
  415|       |
  416|   149k|      if ((high & generic_surrogate_mask) == generic_surrogate_value) {
  ------------------
  |  Branch (416:11): [True: 11.4k, False: 137k]
  ------------------
  417|       |         // surrogate pair code points
  418|  11.4k|         if ((high & surrogate_mask) != high_surrogate_value) [[unlikely]] {
  ------------------
  |  Branch (418:14): [True: 1.52k, False: 9.93k]
  ------------------
  419|  1.52k|            return false;
  420|  1.52k|         }
  421|       |
  422|  9.93k|         if (it + 6 >= end) [[unlikely]] {
  ------------------
  |  Branch (422:14): [True: 1.58k, False: 8.35k]
  ------------------
  423|  1.58k|            return false;
  424|  1.58k|         }
  425|       |         // The next two characters must be `\u`
  426|  8.35k|         uint16_t u;
  427|  8.35k|         std::memcpy(&u, it, 2);
  428|  8.35k|         if (u != to_uint16_t(R"(\u)")) [[unlikely]] {
  ------------------
  |  Branch (428:14): [True: 1.20k, False: 7.15k]
  ------------------
  429|  1.20k|            return false;
  430|  1.20k|         }
  431|  7.15k|         it += 2;
  432|       |         // verify that second unicode escape sequence is present
  433|  7.15k|         const uint32_t low = hex_to_u32(it);
  434|  7.15k|         if (low == 0xFFFFFFFFu) [[unlikely]] {
  ------------------
  |  Branch (434:14): [True: 942, False: 6.20k]
  ------------------
  435|    942|            return false;
  436|    942|         }
  437|  6.20k|         it += 4;
  438|       |
  439|  6.20k|         if ((low & surrogate_mask) != low_surrogate_value) [[unlikely]] {
  ------------------
  |  Branch (439:14): [True: 1.09k, False: 5.10k]
  ------------------
  440|  1.09k|            return false;
  441|  1.09k|         }
  442|       |
  443|  5.10k|         code_point = (high & surrogate_codepoint_mask) << surrogate_codepoint_bits;
  444|  5.10k|         code_point |= (low & surrogate_codepoint_mask);
  445|  5.10k|         code_point += surrogate_codepoint_offset;
  446|  5.10k|      }
  447|   137k|      else {
  448|   137k|         code_point = high;
  449|   137k|      }
  450|   143k|      return skip_code_point(code_point) > 0;
  451|   149k|   }
_ZN3glz15skip_code_pointEj:
  276|   143k|   {
  277|   143k|      if (code_point <= 0x7F) {
  ------------------
  |  Branch (277:11): [True: 8.07k, False: 134k]
  ------------------
  278|  8.07k|         return 1;
  279|  8.07k|      }
  280|   134k|      if (code_point <= 0x7FF) {
  ------------------
  |  Branch (280:11): [True: 111k, False: 23.2k]
  ------------------
  281|   111k|         return 2;
  282|   111k|      }
  283|  23.2k|      if (code_point <= 0xFFFF) {
  ------------------
  |  Branch (283:11): [True: 18.1k, False: 5.10k]
  ------------------
  284|  18.1k|         return 3;
  285|  18.1k|      }
  286|  5.10k|      if (code_point <= 0x10FFFF) {
  ------------------
  |  Branch (286:11): [True: 5.10k, False: 0]
  ------------------
  287|  5.10k|         return 4;
  288|  5.10k|      }
  289|      0|      return 0;
  290|  5.10k|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc117ELc108ELc108EEEETnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS5_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSA_EEvOT1_OT2_T3_:
  539|  3.82k|   {
  540|  3.82k|      static constexpr auto S = str.sv();
  541|  3.82k|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 733, False: 3.08k]
  |  Branch (541:54): [True: 1.11k, False: 1.97k]
  ------------------
  542|  1.85k|         ctx.error = error_code::syntax_error;
  543|  1.85k|      }
  544|  1.97k|      else [[likely]] {
  545|  1.97k|         it += str.size();
  546|  1.97k|      }
  547|  3.82k|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm5EEEtlA5_cLc97ELc108ELc115ELc101EEEETnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS5_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSA_EEvOT1_OT2_T3_:
  539|  3.53k|   {
  540|  3.53k|      static constexpr auto S = str.sv();
  541|  3.53k|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 1.11k, False: 2.42k]
  |  Branch (541:54): [True: 1.05k, False: 1.37k]
  ------------------
  542|  2.16k|         ctx.error = error_code::syntax_error;
  543|  2.16k|      }
  544|  1.37k|      else [[likely]] {
  545|  1.37k|         it += str.size();
  546|  1.37k|      }
  547|  3.53k|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc114ELc117ELc101EEEETnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS5_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSA_EEvOT1_OT2_T3_:
  539|  2.89k|   {
  540|  2.89k|      static constexpr auto S = str.sv();
  541|  2.89k|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 721, False: 2.17k]
  |  Branch (541:54): [True: 827, False: 1.35k]
  ------------------
  542|  1.54k|         ctx.error = error_code::syntax_error;
  543|  1.54k|      }
  544|  1.35k|      else [[likely]] {
  545|  1.35k|         it += str.size();
  546|  1.35k|      }
  547|  2.89k|   }
_ZN3glz11skip_numberIXtlNS_16skip_number_optsELb1EEETkNS_10is_contextERNS_7contextERPKcS5_EEvOT0_OT1_T2_:
 1633|   999k|   {
 1634|       |      if constexpr (not Opts.validate) {
 1635|       |         if constexpr (Opts.null_terminated) {
 1636|       |            // Relies on the trailing '\0' sentinel (numeric_table['\0'] == false) to terminate.
 1637|       |            while (numeric_table[uint8_t(*it)]) {
 1638|       |               ++it;
 1639|       |            }
 1640|       |         }
 1641|       |         else {
 1642|       |            while (it < end && numeric_table[uint8_t(*it)]) {
 1643|       |               ++it;
 1644|       |            }
 1645|       |         }
 1646|       |      }
 1647|   999k|      else {
 1648|   999k|         skip_number_with_validation(ctx, it, end);
 1649|   999k|      }
 1650|   999k|   }
_ZN3glz27skip_number_with_validationITkNS_10is_contextERNS_7contextERPKcS4_EEvOT_OT0_T1_:
 1560|   999k|   {
 1561|       |      // Every standalone *it read below is guarded by it != end so the scan stays inside the
 1562|       |      // buffer for non-null-terminated input (the std::find_if_not calls are already bounded by
 1563|       |      // end). A null-terminated buffer is unaffected: it reaches end only once the number is
 1564|       |      // fully consumed, where these guards short-circuit exactly as the trailing '\0' sentinel
 1565|       |      // would have.
 1566|   999k|      it += (it != end) && (*it == '-');
  ------------------
  |  Branch (1566:13): [True: 999k, False: 0]
  |  Branch (1566:28): [True: 40.6k, False: 959k]
  ------------------
 1567|   999k|      const auto sig_start_it = it;
 1568|   999k|      auto frac_start_it = end;
 1569|   999k|      if (it != end && *it == '0') {
  ------------------
  |  Branch (1569:11): [True: 996k, False: 3.24k]
  |  Branch (1569:24): [True: 56.6k, False: 939k]
  ------------------
 1570|  56.6k|         ++it;
 1571|       |         // RFC 8259 section 6: number = [ minus ] int [ frac ] [ exp ]. The exponent may follow
 1572|       |         // the integer part directly, with no fractional part in between (e.g. "0e4").
 1573|  56.6k|         if (it != end && (*it | ('E' ^ 'e')) == 'e') {
  ------------------
  |  Branch (1573:14): [True: 52.8k, False: 3.76k]
  |  Branch (1573:27): [True: 4.07k, False: 48.8k]
  ------------------
 1574|  4.07k|            ++it;
 1575|  4.07k|            goto exp_start;
 1576|  4.07k|         }
 1577|  52.5k|         if (it == end || *it != '.') {
  ------------------
  |  Branch (1577:14): [True: 3.76k, False: 48.8k]
  |  Branch (1577:27): [True: 43.7k, False: 5.11k]
  ------------------
 1578|  47.4k|            return;
 1579|  47.4k|         }
 1580|  5.11k|         ++it;
 1581|  5.11k|         goto frac_start;
 1582|  52.5k|      }
 1583|   943k|      it = std::find_if_not(it, end, is_digit);
 1584|   943k|      if (it == sig_start_it) {
  ------------------
  |  Branch (1584:11): [True: 61.0k, False: 882k]
  ------------------
 1585|  61.0k|         ctx.error = error_code::syntax_error;
 1586|  61.0k|         return;
 1587|  61.0k|      }
 1588|   882k|      if (it != end && (*it | ('E' ^ 'e')) == 'e') {
  ------------------
  |  Branch (1588:11): [True: 860k, False: 21.5k]
  |  Branch (1588:24): [True: 14.9k, False: 845k]
  ------------------
 1589|  14.9k|         ++it;
 1590|  14.9k|         goto exp_start;
 1591|  14.9k|      }
 1592|   867k|      if (it == end || *it != '.') return;
  ------------------
  |  Branch (1592:11): [True: 21.5k, False: 845k]
  |  Branch (1592:24): [True: 830k, False: 15.6k]
  ------------------
 1593|  15.6k|      ++it;
 1594|  20.7k|   frac_start:
 1595|  20.7k|      frac_start_it = it;
 1596|  20.7k|      it = std::find_if_not(it, end, is_digit);
 1597|  20.7k|      if (it == frac_start_it) {
  ------------------
  |  Branch (1597:11): [True: 1.29k, False: 19.4k]
  ------------------
 1598|  1.29k|         ctx.error = error_code::syntax_error;
 1599|  1.29k|         return;
 1600|  1.29k|      }
 1601|  19.4k|      if (it == end || (*it | ('E' ^ 'e')) != 'e') return;
  ------------------
  |  Branch (1601:11): [True: 1.73k, False: 17.7k]
  |  Branch (1601:24): [True: 14.5k, False: 3.22k]
  ------------------
 1602|  3.22k|      ++it;
 1603|  22.2k|   exp_start:
 1604|  22.2k|      it += (it != end) && (*it == '+' || *it == '-');
  ------------------
  |  Branch (1604:13): [True: 21.5k, False: 657]
  |  Branch (1604:29): [True: 4.72k, False: 16.8k]
  |  Branch (1604:43): [True: 1.79k, False: 15.0k]
  ------------------
 1605|  22.2k|      const auto exp_start_it = it;
 1606|  22.2k|      it = std::find_if_not(it, end, is_digit);
 1607|  22.2k|      if (it == exp_start_it) {
  ------------------
  |  Branch (1607:11): [True: 2.08k, False: 20.1k]
  ------------------
 1608|  2.08k|         ctx.error = error_code::syntax_error;
 1609|  2.08k|         return;
 1610|  2.08k|      }
 1611|  22.2k|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc117ELc108ELc108EEEETnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS9_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS5_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES7_SA_S9_EEvSE_OSF_T3_:
  539|    632|   {
  540|    632|      static constexpr auto S = str.sv();
  541|    632|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 0, False: 632]
  |  Branch (541:54): [True: 0, False: 632]
  ------------------
  542|      0|         ctx.error = error_code::syntax_error;
  543|      0|      }
  544|    632|      else [[likely]] {
  545|    632|         it += str.size();
  546|    632|      }
  547|    632|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm5EEEtlA5_cLc97ELc108ELc115ELc101EEEETnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS9_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS5_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES7_SA_S9_EEvSE_OSF_T3_:
  539|    724|   {
  540|    724|      static constexpr auto S = str.sv();
  541|    724|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 0, False: 724]
  |  Branch (541:54): [True: 0, False: 724]
  ------------------
  542|      0|         ctx.error = error_code::syntax_error;
  543|      0|      }
  544|    724|      else [[likely]] {
  545|    724|         it += str.size();
  546|    724|      }
  547|    724|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc114ELc117ELc101EEEETnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS9_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS5_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES7_SA_S9_EEvSE_OSF_T3_:
  539|    825|   {
  540|    825|      static constexpr auto S = str.sv();
  541|    825|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 0, False: 825]
  |  Branch (541:54): [True: 0, False: 825]
  ------------------
  542|      0|         ctx.error = error_code::syntax_error;
  543|      0|      }
  544|    825|      else [[likely]] {
  545|    825|         it += str.size();
  546|    825|      }
  547|    825|   }

_ZNK3glz14string_literalILm4EE4sizeEv:
   25|  15.3k|      [[nodiscard]] constexpr size_t size() const noexcept { return length; }
_ZNK3glz14string_literalILm5EE4sizeEv:
   25|   564k|      [[nodiscard]] constexpr size_t size() const noexcept { return length; }

_ZN3glz6detail15get_source_infoITkNS_10contiguousENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEENS0_11source_infoERKT_m:
   42|  4.12M|      {
   43|  4.12M|         using V = std::decay_t<decltype(*buffer.data())>;
   44|       |
   45|       |         if constexpr (std::same_as<V, std::byte>) {
   46|       |            return {.context = "", .index = index};
   47|       |         }
   48|  4.12M|         else {
   49|  4.12M|            const std::string_view text{reinterpret_cast<const char*>(buffer.data()), buffer.size()};
   50|  4.12M|            if (index >= text.size()) {
  ------------------
  |  Branch (50:17): [True: 3.91M, False: 210k]
  ------------------
   51|  3.91M|               return {.context = "", .index = index};
   52|  3.91M|            }
   53|       |
   54|       |            // The line the error sits on starts just after the newline before it, or at the
   55|       |            // beginning when there is none. Both the column and the context start from that one
   56|       |            // position. Searching from index - 1 leaves index itself out, so a newline *at* the
   57|       |            // error belongs to the line it ends rather than the one it opens.
   58|   210k|            const size_t prev_newline = index ? text.rfind('\n', index - 1) : text.npos;
  ------------------
  |  Branch (58:41): [True: 101k, False: 108k]
  ------------------
   59|   210k|            const size_t offset = (prev_newline == text.npos) ? 0 : prev_newline + 1;
  ------------------
  |  Branch (59:35): [True: 203k, False: 6.72k]
  ------------------
   60|   210k|            const size_t column = index - offset + 1;
   61|   210k|            const size_t line = size_t(std::count(text.begin(), text.begin() + index, '\n') + 1);
   62|       |
   63|   210k|            size_t context_begin = offset;
   64|   210k|            size_t context_end = (std::min)(text.find('\n', index + 1), text.size());
   65|       |
   66|   210k|            size_t front_truncation = 0;
   67|   210k|            size_t rear_truncation = 0;
   68|       |
   69|   210k|            if (context_end - context_begin > 64) {
  ------------------
  |  Branch (69:17): [True: 29.2k, False: 180k]
  ------------------
   70|       |               // reduce the context length so that we can more easily see errors, especially for non-prettified buffers
   71|  29.2k|               if (column <= 32) {
  ------------------
  |  Branch (71:20): [True: 11.2k, False: 17.9k]
  ------------------
   72|  11.2k|                  rear_truncation = 64;
   73|  11.2k|                  context_end = context_begin + rear_truncation;
   74|  11.2k|               }
   75|  17.9k|               else {
   76|  17.9k|                  front_truncation = column - 32;
   77|  17.9k|                  context_begin += front_truncation;
   78|  17.9k|                  if (context_end - context_begin > 64) {
  ------------------
  |  Branch (78:23): [True: 9.83k, False: 8.16k]
  ------------------
   79|  9.83k|                     rear_truncation = front_truncation + 64;
   80|  9.83k|                     context_end = offset + rear_truncation;
   81|  9.83k|                  }
   82|  17.9k|               }
   83|  29.2k|            }
   84|       |
   85|   210k|            std::string context{text.substr(context_begin, context_end - context_begin)};
   86|   210k|            convert_tabs_to_single_spaces(context);
   87|   210k|            return {line, column, context, index, front_truncation, rear_truncation};
   88|  4.12M|         }
   89|  4.12M|      }
_ZN3glz6detail29convert_tabs_to_single_spacesERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   31|   210k|      {
   32|  4.13M|         for (auto& c : input) {
  ------------------
  |  Branch (32:23): [True: 4.13M, False: 210k]
  ------------------
   33|  4.13M|            if (c == '\t') {
  ------------------
  |  Branch (33:17): [True: 50.2k, False: 4.08M]
  ------------------
   34|  50.2k|               c = ' ';
   35|  50.2k|            }
   36|  4.13M|         }
   37|   210k|      }
_ZN3glz6detail21generate_error_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKNS0_11source_infoES5_:
  110|  4.12M|      {
  111|  4.12M|         std::string b{};
  112|  4.12M|         b.resize(error.size() + info.context.size() + filename.size() + 128);
  113|  4.12M|         size_t ix{};
  114|       |
  115|  4.12M|         if (not filename.empty()) {
  ------------------
  |  Branch (115:14): [True: 0, False: 4.12M]
  ------------------
  116|      0|            dump_not_empty(filename, b, ix);
  117|      0|            dump(':', b, ix);
  118|      0|         }
  119|       |
  120|  4.12M|         glz::context ctx{};
  121|       |
  122|       |         // Diagnostic numbers (index/line/column) are always formatted with size-optimized
  123|       |         // integer conversion: error formatting is never a throughput path, and this keeps
  124|       |         // glz::format_error from pulling in the 40 KB integer table regardless of the
  125|       |         // optimization level used elsewhere in the program.
  126|  4.12M|         if (info.context.empty()) {
  ------------------
  |  Branch (126:14): [True: 3.91M, False: 210k]
  ------------------
  127|  3.91M|            dump("index ", b, ix);
  128|  3.91M|            write_chars::op<opts_size{}>(info.index, ctx, b, ix);
  129|  3.91M|            dump(": ", b, ix);
  130|  3.91M|            dump_maybe_empty(error, b, ix);
  131|  3.91M|         }
  132|   210k|         else {
  133|   210k|            write_chars::op<opts_size{}>(info.line, ctx, b, ix);
  134|   210k|            dump(':', b, ix);
  135|   210k|            write_chars::op<opts_size{}>(info.column, ctx, b, ix);
  136|   210k|            dump(": ", b, ix);
  137|   210k|            dump_maybe_empty(error, b, ix);
  138|   210k|            dump('\n', b, ix);
  139|   210k|            if (info.front_truncation) {
  ------------------
  |  Branch (139:17): [True: 17.9k, False: 192k]
  ------------------
  140|  17.9k|               if (info.rear_truncation) {
  ------------------
  |  Branch (140:20): [True: 9.83k, False: 8.16k]
  ------------------
  141|  9.83k|                  dump("...", b, ix);
  142|  9.83k|                  dump_maybe_empty(info.context, b, ix);
  143|  9.83k|                  dump("...\n   ", b, ix);
  144|  9.83k|               }
  145|  8.16k|               else {
  146|  8.16k|                  dump("...", b, ix);
  147|  8.16k|                  dump_maybe_empty(info.context, b, ix);
  148|  8.16k|                  dump("\n   ", b, ix);
  149|  8.16k|               }
  150|  17.9k|            }
  151|   192k|            else {
  152|   192k|               dump("   ", b, ix);
  153|   192k|               dump_maybe_empty(info.context, b, ix);
  154|   192k|               dump("\n   ", b, ix);
  155|   192k|            }
  156|   210k|            dumpn(' ', info.column - 1 - info.front_truncation, b, ix);
  157|   210k|            dump('^', b, ix);
  158|   210k|         }
  159|       |
  160|  4.12M|         b.resize(ix);
  161|  4.12M|         return b;
  162|  4.12M|      }

_ZN3glz8to_charsITkNSt3__114floating_pointEdLb0EEEPcS2_T_:
 1118|  2.88k|   {
 1119|  2.88k|      static_assert(std::is_same_v<T, float> || std::is_same_v<T, double>);
 1120|  2.88k|      return zmij::detail::write<T, OptSize>(val, buf);
 1121|  2.88k|   }
_ZN3glz4zmij6detail5writeIdLb0EEEPcT_S3_:
  975|  2.88k|      {
  976|  2.88k|         using namespace detail_impl;
  977|  2.88k|         using traits = float_traits<Float>;
  978|  2.88k|         auto bits = traits::to_bits(value);
  979|  2.88k|         auto bin_exp = traits::get_exp(bits);
  980|  2.88k|         auto bin_sig = traits::get_sig(bits);
  981|       |
  982|  2.88k|         *buffer = '-';
  983|  2.88k|         buffer += traits::is_negative(bits);
  984|       |
  985|  2.88k|         const auto* c = &consts_v<OptSize>;
  986|  2.88k|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  2.88k|#define ZMIJ_ASM(x) asm x
  ------------------
  987|  2.88k|         int64_t threshold = traits::num_bits == 64 ? static_cast<int64_t>(c->threshold) : 10'000'000;
  ------------------
  |  Branch (987:30): [True: 2.88k, Folded]
  ------------------
  988|       |
  989|  2.88k|         to_decimal_result dec;
  990|  2.88k|         bool is_normal = unsigned(bin_exp - 1) < unsigned(traits::exp_mask - 1);
  991|  2.88k|         if (!is_normal) [[unlikely]] {
  ------------------
  |  Branch (991:14): [True: 1.21k, False: 1.67k]
  ------------------
  992|  1.21k|            if (bin_exp != 0) {
  ------------------
  |  Branch (992:17): [True: 0, False: 1.21k]
  ------------------
  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|      0|               buffer -= traits::is_negative(bits);
 1000|      0|               memcpy(buffer, "null", 4);
 1001|      0|               return buffer + 4;
 1002|      0|#endif
 1003|      0|            }
 1004|  1.21k|            if (bin_sig == 0) {
  ------------------
  |  Branch (1004:17): [True: 782, False: 428]
  ------------------
 1005|    782|               memcpy(buffer, "0", 2);
 1006|    782|               return buffer + 1;
 1007|    782|            }
 1008|    428|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig, 1, true, *c);
 1009|    428|            int64_t dec_sig = dec.sig * 10 + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1009:47): [True: 53, False: 375]
  ------------------
 1010|    428|            int32_t dec_exp = dec.exp;
 1011|  2.05k|            while (dec_sig < threshold) {
  ------------------
  |  Branch (1011:20): [True: 1.63k, False: 428]
  ------------------
 1012|  1.63k|               dec_sig *= 10;
 1013|  1.63k|               --dec_exp;
 1014|  1.63k|            }
 1015|    428|            int64_t d = static_cast<int64_t>(detail_impl::div10(static_cast<uint64_t>(dec_sig)));
 1016|    428|            int32_t last_digit = static_cast<int32_t>(dec_sig - d * 10);
 1017|    428|            dec = {d, dec_exp, last_digit, last_digit != 0};
 1018|    428|         }
 1019|  1.67k|         else {
 1020|  1.67k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig | traits::implicit_bit,
 1021|  1.67k|                                                                                     bin_exp, bin_sig != 0, *c);
 1022|  1.67k|         }
 1023|  2.10k|         bool extra_digit = dec.sig >= threshold;
 1024|  2.10k|         int dec_exp = dec.exp + traits::max_digits10 - 2 + extra_digit;
 1025|  2.10k|         if (traits::num_bits == 32 && dec.sig < 1'000'000) [[unlikely]] {
  ------------------
  |  Branch (1025:14): [Folded, False: 2.10k]
  |  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|  2.10k|         char* start = buffer;
 1032|  2.10k|         auto dig = to_digits<traits::num_bits, OptSize>(static_cast<uint64_t>(dec.sig), extra_digit, *c);
 1033|  2.10k|         constexpr int bcd_size = traits::num_bits == 64 ? 16 : 8;
  ------------------
  |  Branch (1033:35): [True: 0, Folded]
  ------------------
 1034|  2.10k|         if (dec_exp >= traits::min_fixed_dec_exp && dec_exp <= traits::max_fixed_dec_exp) {
  ------------------
  |  Branch (1034:14): [True: 1.55k, False: 546]
  |  Branch (1034:54): [True: 887, False: 668]
  ------------------
 1035|    887|            memcpy(start, &zeros_v, 8);
 1036|    887|            const auto& fmt = dec_exp_formats.get<traits>(dec_exp);
 1037|    887|            buffer += fmt.start_pos;
 1038|    887|            memcpy(buffer, &dig.digits, bcd_size);
 1039|    887|            memmove(buffer, buffer + !extra_digit, bcd_size);
 1040|    887|            buffer[bcd_size + extra_digit - 1] = static_cast<char>('0' + (dec.has_last_digit ? dec.last_digit : 0));
  ------------------
  |  Branch (1040:75): [True: 178, False: 709]
  ------------------
 1041|    887|            memmove(start + fmt.shift_pos, start + fmt.point_pos, bcd_size);
 1042|    887|            start[fmt.point_pos] = '.';
 1043|    887|            int num_digits = dec.has_last_digit ? bcd_size : dig.num_digits - 1;
  ------------------
  |  Branch (1043:30): [True: 178, False: 709]
  ------------------
 1044|    887|            return buffer + fmt.exp_pos[num_digits + extra_digit - 1];
 1045|    887|         }
 1046|  1.21k|         buffer += extra_digit;
 1047|  1.21k|         memcpy(buffer, &dig.digits, bcd_size);
 1048|  1.21k|         buffer[bcd_size] = static_cast<char>('0' + dec.last_digit);
 1049|  1.21k|         buffer += dec.has_last_digit ? bcd_size + 1 : dig.num_digits;
  ------------------
  |  Branch (1049:20): [True: 384, False: 830]
  ------------------
 1050|  1.21k|         start[0] = start[1];
 1051|  1.21k|         start[1] = '.';
 1052|  1.21k|         buffer -= (buffer - 1 == start + 1);
 1053|       |
 1054|  1.21k|         if constexpr (exp_string_table<OptSize>::enable) {
 1055|  1.21k|            uint64_t exp_data = exp_strings_v<OptSize>.data[dec_exp + exp_string_table<OptSize>::offset];
 1056|  1.21k|            int len = int(exp_data >> 48);
 1057|  1.21k|            if (is_big_endian) exp_data = bswap64(exp_data);
  ------------------
  |  Branch (1057:17): [Folded, False: 1.21k]
  ------------------
 1058|  1.21k|            memcpy(buffer, &exp_data, traits::max_exponent10 >= 100 ? 8 : 4);
  ------------------
  |  Branch (1058:39): [True: 1.21k, Folded]
  ------------------
 1059|  1.21k|            return buffer + len;
 1060|  1.21k|         }
 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.21k|         buffer[0] = 'E';
 1067|  1.21k|         buffer[1] = '-';
 1068|  1.21k|         buffer += 1 + unsigned(neg);
 1069|  1.21k|         dec_exp = neg ? -dec_exp : dec_exp;
  ------------------
  |  Branch (1069:20): [True: 0, False: 1.21k]
  ------------------
 1070|  1.21k|         unsigned hundreds_written = 0;
 1071|  1.21k|         if constexpr (traits::max_exponent10 >= 100) {
 1072|  1.21k|            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|  1.21k|            else {
 1077|  1.21k|               digit = static_cast<int32_t>((uint32_t(dec_exp) * div100_sig) >> div100_exp);
 1078|  1.21k|            }
 1079|  1.21k|            *buffer = static_cast<char>('0' + digit);
 1080|  1.21k|            hundreds_written = unsigned(dec_exp >= 100);
 1081|  1.21k|            buffer += hundreds_written;
 1082|  1.21k|            dec_exp -= digit * 100;
 1083|  1.21k|         }
 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.21k|         const char* d2 = digits2(dec_exp);
 1087|  1.21k|         *buffer = d2[0];
 1088|  1.21k|         buffer += hundreds_written | unsigned(dec_exp >= 10);
 1089|  1.21k|         *buffer = d2[1];
 1090|  1.21k|         return buffer + 1;
 1091|  2.10k|      }
_ZN3glz4zmij11detail_impl12float_traitsIdE7to_bitsEd:
  358|  2.88k|         {
  359|  2.88k|            sig_type bits;
  360|  2.88k|            memcpy(&bits, &value, sizeof(value));
  361|  2.88k|            return bits;
  362|  2.88k|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_expEm:
  367|  2.88k|         {
  368|  2.88k|            return static_cast<int32_t>((bits << 1) >> (num_sig_bits + 1));
  369|  2.88k|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_sigEm:
  365|  2.88k|         static auto get_sig(sig_type bits) noexcept -> sig_type { return bits & (implicit_bit - 1); }
_ZN3glz4zmij11detail_impl12float_traitsIdE11is_negativeEm:
  364|  2.88k|         static auto is_negative(sig_type bits) noexcept -> bool { return bits >> (num_bits - 1); }
_ZN3glz4zmij11detail_impl10to_decimalIdmLb0EEENS1_17to_decimal_resultET0_lbRKNS1_9constantsIXT1_EEE:
  868|  2.10k|      {
  869|  2.10k|         using traits = float_traits<Float>;
  870|  2.10k|         int64_t bin_exp = raw_exp - traits::exp_offset;
  871|  2.10k|         constexpr int num_bits = std::numeric_limits<UInt>::digits;
  872|       |
  873|  2.10k|         constexpr uint64_t log10_2_sig = 78'913;
  874|  2.10k|         constexpr int32_t log10_2_exp = 18;
  875|  2.10k|         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|  2.10k|         else {
  881|  2.10k|            dec_exp = compute_dec_exp(bin_exp);
  882|  2.10k|         }
  883|  2.10k|         uint64_t even = 1 - (bin_sig & 1);
  884|  2.10k|         constexpr int32_t extra_shift = exp_shift_table<OptSize>::extra_shift;
  885|       |
  886|  2.10k|         if (!regular) [[unlikely]] {
  ------------------
  |  Branch (886:14): [True: 335, False: 1.76k]
  ------------------
  887|    335|            int32_t irregular_dec_exp = compute_dec_exp(bin_exp, false);
  888|    335|            int32_t shift = compute_exp_shift(bin_exp, irregular_dec_exp + 1) + extra_shift;
  889|    335|            uint128 pow10 = c.pow10_significands[-irregular_dec_exp - 1];
  890|    335|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  891|       |
  892|    335|            int64_t integral = p.hi >> extra_shift;
  893|    335|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  894|       |
  895|    335|            uint64_t half_ulp = pow10.hi >> (extra_shift + 1 - shift);
  896|    335|            bool round_up = half_ulp > ~uint64_t(0) - fractional;
  897|    335|            bool round_down = (half_ulp >> 1) > fractional;
  898|    335|            integral += round_up;
  899|       |
  900|    335|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, (uint64_t(1) << 63) - 1));
  901|    335|            int32_t lo = static_cast<int32_t>(umul128_add_hi64(fractional - (half_ulp >> 1), 10, ~uint64_t(0)));
  902|    335|            if (digit < lo) digit = lo;
  ------------------
  |  Branch (902:17): [True: 302, False: 33]
  ------------------
  903|    335|            return {integral, irregular_dec_exp, digit, (round_up + round_down) == 0};
  904|    335|         }
  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|  1.76k|         else {
  928|  1.76k|            int32_t shift = exp_shift_table<OptSize>::enable ? exp_shifts_v<OptSize>.data[bin_exp + traits::exp_offset]
  ------------------
  |  Branch (928:29): [True: 1.76k, Folded]
  ------------------
  929|  1.76k|                                                             : compute_exp_shift(bin_exp, dec_exp + 1) + extra_shift;
  930|  1.76k|            ZMIJ_ASM(("" : "+r"(dec_exp)));
  ------------------
  |  |  126|  1.76k|#define ZMIJ_ASM(x) asm x
  ------------------
  931|  1.76k|            uint128 pow10 = c.pow10_significands[-dec_exp - 1];
  932|  1.76k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  933|  1.76k|            int64_t integral = p.hi >> extra_shift;
  934|  1.76k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  935|  1.76k|            uint64_t half_ulp = (pow10.hi >> (extra_shift + 1 - shift)) + even;
  936|  1.76k|            bool round_up = fractional + half_ulp < fractional;
  937|  1.76k|            bool round_down = half_ulp > fractional;
  938|  1.76k|            integral += round_up;
  939|       |
  940|  1.76k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, c.biased_half));
  941|  1.76k|            if (fractional == (1ull << 62)) [[unlikely]] {
  ------------------
  |  Branch (941:17): [True: 3, False: 1.76k]
  ------------------
  942|      3|               digit = 2;
  943|      3|            }
  944|  1.76k|            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  945|  1.76k|         }
  946|  1.76k|      }
_ZN3glz4zmij11detail_impl15compute_dec_expElb:
  333|  2.43k|      {
  334|  2.43k|         assert(bin_exp >= -1334 && bin_exp <= 2620);
  ------------------
  |  Branch (334:10): [True: 2.43k, False: 0]
  |  Branch (334:10): [True: 2.43k, False: 0]
  |  Branch (334:10): [True: 2.43k, False: 0]
  ------------------
  335|  2.43k|         constexpr int log10_3_over_4_sig = 131'072;
  336|  2.43k|         constexpr int log10_2_sig = 315'653, log10_2_exp = 20;
  337|  2.43k|         return static_cast<int32_t>((bin_exp * log10_2_sig - !regular * log10_3_over_4_sig) >> log10_2_exp);
  338|  2.43k|      }
_ZN3glz4zmij11detail_impl17compute_exp_shiftEli:
  457|    335|      {
  458|    335|         assert(dec_exp >= -350 && dec_exp <= 350);
  ------------------
  |  Branch (458:10): [True: 335, False: 0]
  |  Branch (458:10): [True: 335, False: 0]
  |  Branch (458:10): [True: 335, False: 0]
  ------------------
  459|    335|         constexpr int log2_pow10_sig = 217'707, log2_pow10_exp = 16;
  460|    335|         int pow10_bin_exp = -dec_exp * log2_pow10_sig >> log2_pow10_exp;
  461|    335|         return static_cast<int32_t>(bin_exp + pow10_bin_exp + 1);
  462|    335|      }
_ZNK3glz4zmij11detail_impl23pow10_significand_tableILb0EEixEi:
  440|  2.10k|         {
  441|  2.10k|            constexpr int dec_exp_min = -293;
  442|  2.10k|            int i = dec_exp - dec_exp_min;
  443|  2.10k|            if (compress) return compute(i);
  ------------------
  |  Branch (443:17): [Folded, False: 2.10k]
  ------------------
  444|  2.10k|            if (!split_tables) return {data[i * 2], data[i * 2 + 1]};
  ------------------
  |  Branch (444:17): [True: 2.10k, 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.10k|         }
_ZN3glz4zmij11detail_impl13umul192_hi128Emmm:
  308|  2.10k|      {
  309|  2.10k|         uint128_t p = umul128(x_hi, y);
  310|  2.10k|         uint64_t lo = uint64_t(p) + uint64_t(umul128(x_lo, y) >> 64);
  311|  2.10k|         return {uint64_t(p >> 64) + (lo < uint64_t(p)), lo};
  312|  2.10k|      }
_ZN3glz4zmij11detail_impl7umul128Emm:
  265|  4.63k|      {
  266|  4.63k|#if ZMIJ_USE_INT128
  267|  4.63k|         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|  4.63k|      }
_ZN3glz4zmij11detail_impl16umul128_add_hi64Emmm:
  298|  2.43k|      {
  299|  2.43k|#if ZMIJ_USE_INT128
  300|  2.43k|         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|  2.43k|      }
_ZN3glz4zmij11detail_impl5div10Em:
  326|    428|      {
  327|    428|         assert(x <= (1ull << 62));
  ------------------
  |  Branch (327:10): [True: 428, False: 0]
  ------------------
  328|    428|         constexpr uint64_t div10_sig64 = (1ull << 63) / 5 + 1;
  329|    428|         return ZMIJ_USE_INT128 ? umul128_hi64(x, div10_sig64) : x / 10;
  ------------------
  |  |  247|    428|#define ZMIJ_USE_INT128 1
  |  |  ------------------
  |  |  |  Branch (247:25): [True: 428, Folded]
  |  |  ------------------
  ------------------
  330|    428|      }
_ZN3glz4zmij11detail_impl12umul128_hi64Emm:
  295|    428|      constexpr auto umul128_hi64(uint64_t x, uint64_t y) noexcept -> uint64_t { return uint64_t(umul128(x, y) >> 64); }
_ZN3glz4zmij11detail_impl9to_digitsILi64ELb0EEENS1_10dec_digitsIXT_EEEmbRKNS1_9constantsIXT0_EEE:
  809|  2.10k|      {
  810|       |         if constexpr (num_bits == 32) {
  811|       |            auto result = to_bcd8<OptSize>(value);
  812|       |            return {result.bcd + zeros_v, result.len};
  813|       |         }
  814|  2.10k|         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|  2.10k|            uint32_t abbccddee = uint32_t(value / 100'000'000);
  834|  2.10k|            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  835|       |
  836|  2.10k|            const __m128i zeros = _mm_load_si128(m128ptr(&c.zeros));
  837|  2.10k|            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|  2.10k|            auto bcd = _mm_shuffle_epi32(unshuffled_bcd, _MM_SHUFFLE(0, 1, 2, 3));
  843|  2.10k|#endif
  844|       |
  845|  2.10k|            __m128i mask128 = _mm_cmpgt_epi8(bcd, _mm_setzero_si128());
  846|  2.10k|            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|  2.10k|            int len = 63 - clz((mask << 1) | 1);
  851|  2.10k|#endif
  852|  2.10k|            return {_mm_or_si128(bcd, zeros), len};
  853|  2.10k|#endif
  854|  2.10k|         }
  855|  2.10k|      }
_ZN3glz4zmij11detail_impl20to_unshuffled_digitsILb0EEEDv2_xjjRKNS1_9constantsIXT_EEE:
  735|  2.10k|      {
  736|  2.10k|         const __m128i div10k = _mm_load_si128(m128ptr(&c.div10k));
  737|  2.10k|         const __m128i neg10k = _mm_load_si128(m128ptr(&c.neg10k));
  738|  2.10k|         __m128i x = _mm_set_epi64x(bbccddee, ffgghhii);
  739|  2.10k|         __m128i y = _mm_add_epi64(x, _mm_mul_epu32(neg10k, _mm_srli_epi64(_mm_mul_epu32(x, div10k), div10k_exp)));
  740|  2.10k|         return to_bcd_4x4(y, c);
  741|  2.10k|      }
_ZN3glz4zmij11detail_impl10to_bcd_4x4ILb0EEEDv2_xS3_RKNS1_9constantsIXT_EEE:
  712|  2.10k|      {
  713|  2.10k|         const __m128i div100 = _mm_load_si128(m128ptr(&c.div100));
  714|  2.10k|         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.10k|         const __m128i hundred = _mm_load_si128(m128ptr(&c.hundred));
  723|  2.10k|         const __m128i moddiv10 = _mm_load_si128(m128ptr(&c.moddiv10));
  724|       |
  725|  2.10k|         __m128i y_div_100 = _mm_srli_epi16(_mm_mulhi_epu16(y, div100), 3);
  726|  2.10k|         __m128i y_mod_100 = _mm_sub_epi16(y, _mm_mullo_epi16(y_div_100, hundred));
  727|  2.10k|         __m128i z = _mm_or_si128(_mm_slli_epi32(y_mod_100, 16), y_div_100);
  728|  2.10k|         return _mm_sub_epi16(_mm_slli_epi16(z, 8), _mm_mullo_epi16(moddiv10, _mm_mulhi_epu16(z, div10)));
  729|  2.10k|#endif
  730|  2.10k|      }
_ZN3glz4zmij11detail_impl3clzEm:
  187|  2.10k|      {
  188|  2.10k|         assert(x != 0);
  ------------------
  |  Branch (188:10): [True: 2.10k, False: 0]
  ------------------
  189|  2.10k|#if ZMIJ_HAS_BUILTIN(__builtin_clzll)
  190|  2.10k|         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.10k|      }
_ZNK3glz4zmij11detail_impl20dec_exp_format_table3getINS1_12float_traitsIdEEEERKNS2_5entryEi:
  559|    887|         {
  560|    887|            constexpr auto min = traits::min_fixed_dec_exp, max = Traits::max_fixed_dec_exp;
  561|    887|            unsigned i = unsigned(dec_exp - min);
  562|    887|            return data[i <= unsigned(max - min) ? i : num_entries - 1];
  ------------------
  |  Branch (562:25): [True: 887, False: 0]
  ------------------
  563|    887|         }

