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.51k|    while (p < last && *p == '0')
  ------------------
  |  Branch (2059:12): [True: 6.50k, False: 8]
  |  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: 8, False: 4.29k]
  ------------------
 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.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: 124, False: 4.17k]
  ------------------
 2071|    124|    {
 2072|    124|        num_words = 1;
 2073|    124|    }
 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: 319k, False: 61]
  |  |  |  Branch (77:48): [True: 319k, False: 50]
  |  |  |  Branch (77:48): [True: 319k, False: 11]
  |  |  ------------------
  ------------------
 2086|   319k|        {
 2087|   319k|            v *= 10u;
 2088|   319k|            v += (word_type)(c - '0');
 2089|   319k|        }
 2090|     61|        else
 2091|     61|        {
 2092|     61|            return to_bigint_result<CharT>(data + i, std::errc::invalid_argument);
 2093|     61|        }
 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.90k, False: 2.09k]
  ------------------
  373|  8.90k|            {
  374|  8.90k|                common_.is_negative_ = other.common_.is_negative_;
  375|  8.90k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  376|  8.90k|            }
  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.68k, False: 15.2k]
  ------------------
  529|  7.68k|            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: 652k, False: 5.55k]
  ------------------
  540|   652k|        {
  541|   652k|            if (is_allocated())
  ------------------
  |  Branch (541:17): [True: 504k, False: 148k]
  ------------------
  542|   504k|            {
  543|   504k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  544|   504k|            }
  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|   652k|        }
  554|   658k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  452|   662k|    {
  453|   662k|       if (capacity() < n)
  ------------------
  |  Branch (453:12): [True: 8.51k, False: 654k]
  ------------------
  454|  8.51k|       {
  455|  8.51k|           if (!is_allocated())
  ------------------
  |  Branch (455:16): [True: 8.51k, False: 0]
  ------------------
  456|  8.51k|           {
  457|  8.51k|               size_type size = inlined_.size_;
  458|  8.51k|               size_type is_neg = inlined_.is_negative_;
  459|  8.51k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  460|       |
  461|  8.51k|               ::new (&allocated_) allocated_storage();
  462|  8.51k|               allocated_.reserve(n, get_allocator());
  463|  8.51k|               allocated_.size_ = size;
  464|  8.51k|               allocated_.is_negative_ = is_neg;
  465|  8.51k|               if (n >= 1)
  ------------------
  |  Branch (465:20): [True: 8.51k, False: 0]
  ------------------
  466|  8.51k|               {
  467|  8.51k|                   allocated_.data_[0] = values[0];
  468|  8.51k|               }
  469|  8.51k|               if (n >= 2)
  ------------------
  |  Branch (469:20): [True: 8.51k, False: 0]
  ------------------
  470|  8.51k|               {
  471|  8.51k|                   allocated_.data_[1] = values[1];
  472|  8.51k|               }
  473|  8.51k|           }
  474|      0|           else
  475|      0|           {
  476|      0|               allocated_.reserve(n, get_allocator());
  477|      0|           }
  478|  8.51k|       }
  479|   662k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  505|   662k|    {
  506|   662k|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (506:16): [True: 497k, False: 165k]
  ------------------
  507|   662k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  203|  8.51k|            : is_allocated_(true),
  204|  8.51k|            is_negative_(false)
  205|  8.51k|        {
  206|  8.51k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  255|  8.51k|        {
  256|  8.51k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   49|  8.51k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 8.51k]
  |  |  ------------------
  |  |   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.51k|            size_type capacity_new = round_up(n);
  258|       |
  259|  8.51k|            real_allocator_type alloc(a);
  260|  8.51k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  261|  8.51k|            if (size_ > 0)
  ------------------
  |  Branch (261:17): [True: 0, False: 8.51k]
  ------------------
  262|      0|            {
  263|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  264|      0|            }
  265|  8.51k|            if (data_ != nullptr)
  ------------------
  |  Branch (265:17): [True: 0, False: 8.51k]
  ------------------
  266|      0|            {
  267|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  268|      0|            }
  269|  8.51k|            capacity_ = capacity_new;
  270|  8.51k|            data_ = data_new;
  271|  8.51k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  275|  8.51k|        {
  276|  8.51k|            size_type remainder = i % mem_unit;
  277|  8.51k|            size_type off = mem_unit - remainder;
  278|  8.51k|            bool testoff = i < max_size - off;
  279|  8.51k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   49|  8.51k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 8.51k]
  |  |  ------------------
  |  |   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.51k|            return i + off;
  282|  8.51k|        }
_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.51M, False: 460k]
  ------------------
  522|  1.51M|            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.5k|        {
   80|  32.5k|            return data_;
   81|  32.5k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   79|  8.90k|        {
   80|  8.90k|            return data_;
   81|  8.90k|        }
_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|   319k|    {
  999|   319k|        auto this_view = get_storage_view();
 1000|   319k|        size_type len0 = this_view.size();
 1001|   319k|        word_type dig = this_view[0];
 1002|   319k|        word_type carry = 0;
 1003|       |
 1004|   319k|        resize(this_view.size() + 1);
 1005|   319k|        this_view = get_storage_view();
 1006|       |
 1007|   319k|        size_type i = 0;
 1008|  13.8M|        for (; i < len0; i++ )
  ------------------
  |  Branch (1008:16): [True: 13.5M, False: 319k]
  ------------------
 1009|  13.5M|        {
 1010|  13.5M|            word_type hi;
 1011|  13.5M|            word_type lo;
 1012|  13.5M|            DDproduct( dig, y, hi, lo );
 1013|  13.5M|            this_view[i] = lo + carry;
 1014|  13.5M|            dig = this_view[i+1];
 1015|  13.5M|            carry = hi + (this_view[i] < lo);
 1016|  13.5M|        }
 1017|   319k|        this_view[i] = carry;
 1018|   319k|        reduce();
 1019|   319k|        return *this;
 1020|   319k|    }
_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.4M|        {
   70|  42.4M|            return data_[i];
   71|  42.4M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  818|   647k|    {
  819|   647k|        storage_.resize(new_length);
  820|   647k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1781|  13.5M|    {
 1782|  13.5M|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1783|  13.5M|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1784|       |
 1785|  13.5M|        lo = loA * loB;
 1786|  13.5M|        hi = hiA * hiB;
 1787|  13.5M|        word_type mid1 = loA * hiB;
 1788|  13.5M|        word_type mid2 = hiA * loB;
 1789|  13.5M|        word_type old = lo;
 1790|  13.5M|        lo += mid1 << word_type_half_bits;
 1791|  13.5M|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1792|  13.5M|        old = lo;
 1793|  13.5M|        lo += mid2 << word_type_half_bits;
 1794|  13.5M|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1795|  13.5M|    }
_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.30k]
  ------------------
  436|  1.27M|            {
  437|  1.27M|                if ( *p )
  ------------------
  |  Branch (437:22): [True: 642k, False: 635k]
  ------------------
  438|   642k|                {
  439|   642k|                    break;
  440|   642k|                }
  441|   635k|                --common_.size_;
  442|   635k|                --p;
  443|   635k|            }
  444|   650k|        }
  445|   650k|        if (common_.size_ == 0)
  ------------------
  |  Branch (445:13): [True: 8.30k, False: 642k]
  ------------------
  446|  8.30k|        {
  447|  8.30k|            common_.is_negative_ = false;
  448|  8.30k|        }
  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|   319k|    {
  890|   319k|        if ( is_negative())
  ------------------
  |  Branch (890:14): [True: 0, False: 319k]
  ------------------
  891|      0|            return *this -= -basic_bigint<Allocator>(y);
  892|       |
  893|   319k|        word_type d;
  894|   319k|        word_type carry = 0;
  895|       |
  896|   319k|        auto this_view = get_storage_view();
  897|   319k|        resize(this_view.size() + 1);
  898|       |
  899|   319k|        this_view = get_storage_view();
  900|   319k|        const size_type this_size = this_view.size();
  901|   319k|        size_type y_size = 1;
  902|       |
  903|   319k|        d = this_view[0] + carry;
  904|   319k|        carry = d < carry;
  905|   319k|        this_view[0] = d + y;
  906|   319k|        if (this_view[0] < d)
  ------------------
  |  Branch (906:13): [True: 538, False: 319k]
  ------------------
  907|    538|            carry = 1;
  908|       |
  909|   320k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (909:36): [True: 314k, False: 6.31k]
  |  Branch (909:53): [True: 670, False: 313k]
  ------------------
  910|    670|        {
  911|    670|            d = this_view[i] + carry;
  912|    670|            carry = d < carry;
  913|    670|            this_view[i] = d;
  914|    670|        }
  915|   319k|        reduce();
  916|   319k|        return *this;
  917|   319k|    }
_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.73k|        : storage_(n, alloc)
  694|  2.73k|    {
  695|  2.73k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  2.73k|        : word_allocator_type(alloc)
  361|  2.73k|    {
  362|  2.73k|        ::new (&inlined_) inlined_storage(n);
  363|  2.73k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  2.73k|            : is_allocated_(false),
  139|  2.73k|            is_negative_(false),
  140|  2.73k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 2.08k, False: 644]
  ------------------
  141|  2.73k|        {
  142|  2.73k|            values_[0] = n;
  143|  2.73k|            values_[1] = 0;
  144|  2.73k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  723|  11.9k|    {
  724|  11.9k|        return storage_.get_storage_view();
  725|  11.9k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1641|  4.67k|    {
 1642|  4.67k|        auto this_view = get_storage_view();
 1643|  4.67k|        auto y_view = y.get_storage_view();
 1644|       |
 1645|  4.67k|        const size_type y_size = y_view.size();
 1646|  4.67k|        if ( this_view.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1646:14): [True: 0, False: 4.67k]
  |  Branch (1646:39): [True: 0, False: 0]
  ------------------
 1647|      0|            return 0;
 1648|  4.67k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1648:14): [True: 0, False: 4.67k]
  ------------------
 1649|      0|            return y.is_negative() - is_negative();
 1650|  4.67k|        int code = 0;
 1651|  4.67k|        if ( this_view.size() < y_size)
  ------------------
  |  Branch (1651:14): [True: 1.19k, False: 3.48k]
  ------------------
 1652|  1.19k|            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: 892, False: 910]
  ------------------
 1660|    892|                {
 1661|    892|                    code = 1;
 1662|    892|                    break;
 1663|    892|                }
 1664|    910|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1664:26): [True: 892, False: 18]
  ------------------
 1665|    892|                {
 1666|    892|                    code = -1;
 1667|    892|                    break;
 1668|    892|                }
 1669|  1.80k|            }
 1670|  1.78k|        }
 1671|  4.67k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1671:16): [True: 0, False: 4.67k]
  ------------------
 1672|  4.67k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1476|  4.67k|    {
 1477|  4.67k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1477:15): [True: 2.08k, False: 2.59k]
  ------------------
 1478|  4.67k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   69|  5.99k|        {
   70|  5.99k|            return data_[i];
   71|  5.99k|        }
_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: 26.0k]
  ------------------
  489|  12.5k|        {
  490|  12.5k|            allocated_.destroy(get_allocator());
  491|  12.5k|            allocated_.~allocated_storage();
  492|  12.5k|        }
  493|  26.0k|        else
  494|  26.0k|        {
  495|  26.0k|            inlined_.~inlined_storage();
  496|  26.0k|        }
  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: 62, False: 2.09k]
  ------------------
  702|     62|        {
  703|     62|            JSONCONS_THROW(std::system_error((int)r.ec, std::system_category()));
  ------------------
  |  |   35|     62|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  704|     62|        }
  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: 2, False: 2.15k]
  ------------------
 2142|      2|    {
 2143|      2|        return jsoncons::detail::to_bigint(data+1, length-1, true, value, std::allocator<uint64_t>{}); 
 2144|      2|    }
 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.34k|        : storage_(other.storage_)
  672|  8.34k|    {
  673|  8.34k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  299|  8.34k|        : word_allocator_type(other.get_allocator())
  300|  8.34k|    {
  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.34k|        if (!other.is_allocated())
  ------------------
  |  Branch (305:13): [True: 6.31k, False: 2.02k]
  ------------------
  306|  6.31k|        {
  307|  6.31k|            ::new (&inlined_) inlined_storage(other.inlined_);
  308|  6.31k|        }
  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.34k|    }
_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.01k|            : is_allocated_(true),
  210|  4.01k|              is_negative_(stor.is_negative_),
  211|  4.01k|              size_(stor.size_),
  212|  4.01k|              capacity_(stor.capacity_)
  213|  4.01k|        {
  214|  4.01k|            real_allocator_type alloc(a);
  215|       |
  216|  4.01k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  217|  4.01k|            JSONCONS_TRY
  ------------------
  |  |   37|  4.01k|    #define JSONCONS_TRY try
  ------------------
  218|  4.01k|            {
  219|  4.01k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  220|  4.01k|            }
  221|  4.01k|            JSONCONS_CATCH(...)
  222|  4.01k|            {
  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.01k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   49|  4.01k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 4.01k]
  |  |  ------------------
  |  |   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.01k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  229|  4.01k|        }
_ZN8jsonconsrmENS_12basic_bigintINSt3__19allocatorImEEEERKS4_:
 1561|  4.17k|    {
 1562|  4.17k|        return x %= y;
 1563|  4.17k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEErMERKS4_:
 1110|  4.17k|    {
 1111|  4.17k|        basic_bigint<Allocator> q;
 1112|  4.17k|        divide( divisor, q, *this, true );
 1113|  4.17k|        return *this;
 1114|  4.17k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  641|  4.68k|    basic_bigint() = default;
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1675|  4.68k|    {
 1676|  4.68k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1677|  4.68k|        auto denom_view = denom.get_storage_view();
 1678|       |
 1679|  4.68k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1679:13): [True: 8, False: 4.67k]
  ------------------
 1680|      8|        {
 1681|      8|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      8|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1682|      8|        }
 1683|  4.67k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1684|  4.67k|        bool rem_neg = is_negative();
 1685|  4.67k|        basic_bigint<Allocator> num(*this, get_allocator());
 1686|  4.67k|        num.set_negative(false);
 1687|  4.67k|        denom.set_negative(false);
 1688|  4.67k|        if ( num < denom )
  ------------------
  |  Branch (1688:14): [True: 2.08k, False: 2.59k]
  ------------------
 1689|  2.08k|        {
 1690|  2.08k|            quot = word_type(0);
 1691|  2.08k|            quot.set_negative(quot_neg);
 1692|  2.08k|            rem = num;
 1693|  2.08k|            rem.set_negative(rem_neg);
 1694|  2.08k|            return;
 1695|  2.08k|        }
 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.22k]
  |  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.22k]
  |  Branch (1709:39): [True: 142, False: 1.22k]
  ------------------
 1710|    142|        {
 1711|       |            // Denominator fits into a half word
 1712|    142|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1713|    142|            quot.resize(this_view.size());
 1714|    142|            quot_view = quot.get_storage_view();
 1715|    426|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1715:48): [True: 284, False: 142]
  ------------------
 1716|    284|            {
 1717|    284|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1718|    284|                q1 = dividend/divisor;
 1719|    284|                r = dividend % divisor;
 1720|    284|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1721|    284|                q2 = dividend/divisor;
 1722|    284|                dHi = dividend % divisor;
 1723|    284|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1724|    284|            }
 1725|    142|            quot.reduce();
 1726|    142|            rem = dHi;
 1727|    142|            quot.set_negative(quot_neg);
 1728|    142|            rem.set_negative(rem_neg);
 1729|    142|            return;
 1730|    142|        }
 1731|  2.44k|        basic_bigint<Allocator> num0(num, get_allocator());
 1732|  2.44k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1733|  2.44k|        int x = 0;
 1734|  2.44k|        bool second_done = normalize(denom, num, x);
 1735|  2.44k|        denom_view = denom.get_storage_view();
 1736|  2.44k|        num_view = num.get_storage_view();
 1737|       |
 1738|  2.44k|        size_type l = denom_view.size() - 1;
 1739|  2.44k|        size_type n = num_view.size() - 1;
 1740|  2.44k|        quot.resize(n - l);
 1741|  2.44k|        quot_view = quot.get_storage_view();
 1742|  14.1k|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1742:46): [True: 11.6k, False: 2.44k]
  ------------------
 1743|  11.6k|        {
 1744|  11.6k|            quot_view[i] = 0;
 1745|  11.6k|        }
 1746|  2.44k|        rem = num;
 1747|  2.44k|        auto rem_view = rem.get_storage_view();
 1748|  2.44k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1748:14): [True: 130, False: 2.31k]
  ------------------
 1749|    130|        {
 1750|    130|            rem.resize(rem_view.size() + 1);
 1751|    130|            rem_view = rem.get_storage_view();
 1752|    130|            n++;
 1753|    130|            quot.resize(quot_view.size() + 1);
 1754|    130|            quot_view = quot.get_storage_view();
 1755|    130|        }
 1756|  2.44k|        word_type d = denom_view[l];
 1757|       |
 1758|  14.2k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1758:32): [True: 11.8k, False: 2.44k]
  ------------------
 1759|  11.8k|        {
 1760|  11.8k|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1761|  11.8k|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1762|  11.8k|            quot_view[k - l - 1] = q;
 1763|  11.8k|        }
 1764|  2.44k|        quot.reduce();
 1765|  2.44k|        quot.set_negative(quot_neg);
 1766|  2.44k|        if (remDesired)
  ------------------
  |  Branch (1766:13): [True: 1.94k, False: 507]
  ------------------
 1767|  1.94k|        {
 1768|  1.94k|            unnormalize(rem, x, second_done);
 1769|  1.94k|            rem.set_negative(rem_neg);
 1770|  1.94k|        }
 1771|  2.44k|    }
_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.99k]
  ------------------
  322|  12.2k|        {
  323|  12.2k|            ::new (&inlined_) inlined_storage(other.inlined_);
  324|  12.2k|        }
  325|  1.99k|        else
  326|  1.99k|        {
  327|  1.99k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  328|  1.99k|        }
  329|  14.2k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1872|  2.44k|    {
 1873|  2.44k|        auto denom_view = denom.get_storage_view();
 1874|  2.44k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1874:13): [True: 0, False: 2.44k]
  ------------------
 1875|      0|        {
 1876|      0|            return false;
 1877|      0|        }
 1878|  2.44k|        size_type r = denom_view.size() - 1;
 1879|  2.44k|        word_type y = denom_view[r];
 1880|       |
 1881|  2.44k|        x = 0;
 1882|  46.0k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1882:17): [True: 43.5k, False: 2.44k]
  ------------------
 1883|  43.5k|        {
 1884|  43.5k|            y <<= 1;
 1885|  43.5k|            x++;
 1886|  43.5k|        }
 1887|  2.44k|        denom <<= x;
 1888|  2.44k|        num <<= x;
 1889|       |
 1890|  2.44k|        denom_view = denom.get_storage_view();
 1891|  2.44k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1891:14): [True: 1.22k, False: 1.22k]
  |  Branch (1891:23): [True: 507, False: 713]
  ------------------
 1892|    507|        {
 1893|    507|            denom *= max_word;
 1894|    507|            num *= max_word;
 1895|    507|            return true;
 1896|    507|        }
 1897|  1.94k|        return false;
 1898|  2.44k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1117|  4.89k|    {
 1118|  4.89k|        auto this_view = get_storage_view();
 1119|  4.89k|        size_type q = k / word_type_bits;
 1120|  4.89k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1120:14): [True: 0, False: 4.89k]
  ------------------
 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.89k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1128:14): [True: 3.62k, False: 1.27k]
  ------------------
 1129|  3.62k|        {
 1130|  3.62k|            size_type k1 = word_type_bits - k;
 1131|  3.62k|            word_type mask = (word_type(1) << k) - word_type(1);
 1132|  3.62k|            resize( this_view.size() + 1 );
 1133|  3.62k|            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.62k]
  ------------------
 1135|  18.9k|            {
 1136|  18.9k|                this_view[i] <<= k;
 1137|  18.9k|                if ( i > 0 )
  ------------------
  |  Branch (1137:22): [True: 15.3k, False: 3.62k]
  ------------------
 1138|  15.3k|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1139|  18.9k|            }
 1140|  3.62k|        }
 1141|  4.89k|        reduce();
 1142|  4.89k|        return *this;
 1143|  4.89k|    }
_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.51k|        for (; i < len0; i++ )
  ------------------
  |  Branch (1008:16): [True: 2.49k, False: 1.01k]
  ------------------
 1009|  2.49k|        {
 1010|  2.49k|            word_type hi;
 1011|  2.49k|            word_type lo;
 1012|  2.49k|            DDproduct( dig, y, hi, lo );
 1013|  2.49k|            this_view[i] = lo + carry;
 1014|  2.49k|            dig = this_view[i+1];
 1015|  2.49k|            carry = hi + (this_view[i] < lo);
 1016|  2.49k|        }
 1017|  1.01k|        this_view[i] = carry;
 1018|  1.01k|        reduce();
 1019|  1.01k|        return *this;
 1020|  1.01k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1799|  11.8k|    {
 1800|  11.8k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1801|  11.8k|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1802|  11.8k|        qHi = A/(dHi + 1);
 1803|       |        // This initial guess of qHi may be too small.
 1804|  11.8k|        middle = qHi * dLo;
 1805|  11.8k|        left = qHi * dHi;
 1806|  11.8k|        x = B - (middle << word_type_half_bits);
 1807|  11.8k|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1808|  11.8k|        B = x;
 1809|  11.8k|        dLo1 = dLo << word_type_half_bits;
 1810|       |        // Increase qHi if necessary:
 1811|  15.0k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1811:17): [True: 2.88k, False: 12.2k]
  |  Branch (1811:29): [True: 417, False: 11.7k]
  |  Branch (1811:41): [True: 390, False: 27]
  ------------------
 1812|  3.27k|        {
 1813|  3.27k|            x = B - dLo1;
 1814|  3.27k|            A -= dHi + (x > B);
 1815|  3.27k|            B = x;
 1816|  3.27k|            qHi++;
 1817|  3.27k|        }
 1818|  11.8k|        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.8k|        right = qLo * dLo;
 1821|  11.8k|        middle = qLo * dHi;
 1822|  11.8k|        x = B - right;
 1823|  11.8k|        A -= (x > B);
 1824|  11.8k|        B = x;
 1825|  11.8k|        x = B - (middle << word_type_half_bits);
 1826|  11.8k|            A -= (middle >> word_type_half_bits) + (x > B);
 1827|  11.8k|        B = x;
 1828|       |        // Increase qLo if necessary:
 1829|  15.5k|        while ( A || B >= d )
  ------------------
  |  Branch (1829:17): [True: 286, False: 15.2k]
  |  Branch (1829:22): [True: 3.40k, False: 11.8k]
  ------------------
 1830|  3.69k|        {
 1831|  3.69k|            x = B - d;
 1832|  3.69k|            A -= (x > B);
 1833|  3.69k|            B = x;
 1834|  3.69k|            qLo++;
 1835|  3.69k|        }
 1836|  11.8k|        return (qHi << word_type_half_bits) + qLo;
 1837|  11.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1841|  11.8k|    {
 1842|  11.8k|        word_type hi, lo, d, carry = 0;
 1843|  11.8k|        size_type i;
 1844|  33.7k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1844:22): [True: 21.9k, False: 11.8k]
  ------------------
 1845|  21.9k|        {
 1846|  21.9k|            DDproduct( b[i], q, hi, lo );
 1847|  21.9k|            d = a[i];
 1848|  21.9k|            a[i] -= lo;
 1849|  21.9k|            if ( a[i] > d )
  ------------------
  |  Branch (1849:18): [True: 9.93k, False: 11.9k]
  ------------------
 1850|  9.93k|                carry++;
 1851|  21.9k|            d = a[i + 1];
 1852|  21.9k|            a[i + 1] -= hi + carry;
 1853|  21.9k|            carry = a[i + 1] > d;
 1854|  21.9k|        }
 1855|  11.8k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1855:14): [True: 2.73k, False: 9.08k]
  ------------------
 1856|  2.73k|        {
 1857|  2.73k|            q--;
 1858|  2.73k|            carry = 0;
 1859|  8.30k|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1859:26): [True: 5.57k, False: 2.73k]
  ------------------
 1860|  5.57k|            {
 1861|  5.57k|                d = a[i] + carry;
 1862|  5.57k|                carry = d < carry;
 1863|  5.57k|                a[i] = d + b[i];
 1864|  5.57k|                if ( a[i] < d )
  ------------------
  |  Branch (1864:22): [True: 3.70k, False: 1.86k]
  ------------------
 1865|  3.70k|                    carry = 1;
 1866|  5.57k|            }
 1867|  2.73k|            a[n] = 0;
 1868|  2.73k|        }
 1869|  11.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1901|  1.94k|    {
 1902|  1.94k|        if (secondDone)
  ------------------
  |  Branch (1902:13): [True: 507, False: 1.43k]
  ------------------
 1903|    507|        {
 1904|    507|            rem /= max_word;
 1905|    507|        }
 1906|  1.94k|        if ( x > 0 )
  ------------------
  |  Branch (1906:14): [True: 1.81k, False: 131]
  ------------------
 1907|  1.81k|        {
 1908|  1.81k|            rem >>= x;
 1909|  1.81k|        }
 1910|    131|        else
 1911|    131|        {
 1912|    131|            rem.reduce();
 1913|    131|        }
 1914|  1.94k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEdVERKS4_:
 1103|    507|    {
 1104|    507|        basic_bigint<Allocator> r;
 1105|    507|        divide( divisor, *this, r, false );
 1106|    507|        return *this;
 1107|    507|    }
_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.0k|        for (size_type i = 0; i <= n; i++)
  ------------------
  |  Branch (1170:31): [True: 13.1k, False: 1.81k]
  ------------------
 1171|  13.1k|        {
 1172|  13.1k|            this_view[i] >>= k;
 1173|  13.1k|            if ( i < n )
  ------------------
  |  Branch (1173:18): [True: 11.3k, False: 1.81k]
  ------------------
 1174|  11.3k|                this_view[i] |= ((this_view[i+1] & mask) << k1);
 1175|  13.1k|        }
 1176|  1.81k|        reduce();
 1177|  1.81k|        return *this;
 1178|  1.81k|    }

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

