_ZN17double_conversion6Bignum8RawBigitEi:
   36|  1.12M|Bignum::Chunk& Bignum::RawBigit(const int index) {
   37|  1.12M|  DOUBLE_CONVERSION_ASSERT(static_cast<unsigned>(index) < kBigitCapacity);
  ------------------
  |  |   47|  1.12M|    assert(condition)
  ------------------
  |  Branch (37:3): [True: 1.12M, False: 0]
  ------------------
   38|  1.12M|  return bigits_buffer_[index];
   39|  1.12M|}
_ZNK17double_conversion6Bignum8RawBigitEi:
   42|  19.7k|const Bignum::Chunk& Bignum::RawBigit(const int index) const {
   43|  19.7k|  DOUBLE_CONVERSION_ASSERT(static_cast<unsigned>(index) < kBigitCapacity);
  ------------------
  |  |   47|  19.7k|    assert(condition)
  ------------------
  |  Branch (43:3): [True: 19.7k, False: 0]
  ------------------
   44|  19.7k|  return bigits_buffer_[index];
   45|  19.7k|}
_ZN17double_conversion6Bignum12AssignUInt64Em:
   59|  3.31k|void Bignum::AssignUInt64(uint64_t value) {
   60|  3.31k|  Zero();
   61|  10.7k|  for(int i = 0; value > 0; ++i) {
  ------------------
  |  Branch (61:18): [True: 7.46k, False: 3.31k]
  ------------------
   62|  7.46k|    RawBigit(i) = value & kBigitMask;
   63|  7.46k|    value >>= kBigitSize;
   64|  7.46k|    ++used_bigits_;
   65|  7.46k|  }
   66|  3.31k|}
_ZN17double_conversion6Bignum19AssignDecimalStringENS_6VectorIKcEE:
   91|    741|void Bignum::AssignDecimalString(const Vector<const char> value) {
   92|       |  // 2^64 = 18446744073709551616 > 10^19
   93|    741|  static const int kMaxUint64DecimalDigits = 19;
   94|    741|  Zero();
   95|    741|  int length = value.length();
   96|    741|  unsigned pos = 0;
   97|       |  // Let's just say that each digit needs 4 bits.
   98|  4.29k|  while (length >= kMaxUint64DecimalDigits) {
  ------------------
  |  Branch (98:10): [True: 3.55k, False: 741]
  ------------------
   99|  3.55k|    const uint64_t digits = ReadUInt64(value, pos, kMaxUint64DecimalDigits);
  100|  3.55k|    pos += kMaxUint64DecimalDigits;
  101|  3.55k|    length -= kMaxUint64DecimalDigits;
  102|  3.55k|    MultiplyByPowerOfTen(kMaxUint64DecimalDigits);
  103|  3.55k|    AddUInt64(digits);
  104|  3.55k|  }
  105|    741|  const uint64_t digits = ReadUInt64(value, pos, length);
  106|    741|  MultiplyByPowerOfTen(length);
  107|    741|  AddUInt64(digits);
  108|    741|  Clamp();
  109|    741|}
_ZN17double_conversion6Bignum9AddUInt64Em:
  150|  4.29k|void Bignum::AddUInt64(const uint64_t operand) {
  151|  4.29k|  if (operand == 0) {
  ------------------
  |  Branch (151:7): [True: 1.72k, False: 2.57k]
  ------------------
  152|  1.72k|    return;
  153|  1.72k|  }
  154|  2.57k|  Bignum other;
  155|  2.57k|  other.AssignUInt64(operand);
  156|  2.57k|  AddBignum(other);
  157|  2.57k|}
_ZN17double_conversion6Bignum9AddBignumERKS0_:
  160|  2.57k|void Bignum::AddBignum(const Bignum& other) {
  161|  2.57k|  DOUBLE_CONVERSION_ASSERT(IsClamped());
  ------------------
  |  |   47|  2.57k|    assert(condition)
  ------------------
  |  Branch (161:3): [True: 2.57k, False: 0]
  ------------------
  162|  2.57k|  DOUBLE_CONVERSION_ASSERT(other.IsClamped());
  ------------------
  |  |   47|  2.57k|    assert(condition)
  ------------------
  |  Branch (162:3): [True: 2.57k, False: 0]
  ------------------
  163|       |
  164|       |  // If this has a greater exponent than other append zero-bigits to this.
  165|       |  // After this call exponent_ <= other.exponent_.
  166|  2.57k|  Align(other);
  167|       |
  168|       |  // There are two possibilities:
  169|       |  //   aaaaaaaaaaa 0000  (where the 0s represent a's exponent)
  170|       |  //     bbbbb 00000000
  171|       |  //   ----------------
  172|       |  //   ccccccccccc 0000
  173|       |  // or
  174|       |  //    aaaaaaaaaa 0000
  175|       |  //  bbbbbbbbb 0000000
  176|       |  //  -----------------
  177|       |  //  cccccccccccc 0000
  178|       |  // In both cases we might need a carry bigit.
  179|       |
  180|  2.57k|  EnsureCapacity(1 + (std::max)(BigitLength(), other.BigitLength()) - exponent_);
  181|  2.57k|  Chunk carry = 0;
  182|  2.57k|  int bigit_pos = other.exponent_ - exponent_;
  183|  2.57k|  DOUBLE_CONVERSION_ASSERT(bigit_pos >= 0);
  ------------------
  |  |   47|  2.57k|    assert(condition)
  ------------------
  |  Branch (183:3): [True: 2.57k, False: 0]
  ------------------
  184|  2.57k|  for (int i = used_bigits_; i < bigit_pos; ++i) {
  ------------------
  |  Branch (184:30): [True: 0, False: 2.57k]
  ------------------
  185|      0|    RawBigit(i) = 0;
  186|      0|  }
  187|  8.57k|  for (int i = 0; i < other.used_bigits_; ++i) {
  ------------------
  |  Branch (187:19): [True: 6.00k, False: 2.57k]
  ------------------
  188|  6.00k|    const Chunk my = (bigit_pos < used_bigits_) ? RawBigit(bigit_pos) : 0;
  ------------------
  |  Branch (188:22): [True: 4.39k, False: 1.60k]
  ------------------
  189|  6.00k|    const Chunk sum = my + other.RawBigit(i) + carry;
  190|  6.00k|    RawBigit(bigit_pos) = sum & kBigitMask;
  191|  6.00k|    carry = sum >> kBigitSize;
  192|  6.00k|    ++bigit_pos;
  193|  6.00k|  }
  194|  2.91k|  while (carry != 0) {
  ------------------
  |  Branch (194:10): [True: 345, False: 2.57k]
  ------------------
  195|    345|    const Chunk my = (bigit_pos < used_bigits_) ? RawBigit(bigit_pos) : 0;
  ------------------
  |  Branch (195:22): [True: 345, False: 0]
  ------------------
  196|    345|    const Chunk sum = my + carry;
  197|    345|    RawBigit(bigit_pos) = sum & kBigitMask;
  198|    345|    carry = sum >> kBigitSize;
  199|    345|    ++bigit_pos;
  200|    345|  }
  201|  2.57k|  used_bigits_ = static_cast<int16_t>(std::max(bigit_pos, static_cast<int>(used_bigits_)));
  202|       |  DOUBLE_CONVERSION_ASSERT(IsClamped());
  ------------------
  |  |   47|  2.57k|    assert(condition)
  ------------------
  |  Branch (202:3): [True: 2.57k, False: 0]
  ------------------
  203|  2.57k|}
_ZN17double_conversion6Bignum9ShiftLeftEi:
  233|  4.78k|void Bignum::ShiftLeft(const int shift_amount) {
  234|  4.78k|  if (shift_amount <= 0 || used_bigits_ == 0) {
  ------------------
  |  Branch (234:7): [True: 89, False: 4.70k]
  |  Branch (234:28): [True: 0, False: 4.70k]
  ------------------
  235|     89|    return;
  236|     89|  }
  237|  4.70k|  exponent_ += static_cast<int16_t>(shift_amount / kBigitSize);
  238|  4.70k|  const int local_shift = shift_amount % kBigitSize;
  239|  4.70k|  EnsureCapacity(used_bigits_ + 1);
  240|  4.70k|  BigitsShiftLeft(local_shift);
  241|  4.70k|}
_ZN17double_conversion6Bignum16MultiplyByUInt32Ej:
  244|  7.53k|void Bignum::MultiplyByUInt32(const uint32_t factor) {
  245|  7.53k|  if (factor == 1) {
  ------------------
  |  Branch (245:7): [True: 0, False: 7.53k]
  ------------------
  246|      0|    return;
  247|      0|  }
  248|  7.53k|  if (factor == 0) {
  ------------------
  |  Branch (248:7): [True: 0, False: 7.53k]
  ------------------
  249|      0|    Zero();
  250|      0|    return;
  251|      0|  }
  252|  7.53k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (252:7): [True: 0, False: 7.53k]
  ------------------
  253|      0|    return;
  254|      0|  }
  255|       |  // The product of a bigit with the factor is of size kBigitSize + 32.
  256|       |  // Assert that this number + 1 (for the carry) fits into double chunk.
  257|  7.53k|  DOUBLE_CONVERSION_ASSERT(kDoubleChunkSize >= kBigitSize + 32 + 1);
  ------------------
  |  |   47|  7.53k|    assert(condition)
  ------------------
  |  Branch (257:3): [True: 7.53k, Folded]
  ------------------
  258|  7.53k|  DoubleChunk carry = 0;
  259|   230k|  for (int i = 0; i < used_bigits_; ++i) {
  ------------------
  |  Branch (259:19): [True: 223k, False: 7.53k]
  ------------------
  260|   223k|    const DoubleChunk product = static_cast<DoubleChunk>(factor) * RawBigit(i) + carry;
  261|   223k|    RawBigit(i) = static_cast<Chunk>(product & kBigitMask);
  262|   223k|    carry = (product >> kBigitSize);
  263|   223k|  }
  264|  13.3k|  while (carry != 0) {
  ------------------
  |  Branch (264:10): [True: 5.82k, False: 7.53k]
  ------------------
  265|  5.82k|    EnsureCapacity(used_bigits_ + 1);
  266|  5.82k|    RawBigit(used_bigits_) = carry & kBigitMask;
  267|  5.82k|    used_bigits_++;
  268|  5.82k|    carry >>= kBigitSize;
  269|  5.82k|  }
  270|  7.53k|}
_ZN17double_conversion6Bignum16MultiplyByUInt64Em:
  273|  4.57k|void Bignum::MultiplyByUInt64(const uint64_t factor) {
  274|  4.57k|  if (factor == 1) {
  ------------------
  |  Branch (274:7): [True: 0, False: 4.57k]
  ------------------
  275|      0|    return;
  276|      0|  }
  277|  4.57k|  if (factor == 0) {
  ------------------
  |  Branch (277:7): [True: 0, False: 4.57k]
  ------------------
  278|      0|    Zero();
  279|      0|    return;
  280|      0|  }
  281|  4.57k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (281:7): [True: 0, False: 4.57k]
  ------------------
  282|      0|    return;
  283|      0|  }
  284|  4.57k|  DOUBLE_CONVERSION_ASSERT(kBigitSize < 32);
  ------------------
  |  |   47|  4.57k|    assert(condition)
  ------------------
  |  Branch (284:3): [True: 4.57k, Folded]
  ------------------
  285|  4.57k|  uint64_t carry = 0;
  286|  4.57k|  const uint64_t low = factor & 0xFFFFFFFF;
  287|  4.57k|  const uint64_t high = factor >> 32;
  288|  91.0k|  for (int i = 0; i < used_bigits_; ++i) {
  ------------------
  |  Branch (288:19): [True: 86.4k, False: 4.57k]
  ------------------
  289|  86.4k|    const uint64_t product_low = low * RawBigit(i);
  290|  86.4k|    const uint64_t product_high = high * RawBigit(i);
  291|  86.4k|    const uint64_t tmp = (carry & kBigitMask) + product_low;
  292|  86.4k|    RawBigit(i) = tmp & kBigitMask;
  293|  86.4k|    carry = (carry >> kBigitSize) + (tmp >> kBigitSize) +
  294|  86.4k|        (product_high << (32 - kBigitSize));
  295|  86.4k|  }
  296|  14.8k|  while (carry != 0) {
  ------------------
  |  Branch (296:10): [True: 10.3k, False: 4.57k]
  ------------------
  297|  10.3k|    EnsureCapacity(used_bigits_ + 1);
  298|  10.3k|    RawBigit(used_bigits_) = carry & kBigitMask;
  299|  10.3k|    used_bigits_++;
  300|  10.3k|    carry >>= kBigitSize;
  301|  10.3k|  }
  302|  4.57k|}
_ZN17double_conversion6Bignum20MultiplyByPowerOfTenEi:
  305|  5.03k|void Bignum::MultiplyByPowerOfTen(const int exponent) {
  306|  5.03k|  static const uint64_t kFive27 = DOUBLE_CONVERSION_UINT64_2PART_C(0x6765c793, fa10079d);
  ------------------
  |  |  195|  5.03k|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  307|  5.03k|  static const uint16_t kFive1 = 5;
  308|  5.03k|  static const uint16_t kFive2 = kFive1 * 5;
  309|  5.03k|  static const uint16_t kFive3 = kFive2 * 5;
  310|  5.03k|  static const uint16_t kFive4 = kFive3 * 5;
  311|  5.03k|  static const uint16_t kFive5 = kFive4 * 5;
  312|  5.03k|  static const uint16_t kFive6 = kFive5 * 5;
  313|  5.03k|  static const uint32_t kFive7 = kFive6 * 5;
  314|  5.03k|  static const uint32_t kFive8 = kFive7 * 5;
  315|  5.03k|  static const uint32_t kFive9 = kFive8 * 5;
  316|  5.03k|  static const uint32_t kFive10 = kFive9 * 5;
  317|  5.03k|  static const uint32_t kFive11 = kFive10 * 5;
  318|  5.03k|  static const uint32_t kFive12 = kFive11 * 5;
  319|  5.03k|  static const uint32_t kFive13 = kFive12 * 5;
  320|  5.03k|  static const uint32_t kFive1_to_12[] =
  321|  5.03k|      { kFive1, kFive2, kFive3, kFive4, kFive5, kFive6,
  322|  5.03k|        kFive7, kFive8, kFive9, kFive10, kFive11, kFive12 };
  323|       |
  324|  5.03k|  if (exponent <= 0) {
  ------------------
  |  Branch (324:7): [True: 249, False: 4.78k]
  ------------------
  325|    249|    return;
  326|    249|  }
  327|  4.78k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (327:7): [True: 741, False: 4.04k]
  ------------------
  328|    741|    return;
  329|    741|  }
  330|       |  // We shift by exponent at the end just before returning.
  331|  4.04k|  int remaining_exponent = exponent;
  332|  8.62k|  while (remaining_exponent >= 27) {
  ------------------
  |  Branch (332:10): [True: 4.57k, False: 4.04k]
  ------------------
  333|  4.57k|    MultiplyByUInt64(kFive27);
  334|  4.57k|    remaining_exponent -= 27;
  335|  4.57k|  }
  336|  7.68k|  while (remaining_exponent >= 13) {
  ------------------
  |  Branch (336:10): [True: 3.63k, False: 4.04k]
  ------------------
  337|  3.63k|    MultiplyByUInt32(kFive13);
  338|  3.63k|    remaining_exponent -= 13;
  339|  3.63k|  }
  340|  4.04k|  if (remaining_exponent > 0) {
  ------------------
  |  Branch (340:7): [True: 3.90k, False: 145]
  ------------------
  341|  3.90k|    MultiplyByUInt32(kFive1_to_12[remaining_exponent - 1]);
  342|  3.90k|  }
  343|  4.04k|  ShiftLeft(exponent);
  344|  4.04k|}
_ZNK17double_conversion6Bignum11BigitOrZeroEi:
  624|  5.58k|Bignum::Chunk Bignum::BigitOrZero(const int index) const {
  625|  5.58k|  if (index >= BigitLength()) {
  ------------------
  |  Branch (625:7): [True: 0, False: 5.58k]
  ------------------
  626|      0|    return 0;
  627|      0|  }
  628|  5.58k|  if (index < exponent_) {
  ------------------
  |  Branch (628:7): [True: 296, False: 5.28k]
  ------------------
  629|    296|    return 0;
  630|    296|  }
  631|  5.28k|  return RawBigit(index - exponent_);
  632|  5.58k|}
_ZN17double_conversion6Bignum7CompareERKS0_S2_:
  635|    741|int Bignum::Compare(const Bignum& a, const Bignum& b) {
  636|    741|  DOUBLE_CONVERSION_ASSERT(a.IsClamped());
  ------------------
  |  |   47|    741|    assert(condition)
  ------------------
  |  Branch (636:3): [True: 741, False: 0]
  ------------------
  637|    741|  DOUBLE_CONVERSION_ASSERT(b.IsClamped());
  ------------------
  |  |   47|    741|    assert(condition)
  ------------------
  |  Branch (637:3): [True: 741, False: 0]
  ------------------
  638|    741|  const int bigit_length_a = a.BigitLength();
  639|    741|  const int bigit_length_b = b.BigitLength();
  640|    741|  if (bigit_length_a < bigit_length_b) {
  ------------------
  |  Branch (640:7): [True: 5, False: 736]
  ------------------
  641|      5|    return -1;
  642|      5|  }
  643|    736|  if (bigit_length_a > bigit_length_b) {
  ------------------
  |  Branch (643:7): [True: 0, False: 736]
  ------------------
  644|      0|    return +1;
  645|      0|  }
  646|  2.88k|  for (int i = bigit_length_a - 1; i >= (std::min)(a.exponent_, b.exponent_); --i) {
  ------------------
  |  Branch (646:36): [True: 2.79k, False: 93]
  ------------------
  647|  2.79k|    const Chunk bigit_a = a.BigitOrZero(i);
  648|  2.79k|    const Chunk bigit_b = b.BigitOrZero(i);
  649|  2.79k|    if (bigit_a < bigit_b) {
  ------------------
  |  Branch (649:9): [True: 224, False: 2.56k]
  ------------------
  650|    224|      return -1;
  651|    224|    }
  652|  2.56k|    if (bigit_a > bigit_b) {
  ------------------
  |  Branch (652:9): [True: 419, False: 2.14k]
  ------------------
  653|    419|      return +1;
  654|    419|    }
  655|       |    // Otherwise they are equal up to this digit. Try the next digit.
  656|  2.56k|  }
  657|     93|  return 0;
  658|    736|}
_ZN17double_conversion6Bignum5ClampEv:
  706|    741|void Bignum::Clamp() {
  707|    741|  while (used_bigits_ > 0 && RawBigit(used_bigits_ - 1) == 0) {
  ------------------
  |  Branch (707:10): [True: 741, False: 0]
  |  Branch (707:30): [True: 0, False: 741]
  ------------------
  708|      0|    used_bigits_--;
  709|      0|  }
  710|    741|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (710:7): [True: 0, False: 741]
  ------------------
  711|       |    // Zero.
  712|      0|    exponent_ = 0;
  713|      0|  }
  714|    741|}
_ZN17double_conversion6Bignum5AlignERKS0_:
  717|  2.57k|void Bignum::Align(const Bignum& other) {
  718|  2.57k|  if (exponent_ > other.exponent_) {
  ------------------
  |  Branch (718:7): [True: 0, False: 2.57k]
  ------------------
  719|       |    // If "X" represents a "hidden" bigit (by the exponent) then we are in the
  720|       |    // following case (a == this, b == other):
  721|       |    // a:  aaaaaaXXXX   or a:   aaaaaXXX
  722|       |    // b:     bbbbbbX      b: bbbbbbbbXX
  723|       |    // We replace some of the hidden digits (X) of a with 0 digits.
  724|       |    // a:  aaaaaa000X   or a:   aaaaa0XX
  725|      0|    const int zero_bigits = exponent_ - other.exponent_;
  726|      0|    EnsureCapacity(used_bigits_ + zero_bigits);
  727|      0|    for (int i = used_bigits_ - 1; i >= 0; --i) {
  ------------------
  |  Branch (727:36): [True: 0, False: 0]
  ------------------
  728|      0|      RawBigit(i + zero_bigits) = RawBigit(i);
  729|      0|    }
  730|      0|    for (int i = 0; i < zero_bigits; ++i) {
  ------------------
  |  Branch (730:21): [True: 0, False: 0]
  ------------------
  731|      0|      RawBigit(i) = 0;
  732|      0|    }
  733|      0|    used_bigits_ += static_cast<int16_t>(zero_bigits);
  734|      0|    exponent_ -= static_cast<int16_t>(zero_bigits);
  735|       |
  736|      0|    DOUBLE_CONVERSION_ASSERT(used_bigits_ >= 0);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (736:5): [True: 0, False: 0]
  ------------------
  737|      0|    DOUBLE_CONVERSION_ASSERT(exponent_ >= 0);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (737:5): [True: 0, False: 0]
  ------------------
  738|      0|  }
  739|  2.57k|}
_ZN17double_conversion6Bignum15BigitsShiftLeftEi:
  742|  4.70k|void Bignum::BigitsShiftLeft(const int shift_amount) {
  743|  4.70k|  DOUBLE_CONVERSION_ASSERT(shift_amount < kBigitSize);
  ------------------
  |  |   47|  4.70k|    assert(condition)
  ------------------
  |  Branch (743:3): [True: 4.70k, False: 0]
  ------------------
  744|  4.70k|  DOUBLE_CONVERSION_ASSERT(shift_amount >= 0);
  ------------------
  |  |   47|  4.70k|    assert(condition)
  ------------------
  |  Branch (744:3): [True: 4.70k, False: 0]
  ------------------
  745|  4.70k|  Chunk carry = 0;
  746|   133k|  for (int i = 0; i < used_bigits_; ++i) {
  ------------------
  |  Branch (746:19): [True: 128k, False: 4.70k]
  ------------------
  747|   128k|    const Chunk new_carry = RawBigit(i) >> (kBigitSize - shift_amount);
  748|   128k|    RawBigit(i) = ((RawBigit(i) << shift_amount) + carry) & kBigitMask;
  749|   128k|    carry = new_carry;
  750|   128k|  }
  751|  4.70k|  if (carry != 0) {
  ------------------
  |  Branch (751:7): [True: 2.94k, False: 1.75k]
  ------------------
  752|  2.94k|    RawBigit(used_bigits_) = carry;
  753|  2.94k|    used_bigits_++;
  754|  2.94k|  }
  755|  4.70k|}
bignum.cc:_ZN17double_conversionL10ReadUInt64ENS_6VectorIKcEEii:
   80|  4.29k|                           const int digits_to_read) {
   81|  4.29k|  uint64_t result = 0;
   82|  78.1k|  for (int i = from; i < from + digits_to_read; ++i) {
  ------------------
  |  Branch (82:22): [True: 73.8k, False: 4.29k]
  ------------------
   83|  73.8k|    const int digit = buffer[i] - '0';
   84|  73.8k|    DOUBLE_CONVERSION_ASSERT(0 <= digit && digit <= 9);
  ------------------
  |  |   47|  73.8k|    assert(condition)
  ------------------
  |  Branch (84:5): [True: 73.8k, False: 0]
  |  Branch (84:5): [True: 73.8k, False: 0]
  |  Branch (84:5): [True: 73.8k, False: 0]
  ------------------
   85|  73.8k|    result = result * 10 + digit;
   86|  73.8k|  }
   87|  4.29k|  return result;
   88|  4.29k|}

_ZN17double_conversion6BignumC2Ev:
   42|  4.05k|  Bignum() : used_bigits_(0), exponent_(0) {}
_ZN17double_conversion6Bignum14EnsureCapacityEi:
  114|  23.4k|  static void EnsureCapacity(const int size) {
  115|  23.4k|    if (size > kBigitCapacity) {
  ------------------
  |  Branch (115:9): [True: 0, False: 23.4k]
  ------------------
  116|      0|      DOUBLE_CONVERSION_UNREACHABLE();
  ------------------
  |  |   77|      0|#define DOUBLE_CONVERSION_UNREACHABLE()   (abort())
  ------------------
  117|      0|    }
  118|  23.4k|  }
_ZNK17double_conversion6Bignum9IsClampedEv:
  121|  9.19k|  bool IsClamped() const {
  122|  9.19k|    return used_bigits_ == 0 || RawBigit(used_bigits_ - 1) != 0;
  ------------------
  |  Branch (122:12): [True: 741, False: 8.45k]
  |  Branch (122:33): [True: 8.45k, False: 0]
  ------------------
  123|  9.19k|  }
_ZN17double_conversion6Bignum4ZeroEv:
  124|  4.05k|  void Zero() {
  125|  4.05k|    used_bigits_ = 0;
  126|  4.05k|    exponent_ = 0;
  127|  4.05k|  }
_ZNK17double_conversion6Bignum11BigitLengthEv:
  133|  12.2k|  int BigitLength() const { return used_bigits_ + exponent_; }

_ZN17double_conversion16PowersOfTenCache32GetCachedPowerForDecimalExponentEiPNS_5DiyFpEPi:
  161|  1.32k|                                      int* found_exponent) {
  162|  1.32k|  DOUBLE_CONVERSION_ASSERT(kMinDecimalExponent <= requested_exponent);
  ------------------
  |  |   47|  1.32k|    assert(condition)
  ------------------
  |  Branch (162:3): [True: 1.32k, False: 0]
  ------------------
  163|  1.32k|  DOUBLE_CONVERSION_ASSERT(requested_exponent < kMaxDecimalExponent + kDecimalExponentDistance);
  ------------------
  |  |   47|  1.32k|    assert(condition)
  ------------------
  |  Branch (163:3): [True: 1.32k, False: 0]
  ------------------
  164|  1.32k|  int index =
  165|  1.32k|      (requested_exponent + kCachedPowersOffset) / kDecimalExponentDistance;
  166|  1.32k|  CachedPower cached_power = kCachedPowers[index];
  167|  1.32k|  *power = DiyFp(cached_power.significand, cached_power.binary_exponent);
  168|  1.32k|  *found_exponent = cached_power.decimal_exponent;
  169|  1.32k|  DOUBLE_CONVERSION_ASSERT(*found_exponent <= requested_exponent);
  ------------------
  |  |   47|  1.32k|    assert(condition)
  ------------------
  |  Branch (169:3): [True: 1.32k, False: 0]
  ------------------
  170|  1.32k|  DOUBLE_CONVERSION_ASSERT(requested_exponent < *found_exponent + kDecimalExponentDistance);
  ------------------
  |  |   47|  1.32k|    assert(condition)
  ------------------
  |  Branch (170:3): [True: 1.32k, False: 0]
  ------------------
  171|  1.32k|}

_ZN17double_conversion5DiyFpC2Ev:
   45|  2.65k|  DiyFp() : f_(0), e_(0) {}
_ZN17double_conversion5DiyFpC2Emi:
   46|  5.92k|  DiyFp(const uint64_t significand, const int32_t exponent) : f_(significand), e_(exponent) {}
_ZN17double_conversion5DiyFp8MultiplyERKS0_:
   68|  2.53k|  void Multiply(const DiyFp& other) {
   69|       |    // Simply "emulates" a 128 bit multiplication.
   70|       |    // However: the resulting number only contains 64 bits. The least
   71|       |    // significant 64 bits are only used for rounding the most significant 64
   72|       |    // bits.
   73|  2.53k|    const uint64_t kM32 = 0xFFFFFFFFU;
   74|  2.53k|    const uint64_t a = f_ >> 32;
   75|  2.53k|    const uint64_t b = f_ & kM32;
   76|  2.53k|    const uint64_t c = other.f_ >> 32;
   77|  2.53k|    const uint64_t d = other.f_ & kM32;
   78|  2.53k|    const uint64_t ac = a * c;
   79|  2.53k|    const uint64_t bc = b * c;
   80|  2.53k|    const uint64_t ad = a * d;
   81|  2.53k|    const uint64_t bd = b * d;
   82|       |    // By adding 1U << 31 to tmp we round the final result.
   83|       |    // Halfway cases will be rounded up.
   84|  2.53k|    const uint64_t tmp = (bd >> 32) + (ad & kM32) + (bc & kM32) + (1U << 31);
   85|  2.53k|    e_ += other.e_ + 64;
   86|  2.53k|    f_ = ac + (ad >> 32) + (bc >> 32) + (tmp >> 32);
   87|  2.53k|  }
_ZN17double_conversion5DiyFp9NormalizeEv:
   96|  2.65k|  void Normalize() {
   97|  2.65k|    DOUBLE_CONVERSION_ASSERT(f_ != 0);
  ------------------
  |  |   47|  2.65k|    assert(condition)
  ------------------
  |  Branch (97:5): [True: 2.65k, False: 0]
  ------------------
   98|  2.65k|    uint64_t significand = f_;
   99|  2.65k|    int32_t exponent = e_;
  100|       |
  101|       |    // This method is mainly called for normalizing boundaries. In general,
  102|       |    // boundaries need to be shifted by 10 bits, and we optimize for this case.
  103|  2.65k|    const uint64_t k10MSBits = DOUBLE_CONVERSION_UINT64_2PART_C(0xFFC00000, 00000000);
  ------------------
  |  |  195|  2.65k|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  104|  5.80k|    while ((significand & k10MSBits) == 0) {
  ------------------
  |  Branch (104:12): [True: 3.15k, False: 2.65k]
  ------------------
  105|  3.15k|      significand <<= 10;
  106|  3.15k|      exponent -= 10;
  107|  3.15k|    }
  108|  7.16k|    while ((significand & kUint64MSB) == 0) {
  ------------------
  |  Branch (108:12): [True: 4.51k, False: 2.65k]
  ------------------
  109|  4.51k|      significand <<= 1;
  110|  4.51k|      exponent--;
  111|  4.51k|    }
  112|  2.65k|    f_ = significand;
  113|  2.65k|    e_ = exponent;
  114|  2.65k|  }
_ZNK17double_conversion5DiyFp1fEv:
  122|  5.05k|  uint64_t f() const { return f_; }
_ZNK17double_conversion5DiyFp1eEv:
  123|  10.8k|  int32_t e() const { return e_; }
_ZN17double_conversion5DiyFp5set_fEm:
  125|    336|  void set_f(uint64_t new_value) { f_ = new_value; }
_ZN17double_conversion5DiyFp5set_eEi:
  126|     55|  void set_e(int32_t new_value) { e_ = new_value; }

_ZN17double_conversion6Double8InfinityEv:
  236|  1.02k|  static double Infinity() {
  237|  1.02k|    return Double(kInfinity).value();
  238|  1.02k|  }
_ZN17double_conversion6DoubleC2Em:
   56|  1.51k|  explicit Double(uint64_t d64) : d64_(d64) {}
_ZNK17double_conversion6Double5valueEv:
  220|  2.83k|  double value() const { return uint64_to_double(d64_); }
string-to-double.cc:_ZN17double_conversionL16uint64_to_doubleEm:
   37|    142|static double uint64_to_double(uint64_t d64) { return BitCast<double>(d64); }
_ZN17double_conversion6Double3NaNEv:
  240|     25|  static double NaN() {
  241|     25|    return Double(kNaN).value();
  242|     25|  }
_ZN17double_conversion6DoubleC2Ed:
   55|  1.30k|  explicit Double(double d) : d64_(double_to_uint64(d)) {}
_ZN17double_conversion6DoubleC2ENS_5DiyFpE:
   58|  1.32k|    : d64_(DiyFpToUint64(diy_fp)) {}
_ZNK17double_conversion6Double8AsUint64Ev:
   86|  4.73k|  uint64_t AsUint64() const {
   87|  4.73k|    return d64_;
   88|  4.73k|  }
_ZNK17double_conversion6Double10NextDoubleEv:
   91|    466|  double NextDouble() const {
   92|    466|    if (d64_ == kInfinity) return Double(kInfinity).value();
  ------------------
  |  Branch (92:9): [True: 0, False: 466]
  ------------------
   93|    466|    if (Sign() < 0 && Significand() == 0) {
  ------------------
  |  Branch (93:9): [True: 0, False: 466]
  |  Branch (93:23): [True: 0, False: 0]
  ------------------
   94|       |      // -0.0
   95|      0|      return 0.0;
   96|      0|    }
   97|    466|    if (Sign() < 0) {
  ------------------
  |  Branch (97:9): [True: 0, False: 466]
  ------------------
   98|      0|      return Double(d64_ - 1).value();
   99|    466|    } else {
  100|    466|      return Double(d64_ + 1).value();
  101|    466|    }
  102|    466|  }
_ZNK17double_conversion6Double8ExponentEv:
  114|    741|  int Exponent() const {
  115|    741|    if (IsDenormal()) return kDenormalExponent;
  ------------------
  |  Branch (115:9): [True: 86, False: 655]
  ------------------
  116|       |
  117|    655|    uint64_t d64 = AsUint64();
  118|    655|    int biased_e =
  119|    655|        static_cast<int>((d64 & kExponentMask) >> kPhysicalSignificandSize);
  120|    655|    return biased_e - kExponentBias;
  121|    741|  }
_ZNK17double_conversion6Double11SignificandEv:
  123|    834|  uint64_t Significand() const {
  124|    834|    uint64_t d64 = AsUint64();
  125|    834|    uint64_t significand = d64 & kSignificandMask;
  126|    834|    if (!IsDenormal()) {
  ------------------
  |  Branch (126:9): [True: 748, False: 86]
  ------------------
  127|    748|      return significand + kHiddenBit;
  128|    748|    } else {
  129|     86|      return significand;
  130|     86|    }
  131|    834|  }
_ZNK17double_conversion6Double10IsDenormalEv:
  134|  1.57k|  bool IsDenormal() const {
  135|  1.57k|    uint64_t d64 = AsUint64();
  136|  1.57k|    return (d64 & kExponentMask) == 0;
  137|  1.57k|  }
_ZNK17double_conversion6Double4SignEv:
  175|  1.67k|  int Sign() const {
  176|  1.67k|    uint64_t d64 = AsUint64();
  177|  1.67k|    return (d64 & kSignMask) == 0? 1: -1;
  ------------------
  |  Branch (177:12): [True: 1.67k, False: 0]
  ------------------
  178|  1.67k|  }
_ZNK17double_conversion6Double13UpperBoundaryEv:
  182|    741|  DiyFp UpperBoundary() const {
  183|    741|    DOUBLE_CONVERSION_ASSERT(Sign() > 0);
  ------------------
  |  |   47|    741|    assert(condition)
  ------------------
  |  Branch (183:5): [True: 741, False: 0]
  ------------------
  184|    741|    return DiyFp(Significand() * 2 + 1, Exponent() - 1);
  185|    741|  }
_ZN17double_conversion6Double34SignificandSizeForOrderOfMagnitudeEi:
  228|  1.32k|  static int SignificandSizeForOrderOfMagnitude(int order) {
  229|  1.32k|    if (order >= (kDenormalExponent + kSignificandSize)) {
  ------------------
  |  Branch (229:9): [True: 1.14k, False: 178]
  ------------------
  230|  1.14k|      return kSignificandSize;
  231|  1.14k|    }
  232|    178|    if (order <= kDenormalExponent) return 0;
  ------------------
  |  Branch (232:9): [True: 33, False: 145]
  ------------------
  233|    145|    return order - kDenormalExponent;
  234|    178|  }
_ZN17double_conversion6Double13DiyFpToUint64ENS_5DiyFpE:
  256|  1.32k|  static uint64_t DiyFpToUint64(DiyFp diy_fp) {
  257|  1.32k|    uint64_t significand = diy_fp.f();
  258|  1.32k|    int exponent = diy_fp.e();
  259|  1.34k|    while (significand > kHiddenBit + kSignificandMask) {
  ------------------
  |  Branch (259:12): [True: 20, False: 1.32k]
  ------------------
  260|     20|      significand >>= 1;
  261|     20|      exponent++;
  262|     20|    }
  263|  1.32k|    if (exponent >= kMaxExponent) {
  ------------------
  |  Branch (263:9): [True: 3, False: 1.32k]
  ------------------
  264|      3|      return kInfinity;
  265|      3|    }
  266|  1.32k|    if (exponent < kDenormalExponent) {
  ------------------
  |  Branch (266:9): [True: 23, False: 1.29k]
  ------------------
  267|     23|      return 0;
  268|     23|    }
  269|  1.29k|    while (exponent > kDenormalExponent && (significand & kHiddenBit) == 0) {
  ------------------
  |  Branch (269:12): [True: 1.14k, False: 157]
  |  Branch (269:44): [True: 0, False: 1.14k]
  ------------------
  270|      0|      significand <<= 1;
  271|      0|      exponent--;
  272|      0|    }
  273|  1.29k|    uint64_t biased_exponent;
  274|  1.29k|    if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) {
  ------------------
  |  Branch (274:9): [True: 157, False: 1.14k]
  |  Branch (274:42): [True: 155, False: 2]
  ------------------
  275|    155|      biased_exponent = 0;
  276|  1.14k|    } else {
  277|  1.14k|      biased_exponent = static_cast<uint64_t>(exponent + kExponentBias);
  278|  1.14k|    }
  279|  1.29k|    return (significand & kSignificandMask) |
  280|  1.29k|        (biased_exponent << kPhysicalSignificandSize);
  281|  1.32k|  }
strtod.cc:_ZN17double_conversionL16uint64_to_doubleEm:
   37|  2.69k|static double uint64_to_double(uint64_t d64) { return BitCast<double>(d64); }
strtod.cc:_ZN17double_conversionL16double_to_uint64Ed:
   36|  1.30k|static uint64_t double_to_uint64(double d) { return BitCast<uint64_t>(d); }

_ZNK17double_conversion23StringToDoubleConverter14StringToDoubleEPKciPi:
  933|  3.51k|    int* processed_characters_count) const {
  934|  3.51k|  return StringToIeee(buffer, length, true, processed_characters_count);
  935|  3.51k|}
_ZNK17double_conversion23StringToDoubleConverter12StringToIeeeIPKcEEdT_ibPi:
  574|  3.51k|    int* processed_characters_count) const {
  575|  3.51k|  Iterator current = input;
  576|  3.51k|  Iterator end = input + length;
  577|       |
  578|  3.51k|  *processed_characters_count = 0;
  579|       |
  580|  3.51k|  const bool allow_trailing_junk = (flags_ & ALLOW_TRAILING_JUNK) != 0;
  581|  3.51k|  const bool allow_leading_spaces = (flags_ & ALLOW_LEADING_SPACES) != 0;
  582|  3.51k|  const bool allow_trailing_spaces = (flags_ & ALLOW_TRAILING_SPACES) != 0;
  583|  3.51k|  const bool allow_spaces_after_sign = (flags_ & ALLOW_SPACES_AFTER_SIGN) != 0;
  584|  3.51k|  const bool allow_case_insensitivity = (flags_ & ALLOW_CASE_INSENSITIVITY) != 0;
  585|       |
  586|       |  // To make sure that iterator dereferencing is valid the following
  587|       |  // convention is used:
  588|       |  // 1. Each '++current' statement is followed by check for equality to 'end'.
  589|       |  // 2. If AdvanceToNonspace returned false then current == end.
  590|       |  // 3. If 'current' becomes equal to 'end' the function returns or goes to
  591|       |  // 'parsing_done'.
  592|       |  // 4. 'current' is not dereferenced after the 'parsing_done' label.
  593|       |  // 5. Code before 'parsing_done' may rely on 'current != end'.
  594|  3.51k|  if (current == end) return empty_string_value_;
  ------------------
  |  Branch (594:7): [True: 0, False: 3.51k]
  ------------------
  595|       |
  596|  3.51k|  if (allow_leading_spaces || allow_trailing_spaces) {
  ------------------
  |  Branch (596:7): [True: 3.51k, False: 0]
  |  Branch (596:31): [True: 0, False: 0]
  ------------------
  597|  3.51k|    if (!AdvanceToNonspace(&current, end)) {
  ------------------
  |  Branch (597:9): [True: 14, False: 3.50k]
  ------------------
  598|     14|      *processed_characters_count = static_cast<int>(current - input);
  599|     14|      return empty_string_value_;
  600|     14|    }
  601|  3.50k|    if (!allow_leading_spaces && (input != current)) {
  ------------------
  |  Branch (601:9): [True: 0, False: 3.50k]
  |  Branch (601:34): [True: 0, False: 0]
  ------------------
  602|       |      // No leading spaces allowed, but AdvanceToNonspace moved forward.
  603|      0|      return junk_string_value_;
  604|      0|    }
  605|  3.50k|  }
  606|       |
  607|       |  // Exponent will be adjusted if insignificant digits of the integer part
  608|       |  // or insignificant leading zeros of the fractional part are dropped.
  609|  3.50k|  int exponent = 0;
  610|       |  // Leading fractional zeros and dropped integer digits are both moved into the
  611|       |  // exponent, and both are bounded only by the input length. Saturating the
  612|       |  // accumulation at this magnitude keeps it inside int; any exponent this large
  613|       |  // is far outside the double range, so the clamped result is unchanged.
  614|  3.50k|  const int max_exponent = INT_MAX / 2;
  615|  3.50k|  int significant_digits = 0;
  616|  3.50k|  int insignificant_digits = 0;
  617|  3.50k|  bool nonzero_digit_dropped = false;
  618|       |
  619|  3.50k|  bool sign = false;
  620|       |
  621|  3.50k|  if (*current == '+' || *current == '-') {
  ------------------
  |  Branch (621:7): [True: 14, False: 3.48k]
  |  Branch (621:26): [True: 134, False: 3.35k]
  ------------------
  622|    148|    sign = (*current == '-');
  623|    148|    ++current;
  624|    148|    Iterator next_non_space = current;
  625|       |    // Skip following spaces (if allowed).
  626|    148|    if (!AdvanceToNonspace(&next_non_space, end)) return junk_string_value_;
  ------------------
  |  Branch (626:9): [True: 17, False: 131]
  ------------------
  627|    131|    if (!allow_spaces_after_sign && (current != next_non_space)) {
  ------------------
  |  Branch (627:9): [True: 0, False: 131]
  |  Branch (627:37): [True: 0, False: 0]
  ------------------
  628|      0|      return junk_string_value_;
  629|      0|    }
  630|    131|    current = next_non_space;
  631|    131|  }
  632|       |
  633|  3.48k|  if (infinity_symbol_ != DOUBLE_CONVERSION_NULLPTR) {
  ------------------
  |  |   39|  3.48k|#define DOUBLE_CONVERSION_NULLPTR nullptr
  ------------------
  |  Branch (633:7): [True: 3.48k, False: 0]
  ------------------
  634|  3.48k|    if (ConsumeFirstCharacter(*current, infinity_symbol_, allow_case_insensitivity)) {
  ------------------
  |  Branch (634:9): [True: 40, False: 3.44k]
  ------------------
  635|     40|      if (!ConsumeSubString(&current, end, infinity_symbol_, allow_case_insensitivity)) {
  ------------------
  |  Branch (635:11): [True: 8, False: 32]
  ------------------
  636|      8|        return junk_string_value_;
  637|      8|      }
  638|       |
  639|     32|      if (!(allow_trailing_spaces || allow_trailing_junk) && (current != end)) {
  ------------------
  |  Branch (639:13): [True: 32, False: 0]
  |  Branch (639:38): [True: 0, False: 0]
  |  Branch (639:62): [True: 0, False: 0]
  ------------------
  640|      0|        return junk_string_value_;
  641|      0|      }
  642|     32|      if (!allow_trailing_junk && AdvanceToNonspace(&current, end)) {
  ------------------
  |  Branch (642:11): [True: 0, False: 32]
  |  Branch (642:35): [True: 0, False: 0]
  ------------------
  643|      0|        return junk_string_value_;
  644|      0|      }
  645|     32|      if (allow_trailing_spaces) {
  ------------------
  |  Branch (645:11): [True: 32, False: 0]
  ------------------
  646|     32|        AdvanceToNonspace(&current, end);
  647|     32|      }
  648|       |
  649|     32|      *processed_characters_count = static_cast<int>(current - input);
  650|     32|      return sign ? -Double::Infinity() : Double::Infinity();
  ------------------
  |  Branch (650:14): [True: 1, False: 31]
  ------------------
  651|     32|    }
  652|  3.48k|  }
  653|       |
  654|  3.44k|  if (nan_symbol_ != DOUBLE_CONVERSION_NULLPTR) {
  ------------------
  |  |   39|  3.44k|#define DOUBLE_CONVERSION_NULLPTR nullptr
  ------------------
  |  Branch (654:7): [True: 3.44k, False: 0]
  ------------------
  655|  3.44k|    if (ConsumeFirstCharacter(*current, nan_symbol_, allow_case_insensitivity)) {
  ------------------
  |  Branch (655:9): [True: 33, False: 3.41k]
  ------------------
  656|     33|      if (!ConsumeSubString(&current, end, nan_symbol_, allow_case_insensitivity)) {
  ------------------
  |  Branch (656:11): [True: 8, False: 25]
  ------------------
  657|      8|        return junk_string_value_;
  658|      8|      }
  659|       |
  660|     25|      if (!(allow_trailing_spaces || allow_trailing_junk) && (current != end)) {
  ------------------
  |  Branch (660:13): [True: 25, False: 0]
  |  Branch (660:38): [True: 0, False: 0]
  |  Branch (660:62): [True: 0, False: 0]
  ------------------
  661|      0|        return junk_string_value_;
  662|      0|      }
  663|     25|      if (!allow_trailing_junk && AdvanceToNonspace(&current, end)) {
  ------------------
  |  Branch (663:11): [True: 0, False: 25]
  |  Branch (663:35): [True: 0, False: 0]
  ------------------
  664|      0|        return junk_string_value_;
  665|      0|      }
  666|     25|      if (allow_trailing_spaces) {
  ------------------
  |  Branch (666:11): [True: 25, False: 0]
  ------------------
  667|     25|        AdvanceToNonspace(&current, end);
  668|     25|      }
  669|       |
  670|     25|      *processed_characters_count = static_cast<int>(current - input);
  671|     25|      return sign ? -Double::NaN() : Double::NaN();
  ------------------
  |  Branch (671:14): [True: 1, False: 24]
  ------------------
  672|     25|    }
  673|  3.44k|  }
  674|       |
  675|  3.41k|  bool leading_zero = false;
  676|  3.41k|  if (*current == '0') {
  ------------------
  |  Branch (676:7): [True: 1.40k, False: 2.01k]
  ------------------
  677|  1.40k|    if (Advance(&current, separator_, 10, end)) {
  ------------------
  |  Branch (677:9): [True: 2, False: 1.39k]
  ------------------
  678|      2|      *processed_characters_count = static_cast<int>(current - input);
  679|      2|      return SignedZero(sign);
  680|      2|    }
  681|       |
  682|  1.39k|    leading_zero = true;
  683|       |
  684|       |    // It could be hexadecimal value.
  685|  1.39k|    if (((flags_ & ALLOW_HEX) || (flags_ & ALLOW_HEX_FLOATS)) &&
  ------------------
  |  Branch (685:10): [True: 1.39k, False: 0]
  |  Branch (685:34): [True: 0, False: 0]
  ------------------
  686|  1.39k|        (*current == 'x' || *current == 'X')) {
  ------------------
  |  Branch (686:10): [True: 761, False: 638]
  |  Branch (686:29): [True: 319, False: 319]
  ------------------
  687|  1.08k|      ++current;
  688|       |
  689|  1.08k|      if (current == end) return junk_string_value_;  // "0x"
  ------------------
  |  Branch (689:11): [True: 2, False: 1.07k]
  ------------------
  690|       |
  691|  1.07k|      bool parse_as_hex_float = (flags_ & ALLOW_HEX_FLOATS) &&
  ------------------
  |  Branch (691:33): [True: 1.07k, False: 0]
  ------------------
  692|  1.07k|                IsHexFloatString(current, end, separator_, allow_trailing_junk,
  ------------------
  |  Branch (692:17): [True: 671, False: 407]
  ------------------
  693|  1.07k|                                 allow_trailing_spaces);
  694|       |
  695|       |      // Without ALLOW_HEX the "0x" prefix only introduces a hex-float, so a
  696|       |      // literal that is not one is junk rather than a hex integer.
  697|  1.07k|      if (!parse_as_hex_float &&
  ------------------
  |  Branch (697:11): [True: 407, False: 671]
  ------------------
  698|    407|          (!(flags_ & ALLOW_HEX) || !isDigit(*current, 16))) {
  ------------------
  |  Branch (698:12): [True: 0, False: 407]
  |  Branch (698:37): [True: 87, False: 320]
  ------------------
  699|     87|        return junk_string_value_;
  700|     87|      }
  701|       |
  702|    991|      bool result_is_junk;
  703|    991|      double result = RadixStringToIeee<4>(&current,
  704|    991|                                           end,
  705|    991|                                           sign,
  706|    991|                                           separator_,
  707|    991|                                           parse_as_hex_float,
  708|    991|                                           allow_trailing_junk,
  709|    991|                                           allow_trailing_spaces,
  710|    991|                                           junk_string_value_,
  711|    991|                                           read_as_double,
  712|    991|                                           &result_is_junk);
  713|    991|      if (!result_is_junk) {
  ------------------
  |  Branch (713:11): [True: 991, False: 0]
  ------------------
  714|    991|        if (allow_trailing_spaces) AdvanceToNonspace(&current, end);
  ------------------
  |  Branch (714:13): [True: 991, False: 0]
  ------------------
  715|    991|        *processed_characters_count = static_cast<int>(current - input);
  716|    991|      }
  717|    991|      return result;
  718|  1.07k|    }
  719|       |
  720|       |    // Ignore leading zeros in the integer part.
  721|    736|    while (*current == '0') {
  ------------------
  |  Branch (721:12): [True: 425, False: 311]
  ------------------
  722|    425|      if (Advance(&current, separator_, 10, end)) {
  ------------------
  |  Branch (722:11): [True: 8, False: 417]
  ------------------
  723|      8|        *processed_characters_count = static_cast<int>(current - input);
  724|      8|        return SignedZero(sign);
  725|      8|      }
  726|    425|    }
  727|    319|  }
  728|       |
  729|  2.32k|  bool octal = leading_zero && (flags_ & ALLOW_OCTALS) != 0;
  ------------------
  |  Branch (729:16): [True: 311, False: 2.01k]
  |  Branch (729:32): [True: 311, False: 0]
  ------------------
  730|       |
  731|       |  // The longest form of simplified number is: "-<significant digits>.1eXXX\0".
  732|  2.32k|  const int kBufferSize = kMaxSignificantDigits + 10;
  733|  2.32k|  DOUBLE_CONVERSION_STACK_UNINITIALIZED char
  ------------------
  |  |  104|  2.32k|#define DOUBLE_CONVERSION_STACK_UNINITIALIZED __attribute__((uninitialized))
  ------------------
  734|  2.32k|      buffer[kBufferSize];  // NOLINT: size is known at compile time.
  735|  2.32k|  int buffer_pos = 0;
  736|       |
  737|       |  // Copy significant digits of the integer part (if any) to the buffer.
  738|  73.6k|  while (*current >= '0' && *current <= '9') {
  ------------------
  |  Branch (738:10): [True: 73.1k, False: 501]
  |  Branch (738:29): [True: 72.0k, False: 1.07k]
  ------------------
  739|  72.0k|    if (significant_digits < kMaxSignificantDigits) {
  ------------------
  |  Branch (739:9): [True: 71.6k, False: 400]
  ------------------
  740|  71.6k|      DOUBLE_CONVERSION_ASSERT(buffer_pos < kBufferSize);
  ------------------
  |  |   47|  71.6k|    assert(condition)
  ------------------
  |  Branch (740:7): [True: 71.6k, False: 0]
  ------------------
  741|  71.6k|      buffer[buffer_pos++] = static_cast<char>(*current);
  742|  71.6k|      significant_digits++;
  743|       |      // Will later check if it's an octal in the buffer.
  744|  71.6k|    } else {
  745|    400|      insignificant_digits++;  // Move the digit into the exponential part.
  746|    400|      nonzero_digit_dropped = nonzero_digit_dropped || *current != '0';
  ------------------
  |  Branch (746:31): [True: 194, False: 206]
  |  Branch (746:56): [True: 17, False: 189]
  ------------------
  747|    400|    }
  748|  72.0k|    octal = octal && *current < '8';
  ------------------
  |  Branch (748:13): [True: 8.66k, False: 63.3k]
  |  Branch (748:22): [True: 8.65k, False: 3]
  ------------------
  749|  72.0k|    if (Advance(&current, separator_, 10, end)) goto parsing_done;
  ------------------
  |  Branch (749:9): [True: 743, False: 71.2k]
  ------------------
  750|  72.0k|  }
  751|       |
  752|  1.57k|  if (significant_digits == 0) {
  ------------------
  |  Branch (752:7): [True: 325, False: 1.25k]
  ------------------
  753|    325|    octal = false;
  754|    325|  }
  755|       |
  756|  1.57k|  if (*current == '.') {
  ------------------
  |  Branch (756:7): [True: 410, False: 1.16k]
  ------------------
  757|    410|    if (octal && !allow_trailing_junk) return junk_string_value_;
  ------------------
  |  Branch (757:9): [True: 1, False: 409]
  |  Branch (757:18): [True: 0, False: 1]
  ------------------
  758|    410|    if (octal) goto parsing_done;
  ------------------
  |  Branch (758:9): [True: 1, False: 409]
  ------------------
  759|       |
  760|    409|    if (Advance(&current, separator_, 10, end)) {
  ------------------
  |  Branch (760:9): [True: 4, False: 405]
  ------------------
  761|      4|      if (significant_digits == 0 && !leading_zero) {
  ------------------
  |  Branch (761:11): [True: 3, False: 1]
  |  Branch (761:38): [True: 2, False: 1]
  ------------------
  762|      2|        return junk_string_value_;
  763|      2|      } else {
  764|      2|        goto parsing_done;
  765|      2|      }
  766|      4|    }
  767|       |
  768|    405|    if (significant_digits == 0) {
  ------------------
  |  Branch (768:9): [True: 191, False: 214]
  ------------------
  769|       |      // octal = false;
  770|       |      // Integer part consists of 0 or is absent. Significant digits start after
  771|       |      // leading zeros (if any).
  772|  4.93M|      while (*current == '0') {
  ------------------
  |  Branch (772:14): [True: 4.93M, False: 175]
  ------------------
  773|  4.93M|        if (Advance(&current, separator_, 10, end)) {
  ------------------
  |  Branch (773:13): [True: 16, False: 4.93M]
  ------------------
  774|     16|          *processed_characters_count = static_cast<int>(current - input);
  775|     16|          return SignedZero(sign);
  776|     16|        }
  777|       |        // Saturate to avoid underflow on a pathologically long zero run.
  778|  4.93M|        if (exponent > -(max_exponent / 2)) exponent--;  // Move this 0 into the exponent.
  ------------------
  |  Branch (778:13): [True: 4.93M, False: 0]
  ------------------
  779|  4.93M|      }
  780|    191|    }
  781|       |
  782|       |    // There is a fractional part.
  783|       |    // We don't emit a '.', but adjust the exponent instead.
  784|   212k|    while (*current >= '0' && *current <= '9') {
  ------------------
  |  Branch (784:12): [True: 212k, False: 44]
  |  Branch (784:31): [True: 212k, False: 92]
  ------------------
  785|   212k|      if (significant_digits < kMaxSignificantDigits) {
  ------------------
  |  Branch (785:11): [True: 70.4k, False: 142k]
  ------------------
  786|  70.4k|        DOUBLE_CONVERSION_ASSERT(buffer_pos < kBufferSize);
  ------------------
  |  |   47|  70.4k|    assert(condition)
  ------------------
  |  Branch (786:9): [True: 70.4k, False: 0]
  ------------------
  787|  70.4k|        buffer[buffer_pos++] = static_cast<char>(*current);
  788|  70.4k|        significant_digits++;
  789|  70.4k|        if (exponent > -(max_exponent / 2)) exponent--;
  ------------------
  |  Branch (789:13): [True: 70.4k, False: 0]
  ------------------
  790|   142k|      } else {
  791|       |        // Ignore insignificant digits in the fractional part.
  792|   142k|        nonzero_digit_dropped = nonzero_digit_dropped || *current != '0';
  ------------------
  |  Branch (792:33): [True: 961, False: 141k]
  |  Branch (792:58): [True: 15, False: 141k]
  ------------------
  793|   142k|      }
  794|   212k|      if (Advance(&current, separator_, 10, end)) goto parsing_done;
  ------------------
  |  Branch (794:11): [True: 253, False: 212k]
  ------------------
  795|   212k|    }
  796|    389|  }
  797|       |
  798|  1.30k|  if (!leading_zero && exponent == 0 && significant_digits == 0) {
  ------------------
  |  Branch (798:7): [True: 1.22k, False: 75]
  |  Branch (798:24): [True: 1.11k, False: 114]
  |  Branch (798:41): [True: 79, False: 1.03k]
  ------------------
  799|       |    // If leading_zeros is true then the string contains zeros.
  800|       |    // If exponent < 0 then string was [+-]\.0*...
  801|       |    // If significant_digits != 0 the string is not equal to 0.
  802|       |    // Otherwise there are no digits in the string.
  803|     79|    return junk_string_value_;
  804|     79|  }
  805|       |
  806|       |  // Parse exponential part.
  807|  1.22k|  if (*current == 'e' || *current == 'E') {
  ------------------
  |  Branch (807:7): [True: 557, False: 668]
  |  Branch (807:26): [True: 551, False: 117]
  ------------------
  808|  1.10k|    if (octal && !allow_trailing_junk) return junk_string_value_;
  ------------------
  |  Branch (808:9): [True: 1, False: 1.10k]
  |  Branch (808:18): [True: 0, False: 1]
  ------------------
  809|  1.10k|    if (octal) goto parsing_done;
  ------------------
  |  Branch (809:9): [True: 1, False: 1.10k]
  ------------------
  810|  1.10k|    Iterator junk_begin = current;
  811|  1.10k|    ++current;
  812|  1.10k|    if (current == end) {
  ------------------
  |  Branch (812:9): [True: 6, False: 1.10k]
  ------------------
  813|      6|      if (allow_trailing_junk) {
  ------------------
  |  Branch (813:11): [True: 6, False: 0]
  ------------------
  814|      6|        current = junk_begin;
  815|      6|        goto parsing_done;
  816|      6|      } else {
  817|      0|        return junk_string_value_;
  818|      0|      }
  819|      6|    }
  820|  1.10k|    char exponen_sign = '+';
  821|  1.10k|    if (*current == '+' || *current == '-') {
  ------------------
  |  Branch (821:9): [True: 2, False: 1.09k]
  |  Branch (821:28): [True: 426, False: 673]
  ------------------
  822|    428|      exponen_sign = static_cast<char>(*current);
  823|    428|      ++current;
  824|    428|      if (current == end) {
  ------------------
  |  Branch (824:11): [True: 2, False: 426]
  ------------------
  825|      2|        if (allow_trailing_junk) {
  ------------------
  |  Branch (825:13): [True: 2, False: 0]
  ------------------
  826|      2|          current = junk_begin;
  827|      2|          goto parsing_done;
  828|      2|        } else {
  829|      0|          return junk_string_value_;
  830|      0|        }
  831|      2|      }
  832|    428|    }
  833|       |
  834|  1.09k|    if (current == end || *current < '0' || *current > '9') {
  ------------------
  |  Branch (834:9): [True: 0, False: 1.09k]
  |  Branch (834:27): [True: 15, False: 1.08k]
  |  Branch (834:45): [True: 3, False: 1.08k]
  ------------------
  835|     18|      if (allow_trailing_junk) {
  ------------------
  |  Branch (835:11): [True: 18, False: 0]
  ------------------
  836|     18|        current = junk_begin;
  837|     18|        goto parsing_done;
  838|     18|      } else {
  839|      0|        return junk_string_value_;
  840|      0|      }
  841|     18|    }
  842|       |
  843|  1.08k|    DOUBLE_CONVERSION_ASSERT(-max_exponent / 2 <= exponent && exponent <= max_exponent / 2);
  ------------------
  |  |   47|  1.08k|    assert(condition)
  ------------------
  |  Branch (843:5): [True: 1.08k, False: 0]
  |  Branch (843:5): [True: 1.08k, False: 0]
  |  Branch (843:5): [True: 1.08k, False: 0]
  ------------------
  844|  1.08k|    int num = 0;
  845|  5.49k|    do {
  846|       |      // Check overflow.
  847|  5.49k|      int digit = *current - '0';
  848|  5.49k|      if (num >= max_exponent / 10
  ------------------
  |  Branch (848:11): [True: 1.44k, False: 4.05k]
  ------------------
  849|  1.44k|          && !(num == max_exponent / 10 && digit <= max_exponent % 10)) {
  ------------------
  |  Branch (849:16): [True: 5, False: 1.43k]
  |  Branch (849:44): [True: 3, False: 2]
  ------------------
  850|  1.43k|        num = max_exponent;
  851|  4.05k|      } else {
  852|  4.05k|        num = num * 10 + digit;
  853|  4.05k|      }
  854|  5.49k|      ++current;
  855|  5.49k|    } while (current != end && *current >= '0' && *current <= '9');
  ------------------
  |  Branch (855:14): [True: 4.42k, False: 1.06k]
  |  Branch (855:32): [True: 4.41k, False: 12]
  |  Branch (855:51): [True: 4.40k, False: 1]
  ------------------
  856|       |
  857|  1.08k|    exponent += (exponen_sign == '-' ? -num : num);
  ------------------
  |  Branch (857:18): [True: 425, False: 656]
  ------------------
  858|  1.08k|  }
  859|       |
  860|  1.19k|  if (!(allow_trailing_spaces || allow_trailing_junk) && (current != end)) {
  ------------------
  |  Branch (860:9): [True: 1.19k, False: 0]
  |  Branch (860:34): [True: 0, False: 0]
  |  Branch (860:58): [True: 0, False: 0]
  ------------------
  861|      0|    return junk_string_value_;
  862|      0|  }
  863|  1.19k|  if (!allow_trailing_junk && AdvanceToNonspace(&current, end)) {
  ------------------
  |  Branch (863:7): [True: 0, False: 1.19k]
  |  Branch (863:31): [True: 0, False: 0]
  ------------------
  864|      0|    return junk_string_value_;
  865|      0|  }
  866|  1.19k|  if (allow_trailing_spaces) {
  ------------------
  |  Branch (866:7): [True: 1.19k, False: 0]
  ------------------
  867|  1.19k|    AdvanceToNonspace(&current, end);
  868|  1.19k|  }
  869|       |
  870|  2.22k|  parsing_done:
  871|       |  // insignificant_digits counts integer digits dropped past the significand
  872|       |  // limit and is bounded only by the input length, so exponent + it can exceed
  873|       |  // int. Saturate: such a value is out of the double range regardless.
  874|  2.22k|  {
  875|  2.22k|    const int64_t combined =
  876|  2.22k|        static_cast<int64_t>(exponent) + insignificant_digits;
  877|  2.22k|    if (combined > max_exponent) {
  ------------------
  |  Branch (877:9): [True: 1, False: 2.22k]
  ------------------
  878|      1|      exponent = max_exponent;
  879|  2.22k|    } else if (combined < -max_exponent) {
  ------------------
  |  Branch (879:16): [True: 23, False: 2.20k]
  ------------------
  880|     23|      exponent = -max_exponent;
  881|  2.20k|    } else {
  882|  2.20k|      exponent = static_cast<int>(combined);
  883|  2.20k|    }
  884|  2.22k|  }
  885|       |
  886|  2.22k|  if (octal) {
  ------------------
  |  Branch (886:7): [True: 233, False: 1.99k]
  ------------------
  887|    233|    double result;
  888|    233|    bool result_is_junk;
  889|    233|    char* start = buffer;
  890|    233|    result = RadixStringToIeee<3>(&start,
  891|    233|                                  buffer + buffer_pos,
  892|    233|                                  sign,
  893|    233|                                  separator_,
  894|    233|                                  false, // Don't parse as hex_float.
  895|    233|                                  allow_trailing_junk,
  896|    233|                                  allow_trailing_spaces,
  897|    233|                                  junk_string_value_,
  898|    233|                                  read_as_double,
  899|    233|                                  &result_is_junk);
  900|    233|    DOUBLE_CONVERSION_ASSERT(!result_is_junk);
  ------------------
  |  |   47|    233|    assert(condition)
  ------------------
  |  Branch (900:5): [True: 233, False: 0]
  ------------------
  901|    233|    *processed_characters_count = static_cast<int>(current - input);
  902|    233|    return result;
  903|    233|  }
  904|       |
  905|  1.99k|  if (nonzero_digit_dropped) {
  ------------------
  |  Branch (905:7): [True: 32, False: 1.95k]
  ------------------
  906|     32|    buffer[buffer_pos++] = '1';
  907|     32|    exponent--;
  908|     32|  }
  909|       |
  910|  1.99k|  DOUBLE_CONVERSION_ASSERT(buffer_pos < kBufferSize);
  ------------------
  |  |   47|  1.99k|    assert(condition)
  ------------------
  |  Branch (910:3): [True: 1.99k, False: 0]
  ------------------
  911|  1.99k|  buffer[buffer_pos] = '\0';
  912|       |
  913|       |  // Code above ensures there are no leading zeros and the buffer has fewer than
  914|       |  // kMaxSignificantDecimalDigits characters. Trim trailing zeros.
  915|  1.99k|  Vector<const char> chars(buffer, buffer_pos);
  916|  1.99k|  chars = TrimTrailingZeros(chars);
  917|  1.99k|  exponent += buffer_pos - chars.length();
  918|       |
  919|  1.99k|  double converted;
  920|  1.99k|  if (read_as_double) {
  ------------------
  |  Branch (920:7): [True: 1.99k, False: 0]
  ------------------
  921|  1.99k|    converted = StrtodTrimmed(chars, exponent);
  922|  1.99k|  } else {
  923|      0|    converted = StrtofTrimmed(chars, exponent);
  924|      0|  }
  925|  1.99k|  *processed_characters_count = static_cast<int>(current - input);
  926|  1.99k|  return sign? -converted: converted;
  ------------------
  |  Branch (926:10): [True: 3, False: 1.98k]
  ------------------
  927|  1.99k|}
string-to-double.cc:_ZN17double_conversionL17AdvanceToNonspaceIPKcEEbPT_S3_:
  173|  5.90k|static inline bool AdvanceToNonspace(Iterator* current, Iterator end) {
  174|  8.47k|  while (*current != end) {
  ------------------
  |  Branch (174:10): [True: 6.47k, False: 2.00k]
  ------------------
  175|  6.47k|    if (!isWhitespace(**current)) return true;
  ------------------
  |  Branch (175:9): [True: 3.90k, False: 2.56k]
  ------------------
  176|  2.56k|    ++*current;
  177|  2.56k|  }
  178|  2.00k|  return false;
  179|  5.90k|}
string-to-double.cc:_ZN17double_conversionL12isWhitespaceEc:
  157|  6.47k|static bool isWhitespace(char x) {
  158|  6.47k|  return isWhitespace7(x);
  159|  6.47k|}
string-to-double.cc:_ZN17double_conversionL13isWhitespace7Ei:
  143|  6.47k|static bool isWhitespace7(int x) {
  144|  36.9k|  for (int i = 0; i < kWhitespaceTable7Length; i++) {
  ------------------
  |  Branch (144:19): [True: 33.0k, False: 3.90k]
  ------------------
  145|  33.0k|    if (kWhitespaceTable7[i] == x) return true;
  ------------------
  |  Branch (145:9): [True: 2.56k, False: 30.5k]
  ------------------
  146|  33.0k|  }
  147|  3.90k|  return false;
  148|  6.47k|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_121ConsumeFirstCharacterIcEEbT_PKcb:
  114|  6.92k|                                         bool case_insensitivity) {
  115|  6.92k|  if (str[0] == '\0') return false;
  ------------------
  |  Branch (115:7): [True: 0, False: 6.92k]
  ------------------
  116|  6.92k|  const uint32_t c = CodeUnit(ch);
  117|  6.92k|  const uint32_t first = CodeUnit(str[0]);
  118|  6.92k|  return case_insensitivity ? ToLower(c) == ToLower(first) : c == first;
  ------------------
  |  Branch (118:10): [True: 6.92k, False: 0]
  ------------------
  119|  6.92k|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_18CodeUnitEc:
   57|  14.2k|inline uint32_t CodeUnit(char ch) {
   58|  14.2k|  return static_cast<unsigned char>(ch);
   59|  14.2k|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_17ToLowerEj:
   65|  14.2k|inline uint32_t ToLower(uint32_t ch) {
   66|  14.2k|  if (ch > 0x7F) return ch;
  ------------------
  |  Branch (66:7): [True: 51, False: 14.2k]
  ------------------
   67|  14.2k|  static const std::ctype<char>& cType =
   68|  14.2k|      std::use_facet<std::ctype<char> >(std::locale::classic());
   69|  14.2k|  return static_cast<unsigned char>(cType.tolower(static_cast<char>(ch)));
   70|  14.2k|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_116ConsumeSubStringIPKcEEbPT_S4_S3_b:
  100|     73|                             bool allow_case_insensitivity) {
  101|     73|  if (allow_case_insensitivity) {
  ------------------
  |  Branch (101:7): [True: 73, False: 0]
  ------------------
  102|     73|    return ConsumeSubStringImpl(current, end, substring, ToLower);
  103|     73|  } else {
  104|      0|    return ConsumeSubStringImpl(current, end, substring, Pass);
  105|      0|  }
  106|     73|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_120ConsumeSubStringImplIPKcPFjjEEEbPT_S6_S3_T0_:
   80|     73|                                        Converter converter) {
   81|     73|  DOUBLE_CONVERSION_ASSERT(
  ------------------
  |  |   47|     73|    assert(condition)
  ------------------
  |  Branch (81:3): [True: 73, False: 0]
  ------------------
   82|     73|      converter(CodeUnit(**current)) == converter(CodeUnit(*substring)));
   83|    190|  for (substring++; *substring != '\0'; substring++) {
  ------------------
  |  Branch (83:21): [True: 133, False: 57]
  ------------------
   84|    133|    ++*current;
   85|    133|    if (*current == end ||
  ------------------
  |  Branch (85:9): [True: 4, False: 129]
  ------------------
   86|    129|        converter(CodeUnit(**current)) != converter(CodeUnit(*substring))) {
  ------------------
  |  Branch (86:9): [True: 12, False: 117]
  ------------------
   87|     16|      return false;
   88|     16|    }
   89|    133|  }
   90|     57|  ++*current;
   91|     57|  return true;
   92|     73|}
string-to-double.cc:_ZN17double_conversionL7AdvanceIPKcEEbPT_tiRS3_:
  224|  5.26M|static bool Advance (Iterator* it, uc16 separator, int base, Iterator& end) {
  225|  5.26M|  if (separator == StringToDoubleConverter::kNoSeparator) {
  ------------------
  |  Branch (225:7): [True: 5.26M, False: 0]
  ------------------
  226|  5.26M|    ++(*it);
  227|  5.26M|    return *it == end;
  228|  5.26M|  }
  229|      0|  if (!isDigit(**it, base)) {
  ------------------
  |  Branch (229:7): [True: 0, False: 0]
  ------------------
  230|      0|    ++(*it);
  231|      0|    return *it == end;
  232|      0|  }
  233|      0|  ++(*it);
  234|      0|  if (*it == end) return true;
  ------------------
  |  Branch (234:7): [True: 0, False: 0]
  ------------------
  235|      0|  if (*it + 1 == end) return false;
  ------------------
  |  Branch (235:7): [True: 0, False: 0]
  ------------------
  236|      0|  if (**it == separator && isDigit(*(*it + 1), base)) {
  ------------------
  |  Branch (236:7): [True: 0, False: 0]
  |  Branch (236:28): [True: 0, False: 0]
  ------------------
  237|      0|    ++(*it);
  238|      0|  }
  239|      0|  return *it == end;
  240|      0|}
string-to-double.cc:_ZN17double_conversionL10SignedZeroEb:
  189|    116|static double SignedZero(bool sign) {
  190|    116|  return sign ? -0.0 : 0.0;
  ------------------
  |  Branch (190:10): [True: 0, False: 116]
  ------------------
  191|    116|}
string-to-double.cc:_ZN17double_conversionL16IsHexFloatStringIPKcEEbT_S3_tbb:
  254|  1.74k|                             bool allow_trailing_spaces) {
  255|  1.74k|  DOUBLE_CONVERSION_ASSERT(start != end);
  ------------------
  |  |   47|  1.74k|    assert(condition)
  ------------------
  |  Branch (255:3): [True: 1.74k, False: 0]
  ------------------
  256|       |
  257|  1.74k|  Iterator current = start;
  258|       |
  259|  1.74k|  bool saw_digit = false;
  260|  14.1k|  while (isDigit(*current, 16)) {
  ------------------
  |  Branch (260:10): [True: 12.6k, False: 1.55k]
  ------------------
  261|  12.6k|    saw_digit = true;
  262|  12.6k|    if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (262:9): [True: 192, False: 12.4k]
  ------------------
  263|  12.6k|  }
  264|  1.55k|  if (*current == '.') {
  ------------------
  |  Branch (264:7): [True: 128, False: 1.42k]
  ------------------
  265|    128|    if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (265:9): [True: 3, False: 125]
  ------------------
  266|  1.70k|    while (isDigit(*current, 16)) {
  ------------------
  |  Branch (266:12): [True: 1.59k, False: 112]
  ------------------
  267|  1.59k|      saw_digit = true;
  268|  1.59k|      if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (268:11): [True: 13, False: 1.58k]
  ------------------
  269|  1.59k|    }
  270|    125|  }
  271|  1.54k|  if (!saw_digit) return false;
  ------------------
  |  Branch (271:7): [True: 68, False: 1.47k]
  ------------------
  272|  1.47k|  if (*current != 'p' && *current != 'P') return false;
  ------------------
  |  Branch (272:7): [True: 392, False: 1.08k]
  |  Branch (272:26): [True: 100, False: 292]
  ------------------
  273|       |  // The separator is only allowed between significand digits, not in the
  274|       |  // exponent, so advance through the exponent with no separator.
  275|  1.37k|  const uc16 kNoSeparator = StringToDoubleConverter::kNoSeparator;
  276|  1.37k|  if (Advance(&current, kNoSeparator, 16, end)) return false;
  ------------------
  |  Branch (276:7): [True: 5, False: 1.36k]
  ------------------
  277|  1.36k|  if (*current == '+' || *current == '-') {
  ------------------
  |  Branch (277:7): [True: 3, False: 1.36k]
  |  Branch (277:26): [True: 704, False: 661]
  ------------------
  278|    707|    if (Advance(&current, kNoSeparator, 16, end)) return false;
  ------------------
  |  Branch (278:9): [True: 2, False: 705]
  ------------------
  279|    707|  }
  280|  1.36k|  if (!isDigit(*current, 10)) return false;
  ------------------
  |  Branch (280:7): [True: 24, False: 1.34k]
  ------------------
  281|  1.34k|  if (Advance(&current, kNoSeparator, 16, end)) return true;
  ------------------
  |  Branch (281:7): [True: 240, False: 1.10k]
  ------------------
  282|  6.25k|  while (isDigit(*current, 10)) {
  ------------------
  |  Branch (282:10): [True: 6.22k, False: 38]
  ------------------
  283|  6.22k|    if (Advance(&current, kNoSeparator, 16, end)) return true;
  ------------------
  |  Branch (283:9): [True: 1.06k, False: 5.15k]
  ------------------
  284|  6.22k|  }
  285|       |  // Trailing whitespace is junk unless ALLOW_TRAILING_SPACES is set, as it is
  286|       |  // for decimal numbers.
  287|     38|  if (allow_trailing_junk) return true;
  ------------------
  |  Branch (287:7): [True: 38, False: 0]
  ------------------
  288|      0|  return allow_trailing_spaces && !AdvanceToNonspace(&current, end);
  ------------------
  |  Branch (288:10): [True: 0, False: 0]
  |  Branch (288:35): [True: 0, False: 0]
  ------------------
  289|     38|}
string-to-double.cc:_ZN17double_conversionL7isDigitEii:
  182|  31.4k|static bool isDigit(int x, int radix) {
  183|  31.4k|  return (x >= '0' && x <= '9' && x < '0' + radix)
  ------------------
  |  Branch (183:11): [True: 31.0k, False: 343]
  |  Branch (183:23): [True: 20.1k, False: 10.8k]
  |  Branch (183:35): [True: 20.1k, False: 0]
  ------------------
  184|  11.2k|      || (radix > 10 && x >= 'a' && x < 'a' + radix - 10)
  ------------------
  |  Branch (184:11): [True: 11.1k, False: 62]
  |  Branch (184:25): [True: 5.30k, False: 5.85k]
  |  Branch (184:37): [True: 3.96k, False: 1.33k]
  ------------------
  185|  7.25k|      || (radix > 10 && x >= 'A' && x < 'A' + radix - 10);
  ------------------
  |  Branch (185:11): [True: 7.19k, False: 62]
  |  Branch (185:25): [True: 6.85k, False: 333]
  |  Branch (185:37): [True: 5.13k, False: 1.71k]
  ------------------
  186|  31.4k|}
string-to-double.cc:_ZN17double_conversionL17RadixStringToIeeeILi4EPKcEEdPT0_S3_btbbbdbPb:
  306|    991|                                bool* result_is_junk) {
  307|    991|  DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|    991|    assert(condition)
  ------------------
  |  Branch (307:3): [True: 991, False: 0]
  ------------------
  308|    991|  DOUBLE_CONVERSION_ASSERT(!parse_as_hex_float ||
  ------------------
  |  |   47|    991|    assert(condition)
  ------------------
  |  Branch (308:3): [True: 320, False: 671]
  |  Branch (308:3): [True: 671, False: 0]
  |  Branch (308:3): [True: 991, False: 0]
  ------------------
  309|    991|      IsHexFloatString(*current, end, separator, allow_trailing_junk,
  310|    991|                       allow_trailing_spaces));
  311|       |
  312|    991|  const int kDoubleSize = Double::kSignificandSize;
  313|    991|  const int kSingleSize = Single::kSignificandSize;
  314|       |  // A hex-float is formed here as a double and rounded to float by the caller
  315|       |  // (StringToFloat casts the result). Rounding the significand to single
  316|       |  // precision here would double-round both subnormal floats and floats whose
  317|       |  // exact significand exceeds 53 bits, so keep the full double significand and
  318|       |  // round it to odd, which makes that final single-precision cast correct.
  319|    991|  const bool round_hex_float_to_single = parse_as_hex_float && !read_as_double;
  ------------------
  |  Branch (319:42): [True: 671, False: 320]
  |  Branch (319:64): [True: 0, False: 671]
  ------------------
  320|    991|  const int kSignificandSize =
  321|    991|      (read_as_double || parse_as_hex_float) ? kDoubleSize : kSingleSize;
  ------------------
  |  Branch (321:8): [True: 991, False: 0]
  |  Branch (321:26): [True: 0, False: 0]
  ------------------
  322|       |
  323|    991|  *result_is_junk = true;
  324|       |
  325|    991|  int64_t number = 0;
  326|       |  // The exponent moves by radix_log_2 per input character, so 64 bits hold it
  327|       |  // exactly for any input length. Clamping it into the int range while reading
  328|       |  // the significand instead would lose magnitude that the written exponent is
  329|       |  // allowed to cancel.
  330|    991|  int64_t unclamped_exponent = 0;
  331|    991|  const int max_exponent = INT_MAX / 2;
  332|       |  // A hex-float parsed as a double has its significand rounded to
  333|       |  // kSignificandSize bits below. That is the single correct rounding for a normal
  334|       |  // result, but a subnormal result is rounded again by ldexp into the narrower
  335|       |  // subnormal grid, so rounding to nearest here double-rounds. Retain the exact
  336|       |  // significand, its dropped-bit count and a sticky flag so a subnormal result can
  337|       |  // be rounded once, directly onto the 2^-1074 grid.
  338|    991|  int64_t hex_exact_significand = 0;
  339|    991|  int hex_dropped_bits = 0;
  340|    991|  bool hex_significand_sticky = false;
  341|    991|  bool hex_significand_overflowed = false;
  342|    991|  const int radix = (1 << radix_log_2);
  343|       |  // Whether we have encountered a '.' and are parsing the decimal digits.
  344|       |  // Only relevant if parse_as_hex_float is true.
  345|    991|  bool post_decimal = false;
  346|       |
  347|       |  // Skip leading 0s.
  348|  1.42k|  while (**current == '0') {
  ------------------
  |  Branch (348:10): [True: 443, False: 983]
  ------------------
  349|    443|    if (Advance(current, separator, radix, end)) {
  ------------------
  |  Branch (349:9): [True: 8, False: 435]
  ------------------
  350|      8|      *result_is_junk = false;
  351|      8|      return SignedZero(sign);
  352|      8|    }
  353|    443|  }
  354|       |
  355|  7.25k|  while (true) {
  ------------------
  |  Branch (355:10): [True: 7.25k, Folded]
  ------------------
  356|  7.25k|    int digit;
  357|  7.25k|    if (IsDecimalDigitForRadix(**current, radix)) {
  ------------------
  |  Branch (357:9): [True: 2.66k, False: 4.59k]
  ------------------
  358|  2.66k|      digit = static_cast<char>(**current) - '0';
  359|  2.66k|      if (post_decimal) unclamped_exponent -= radix_log_2;
  ------------------
  |  Branch (359:11): [True: 294, False: 2.37k]
  ------------------
  360|  4.59k|    } else if (IsCharacterDigitForRadix(**current, radix, 'a')) {
  ------------------
  |  Branch (360:16): [True: 1.69k, False: 2.89k]
  ------------------
  361|  1.69k|      digit = static_cast<char>(**current) - 'a' + 10;
  362|  1.69k|      if (post_decimal) unclamped_exponent -= radix_log_2;
  ------------------
  |  Branch (362:11): [True: 66, False: 1.63k]
  ------------------
  363|  2.89k|    } else if (IsCharacterDigitForRadix(**current, radix, 'A')) {
  ------------------
  |  Branch (363:16): [True: 2.35k, False: 540]
  ------------------
  364|  2.35k|      digit = static_cast<char>(**current) - 'A' + 10;
  365|  2.35k|      if (post_decimal) unclamped_exponent -= radix_log_2;
  ------------------
  |  Branch (365:11): [True: 97, False: 2.25k]
  ------------------
  366|  2.35k|    } else if (parse_as_hex_float && **current == '.') {
  ------------------
  |  Branch (366:16): [True: 442, False: 98]
  |  Branch (366:38): [True: 36, False: 406]
  ------------------
  367|     36|      post_decimal = true;
  368|     36|      Advance(current, separator, radix, end);
  369|     36|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|     36|    assert(condition)
  ------------------
  |  Branch (369:7): [True: 36, False: 0]
  ------------------
  370|     36|      continue;
  371|    504|    } else if (parse_as_hex_float && (**current == 'p' || **current == 'P')) {
  ------------------
  |  Branch (371:16): [True: 406, False: 98]
  |  Branch (371:39): [True: 308, False: 98]
  |  Branch (371:59): [True: 98, False: 0]
  ------------------
  372|    406|      break;
  373|    406|    } else {
  374|       |      // Trailing whitespace is junk unless ALLOW_TRAILING_SPACES is set, as it
  375|       |      // is for decimal numbers.
  376|     98|      if (allow_trailing_junk ||
  ------------------
  |  Branch (376:11): [True: 98, False: 0]
  ------------------
  377|     98|          (allow_trailing_spaces && !AdvanceToNonspace(current, end))) {
  ------------------
  |  Branch (377:12): [True: 0, False: 0]
  |  Branch (377:37): [True: 0, False: 0]
  ------------------
  378|     98|        break;
  379|     98|      } else {
  380|      0|        return junk_string_value;
  381|      0|      }
  382|     98|    }
  383|       |
  384|  6.71k|    number = number * radix + digit;
  385|  6.71k|    int overflow = static_cast<int>(number >> kSignificandSize);
  386|  6.71k|    if (overflow != 0) {
  ------------------
  |  Branch (386:9): [True: 356, False: 6.36k]
  ------------------
  387|       |      // Overflow occurred. Need to determine which direction to round the
  388|       |      // result.
  389|    356|      int overflow_bits_count = 1;
  390|    969|      while (overflow > 1) {
  ------------------
  |  Branch (390:14): [True: 613, False: 356]
  ------------------
  391|    613|        overflow_bits_count++;
  392|    613|        overflow >>= 1;
  393|    613|      }
  394|       |
  395|    356|      int dropped_bits_mask = ((1 << overflow_bits_count) - 1);
  396|    356|      int dropped_bits = static_cast<int>(number) & dropped_bits_mask;
  397|    356|      if (parse_as_hex_float && read_as_double) {
  ------------------
  |  Branch (397:11): [True: 265, False: 91]
  |  Branch (397:33): [True: 265, False: 0]
  ------------------
  398|    265|        hex_significand_overflowed = true;
  399|    265|        hex_exact_significand = number;
  400|    265|        hex_dropped_bits = overflow_bits_count;
  401|    265|      }
  402|    356|      number >>= overflow_bits_count;
  403|    356|      unclamped_exponent += overflow_bits_count;
  404|       |
  405|    356|      bool zero_tail = true;
  406|  2.12k|      for (;;) {
  407|  2.12k|        if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (407:13): [True: 61, False: 2.06k]
  ------------------
  408|  2.06k|        if (parse_as_hex_float && **current == '.') {
  ------------------
  |  Branch (408:13): [True: 932, False: 1.13k]
  |  Branch (408:35): [True: 1, False: 931]
  ------------------
  409|       |          // Just run over the '.'. We are just trying to see whether there is
  410|       |          // a non-zero digit somewhere.
  411|      1|          Advance(current, separator, radix, end);
  412|      1|          DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      1|    assert(condition)
  ------------------
  |  Branch (412:11): [True: 1, False: 0]
  ------------------
  413|      1|          post_decimal = true;
  414|      1|        }
  415|  2.06k|        if (!isDigit(**current, radix)) break;
  ------------------
  |  Branch (415:13): [True: 295, False: 1.77k]
  ------------------
  416|  1.77k|        zero_tail = zero_tail && **current == '0';
  ------------------
  |  Branch (416:21): [True: 496, False: 1.27k]
  |  Branch (416:34): [True: 427, False: 69]
  ------------------
  417|  1.77k|        if (!post_decimal) unclamped_exponent += radix_log_2;
  ------------------
  |  Branch (417:13): [True: 1.44k, False: 326]
  ------------------
  418|  1.77k|      }
  419|       |
  420|    356|      if (!parse_as_hex_float && !allow_trailing_junk) {
  ------------------
  |  Branch (420:11): [True: 91, False: 265]
  |  Branch (420:34): [True: 0, False: 91]
  ------------------
  421|      0|        if (allow_trailing_spaces ? AdvanceToNonspace(current, end)
  ------------------
  |  Branch (421:13): [True: 0, False: 0]
  |  Branch (421:13): [True: 0, False: 0]
  ------------------
  422|      0|                                  : *current != end) {
  423|      0|          return junk_string_value;
  424|      0|        }
  425|      0|      }
  426|       |
  427|    356|      if (round_hex_float_to_single) {
  ------------------
  |  Branch (427:11): [True: 0, False: 356]
  ------------------
  428|       |        // Round the significand to odd: set the lowest kept bit whenever any
  429|       |        // bit was dropped. The caller rounds this double to float; rounding to
  430|       |        // nearest here would double-round, but round-to-odd leaves that final
  431|       |        // single rounding correct for normal and subnormal results alike.
  432|      0|        if (dropped_bits != 0 || !zero_tail) {
  ------------------
  |  Branch (432:13): [True: 0, False: 0]
  |  Branch (432:34): [True: 0, False: 0]
  ------------------
  433|      0|          number |= 1;
  434|      0|        }
  435|    356|      } else {
  436|    356|        if (hex_significand_overflowed) {
  ------------------
  |  Branch (436:13): [True: 265, False: 91]
  ------------------
  437|    265|          hex_significand_sticky = !zero_tail;
  438|    265|        }
  439|    356|        int middle_value = (1 << (overflow_bits_count - 1));
  440|    356|        if (dropped_bits > middle_value) {
  ------------------
  |  Branch (440:13): [True: 155, False: 201]
  ------------------
  441|    155|          number++;  // Rounding up.
  442|    201|        } else if (dropped_bits == middle_value) {
  ------------------
  |  Branch (442:20): [True: 53, False: 148]
  ------------------
  443|       |          // Rounding to even to consistency with decimals: half-way case rounds
  444|       |          // up if significant part is odd and down otherwise.
  445|     53|          if ((number & 1) != 0 || !zero_tail) {
  ------------------
  |  Branch (445:15): [True: 27, False: 26]
  |  Branch (445:36): [True: 3, False: 23]
  ------------------
  446|     30|            number++;  // Rounding up.
  447|     30|          }
  448|     53|        }
  449|       |
  450|       |        // Rounding up may cause overflow.
  451|    356|        if ((number & ((int64_t)1 << kSignificandSize)) != 0) {
  ------------------
  |  Branch (451:13): [True: 10, False: 346]
  ------------------
  452|     10|          unclamped_exponent++;
  453|     10|          number >>= 1;
  454|       |          // The exact significand keeps its scale, so it now sits one more bit
  455|       |          // below exponent.
  456|     10|          hex_dropped_bits++;
  457|     10|        }
  458|    356|      }
  459|    356|      break;
  460|    356|    }
  461|  6.36k|    if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (461:9): [True: 123, False: 6.23k]
  ------------------
  462|  6.36k|  }
  463|       |
  464|    983|  DOUBLE_CONVERSION_ASSERT(number < ((int64_t)1 << kSignificandSize));
  ------------------
  |  |   47|    983|    assert(condition)
  ------------------
  |  Branch (464:3): [True: 983, False: 0]
  ------------------
  465|    983|  DOUBLE_CONVERSION_ASSERT(static_cast<int64_t>(static_cast<double>(number)) == number);
  ------------------
  |  |   47|    983|    assert(condition)
  ------------------
  |  Branch (465:3): [True: 983, False: 0]
  ------------------
  466|       |
  467|    983|  *result_is_junk = false;
  468|       |
  469|    983|  if (parse_as_hex_float) {
  ------------------
  |  Branch (469:7): [True: 671, False: 312]
  ------------------
  470|    671|    DOUBLE_CONVERSION_ASSERT(**current == 'p' || **current == 'P');
  ------------------
  |  |   47|    671|    assert(condition)
  ------------------
  |  Branch (470:5): [True: 529, False: 142]
  |  Branch (470:5): [True: 142, False: 0]
  |  Branch (470:5): [True: 671, False: 0]
  ------------------
  471|       |    // The separator is only allowed between significand digits, not in the
  472|       |    // exponent, so advance through the exponent with no separator. This must
  473|       |    // match IsHexFloatString, which validated the string the same way.
  474|    671|    const uc16 kNoSeparator = StringToDoubleConverter::kNoSeparator;
  475|    671|    Advance(current, kNoSeparator, radix, end);
  476|    671|    DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|    671|    assert(condition)
  ------------------
  |  Branch (476:5): [True: 671, False: 0]
  ------------------
  477|    671|    bool is_negative = false;
  478|    671|    if (**current == '+') {
  ------------------
  |  Branch (478:9): [True: 1, False: 670]
  ------------------
  479|      1|      Advance(current, kNoSeparator, radix, end);
  480|      1|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      1|    assert(condition)
  ------------------
  |  Branch (480:7): [True: 1, False: 0]
  ------------------
  481|    670|    } else if (**current == '-') {
  ------------------
  |  Branch (481:16): [True: 351, False: 319]
  ------------------
  482|    351|      is_negative = true;
  483|    351|      Advance(current, kNoSeparator, radix, end);
  484|    351|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|    351|    assert(condition)
  ------------------
  |  Branch (484:7): [True: 351, False: 0]
  ------------------
  485|    351|    }
  486|       |    // The written exponent is bounded only by the input length, so it still
  487|       |    // has to saturate, but stopping short of a written digit would change the
  488|       |    // result: the significand's exponent can cancel a written exponent of any
  489|       |    // size. Saturate past twice the largest magnitude that exponent can reach
  490|       |    // (radix_log_2 per character, over a length that is an int), so that a
  491|       |    // saturated written exponent always outweighs the significand and the sum
  492|       |    // keeps the sign of the exponent that was written.
  493|    671|    const int64_t max_written_exponent =
  494|    671|        2 * static_cast<int64_t>(radix_log_2) * INT_MAX;
  495|    671|    int64_t written_exponent = 0;
  496|  3.80k|    while (IsDecimalDigitForRadix(**current, 10)) {
  ------------------
  |  Branch (496:12): [True: 3.78k, False: 19]
  ------------------
  497|  3.78k|      written_exponent = 10 * written_exponent + (**current - '0');
  498|  3.78k|      if (written_exponent > max_written_exponent) {
  ------------------
  |  Branch (498:11): [True: 430, False: 3.35k]
  ------------------
  499|    430|        written_exponent = max_written_exponent;
  500|    430|      }
  501|  3.78k|      if (Advance(current, kNoSeparator, radix, end)) break;
  ------------------
  |  Branch (501:11): [True: 652, False: 3.12k]
  ------------------
  502|  3.78k|    }
  503|    671|    if (is_negative) written_exponent = -written_exponent;
  ------------------
  |  Branch (503:9): [True: 351, False: 320]
  ------------------
  504|    671|    unclamped_exponent += written_exponent;
  505|    671|  }
  506|       |
  507|       |  // Both parts were accumulated without loss, so clamping their sum now cannot
  508|       |  // cancel either of them. Below, an exponent this far out of range only has
  509|       |  // to keep its sign.
  510|    983|  int exponent;
  511|    983|  if (unclamped_exponent > max_exponent) {
  ------------------
  |  Branch (511:7): [True: 44, False: 939]
  ------------------
  512|     44|    exponent = max_exponent;
  513|    939|  } else if (unclamped_exponent < -max_exponent) {
  ------------------
  |  Branch (513:14): [True: 38, False: 901]
  ------------------
  514|     38|    exponent = -max_exponent;
  515|    901|  } else {
  516|    901|    exponent = static_cast<int>(unclamped_exponent);
  517|    901|  }
  518|       |
  519|    983|  if (exponent == 0 || number == 0) {
  ------------------
  |  Branch (519:7): [True: 232, False: 751]
  |  Branch (519:24): [True: 40, False: 711]
  ------------------
  520|    272|    if (sign) {
  ------------------
  |  Branch (520:9): [True: 54, False: 218]
  ------------------
  521|     54|      if (number == 0) return -0.0;
  ------------------
  |  Branch (521:11): [True: 1, False: 53]
  ------------------
  522|     53|      number = -number;
  523|     53|    }
  524|    271|    return static_cast<double>(number);
  525|    272|  }
  526|       |
  527|    711|  DOUBLE_CONVERSION_ASSERT(number != 0);
  ------------------
  |  |   47|    711|    assert(condition)
  ------------------
  |  Branch (527:3): [True: 711, False: 0]
  ------------------
  528|    711|  if (exponent > 100 * Double::kMaxExponent) {
  ------------------
  |  Branch (528:7): [True: 85, False: 626]
  ------------------
  529|     85|    return sign ? -Double::Infinity() : Double::Infinity();
  ------------------
  |  Branch (529:12): [True: 1, False: 84]
  ------------------
  530|     85|  }
  531|    626|  if (exponent < -100 * Double::kMaxExponent) {
  ------------------
  |  Branch (531:7): [True: 82, False: 544]
  ------------------
  532|     82|    return SignedZero(sign);
  533|     82|  }
  534|       |  // number is an exact integer below 2^kSignificandSize, so number * 2^exponent
  535|       |  // can be formed directly. Double(DiyFp(number, exponent)) would instead assume
  536|       |  // a normalized significand: a hex-float like "0x1p1000" or "0x2p-1075" reaches
  537|       |  // here with a small number and a large exponent, which DiyFpToUint64 then reads
  538|       |  // as an overflow (infinity) or underflow (zero) rather than the finite result.
  539|    544|  double result = ldexp(static_cast<double>(number), exponent);
  540|    544|  if (hex_significand_overflowed) {
  ------------------
  |  Branch (540:7): [True: 264, False: 280]
  ------------------
  541|       |    // Whether the result is subnormal is decided from the exact significand
  542|       |    // and its scale, not from result: result has already been rounded twice,
  543|       |    // and the second rounding can land it on zero or on the smallest normal.
  544|    264|    const int kDenormalExponent = -1074;
  545|    264|    int scale = exponent - hex_dropped_bits;  // binary scale of the exact LSB
  546|    264|    int drop = kDenormalExponent - scale;     // low bits to discard for the grid
  547|       |    // drop <= 0 is always a normal result. For drop >= 63 the exact value is
  548|       |    // below half the smallest subnormal, where the zero from ldexp is correct.
  549|    264|    if (drop > 0 && drop < 63) {
  ------------------
  |  Branch (549:9): [True: 207, False: 57]
  |  Branch (549:21): [True: 188, False: 19]
  ------------------
  550|    188|      int64_t high = hex_exact_significand >> drop;
  551|       |      // The smallest normal is 2^52 on the grid, and the exact value is below
  552|       |      // it exactly when high is.
  553|    188|      if (high < static_cast<int64_t>(Double::kHiddenBit)) {
  ------------------
  |  Branch (553:11): [True: 182, False: 6]
  ------------------
  554|       |        // Subnormal. Round the exact significand once, straight onto the
  555|       |        // 2^-1074 subnormal grid, instead of the round-to-nearest-then-ldexp
  556|       |        // double rounding.
  557|    182|        int64_t low = hex_exact_significand & (((int64_t)1 << drop) - 1);
  558|    182|        int64_t half = (int64_t)1 << (drop - 1);
  559|    182|        bool round_up = low > half ||
  ------------------
  |  Branch (559:25): [True: 90, False: 92]
  ------------------
  560|     92|            (low == half && (hex_significand_sticky || (high & 1) != 0));
  ------------------
  |  Branch (560:14): [True: 9, False: 83]
  |  Branch (560:30): [True: 1, False: 8]
  |  Branch (560:56): [True: 7, False: 1]
  ------------------
  561|    182|        if (round_up) high++;
  ------------------
  |  Branch (561:13): [True: 98, False: 84]
  ------------------
  562|    182|        result = ldexp(static_cast<double>(high), kDenormalExponent);
  563|    182|      }
  564|    188|    }
  565|    264|  }
  566|    544|  return sign ? -result : result;
  ------------------
  |  Branch (566:10): [True: 1, False: 543]
  ------------------
  567|    626|}
string-to-double.cc:_ZN17double_conversionL22IsDecimalDigitForRadixEii:
  207|  14.2k|static bool inline IsDecimalDigitForRadix(int c, int radix) {
  208|  14.2k|  return '0' <= c && c <= '9' && (c - '0') < radix;
  ------------------
  |  Branch (208:10): [True: 14.1k, False: 99]
  |  Branch (208:22): [True: 9.59k, False: 4.51k]
  |  Branch (208:34): [True: 9.59k, False: 0]
  ------------------
  209|  14.2k|}
string-to-double.cc:_ZN17double_conversionL24IsCharacterDigitForRadixEiic:
  218|  7.48k|static bool IsCharacterDigitForRadix(int c, int radix, char a_character) {
  219|  7.48k|  return radix > 10 && c >= a_character && c < a_character + radix - 10;
  ------------------
  |  Branch (219:10): [True: 7.48k, False: 0]
  |  Branch (219:24): [True: 4.83k, False: 2.65k]
  |  Branch (219:44): [True: 4.05k, False: 782]
  ------------------
  220|  7.48k|}
string-to-double.cc:_ZN17double_conversionL17RadixStringToIeeeILi3EPcEEdPT0_S2_btbbbdbPb:
  306|    233|                                bool* result_is_junk) {
  307|    233|  DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|    233|    assert(condition)
  ------------------
  |  Branch (307:3): [True: 233, False: 0]
  ------------------
  308|    233|  DOUBLE_CONVERSION_ASSERT(!parse_as_hex_float ||
  ------------------
  |  |   47|    233|    assert(condition)
  ------------------
  |  Branch (308:3): [True: 233, False: 0]
  |  Branch (308:3): [True: 0, False: 0]
  |  Branch (308:3): [True: 233, False: 0]
  ------------------
  309|    233|      IsHexFloatString(*current, end, separator, allow_trailing_junk,
  310|    233|                       allow_trailing_spaces));
  311|       |
  312|    233|  const int kDoubleSize = Double::kSignificandSize;
  313|    233|  const int kSingleSize = Single::kSignificandSize;
  314|       |  // A hex-float is formed here as a double and rounded to float by the caller
  315|       |  // (StringToFloat casts the result). Rounding the significand to single
  316|       |  // precision here would double-round both subnormal floats and floats whose
  317|       |  // exact significand exceeds 53 bits, so keep the full double significand and
  318|       |  // round it to odd, which makes that final single-precision cast correct.
  319|    233|  const bool round_hex_float_to_single = parse_as_hex_float && !read_as_double;
  ------------------
  |  Branch (319:42): [True: 0, False: 233]
  |  Branch (319:64): [True: 0, False: 0]
  ------------------
  320|    233|  const int kSignificandSize =
  321|    233|      (read_as_double || parse_as_hex_float) ? kDoubleSize : kSingleSize;
  ------------------
  |  Branch (321:8): [True: 233, False: 0]
  |  Branch (321:26): [True: 0, False: 0]
  ------------------
  322|       |
  323|    233|  *result_is_junk = true;
  324|       |
  325|    233|  int64_t number = 0;
  326|       |  // The exponent moves by radix_log_2 per input character, so 64 bits hold it
  327|       |  // exactly for any input length. Clamping it into the int range while reading
  328|       |  // the significand instead would lose magnitude that the written exponent is
  329|       |  // allowed to cancel.
  330|    233|  int64_t unclamped_exponent = 0;
  331|    233|  const int max_exponent = INT_MAX / 2;
  332|       |  // A hex-float parsed as a double has its significand rounded to
  333|       |  // kSignificandSize bits below. That is the single correct rounding for a normal
  334|       |  // result, but a subnormal result is rounded again by ldexp into the narrower
  335|       |  // subnormal grid, so rounding to nearest here double-rounds. Retain the exact
  336|       |  // significand, its dropped-bit count and a sticky flag so a subnormal result can
  337|       |  // be rounded once, directly onto the 2^-1074 grid.
  338|    233|  int64_t hex_exact_significand = 0;
  339|    233|  int hex_dropped_bits = 0;
  340|    233|  bool hex_significand_sticky = false;
  341|    233|  bool hex_significand_overflowed = false;
  342|    233|  const int radix = (1 << radix_log_2);
  343|       |  // Whether we have encountered a '.' and are parsing the decimal digits.
  344|       |  // Only relevant if parse_as_hex_float is true.
  345|    233|  bool post_decimal = false;
  346|       |
  347|       |  // Skip leading 0s.
  348|    233|  while (**current == '0') {
  ------------------
  |  Branch (348:10): [True: 0, False: 233]
  ------------------
  349|      0|    if (Advance(current, separator, radix, end)) {
  ------------------
  |  Branch (349:9): [True: 0, False: 0]
  ------------------
  350|      0|      *result_is_junk = false;
  351|      0|      return SignedZero(sign);
  352|      0|    }
  353|      0|  }
  354|       |
  355|  3.14k|  while (true) {
  ------------------
  |  Branch (355:10): [True: 3.14k, Folded]
  ------------------
  356|  3.14k|    int digit;
  357|  3.14k|    if (IsDecimalDigitForRadix(**current, radix)) {
  ------------------
  |  Branch (357:9): [True: 3.14k, False: 0]
  ------------------
  358|  3.14k|      digit = static_cast<char>(**current) - '0';
  359|  3.14k|      if (post_decimal) unclamped_exponent -= radix_log_2;
  ------------------
  |  Branch (359:11): [True: 0, False: 3.14k]
  ------------------
  360|  3.14k|    } else if (IsCharacterDigitForRadix(**current, radix, 'a')) {
  ------------------
  |  Branch (360:16): [True: 0, False: 0]
  ------------------
  361|      0|      digit = static_cast<char>(**current) - 'a' + 10;
  362|      0|      if (post_decimal) unclamped_exponent -= radix_log_2;
  ------------------
  |  Branch (362:11): [True: 0, False: 0]
  ------------------
  363|      0|    } else if (IsCharacterDigitForRadix(**current, radix, 'A')) {
  ------------------
  |  Branch (363:16): [True: 0, False: 0]
  ------------------
  364|      0|      digit = static_cast<char>(**current) - 'A' + 10;
  365|      0|      if (post_decimal) unclamped_exponent -= radix_log_2;
  ------------------
  |  Branch (365:11): [True: 0, False: 0]
  ------------------
  366|      0|    } else if (parse_as_hex_float && **current == '.') {
  ------------------
  |  Branch (366:16): [True: 0, False: 0]
  |  Branch (366:38): [True: 0, False: 0]
  ------------------
  367|      0|      post_decimal = true;
  368|      0|      Advance(current, separator, radix, end);
  369|      0|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (369:7): [True: 0, False: 0]
  ------------------
  370|      0|      continue;
  371|      0|    } else if (parse_as_hex_float && (**current == 'p' || **current == 'P')) {
  ------------------
  |  Branch (371:16): [True: 0, False: 0]
  |  Branch (371:39): [True: 0, False: 0]
  |  Branch (371:59): [True: 0, False: 0]
  ------------------
  372|      0|      break;
  373|      0|    } else {
  374|       |      // Trailing whitespace is junk unless ALLOW_TRAILING_SPACES is set, as it
  375|       |      // is for decimal numbers.
  376|      0|      if (allow_trailing_junk ||
  ------------------
  |  Branch (376:11): [True: 0, False: 0]
  ------------------
  377|      0|          (allow_trailing_spaces && !AdvanceToNonspace(current, end))) {
  ------------------
  |  Branch (377:12): [True: 0, False: 0]
  |  Branch (377:37): [True: 0, False: 0]
  ------------------
  378|      0|        break;
  379|      0|      } else {
  380|      0|        return junk_string_value;
  381|      0|      }
  382|      0|    }
  383|       |
  384|  3.14k|    number = number * radix + digit;
  385|  3.14k|    int overflow = static_cast<int>(number >> kSignificandSize);
  386|  3.14k|    if (overflow != 0) {
  ------------------
  |  Branch (386:9): [True: 118, False: 3.02k]
  ------------------
  387|       |      // Overflow occurred. Need to determine which direction to round the
  388|       |      // result.
  389|    118|      int overflow_bits_count = 1;
  390|    152|      while (overflow > 1) {
  ------------------
  |  Branch (390:14): [True: 34, False: 118]
  ------------------
  391|     34|        overflow_bits_count++;
  392|     34|        overflow >>= 1;
  393|     34|      }
  394|       |
  395|    118|      int dropped_bits_mask = ((1 << overflow_bits_count) - 1);
  396|    118|      int dropped_bits = static_cast<int>(number) & dropped_bits_mask;
  397|    118|      if (parse_as_hex_float && read_as_double) {
  ------------------
  |  Branch (397:11): [True: 0, False: 118]
  |  Branch (397:33): [True: 0, False: 0]
  ------------------
  398|      0|        hex_significand_overflowed = true;
  399|      0|        hex_exact_significand = number;
  400|      0|        hex_dropped_bits = overflow_bits_count;
  401|      0|      }
  402|    118|      number >>= overflow_bits_count;
  403|    118|      unclamped_exponent += overflow_bits_count;
  404|       |
  405|    118|      bool zero_tail = true;
  406|  5.52k|      for (;;) {
  407|  5.52k|        if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (407:13): [True: 118, False: 5.40k]
  ------------------
  408|  5.40k|        if (parse_as_hex_float && **current == '.') {
  ------------------
  |  Branch (408:13): [True: 0, False: 5.40k]
  |  Branch (408:35): [True: 0, False: 0]
  ------------------
  409|       |          // Just run over the '.'. We are just trying to see whether there is
  410|       |          // a non-zero digit somewhere.
  411|      0|          Advance(current, separator, radix, end);
  412|      0|          DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (412:11): [True: 0, False: 0]
  ------------------
  413|      0|          post_decimal = true;
  414|      0|        }
  415|  5.40k|        if (!isDigit(**current, radix)) break;
  ------------------
  |  Branch (415:13): [True: 0, False: 5.40k]
  ------------------
  416|  5.40k|        zero_tail = zero_tail && **current == '0';
  ------------------
  |  Branch (416:21): [True: 2.27k, False: 3.13k]
  |  Branch (416:34): [True: 2.21k, False: 56]
  ------------------
  417|  5.40k|        if (!post_decimal) unclamped_exponent += radix_log_2;
  ------------------
  |  Branch (417:13): [True: 5.40k, False: 0]
  ------------------
  418|  5.40k|      }
  419|       |
  420|    118|      if (!parse_as_hex_float && !allow_trailing_junk) {
  ------------------
  |  Branch (420:11): [True: 118, False: 0]
  |  Branch (420:34): [True: 0, False: 118]
  ------------------
  421|      0|        if (allow_trailing_spaces ? AdvanceToNonspace(current, end)
  ------------------
  |  Branch (421:13): [True: 0, False: 0]
  |  Branch (421:13): [True: 0, False: 0]
  ------------------
  422|      0|                                  : *current != end) {
  423|      0|          return junk_string_value;
  424|      0|        }
  425|      0|      }
  426|       |
  427|    118|      if (round_hex_float_to_single) {
  ------------------
  |  Branch (427:11): [True: 0, False: 118]
  ------------------
  428|       |        // Round the significand to odd: set the lowest kept bit whenever any
  429|       |        // bit was dropped. The caller rounds this double to float; rounding to
  430|       |        // nearest here would double-round, but round-to-odd leaves that final
  431|       |        // single rounding correct for normal and subnormal results alike.
  432|      0|        if (dropped_bits != 0 || !zero_tail) {
  ------------------
  |  Branch (432:13): [True: 0, False: 0]
  |  Branch (432:34): [True: 0, False: 0]
  ------------------
  433|      0|          number |= 1;
  434|      0|        }
  435|    118|      } else {
  436|    118|        if (hex_significand_overflowed) {
  ------------------
  |  Branch (436:13): [True: 0, False: 118]
  ------------------
  437|      0|          hex_significand_sticky = !zero_tail;
  438|      0|        }
  439|    118|        int middle_value = (1 << (overflow_bits_count - 1));
  440|    118|        if (dropped_bits > middle_value) {
  ------------------
  |  Branch (440:13): [True: 5, False: 113]
  ------------------
  441|      5|          number++;  // Rounding up.
  442|    113|        } else if (dropped_bits == middle_value) {
  ------------------
  |  Branch (442:20): [True: 59, False: 54]
  ------------------
  443|       |          // Rounding to even to consistency with decimals: half-way case rounds
  444|       |          // up if significant part is odd and down otherwise.
  445|     59|          if ((number & 1) != 0 || !zero_tail) {
  ------------------
  |  Branch (445:15): [True: 38, False: 21]
  |  Branch (445:36): [True: 5, False: 16]
  ------------------
  446|     43|            number++;  // Rounding up.
  447|     43|          }
  448|     59|        }
  449|       |
  450|       |        // Rounding up may cause overflow.
  451|    118|        if ((number & ((int64_t)1 << kSignificandSize)) != 0) {
  ------------------
  |  Branch (451:13): [True: 12, False: 106]
  ------------------
  452|     12|          unclamped_exponent++;
  453|     12|          number >>= 1;
  454|       |          // The exact significand keeps its scale, so it now sits one more bit
  455|       |          // below exponent.
  456|     12|          hex_dropped_bits++;
  457|     12|        }
  458|    118|      }
  459|    118|      break;
  460|    118|    }
  461|  3.02k|    if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (461:9): [True: 115, False: 2.91k]
  ------------------
  462|  3.02k|  }
  463|       |
  464|    233|  DOUBLE_CONVERSION_ASSERT(number < ((int64_t)1 << kSignificandSize));
  ------------------
  |  |   47|    233|    assert(condition)
  ------------------
  |  Branch (464:3): [True: 233, False: 0]
  ------------------
  465|    233|  DOUBLE_CONVERSION_ASSERT(static_cast<int64_t>(static_cast<double>(number)) == number);
  ------------------
  |  |   47|    233|    assert(condition)
  ------------------
  |  Branch (465:3): [True: 233, False: 0]
  ------------------
  466|       |
  467|    233|  *result_is_junk = false;
  468|       |
  469|    233|  if (parse_as_hex_float) {
  ------------------
  |  Branch (469:7): [True: 0, False: 233]
  ------------------
  470|      0|    DOUBLE_CONVERSION_ASSERT(**current == 'p' || **current == 'P');
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (470:5): [True: 0, False: 0]
  |  Branch (470:5): [True: 0, False: 0]
  |  Branch (470:5): [True: 0, False: 0]
  ------------------
  471|       |    // The separator is only allowed between significand digits, not in the
  472|       |    // exponent, so advance through the exponent with no separator. This must
  473|       |    // match IsHexFloatString, which validated the string the same way.
  474|      0|    const uc16 kNoSeparator = StringToDoubleConverter::kNoSeparator;
  475|      0|    Advance(current, kNoSeparator, radix, end);
  476|      0|    DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (476:5): [True: 0, False: 0]
  ------------------
  477|      0|    bool is_negative = false;
  478|      0|    if (**current == '+') {
  ------------------
  |  Branch (478:9): [True: 0, False: 0]
  ------------------
  479|      0|      Advance(current, kNoSeparator, radix, end);
  480|      0|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (480:7): [True: 0, False: 0]
  ------------------
  481|      0|    } else if (**current == '-') {
  ------------------
  |  Branch (481:16): [True: 0, False: 0]
  ------------------
  482|      0|      is_negative = true;
  483|      0|      Advance(current, kNoSeparator, radix, end);
  484|      0|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (484:7): [True: 0, False: 0]
  ------------------
  485|      0|    }
  486|       |    // The written exponent is bounded only by the input length, so it still
  487|       |    // has to saturate, but stopping short of a written digit would change the
  488|       |    // result: the significand's exponent can cancel a written exponent of any
  489|       |    // size. Saturate past twice the largest magnitude that exponent can reach
  490|       |    // (radix_log_2 per character, over a length that is an int), so that a
  491|       |    // saturated written exponent always outweighs the significand and the sum
  492|       |    // keeps the sign of the exponent that was written.
  493|      0|    const int64_t max_written_exponent =
  494|      0|        2 * static_cast<int64_t>(radix_log_2) * INT_MAX;
  495|      0|    int64_t written_exponent = 0;
  496|      0|    while (IsDecimalDigitForRadix(**current, 10)) {
  ------------------
  |  Branch (496:12): [True: 0, False: 0]
  ------------------
  497|      0|      written_exponent = 10 * written_exponent + (**current - '0');
  498|      0|      if (written_exponent > max_written_exponent) {
  ------------------
  |  Branch (498:11): [True: 0, False: 0]
  ------------------
  499|      0|        written_exponent = max_written_exponent;
  500|      0|      }
  501|      0|      if (Advance(current, kNoSeparator, radix, end)) break;
  ------------------
  |  Branch (501:11): [True: 0, False: 0]
  ------------------
  502|      0|    }
  503|      0|    if (is_negative) written_exponent = -written_exponent;
  ------------------
  |  Branch (503:9): [True: 0, False: 0]
  ------------------
  504|      0|    unclamped_exponent += written_exponent;
  505|      0|  }
  506|       |
  507|       |  // Both parts were accumulated without loss, so clamping their sum now cannot
  508|       |  // cancel either of them. Below, an exponent this far out of range only has
  509|       |  // to keep its sign.
  510|    233|  int exponent;
  511|    233|  if (unclamped_exponent > max_exponent) {
  ------------------
  |  Branch (511:7): [True: 0, False: 233]
  ------------------
  512|      0|    exponent = max_exponent;
  513|    233|  } else if (unclamped_exponent < -max_exponent) {
  ------------------
  |  Branch (513:14): [True: 0, False: 233]
  ------------------
  514|      0|    exponent = -max_exponent;
  515|    233|  } else {
  516|    233|    exponent = static_cast<int>(unclamped_exponent);
  517|    233|  }
  518|       |
  519|    233|  if (exponent == 0 || number == 0) {
  ------------------
  |  Branch (519:7): [True: 115, False: 118]
  |  Branch (519:24): [True: 0, False: 118]
  ------------------
  520|    115|    if (sign) {
  ------------------
  |  Branch (520:9): [True: 53, False: 62]
  ------------------
  521|     53|      if (number == 0) return -0.0;
  ------------------
  |  Branch (521:11): [True: 0, False: 53]
  ------------------
  522|     53|      number = -number;
  523|     53|    }
  524|    115|    return static_cast<double>(number);
  525|    115|  }
  526|       |
  527|    118|  DOUBLE_CONVERSION_ASSERT(number != 0);
  ------------------
  |  |   47|    118|    assert(condition)
  ------------------
  |  Branch (527:3): [True: 118, False: 0]
  ------------------
  528|    118|  if (exponent > 100 * Double::kMaxExponent) {
  ------------------
  |  Branch (528:7): [True: 0, False: 118]
  ------------------
  529|      0|    return sign ? -Double::Infinity() : Double::Infinity();
  ------------------
  |  Branch (529:12): [True: 0, False: 0]
  ------------------
  530|      0|  }
  531|    118|  if (exponent < -100 * Double::kMaxExponent) {
  ------------------
  |  Branch (531:7): [True: 0, False: 118]
  ------------------
  532|      0|    return SignedZero(sign);
  533|      0|  }
  534|       |  // number is an exact integer below 2^kSignificandSize, so number * 2^exponent
  535|       |  // can be formed directly. Double(DiyFp(number, exponent)) would instead assume
  536|       |  // a normalized significand: a hex-float like "0x1p1000" or "0x2p-1075" reaches
  537|       |  // here with a small number and a large exponent, which DiyFpToUint64 then reads
  538|       |  // as an overflow (infinity) or underflow (zero) rather than the finite result.
  539|    118|  double result = ldexp(static_cast<double>(number), exponent);
  540|    118|  if (hex_significand_overflowed) {
  ------------------
  |  Branch (540:7): [True: 0, False: 118]
  ------------------
  541|       |    // Whether the result is subnormal is decided from the exact significand
  542|       |    // and its scale, not from result: result has already been rounded twice,
  543|       |    // and the second rounding can land it on zero or on the smallest normal.
  544|      0|    const int kDenormalExponent = -1074;
  545|      0|    int scale = exponent - hex_dropped_bits;  // binary scale of the exact LSB
  546|      0|    int drop = kDenormalExponent - scale;     // low bits to discard for the grid
  547|       |    // drop <= 0 is always a normal result. For drop >= 63 the exact value is
  548|       |    // below half the smallest subnormal, where the zero from ldexp is correct.
  549|      0|    if (drop > 0 && drop < 63) {
  ------------------
  |  Branch (549:9): [True: 0, False: 0]
  |  Branch (549:21): [True: 0, False: 0]
  ------------------
  550|      0|      int64_t high = hex_exact_significand >> drop;
  551|       |      // The smallest normal is 2^52 on the grid, and the exact value is below
  552|       |      // it exactly when high is.
  553|      0|      if (high < static_cast<int64_t>(Double::kHiddenBit)) {
  ------------------
  |  Branch (553:11): [True: 0, False: 0]
  ------------------
  554|       |        // Subnormal. Round the exact significand once, straight onto the
  555|       |        // 2^-1074 subnormal grid, instead of the round-to-nearest-then-ldexp
  556|       |        // double rounding.
  557|      0|        int64_t low = hex_exact_significand & (((int64_t)1 << drop) - 1);
  558|      0|        int64_t half = (int64_t)1 << (drop - 1);
  559|      0|        bool round_up = low > half ||
  ------------------
  |  Branch (559:25): [True: 0, False: 0]
  ------------------
  560|      0|            (low == half && (hex_significand_sticky || (high & 1) != 0));
  ------------------
  |  Branch (560:14): [True: 0, False: 0]
  |  Branch (560:30): [True: 0, False: 0]
  |  Branch (560:56): [True: 0, False: 0]
  ------------------
  561|      0|        if (round_up) high++;
  ------------------
  |  Branch (561:13): [True: 0, False: 0]
  ------------------
  562|      0|        result = ldexp(static_cast<double>(high), kDenormalExponent);
  563|      0|      }
  564|      0|    }
  565|      0|  }
  566|    118|  return sign ? -result : result;
  ------------------
  |  Branch (566:10): [True: 1, False: 117]
  ------------------
  567|    118|}
string-to-double.cc:_ZN17double_conversionL7AdvanceIPcEEbPT_tiRS2_:
  224|  8.55k|static bool Advance (Iterator* it, uc16 separator, int base, Iterator& end) {
  225|  8.55k|  if (separator == StringToDoubleConverter::kNoSeparator) {
  ------------------
  |  Branch (225:7): [True: 8.55k, False: 0]
  ------------------
  226|  8.55k|    ++(*it);
  227|  8.55k|    return *it == end;
  228|  8.55k|  }
  229|      0|  if (!isDigit(**it, base)) {
  ------------------
  |  Branch (229:7): [True: 0, False: 0]
  ------------------
  230|      0|    ++(*it);
  231|      0|    return *it == end;
  232|      0|  }
  233|      0|  ++(*it);
  234|      0|  if (*it == end) return true;
  ------------------
  |  Branch (234:7): [True: 0, False: 0]
  ------------------
  235|      0|  if (*it + 1 == end) return false;
  ------------------
  |  Branch (235:7): [True: 0, False: 0]
  ------------------
  236|      0|  if (**it == separator && isDigit(*(*it + 1), base)) {
  ------------------
  |  Branch (236:7): [True: 0, False: 0]
  |  Branch (236:28): [True: 0, False: 0]
  ------------------
  237|      0|    ++(*it);
  238|      0|  }
  239|      0|  return *it == end;
  240|      0|}

_ZN17double_conversion23StringToDoubleConverterC2EiddPKcS2_t:
  173|  3.51k|      : flags_(flags),
  174|  3.51k|        empty_string_value_(empty_string_value),
  175|  3.51k|        junk_string_value_(junk_string_value),
  176|  3.51k|        infinity_symbol_(infinity_symbol),
  177|  3.51k|        nan_symbol_(nan_symbol),
  178|  3.51k|        separator_(separator) {
  179|  3.51k|  }

_ZN17double_conversion13StrtodTrimmedENS_6VectorIKcEEi:
  485|  1.99k|double StrtodTrimmed(Vector<const char> trimmed, int exponent) {
  486|  1.99k|  DOUBLE_CONVERSION_ASSERT(trimmed.length() <= kMaxSignificantDecimalDigits);
  ------------------
  |  |   47|  1.99k|    assert(condition)
  ------------------
  |  Branch (486:3): [True: 1.99k, False: 0]
  ------------------
  487|  1.99k|  DOUBLE_CONVERSION_ASSERT(AssertTrimmedDigits(trimmed));
  ------------------
  |  |   47|  1.99k|    assert(condition)
  ------------------
  |  Branch (487:3): [True: 1.99k, False: 0]
  ------------------
  488|  1.99k|  exponent = ClampExponent(exponent);
  489|  1.99k|  double guess;
  490|  1.99k|  const bool is_correct = ComputeGuess(trimmed, exponent, &guess);
  491|  1.99k|  if (is_correct) {
  ------------------
  |  Branch (491:7): [True: 1.25k, False: 741]
  ------------------
  492|  1.25k|    return guess;
  493|  1.25k|  }
  494|    741|  DiyFp upper_boundary = Double(guess).UpperBoundary();
  495|    741|  int comparison = CompareBufferWithDiyFp(trimmed, exponent, upper_boundary);
  496|    741|  if (comparison < 0) {
  ------------------
  |  Branch (496:7): [True: 229, False: 512]
  ------------------
  497|    229|    return guess;
  498|    512|  } else if (comparison > 0) {
  ------------------
  |  Branch (498:14): [True: 419, False: 93]
  ------------------
  499|    419|    return Double(guess).NextDouble();
  500|    419|  } else if ((Double(guess).Significand() & 1) == 0) {
  ------------------
  |  Branch (500:14): [True: 46, False: 47]
  ------------------
  501|       |    // Round towards even.
  502|     46|    return guess;
  503|     47|  } else {
  504|     47|    return Double(guess).NextDouble();
  505|     47|  }
  506|    741|}
strtod.cc:_ZN17double_conversionL19AssertTrimmedDigitsERKNS_6VectorIKcEE:
  476|  1.99k|static bool AssertTrimmedDigits(const Vector<const char>& buffer) {
  477|   126k|  for(int i = 0; i < buffer.length(); ++i) {
  ------------------
  |  Branch (477:18): [True: 124k, False: 1.99k]
  ------------------
  478|   124k|    if(!IsDigit(buffer[i])) {
  ------------------
  |  Branch (478:8): [True: 0, False: 124k]
  ------------------
  479|      0|      return false;
  480|      0|    }
  481|   124k|  }
  482|  1.99k|  return (buffer.length() == 0) || (IsNonZeroDigit(buffer[0]) && IsNonZeroDigit(buffer[buffer.length()-1]));
  ------------------
  |  Branch (482:10): [True: 94, False: 1.89k]
  |  Branch (482:37): [True: 1.89k, False: 0]
  |  Branch (482:66): [True: 1.89k, False: 0]
  ------------------
  483|  1.99k|}
strtod.cc:_ZN17double_conversionL7IsDigitEc:
  463|   124k|static bool IsDigit(const char d) {
  464|   124k|  return ('0' <= d) && (d <= '9');
  ------------------
  |  Branch (464:10): [True: 124k, False: 0]
  |  Branch (464:24): [True: 124k, False: 0]
  ------------------
  465|   124k|}
strtod.cc:_ZN17double_conversionL14IsNonZeroDigitEc:
  467|  3.79k|static bool IsNonZeroDigit(const char d) {
  468|  3.79k|  return ('1' <= d) && (d <= '9');
  ------------------
  |  Branch (468:10): [True: 3.79k, False: 0]
  |  Branch (468:24): [True: 3.79k, False: 0]
  ------------------
  469|  3.79k|}
strtod.cc:_ZN17double_conversionL13ClampExponentEi:
  101|  3.88k|static int ClampExponent(int exponent) {
  102|  3.88k|  const int kMaxExponent = INT_MAX / 2;
  103|  3.88k|  if (exponent > kMaxExponent) return kMaxExponent;
  ------------------
  |  Branch (103:7): [True: 1, False: 3.88k]
  ------------------
  104|  3.88k|  if (exponent < -kMaxExponent) return -kMaxExponent;
  ------------------
  |  Branch (104:7): [True: 1, False: 3.88k]
  ------------------
  105|  3.88k|  return exponent;
  106|  3.88k|}
strtod.cc:_ZN17double_conversionL12ComputeGuessENS_6VectorIKcEEiPd:
  438|  1.99k|                         double* guess) {
  439|  1.99k|  if (trimmed.length() == 0) {
  ------------------
  |  Branch (439:7): [True: 94, False: 1.89k]
  ------------------
  440|     94|    *guess = 0.0;
  441|     94|    return true;
  442|     94|  }
  443|  1.89k|  exponent = ClampExponent(exponent);
  444|  1.89k|  if (exponent + trimmed.length() - 1 >= kMaxDecimalPower) {
  ------------------
  |  Branch (444:7): [True: 161, False: 1.73k]
  ------------------
  445|    161|    *guess = Double::Infinity();
  446|    161|    return true;
  447|    161|  }
  448|  1.73k|  if (exponent + trimmed.length() <= kMinDecimalPower) {
  ------------------
  |  Branch (448:7): [True: 125, False: 1.61k]
  ------------------
  449|    125|    *guess = 0.0;
  450|    125|    return true;
  451|    125|  }
  452|       |
  453|  1.61k|  if (DoubleStrtod(trimmed, exponent, guess) ||
  ------------------
  |  Branch (453:7): [True: 286, False: 1.32k]
  ------------------
  454|  1.32k|      DiyFpStrtod(trimmed, exponent, guess)) {
  ------------------
  |  Branch (454:7): [True: 583, False: 742]
  ------------------
  455|    869|    return true;
  456|    869|  }
  457|    742|  if (*guess == Double::Infinity()) {
  ------------------
  |  Branch (457:7): [True: 1, False: 741]
  ------------------
  458|      1|    return true;
  459|      1|  }
  460|    741|  return false;
  461|    742|}
strtod.cc:_ZN17double_conversionL12DoubleStrtodENS_6VectorIKcEEiPd:
  210|  1.61k|                         double* result) {
  211|       |#if !defined(DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS)
  212|       |  // Avoid "unused parameter" warnings
  213|       |  (void) trimmed;
  214|       |  (void) exponent;
  215|       |  (void) result;
  216|       |  // On x86 the floating-point stack can be 64 or 80 bits wide. If it is
  217|       |  // 80 bits wide (as is the case on Linux) then double-rounding occurs and the
  218|       |  // result is not accurate.
  219|       |  // We know that Windows32 uses 64 bits and is therefore accurate.
  220|       |  return false;
  221|       |#else
  222|  1.61k|  if (trimmed.length() <= kMaxExactDoubleIntegerDecimalDigits) {
  ------------------
  |  Branch (222:7): [True: 931, False: 680]
  ------------------
  223|    931|    int read_digits;
  224|       |    // The trimmed input fits into a double.
  225|       |    // If the 10^exponent (resp. 10^-exponent) fits into a double too then we
  226|       |    // can compute the result-double simply by multiplying (resp. dividing) the
  227|       |    // two numbers.
  228|       |    // This is possible because IEEE guarantees that floating-point operations
  229|       |    // return the best possible approximation.
  230|    931|    if (exponent < 0 && -exponent < kExactPowersOfTenSize) {
  ------------------
  |  Branch (230:9): [True: 320, False: 611]
  |  Branch (230:25): [True: 72, False: 248]
  ------------------
  231|       |      // 10^-exponent fits into a double.
  232|     72|      *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
  233|     72|      DOUBLE_CONVERSION_ASSERT(read_digits == trimmed.length());
  ------------------
  |  |   47|     72|    assert(condition)
  ------------------
  |  Branch (233:7): [True: 72, False: 0]
  ------------------
  234|     72|      *result /= exact_powers_of_ten[-exponent];
  235|     72|      return true;
  236|     72|    }
  237|    859|    if (0 <= exponent && exponent < kExactPowersOfTenSize) {
  ------------------
  |  Branch (237:9): [True: 611, False: 248]
  |  Branch (237:26): [True: 158, False: 453]
  ------------------
  238|       |      // 10^exponent fits into a double.
  239|    158|      *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
  240|    158|      DOUBLE_CONVERSION_ASSERT(read_digits == trimmed.length());
  ------------------
  |  |   47|    158|    assert(condition)
  ------------------
  |  Branch (240:7): [True: 158, False: 0]
  ------------------
  241|    158|      *result *= exact_powers_of_ten[exponent];
  242|    158|      return true;
  243|    158|    }
  244|    701|    int remaining_digits =
  245|    701|        kMaxExactDoubleIntegerDecimalDigits - trimmed.length();
  246|    701|    if ((0 <= exponent) &&
  ------------------
  |  Branch (246:9): [True: 453, False: 248]
  ------------------
  247|    453|        (exponent - remaining_digits < kExactPowersOfTenSize)) {
  ------------------
  |  Branch (247:9): [True: 56, False: 397]
  ------------------
  248|       |      // The trimmed string was short and we can multiply it with
  249|       |      // 10^remaining_digits. As a result the remaining exponent now fits
  250|       |      // into a double too.
  251|     56|      *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
  252|     56|      DOUBLE_CONVERSION_ASSERT(read_digits == trimmed.length());
  ------------------
  |  |   47|     56|    assert(condition)
  ------------------
  |  Branch (252:7): [True: 56, False: 0]
  ------------------
  253|     56|      *result *= exact_powers_of_ten[remaining_digits];
  254|     56|      *result *= exact_powers_of_ten[exponent - remaining_digits];
  255|     56|      return true;
  256|     56|    }
  257|    701|  }
  258|  1.32k|  return false;
  259|  1.61k|#endif
  260|  1.61k|}
strtod.cc:_ZN17double_conversionL10ReadUint64ENS_6VectorIKcEEPi:
  170|  1.61k|                           int* number_of_read_digits) {
  171|  1.61k|  uint64_t result = 0;
  172|  1.61k|  int i = 0;
  173|  18.5k|  while (i < buffer.length() && result <= (kMaxUint64 / 10 - 1)) {
  ------------------
  |  Branch (173:10): [True: 17.2k, False: 1.27k]
  |  Branch (173:33): [True: 16.9k, False: 335]
  ------------------
  174|  16.9k|    int digit = buffer[i++] - '0';
  175|  16.9k|    DOUBLE_CONVERSION_ASSERT(0 <= digit && digit <= 9);
  ------------------
  |  |   47|  16.9k|    assert(condition)
  ------------------
  |  Branch (175:5): [True: 16.9k, False: 0]
  |  Branch (175:5): [True: 16.9k, False: 0]
  |  Branch (175:5): [True: 16.9k, False: 0]
  ------------------
  176|  16.9k|    result = 10 * result + digit;
  177|  16.9k|  }
  178|  1.61k|  *number_of_read_digits = i;
  179|  1.61k|  return result;
  180|  1.61k|}
strtod.cc:_ZN17double_conversionL11DiyFpStrtodENS_6VectorIKcEEiPd:
  290|  1.32k|                        double* result) {
  291|  1.32k|  DiyFp input;
  292|  1.32k|  int remaining_decimals;
  293|  1.32k|  ReadDiyFp(buffer, &input, &remaining_decimals);
  294|       |  // Since we may have dropped some digits the input is not accurate.
  295|       |  // If remaining_decimals is different than 0 than the error is at most
  296|       |  // .5 ulp (unit in the last place).
  297|       |  // We don't want to deal with fractions and therefore keep a common
  298|       |  // denominator.
  299|  1.32k|  const int kDenominatorLog = 3;
  300|  1.32k|  const int kDenominator = 1 << kDenominatorLog;
  301|       |  // Move the remaining decimals into the exponent.
  302|  1.32k|  exponent += remaining_decimals;
  303|  1.32k|  uint64_t error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
  ------------------
  |  Branch (303:21): [True: 990, False: 335]
  ------------------
  304|       |
  305|  1.32k|  int old_e = input.e();
  306|  1.32k|  input.Normalize();
  307|  1.32k|  error <<= old_e - input.e();
  308|       |
  309|  1.32k|  DOUBLE_CONVERSION_ASSERT(exponent <= PowersOfTenCache::kMaxDecimalExponent);
  ------------------
  |  |   47|  1.32k|    assert(condition)
  ------------------
  |  Branch (309:3): [True: 1.32k, False: 0]
  ------------------
  310|  1.32k|  if (exponent < PowersOfTenCache::kMinDecimalExponent) {
  ------------------
  |  Branch (310:7): [True: 0, False: 1.32k]
  ------------------
  311|      0|    *result = 0.0;
  312|      0|    return true;
  313|      0|  }
  314|  1.32k|  DiyFp cached_power;
  315|  1.32k|  int cached_decimal_exponent;
  316|  1.32k|  PowersOfTenCache::GetCachedPowerForDecimalExponent(exponent,
  317|  1.32k|                                                     &cached_power,
  318|  1.32k|                                                     &cached_decimal_exponent);
  319|       |
  320|  1.32k|  if (cached_decimal_exponent != exponent) {
  ------------------
  |  Branch (320:7): [True: 1.20k, False: 120]
  ------------------
  321|  1.20k|    int adjustment_exponent = exponent - cached_decimal_exponent;
  322|  1.20k|    DiyFp adjustment_power = AdjustmentPowerOfTen(adjustment_exponent);
  323|  1.20k|    input.Multiply(adjustment_power);
  324|  1.20k|    if (kMaxUint64DecimalDigits - buffer.length() >= adjustment_exponent) {
  ------------------
  |  Branch (324:9): [True: 577, False: 628]
  ------------------
  325|       |      // The product of input with the adjustment power fits into a 64 bit
  326|       |      // integer.
  327|    577|      DOUBLE_CONVERSION_ASSERT(DiyFp::kSignificandSize == 64);
  ------------------
  |  |   47|    577|    assert(condition)
  ------------------
  |  Branch (327:7): [True: 577, Folded]
  ------------------
  328|    628|    } else {
  329|       |      // The adjustment power is exact. There is hence only an error of 0.5.
  330|    628|      error += kDenominator / 2;
  331|    628|    }
  332|  1.20k|  }
  333|       |
  334|  1.32k|  input.Multiply(cached_power);
  335|       |  // The error introduced by a multiplication of a*b equals
  336|       |  //   error_a + error_b + error_a*error_b/2^64 + 0.5
  337|       |  // Substituting a with 'input' and b with 'cached_power' we have
  338|       |  //   error_b = 0.5  (all cached powers have an error of less than 0.5 ulp),
  339|       |  //   error_ab = 0 or 1 / kDenominator > error_a*error_b/ 2^64
  340|  1.32k|  int error_b = kDenominator / 2;
  341|  1.32k|  int error_ab = (error == 0 ? 0 : 1);  // We round up to 1.
  ------------------
  |  Branch (341:19): [True: 662, False: 663]
  ------------------
  342|  1.32k|  int fixed_error = kDenominator / 2;
  343|  1.32k|  error += error_b + error_ab + fixed_error;
  344|       |
  345|  1.32k|  old_e = input.e();
  346|  1.32k|  input.Normalize();
  347|  1.32k|  error <<= old_e - input.e();
  348|       |
  349|       |  // See if the double's significand changes if we add/subtract the error.
  350|  1.32k|  int order_of_magnitude = DiyFp::kSignificandSize + input.e();
  351|  1.32k|  int effective_significand_size =
  352|  1.32k|      Double::SignificandSizeForOrderOfMagnitude(order_of_magnitude);
  353|  1.32k|  int precision_digits_count =
  354|  1.32k|      DiyFp::kSignificandSize - effective_significand_size;
  355|  1.32k|  if (precision_digits_count + kDenominatorLog >= DiyFp::kSignificandSize) {
  ------------------
  |  Branch (355:7): [True: 55, False: 1.27k]
  ------------------
  356|       |    // This can only happen for very small denormals. In this case the
  357|       |    // half-way multiplied by the denominator exceeds the range of an uint64.
  358|       |    // Simply shift everything to the right.
  359|     55|    int shift_amount = (precision_digits_count + kDenominatorLog) -
  360|     55|        DiyFp::kSignificandSize + 1;
  361|     55|    input.set_f(input.f() >> shift_amount);
  362|     55|    input.set_e(input.e() + shift_amount);
  363|       |    // We add 1 for the lost precision of error, and kDenominator for
  364|       |    // the lost precision of input.f().
  365|     55|    error = (error >> shift_amount) + 1 + kDenominator;
  366|     55|    precision_digits_count -= shift_amount;
  367|     55|  }
  368|       |  // We use uint64_ts now. This only works if the DiyFp uses uint64_ts too.
  369|  1.32k|  DOUBLE_CONVERSION_ASSERT(DiyFp::kSignificandSize == 64);
  ------------------
  |  |   47|  1.32k|    assert(condition)
  ------------------
  |  Branch (369:3): [True: 1.32k, Folded]
  ------------------
  370|  1.32k|  DOUBLE_CONVERSION_ASSERT(precision_digits_count < 64);
  ------------------
  |  |   47|  1.32k|    assert(condition)
  ------------------
  |  Branch (370:3): [True: 1.32k, False: 0]
  ------------------
  371|  1.32k|  uint64_t one64 = 1;
  372|  1.32k|  uint64_t precision_bits_mask = (one64 << precision_digits_count) - 1;
  373|  1.32k|  uint64_t precision_bits = input.f() & precision_bits_mask;
  374|  1.32k|  uint64_t half_way = one64 << (precision_digits_count - 1);
  375|  1.32k|  precision_bits *= kDenominator;
  376|  1.32k|  half_way *= kDenominator;
  377|  1.32k|  DiyFp rounded_input(input.f() >> precision_digits_count,
  378|  1.32k|                      input.e() + precision_digits_count);
  379|  1.32k|  if (precision_bits >= half_way + error) {
  ------------------
  |  Branch (379:7): [True: 281, False: 1.04k]
  ------------------
  380|    281|    rounded_input.set_f(rounded_input.f() + 1);
  381|    281|  }
  382|       |  // If the last_bits are too close to the half-way case than we are too
  383|       |  // inaccurate and round down. In this case we return false so that we can
  384|       |  // fall back to a more precise algorithm.
  385|       |
  386|  1.32k|  *result = Double(rounded_input).value();
  387|  1.32k|  if (half_way - error < precision_bits && precision_bits < half_way + error) {
  ------------------
  |  Branch (387:7): [True: 1.02k, False: 302]
  |  Branch (387:44): [True: 742, False: 281]
  ------------------
  388|       |    // Too imprecise. The caller will have to fall back to a slower version.
  389|       |    // However the returned number is guaranteed to be either the correct
  390|       |    // double, or the next-lower double.
  391|    742|    return false;
  392|    742|  } else {
  393|    583|    return true;
  394|    583|  }
  395|  1.32k|}
strtod.cc:_ZN17double_conversionL9ReadDiyFpENS_6VectorIKcEEPNS_5DiyFpEPi:
  189|  1.32k|                      int* remaining_decimals) {
  190|  1.32k|  int read_digits;
  191|  1.32k|  uint64_t significand = ReadUint64(buffer, &read_digits);
  192|  1.32k|  if (buffer.length() == read_digits) {
  ------------------
  |  Branch (192:7): [True: 990, False: 335]
  ------------------
  193|    990|    *result = DiyFp(significand, 0);
  194|    990|    *remaining_decimals = 0;
  195|    990|  } else {
  196|       |    // Round the significand.
  197|    335|    if (buffer[read_digits] >= '5') {
  ------------------
  |  Branch (197:9): [True: 83, False: 252]
  ------------------
  198|     83|      significand++;
  199|     83|    }
  200|       |    // Compute the binary exponent.
  201|    335|    int exponent = 0;
  202|    335|    *result = DiyFp(significand, exponent);
  203|    335|    *remaining_decimals = buffer.length() - read_digits;
  204|    335|  }
  205|  1.32k|}
strtod.cc:_ZN17double_conversionL20AdjustmentPowerOfTenEi:
  265|  1.20k|static DiyFp AdjustmentPowerOfTen(int exponent) {
  266|  1.20k|  DOUBLE_CONVERSION_ASSERT(0 < exponent);
  ------------------
  |  |   47|  1.20k|    assert(condition)
  ------------------
  |  Branch (266:3): [True: 1.20k, False: 0]
  ------------------
  267|  1.20k|  DOUBLE_CONVERSION_ASSERT(exponent < PowersOfTenCache::kDecimalExponentDistance);
  ------------------
  |  |   47|  1.20k|    assert(condition)
  ------------------
  |  Branch (267:3): [True: 1.20k, False: 0]
  ------------------
  268|       |  // Simply hardcode the remaining powers for the given decimal exponent
  269|       |  // distance.
  270|  1.20k|  DOUBLE_CONVERSION_ASSERT(PowersOfTenCache::kDecimalExponentDistance == 8);
  ------------------
  |  |   47|  1.20k|    assert(condition)
  ------------------
  |  Branch (270:3): [True: 1.20k, Folded]
  ------------------
  271|  1.20k|  switch (exponent) {
  272|    178|    case 1: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xa0000000, 00000000), -60);
  ------------------
  |  |  195|    178|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (272:5): [True: 178, False: 1.02k]
  ------------------
  273|     94|    case 2: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc8000000, 00000000), -57);
  ------------------
  |  |  195|     94|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (273:5): [True: 94, False: 1.11k]
  ------------------
  274|    126|    case 3: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xfa000000, 00000000), -54);
  ------------------
  |  |  195|    126|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (274:5): [True: 126, False: 1.07k]
  ------------------
  275|    372|    case 4: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0x9c400000, 00000000), -50);
  ------------------
  |  |  195|    372|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (275:5): [True: 372, False: 833]
  ------------------
  276|    150|    case 5: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc3500000, 00000000), -47);
  ------------------
  |  |  195|    150|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (276:5): [True: 150, False: 1.05k]
  ------------------
  277|    114|    case 6: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xf4240000, 00000000), -44);
  ------------------
  |  |  195|    114|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (277:5): [True: 114, False: 1.09k]
  ------------------
  278|    171|    case 7: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0x98968000, 00000000), -40);
  ------------------
  |  |  195|    171|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (278:5): [True: 171, False: 1.03k]
  ------------------
  279|      0|    default:
  ------------------
  |  Branch (279:5): [True: 0, False: 1.20k]
  ------------------
  280|      0|      DOUBLE_CONVERSION_UNREACHABLE();
  ------------------
  |  |   77|      0|#define DOUBLE_CONVERSION_UNREACHABLE()   (abort())
  ------------------
  281|  1.20k|  }
  282|  1.20k|}
strtod.cc:_ZN17double_conversionL22CompareBufferWithDiyFpENS_6VectorIKcEEiNS_5DiyFpE:
  408|    741|                                  DiyFp diy_fp) {
  409|    741|  DOUBLE_CONVERSION_ASSERT(buffer.length() + exponent <= kMaxDecimalPower + 1);
  ------------------
  |  |   47|    741|    assert(condition)
  ------------------
  |  Branch (409:3): [True: 741, False: 0]
  ------------------
  410|    741|  DOUBLE_CONVERSION_ASSERT(buffer.length() + exponent > kMinDecimalPower);
  ------------------
  |  |   47|    741|    assert(condition)
  ------------------
  |  Branch (410:3): [True: 741, False: 0]
  ------------------
  411|    741|  DOUBLE_CONVERSION_ASSERT(buffer.length() <= kMaxSignificantDecimalDigits);
  ------------------
  |  |   47|    741|    assert(condition)
  ------------------
  |  Branch (411:3): [True: 741, False: 0]
  ------------------
  412|       |  // Make sure that the Bignum will be able to hold all our numbers.
  413|       |  // Our Bignum implementation has a separate field for exponents. Shifts will
  414|       |  // consume at most one bigit (< 64 bits).
  415|       |  // ln(10) == 3.3219...
  416|    741|  DOUBLE_CONVERSION_ASSERT(((kMaxDecimalPower + 1) * 333 / 100) < Bignum::kMaxSignificantBits);
  ------------------
  |  |   47|    741|    assert(condition)
  ------------------
  |  Branch (416:3): [True: 741, Folded]
  ------------------
  417|    741|  Bignum buffer_bignum;
  418|    741|  Bignum diy_fp_bignum;
  419|    741|  buffer_bignum.AssignDecimalString(buffer);
  420|    741|  diy_fp_bignum.AssignUInt64(diy_fp.f());
  421|    741|  if (exponent >= 0) {
  ------------------
  |  Branch (421:7): [True: 404, False: 337]
  ------------------
  422|    404|    buffer_bignum.MultiplyByPowerOfTen(exponent);
  423|    404|  } else {
  424|    337|    diy_fp_bignum.MultiplyByPowerOfTen(-exponent);
  425|    337|  }
  426|    741|  if (diy_fp.e() > 0) {
  ------------------
  |  Branch (426:7): [True: 373, False: 368]
  ------------------
  427|    373|    diy_fp_bignum.ShiftLeft(diy_fp.e());
  428|    373|  } else {
  429|    368|    buffer_bignum.ShiftLeft(-diy_fp.e());
  430|    368|  }
  431|    741|  return Bignum::Compare(buffer_bignum, diy_fp_bignum);
  432|    741|}

_ZN17double_conversion17TrimTrailingZerosENS_6VectorIKcEE:
   53|  1.99k|inline Vector<const char> TrimTrailingZeros(Vector<const char> buffer) {
   54|  10.9k|  for (int i = buffer.length() - 1; i >= 0; --i) {
  ------------------
  |  Branch (54:37): [True: 10.8k, False: 94]
  ------------------
   55|  10.8k|    if (buffer[i] != '0') {
  ------------------
  |  Branch (55:9): [True: 1.89k, False: 8.97k]
  ------------------
   56|  1.89k|      return buffer.SubVector(0, i + 1);
   57|  1.89k|    }
   58|  10.8k|  }
   59|     94|  return Vector<const char>(buffer.start(), 0);
   60|  1.99k|}

_ZN17double_conversion7BitCastIdmEET_RKT0_:
  395|  2.83k|Dest BitCast(const Source& source) {
  396|       |  // Compile time assertion: sizeof(Dest) == sizeof(Source)
  397|       |  // A compile error here means your Dest and Source have different sizes.
  398|  2.83k|#if __cplusplus >= 201103L
  399|  2.83k|  static_assert(sizeof(Dest) == sizeof(Source),
  400|  2.83k|                "source and destination size mismatch");
  401|       |#else
  402|       |  DOUBLE_CONVERSION_UNUSED
  403|       |  typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1];
  404|       |#endif
  405|       |
  406|  2.83k|  Dest dest;
  407|  2.83k|  memmove(&dest, &source, sizeof(dest));
  408|  2.83k|  return dest;
  409|  2.83k|}
_ZN17double_conversion6VectorIKcEC2EPS1_i:
  252|  3.98k|  Vector(T* data, int len) : start_(data), length_(len) {
  253|       |    DOUBLE_CONVERSION_ASSERT(len == 0 || (len > 0 && data != DOUBLE_CONVERSION_NULLPTR));
  ------------------
  |  |   47|  3.98k|    assert(condition)
  ------------------
  |  Branch (253:5): [True: 3.79k, False: 0]
  |  Branch (253:5): [True: 3.79k, False: 0]
  |  Branch (253:5): [True: 188, False: 3.79k]
  |  Branch (253:5): [True: 3.98k, False: 0]
  ------------------
  254|  3.98k|  }
_ZNK17double_conversion6VectorIKcEixEi:
  275|   230k|  T& operator[](int index) const {
  276|   230k|    DOUBLE_CONVERSION_ASSERT(0 <= index && index < length_);
  ------------------
  |  |   47|   230k|    assert(condition)
  ------------------
  |  Branch (276:5): [True: 230k, False: 0]
  |  Branch (276:5): [True: 230k, False: 0]
  |  Branch (276:5): [True: 230k, False: 0]
  ------------------
  277|   230k|    return start_[index];
  278|   230k|  }
_ZN17double_conversion6VectorIKcE9SubVectorEii:
  258|  1.89k|  Vector<T> SubVector(int from, int to) {
  259|  1.89k|    DOUBLE_CONVERSION_ASSERT(to <= length_);
  ------------------
  |  |   47|  1.89k|    assert(condition)
  ------------------
  |  Branch (259:5): [True: 1.89k, False: 0]
  ------------------
  260|  1.89k|    DOUBLE_CONVERSION_ASSERT(from < to);
  ------------------
  |  |   47|  1.89k|    assert(condition)
  ------------------
  |  Branch (260:5): [True: 1.89k, False: 0]
  ------------------
  261|  1.89k|    DOUBLE_CONVERSION_ASSERT(0 <= from);
  ------------------
  |  |   47|  1.89k|    assert(condition)
  ------------------
  |  Branch (261:5): [True: 1.89k, False: 0]
  ------------------
  262|  1.89k|    return Vector<T>(start() + from, to - from);
  263|  1.89k|  }
_ZNK17double_conversion6VectorIKcE5startEv:
  272|  1.99k|  T* start() const { return start_; }
_ZNK17double_conversion6VectorIKcE6lengthEv:
  266|   169k|  int length() const { return length_; }
_ZN17double_conversion7BitCastImdEET_RKT0_:
  395|  1.30k|Dest BitCast(const Source& source) {
  396|       |  // Compile time assertion: sizeof(Dest) == sizeof(Source)
  397|       |  // A compile error here means your Dest and Source have different sizes.
  398|  1.30k|#if __cplusplus >= 201103L
  399|  1.30k|  static_assert(sizeof(Dest) == sizeof(Source),
  400|  1.30k|                "source and destination size mismatch");
  401|       |#else
  402|       |  DOUBLE_CONVERSION_UNUSED
  403|       |  typedef char VerifySizesAreEqual[sizeof(Dest) == sizeof(Source) ? 1 : -1];
  404|       |#endif
  405|       |
  406|  1.30k|  Dest dest;
  407|  1.30k|  memmove(&dest, &source, sizeof(dest));
  408|  1.30k|  return dest;
  409|  1.30k|}

LLVMFuzzerTestOneInput:
   23|  3.51k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
   24|  3.51k|  StringToDoubleConverter converter(
   25|  3.51k|      StringToDoubleConverter::ALLOW_HEX |
   26|  3.51k|          StringToDoubleConverter::ALLOW_OCTALS |
   27|  3.51k|          StringToDoubleConverter::ALLOW_TRAILING_JUNK |
   28|  3.51k|          StringToDoubleConverter::ALLOW_LEADING_SPACES |
   29|  3.51k|          StringToDoubleConverter::ALLOW_TRAILING_SPACES |
   30|  3.51k|          StringToDoubleConverter::ALLOW_SPACES_AFTER_SIGN |
   31|  3.51k|          StringToDoubleConverter::ALLOW_CASE_INSENSIBILITY |
   32|  3.51k|          StringToDoubleConverter::ALLOW_HEX_FLOATS,
   33|  3.51k|      /*empty_string_value=*/0.0,
   34|  3.51k|      /*junk_string_value=*/0.0, "inf", "nan");
   35|  3.51k|  int num_digits_unused;
   36|  3.51k|  converter.StringToDouble(reinterpret_cast<const char*>(data), size,
   37|  3.51k|                           &num_digits_unused);
   38|  3.51k|  return 0;
   39|  3.51k|}

