_ZN17double_conversion6Bignum8RawBigitEi:
   36|  1.23M|Bignum::Chunk& Bignum::RawBigit(const int index) {
   37|  1.23M|  DOUBLE_CONVERSION_ASSERT(static_cast<unsigned>(index) < kBigitCapacity);
  ------------------
  |  |   47|  1.23M|    assert(condition)
  ------------------
  |  Branch (37:3): [True: 1.23M, False: 0]
  ------------------
   38|  1.23M|  return bigits_buffer_[index];
   39|  1.23M|}
_ZNK17double_conversion6Bignum8RawBigitEi:
   42|  20.0k|const Bignum::Chunk& Bignum::RawBigit(const int index) const {
   43|  20.0k|  DOUBLE_CONVERSION_ASSERT(static_cast<unsigned>(index) < kBigitCapacity);
  ------------------
  |  |   47|  20.0k|    assert(condition)
  ------------------
  |  Branch (43:3): [True: 20.0k, False: 0]
  ------------------
   44|  20.0k|  return bigits_buffer_[index];
   45|  20.0k|}
_ZN17double_conversion6Bignum12AssignUInt64Em:
   59|  3.26k|void Bignum::AssignUInt64(uint64_t value) {
   60|  3.26k|  Zero();
   61|  10.5k|  for(int i = 0; value > 0; ++i) {
  ------------------
  |  Branch (61:18): [True: 7.26k, False: 3.26k]
  ------------------
   62|  7.26k|    RawBigit(i) = value & kBigitMask;
   63|  7.26k|    value >>= kBigitSize;
   64|  7.26k|    ++used_bigits_;
   65|  7.26k|  }
   66|  3.26k|}
_ZN17double_conversion6Bignum19AssignDecimalStringENS_6VectorIKcEE:
   91|    796|void Bignum::AssignDecimalString(const Vector<const char> value) {
   92|       |  // 2^64 = 18446744073709551616 > 10^19
   93|    796|  static const int kMaxUint64DecimalDigits = 19;
   94|    796|  Zero();
   95|    796|  int length = value.length();
   96|    796|  unsigned pos = 0;
   97|       |  // Let's just say that each digit needs 4 bits.
   98|  4.62k|  while (length >= kMaxUint64DecimalDigits) {
  ------------------
  |  Branch (98:10): [True: 3.82k, False: 796]
  ------------------
   99|  3.82k|    const uint64_t digits = ReadUInt64(value, pos, kMaxUint64DecimalDigits);
  100|  3.82k|    pos += kMaxUint64DecimalDigits;
  101|  3.82k|    length -= kMaxUint64DecimalDigits;
  102|  3.82k|    MultiplyByPowerOfTen(kMaxUint64DecimalDigits);
  103|  3.82k|    AddUInt64(digits);
  104|  3.82k|  }
  105|    796|  const uint64_t digits = ReadUInt64(value, pos, length);
  106|    796|  MultiplyByPowerOfTen(length);
  107|    796|  AddUInt64(digits);
  108|    796|  Clamp();
  109|    796|}
_ZN17double_conversion6Bignum9AddUInt64Em:
  150|  4.62k|void Bignum::AddUInt64(const uint64_t operand) {
  151|  4.62k|  if (operand == 0) {
  ------------------
  |  Branch (151:7): [True: 2.15k, False: 2.46k]
  ------------------
  152|  2.15k|    return;
  153|  2.15k|  }
  154|  2.46k|  Bignum other;
  155|  2.46k|  other.AssignUInt64(operand);
  156|  2.46k|  AddBignum(other);
  157|  2.46k|}
_ZN17double_conversion6Bignum9AddBignumERKS0_:
  160|  2.46k|void Bignum::AddBignum(const Bignum& other) {
  161|  2.46k|  DOUBLE_CONVERSION_ASSERT(IsClamped());
  ------------------
  |  |   47|  2.46k|    assert(condition)
  ------------------
  |  Branch (161:3): [True: 2.46k, False: 0]
  ------------------
  162|  2.46k|  DOUBLE_CONVERSION_ASSERT(other.IsClamped());
  ------------------
  |  |   47|  2.46k|    assert(condition)
  ------------------
  |  Branch (162:3): [True: 2.46k, 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.46k|  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.46k|  EnsureCapacity(1 + (std::max)(BigitLength(), other.BigitLength()) - exponent_);
  181|  2.46k|  Chunk carry = 0;
  182|  2.46k|  int bigit_pos = other.exponent_ - exponent_;
  183|  2.46k|  DOUBLE_CONVERSION_ASSERT(bigit_pos >= 0);
  ------------------
  |  |   47|  2.46k|    assert(condition)
  ------------------
  |  Branch (183:3): [True: 2.46k, False: 0]
  ------------------
  184|  2.46k|  for (int i = used_bigits_; i < bigit_pos; ++i) {
  ------------------
  |  Branch (184:30): [True: 0, False: 2.46k]
  ------------------
  185|      0|    RawBigit(i) = 0;
  186|      0|  }
  187|  8.16k|  for (int i = 0; i < other.used_bigits_; ++i) {
  ------------------
  |  Branch (187:19): [True: 5.70k, False: 2.46k]
  ------------------
  188|  5.70k|    const Chunk my = (bigit_pos < used_bigits_) ? RawBigit(bigit_pos) : 0;
  ------------------
  |  Branch (188:22): [True: 3.92k, False: 1.78k]
  ------------------
  189|  5.70k|    const Chunk sum = my + other.RawBigit(i) + carry;
  190|  5.70k|    RawBigit(bigit_pos) = sum & kBigitMask;
  191|  5.70k|    carry = sum >> kBigitSize;
  192|  5.70k|    ++bigit_pos;
  193|  5.70k|  }
  194|  2.88k|  while (carry != 0) {
  ------------------
  |  Branch (194:10): [True: 417, False: 2.46k]
  ------------------
  195|    417|    const Chunk my = (bigit_pos < used_bigits_) ? RawBigit(bigit_pos) : 0;
  ------------------
  |  Branch (195:22): [True: 417, False: 0]
  ------------------
  196|    417|    const Chunk sum = my + carry;
  197|    417|    RawBigit(bigit_pos) = sum & kBigitMask;
  198|    417|    carry = sum >> kBigitSize;
  199|    417|    ++bigit_pos;
  200|    417|  }
  201|  2.46k|  used_bigits_ = static_cast<int16_t>(std::max(bigit_pos, static_cast<int>(used_bigits_)));
  202|       |  DOUBLE_CONVERSION_ASSERT(IsClamped());
  ------------------
  |  |   47|  2.46k|    assert(condition)
  ------------------
  |  Branch (202:3): [True: 2.46k, False: 0]
  ------------------
  203|  2.46k|}
_ZN17double_conversion6Bignum9ShiftLeftEi:
  233|  5.05k|void Bignum::ShiftLeft(const int shift_amount) {
  234|  5.05k|  if (shift_amount <= 0 || used_bigits_ == 0) {
  ------------------
  |  Branch (234:7): [True: 85, False: 4.97k]
  |  Branch (234:28): [True: 0, False: 4.97k]
  ------------------
  235|     85|    return;
  236|     85|  }
  237|  4.97k|  exponent_ += static_cast<int16_t>(shift_amount / kBigitSize);
  238|  4.97k|  const int local_shift = shift_amount % kBigitSize;
  239|  4.97k|  EnsureCapacity(used_bigits_ + 1);
  240|  4.97k|  BigitsShiftLeft(local_shift);
  241|  4.97k|}
_ZN17double_conversion6Bignum16MultiplyByUInt32Ej:
  244|  7.96k|void Bignum::MultiplyByUInt32(const uint32_t factor) {
  245|  7.96k|  if (factor == 1) {
  ------------------
  |  Branch (245:7): [True: 0, False: 7.96k]
  ------------------
  246|      0|    return;
  247|      0|  }
  248|  7.96k|  if (factor == 0) {
  ------------------
  |  Branch (248:7): [True: 0, False: 7.96k]
  ------------------
  249|      0|    Zero();
  250|      0|    return;
  251|      0|  }
  252|  7.96k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (252:7): [True: 0, False: 7.96k]
  ------------------
  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.96k|  DOUBLE_CONVERSION_ASSERT(kDoubleChunkSize >= kBigitSize + 32 + 1);
  ------------------
  |  |   47|  7.96k|    assert(condition)
  ------------------
  |  Branch (257:3): [True: 7.96k, Folded]
  ------------------
  258|  7.96k|  DoubleChunk carry = 0;
  259|   253k|  for (int i = 0; i < used_bigits_; ++i) {
  ------------------
  |  Branch (259:19): [True: 245k, False: 7.96k]
  ------------------
  260|   245k|    const DoubleChunk product = static_cast<DoubleChunk>(factor) * RawBigit(i) + carry;
  261|   245k|    RawBigit(i) = static_cast<Chunk>(product & kBigitMask);
  262|   245k|    carry = (product >> kBigitSize);
  263|   245k|  }
  264|  14.1k|  while (carry != 0) {
  ------------------
  |  Branch (264:10): [True: 6.18k, False: 7.96k]
  ------------------
  265|  6.18k|    EnsureCapacity(used_bigits_ + 1);
  266|  6.18k|    RawBigit(used_bigits_) = carry & kBigitMask;
  267|  6.18k|    used_bigits_++;
  268|  6.18k|    carry >>= kBigitSize;
  269|  6.18k|  }
  270|  7.96k|}
_ZN17double_conversion6Bignum16MultiplyByUInt64Em:
  273|  4.83k|void Bignum::MultiplyByUInt64(const uint64_t factor) {
  274|  4.83k|  if (factor == 1) {
  ------------------
  |  Branch (274:7): [True: 0, False: 4.83k]
  ------------------
  275|      0|    return;
  276|      0|  }
  277|  4.83k|  if (factor == 0) {
  ------------------
  |  Branch (277:7): [True: 0, False: 4.83k]
  ------------------
  278|      0|    Zero();
  279|      0|    return;
  280|      0|  }
  281|  4.83k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (281:7): [True: 0, False: 4.83k]
  ------------------
  282|      0|    return;
  283|      0|  }
  284|  4.83k|  DOUBLE_CONVERSION_ASSERT(kBigitSize < 32);
  ------------------
  |  |   47|  4.83k|    assert(condition)
  ------------------
  |  Branch (284:3): [True: 4.83k, Folded]
  ------------------
  285|  4.83k|  uint64_t carry = 0;
  286|  4.83k|  const uint64_t low = factor & 0xFFFFFFFF;
  287|  4.83k|  const uint64_t high = factor >> 32;
  288|  98.9k|  for (int i = 0; i < used_bigits_; ++i) {
  ------------------
  |  Branch (288:19): [True: 94.1k, False: 4.83k]
  ------------------
  289|  94.1k|    const uint64_t product_low = low * RawBigit(i);
  290|  94.1k|    const uint64_t product_high = high * RawBigit(i);
  291|  94.1k|    const uint64_t tmp = (carry & kBigitMask) + product_low;
  292|  94.1k|    RawBigit(i) = tmp & kBigitMask;
  293|  94.1k|    carry = (carry >> kBigitSize) + (tmp >> kBigitSize) +
  294|  94.1k|        (product_high << (32 - kBigitSize));
  295|  94.1k|  }
  296|  15.7k|  while (carry != 0) {
  ------------------
  |  Branch (296:10): [True: 10.8k, False: 4.83k]
  ------------------
  297|  10.8k|    EnsureCapacity(used_bigits_ + 1);
  298|  10.8k|    RawBigit(used_bigits_) = carry & kBigitMask;
  299|  10.8k|    used_bigits_++;
  300|  10.8k|    carry >>= kBigitSize;
  301|  10.8k|  }
  302|  4.83k|}
_ZN17double_conversion6Bignum20MultiplyByPowerOfTenEi:
  305|  5.41k|void Bignum::MultiplyByPowerOfTen(const int exponent) {
  306|  5.41k|  static const uint64_t kFive27 = DOUBLE_CONVERSION_UINT64_2PART_C(0x6765c793, fa10079d);
  ------------------
  |  |  195|  5.41k|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  307|  5.41k|  static const uint16_t kFive1 = 5;
  308|  5.41k|  static const uint16_t kFive2 = kFive1 * 5;
  309|  5.41k|  static const uint16_t kFive3 = kFive2 * 5;
  310|  5.41k|  static const uint16_t kFive4 = kFive3 * 5;
  311|  5.41k|  static const uint16_t kFive5 = kFive4 * 5;
  312|  5.41k|  static const uint16_t kFive6 = kFive5 * 5;
  313|  5.41k|  static const uint32_t kFive7 = kFive6 * 5;
  314|  5.41k|  static const uint32_t kFive8 = kFive7 * 5;
  315|  5.41k|  static const uint32_t kFive9 = kFive8 * 5;
  316|  5.41k|  static const uint32_t kFive10 = kFive9 * 5;
  317|  5.41k|  static const uint32_t kFive11 = kFive10 * 5;
  318|  5.41k|  static const uint32_t kFive12 = kFive11 * 5;
  319|  5.41k|  static const uint32_t kFive13 = kFive12 * 5;
  320|  5.41k|  static const uint32_t kFive1_to_12[] =
  321|  5.41k|      { kFive1, kFive2, kFive3, kFive4, kFive5, kFive6,
  322|  5.41k|        kFive7, kFive8, kFive9, kFive10, kFive11, kFive12 };
  323|       |
  324|  5.41k|  if (exponent <= 0) {
  ------------------
  |  Branch (324:7): [True: 362, False: 5.05k]
  ------------------
  325|    362|    return;
  326|    362|  }
  327|  5.05k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (327:7): [True: 796, False: 4.25k]
  ------------------
  328|    796|    return;
  329|    796|  }
  330|       |  // We shift by exponent at the end just before returning.
  331|  4.25k|  int remaining_exponent = exponent;
  332|  9.09k|  while (remaining_exponent >= 27) {
  ------------------
  |  Branch (332:10): [True: 4.83k, False: 4.25k]
  ------------------
  333|  4.83k|    MultiplyByUInt64(kFive27);
  334|  4.83k|    remaining_exponent -= 27;
  335|  4.83k|  }
  336|  8.11k|  while (remaining_exponent >= 13) {
  ------------------
  |  Branch (336:10): [True: 3.85k, False: 4.25k]
  ------------------
  337|  3.85k|    MultiplyByUInt32(kFive13);
  338|  3.85k|    remaining_exponent -= 13;
  339|  3.85k|  }
  340|  4.25k|  if (remaining_exponent > 0) {
  ------------------
  |  Branch (340:7): [True: 4.10k, False: 153]
  ------------------
  341|  4.10k|    MultiplyByUInt32(kFive1_to_12[remaining_exponent - 1]);
  342|  4.10k|  }
  343|  4.25k|  ShiftLeft(exponent);
  344|  4.25k|}
_ZNK17double_conversion6Bignum11BigitOrZeroEi:
  624|  6.48k|Bignum::Chunk Bignum::BigitOrZero(const int index) const {
  625|  6.48k|  if (index >= BigitLength()) {
  ------------------
  |  Branch (625:7): [True: 0, False: 6.48k]
  ------------------
  626|      0|    return 0;
  627|      0|  }
  628|  6.48k|  if (index < exponent_) {
  ------------------
  |  Branch (628:7): [True: 348, False: 6.13k]
  ------------------
  629|    348|    return 0;
  630|    348|  }
  631|  6.13k|  return RawBigit(index - exponent_);
  632|  6.48k|}
_ZN17double_conversion6Bignum7CompareERKS0_S2_:
  635|    796|int Bignum::Compare(const Bignum& a, const Bignum& b) {
  636|    796|  DOUBLE_CONVERSION_ASSERT(a.IsClamped());
  ------------------
  |  |   47|    796|    assert(condition)
  ------------------
  |  Branch (636:3): [True: 796, False: 0]
  ------------------
  637|    796|  DOUBLE_CONVERSION_ASSERT(b.IsClamped());
  ------------------
  |  |   47|    796|    assert(condition)
  ------------------
  |  Branch (637:3): [True: 796, False: 0]
  ------------------
  638|    796|  const int bigit_length_a = a.BigitLength();
  639|    796|  const int bigit_length_b = b.BigitLength();
  640|    796|  if (bigit_length_a < bigit_length_b) {
  ------------------
  |  Branch (640:7): [True: 6, False: 790]
  ------------------
  641|      6|    return -1;
  642|      6|  }
  643|    790|  if (bigit_length_a > bigit_length_b) {
  ------------------
  |  Branch (643:7): [True: 0, False: 790]
  ------------------
  644|      0|    return +1;
  645|      0|  }
  646|  3.34k|  for (int i = bigit_length_a - 1; i >= (std::min)(a.exponent_, b.exponent_); --i) {
  ------------------
  |  Branch (646:36): [True: 3.24k, False: 99]
  ------------------
  647|  3.24k|    const Chunk bigit_a = a.BigitOrZero(i);
  648|  3.24k|    const Chunk bigit_b = b.BigitOrZero(i);
  649|  3.24k|    if (bigit_a < bigit_b) {
  ------------------
  |  Branch (649:9): [True: 220, False: 3.02k]
  ------------------
  650|    220|      return -1;
  651|    220|    }
  652|  3.02k|    if (bigit_a > bigit_b) {
  ------------------
  |  Branch (652:9): [True: 471, False: 2.55k]
  ------------------
  653|    471|      return +1;
  654|    471|    }
  655|       |    // Otherwise they are equal up to this digit. Try the next digit.
  656|  3.02k|  }
  657|     99|  return 0;
  658|    790|}
_ZN17double_conversion6Bignum5ClampEv:
  706|    796|void Bignum::Clamp() {
  707|    796|  while (used_bigits_ > 0 && RawBigit(used_bigits_ - 1) == 0) {
  ------------------
  |  Branch (707:10): [True: 796, False: 0]
  |  Branch (707:30): [True: 0, False: 796]
  ------------------
  708|      0|    used_bigits_--;
  709|      0|  }
  710|    796|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (710:7): [True: 0, False: 796]
  ------------------
  711|       |    // Zero.
  712|      0|    exponent_ = 0;
  713|      0|  }
  714|    796|}
_ZN17double_conversion6Bignum5AlignERKS0_:
  717|  2.46k|void Bignum::Align(const Bignum& other) {
  718|  2.46k|  if (exponent_ > other.exponent_) {
  ------------------
  |  Branch (718:7): [True: 0, False: 2.46k]
  ------------------
  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.46k|}
_ZN17double_conversion6Bignum15BigitsShiftLeftEi:
  742|  4.97k|void Bignum::BigitsShiftLeft(const int shift_amount) {
  743|  4.97k|  DOUBLE_CONVERSION_ASSERT(shift_amount < kBigitSize);
  ------------------
  |  |   47|  4.97k|    assert(condition)
  ------------------
  |  Branch (743:3): [True: 4.97k, False: 0]
  ------------------
  744|  4.97k|  DOUBLE_CONVERSION_ASSERT(shift_amount >= 0);
  ------------------
  |  |   47|  4.97k|    assert(condition)
  ------------------
  |  Branch (744:3): [True: 4.97k, False: 0]
  ------------------
  745|  4.97k|  Chunk carry = 0;
  746|   146k|  for (int i = 0; i < used_bigits_; ++i) {
  ------------------
  |  Branch (746:19): [True: 141k, False: 4.97k]
  ------------------
  747|   141k|    const Chunk new_carry = RawBigit(i) >> (kBigitSize - shift_amount);
  748|   141k|    RawBigit(i) = ((RawBigit(i) << shift_amount) + carry) & kBigitMask;
  749|   141k|    carry = new_carry;
  750|   141k|  }
  751|  4.97k|  if (carry != 0) {
  ------------------
  |  Branch (751:7): [True: 3.15k, False: 1.81k]
  ------------------
  752|  3.15k|    RawBigit(used_bigits_) = carry;
  753|  3.15k|    used_bigits_++;
  754|  3.15k|  }
  755|  4.97k|}
bignum.cc:_ZN17double_conversionL10ReadUInt64ENS_6VectorIKcEEii:
   80|  4.62k|                           const int digits_to_read) {
   81|  4.62k|  uint64_t result = 0;
   82|  83.4k|  for (int i = from; i < from + digits_to_read; ++i) {
  ------------------
  |  Branch (82:22): [True: 78.8k, False: 4.62k]
  ------------------
   83|  78.8k|    const int digit = buffer[i] - '0';
   84|  78.8k|    DOUBLE_CONVERSION_ASSERT(0 <= digit && digit <= 9);
  ------------------
  |  |   47|  78.8k|    assert(condition)
  ------------------
  |  Branch (84:5): [True: 78.8k, False: 0]
  |  Branch (84:5): [True: 78.8k, False: 0]
  |  Branch (84:5): [True: 78.8k, False: 0]
  ------------------
   85|  78.8k|    result = result * 10 + digit;
   86|  78.8k|  }
   87|  4.62k|  return result;
   88|  4.62k|}

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

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

_ZN17double_conversion5DiyFpC2Ev:
   45|  2.77k|  DiyFp() : f_(0), e_(0) {}
_ZN17double_conversion5DiyFpC2Emi:
   46|  6.22k|  DiyFp(const uint64_t significand, const int32_t exponent) : f_(significand), e_(exponent) {}
_ZN17double_conversion5DiyFp8MultiplyERKS0_:
   68|  2.65k|  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.65k|    const uint64_t kM32 = 0xFFFFFFFFU;
   74|  2.65k|    const uint64_t a = f_ >> 32;
   75|  2.65k|    const uint64_t b = f_ & kM32;
   76|  2.65k|    const uint64_t c = other.f_ >> 32;
   77|  2.65k|    const uint64_t d = other.f_ & kM32;
   78|  2.65k|    const uint64_t ac = a * c;
   79|  2.65k|    const uint64_t bc = b * c;
   80|  2.65k|    const uint64_t ad = a * d;
   81|  2.65k|    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.65k|    const uint64_t tmp = (bd >> 32) + (ad & kM32) + (bc & kM32) + (1U << 31);
   85|  2.65k|    e_ += other.e_ + 64;
   86|  2.65k|    f_ = ac + (ad >> 32) + (bc >> 32) + (tmp >> 32);
   87|  2.65k|  }
_ZN17double_conversion5DiyFp9NormalizeEv:
   96|  2.77k|  void Normalize() {
   97|  2.77k|    DOUBLE_CONVERSION_ASSERT(f_ != 0);
  ------------------
  |  |   47|  2.77k|    assert(condition)
  ------------------
  |  Branch (97:5): [True: 2.77k, False: 0]
  ------------------
   98|  2.77k|    uint64_t significand = f_;
   99|  2.77k|    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.77k|    const uint64_t k10MSBits = DOUBLE_CONVERSION_UINT64_2PART_C(0xFFC00000, 00000000);
  ------------------
  |  |  195|  2.77k|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  104|  5.94k|    while ((significand & k10MSBits) == 0) {
  ------------------
  |  Branch (104:12): [True: 3.16k, False: 2.77k]
  ------------------
  105|  3.16k|      significand <<= 10;
  106|  3.16k|      exponent -= 10;
  107|  3.16k|    }
  108|  7.35k|    while ((significand & kUint64MSB) == 0) {
  ------------------
  |  Branch (108:12): [True: 4.57k, False: 2.77k]
  ------------------
  109|  4.57k|      significand <<= 1;
  110|  4.57k|      exponent--;
  111|  4.57k|    }
  112|  2.77k|    f_ = significand;
  113|  2.77k|    e_ = exponent;
  114|  2.77k|  }
_ZNK17double_conversion5DiyFp1fEv:
  122|  5.30k|  uint64_t f() const { return f_; }
_ZNK17double_conversion5DiyFp1eEv:
  123|  11.3k|  int32_t e() const { return e_; }
_ZN17double_conversion5DiyFp5set_fEm:
  125|    345|  void set_f(uint64_t new_value) { f_ = new_value; }
_ZN17double_conversion5DiyFp5set_eEi:
  126|     61|  void set_e(int32_t new_value) { e_ = new_value; }

_ZN17double_conversion6Double8InfinityEv:
  236|  1.07k|  static double Infinity() {
  237|  1.07k|    return Double(kInfinity).value();
  238|  1.07k|  }
_ZN17double_conversion6DoubleC2Em:
   56|  1.62k|  explicit Double(uint64_t d64) : d64_(d64) {}
_ZNK17double_conversion6Double5valueEv:
  220|  3.01k|  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.41k|  explicit Double(double d) : d64_(double_to_uint64(d)) {}
_ZN17double_conversion6DoubleC2ENS_5DiyFpE:
   58|  1.38k|    : d64_(DiyFpToUint64(diy_fp)) {}
_ZNK17double_conversion6Double8AsUint64Ev:
   86|  5.13k|  uint64_t AsUint64() const {
   87|  5.13k|    return d64_;
   88|  5.13k|  }
_ZNK17double_conversion6Double10NextDoubleEv:
   91|    524|  double NextDouble() const {
   92|    524|    if (d64_ == kInfinity) return Double(kInfinity).value();
  ------------------
  |  Branch (92:9): [True: 0, False: 524]
  ------------------
   93|    524|    if (Sign() < 0 && Significand() == 0) {
  ------------------
  |  Branch (93:9): [True: 0, False: 524]
  |  Branch (93:23): [True: 0, False: 0]
  ------------------
   94|       |      // -0.0
   95|      0|      return 0.0;
   96|      0|    }
   97|    524|    if (Sign() < 0) {
  ------------------
  |  Branch (97:9): [True: 0, False: 524]
  ------------------
   98|      0|      return Double(d64_ - 1).value();
   99|    524|    } else {
  100|    524|      return Double(d64_ + 1).value();
  101|    524|    }
  102|    524|  }
_ZNK17double_conversion6Double8ExponentEv:
  114|    796|  int Exponent() const {
  115|    796|    if (IsDenormal()) return kDenormalExponent;
  ------------------
  |  Branch (115:9): [True: 91, False: 705]
  ------------------
  116|       |
  117|    705|    uint64_t d64 = AsUint64();
  118|    705|    int biased_e =
  119|    705|        static_cast<int>((d64 & kExponentMask) >> kPhysicalSignificandSize);
  120|    705|    return biased_e - kExponentBias;
  121|    796|  }
_ZNK17double_conversion6Double11SignificandEv:
  123|    895|  uint64_t Significand() const {
  124|    895|    uint64_t d64 = AsUint64();
  125|    895|    uint64_t significand = d64 & kSignificandMask;
  126|    895|    if (!IsDenormal()) {
  ------------------
  |  Branch (126:9): [True: 804, False: 91]
  ------------------
  127|    804|      return significand + kHiddenBit;
  128|    804|    } else {
  129|     91|      return significand;
  130|     91|    }
  131|    895|  }
_ZNK17double_conversion6Double10IsDenormalEv:
  134|  1.69k|  bool IsDenormal() const {
  135|  1.69k|    uint64_t d64 = AsUint64();
  136|  1.69k|    return (d64 & kExponentMask) == 0;
  137|  1.69k|  }
_ZNK17double_conversion6Double4SignEv:
  175|  1.84k|  int Sign() const {
  176|  1.84k|    uint64_t d64 = AsUint64();
  177|  1.84k|    return (d64 & kSignMask) == 0? 1: -1;
  ------------------
  |  Branch (177:12): [True: 1.84k, False: 0]
  ------------------
  178|  1.84k|  }
_ZNK17double_conversion6Double13UpperBoundaryEv:
  182|    796|  DiyFp UpperBoundary() const {
  183|    796|    DOUBLE_CONVERSION_ASSERT(Sign() > 0);
  ------------------
  |  |   47|    796|    assert(condition)
  ------------------
  |  Branch (183:5): [True: 796, False: 0]
  ------------------
  184|    796|    return DiyFp(Significand() * 2 + 1, Exponent() - 1);
  185|    796|  }
_ZN17double_conversion6Double34SignificandSizeForOrderOfMagnitudeEi:
  228|  1.38k|  static int SignificandSizeForOrderOfMagnitude(int order) {
  229|  1.38k|    if (order >= (kDenormalExponent + kSignificandSize)) {
  ------------------
  |  Branch (229:9): [True: 1.20k, False: 182]
  ------------------
  230|  1.20k|      return kSignificandSize;
  231|  1.20k|    }
  232|    182|    if (order <= kDenormalExponent) return 0;
  ------------------
  |  Branch (232:9): [True: 41, False: 141]
  ------------------
  233|    141|    return order - kDenormalExponent;
  234|    182|  }
_ZN17double_conversion6Double13DiyFpToUint64ENS_5DiyFpE:
  256|  1.38k|  static uint64_t DiyFpToUint64(DiyFp diy_fp) {
  257|  1.38k|    uint64_t significand = diy_fp.f();
  258|  1.38k|    int exponent = diy_fp.e();
  259|  1.40k|    while (significand > kHiddenBit + kSignificandMask) {
  ------------------
  |  Branch (259:12): [True: 17, False: 1.38k]
  ------------------
  260|     17|      significand >>= 1;
  261|     17|      exponent++;
  262|     17|    }
  263|  1.38k|    if (exponent >= kMaxExponent) {
  ------------------
  |  Branch (263:9): [True: 4, False: 1.38k]
  ------------------
  264|      4|      return kInfinity;
  265|      4|    }
  266|  1.38k|    if (exponent < kDenormalExponent) {
  ------------------
  |  Branch (266:9): [True: 25, False: 1.35k]
  ------------------
  267|     25|      return 0;
  268|     25|    }
  269|  1.35k|    while (exponent > kDenormalExponent && (significand & kHiddenBit) == 0) {
  ------------------
  |  Branch (269:12): [True: 1.19k, False: 161]
  |  Branch (269:44): [True: 0, False: 1.19k]
  ------------------
  270|      0|      significand <<= 1;
  271|      0|      exponent--;
  272|      0|    }
  273|  1.35k|    uint64_t biased_exponent;
  274|  1.35k|    if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) {
  ------------------
  |  Branch (274:9): [True: 161, False: 1.19k]
  |  Branch (274:42): [True: 157, False: 4]
  ------------------
  275|    157|      biased_exponent = 0;
  276|  1.20k|    } else {
  277|  1.20k|      biased_exponent = static_cast<uint64_t>(exponent + kExponentBias);
  278|  1.20k|    }
  279|  1.35k|    return (significand & kSignificandMask) |
  280|  1.35k|        (biased_exponent << kPhysicalSignificandSize);
  281|  1.38k|  }
strtod.cc:_ZN17double_conversionL16uint64_to_doubleEm:
   37|  2.87k|static double uint64_to_double(uint64_t d64) { return BitCast<double>(d64); }
strtod.cc:_ZN17double_conversionL16double_to_uint64Ed:
   36|  1.41k|static uint64_t double_to_uint64(double d) { return BitCast<uint64_t>(d); }

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

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

_ZN17double_conversion13StrtodTrimmedENS_6VectorIKcEEi:
  485|  2.02k|double StrtodTrimmed(Vector<const char> trimmed, int exponent) {
  486|  2.02k|  DOUBLE_CONVERSION_ASSERT(trimmed.length() <= kMaxSignificantDecimalDigits);
  ------------------
  |  |   47|  2.02k|    assert(condition)
  ------------------
  |  Branch (486:3): [True: 2.02k, False: 0]
  ------------------
  487|  2.02k|  DOUBLE_CONVERSION_ASSERT(AssertTrimmedDigits(trimmed));
  ------------------
  |  |   47|  2.02k|    assert(condition)
  ------------------
  |  Branch (487:3): [True: 2.02k, False: 0]
  ------------------
  488|  2.02k|  exponent = ClampExponent(exponent);
  489|  2.02k|  double guess;
  490|  2.02k|  const bool is_correct = ComputeGuess(trimmed, exponent, &guess);
  491|  2.02k|  if (is_correct) {
  ------------------
  |  Branch (491:7): [True: 1.23k, False: 796]
  ------------------
  492|  1.23k|    return guess;
  493|  1.23k|  }
  494|    796|  DiyFp upper_boundary = Double(guess).UpperBoundary();
  495|    796|  int comparison = CompareBufferWithDiyFp(trimmed, exponent, upper_boundary);
  496|    796|  if (comparison < 0) {
  ------------------
  |  Branch (496:7): [True: 226, False: 570]
  ------------------
  497|    226|    return guess;
  498|    570|  } else if (comparison > 0) {
  ------------------
  |  Branch (498:14): [True: 471, False: 99]
  ------------------
  499|    471|    return Double(guess).NextDouble();
  500|    471|  } else if ((Double(guess).Significand() & 1) == 0) {
  ------------------
  |  Branch (500:14): [True: 46, False: 53]
  ------------------
  501|       |    // Round towards even.
  502|     46|    return guess;
  503|     53|  } else {
  504|     53|    return Double(guess).NextDouble();
  505|     53|  }
  506|    796|}
strtod.cc:_ZN17double_conversionL19AssertTrimmedDigitsERKNS_6VectorIKcEE:
  476|  2.02k|static bool AssertTrimmedDigits(const Vector<const char>& buffer) {
  477|   132k|  for(int i = 0; i < buffer.length(); ++i) {
  ------------------
  |  Branch (477:18): [True: 130k, False: 2.02k]
  ------------------
  478|   130k|    if(!IsDigit(buffer[i])) {
  ------------------
  |  Branch (478:8): [True: 0, False: 130k]
  ------------------
  479|      0|      return false;
  480|      0|    }
  481|   130k|  }
  482|  2.02k|  return (buffer.length() == 0) || (IsNonZeroDigit(buffer[0]) && IsNonZeroDigit(buffer[buffer.length()-1]));
  ------------------
  |  Branch (482:10): [True: 89, False: 1.93k]
  |  Branch (482:37): [True: 1.93k, False: 0]
  |  Branch (482:66): [True: 1.93k, False: 0]
  ------------------
  483|  2.02k|}
strtod.cc:_ZN17double_conversionL7IsDigitEc:
  463|   130k|static bool IsDigit(const char d) {
  464|   130k|  return ('0' <= d) && (d <= '9');
  ------------------
  |  Branch (464:10): [True: 130k, False: 0]
  |  Branch (464:24): [True: 130k, False: 0]
  ------------------
  465|   130k|}
strtod.cc:_ZN17double_conversionL14IsNonZeroDigitEc:
  467|  3.87k|static bool IsNonZeroDigit(const char d) {
  468|  3.87k|  return ('1' <= d) && (d <= '9');
  ------------------
  |  Branch (468:10): [True: 3.87k, False: 0]
  |  Branch (468:24): [True: 3.87k, False: 0]
  ------------------
  469|  3.87k|}
strtod.cc:_ZN17double_conversionL13ClampExponentEi:
  101|  3.96k|static int ClampExponent(int exponent) {
  102|  3.96k|  const int kMaxExponent = INT_MAX / 2;
  103|  3.96k|  if (exponent > kMaxExponent) return kMaxExponent;
  ------------------
  |  Branch (103:7): [True: 2, False: 3.96k]
  ------------------
  104|  3.96k|  if (exponent < -kMaxExponent) return -kMaxExponent;
  ------------------
  |  Branch (104:7): [True: 1, False: 3.96k]
  ------------------
  105|  3.96k|  return exponent;
  106|  3.96k|}
strtod.cc:_ZN17double_conversionL12ComputeGuessENS_6VectorIKcEEiPd:
  438|  2.02k|                         double* guess) {
  439|  2.02k|  if (trimmed.length() == 0) {
  ------------------
  |  Branch (439:7): [True: 89, False: 1.93k]
  ------------------
  440|     89|    *guess = 0.0;
  441|     89|    return true;
  442|     89|  }
  443|  1.93k|  exponent = ClampExponent(exponent);
  444|  1.93k|  if (exponent + trimmed.length() - 1 >= kMaxDecimalPower) {
  ------------------
  |  Branch (444:7): [True: 161, False: 1.77k]
  ------------------
  445|    161|    *guess = Double::Infinity();
  446|    161|    return true;
  447|    161|  }
  448|  1.77k|  if (exponent + trimmed.length() <= kMinDecimalPower) {
  ------------------
  |  Branch (448:7): [True: 98, False: 1.68k]
  ------------------
  449|     98|    *guess = 0.0;
  450|     98|    return true;
  451|     98|  }
  452|       |
  453|  1.68k|  if (DoubleStrtod(trimmed, exponent, guess) ||
  ------------------
  |  Branch (453:7): [True: 292, False: 1.38k]
  ------------------
  454|  1.38k|      DiyFpStrtod(trimmed, exponent, guess)) {
  ------------------
  |  Branch (454:7): [True: 591, False: 797]
  ------------------
  455|    883|    return true;
  456|    883|  }
  457|    797|  if (*guess == Double::Infinity()) {
  ------------------
  |  Branch (457:7): [True: 1, False: 796]
  ------------------
  458|      1|    return true;
  459|      1|  }
  460|    796|  return false;
  461|    797|}
strtod.cc:_ZN17double_conversionL12DoubleStrtodENS_6VectorIKcEEiPd:
  210|  1.68k|                         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.68k|  if (trimmed.length() <= kMaxExactDoubleIntegerDecimalDigits) {
  ------------------
  |  Branch (222:7): [True: 931, False: 749]
  ------------------
  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: 317, False: 614]
  |  Branch (230:25): [True: 75, False: 242]
  ------------------
  231|       |      // 10^-exponent fits into a double.
  232|     75|      *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
  233|     75|      DOUBLE_CONVERSION_ASSERT(read_digits == trimmed.length());
  ------------------
  |  |   47|     75|    assert(condition)
  ------------------
  |  Branch (233:7): [True: 75, False: 0]
  ------------------
  234|     75|      *result /= exact_powers_of_ten[-exponent];
  235|     75|      return true;
  236|     75|    }
  237|    856|    if (0 <= exponent && exponent < kExactPowersOfTenSize) {
  ------------------
  |  Branch (237:9): [True: 614, False: 242]
  |  Branch (237:26): [True: 159, False: 455]
  ------------------
  238|       |      // 10^exponent fits into a double.
  239|    159|      *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
  240|    159|      DOUBLE_CONVERSION_ASSERT(read_digits == trimmed.length());
  ------------------
  |  |   47|    159|    assert(condition)
  ------------------
  |  Branch (240:7): [True: 159, False: 0]
  ------------------
  241|    159|      *result *= exact_powers_of_ten[exponent];
  242|    159|      return true;
  243|    159|    }
  244|    697|    int remaining_digits =
  245|    697|        kMaxExactDoubleIntegerDecimalDigits - trimmed.length();
  246|    697|    if ((0 <= exponent) &&
  ------------------
  |  Branch (246:9): [True: 455, False: 242]
  ------------------
  247|    455|        (exponent - remaining_digits < kExactPowersOfTenSize)) {
  ------------------
  |  Branch (247:9): [True: 58, 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|     58|      *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
  252|     58|      DOUBLE_CONVERSION_ASSERT(read_digits == trimmed.length());
  ------------------
  |  |   47|     58|    assert(condition)
  ------------------
  |  Branch (252:7): [True: 58, False: 0]
  ------------------
  253|     58|      *result *= exact_powers_of_ten[remaining_digits];
  254|     58|      *result *= exact_powers_of_ten[exponent - remaining_digits];
  255|     58|      return true;
  256|     58|    }
  257|    697|  }
  258|  1.38k|  return false;
  259|  1.68k|#endif
  260|  1.68k|}
strtod.cc:_ZN17double_conversionL10ReadUint64ENS_6VectorIKcEEPi:
  170|  1.68k|                           int* number_of_read_digits) {
  171|  1.68k|  uint64_t result = 0;
  172|  1.68k|  int i = 0;
  173|  19.8k|  while (i < buffer.length() && result <= (kMaxUint64 / 10 - 1)) {
  ------------------
  |  Branch (173:10): [True: 18.5k, False: 1.34k]
  |  Branch (173:33): [True: 18.1k, False: 337]
  ------------------
  174|  18.1k|    int digit = buffer[i++] - '0';
  175|  18.1k|    DOUBLE_CONVERSION_ASSERT(0 <= digit && digit <= 9);
  ------------------
  |  |   47|  18.1k|    assert(condition)
  ------------------
  |  Branch (175:5): [True: 18.1k, False: 0]
  |  Branch (175:5): [True: 18.1k, False: 0]
  |  Branch (175:5): [True: 18.1k, False: 0]
  ------------------
  176|  18.1k|    result = 10 * result + digit;
  177|  18.1k|  }
  178|  1.68k|  *number_of_read_digits = i;
  179|  1.68k|  return result;
  180|  1.68k|}
strtod.cc:_ZN17double_conversionL11DiyFpStrtodENS_6VectorIKcEEiPd:
  290|  1.38k|                        double* result) {
  291|  1.38k|  DiyFp input;
  292|  1.38k|  int remaining_decimals;
  293|  1.38k|  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.38k|  const int kDenominatorLog = 3;
  300|  1.38k|  const int kDenominator = 1 << kDenominatorLog;
  301|       |  // Move the remaining decimals into the exponent.
  302|  1.38k|  exponent += remaining_decimals;
  303|  1.38k|  uint64_t error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
  ------------------
  |  Branch (303:21): [True: 1.05k, False: 337]
  ------------------
  304|       |
  305|  1.38k|  int old_e = input.e();
  306|  1.38k|  input.Normalize();
  307|  1.38k|  error <<= old_e - input.e();
  308|       |
  309|  1.38k|  DOUBLE_CONVERSION_ASSERT(exponent <= PowersOfTenCache::kMaxDecimalExponent);
  ------------------
  |  |   47|  1.38k|    assert(condition)
  ------------------
  |  Branch (309:3): [True: 1.38k, False: 0]
  ------------------
  310|  1.38k|  if (exponent < PowersOfTenCache::kMinDecimalExponent) {
  ------------------
  |  Branch (310:7): [True: 0, False: 1.38k]
  ------------------
  311|      0|    *result = 0.0;
  312|      0|    return true;
  313|      0|  }
  314|  1.38k|  DiyFp cached_power;
  315|  1.38k|  int cached_decimal_exponent;
  316|  1.38k|  PowersOfTenCache::GetCachedPowerForDecimalExponent(exponent,
  317|  1.38k|                                                     &cached_power,
  318|  1.38k|                                                     &cached_decimal_exponent);
  319|       |
  320|  1.38k|  if (cached_decimal_exponent != exponent) {
  ------------------
  |  Branch (320:7): [True: 1.26k, False: 126]
  ------------------
  321|  1.26k|    int adjustment_exponent = exponent - cached_decimal_exponent;
  322|  1.26k|    DiyFp adjustment_power = AdjustmentPowerOfTen(adjustment_exponent);
  323|  1.26k|    input.Multiply(adjustment_power);
  324|  1.26k|    if (kMaxUint64DecimalDigits - buffer.length() >= adjustment_exponent) {
  ------------------
  |  Branch (324:9): [True: 566, False: 696]
  ------------------
  325|       |      // The product of input with the adjustment power fits into a 64 bit
  326|       |      // integer.
  327|    566|      DOUBLE_CONVERSION_ASSERT(DiyFp::kSignificandSize == 64);
  ------------------
  |  |   47|    566|    assert(condition)
  ------------------
  |  Branch (327:7): [True: 566, Folded]
  ------------------
  328|    696|    } else {
  329|       |      // The adjustment power is exact. There is hence only an error of 0.5.
  330|    696|      error += kDenominator / 2;
  331|    696|    }
  332|  1.26k|  }
  333|       |
  334|  1.38k|  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.38k|  int error_b = kDenominator / 2;
  341|  1.38k|  int error_ab = (error == 0 ? 0 : 1);  // We round up to 1.
  ------------------
  |  Branch (341:19): [True: 658, False: 730]
  ------------------
  342|  1.38k|  int fixed_error = kDenominator / 2;
  343|  1.38k|  error += error_b + error_ab + fixed_error;
  344|       |
  345|  1.38k|  old_e = input.e();
  346|  1.38k|  input.Normalize();
  347|  1.38k|  error <<= old_e - input.e();
  348|       |
  349|       |  // See if the double's significand changes if we add/subtract the error.
  350|  1.38k|  int order_of_magnitude = DiyFp::kSignificandSize + input.e();
  351|  1.38k|  int effective_significand_size =
  352|  1.38k|      Double::SignificandSizeForOrderOfMagnitude(order_of_magnitude);
  353|  1.38k|  int precision_digits_count =
  354|  1.38k|      DiyFp::kSignificandSize - effective_significand_size;
  355|  1.38k|  if (precision_digits_count + kDenominatorLog >= DiyFp::kSignificandSize) {
  ------------------
  |  Branch (355:7): [True: 61, False: 1.32k]
  ------------------
  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|     61|    int shift_amount = (precision_digits_count + kDenominatorLog) -
  360|     61|        DiyFp::kSignificandSize + 1;
  361|     61|    input.set_f(input.f() >> shift_amount);
  362|     61|    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|     61|    error = (error >> shift_amount) + 1 + kDenominator;
  366|     61|    precision_digits_count -= shift_amount;
  367|     61|  }
  368|       |  // We use uint64_ts now. This only works if the DiyFp uses uint64_ts too.
  369|  1.38k|  DOUBLE_CONVERSION_ASSERT(DiyFp::kSignificandSize == 64);
  ------------------
  |  |   47|  1.38k|    assert(condition)
  ------------------
  |  Branch (369:3): [True: 1.38k, Folded]
  ------------------
  370|  1.38k|  DOUBLE_CONVERSION_ASSERT(precision_digits_count < 64);
  ------------------
  |  |   47|  1.38k|    assert(condition)
  ------------------
  |  Branch (370:3): [True: 1.38k, False: 0]
  ------------------
  371|  1.38k|  uint64_t one64 = 1;
  372|  1.38k|  uint64_t precision_bits_mask = (one64 << precision_digits_count) - 1;
  373|  1.38k|  uint64_t precision_bits = input.f() & precision_bits_mask;
  374|  1.38k|  uint64_t half_way = one64 << (precision_digits_count - 1);
  375|  1.38k|  precision_bits *= kDenominator;
  376|  1.38k|  half_way *= kDenominator;
  377|  1.38k|  DiyFp rounded_input(input.f() >> precision_digits_count,
  378|  1.38k|                      input.e() + precision_digits_count);
  379|  1.38k|  if (precision_bits >= half_way + error) {
  ------------------
  |  Branch (379:7): [True: 284, False: 1.10k]
  ------------------
  380|    284|    rounded_input.set_f(rounded_input.f() + 1);
  381|    284|  }
  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.38k|  *result = Double(rounded_input).value();
  387|  1.38k|  if (half_way - error < precision_bits && precision_bits < half_way + error) {
  ------------------
  |  Branch (387:7): [True: 1.08k, False: 307]
  |  Branch (387:44): [True: 797, False: 284]
  ------------------
  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|    797|    return false;
  392|    797|  } else {
  393|    591|    return true;
  394|    591|  }
  395|  1.38k|}
strtod.cc:_ZN17double_conversionL9ReadDiyFpENS_6VectorIKcEEPNS_5DiyFpEPi:
  189|  1.38k|                      int* remaining_decimals) {
  190|  1.38k|  int read_digits;
  191|  1.38k|  uint64_t significand = ReadUint64(buffer, &read_digits);
  192|  1.38k|  if (buffer.length() == read_digits) {
  ------------------
  |  Branch (192:7): [True: 1.05k, False: 337]
  ------------------
  193|  1.05k|    *result = DiyFp(significand, 0);
  194|  1.05k|    *remaining_decimals = 0;
  195|  1.05k|  } else {
  196|       |    // Round the significand.
  197|    337|    if (buffer[read_digits] >= '5') {
  ------------------
  |  Branch (197:9): [True: 82, False: 255]
  ------------------
  198|     82|      significand++;
  199|     82|    }
  200|       |    // Compute the binary exponent.
  201|    337|    int exponent = 0;
  202|    337|    *result = DiyFp(significand, exponent);
  203|    337|    *remaining_decimals = buffer.length() - read_digits;
  204|    337|  }
  205|  1.38k|}
strtod.cc:_ZN17double_conversionL20AdjustmentPowerOfTenEi:
  265|  1.26k|static DiyFp AdjustmentPowerOfTen(int exponent) {
  266|  1.26k|  DOUBLE_CONVERSION_ASSERT(0 < exponent);
  ------------------
  |  |   47|  1.26k|    assert(condition)
  ------------------
  |  Branch (266:3): [True: 1.26k, False: 0]
  ------------------
  267|  1.26k|  DOUBLE_CONVERSION_ASSERT(exponent < PowersOfTenCache::kDecimalExponentDistance);
  ------------------
  |  |   47|  1.26k|    assert(condition)
  ------------------
  |  Branch (267:3): [True: 1.26k, False: 0]
  ------------------
  268|       |  // Simply hardcode the remaining powers for the given decimal exponent
  269|       |  // distance.
  270|  1.26k|  DOUBLE_CONVERSION_ASSERT(PowersOfTenCache::kDecimalExponentDistance == 8);
  ------------------
  |  |   47|  1.26k|    assert(condition)
  ------------------
  |  Branch (270:3): [True: 1.26k, Folded]
  ------------------
  271|  1.26k|  switch (exponent) {
  272|    180|    case 1: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xa0000000, 00000000), -60);
  ------------------
  |  |  195|    180|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (272:5): [True: 180, False: 1.08k]
  ------------------
  273|    113|    case 2: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc8000000, 00000000), -57);
  ------------------
  |  |  195|    113|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (273:5): [True: 113, False: 1.14k]
  ------------------
  274|    123|    case 3: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xfa000000, 00000000), -54);
  ------------------
  |  |  195|    123|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (274:5): [True: 123, False: 1.13k]
  ------------------
  275|    432|    case 4: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0x9c400000, 00000000), -50);
  ------------------
  |  |  195|    432|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (275:5): [True: 432, False: 830]
  ------------------
  276|    124|    case 5: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc3500000, 00000000), -47);
  ------------------
  |  |  195|    124|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (276:5): [True: 124, False: 1.13k]
  ------------------
  277|    131|    case 6: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xf4240000, 00000000), -44);
  ------------------
  |  |  195|    131|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (277:5): [True: 131, False: 1.13k]
  ------------------
  278|    159|    case 7: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0x98968000, 00000000), -40);
  ------------------
  |  |  195|    159|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (278:5): [True: 159, False: 1.10k]
  ------------------
  279|      0|    default:
  ------------------
  |  Branch (279:5): [True: 0, False: 1.26k]
  ------------------
  280|      0|      DOUBLE_CONVERSION_UNREACHABLE();
  ------------------
  |  |   77|      0|#define DOUBLE_CONVERSION_UNREACHABLE()   (abort())
  ------------------
  281|  1.26k|  }
  282|  1.26k|}
strtod.cc:_ZN17double_conversionL22CompareBufferWithDiyFpENS_6VectorIKcEEiNS_5DiyFpE:
  408|    796|                                  DiyFp diy_fp) {
  409|    796|  DOUBLE_CONVERSION_ASSERT(buffer.length() + exponent <= kMaxDecimalPower + 1);
  ------------------
  |  |   47|    796|    assert(condition)
  ------------------
  |  Branch (409:3): [True: 796, False: 0]
  ------------------
  410|    796|  DOUBLE_CONVERSION_ASSERT(buffer.length() + exponent > kMinDecimalPower);
  ------------------
  |  |   47|    796|    assert(condition)
  ------------------
  |  Branch (410:3): [True: 796, False: 0]
  ------------------
  411|    796|  DOUBLE_CONVERSION_ASSERT(buffer.length() <= kMaxSignificantDecimalDigits);
  ------------------
  |  |   47|    796|    assert(condition)
  ------------------
  |  Branch (411:3): [True: 796, 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|    796|  DOUBLE_CONVERSION_ASSERT(((kMaxDecimalPower + 1) * 333 / 100) < Bignum::kMaxSignificantBits);
  ------------------
  |  |   47|    796|    assert(condition)
  ------------------
  |  Branch (416:3): [True: 796, Folded]
  ------------------
  417|    796|  Bignum buffer_bignum;
  418|    796|  Bignum diy_fp_bignum;
  419|    796|  buffer_bignum.AssignDecimalString(buffer);
  420|    796|  diy_fp_bignum.AssignUInt64(diy_fp.f());
  421|    796|  if (exponent >= 0) {
  ------------------
  |  Branch (421:7): [True: 453, False: 343]
  ------------------
  422|    453|    buffer_bignum.MultiplyByPowerOfTen(exponent);
  423|    453|  } else {
  424|    343|    diy_fp_bignum.MultiplyByPowerOfTen(-exponent);
  425|    343|  }
  426|    796|  if (diy_fp.e() > 0) {
  ------------------
  |  Branch (426:7): [True: 428, False: 368]
  ------------------
  427|    428|    diy_fp_bignum.ShiftLeft(diy_fp.e());
  428|    428|  } else {
  429|    368|    buffer_bignum.ShiftLeft(-diy_fp.e());
  430|    368|  }
  431|    796|  return Bignum::Compare(buffer_bignum, diy_fp_bignum);
  432|    796|}

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

_ZN17double_conversion7BitCastIdmEET_RKT0_:
  395|  3.01k|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|  3.01k|#if __cplusplus >= 201103L
  399|  3.01k|  static_assert(sizeof(Dest) == sizeof(Source),
  400|  3.01k|                "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|  3.01k|  Dest dest;
  407|  3.01k|  memmove(&dest, &source, sizeof(dest));
  408|  3.01k|  return dest;
  409|  3.01k|}
_ZN17double_conversion6VectorIKcEC2EPS1_i:
  252|  4.05k|  Vector(T* data, int len) : start_(data), length_(len) {
  253|       |    DOUBLE_CONVERSION_ASSERT(len == 0 || (len > 0 && data != DOUBLE_CONVERSION_NULLPTR));
  ------------------
  |  |   47|  4.05k|    assert(condition)
  ------------------
  |  Branch (253:5): [True: 3.87k, False: 0]
  |  Branch (253:5): [True: 3.87k, False: 0]
  |  Branch (253:5): [True: 178, False: 3.87k]
  |  Branch (253:5): [True: 4.05k, False: 0]
  ------------------
  254|  4.05k|  }
_ZNK17double_conversion6VectorIKcEixEi:
  275|   239k|  T& operator[](int index) const {
  276|   239k|    DOUBLE_CONVERSION_ASSERT(0 <= index && index < length_);
  ------------------
  |  |   47|   239k|    assert(condition)
  ------------------
  |  Branch (276:5): [True: 239k, False: 0]
  |  Branch (276:5): [True: 239k, False: 0]
  |  Branch (276:5): [True: 239k, False: 0]
  ------------------
  277|   239k|    return start_[index];
  278|   239k|  }
_ZN17double_conversion6VectorIKcE9SubVectorEii:
  258|  1.93k|  Vector<T> SubVector(int from, int to) {
  259|  1.93k|    DOUBLE_CONVERSION_ASSERT(to <= length_);
  ------------------
  |  |   47|  1.93k|    assert(condition)
  ------------------
  |  Branch (259:5): [True: 1.93k, False: 0]
  ------------------
  260|  1.93k|    DOUBLE_CONVERSION_ASSERT(from < to);
  ------------------
  |  |   47|  1.93k|    assert(condition)
  ------------------
  |  Branch (260:5): [True: 1.93k, False: 0]
  ------------------
  261|  1.93k|    DOUBLE_CONVERSION_ASSERT(0 <= from);
  ------------------
  |  |   47|  1.93k|    assert(condition)
  ------------------
  |  Branch (261:5): [True: 1.93k, False: 0]
  ------------------
  262|  1.93k|    return Vector<T>(start() + from, to - from);
  263|  1.93k|  }
_ZNK17double_conversion6VectorIKcE5startEv:
  272|  2.02k|  T* start() const { return start_; }
_ZNK17double_conversion6VectorIKcE6lengthEv:
  266|   176k|  int length() const { return length_; }
_ZN17double_conversion7BitCastImdEET_RKT0_:
  395|  1.41k|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.41k|#if __cplusplus >= 201103L
  399|  1.41k|  static_assert(sizeof(Dest) == sizeof(Source),
  400|  1.41k|                "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.41k|  Dest dest;
  407|  1.41k|  memmove(&dest, &source, sizeof(dest));
  408|  1.41k|  return dest;
  409|  1.41k|}

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

