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

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IcEEPKT_RKS3_:
  639|  2.28k|        : storage_(alloc)
  640|  2.28k|    {
  641|  2.28k|        auto r = jsoncons::to_bigint(s, std::char_traits<CharT>::length(s), *this, alloc);
  642|  2.28k|        if (r.ec != std::errc{})
  ------------------
  |  Branch (642:13): [True: 0, False: 2.28k]
  ------------------
  643|      0|        {
  644|      0|            JSONCONS_THROW(std::system_error((int)r.ec, std::system_category()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  645|      0|        }
  646|  2.28k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  289|  9.43k|        : word_allocator_type(alloc)
  290|  9.43k|    {
  291|  9.43k|        ::new (&inlined_) inlined_storage();
  292|  9.43k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  112|  9.43k|            : is_allocated_(false),
  113|  9.43k|            is_negative_(false),
  114|  9.43k|            size_(0),
  115|  9.43k|            values_{0, 0}
  116|  9.43k|        {
  117|  9.43k|        }
_ZN8jsoncons9to_bigintIcNSt3__19allocatorImEEEENS_16to_bigint_resultIT_EEPKS5_mRNS_12basic_bigintIT0_EERKSA_:
 2046|  2.28k|{
 2047|  2.28k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  2.28k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.28k]
  |  |  ------------------
  ------------------
 2048|      0|    {
 2049|      0|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2050|      0|    }
 2051|       |
 2052|  2.28k|    if (*data == '-')
  ------------------
  |  Branch (2052:9): [True: 0, False: 2.28k]
  ------------------
 2053|      0|    {
 2054|      0|        return jsoncons::detail::to_bigint(data + 1, length - 1, true, value, alloc);
 2055|      0|    }
 2056|  2.28k|    else
 2057|  2.28k|    {
 2058|  2.28k|        return jsoncons::detail::to_bigint(data, length, false, value, alloc);
 2059|  2.28k|    }
 2060|  2.28k|}
_ZN8jsoncons16to_bigint_resultIcEC2EPKcNSt3__14errcE:
  558|  4.56k|        : ptr(ptr_), ec(ec_)
  559|  4.56k|    {
  560|  4.56k|    }
_ZN8jsoncons6detail9to_bigintIcNSt3__19allocatorImEEEENS_16to_bigint_resultIT_EEPKS6_mbRNS_12basic_bigintIT0_EERKSB_:
 1979|  4.56k|{
 1980|  4.56k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  4.56k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 4.56k]
  |  |  ------------------
  ------------------
 1981|      1|    {
 1982|      1|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 1983|      1|    }
 1984|       |
 1985|  4.56k|    using word_type = typename basic_bigint<Allocator>::word_type;
 1986|       |
 1987|  4.56k|    const CharT* last = data + length;
 1988|  4.56k|    const CharT* p = data;
 1989|       |
 1990|  11.9k|    while (p < last && *p == '0')
  ------------------
  |  Branch (1990:12): [True: 11.9k, False: 8]
  |  Branch (1990:24): [True: 7.39k, False: 4.55k]
  ------------------
 1991|  7.39k|    {
 1992|  7.39k|        ++p;
 1993|  7.39k|    }
 1994|  4.56k|    if (p == last)
  ------------------
  |  Branch (1994:9): [True: 8, False: 4.55k]
  ------------------
 1995|      8|    {
 1996|      8|        value = std::move(basic_bigint<Allocator>{0, alloc});
 1997|      8|        return to_bigint_result<CharT>(last, std::errc{});
 1998|      8|    }
 1999|  4.55k|    std::size_t num_digits = last - data;
 2000|  4.55k|    std::size_t num_words;
 2001|  4.55k|    if (length < 10)
  ------------------
  |  Branch (2001:9): [True: 146, False: 4.41k]
  ------------------
 2002|    146|    {
 2003|    146|        num_words = 1;
 2004|    146|    }
 2005|  4.41k|    else
 2006|  4.41k|    {
 2007|  4.41k|        std::size_t num_bits = (std::size_t)(((num_digits * detail::bits_per_digit[10]) >> 10) + 1);
 2008|  4.41k|        num_words = (num_bits + 63) >> 6;
 2009|  4.41k|    }
 2010|       |
 2011|  4.55k|    basic_bigint<Allocator> v(0, alloc);
 2012|  4.55k|    v.reserve(num_words);
 2013|   325k|    for (std::size_t i = 0; i < length; i++)
  ------------------
  |  Branch (2013:29): [True: 321k, False: 4.49k]
  ------------------
 2014|   321k|    {
 2015|   321k|        CharT c = data[i];
 2016|   321k|        switch (c)
 2017|   321k|        {
 2018|   321k|            case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (2018:13): [True: 125k, False: 195k]
  |  Branch (2018:22): [True: 24.2k, False: 296k]
  |  Branch (2018:31): [True: 12.0k, False: 309k]
  |  Branch (2018:40): [True: 22.3k, False: 298k]
  |  Branch (2018:49): [True: 25.1k, False: 296k]
  |  Branch (2018:58): [True: 42.9k, False: 278k]
  |  Branch (2018:67): [True: 24.0k, False: 297k]
  |  Branch (2018:76): [True: 9.18k, False: 311k]
  |  Branch (2018:85): [True: 11.9k, False: 309k]
  |  Branch (2018:95): [True: 23.6k, False: 297k]
  ------------------
 2019|   321k|                v = (v * 10u) + (word_type)(c - '0');
 2020|   321k|                break;
 2021|     66|            default:
  ------------------
  |  Branch (2021:13): [True: 66, False: 321k]
  ------------------
 2022|     66|                return to_bigint_result<CharT>(data + i, std::errc::invalid_argument);
 2023|   321k|        }
 2024|   321k|    }
 2025|       |
 2026|       |    //auto view = v.get_storage_view();
 2027|       |    //if (num_words != view.size())
 2028|       |    //{
 2029|       |    //    std::cout << "Unexpected num_words! num_words: " << num_words << ", " << num_words << ", size: " << view.size() << "\n";
 2030|       |    //}
 2031|       |
 2032|  4.49k|    if (neg)
  ------------------
  |  Branch (2032:9): [True: 7, False: 4.48k]
  ------------------
 2033|      7|    {
 2034|      7|        v.set_negative(true);
 2035|      7|    }
 2036|       |
 2037|  4.49k|    value = std::move(v);
 2038|  4.49k|    return to_bigint_result<CharT>(last, std::errc{});
 2039|  4.55k|}
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IiEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  682|  4.56k|        : storage_(n, alloc)
  683|  4.56k|    {
  684|  4.56k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  349|  4.56k|        : word_allocator_type(alloc)
  350|  4.56k|    {
  351|  4.56k|        ::new (&inlined_) inlined_storage(n);
  352|  4.56k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  124|  4.56k|            : is_allocated_(false),
  125|  4.56k|            is_negative_(n < 0),
  126|  4.56k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (126:19): [True: 4.56k, False: 0]
  ------------------
  127|  4.56k|        {
  128|  4.56k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (128:26): [True: 0, False: 4.56k]
  ------------------
  129|  4.56k|            values_[1] = 0;
  130|  4.56k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  848|   332k|    {
  849|   332k|        storage_ = y.storage_;
  850|   332k|        return *this;
  851|   332k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  355|   332k|    {
  356|   332k|        if (this != &other)
  ------------------
  |  Branch (356:13): [True: 332k, False: 0]
  ------------------
  357|   332k|        {
  358|   332k|            auto other_view = other.get_storage_view();
  359|   332k|            resize(other_view.size());
  360|   332k|            auto this_view = get_storage_view();
  361|   332k|            if (other_view.size() > 0)
  ------------------
  |  Branch (361:17): [True: 323k, False: 9.41k]
  ------------------
  362|   323k|            {
  363|   323k|                common_.is_negative_ = other.common_.is_negative_;
  364|   323k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  365|   323k|            }
  366|   332k|        }
  367|   332k|        return *this;
  368|   332k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  516|   666k|    {
  517|   666k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (517:16): [True: 252k, False: 413k]
  ------------------
  518|   252k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  519|   666k|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  520|   666k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   63|   666k|            : data_(data), size_(size)
   64|   666k|        {
   65|   666k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  523|   982k|    {
  524|   982k|        size_type old_length = common_.size_;
  525|   982k|        reserve(new_length);
  526|   982k|        common_.size_ = new_length;
  527|       |
  528|   982k|        if (old_length < new_length)
  ------------------
  |  Branch (528:13): [True: 672k, False: 309k]
  ------------------
  529|   672k|        {
  530|   672k|            if (is_allocated())
  ------------------
  |  Branch (530:17): [True: 510k, False: 162k]
  ------------------
  531|   510k|            {
  532|   510k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  533|   510k|            }
  534|   162k|            else
  535|   162k|            {
  536|   162k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   45|   162k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 162k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  537|   344k|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (537:48): [True: 181k, False: 162k]
  ------------------
  538|   181k|                {
  539|   181k|                    inlined_.values_[i] = 0;
  540|   181k|                }
  541|   162k|            }
  542|   672k|        }
  543|   982k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  441|   987k|    {
  442|   987k|       if (capacity() < n)
  ------------------
  |  Branch (442:12): [True: 56.4k, False: 930k]
  ------------------
  443|  56.4k|       {
  444|  56.4k|           if (!is_allocated())
  ------------------
  |  Branch (444:16): [True: 56.4k, False: 0]
  ------------------
  445|  56.4k|           {
  446|  56.4k|               size_type size = inlined_.size_;
  447|  56.4k|               size_type is_neg = inlined_.is_negative_;
  448|  56.4k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  449|       |
  450|  56.4k|               ::new (&allocated_) allocated_storage();
  451|  56.4k|               allocated_.reserve(n, get_allocator());
  452|  56.4k|               allocated_.size_ = size;
  453|  56.4k|               allocated_.is_negative_ = is_neg;
  454|  56.4k|               if (n >= 1)
  ------------------
  |  Branch (454:20): [True: 56.4k, False: 0]
  ------------------
  455|  56.4k|               {
  456|  56.4k|                   allocated_.data_[0] = values[0];
  457|  56.4k|               }
  458|  56.4k|               if (n >= 2)
  ------------------
  |  Branch (458:20): [True: 56.4k, False: 0]
  ------------------
  459|  56.4k|               {
  460|  56.4k|                   allocated_.data_[1] = values[1];
  461|  56.4k|               }
  462|  56.4k|           }
  463|      0|           else
  464|      0|           {
  465|      0|               allocated_.reserve(n, get_allocator());
  466|      0|           }
  467|  56.4k|       }
  468|   987k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  494|   987k|    {
  495|   987k|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (495:16): [True: 642k, False: 345k]
  ------------------
  496|   987k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  201|  56.4k|            : is_allocated_(true),
  202|  56.4k|            is_negative_(false)
  203|  56.4k|        {
  204|  56.4k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  253|  56.4k|        {
  254|  56.4k|            size_type capacity_new = round_up(n);
  255|       |
  256|  56.4k|            real_allocator_type alloc(a);
  257|  56.4k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  258|  56.4k|            if (size_ > 0)
  ------------------
  |  Branch (258:17): [True: 0, False: 56.4k]
  ------------------
  259|      0|            {
  260|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  261|      0|            }
  262|  56.4k|            if (data_ != nullptr)
  ------------------
  |  Branch (262:17): [True: 0, False: 56.4k]
  ------------------
  263|      0|            {
  264|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  265|      0|            }
  266|  56.4k|            capacity_ = capacity_new;
  267|  56.4k|            data_ = data_new;
  268|  56.4k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  272|   751k|        {
  273|       |            //if (i == (std::numeric_limits<size_type>::max)())
  274|       |            //{
  275|       |            //    return i;
  276|       |            //}
  277|   751k|            return ((i + 1/3) / mem_unit + 1) * mem_unit;
  278|   751k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  471|  2.48M|    {
  472|  2.48M|        return static_cast<const word_allocator_type&>(*this);
  473|  2.48M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  489|  4.02M|    {
  490|  4.02M|        return common_.is_allocated_;
  491|  4.02M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   83|  2.04M|        {
   84|  2.04M|            return size_;
   85|  2.04M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  509|  2.30M|    {
  510|  2.30M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (510:16): [True: 1.65M, False: 655k]
  ------------------
  511|  1.65M|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  512|  2.30M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  513|  2.30M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   63|  2.30M|            : data_(data), size_(size)
   64|  2.30M|        {
   65|  2.30M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   78|   346k|        {
   79|   346k|            return data_;
   80|   346k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   78|   323k|        {
   79|   323k|            return data_;
   80|   323k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE7reserveEm:
  829|  4.55k|    {
  830|  4.55k|        storage_.reserve(n);
  831|  4.55k|    }
_ZN8jsonconsplENS_12basic_bigintINSt3__19allocatorImEEEEl:
 1454|   321k|    {
 1455|   321k|        return x += y;
 1456|   321k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  682|   321k|        : storage_(n, alloc)
  683|   321k|    {
  684|   321k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  349|   321k|        : word_allocator_type(alloc)
  350|   321k|    {
  351|   321k|        ::new (&inlined_) inlined_storage(n);
  352|   321k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  124|   321k|            : is_allocated_(false),
  125|   321k|            is_negative_(n < 0),
  126|   321k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (126:19): [True: 125k, False: 195k]
  ------------------
  127|   321k|        {
  128|   321k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (128:26): [True: 0, False: 321k]
  ------------------
  129|   321k|            values_[1] = 0;
  130|   321k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  854|   321k|    {
  855|   321k|        auto y_view = y.get_storage_view();
  856|       |        
  857|   321k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (857:14): [True: 0, False: 321k]
  ------------------
  858|      0|            return *this -= -y;
  859|   321k|        word_type d;
  860|   321k|        word_type carry = 0;
  861|       |
  862|   321k|        auto this_view = get_storage_view();
  863|   321k|        resize( (std::max)(y_view.size(), this_view.size()) + 1 );
  864|   321k|        this_view = get_storage_view();
  865|       |
  866|   517k|        for (size_type i = 0; i < this_view.size(); i++ )
  ------------------
  |  Branch (866:31): [True: 517k, False: 29]
  ------------------
  867|   517k|        {
  868|   517k|            if ( i >= y_view.size() && carry == 0 )
  ------------------
  |  Branch (868:18): [True: 321k, False: 195k]
  |  Branch (868:40): [True: 321k, False: 410]
  ------------------
  869|   321k|                break;
  870|   196k|            d = this_view[i] + carry;
  871|   196k|            carry = d < carry;
  872|   196k|            if ( i < y_view.size())
  ------------------
  |  Branch (872:18): [True: 195k, False: 410]
  ------------------
  873|   195k|            {
  874|   195k|                this_view[i] = d + y_view[i];
  875|   195k|                if (this_view[i] < d)
  ------------------
  |  Branch (875:21): [True: 361, False: 195k]
  ------------------
  876|    361|                    carry = 1;
  877|   195k|            }
  878|    410|            else
  879|    410|            {
  880|    410|                this_view[i] = d;
  881|    410|            }
  882|   196k|        }
  883|   321k|        reduce();
  884|   321k|        return *this;
  885|   321k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  712|   333k|    {
  713|   333k|        return storage_.get_storage_view();
  714|   333k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  717|   671k|    {
  718|   671k|        return storage_.is_negative();
  719|   671k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  499|   671k|    {
  500|   671k|        return common_.is_negative_;
  501|   671k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1574|  4.86k|    {
 1575|  4.86k|        auto this_view = get_storage_view();
 1576|  4.86k|        auto y_view = y.get_storage_view();
 1577|       |
 1578|  4.86k|        if ( this_view.size() == 0 && y_view.size() == 0 )
  ------------------
  |  Branch (1578:14): [True: 0, False: 4.86k]
  |  Branch (1578:39): [True: 0, False: 0]
  ------------------
 1579|      0|            return 0;
 1580|  4.86k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1580:14): [True: 0, False: 4.86k]
  ------------------
 1581|      0|            return y.is_negative() - is_negative();
 1582|  4.86k|        int code = 0;
 1583|  4.86k|        if ( this_view.size() < y_view.size())
  ------------------
  |  Branch (1583:14): [True: 1.32k, False: 3.53k]
  ------------------
 1584|  1.32k|            code = -1;
 1585|  3.53k|        else if ( this_view.size() > y_view.size())
  ------------------
  |  Branch (1585:19): [True: 1.77k, False: 1.75k]
  ------------------
 1586|  1.77k|            code = +1;
 1587|  1.75k|        else
 1588|  1.75k|        {
 1589|  1.78k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1589:50): [True: 1.77k, False: 8]
  ------------------
 1590|  1.77k|            {
 1591|  1.77k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1591:21): [True: 875, False: 899]
  ------------------
 1592|    875|                {
 1593|    875|                    code = 1;
 1594|    875|                    break;
 1595|    875|                }
 1596|    899|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1596:26): [True: 875, False: 24]
  ------------------
 1597|    875|                {
 1598|    875|                    code = -1;
 1599|    875|                    break;
 1600|    875|                }
 1601|  1.77k|            }
 1602|  1.75k|        }
 1603|  4.86k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1603:16): [True: 0, False: 4.86k]
  ------------------
 1604|  4.86k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1409|  4.86k|    {
 1410|  4.86k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1410:15): [True: 2.20k, False: 2.66k]
  ------------------
 1411|  4.86k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  707|  1.32M|    {
  708|  1.32M|        return storage_.get_storage_view();
  709|  1.32M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  824|   649k|    {
  825|   649k|        storage_.resize(new_length);
  826|   649k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   83|  1.51M|        {
   84|  1.51M|            return size_;
   85|  1.51M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   68|  41.0M|        {
   69|  41.0M|            return data_[i];
   70|  41.0M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   68|   201k|        {
   69|   201k|            return data_[i];
   70|   201k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1849|   652k|    {
 1850|   652k|        storage_.reduce();
 1851|   652k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  418|   652k|    {
  419|   652k|        if (common_.size_ > 0)
  ------------------
  |  Branch (419:13): [True: 652k, False: 0]
  ------------------
  420|   652k|        {
  421|   652k|            auto this_view = get_storage_view();
  422|   652k|            word_type* p = this_view.end() - 1;
  423|   652k|            word_type* first = this_view.begin();
  424|  1.29M|            while ( p >= first )
  ------------------
  |  Branch (424:21): [True: 1.27M, False: 18.9k]
  ------------------
  425|  1.27M|            {
  426|  1.27M|                if ( *p )
  ------------------
  |  Branch (426:22): [True: 633k, False: 643k]
  ------------------
  427|   633k|                {
  428|   633k|                    break;
  429|   633k|                }
  430|   643k|                --common_.size_;
  431|   643k|                --p;
  432|   643k|            }
  433|   652k|        }
  434|   652k|        if (common_.size_ == 0)
  ------------------
  |  Branch (434:13): [True: 18.9k, False: 633k]
  ------------------
  435|  18.9k|        {
  436|  18.9k|            common_.is_negative_ = false;
  437|  18.9k|        }
  438|   652k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   92|   652k|        {
   93|   652k|            return data_ + size_;
   94|   652k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   87|   652k|        {
   88|   652k|            return data_;
   89|   652k|        }
_ZN8jsonconsmlENS_12basic_bigintINSt3__19allocatorImEEEEl:
 1479|   321k|    {
 1480|   321k|        return x *= y;
 1481|   321k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLIlEENS1_9enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueERS4_E4typeES7_:
  922|   321k|    {
  923|   321k|        *this *= word_type(y < 0 ? -y : y);
  ------------------
  |  Branch (923:28): [True: 0, False: 321k]
  ------------------
  924|   321k|        if ( y < 0 )
  ------------------
  |  Branch (924:14): [True: 0, False: 321k]
  ------------------
  925|      0|            set_negative(!is_negative());
  926|   321k|        return *this;
  927|   321k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  932|   322k|    {
  933|   322k|        auto this_view = get_storage_view();
  934|   322k|        size_type len0 = this_view.size();
  935|   322k|        word_type dig = this_view[0];
  936|   322k|        word_type carry = 0;
  937|       |
  938|   322k|        resize(this_view.size() + 1);
  939|   322k|        this_view = get_storage_view();
  940|       |
  941|   322k|        size_type i = 0;
  942|  13.5M|        for (; i < len0; i++ )
  ------------------
  |  Branch (942:16): [True: 13.2M, False: 322k]
  ------------------
  943|  13.2M|        {
  944|  13.2M|            word_type hi;
  945|  13.2M|            word_type lo;
  946|  13.2M|            DDproduct( dig, y, hi, lo );
  947|  13.2M|            this_view[i] = lo + carry;
  948|  13.2M|            dig = this_view[i+1];
  949|  13.2M|            carry = hi + (this_view[i] < lo);
  950|  13.2M|        }
  951|   322k|        this_view[i] = carry;
  952|   322k|        reduce();
  953|   322k|        return *this;
  954|   322k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1713|  13.2M|    {
 1714|  13.2M|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1715|  13.2M|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1716|       |
 1717|  13.2M|        lo = loA * loB;
 1718|  13.2M|        hi = hiA * hiB;
 1719|  13.2M|        word_type mid1 = loA * hiB;
 1720|  13.2M|        word_type mid2 = hiA * loB;
 1721|  13.2M|        word_type old = lo;
 1722|  13.2M|        lo += mid1 << word_type_half_bits;
 1723|  13.2M|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1724|  13.2M|        old = lo;
 1725|  13.2M|        lo += mid2 << word_type_half_bits;
 1726|  13.2M|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1727|  13.2M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  722|  19.0k|    {
  723|  19.0k|        storage_.set_negative(value);
  724|  19.0k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  504|  19.0k|    {
  505|  19.0k|        common_.is_negative_ = value;
  506|  19.0k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  697|  1.32M|    {
  698|  1.32M|        storage_.destroy();
  699|  1.32M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  476|  1.32M|    {
  477|  1.32M|        if (is_allocated())
  ------------------
  |  Branch (477:13): [True: 751k, False: 573k]
  ------------------
  478|   751k|        {
  479|   751k|            allocated_.destroy(get_allocator());
  480|   751k|            allocated_.~allocated_storage();
  481|   751k|        }
  482|   573k|        else
  483|   573k|        {
  484|   573k|            inlined_.~inlined_storage();
  485|   573k|        }
  486|  1.32M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  244|   751k|        {
  245|   751k|            if (data_ != nullptr)
  ------------------
  |  Branch (245:17): [True: 751k, False: 0]
  ------------------
  246|   751k|            {
  247|   751k|                real_allocator_type alloc(a);
  248|   751k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  249|   751k|            }
  250|   751k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2INS1_12basic_stringIcNS1_11char_traitsIcEENS2_IcEEEEvEERKT_:
  688|  2.28k|    {
  689|  2.28k|        auto r = jsoncons::to_bigint(s.data(), s.size(), *this);
  690|  2.28k|        if (r.ec != std::errc{})
  ------------------
  |  Branch (690:13): [True: 67, False: 2.21k]
  ------------------
  691|     67|        {
  692|     67|            JSONCONS_THROW(std::system_error((int)r.ec, std::system_category()));
  ------------------
  |  |   35|     67|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  693|     67|        }
  694|  2.28k|    }
_ZN8jsoncons9to_bigintIcEENS_16to_bigint_resultIT_EEPKS2_mRNS_12basic_bigintINSt3__19allocatorImEEEE:
 2071|  2.28k|{
 2072|  2.28k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  2.28k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.28k]
  |  |  ------------------
  ------------------
 2073|      0|    {
 2074|      0|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2075|      0|    }
 2076|       |
 2077|  2.28k|    if (*data == '-')
  ------------------
  |  Branch (2077:9): [True: 10, False: 2.27k]
  ------------------
 2078|     10|    {
 2079|     10|        return jsoncons::detail::to_bigint(data+1, length-1, true, value, std::allocator<uint64_t>{}); 
 2080|     10|    }
 2081|  2.27k|    else
 2082|  2.27k|    {
 2083|  2.27k|        return jsoncons::detail::to_bigint(data, length, false, value, std::allocator<uint64_t>{}); 
 2084|  2.27k|    }
 2085|  2.28k|}
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  660|   972k|        : storage_(other.storage_)
  661|   972k|    {
  662|   972k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  295|   972k|        : word_allocator_type(other.get_allocator())
  296|   972k|    {
  297|   972k|        if (!other.is_allocated())
  ------------------
  |  Branch (297:13): [True: 279k, False: 693k]
  ------------------
  298|   279k|        {
  299|   279k|            ::new (&inlined_) inlined_storage(other.inlined_);
  300|   279k|        }
  301|   693k|        else
  302|   693k|        {
  303|   693k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  304|   693k|        }
  305|   972k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  177|   291k|            : is_allocated_(false),
  178|   291k|            is_negative_(stor.is_negative_),
  179|   291k|            size_(stor.size_)
  180|   291k|        {
  181|   291k|            values_[0] = stor.values_[0];
  182|   291k|            values_[1] = stor.values_[1];
  183|   291k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  207|   694k|            : is_allocated_(true),
  208|   694k|              is_negative_(stor.is_negative_),
  209|   694k|              size_(stor.size_),
  210|   694k|              capacity_(round_up(stor.size_))
  211|   694k|        {
  212|   694k|            real_allocator_type alloc(a);
  213|       |
  214|   694k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  215|   694k|            JSONCONS_TRY
  ------------------
  |  |   37|   694k|    #define JSONCONS_TRY try
  ------------------
  216|   694k|            {
  217|   694k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  218|   694k|            }
  219|   694k|            JSONCONS_CATCH(...)
  220|   694k|            {
  221|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  222|      0|                data_ = nullptr;
  223|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  224|      0|            }
  225|   694k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   45|   694k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 694k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  226|   694k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  227|   694k|        }
_ZN8jsonconsrmENS_12basic_bigintINSt3__19allocatorImEEEERKS4_:
 1494|  4.42k|    {
 1495|  4.42k|        return x %= y;
 1496|  4.42k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEErMERKS4_:
 1043|  4.42k|    {
 1044|  4.42k|        basic_bigint<Allocator> q;
 1045|  4.42k|        divide( divisor, q, *this, true );
 1046|  4.42k|        return *this;
 1047|  4.42k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  630|  4.87k|    basic_bigint() = default;
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1607|  4.87k|    {
 1608|  4.87k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1609|  4.87k|        auto denom_view = denom.get_storage_view();
 1610|       |
 1611|  4.87k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1611:13): [True: 8, False: 4.86k]
  ------------------
 1612|      8|        {
 1613|      8|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      8|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1614|      8|        }
 1615|  4.86k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1616|  4.86k|        bool rem_neg = is_negative();
 1617|  4.86k|        basic_bigint<Allocator> num(*this, get_allocator());
 1618|  4.86k|        num.set_negative(false);
 1619|  4.86k|        denom.set_negative(false);
 1620|  4.86k|        if ( num < denom )
  ------------------
  |  Branch (1620:14): [True: 2.20k, False: 2.66k]
  ------------------
 1621|  2.20k|        {
 1622|  2.20k|            quot = word_type(0);
 1623|  2.20k|            quot.set_negative(quot_neg);
 1624|  2.20k|            rem = num;
 1625|  2.20k|            rem.set_negative(rem_neg);
 1626|  2.20k|            return;
 1627|  2.20k|        }
 1628|       |
 1629|  2.66k|        auto num_view = num.get_storage_view();
 1630|  2.66k|        auto quot_view = quot.get_storage_view();
 1631|  2.66k|        auto this_view = get_storage_view();
 1632|       |
 1633|  2.66k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1633:14): [True: 1.46k, False: 1.20k]
  |  Branch (1633:40): [True: 0, False: 1.46k]
  ------------------
 1634|      0|        {
 1635|      0|            quot = word_type( num_view[0]/denom_view[0] );
 1636|      0|            rem = word_type( num_view[0]%denom_view[0] );
 1637|      0|            quot.set_negative(quot_neg);
 1638|      0|            rem.set_negative(rem_neg);
 1639|      0|            return;
 1640|      0|        }
 1641|  2.66k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1641:13): [True: 1.46k, False: 1.20k]
  |  Branch (1641:39): [True: 173, False: 1.28k]
  ------------------
 1642|    173|        {
 1643|       |            // Denominator fits into a half word
 1644|    173|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1645|    173|            quot.resize(this_view.size());
 1646|    173|            quot_view = quot.get_storage_view();
 1647|    519|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1647:48): [True: 346, False: 173]
  ------------------
 1648|    346|            {
 1649|    346|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1650|    346|                q1 = dividend/divisor;
 1651|    346|                r = dividend % divisor;
 1652|    346|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1653|    346|                q2 = dividend/divisor;
 1654|    346|                dHi = dividend % divisor;
 1655|    346|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1656|    346|            }
 1657|    173|            quot.reduce();
 1658|    173|            rem = dHi;
 1659|    173|            quot.set_negative(quot_neg);
 1660|    173|            rem.set_negative(rem_neg);
 1661|    173|            return;
 1662|    173|        }
 1663|  2.48k|        basic_bigint<Allocator> num0(num, get_allocator());
 1664|  2.48k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1665|  2.48k|        int x = 0;
 1666|  2.48k|        bool second_done = normalize(denom, num, x);
 1667|  2.48k|        denom_view = denom.get_storage_view();
 1668|  2.48k|        num_view = num.get_storage_view();
 1669|       |
 1670|  2.48k|        size_type l = denom_view.size() - 1;
 1671|  2.48k|        size_type n = num_view.size() - 1;
 1672|  2.48k|        quot.resize(n - l);
 1673|  2.48k|        quot_view = quot.get_storage_view();
 1674|  14.1k|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1674:46): [True: 11.6k, False: 2.48k]
  ------------------
 1675|  11.6k|        {
 1676|  11.6k|            quot_view[i] = 0;
 1677|  11.6k|        }
 1678|  2.48k|        rem = num;
 1679|  2.48k|        auto rem_view = rem.get_storage_view();
 1680|  2.48k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1680:14): [True: 199, False: 2.28k]
  ------------------
 1681|    199|        {
 1682|    199|            rem.resize(rem_view.size() + 1);
 1683|    199|            rem_view = rem.get_storage_view();
 1684|    199|            n++;
 1685|    199|            quot.resize(quot_view.size() + 1);
 1686|    199|            quot_view = quot.get_storage_view();
 1687|    199|        }
 1688|  2.48k|        word_type d = denom_view[l];
 1689|       |
 1690|  14.3k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1690:32): [True: 11.8k, False: 2.48k]
  ------------------
 1691|  11.8k|        {
 1692|  11.8k|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1693|  11.8k|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1694|  11.8k|            quot_view[k - l - 1] = q;
 1695|  11.8k|        }
 1696|  2.48k|        quot.reduce();
 1697|  2.48k|        quot.set_negative(quot_neg);
 1698|  2.48k|        if (remDesired)
  ------------------
  |  Branch (1698:13): [True: 2.03k, False: 448]
  ------------------
 1699|  2.03k|        {
 1700|  2.03k|            unnormalize(rem, x, second_done);
 1701|  2.03k|            rem.set_negative(rem_neg);
 1702|  2.03k|        }
 1703|  2.48k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  702|  14.7k|    {
  703|  14.7k|        return storage_.get_allocator();
  704|  14.7k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  665|  14.7k|        : storage_(other.storage_, alloc)
  666|  14.7k|    {
  667|  14.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  308|  14.7k|        : word_allocator_type(alloc)
  309|  14.7k|    {
  310|  14.7k|        if (!other.is_allocated())
  ------------------
  |  Branch (310:13): [True: 12.8k, False: 1.84k]
  ------------------
  311|  12.8k|        {
  312|  12.8k|            ::new (&inlined_) inlined_storage(other.inlined_);
  313|  12.8k|        }
  314|  1.84k|        else
  315|  1.84k|        {
  316|  1.84k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  317|  1.84k|        }
  318|  14.7k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  682|  2.82k|        : storage_(n, alloc)
  683|  2.82k|    {
  684|  2.82k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  349|  2.82k|        : word_allocator_type(alloc)
  350|  2.82k|    {
  351|  2.82k|        ::new (&inlined_) inlined_storage(n);
  352|  2.82k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  137|  2.82k|            : is_allocated_(false),
  138|  2.82k|            is_negative_(false),
  139|  2.82k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (139:19): [True: 2.20k, False: 619]
  ------------------
  140|  2.82k|        {
  141|  2.82k|            values_[0] = n;
  142|  2.82k|            values_[1] = 0;
  143|  2.82k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1804|  2.48k|    {
 1805|  2.48k|        auto denom_view = denom.get_storage_view();
 1806|  2.48k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1806:13): [True: 0, False: 2.48k]
  ------------------
 1807|      0|        {
 1808|      0|            return false;
 1809|      0|        }
 1810|  2.48k|        size_type r = denom_view.size() - 1;
 1811|  2.48k|        word_type y = denom_view[r];
 1812|       |
 1813|  2.48k|        x = 0;
 1814|  44.9k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1814:17): [True: 42.4k, False: 2.48k]
  ------------------
 1815|  42.4k|        {
 1816|  42.4k|            y <<= 1;
 1817|  42.4k|            x++;
 1818|  42.4k|        }
 1819|  2.48k|        denom <<= x;
 1820|  2.48k|        num <<= x;
 1821|       |
 1822|  2.48k|        denom_view = denom.get_storage_view();
 1823|  2.48k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1823:14): [True: 1.20k, False: 1.28k]
  |  Branch (1823:23): [True: 448, False: 752]
  ------------------
 1824|    448|        {
 1825|    448|            denom *= max_word;
 1826|    448|            num *= max_word;
 1827|    448|            return true;
 1828|    448|        }
 1829|  2.03k|        return false;
 1830|  2.48k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1050|  4.97k|    {
 1051|  4.97k|        auto this_view = get_storage_view();
 1052|  4.97k|        size_type q = k / word_type_bits;
 1053|  4.97k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1053:14): [True: 0, False: 4.97k]
  ------------------
 1054|      0|        {
 1055|      0|            resize(this_view.size() + q);
 1056|      0|            this_view = get_storage_view();
 1057|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1057:50): [True: 0, False: 0]
  ------------------
 1058|      0|                this_view[i] = ( i < q ? 0 : this_view[i - q]);
  ------------------
  |  Branch (1058:34): [True: 0, False: 0]
  ------------------
 1059|      0|            k %= word_type_bits;
 1060|      0|        }
 1061|  4.97k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1061:14): [True: 3.79k, False: 1.18k]
  ------------------
 1062|  3.79k|        {
 1063|  3.79k|            size_type k1 = word_type_bits - k;
 1064|  3.79k|            word_type mask = (word_type(1) << k) - word_type(1);
 1065|  3.79k|            resize( this_view.size() + 1 );
 1066|  3.79k|            this_view = get_storage_view();
 1067|  23.0k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1067:50): [True: 19.2k, False: 3.79k]
  ------------------
 1068|  19.2k|            {
 1069|  19.2k|                this_view[i] <<= k;
 1070|  19.2k|                if ( i > 0 )
  ------------------
  |  Branch (1070:22): [True: 15.4k, False: 3.79k]
  ------------------
 1071|  15.4k|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1072|  19.2k|            }
 1073|  3.79k|        }
 1074|  4.97k|        reduce();
 1075|  4.97k|        return *this;
 1076|  4.97k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1731|  11.8k|    {
 1732|  11.8k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1733|  11.8k|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1734|  11.8k|        qHi = A/(dHi + 1);
 1735|       |        // This initial guess of qHi may be too small.
 1736|  11.8k|        middle = qHi * dLo;
 1737|  11.8k|        left = qHi * dHi;
 1738|  11.8k|        x = B - (middle << word_type_half_bits);
 1739|  11.8k|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1740|  11.8k|        B = x;
 1741|  11.8k|        dLo1 = dLo << word_type_half_bits;
 1742|       |        // Increase qHi if necessary:
 1743|  14.9k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1743:17): [True: 2.89k, False: 12.1k]
  |  Branch (1743:29): [True: 326, False: 11.7k]
  |  Branch (1743:41): [True: 285, False: 41]
  ------------------
 1744|  3.17k|        {
 1745|  3.17k|            x = B - dLo1;
 1746|  3.17k|            A -= dHi + (x > B);
 1747|  3.17k|            B = x;
 1748|  3.17k|            qHi++;
 1749|  3.17k|        }
 1750|  11.8k|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1751|       |        // This initial guess of qLo may be too small.
 1752|  11.8k|        right = qLo * dLo;
 1753|  11.8k|        middle = qLo * dHi;
 1754|  11.8k|        x = B - right;
 1755|  11.8k|        A -= (x > B);
 1756|  11.8k|        B = x;
 1757|  11.8k|        x = B - (middle << word_type_half_bits);
 1758|  11.8k|            A -= (middle >> word_type_half_bits) + (x > B);
 1759|  11.8k|        B = x;
 1760|       |        // Increase qLo if necessary:
 1761|  15.6k|        while ( A || B >= d )
  ------------------
  |  Branch (1761:17): [True: 256, False: 15.4k]
  |  Branch (1761:22): [True: 3.60k, False: 11.8k]
  ------------------
 1762|  3.86k|        {
 1763|  3.86k|            x = B - d;
 1764|  3.86k|            A -= (x > B);
 1765|  3.86k|            B = x;
 1766|  3.86k|            qLo++;
 1767|  3.86k|        }
 1768|  11.8k|        return (qHi << word_type_half_bits) + qLo;
 1769|  11.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1773|  11.8k|    {
 1774|  11.8k|        word_type hi, lo, d, carry = 0;
 1775|  11.8k|        size_type i;
 1776|  33.6k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1776:22): [True: 21.7k, False: 11.8k]
  ------------------
 1777|  21.7k|        {
 1778|  21.7k|            DDproduct( b[i], q, hi, lo );
 1779|  21.7k|            d = a[i];
 1780|  21.7k|            a[i] -= lo;
 1781|  21.7k|            if ( a[i] > d )
  ------------------
  |  Branch (1781:18): [True: 10.0k, False: 11.7k]
  ------------------
 1782|  10.0k|                carry++;
 1783|  21.7k|            d = a[i + 1];
 1784|  21.7k|            a[i + 1] -= hi + carry;
 1785|  21.7k|            carry = a[i + 1] > d;
 1786|  21.7k|        }
 1787|  11.8k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1787:14): [True: 2.76k, False: 9.05k]
  ------------------
 1788|  2.76k|        {
 1789|  2.76k|            q--;
 1790|  2.76k|            carry = 0;
 1791|  8.42k|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1791:26): [True: 5.65k, False: 2.76k]
  ------------------
 1792|  5.65k|            {
 1793|  5.65k|                d = a[i] + carry;
 1794|  5.65k|                carry = d < carry;
 1795|  5.65k|                a[i] = d + b[i];
 1796|  5.65k|                if ( a[i] < d )
  ------------------
  |  Branch (1796:22): [True: 3.79k, False: 1.85k]
  ------------------
 1797|  3.79k|                    carry = 1;
 1798|  5.65k|            }
 1799|  2.76k|            a[n] = 0;
 1800|  2.76k|        }
 1801|  11.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1833|  2.03k|    {
 1834|  2.03k|        if (secondDone)
  ------------------
  |  Branch (1834:13): [True: 448, False: 1.59k]
  ------------------
 1835|    448|        {
 1836|    448|            rem /= max_word;
 1837|    448|        }
 1838|  2.03k|        if ( x > 0 )
  ------------------
  |  Branch (1838:14): [True: 1.89k, False: 144]
  ------------------
 1839|  1.89k|        {
 1840|  1.89k|            rem >>= x;
 1841|  1.89k|        }
 1842|    144|        else
 1843|    144|        {
 1844|    144|            rem.reduce();
 1845|    144|        }
 1846|  2.03k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEdVERKS4_:
 1036|    448|    {
 1037|    448|        basic_bigint<Allocator> r;
 1038|    448|        divide( divisor, *this, r, false );
 1039|    448|        return *this;
 1040|    448|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEErSEm:
 1079|  1.89k|    {
 1080|  1.89k|        auto this_view = get_storage_view();
 1081|  1.89k|        size_type q = k / word_type_bits;
 1082|  1.89k|        if ( q >= this_view.size())
  ------------------
  |  Branch (1082:14): [True: 0, False: 1.89k]
  ------------------
 1083|      0|        {
 1084|      0|            resize( 0 );
 1085|      0|            return *this;
 1086|      0|        }
 1087|  1.89k|        if (q > 0)
  ------------------
  |  Branch (1087:13): [True: 0, False: 1.89k]
  ------------------
 1088|      0|        {
 1089|      0|            memmove( this_view.data(), this_view.data()+q, size_type((this_view.size() - q)*sizeof(word_type)) );
 1090|      0|            resize( size_type(this_view.size() - q) );
 1091|      0|            k %= word_type_bits;
 1092|      0|            if ( k == 0 )
  ------------------
  |  Branch (1092:18): [True: 0, False: 0]
  ------------------
 1093|      0|            {
 1094|      0|                reduce();
 1095|      0|                return *this;
 1096|      0|            }
 1097|      0|        }
 1098|       |
 1099|  1.89k|        this_view = get_storage_view();
 1100|  1.89k|        size_type n = size_type(this_view.size() - 1);
 1101|  1.89k|        ssize_type k1 = word_type_bits - k;
 1102|  1.89k|        word_type mask = (word_type(1) << k) - 1;
 1103|  15.3k|        for (size_type i = 0; i <= n; i++)
  ------------------
  |  Branch (1103:31): [True: 13.4k, False: 1.89k]
  ------------------
 1104|  13.4k|        {
 1105|  13.4k|            this_view[i] >>= k;
 1106|  13.4k|            if ( i < n )
  ------------------
  |  Branch (1106:18): [True: 11.5k, False: 1.89k]
  ------------------
 1107|  11.5k|                this_view[i] |= ((this_view[i+1] & mask) << k1);
 1108|  13.4k|        }
 1109|  1.89k|        reduce();
 1110|  1.89k|        return *this;
 1111|  1.89k|    }

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

