LLVMFuzzerTestOneInput:
    7|  2.19k|{
    8|  2.19k|	std::string input(reinterpret_cast<const char*>(data), size);
    9|  2.19k|	try {
   10|  2.19k|        if (size < 5000) // Tests show that it will compute for very large size, but size 316737 taxes Google fuzz patience
  ------------------
  |  Branch (10:13): [True: 2.15k, False: 40]
  ------------------
   11|  2.15k|        {
   12|  2.15k|            bigint a("56654250564056135415631554531554513813");
   13|  2.15k|            bigint b(input);
   14|  2.15k|            bigint c = a % b;
   15|  2.15k|            bigint d = b % a;
   16|  2.15k|        }
   17|  2.19k|	}
   18|  2.19k|	catch (const std::runtime_error&) {}
   19|       |
   20|  2.19k|	return 0;
   21|  2.19k|}

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IcEEPKT_RKS3_:
  650|  2.15k|        : storage_(alloc)
  651|  2.15k|    {
  652|  2.15k|        auto r = jsoncons::to_bigint(s, std::char_traits<CharT>::length(s), *this, alloc);
  653|  2.15k|        if (r.ec != std::errc{})
  ------------------
  |  Branch (653:13): [True: 0, False: 2.15k]
  ------------------
  654|      0|        {
  655|      0|            JSONCONS_THROW(std::system_error((int)r.ec, std::system_category()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  656|      0|        }
  657|  2.15k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  293|  8.98k|        : word_allocator_type(alloc)
  294|  8.98k|    {
  295|  8.98k|        ::new (&inlined_) inlined_storage();
  296|  8.98k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  113|  8.98k|            : is_allocated_(false),
  114|  8.98k|            is_negative_(false),
  115|  8.98k|            size_(0),
  116|  8.98k|            values_{0, 0}
  117|  8.98k|        {
  118|  8.98k|        }
_ZN8jsoncons9to_bigintIcNSt3__19allocatorImEEEENS_16to_bigint_resultIT_EEPKS5_mRNS_12basic_bigintIT0_EERKSA_:
 2110|  2.15k|{
 2111|  2.15k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  2.15k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.15k]
  |  |  ------------------
  ------------------
 2112|      0|    {
 2113|      0|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2114|      0|    }
 2115|       |
 2116|  2.15k|    if (*data == '-')
  ------------------
  |  Branch (2116:9): [True: 0, False: 2.15k]
  ------------------
 2117|      0|    {
 2118|      0|        return jsoncons::detail::to_bigint(data + 1, length - 1, true, value, alloc);
 2119|      0|    }
 2120|  2.15k|    else
 2121|  2.15k|    {
 2122|  2.15k|        return jsoncons::detail::to_bigint(data, length, false, value, alloc);
 2123|  2.15k|    }
 2124|  2.15k|}
_ZN8jsoncons16to_bigint_resultIcEC2EPKcNSt3__14errcE:
  569|  4.30k|        : ptr(ptr_), ec(ec_)
  570|  4.30k|    {
  571|  4.30k|    }
_ZN8jsoncons6detail9to_bigintIcNSt3__19allocatorImEEEENS_16to_bigint_resultIT_EEPKS6_mbRNS_12basic_bigintIT0_EERKSB_:
 2048|  4.30k|{
 2049|  4.30k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  4.30k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 4.30k]
  |  |  ------------------
  ------------------
 2050|      1|    {
 2051|      1|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2052|      1|    }
 2053|       |
 2054|  4.30k|    using word_type = typename basic_bigint<Allocator>::word_type;
 2055|       |
 2056|  4.30k|    const CharT* last = data + length;
 2057|  4.30k|    const CharT* p = data;
 2058|       |
 2059|  6.50k|    while (p < last && *p == '0')
  ------------------
  |  Branch (2059:12): [True: 6.49k, False: 9]
  |  Branch (2059:24): [True: 2.20k, False: 4.29k]
  ------------------
 2060|  2.20k|    {
 2061|  2.20k|        ++p;
 2062|  2.20k|    }
 2063|  4.30k|    if (p == last)
  ------------------
  |  Branch (2063:9): [True: 9, False: 4.29k]
  ------------------
 2064|      9|    {
 2065|      9|        value = std::move(basic_bigint<Allocator>{0, alloc});
 2066|      9|        return to_bigint_result<CharT>(last, std::errc{});
 2067|      9|    }
 2068|  4.29k|    std::size_t num_digits = last - data;
 2069|  4.29k|    std::size_t num_words;
 2070|  4.29k|    if (length < 10)
  ------------------
  |  Branch (2070:9): [True: 122, False: 4.17k]
  ------------------
 2071|    122|    {
 2072|    122|        num_words = 1;
 2073|    122|    }
 2074|  4.17k|    else
 2075|  4.17k|    {
 2076|  4.17k|        std::size_t num_bits = (std::size_t)(((num_digits * detail::bits_per_digit[10]) >> 10) + 1);
 2077|  4.17k|        num_words = (num_bits + 63) >> 6;
 2078|  4.17k|    }
 2079|       |
 2080|  4.29k|    basic_bigint<Allocator> v(0, alloc);
 2081|  4.29k|    v.reserve(num_words);
 2082|   324k|    for (std::size_t i = 0; i < length; i++)
  ------------------
  |  Branch (2082:29): [True: 320k, False: 4.23k]
  ------------------
 2083|   320k|    {
 2084|   320k|        CharT c = data[i];
 2085|   320k|        if (JSONCONS_LIKELY(c >= '0' && c <= '9'))
  ------------------
  |  |   77|   640k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 320k, False: 63]
  |  |  |  Branch (77:48): [True: 320k, False: 52]
  |  |  |  Branch (77:48): [True: 320k, False: 11]
  |  |  ------------------
  ------------------
 2086|   320k|        {
 2087|   320k|            v *= 10u;
 2088|   320k|            v += (word_type)(c - '0');
 2089|   320k|        }
 2090|     63|        else
 2091|     63|        {
 2092|     63|            return to_bigint_result<CharT>(data + i, std::errc::invalid_argument);
 2093|     63|        }
 2094|   320k|    }
 2095|       |
 2096|  4.23k|    if (neg)
  ------------------
  |  Branch (2096:9): [True: 1, False: 4.23k]
  ------------------
 2097|      1|    {
 2098|      1|        v.set_negative(true);
 2099|      1|    }
 2100|       |
 2101|  4.23k|    value = std::move(v);
 2102|  4.23k|    return to_bigint_result<CharT>(last, std::errc{});
 2103|  4.29k|}
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IiEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  4.30k|        : storage_(n, alloc)
  694|  4.30k|    {
  695|  4.30k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  4.30k|        : word_allocator_type(alloc)
  361|  4.30k|    {
  362|  4.30k|        ::new (&inlined_) inlined_storage(n);
  363|  4.30k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  4.30k|            : is_allocated_(false),
  126|  4.30k|            is_negative_(n < 0),
  127|  4.30k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 4.30k, False: 0]
  ------------------
  128|  4.30k|        {
  129|  4.30k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 0, False: 4.30k]
  ------------------
  130|  4.30k|            values_[1] = 0;
  131|  4.30k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  842|  10.9k|    {
  843|  10.9k|        storage_ = y.storage_;
  844|  10.9k|        return *this;
  845|  10.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  366|  10.9k|    {
  367|  10.9k|        if (this != &other)
  ------------------
  |  Branch (367:13): [True: 10.9k, False: 0]
  ------------------
  368|  10.9k|        {
  369|  10.9k|            auto other_view = other.get_storage_view();
  370|  10.9k|            resize(other_view.size());
  371|  10.9k|            auto this_view = get_storage_view();
  372|  10.9k|            if (other_view.size() > 0)
  ------------------
  |  Branch (372:17): [True: 8.89k, False: 2.09k]
  ------------------
  373|  8.89k|            {
  374|  8.89k|                common_.is_negative_ = other.common_.is_negative_;
  375|  8.89k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  376|  8.89k|            }
  377|  10.9k|        }
  378|  10.9k|        return *this;
  379|  10.9k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  527|  22.9k|    {
  528|  22.9k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (528:16): [True: 7.67k, False: 15.2k]
  ------------------
  529|  7.67k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  530|  22.9k|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  531|  22.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   64|  22.9k|            : data_(data), size_(size)
   65|  22.9k|        {
   66|  22.9k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  534|   658k|    {
  535|   658k|        size_type old_length = common_.size_;
  536|   658k|        reserve(new_length);
  537|   658k|        common_.size_ = new_length;
  538|       |
  539|   658k|        if (old_length < new_length)
  ------------------
  |  Branch (539:13): [True: 653k, False: 5.54k]
  ------------------
  540|   653k|        {
  541|   653k|            if (is_allocated())
  ------------------
  |  Branch (541:17): [True: 505k, False: 148k]
  ------------------
  542|   505k|            {
  543|   505k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  544|   505k|            }
  545|   148k|            else
  546|   148k|            {
  547|   148k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   49|   148k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 148k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  548|   309k|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (548:48): [True: 161k, False: 148k]
  ------------------
  549|   161k|                {
  550|   161k|                    inlined_.values_[i] = 0;
  551|   161k|                }
  552|   148k|            }
  553|   653k|        }
  554|   658k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  452|   663k|    {
  453|   663k|       if (capacity() < n)
  ------------------
  |  Branch (453:12): [True: 8.52k, False: 654k]
  ------------------
  454|  8.52k|       {
  455|  8.52k|           if (!is_allocated())
  ------------------
  |  Branch (455:16): [True: 8.52k, False: 0]
  ------------------
  456|  8.52k|           {
  457|  8.52k|               size_type size = inlined_.size_;
  458|  8.52k|               size_type is_neg = inlined_.is_negative_;
  459|  8.52k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  460|       |
  461|  8.52k|               ::new (&allocated_) allocated_storage();
  462|  8.52k|               allocated_.reserve(n, get_allocator());
  463|  8.52k|               allocated_.size_ = size;
  464|  8.52k|               allocated_.is_negative_ = is_neg;
  465|  8.52k|               if (n >= 1)
  ------------------
  |  Branch (465:20): [True: 8.52k, False: 0]
  ------------------
  466|  8.52k|               {
  467|  8.52k|                   allocated_.data_[0] = values[0];
  468|  8.52k|               }
  469|  8.52k|               if (n >= 2)
  ------------------
  |  Branch (469:20): [True: 8.52k, False: 0]
  ------------------
  470|  8.52k|               {
  471|  8.52k|                   allocated_.data_[1] = values[1];
  472|  8.52k|               }
  473|  8.52k|           }
  474|      0|           else
  475|      0|           {
  476|      0|               allocated_.reserve(n, get_allocator());
  477|      0|           }
  478|  8.52k|       }
  479|   663k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  505|   663k|    {
  506|   663k|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (506:16): [True: 497k, False: 165k]
  ------------------
  507|   663k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  203|  8.52k|            : is_allocated_(true),
  204|  8.52k|            is_negative_(false)
  205|  8.52k|        {
  206|  8.52k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  255|  8.52k|        {
  256|  8.52k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   49|  8.52k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 8.52k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  257|  8.52k|            size_type capacity_new = round_up(n);
  258|       |
  259|  8.52k|            real_allocator_type alloc(a);
  260|  8.52k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  261|  8.52k|            if (size_ > 0)
  ------------------
  |  Branch (261:17): [True: 0, False: 8.52k]
  ------------------
  262|      0|            {
  263|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  264|      0|            }
  265|  8.52k|            if (data_ != nullptr)
  ------------------
  |  Branch (265:17): [True: 0, False: 8.52k]
  ------------------
  266|      0|            {
  267|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  268|      0|            }
  269|  8.52k|            capacity_ = capacity_new;
  270|  8.52k|            data_ = data_new;
  271|  8.52k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  275|  8.52k|        {
  276|  8.52k|            size_type remainder = i % mem_unit;
  277|  8.52k|            size_type off = mem_unit - remainder;
  278|  8.52k|            bool testoff = i < max_size - off;
  279|  8.52k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   49|  8.52k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 8.52k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  280|       |
  281|  8.52k|            return i + off;
  282|  8.52k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  482|  45.6k|    {
  483|  45.6k|        return static_cast<const word_allocator_type&>(*this);
  484|  45.6k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  500|  1.38M|    {
  501|  1.38M|        return common_.is_allocated_;
  502|  1.38M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   84|  50.4k|        {
   85|  50.4k|            return size_;
   86|  50.4k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  520|  1.98M|    {
  521|  1.98M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (521:16): [True: 1.52M, False: 460k]
  ------------------
  522|  1.52M|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  523|  1.98M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  524|  1.98M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   64|  1.98M|            : data_(data), size_(size)
   65|  1.98M|        {
   66|  1.98M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   79|  32.9k|        {
   80|  32.9k|            return data_;
   81|  32.9k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   79|  8.89k|        {
   80|  8.89k|            return data_;
   81|  8.89k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE7reserveEm:
  823|  4.29k|    {
  824|  4.29k|        storage_.reserve(n);
  825|  4.29k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLIjEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  998|   320k|    {
  999|   320k|        auto this_view = get_storage_view();
 1000|   320k|        size_type len0 = this_view.size();
 1001|   320k|        word_type dig = this_view[0];
 1002|   320k|        word_type carry = 0;
 1003|       |
 1004|   320k|        resize(this_view.size() + 1);
 1005|   320k|        this_view = get_storage_view();
 1006|       |
 1007|   320k|        size_type i = 0;
 1008|  13.7M|        for (; i < len0; i++ )
  ------------------
  |  Branch (1008:16): [True: 13.4M, False: 320k]
  ------------------
 1009|  13.4M|        {
 1010|  13.4M|            word_type hi;
 1011|  13.4M|            word_type lo;
 1012|  13.4M|            DDproduct( dig, y, hi, lo );
 1013|  13.4M|            this_view[i] = lo + carry;
 1014|  13.4M|            dig = this_view[i+1];
 1015|  13.4M|            carry = hi + (this_view[i] < lo);
 1016|  13.4M|        }
 1017|   320k|        this_view[i] = carry;
 1018|   320k|        reduce();
 1019|   320k|        return *this;
 1020|   320k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  718|  1.31M|    {
  719|  1.31M|        return storage_.get_storage_view();
  720|  1.31M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   84|  1.31M|        {
   85|  1.31M|            return size_;
   86|  1.31M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   69|  42.1M|        {
   70|  42.1M|            return data_[i];
   71|  42.1M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  818|   647k|    {
  819|   647k|        storage_.resize(new_length);
  820|   647k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1781|  13.4M|    {
 1782|  13.4M|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1783|  13.4M|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1784|       |
 1785|  13.4M|        lo = loA * loB;
 1786|  13.4M|        hi = hiA * hiB;
 1787|  13.4M|        word_type mid1 = loA * hiB;
 1788|  13.4M|        word_type mid2 = hiA * loB;
 1789|  13.4M|        word_type old = lo;
 1790|  13.4M|        lo += mid1 << word_type_half_bits;
 1791|  13.4M|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1792|  13.4M|        old = lo;
 1793|  13.4M|        lo += mid2 << word_type_half_bits;
 1794|  13.4M|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1795|  13.4M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1917|   650k|    {
 1918|   650k|        storage_.reduce();
 1919|   650k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  429|   650k|    {
  430|   650k|        if (common_.size_ > 0)
  ------------------
  |  Branch (430:13): [True: 650k, False: 0]
  ------------------
  431|   650k|        {
  432|   650k|            auto this_view = get_storage_view();
  433|   650k|            word_type* p = this_view.end() - 1;
  434|   650k|            word_type* first = this_view.begin();
  435|  1.28M|            while ( p >= first )
  ------------------
  |  Branch (435:21): [True: 1.27M, False: 8.03k]
  ------------------
  436|  1.27M|            {
  437|  1.27M|                if ( *p )
  ------------------
  |  Branch (437:22): [True: 642k, False: 636k]
  ------------------
  438|   642k|                {
  439|   642k|                    break;
  440|   642k|                }
  441|   636k|                --common_.size_;
  442|   636k|                --p;
  443|   636k|            }
  444|   650k|        }
  445|   650k|        if (common_.size_ == 0)
  ------------------
  |  Branch (445:13): [True: 8.03k, False: 642k]
  ------------------
  446|  8.03k|        {
  447|  8.03k|            common_.is_negative_ = false;
  448|  8.03k|        }
  449|   650k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   93|   650k|        {
   94|   650k|            return data_ + size_;
   95|   650k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   88|   650k|        {
   89|   650k|            return data_;
   90|   650k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  889|   320k|    {
  890|   320k|        if ( is_negative())
  ------------------
  |  Branch (890:14): [True: 0, False: 320k]
  ------------------
  891|      0|            return *this -= -basic_bigint<Allocator>(y);
  892|       |
  893|   320k|        word_type d;
  894|   320k|        word_type carry = 0;
  895|       |
  896|   320k|        auto this_view = get_storage_view();
  897|   320k|        resize(this_view.size() + 1);
  898|       |
  899|   320k|        this_view = get_storage_view();
  900|   320k|        const size_type this_size = this_view.size();
  901|   320k|        size_type y_size = 1;
  902|       |
  903|   320k|        d = this_view[0] + carry;
  904|   320k|        carry = d < carry;
  905|   320k|        this_view[0] = d + y;
  906|   320k|        if (this_view[0] < d)
  ------------------
  |  Branch (906:13): [True: 680, False: 319k]
  ------------------
  907|    680|            carry = 1;
  908|       |
  909|   321k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (909:36): [True: 314k, False: 6.18k]
  |  Branch (909:53): [True: 851, False: 314k]
  ------------------
  910|    851|        {
  911|    851|            d = this_view[i] + carry;
  912|    851|            carry = d < carry;
  913|    851|            this_view[i] = d;
  914|    851|        }
  915|   320k|        reduce();
  916|   320k|        return *this;
  917|   320k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  728|   348k|    {
  729|   348k|        return storage_.is_negative();
  730|   348k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  510|   348k|    {
  511|   348k|        return common_.is_negative_;
  512|   348k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  2.72k|        : storage_(n, alloc)
  694|  2.72k|    {
  695|  2.72k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  2.72k|        : word_allocator_type(alloc)
  361|  2.72k|    {
  362|  2.72k|        ::new (&inlined_) inlined_storage(n);
  363|  2.72k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  2.72k|            : is_allocated_(false),
  139|  2.72k|            is_negative_(false),
  140|  2.72k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 2.08k, False: 642]
  ------------------
  141|  2.72k|        {
  142|  2.72k|            values_[0] = n;
  143|  2.72k|            values_[1] = 0;
  144|  2.72k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  723|  11.9k|    {
  724|  11.9k|        return storage_.get_storage_view();
  725|  11.9k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1641|  4.66k|    {
 1642|  4.66k|        auto this_view = get_storage_view();
 1643|  4.66k|        auto y_view = y.get_storage_view();
 1644|       |
 1645|  4.66k|        const size_type y_size = y_view.size();
 1646|  4.66k|        if ( this_view.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1646:14): [True: 0, False: 4.66k]
  |  Branch (1646:39): [True: 0, False: 0]
  ------------------
 1647|      0|            return 0;
 1648|  4.66k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1648:14): [True: 0, False: 4.66k]
  ------------------
 1649|      0|            return y.is_negative() - is_negative();
 1650|  4.66k|        int code = 0;
 1651|  4.66k|        if ( this_view.size() < y_size)
  ------------------
  |  Branch (1651:14): [True: 1.18k, False: 3.48k]
  ------------------
 1652|  1.18k|            code = -1;
 1653|  3.48k|        else if ( this_view.size() > y_size)
  ------------------
  |  Branch (1653:19): [True: 1.69k, False: 1.78k]
  ------------------
 1654|  1.69k|            code = +1;
 1655|  1.78k|        else
 1656|  1.78k|        {
 1657|  1.80k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1657:50): [True: 1.80k, False: 2]
  ------------------
 1658|  1.80k|            {
 1659|  1.80k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1659:21): [True: 893, False: 911]
  ------------------
 1660|    893|                {
 1661|    893|                    code = 1;
 1662|    893|                    break;
 1663|    893|                }
 1664|    911|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1664:26): [True: 893, False: 18]
  ------------------
 1665|    893|                {
 1666|    893|                    code = -1;
 1667|    893|                    break;
 1668|    893|                }
 1669|  1.80k|            }
 1670|  1.78k|        }
 1671|  4.66k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1671:16): [True: 0, False: 4.66k]
  ------------------
 1672|  4.66k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1476|  4.66k|    {
 1477|  4.66k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1477:15): [True: 2.07k, False: 2.59k]
  ------------------
 1478|  4.66k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   69|  5.98k|        {
   70|  5.98k|            return data_[i];
   71|  5.98k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  733|  18.1k|    {
  734|  18.1k|        storage_.set_negative(value);
  735|  18.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  515|  18.1k|    {
  516|  18.1k|        common_.is_negative_ = value;
  517|  18.1k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  708|  38.5k|    {
  709|  38.5k|        storage_.destroy();
  710|  38.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  487|  38.5k|    {
  488|  38.5k|        if (is_allocated())
  ------------------
  |  Branch (488:13): [True: 12.5k, False: 25.9k]
  ------------------
  489|  12.5k|        {
  490|  12.5k|            allocated_.destroy(get_allocator());
  491|  12.5k|            allocated_.~allocated_storage();
  492|  12.5k|        }
  493|  25.9k|        else
  494|  25.9k|        {
  495|  25.9k|            inlined_.~inlined_storage();
  496|  25.9k|        }
  497|  38.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  246|  12.5k|        {
  247|  12.5k|            if (data_ != nullptr)
  ------------------
  |  Branch (247:17): [True: 12.5k, False: 0]
  ------------------
  248|  12.5k|            {
  249|  12.5k|                real_allocator_type alloc(a);
  250|  12.5k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  251|  12.5k|            }
  252|  12.5k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2INS1_12basic_stringIcNS1_11char_traitsIcEENS2_IcEEEEvEERKT_:
  699|  2.15k|    {
  700|  2.15k|        auto r = jsoncons::to_bigint(s.data(), s.size(), *this);
  701|  2.15k|        if (r.ec != std::errc{})
  ------------------
  |  Branch (701:13): [True: 64, False: 2.08k]
  ------------------
  702|     64|        {
  703|     64|            JSONCONS_THROW(std::system_error((int)r.ec, std::system_category()));
  ------------------
  |  |   35|     64|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  704|     64|        }
  705|  2.15k|    }
_ZN8jsoncons9to_bigintIcEENS_16to_bigint_resultIT_EEPKS2_mRNS_12basic_bigintINSt3__19allocatorImEEEE:
 2135|  2.15k|{
 2136|  2.15k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  2.15k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.15k]
  |  |  ------------------
  ------------------
 2137|      0|    {
 2138|      0|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2139|      0|    }
 2140|       |
 2141|  2.15k|    if (*data == '-')
  ------------------
  |  Branch (2141:9): [True: 3, False: 2.15k]
  ------------------
 2142|      3|    {
 2143|      3|        return jsoncons::detail::to_bigint(data+1, length-1, true, value, std::allocator<uint64_t>{}); 
 2144|      3|    }
 2145|  2.15k|    else
 2146|  2.15k|    {
 2147|  2.15k|        return jsoncons::detail::to_bigint(data, length, false, value, std::allocator<uint64_t>{}); 
 2148|  2.15k|    }
 2149|  2.15k|}
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  671|  8.32k|        : storage_(other.storage_)
  672|  8.32k|    {
  673|  8.32k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  299|  8.32k|        : word_allocator_type(other.get_allocator())
  300|  8.32k|    {
  301|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  302|       |# pragma GCC diagnostic push
  303|       |# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  304|       |#endif
  305|  8.32k|        if (!other.is_allocated())
  ------------------
  |  Branch (305:13): [True: 6.30k, False: 2.02k]
  ------------------
  306|  6.30k|        {
  307|  6.30k|            ::new (&inlined_) inlined_storage(other.inlined_);
  308|  6.30k|        }
  309|  2.02k|        else
  310|  2.02k|        {
  311|  2.02k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  312|  2.02k|        }
  313|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  314|       |# pragma GCC diagnostic pop
  315|       |#endif
  316|  8.32k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  178|  18.5k|            : is_allocated_(false),
  179|  18.5k|            is_negative_(stor.is_negative_),
  180|  18.5k|            size_(stor.size_)
  181|  18.5k|        {
  182|  18.5k|            values_[0] = stor.values_[0];
  183|  18.5k|            values_[1] = stor.values_[1];
  184|  18.5k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  209|  4.00k|            : is_allocated_(true),
  210|  4.00k|              is_negative_(stor.is_negative_),
  211|  4.00k|              size_(stor.size_),
  212|  4.00k|              capacity_(stor.capacity_)
  213|  4.00k|        {
  214|  4.00k|            real_allocator_type alloc(a);
  215|       |
  216|  4.00k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  217|  4.00k|            JSONCONS_TRY
  ------------------
  |  |   37|  4.00k|    #define JSONCONS_TRY try
  ------------------
  218|  4.00k|            {
  219|  4.00k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  220|  4.00k|            }
  221|  4.00k|            JSONCONS_CATCH(...)
  222|  4.00k|            {
  223|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  224|      0|                data_ = nullptr;
  225|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  226|      0|            }
  227|  4.00k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   49|  4.00k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 4.00k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  228|  4.00k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  229|  4.00k|        }
_ZN8jsonconsrmENS_12basic_bigintINSt3__19allocatorImEEEERKS4_:
 1561|  4.16k|    {
 1562|  4.16k|        return x %= y;
 1563|  4.16k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEErMERKS4_:
 1110|  4.16k|    {
 1111|  4.16k|        basic_bigint<Allocator> q;
 1112|  4.16k|        divide( divisor, q, *this, true );
 1113|  4.16k|        return *this;
 1114|  4.16k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  641|  4.67k|    basic_bigint() = default;
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1675|  4.67k|    {
 1676|  4.67k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1677|  4.67k|        auto denom_view = denom.get_storage_view();
 1678|       |
 1679|  4.67k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1679:13): [True: 9, False: 4.66k]
  ------------------
 1680|      9|        {
 1681|      9|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      9|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1682|      9|        }
 1683|  4.66k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1684|  4.66k|        bool rem_neg = is_negative();
 1685|  4.66k|        basic_bigint<Allocator> num(*this, get_allocator());
 1686|  4.66k|        num.set_negative(false);
 1687|  4.66k|        denom.set_negative(false);
 1688|  4.66k|        if ( num < denom )
  ------------------
  |  Branch (1688:14): [True: 2.07k, False: 2.59k]
  ------------------
 1689|  2.07k|        {
 1690|  2.07k|            quot = word_type(0);
 1691|  2.07k|            quot.set_negative(quot_neg);
 1692|  2.07k|            rem = num;
 1693|  2.07k|            rem.set_negative(rem_neg);
 1694|  2.07k|            return;
 1695|  2.07k|        }
 1696|       |
 1697|  2.59k|        auto num_view = num.get_storage_view();
 1698|  2.59k|        auto quot_view = quot.get_storage_view();
 1699|  2.59k|        auto this_view = get_storage_view();
 1700|       |
 1701|  2.59k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1701:14): [True: 1.37k, False: 1.21k]
  |  Branch (1701:40): [True: 0, False: 1.37k]
  ------------------
 1702|      0|        {
 1703|      0|            quot = word_type( num_view[0]/denom_view[0] );
 1704|      0|            rem = word_type( num_view[0]%denom_view[0] );
 1705|      0|            quot.set_negative(quot_neg);
 1706|      0|            rem.set_negative(rem_neg);
 1707|      0|            return;
 1708|      0|        }
 1709|  2.59k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1709:13): [True: 1.37k, False: 1.21k]
  |  Branch (1709:39): [True: 139, False: 1.23k]
  ------------------
 1710|    139|        {
 1711|       |            // Denominator fits into a half word
 1712|    139|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1713|    139|            quot.resize(this_view.size());
 1714|    139|            quot_view = quot.get_storage_view();
 1715|    417|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1715:48): [True: 278, False: 139]
  ------------------
 1716|    278|            {
 1717|    278|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1718|    278|                q1 = dividend/divisor;
 1719|    278|                r = dividend % divisor;
 1720|    278|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1721|    278|                q2 = dividend/divisor;
 1722|    278|                dHi = dividend % divisor;
 1723|    278|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1724|    278|            }
 1725|    139|            quot.reduce();
 1726|    139|            rem = dHi;
 1727|    139|            quot.set_negative(quot_neg);
 1728|    139|            rem.set_negative(rem_neg);
 1729|    139|            return;
 1730|    139|        }
 1731|  2.45k|        basic_bigint<Allocator> num0(num, get_allocator());
 1732|  2.45k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1733|  2.45k|        int x = 0;
 1734|  2.45k|        bool second_done = normalize(denom, num, x);
 1735|  2.45k|        denom_view = denom.get_storage_view();
 1736|  2.45k|        num_view = num.get_storage_view();
 1737|       |
 1738|  2.45k|        size_type l = denom_view.size() - 1;
 1739|  2.45k|        size_type n = num_view.size() - 1;
 1740|  2.45k|        quot.resize(n - l);
 1741|  2.45k|        quot_view = quot.get_storage_view();
 1742|  14.3k|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1742:46): [True: 11.8k, False: 2.45k]
  ------------------
 1743|  11.8k|        {
 1744|  11.8k|            quot_view[i] = 0;
 1745|  11.8k|        }
 1746|  2.45k|        rem = num;
 1747|  2.45k|        auto rem_view = rem.get_storage_view();
 1748|  2.45k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1748:14): [True: 133, False: 2.31k]
  ------------------
 1749|    133|        {
 1750|    133|            rem.resize(rem_view.size() + 1);
 1751|    133|            rem_view = rem.get_storage_view();
 1752|    133|            n++;
 1753|    133|            quot.resize(quot_view.size() + 1);
 1754|    133|            quot_view = quot.get_storage_view();
 1755|    133|        }
 1756|  2.45k|        word_type d = denom_view[l];
 1757|       |
 1758|  14.4k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1758:32): [True: 12.0k, False: 2.45k]
  ------------------
 1759|  12.0k|        {
 1760|  12.0k|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1761|  12.0k|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1762|  12.0k|            quot_view[k - l - 1] = q;
 1763|  12.0k|        }
 1764|  2.45k|        quot.reduce();
 1765|  2.45k|        quot.set_negative(quot_neg);
 1766|  2.45k|        if (remDesired)
  ------------------
  |  Branch (1766:13): [True: 1.94k, False: 509]
  ------------------
 1767|  1.94k|        {
 1768|  1.94k|            unnormalize(rem, x, second_done);
 1769|  1.94k|            rem.set_negative(rem_neg);
 1770|  1.94k|        }
 1771|  2.45k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  713|  14.2k|    {
  714|  14.2k|        return storage_.get_allocator();
  715|  14.2k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  676|  14.2k|        : storage_(other.storage_, alloc)
  677|  14.2k|    {
  678|  14.2k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  319|  14.2k|        : word_allocator_type(alloc)
  320|  14.2k|    {
  321|  14.2k|        if (!other.is_allocated())
  ------------------
  |  Branch (321:13): [True: 12.2k, False: 1.98k]
  ------------------
  322|  12.2k|        {
  323|  12.2k|            ::new (&inlined_) inlined_storage(other.inlined_);
  324|  12.2k|        }
  325|  1.98k|        else
  326|  1.98k|        {
  327|  1.98k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  328|  1.98k|        }
  329|  14.2k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1872|  2.45k|    {
 1873|  2.45k|        auto denom_view = denom.get_storage_view();
 1874|  2.45k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1874:13): [True: 0, False: 2.45k]
  ------------------
 1875|      0|        {
 1876|      0|            return false;
 1877|      0|        }
 1878|  2.45k|        size_type r = denom_view.size() - 1;
 1879|  2.45k|        word_type y = denom_view[r];
 1880|       |
 1881|  2.45k|        x = 0;
 1882|  46.4k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1882:17): [True: 44.0k, False: 2.45k]
  ------------------
 1883|  44.0k|        {
 1884|  44.0k|            y <<= 1;
 1885|  44.0k|            x++;
 1886|  44.0k|        }
 1887|  2.45k|        denom <<= x;
 1888|  2.45k|        num <<= x;
 1889|       |
 1890|  2.45k|        denom_view = denom.get_storage_view();
 1891|  2.45k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1891:14): [True: 1.21k, False: 1.23k]
  |  Branch (1891:23): [True: 509, False: 707]
  ------------------
 1892|    509|        {
 1893|    509|            denom *= max_word;
 1894|    509|            num *= max_word;
 1895|    509|            return true;
 1896|    509|        }
 1897|  1.94k|        return false;
 1898|  2.45k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1117|  4.90k|    {
 1118|  4.90k|        auto this_view = get_storage_view();
 1119|  4.90k|        size_type q = k / word_type_bits;
 1120|  4.90k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1120:14): [True: 0, False: 4.90k]
  ------------------
 1121|      0|        {
 1122|      0|            resize(this_view.size() + q);
 1123|      0|            this_view = get_storage_view();
 1124|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1124:50): [True: 0, False: 0]
  ------------------
 1125|      0|                this_view[i] = ( i < q ? 0 : this_view[i - q]);
  ------------------
  |  Branch (1125:34): [True: 0, False: 0]
  ------------------
 1126|      0|            k %= word_type_bits;
 1127|      0|        }
 1128|  4.90k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1128:14): [True: 3.63k, False: 1.27k]
  ------------------
 1129|  3.63k|        {
 1130|  3.63k|            size_type k1 = word_type_bits - k;
 1131|  3.63k|            word_type mask = (word_type(1) << k) - word_type(1);
 1132|  3.63k|            resize( this_view.size() + 1 );
 1133|  3.63k|            this_view = get_storage_view();
 1134|  22.8k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1134:50): [True: 19.1k, False: 3.63k]
  ------------------
 1135|  19.1k|            {
 1136|  19.1k|                this_view[i] <<= k;
 1137|  19.1k|                if ( i > 0 )
  ------------------
  |  Branch (1137:22): [True: 15.5k, False: 3.63k]
  ------------------
 1138|  15.5k|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1139|  19.1k|            }
 1140|  3.63k|        }
 1141|  4.90k|        reduce();
 1142|  4.90k|        return *this;
 1143|  4.90k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  998|  1.01k|    {
  999|  1.01k|        auto this_view = get_storage_view();
 1000|  1.01k|        size_type len0 = this_view.size();
 1001|  1.01k|        word_type dig = this_view[0];
 1002|  1.01k|        word_type carry = 0;
 1003|       |
 1004|  1.01k|        resize(this_view.size() + 1);
 1005|  1.01k|        this_view = get_storage_view();
 1006|       |
 1007|  1.01k|        size_type i = 0;
 1008|  3.52k|        for (; i < len0; i++ )
  ------------------
  |  Branch (1008:16): [True: 2.50k, False: 1.01k]
  ------------------
 1009|  2.50k|        {
 1010|  2.50k|            word_type hi;
 1011|  2.50k|            word_type lo;
 1012|  2.50k|            DDproduct( dig, y, hi, lo );
 1013|  2.50k|            this_view[i] = lo + carry;
 1014|  2.50k|            dig = this_view[i+1];
 1015|  2.50k|            carry = hi + (this_view[i] < lo);
 1016|  2.50k|        }
 1017|  1.01k|        this_view[i] = carry;
 1018|  1.01k|        reduce();
 1019|  1.01k|        return *this;
 1020|  1.01k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1799|  12.0k|    {
 1800|  12.0k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1801|  12.0k|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1802|  12.0k|        qHi = A/(dHi + 1);
 1803|       |        // This initial guess of qHi may be too small.
 1804|  12.0k|        middle = qHi * dLo;
 1805|  12.0k|        left = qHi * dHi;
 1806|  12.0k|        x = B - (middle << word_type_half_bits);
 1807|  12.0k|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1808|  12.0k|        B = x;
 1809|  12.0k|        dLo1 = dLo << word_type_half_bits;
 1810|       |        // Increase qHi if necessary:
 1811|  15.3k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1811:17): [True: 2.94k, False: 12.4k]
  |  Branch (1811:29): [True: 412, False: 12.0k]
  |  Branch (1811:41): [True: 386, False: 26]
  ------------------
 1812|  3.33k|        {
 1813|  3.33k|            x = B - dLo1;
 1814|  3.33k|            A -= dHi + (x > B);
 1815|  3.33k|            B = x;
 1816|  3.33k|            qHi++;
 1817|  3.33k|        }
 1818|  12.0k|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1819|       |        // This initial guess of qLo may be too small.
 1820|  12.0k|        right = qLo * dLo;
 1821|  12.0k|        middle = qLo * dHi;
 1822|  12.0k|        x = B - right;
 1823|  12.0k|        A -= (x > B);
 1824|  12.0k|        B = x;
 1825|  12.0k|        x = B - (middle << word_type_half_bits);
 1826|  12.0k|            A -= (middle >> word_type_half_bits) + (x > B);
 1827|  12.0k|        B = x;
 1828|       |        // Increase qLo if necessary:
 1829|  15.8k|        while ( A || B >= d )
  ------------------
  |  Branch (1829:17): [True: 286, False: 15.5k]
  |  Branch (1829:22): [True: 3.49k, False: 12.0k]
  ------------------
 1830|  3.77k|        {
 1831|  3.77k|            x = B - d;
 1832|  3.77k|            A -= (x > B);
 1833|  3.77k|            B = x;
 1834|  3.77k|            qLo++;
 1835|  3.77k|        }
 1836|  12.0k|        return (qHi << word_type_half_bits) + qLo;
 1837|  12.0k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1841|  12.0k|    {
 1842|  12.0k|        word_type hi, lo, d, carry = 0;
 1843|  12.0k|        size_type i;
 1844|  34.3k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1844:22): [True: 22.3k, False: 12.0k]
  ------------------
 1845|  22.3k|        {
 1846|  22.3k|            DDproduct( b[i], q, hi, lo );
 1847|  22.3k|            d = a[i];
 1848|  22.3k|            a[i] -= lo;
 1849|  22.3k|            if ( a[i] > d )
  ------------------
  |  Branch (1849:18): [True: 10.2k, False: 12.0k]
  ------------------
 1850|  10.2k|                carry++;
 1851|  22.3k|            d = a[i + 1];
 1852|  22.3k|            a[i + 1] -= hi + carry;
 1853|  22.3k|            carry = a[i + 1] > d;
 1854|  22.3k|        }
 1855|  12.0k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1855:14): [True: 2.77k, False: 9.25k]
  ------------------
 1856|  2.77k|        {
 1857|  2.77k|            q--;
 1858|  2.77k|            carry = 0;
 1859|  8.43k|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1859:26): [True: 5.65k, False: 2.77k]
  ------------------
 1860|  5.65k|            {
 1861|  5.65k|                d = a[i] + carry;
 1862|  5.65k|                carry = d < carry;
 1863|  5.65k|                a[i] = d + b[i];
 1864|  5.65k|                if ( a[i] < d )
  ------------------
  |  Branch (1864:22): [True: 3.76k, False: 1.89k]
  ------------------
 1865|  3.76k|                    carry = 1;
 1866|  5.65k|            }
 1867|  2.77k|            a[n] = 0;
 1868|  2.77k|        }
 1869|  12.0k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1901|  1.94k|    {
 1902|  1.94k|        if (secondDone)
  ------------------
  |  Branch (1902:13): [True: 509, False: 1.43k]
  ------------------
 1903|    509|        {
 1904|    509|            rem /= max_word;
 1905|    509|        }
 1906|  1.94k|        if ( x > 0 )
  ------------------
  |  Branch (1906:14): [True: 1.81k, False: 126]
  ------------------
 1907|  1.81k|        {
 1908|  1.81k|            rem >>= x;
 1909|  1.81k|        }
 1910|    126|        else
 1911|    126|        {
 1912|    126|            rem.reduce();
 1913|    126|        }
 1914|  1.94k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEdVERKS4_:
 1103|    509|    {
 1104|    509|        basic_bigint<Allocator> r;
 1105|    509|        divide( divisor, *this, r, false );
 1106|    509|        return *this;
 1107|    509|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEErSEm:
 1146|  1.81k|    {
 1147|  1.81k|        auto this_view = get_storage_view();
 1148|  1.81k|        size_type q = k / word_type_bits;
 1149|  1.81k|        if ( q >= this_view.size())
  ------------------
  |  Branch (1149:14): [True: 0, False: 1.81k]
  ------------------
 1150|      0|        {
 1151|      0|            resize( 0 );
 1152|      0|            return *this;
 1153|      0|        }
 1154|  1.81k|        if (q > 0)
  ------------------
  |  Branch (1154:13): [True: 0, False: 1.81k]
  ------------------
 1155|      0|        {
 1156|      0|            memmove( this_view.data(), this_view.data()+q, size_type((this_view.size() - q)*sizeof(word_type)) );
 1157|      0|            resize( size_type(this_view.size() - q) );
 1158|      0|            k %= word_type_bits;
 1159|      0|            if ( k == 0 )
  ------------------
  |  Branch (1159:18): [True: 0, False: 0]
  ------------------
 1160|      0|            {
 1161|      0|                reduce();
 1162|      0|                return *this;
 1163|      0|            }
 1164|      0|        }
 1165|       |
 1166|  1.81k|        this_view = get_storage_view();
 1167|  1.81k|        size_type n = size_type(this_view.size() - 1);
 1168|  1.81k|        ssize_type k1 = word_type_bits - k;
 1169|  1.81k|        word_type mask = (word_type(1) << k) - 1;
 1170|  15.2k|        for (size_type i = 0; i <= n; i++)
  ------------------
  |  Branch (1170:31): [True: 13.4k, False: 1.81k]
  ------------------
 1171|  13.4k|        {
 1172|  13.4k|            this_view[i] >>= k;
 1173|  13.4k|            if ( i < n )
  ------------------
  |  Branch (1173:18): [True: 11.5k, False: 1.81k]
  ------------------
 1174|  11.5k|                this_view[i] |= ((this_view[i+1] & mask) << k1);
 1175|  13.4k|        }
 1176|  1.81k|        reduce();
 1177|  1.81k|        return *this;
 1178|  1.81k|    }

_ZN8jsoncons10ext_traits16to_plain_pointerImEEPT_S3_:
  241|  4.00k|    {       
  242|  4.00k|        return (ptr);
  243|  4.00k|    }  

