LLVMFuzzerTestOneInput:
    7|  2.21k|{
    8|  2.21k|	std::string input(reinterpret_cast<const char*>(data), size);
    9|  2.21k|	try {
   10|  2.21k|        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.17k, False: 40]
  ------------------
   11|  2.17k|        {
   12|  2.17k|            bigint a("56654250564056135415631554531554513813");
   13|  2.17k|            bigint b(input);
   14|  2.17k|            bigint c = a % b;
   15|  2.17k|            bigint d = b % a;
   16|  2.17k|        }
   17|  2.21k|	}
   18|  2.21k|	catch (const std::runtime_error&) {}
   19|       |
   20|  2.21k|	return 0;
   21|  2.21k|}

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

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

