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

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

