_ZN17double_conversion6Bignum8RawBigitEi:
   36|  1.20M|Bignum::Chunk& Bignum::RawBigit(const int index) {
   37|  1.20M|  DOUBLE_CONVERSION_ASSERT(static_cast<unsigned>(index) < kBigitCapacity);
  ------------------
  |  |   47|  1.20M|    assert(condition)
  ------------------
  |  Branch (37:3): [True: 1.20M, False: 0]
  ------------------
   38|  1.20M|  return bigits_buffer_[index];
   39|  1.20M|}
_ZNK17double_conversion6Bignum8RawBigitEi:
   42|  20.1k|const Bignum::Chunk& Bignum::RawBigit(const int index) const {
   43|  20.1k|  DOUBLE_CONVERSION_ASSERT(static_cast<unsigned>(index) < kBigitCapacity);
  ------------------
  |  |   47|  20.1k|    assert(condition)
  ------------------
  |  Branch (43:3): [True: 20.1k, False: 0]
  ------------------
   44|  20.1k|  return bigits_buffer_[index];
   45|  20.1k|}
_ZN17double_conversion6Bignum12AssignUInt64Em:
   65|  3.34k|void Bignum::AssignUInt64(uint64_t value) {
   66|  3.34k|  Zero();
   67|  10.9k|  for(int i = 0; value > 0; ++i) {
  ------------------
  |  Branch (67:18): [True: 7.63k, False: 3.34k]
  ------------------
   68|  7.63k|    RawBigit(i) = value & kBigitMask;
   69|  7.63k|    value >>= kBigitSize;
   70|  7.63k|    ++used_bigits_;
   71|  7.63k|  }
   72|  3.34k|}
_ZN17double_conversion6Bignum19AssignDecimalStringENS_6VectorIKcEE:
   97|    747|void Bignum::AssignDecimalString(const Vector<const char> value) {
   98|       |  // 2^64 = 18446744073709551616 > 10^19
   99|    747|  static const int kMaxUint64DecimalDigits = 19;
  100|    747|  Zero();
  101|    747|  int length = value.length();
  102|    747|  unsigned pos = 0;
  103|       |  // Let's just say that each digit needs 4 bits.
  104|  4.55k|  while (length >= kMaxUint64DecimalDigits) {
  ------------------
  |  Branch (104:10): [True: 3.80k, False: 747]
  ------------------
  105|  3.80k|    const uint64_t digits = ReadUInt64(value, pos, kMaxUint64DecimalDigits);
  106|  3.80k|    pos += kMaxUint64DecimalDigits;
  107|  3.80k|    length -= kMaxUint64DecimalDigits;
  108|  3.80k|    MultiplyByPowerOfTen(kMaxUint64DecimalDigits);
  109|  3.80k|    AddUInt64(digits);
  110|  3.80k|  }
  111|    747|  const uint64_t digits = ReadUInt64(value, pos, length);
  112|    747|  MultiplyByPowerOfTen(length);
  113|    747|  AddUInt64(digits);
  114|    747|  Clamp();
  115|    747|}
_ZN17double_conversion6Bignum9AddUInt64Em:
  156|  4.55k|void Bignum::AddUInt64(const uint64_t operand) {
  157|  4.55k|  if (operand == 0) {
  ------------------
  |  Branch (157:7): [True: 1.95k, False: 2.60k]
  ------------------
  158|  1.95k|    return;
  159|  1.95k|  }
  160|  2.60k|  Bignum other;
  161|  2.60k|  other.AssignUInt64(operand);
  162|  2.60k|  AddBignum(other);
  163|  2.60k|}
_ZN17double_conversion6Bignum9AddBignumERKS0_:
  166|  2.60k|void Bignum::AddBignum(const Bignum& other) {
  167|  2.60k|  DOUBLE_CONVERSION_ASSERT(IsClamped());
  ------------------
  |  |   47|  2.60k|    assert(condition)
  ------------------
  |  Branch (167:3): [True: 2.60k, False: 0]
  ------------------
  168|  2.60k|  DOUBLE_CONVERSION_ASSERT(other.IsClamped());
  ------------------
  |  |   47|  2.60k|    assert(condition)
  ------------------
  |  Branch (168:3): [True: 2.60k, False: 0]
  ------------------
  169|       |
  170|       |  // If this has a greater exponent than other append zero-bigits to this.
  171|       |  // After this call exponent_ <= other.exponent_.
  172|  2.60k|  Align(other);
  173|       |
  174|       |  // There are two possibilities:
  175|       |  //   aaaaaaaaaaa 0000  (where the 0s represent a's exponent)
  176|       |  //     bbbbb 00000000
  177|       |  //   ----------------
  178|       |  //   ccccccccccc 0000
  179|       |  // or
  180|       |  //    aaaaaaaaaa 0000
  181|       |  //  bbbbbbbbb 0000000
  182|       |  //  -----------------
  183|       |  //  cccccccccccc 0000
  184|       |  // In both cases we might need a carry bigit.
  185|       |
  186|  2.60k|  EnsureCapacity(1 + (std::max)(BigitLength(), other.BigitLength()) - exponent_);
  187|  2.60k|  Chunk carry = 0;
  188|  2.60k|  int bigit_pos = other.exponent_ - exponent_;
  189|  2.60k|  DOUBLE_CONVERSION_ASSERT(bigit_pos >= 0);
  ------------------
  |  |   47|  2.60k|    assert(condition)
  ------------------
  |  Branch (189:3): [True: 2.60k, False: 0]
  ------------------
  190|  2.60k|  for (int i = used_bigits_; i < bigit_pos; ++i) {
  ------------------
  |  Branch (190:30): [True: 0, False: 2.60k]
  ------------------
  191|      0|    RawBigit(i) = 0;
  192|      0|  }
  193|  8.76k|  for (int i = 0; i < other.used_bigits_; ++i) {
  ------------------
  |  Branch (193:19): [True: 6.16k, False: 2.60k]
  ------------------
  194|  6.16k|    const Chunk my = (bigit_pos < used_bigits_) ? RawBigit(bigit_pos) : 0;
  ------------------
  |  Branch (194:22): [True: 4.48k, False: 1.68k]
  ------------------
  195|  6.16k|    const Chunk sum = my + other.RawBigit(i) + carry;
  196|  6.16k|    RawBigit(bigit_pos) = sum & kBigitMask;
  197|  6.16k|    carry = sum >> kBigitSize;
  198|  6.16k|    ++bigit_pos;
  199|  6.16k|  }
  200|  2.96k|  while (carry != 0) {
  ------------------
  |  Branch (200:10): [True: 369, False: 2.60k]
  ------------------
  201|    369|    const Chunk my = (bigit_pos < used_bigits_) ? RawBigit(bigit_pos) : 0;
  ------------------
  |  Branch (201:22): [True: 369, False: 0]
  ------------------
  202|    369|    const Chunk sum = my + carry;
  203|    369|    RawBigit(bigit_pos) = sum & kBigitMask;
  204|    369|    carry = sum >> kBigitSize;
  205|    369|    ++bigit_pos;
  206|    369|  }
  207|  2.60k|  used_bigits_ = static_cast<int16_t>(std::max(bigit_pos, static_cast<int>(used_bigits_)));
  208|       |  DOUBLE_CONVERSION_ASSERT(IsClamped());
  ------------------
  |  |   47|  2.60k|    assert(condition)
  ------------------
  |  Branch (208:3): [True: 2.60k, False: 0]
  ------------------
  209|  2.60k|}
_ZN17double_conversion6Bignum9ShiftLeftEi:
  239|  4.96k|void Bignum::ShiftLeft(const int shift_amount) {
  240|  4.96k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (240:7): [True: 0, False: 4.96k]
  ------------------
  241|      0|    return;
  242|      0|  }
  243|  4.96k|  exponent_ += static_cast<int16_t>(shift_amount / kBigitSize);
  244|  4.96k|  const int local_shift = shift_amount % kBigitSize;
  245|  4.96k|  EnsureCapacity(used_bigits_ + 1);
  246|  4.96k|  BigitsShiftLeft(local_shift);
  247|  4.96k|}
_ZN17double_conversion6Bignum16MultiplyByUInt32Ej:
  250|  7.92k|void Bignum::MultiplyByUInt32(const uint32_t factor) {
  251|  7.92k|  if (factor == 1) {
  ------------------
  |  Branch (251:7): [True: 0, False: 7.92k]
  ------------------
  252|      0|    return;
  253|      0|  }
  254|  7.92k|  if (factor == 0) {
  ------------------
  |  Branch (254:7): [True: 0, False: 7.92k]
  ------------------
  255|      0|    Zero();
  256|      0|    return;
  257|      0|  }
  258|  7.92k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (258:7): [True: 0, False: 7.92k]
  ------------------
  259|      0|    return;
  260|      0|  }
  261|       |  // The product of a bigit with the factor is of size kBigitSize + 32.
  262|       |  // Assert that this number + 1 (for the carry) fits into double chunk.
  263|  7.92k|  DOUBLE_CONVERSION_ASSERT(kDoubleChunkSize >= kBigitSize + 32 + 1);
  ------------------
  |  |   47|  7.92k|    assert(condition)
  ------------------
  |  Branch (263:3): [True: 7.92k, Folded]
  ------------------
  264|  7.92k|  DoubleChunk carry = 0;
  265|   249k|  for (int i = 0; i < used_bigits_; ++i) {
  ------------------
  |  Branch (265:19): [True: 241k, False: 7.92k]
  ------------------
  266|   241k|    const DoubleChunk product = static_cast<DoubleChunk>(factor) * RawBigit(i) + carry;
  267|   241k|    RawBigit(i) = static_cast<Chunk>(product & kBigitMask);
  268|   241k|    carry = (product >> kBigitSize);
  269|   241k|  }
  270|  14.1k|  while (carry != 0) {
  ------------------
  |  Branch (270:10): [True: 6.19k, False: 7.92k]
  ------------------
  271|  6.19k|    EnsureCapacity(used_bigits_ + 1);
  272|  6.19k|    RawBigit(used_bigits_) = carry & kBigitMask;
  273|  6.19k|    used_bigits_++;
  274|  6.19k|    carry >>= kBigitSize;
  275|  6.19k|  }
  276|  7.92k|}
_ZN17double_conversion6Bignum16MultiplyByUInt64Em:
  279|  4.46k|void Bignum::MultiplyByUInt64(const uint64_t factor) {
  280|  4.46k|  if (factor == 1) {
  ------------------
  |  Branch (280:7): [True: 0, False: 4.46k]
  ------------------
  281|      0|    return;
  282|      0|  }
  283|  4.46k|  if (factor == 0) {
  ------------------
  |  Branch (283:7): [True: 0, False: 4.46k]
  ------------------
  284|      0|    Zero();
  285|      0|    return;
  286|      0|  }
  287|  4.46k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (287:7): [True: 0, False: 4.46k]
  ------------------
  288|      0|    return;
  289|      0|  }
  290|  4.46k|  DOUBLE_CONVERSION_ASSERT(kBigitSize < 32);
  ------------------
  |  |   47|  4.46k|    assert(condition)
  ------------------
  |  Branch (290:3): [True: 4.46k, Folded]
  ------------------
  291|  4.46k|  uint64_t carry = 0;
  292|  4.46k|  const uint64_t low = factor & 0xFFFFFFFF;
  293|  4.46k|  const uint64_t high = factor >> 32;
  294|  93.0k|  for (int i = 0; i < used_bigits_; ++i) {
  ------------------
  |  Branch (294:19): [True: 88.5k, False: 4.46k]
  ------------------
  295|  88.5k|    const uint64_t product_low = low * RawBigit(i);
  296|  88.5k|    const uint64_t product_high = high * RawBigit(i);
  297|  88.5k|    const uint64_t tmp = (carry & kBigitMask) + product_low;
  298|  88.5k|    RawBigit(i) = tmp & kBigitMask;
  299|  88.5k|    carry = (carry >> kBigitSize) + (tmp >> kBigitSize) +
  300|  88.5k|        (product_high << (32 - kBigitSize));
  301|  88.5k|  }
  302|  14.5k|  while (carry != 0) {
  ------------------
  |  Branch (302:10): [True: 10.0k, False: 4.46k]
  ------------------
  303|  10.0k|    EnsureCapacity(used_bigits_ + 1);
  304|  10.0k|    RawBigit(used_bigits_) = carry & kBigitMask;
  305|  10.0k|    used_bigits_++;
  306|  10.0k|    carry >>= kBigitSize;
  307|  10.0k|  }
  308|  4.46k|}
_ZN17double_conversion6Bignum20MultiplyByPowerOfTenEi:
  311|  5.29k|void Bignum::MultiplyByPowerOfTen(const int exponent) {
  312|  5.29k|  static const uint64_t kFive27 = DOUBLE_CONVERSION_UINT64_2PART_C(0x6765c793, fa10079d);
  ------------------
  |  |  195|  5.29k|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  313|  5.29k|  static const uint16_t kFive1 = 5;
  314|  5.29k|  static const uint16_t kFive2 = kFive1 * 5;
  315|  5.29k|  static const uint16_t kFive3 = kFive2 * 5;
  316|  5.29k|  static const uint16_t kFive4 = kFive3 * 5;
  317|  5.29k|  static const uint16_t kFive5 = kFive4 * 5;
  318|  5.29k|  static const uint16_t kFive6 = kFive5 * 5;
  319|  5.29k|  static const uint32_t kFive7 = kFive6 * 5;
  320|  5.29k|  static const uint32_t kFive8 = kFive7 * 5;
  321|  5.29k|  static const uint32_t kFive9 = kFive8 * 5;
  322|  5.29k|  static const uint32_t kFive10 = kFive9 * 5;
  323|  5.29k|  static const uint32_t kFive11 = kFive10 * 5;
  324|  5.29k|  static const uint32_t kFive12 = kFive11 * 5;
  325|  5.29k|  static const uint32_t kFive13 = kFive12 * 5;
  326|  5.29k|  static const uint32_t kFive1_to_12[] =
  327|  5.29k|      { kFive1, kFive2, kFive3, kFive4, kFive5, kFive6,
  328|  5.29k|        kFive7, kFive8, kFive9, kFive10, kFive11, kFive12 };
  329|       |
  330|  5.29k|  DOUBLE_CONVERSION_ASSERT(exponent >= 0);
  ------------------
  |  |   47|  5.29k|    assert(condition)
  ------------------
  |  Branch (330:3): [True: 5.29k, False: 0]
  ------------------
  331|       |
  332|  5.29k|  if (exponent == 0) {
  ------------------
  |  Branch (332:7): [True: 335, False: 4.96k]
  ------------------
  333|    335|    return;
  334|    335|  }
  335|  4.96k|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (335:7): [True: 747, False: 4.21k]
  ------------------
  336|    747|    return;
  337|    747|  }
  338|       |  // We shift by exponent at the end just before returning.
  339|  4.21k|  int remaining_exponent = exponent;
  340|  8.67k|  while (remaining_exponent >= 27) {
  ------------------
  |  Branch (340:10): [True: 4.46k, False: 4.21k]
  ------------------
  341|  4.46k|    MultiplyByUInt64(kFive27);
  342|  4.46k|    remaining_exponent -= 27;
  343|  4.46k|  }
  344|  8.05k|  while (remaining_exponent >= 13) {
  ------------------
  |  Branch (344:10): [True: 3.84k, False: 4.21k]
  ------------------
  345|  3.84k|    MultiplyByUInt32(kFive13);
  346|  3.84k|    remaining_exponent -= 13;
  347|  3.84k|  }
  348|  4.21k|  if (remaining_exponent > 0) {
  ------------------
  |  Branch (348:7): [True: 4.08k, False: 137]
  ------------------
  349|  4.08k|    MultiplyByUInt32(kFive1_to_12[remaining_exponent - 1]);
  350|  4.08k|  }
  351|  4.21k|  ShiftLeft(exponent);
  352|  4.21k|}
_ZNK17double_conversion6Bignum11BigitOrZeroEi:
  633|  5.71k|Bignum::Chunk Bignum::BigitOrZero(const int index) const {
  634|  5.71k|  if (index >= BigitLength()) {
  ------------------
  |  Branch (634:7): [True: 0, False: 5.71k]
  ------------------
  635|      0|    return 0;
  636|      0|  }
  637|  5.71k|  if (index < exponent_) {
  ------------------
  |  Branch (637:7): [True: 306, False: 5.40k]
  ------------------
  638|    306|    return 0;
  639|    306|  }
  640|  5.40k|  return RawBigit(index - exponent_);
  641|  5.71k|}
_ZN17double_conversion6Bignum7CompareERKS0_S2_:
  644|    747|int Bignum::Compare(const Bignum& a, const Bignum& b) {
  645|    747|  DOUBLE_CONVERSION_ASSERT(a.IsClamped());
  ------------------
  |  |   47|    747|    assert(condition)
  ------------------
  |  Branch (645:3): [True: 747, False: 0]
  ------------------
  646|    747|  DOUBLE_CONVERSION_ASSERT(b.IsClamped());
  ------------------
  |  |   47|    747|    assert(condition)
  ------------------
  |  Branch (646:3): [True: 747, False: 0]
  ------------------
  647|    747|  const int bigit_length_a = a.BigitLength();
  648|    747|  const int bigit_length_b = b.BigitLength();
  649|    747|  if (bigit_length_a < bigit_length_b) {
  ------------------
  |  Branch (649:7): [True: 6, False: 741]
  ------------------
  650|      6|    return -1;
  651|      6|  }
  652|    741|  if (bigit_length_a > bigit_length_b) {
  ------------------
  |  Branch (652:7): [True: 0, False: 741]
  ------------------
  653|      0|    return +1;
  654|      0|  }
  655|  2.95k|  for (int i = bigit_length_a - 1; i >= (std::min)(a.exponent_, b.exponent_); --i) {
  ------------------
  |  Branch (655:36): [True: 2.85k, False: 97]
  ------------------
  656|  2.85k|    const Chunk bigit_a = a.BigitOrZero(i);
  657|  2.85k|    const Chunk bigit_b = b.BigitOrZero(i);
  658|  2.85k|    if (bigit_a < bigit_b) {
  ------------------
  |  Branch (658:9): [True: 210, False: 2.64k]
  ------------------
  659|    210|      return -1;
  660|    210|    }
  661|  2.64k|    if (bigit_a > bigit_b) {
  ------------------
  |  Branch (661:9): [True: 434, False: 2.21k]
  ------------------
  662|    434|      return +1;
  663|    434|    }
  664|       |    // Otherwise they are equal up to this digit. Try the next digit.
  665|  2.64k|  }
  666|     97|  return 0;
  667|    741|}
_ZN17double_conversion6Bignum5ClampEv:
  715|    747|void Bignum::Clamp() {
  716|    747|  while (used_bigits_ > 0 && RawBigit(used_bigits_ - 1) == 0) {
  ------------------
  |  Branch (716:10): [True: 747, False: 0]
  |  Branch (716:30): [True: 0, False: 747]
  ------------------
  717|      0|    used_bigits_--;
  718|      0|  }
  719|    747|  if (used_bigits_ == 0) {
  ------------------
  |  Branch (719:7): [True: 0, False: 747]
  ------------------
  720|       |    // Zero.
  721|      0|    exponent_ = 0;
  722|      0|  }
  723|    747|}
_ZN17double_conversion6Bignum5AlignERKS0_:
  726|  2.60k|void Bignum::Align(const Bignum& other) {
  727|  2.60k|  if (exponent_ > other.exponent_) {
  ------------------
  |  Branch (727:7): [True: 0, False: 2.60k]
  ------------------
  728|       |    // If "X" represents a "hidden" bigit (by the exponent) then we are in the
  729|       |    // following case (a == this, b == other):
  730|       |    // a:  aaaaaaXXXX   or a:   aaaaaXXX
  731|       |    // b:     bbbbbbX      b: bbbbbbbbXX
  732|       |    // We replace some of the hidden digits (X) of a with 0 digits.
  733|       |    // a:  aaaaaa000X   or a:   aaaaa0XX
  734|      0|    const int zero_bigits = exponent_ - other.exponent_;
  735|      0|    EnsureCapacity(used_bigits_ + zero_bigits);
  736|      0|    for (int i = used_bigits_ - 1; i >= 0; --i) {
  ------------------
  |  Branch (736:36): [True: 0, False: 0]
  ------------------
  737|      0|      RawBigit(i + zero_bigits) = RawBigit(i);
  738|      0|    }
  739|      0|    for (int i = 0; i < zero_bigits; ++i) {
  ------------------
  |  Branch (739:21): [True: 0, False: 0]
  ------------------
  740|      0|      RawBigit(i) = 0;
  741|      0|    }
  742|      0|    used_bigits_ += static_cast<int16_t>(zero_bigits);
  743|      0|    exponent_ -= static_cast<int16_t>(zero_bigits);
  744|       |
  745|      0|    DOUBLE_CONVERSION_ASSERT(used_bigits_ >= 0);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (745:5): [True: 0, False: 0]
  ------------------
  746|      0|    DOUBLE_CONVERSION_ASSERT(exponent_ >= 0);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (746:5): [True: 0, False: 0]
  ------------------
  747|      0|  }
  748|  2.60k|}
_ZN17double_conversion6Bignum15BigitsShiftLeftEi:
  751|  4.96k|void Bignum::BigitsShiftLeft(const int shift_amount) {
  752|  4.96k|  DOUBLE_CONVERSION_ASSERT(shift_amount < kBigitSize);
  ------------------
  |  |   47|  4.96k|    assert(condition)
  ------------------
  |  Branch (752:3): [True: 4.96k, False: 0]
  ------------------
  753|  4.96k|  DOUBLE_CONVERSION_ASSERT(shift_amount >= 0);
  ------------------
  |  |   47|  4.96k|    assert(condition)
  ------------------
  |  Branch (753:3): [True: 4.96k, False: 0]
  ------------------
  754|  4.96k|  Chunk carry = 0;
  755|   144k|  for (int i = 0; i < used_bigits_; ++i) {
  ------------------
  |  Branch (755:19): [True: 139k, False: 4.96k]
  ------------------
  756|   139k|    const Chunk new_carry = RawBigit(i) >> (kBigitSize - shift_amount);
  757|   139k|    RawBigit(i) = ((RawBigit(i) << shift_amount) + carry) & kBigitMask;
  758|   139k|    carry = new_carry;
  759|   139k|  }
  760|  4.96k|  if (carry != 0) {
  ------------------
  |  Branch (760:7): [True: 3.05k, False: 1.91k]
  ------------------
  761|  3.05k|    RawBigit(used_bigits_) = carry;
  762|  3.05k|    used_bigits_++;
  763|  3.05k|  }
  764|  4.96k|}
bignum.cc:_ZN17double_conversionL10ReadUInt64ENS_6VectorIKcEEii:
   86|  4.55k|                           const int digits_to_read) {
   87|  4.55k|  uint64_t result = 0;
   88|  82.7k|  for (int i = from; i < from + digits_to_read; ++i) {
  ------------------
  |  Branch (88:22): [True: 78.2k, False: 4.55k]
  ------------------
   89|  78.2k|    const int digit = buffer[i] - '0';
   90|  78.2k|    DOUBLE_CONVERSION_ASSERT(0 <= digit && digit <= 9);
  ------------------
  |  |   47|  78.2k|    assert(condition)
  ------------------
  |  Branch (90:5): [True: 78.2k, False: 0]
  |  Branch (90:5): [True: 78.2k, False: 0]
  |  Branch (90:5): [True: 78.2k, False: 0]
  ------------------
   91|  78.2k|    result = result * 10 + digit;
   92|  78.2k|  }
   93|  4.55k|  return result;
   94|  4.55k|}

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

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

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

_ZN17double_conversion6Double8InfinityEv:
  236|    866|  static double Infinity() {
  237|    866|    return Double(kInfinity).value();
  238|    866|  }
_ZN17double_conversion6DoubleC2Em:
   56|  1.36k|  explicit Double(uint64_t d64) : d64_(d64) {}
_ZNK17double_conversion6Double5valueEv:
  220|  3.22k|  double value() const { return uint64_to_double(d64_); }
string-to-double.cc:_ZN17double_conversionL16uint64_to_doubleEm:
   37|    525|static double uint64_to_double(uint64_t d64) { return BitCast<double>(d64); }
_ZN17double_conversion6Double3NaNEv:
  240|      2|  static double NaN() {
  241|      2|    return Double(kNaN).value();
  242|      2|  }
_ZN17double_conversion6DoubleC2ENS_5DiyFpE:
   58|  1.85k|    : d64_(DiyFpToUint64(diy_fp)) {}
_ZN17double_conversion6Double13DiyFpToUint64ENS_5DiyFpE:
  256|  1.85k|  static uint64_t DiyFpToUint64(DiyFp diy_fp) {
  257|  1.85k|    uint64_t significand = diy_fp.f();
  258|  1.85k|    int exponent = diy_fp.e();
  259|  1.87k|    while (significand > kHiddenBit + kSignificandMask) {
  ------------------
  |  Branch (259:12): [True: 19, False: 1.85k]
  ------------------
  260|     19|      significand >>= 1;
  261|     19|      exponent++;
  262|     19|    }
  263|  1.85k|    if (exponent >= kMaxExponent) {
  ------------------
  |  Branch (263:9): [True: 59, False: 1.79k]
  ------------------
  264|     59|      return kInfinity;
  265|     59|    }
  266|  1.79k|    if (exponent < kDenormalExponent) {
  ------------------
  |  Branch (266:9): [True: 70, False: 1.72k]
  ------------------
  267|     70|      return 0;
  268|     70|    }
  269|  7.29k|    while (exponent > kDenormalExponent && (significand & kHiddenBit) == 0) {
  ------------------
  |  Branch (269:12): [True: 7.15k, False: 144]
  |  Branch (269:44): [True: 5.56k, False: 1.58k]
  ------------------
  270|  5.56k|      significand <<= 1;
  271|  5.56k|      exponent--;
  272|  5.56k|    }
  273|  1.72k|    uint64_t biased_exponent;
  274|  1.72k|    if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) {
  ------------------
  |  Branch (274:9): [True: 144, False: 1.58k]
  |  Branch (274:42): [True: 139, False: 5]
  ------------------
  275|    139|      biased_exponent = 0;
  276|  1.59k|    } else {
  277|  1.59k|      biased_exponent = static_cast<uint64_t>(exponent + kExponentBias);
  278|  1.59k|    }
  279|  1.72k|    return (significand & kSignificandMask) |
  280|  1.72k|        (biased_exponent << kPhysicalSignificandSize);
  281|  1.79k|  }
_ZN17double_conversion6DoubleC2Ed:
   55|  1.34k|  explicit Double(double d) : d64_(double_to_uint64(d)) {}
_ZNK17double_conversion6Double8AsUint64Ev:
   86|  4.85k|  uint64_t AsUint64() const {
   87|  4.85k|    return d64_;
   88|  4.85k|  }
_ZNK17double_conversion6Double10NextDoubleEv:
   91|    498|  double NextDouble() const {
   92|    498|    if (d64_ == kInfinity) return Double(kInfinity).value();
  ------------------
  |  Branch (92:9): [True: 0, False: 498]
  ------------------
   93|    498|    if (Sign() < 0 && Significand() == 0) {
  ------------------
  |  Branch (93:9): [True: 0, False: 498]
  |  Branch (93:23): [True: 0, False: 0]
  ------------------
   94|       |      // -0.0
   95|      0|      return 0.0;
   96|      0|    }
   97|    498|    if (Sign() < 0) {
  ------------------
  |  Branch (97:9): [True: 0, False: 498]
  ------------------
   98|      0|      return Double(d64_ - 1).value();
   99|    498|    } else {
  100|    498|      return Double(d64_ + 1).value();
  101|    498|    }
  102|    498|  }
_ZNK17double_conversion6Double8ExponentEv:
  114|    747|  int Exponent() const {
  115|    747|    if (IsDenormal()) return kDenormalExponent;
  ------------------
  |  Branch (115:9): [True: 68, False: 679]
  ------------------
  116|       |
  117|    679|    uint64_t d64 = AsUint64();
  118|    679|    int biased_e =
  119|    679|        static_cast<int>((d64 & kExponentMask) >> kPhysicalSignificandSize);
  120|    679|    return biased_e - kExponentBias;
  121|    747|  }
_ZNK17double_conversion6Double11SignificandEv:
  123|    844|  uint64_t Significand() const {
  124|    844|    uint64_t d64 = AsUint64();
  125|    844|    uint64_t significand = d64 & kSignificandMask;
  126|    844|    if (!IsDenormal()) {
  ------------------
  |  Branch (126:9): [True: 776, False: 68]
  ------------------
  127|    776|      return significand + kHiddenBit;
  128|    776|    } else {
  129|     68|      return significand;
  130|     68|    }
  131|    844|  }
_ZNK17double_conversion6Double10IsDenormalEv:
  134|  1.59k|  bool IsDenormal() const {
  135|  1.59k|    uint64_t d64 = AsUint64();
  136|  1.59k|    return (d64 & kExponentMask) == 0;
  137|  1.59k|  }
_ZNK17double_conversion6Double4SignEv:
  175|  1.74k|  int Sign() const {
  176|  1.74k|    uint64_t d64 = AsUint64();
  177|  1.74k|    return (d64 & kSignMask) == 0? 1: -1;
  ------------------
  |  Branch (177:12): [True: 1.74k, False: 0]
  ------------------
  178|  1.74k|  }
_ZNK17double_conversion6Double13UpperBoundaryEv:
  182|    747|  DiyFp UpperBoundary() const {
  183|    747|    DOUBLE_CONVERSION_ASSERT(Sign() > 0);
  ------------------
  |  |   47|    747|    assert(condition)
  ------------------
  |  Branch (183:5): [True: 747, False: 0]
  ------------------
  184|    747|    return DiyFp(Significand() * 2 + 1, Exponent() - 1);
  185|    747|  }
_ZN17double_conversion6Double34SignificandSizeForOrderOfMagnitudeEi:
  228|  1.33k|  static int SignificandSizeForOrderOfMagnitude(int order) {
  229|  1.33k|    if (order >= (kDenormalExponent + kSignificandSize)) {
  ------------------
  |  Branch (229:9): [True: 1.17k, False: 163]
  ------------------
  230|  1.17k|      return kSignificandSize;
  231|  1.17k|    }
  232|    163|    if (order <= kDenormalExponent) return 0;
  ------------------
  |  Branch (232:9): [True: 40, False: 123]
  ------------------
  233|    123|    return order - kDenormalExponent;
  234|    163|  }
strtod.cc:_ZN17double_conversionL16uint64_to_doubleEm:
   37|  2.69k|static double uint64_to_double(uint64_t d64) { return BitCast<double>(d64); }
strtod.cc:_ZN17double_conversionL16double_to_uint64Ed:
   36|  1.34k|static uint64_t double_to_uint64(double d) { return BitCast<uint64_t>(d); }

_ZNK17double_conversion23StringToDoubleConverter14StringToDoubleEPKciPi:
  752|  2.98k|    int* processed_characters_count) const {
  753|  2.98k|  return StringToIeee(buffer, length, true, processed_characters_count);
  754|  2.98k|}
_ZNK17double_conversion23StringToDoubleConverter12StringToIeeeIPKcEEdT_ibPi:
  423|  2.98k|    int* processed_characters_count) const {
  424|  2.98k|  Iterator current = input;
  425|  2.98k|  Iterator end = input + length;
  426|       |
  427|  2.98k|  *processed_characters_count = 0;
  428|       |
  429|  2.98k|  const bool allow_trailing_junk = (flags_ & ALLOW_TRAILING_JUNK) != 0;
  430|  2.98k|  const bool allow_leading_spaces = (flags_ & ALLOW_LEADING_SPACES) != 0;
  431|  2.98k|  const bool allow_trailing_spaces = (flags_ & ALLOW_TRAILING_SPACES) != 0;
  432|  2.98k|  const bool allow_spaces_after_sign = (flags_ & ALLOW_SPACES_AFTER_SIGN) != 0;
  433|  2.98k|  const bool allow_case_insensitivity = (flags_ & ALLOW_CASE_INSENSITIVITY) != 0;
  434|       |
  435|       |  // To make sure that iterator dereferencing is valid the following
  436|       |  // convention is used:
  437|       |  // 1. Each '++current' statement is followed by check for equality to 'end'.
  438|       |  // 2. If AdvanceToNonspace returned false then current == end.
  439|       |  // 3. If 'current' becomes equal to 'end' the function returns or goes to
  440|       |  // 'parsing_done'.
  441|       |  // 4. 'current' is not dereferenced after the 'parsing_done' label.
  442|       |  // 5. Code before 'parsing_done' may rely on 'current != end'.
  443|  2.98k|  if (current == end) return empty_string_value_;
  ------------------
  |  Branch (443:7): [True: 0, False: 2.98k]
  ------------------
  444|       |
  445|  2.98k|  if (allow_leading_spaces || allow_trailing_spaces) {
  ------------------
  |  Branch (445:7): [True: 2.98k, False: 0]
  |  Branch (445:31): [True: 0, False: 0]
  ------------------
  446|  2.98k|    if (!AdvanceToNonspace(&current, end)) {
  ------------------
  |  Branch (446:9): [True: 11, False: 2.97k]
  ------------------
  447|     11|      *processed_characters_count = static_cast<int>(current - input);
  448|     11|      return empty_string_value_;
  449|     11|    }
  450|  2.97k|    if (!allow_leading_spaces && (input != current)) {
  ------------------
  |  Branch (450:9): [True: 0, False: 2.97k]
  |  Branch (450:34): [True: 0, False: 0]
  ------------------
  451|       |      // No leading spaces allowed, but AdvanceToNonspace moved forward.
  452|      0|      return junk_string_value_;
  453|      0|    }
  454|  2.97k|  }
  455|       |
  456|       |  // Exponent will be adjusted if insignificant digits of the integer part
  457|       |  // or insignificant leading zeros of the fractional part are dropped.
  458|  2.97k|  int exponent = 0;
  459|  2.97k|  int significant_digits = 0;
  460|  2.97k|  int insignificant_digits = 0;
  461|  2.97k|  bool nonzero_digit_dropped = false;
  462|       |
  463|  2.97k|  bool sign = false;
  464|       |
  465|  2.97k|  if (*current == '+' || *current == '-') {
  ------------------
  |  Branch (465:7): [True: 14, False: 2.95k]
  |  Branch (465:26): [True: 127, False: 2.83k]
  ------------------
  466|    141|    sign = (*current == '-');
  467|    141|    ++current;
  468|    141|    Iterator next_non_space = current;
  469|       |    // Skip following spaces (if allowed).
  470|    141|    if (!AdvanceToNonspace(&next_non_space, end)) return junk_string_value_;
  ------------------
  |  Branch (470:9): [True: 17, False: 124]
  ------------------
  471|    124|    if (!allow_spaces_after_sign && (current != next_non_space)) {
  ------------------
  |  Branch (471:9): [True: 0, False: 124]
  |  Branch (471:37): [True: 0, False: 0]
  ------------------
  472|      0|      return junk_string_value_;
  473|      0|    }
  474|    124|    current = next_non_space;
  475|    124|  }
  476|       |
  477|  2.95k|  if (infinity_symbol_ != DOUBLE_CONVERSION_NULLPTR) {
  ------------------
  |  |   39|  2.95k|#define DOUBLE_CONVERSION_NULLPTR nullptr
  ------------------
  |  Branch (477:7): [True: 2.95k, False: 0]
  ------------------
  478|  2.95k|    if (ConsumeFirstCharacter(*current, infinity_symbol_, allow_case_insensitivity)) {
  ------------------
  |  Branch (478:9): [True: 4, False: 2.95k]
  ------------------
  479|      4|      if (!ConsumeSubString(&current, end, infinity_symbol_, allow_case_insensitivity)) {
  ------------------
  |  Branch (479:11): [True: 2, False: 2]
  ------------------
  480|      2|        return junk_string_value_;
  481|      2|      }
  482|       |
  483|      2|      if (!(allow_trailing_spaces || allow_trailing_junk) && (current != end)) {
  ------------------
  |  Branch (483:13): [True: 2, False: 0]
  |  Branch (483:38): [True: 0, False: 0]
  |  Branch (483:62): [True: 0, False: 0]
  ------------------
  484|      0|        return junk_string_value_;
  485|      0|      }
  486|      2|      if (!allow_trailing_junk && AdvanceToNonspace(&current, end)) {
  ------------------
  |  Branch (486:11): [True: 0, False: 2]
  |  Branch (486:35): [True: 0, False: 0]
  ------------------
  487|      0|        return junk_string_value_;
  488|      0|      }
  489|       |
  490|      2|      *processed_characters_count = static_cast<int>(current - input);
  491|      2|      return sign ? -Double::Infinity() : Double::Infinity();
  ------------------
  |  Branch (491:14): [True: 1, False: 1]
  ------------------
  492|      2|    }
  493|  2.95k|  }
  494|       |
  495|  2.95k|  if (nan_symbol_ != DOUBLE_CONVERSION_NULLPTR) {
  ------------------
  |  |   39|  2.95k|#define DOUBLE_CONVERSION_NULLPTR nullptr
  ------------------
  |  Branch (495:7): [True: 2.95k, False: 0]
  ------------------
  496|  2.95k|    if (ConsumeFirstCharacter(*current, nan_symbol_, allow_case_insensitivity)) {
  ------------------
  |  Branch (496:9): [True: 5, False: 2.94k]
  ------------------
  497|      5|      if (!ConsumeSubString(&current, end, nan_symbol_, allow_case_insensitivity)) {
  ------------------
  |  Branch (497:11): [True: 3, False: 2]
  ------------------
  498|      3|        return junk_string_value_;
  499|      3|      }
  500|       |
  501|      2|      if (!(allow_trailing_spaces || allow_trailing_junk) && (current != end)) {
  ------------------
  |  Branch (501:13): [True: 2, False: 0]
  |  Branch (501:38): [True: 0, False: 0]
  |  Branch (501:62): [True: 0, False: 0]
  ------------------
  502|      0|        return junk_string_value_;
  503|      0|      }
  504|      2|      if (!allow_trailing_junk && AdvanceToNonspace(&current, end)) {
  ------------------
  |  Branch (504:11): [True: 0, False: 2]
  |  Branch (504:35): [True: 0, False: 0]
  ------------------
  505|      0|        return junk_string_value_;
  506|      0|      }
  507|       |
  508|      2|      *processed_characters_count = static_cast<int>(current - input);
  509|      2|      return sign ? -Double::NaN() : Double::NaN();
  ------------------
  |  Branch (509:14): [True: 1, False: 1]
  ------------------
  510|      2|    }
  511|  2.95k|  }
  512|       |
  513|  2.94k|  bool leading_zero = false;
  514|  2.94k|  if (*current == '0') {
  ------------------
  |  Branch (514:7): [True: 1.05k, False: 1.89k]
  ------------------
  515|  1.05k|    if (Advance(&current, separator_, 10, end)) {
  ------------------
  |  Branch (515:9): [True: 4, False: 1.04k]
  ------------------
  516|      4|      *processed_characters_count = static_cast<int>(current - input);
  517|      4|      return SignedZero(sign);
  518|      4|    }
  519|       |
  520|  1.04k|    leading_zero = true;
  521|       |
  522|       |    // It could be hexadecimal value.
  523|  1.04k|    if (((flags_ & ALLOW_HEX) || (flags_ & ALLOW_HEX_FLOATS)) &&
  ------------------
  |  Branch (523:10): [True: 1.04k, False: 0]
  |  Branch (523:34): [True: 0, False: 0]
  ------------------
  524|  1.04k|        (*current == 'x' || *current == 'X')) {
  ------------------
  |  Branch (524:10): [True: 303, False: 746]
  |  Branch (524:29): [True: 419, False: 327]
  ------------------
  525|    722|      ++current;
  526|       |
  527|    722|      if (current == end) return junk_string_value_;  // "0x"
  ------------------
  |  Branch (527:11): [True: 2, False: 720]
  ------------------
  528|       |
  529|    720|      bool parse_as_hex_float = (flags_ & ALLOW_HEX_FLOATS) &&
  ------------------
  |  Branch (529:33): [True: 720, False: 0]
  ------------------
  530|    720|                IsHexFloatString(current, end, separator_, allow_trailing_junk);
  ------------------
  |  Branch (530:17): [True: 293, False: 427]
  ------------------
  531|       |
  532|    720|      if (!parse_as_hex_float && !isDigit(*current, 16)) {
  ------------------
  |  Branch (532:11): [True: 427, False: 293]
  |  Branch (532:34): [True: 90, False: 337]
  ------------------
  533|     90|        return junk_string_value_;
  534|     90|      }
  535|       |
  536|    630|      bool result_is_junk;
  537|    630|      double result = RadixStringToIeee<4>(&current,
  538|    630|                                           end,
  539|    630|                                           sign,
  540|    630|                                           separator_,
  541|    630|                                           parse_as_hex_float,
  542|    630|                                           allow_trailing_junk,
  543|    630|                                           junk_string_value_,
  544|    630|                                           read_as_double,
  545|    630|                                           &result_is_junk);
  546|    630|      if (!result_is_junk) {
  ------------------
  |  Branch (546:11): [True: 630, False: 0]
  ------------------
  547|    630|        if (allow_trailing_spaces) AdvanceToNonspace(&current, end);
  ------------------
  |  Branch (547:13): [True: 630, False: 0]
  ------------------
  548|    630|        *processed_characters_count = static_cast<int>(current - input);
  549|    630|      }
  550|    630|      return result;
  551|    720|    }
  552|       |
  553|       |    // Ignore leading zeros in the integer part.
  554|  1.45k|    while (*current == '0') {
  ------------------
  |  Branch (554:12): [True: 1.13k, False: 319]
  ------------------
  555|  1.13k|      if (Advance(&current, separator_, 10, end)) {
  ------------------
  |  Branch (555:11): [True: 8, False: 1.12k]
  ------------------
  556|      8|        *processed_characters_count = static_cast<int>(current - input);
  557|      8|        return SignedZero(sign);
  558|      8|      }
  559|  1.13k|    }
  560|    327|  }
  561|       |
  562|  2.21k|  bool octal = leading_zero && (flags_ & ALLOW_OCTALS) != 0;
  ------------------
  |  Branch (562:16): [True: 319, False: 1.89k]
  |  Branch (562:32): [True: 319, False: 0]
  ------------------
  563|       |
  564|       |  // The longest form of simplified number is: "-<significant digits>.1eXXX\0".
  565|  2.21k|  const int kBufferSize = kMaxSignificantDigits + 10;
  566|  2.21k|  DOUBLE_CONVERSION_STACK_UNINITIALIZED char
  ------------------
  |  |  104|  2.21k|#define DOUBLE_CONVERSION_STACK_UNINITIALIZED __attribute__((uninitialized))
  ------------------
  567|  2.21k|      buffer[kBufferSize];  // NOLINT: size is known at compile time.
  568|  2.21k|  int buffer_pos = 0;
  569|       |
  570|       |  // Copy significant digits of the integer part (if any) to the buffer.
  571|  96.6k|  while (*current >= '0' && *current <= '9') {
  ------------------
  |  Branch (571:10): [True: 96.1k, False: 479]
  |  Branch (571:29): [True: 95.2k, False: 942]
  ------------------
  572|  95.2k|    if (significant_digits < kMaxSignificantDigits) {
  ------------------
  |  Branch (572:9): [True: 73.4k, False: 21.8k]
  ------------------
  573|  73.4k|      DOUBLE_CONVERSION_ASSERT(buffer_pos < kBufferSize);
  ------------------
  |  |   47|  73.4k|    assert(condition)
  ------------------
  |  Branch (573:7): [True: 73.4k, False: 0]
  ------------------
  574|  73.4k|      buffer[buffer_pos++] = static_cast<char>(*current);
  575|  73.4k|      significant_digits++;
  576|       |      // Will later check if it's an octal in the buffer.
  577|  73.4k|    } else {
  578|  21.8k|      insignificant_digits++;  // Move the digit into the exponential part.
  579|  21.8k|      nonzero_digit_dropped = nonzero_digit_dropped || *current != '0';
  ------------------
  |  Branch (579:31): [True: 194, False: 21.6k]
  |  Branch (579:56): [True: 12, False: 21.6k]
  ------------------
  580|  21.8k|    }
  581|  95.2k|    octal = octal && *current < '8';
  ------------------
  |  Branch (581:13): [True: 13.6k, False: 81.5k]
  |  Branch (581:22): [True: 13.6k, False: 4]
  ------------------
  582|  95.2k|    if (Advance(&current, separator_, 10, end)) goto parsing_done;
  ------------------
  |  Branch (582:9): [True: 790, False: 94.4k]
  ------------------
  583|  95.2k|  }
  584|       |
  585|  1.42k|  if (significant_digits == 0) {
  ------------------
  |  Branch (585:7): [True: 262, False: 1.15k]
  ------------------
  586|    262|    octal = false;
  587|    262|  }
  588|       |
  589|  1.42k|  if (*current == '.') {
  ------------------
  |  Branch (589:7): [True: 383, False: 1.03k]
  ------------------
  590|    383|    if (octal && !allow_trailing_junk) return junk_string_value_;
  ------------------
  |  Branch (590:9): [True: 1, False: 382]
  |  Branch (590:18): [True: 0, False: 1]
  ------------------
  591|    383|    if (octal) goto parsing_done;
  ------------------
  |  Branch (591:9): [True: 1, False: 382]
  ------------------
  592|       |
  593|    382|    if (Advance(&current, separator_, 10, end)) {
  ------------------
  |  Branch (593:9): [True: 3, False: 379]
  ------------------
  594|      3|      if (significant_digits == 0 && !leading_zero) {
  ------------------
  |  Branch (594:11): [True: 2, False: 1]
  |  Branch (594:38): [True: 1, False: 1]
  ------------------
  595|      1|        return junk_string_value_;
  596|      2|      } else {
  597|      2|        goto parsing_done;
  598|      2|      }
  599|      3|    }
  600|       |
  601|    379|    if (significant_digits == 0) {
  ------------------
  |  Branch (601:9): [True: 144, False: 235]
  ------------------
  602|       |      // octal = false;
  603|       |      // Integer part consists of 0 or is absent. Significant digits start after
  604|       |      // leading zeros (if any).
  605|  2.10M|      while (*current == '0') {
  ------------------
  |  Branch (605:14): [True: 2.10M, False: 131]
  ------------------
  606|  2.10M|        if (Advance(&current, separator_, 10, end)) {
  ------------------
  |  Branch (606:13): [True: 13, False: 2.10M]
  ------------------
  607|     13|          *processed_characters_count = static_cast<int>(current - input);
  608|     13|          return SignedZero(sign);
  609|     13|        }
  610|  2.10M|        exponent--;  // Move this 0 into the exponent.
  611|  2.10M|      }
  612|    144|    }
  613|       |
  614|       |    // There is a fractional part.
  615|       |    // We don't emit a '.', but adjust the exponent instead.
  616|  66.2k|    while (*current >= '0' && *current <= '9') {
  ------------------
  |  Branch (616:12): [True: 66.1k, False: 27]
  |  Branch (616:31): [True: 66.1k, False: 79]
  ------------------
  617|  66.1k|      if (significant_digits < kMaxSignificantDigits) {
  ------------------
  |  Branch (617:11): [True: 65.7k, False: 399]
  ------------------
  618|  65.7k|        DOUBLE_CONVERSION_ASSERT(buffer_pos < kBufferSize);
  ------------------
  |  |   47|  65.7k|    assert(condition)
  ------------------
  |  Branch (618:9): [True: 65.7k, False: 0]
  ------------------
  619|  65.7k|        buffer[buffer_pos++] = static_cast<char>(*current);
  620|  65.7k|        significant_digits++;
  621|  65.7k|        exponent--;
  622|  65.7k|      } else {
  623|       |        // Ignore insignificant digits in the fractional part.
  624|    399|        nonzero_digit_dropped = nonzero_digit_dropped || *current != '0';
  ------------------
  |  Branch (624:33): [True: 194, False: 205]
  |  Branch (624:58): [True: 16, False: 189]
  ------------------
  625|    399|      }
  626|  66.1k|      if (Advance(&current, separator_, 10, end)) goto parsing_done;
  ------------------
  |  Branch (626:11): [True: 260, False: 65.8k]
  ------------------
  627|  66.1k|    }
  628|    366|  }
  629|       |
  630|  1.14k|  if (!leading_zero && exponent == 0 && significant_digits == 0) {
  ------------------
  |  Branch (630:7): [True: 1.08k, False: 61]
  |  Branch (630:24): [True: 995, False: 88]
  |  Branch (630:41): [True: 76, False: 919]
  ------------------
  631|       |    // If leading_zeros is true then the string contains zeros.
  632|       |    // If exponent < 0 then string was [+-]\.0*...
  633|       |    // If significant_digits != 0 the string is not equal to 0.
  634|       |    // Otherwise there are no digits in the string.
  635|     76|    return junk_string_value_;
  636|     76|  }
  637|       |
  638|       |  // Parse exponential part.
  639|  1.06k|  if (*current == 'e' || *current == 'E') {
  ------------------
  |  Branch (639:7): [True: 510, False: 558]
  |  Branch (639:26): [True: 457, False: 101]
  ------------------
  640|    967|    if (octal && !allow_trailing_junk) return junk_string_value_;
  ------------------
  |  Branch (640:9): [True: 1, False: 966]
  |  Branch (640:18): [True: 0, False: 1]
  ------------------
  641|    967|    if (octal) goto parsing_done;
  ------------------
  |  Branch (641:9): [True: 1, False: 966]
  ------------------
  642|    966|    Iterator junk_begin = current;
  643|    966|    ++current;
  644|    966|    if (current == end) {
  ------------------
  |  Branch (644:9): [True: 4, False: 962]
  ------------------
  645|      4|      if (allow_trailing_junk) {
  ------------------
  |  Branch (645:11): [True: 4, False: 0]
  ------------------
  646|      4|        current = junk_begin;
  647|      4|        goto parsing_done;
  648|      4|      } else {
  649|      0|        return junk_string_value_;
  650|      0|      }
  651|      4|    }
  652|    962|    char exponen_sign = '+';
  653|    962|    if (*current == '+' || *current == '-') {
  ------------------
  |  Branch (653:9): [True: 1, False: 961]
  |  Branch (653:28): [True: 357, False: 604]
  ------------------
  654|    358|      exponen_sign = static_cast<char>(*current);
  655|    358|      ++current;
  656|    358|      if (current == end) {
  ------------------
  |  Branch (656:11): [True: 2, False: 356]
  ------------------
  657|      2|        if (allow_trailing_junk) {
  ------------------
  |  Branch (657:13): [True: 2, False: 0]
  ------------------
  658|      2|          current = junk_begin;
  659|      2|          goto parsing_done;
  660|      2|        } else {
  661|      0|          return junk_string_value_;
  662|      0|        }
  663|      2|      }
  664|    358|    }
  665|       |
  666|    960|    if (current == end || *current < '0' || *current > '9') {
  ------------------
  |  Branch (666:9): [True: 0, False: 960]
  |  Branch (666:27): [True: 16, False: 944]
  |  Branch (666:45): [True: 4, False: 940]
  ------------------
  667|     20|      if (allow_trailing_junk) {
  ------------------
  |  Branch (667:11): [True: 20, False: 0]
  ------------------
  668|     20|        current = junk_begin;
  669|     20|        goto parsing_done;
  670|     20|      } else {
  671|      0|        return junk_string_value_;
  672|      0|      }
  673|     20|    }
  674|       |
  675|    940|    const int max_exponent = INT_MAX / 2;
  676|    940|    DOUBLE_CONVERSION_ASSERT(-max_exponent / 2 <= exponent && exponent <= max_exponent / 2);
  ------------------
  |  |   47|    940|    assert(condition)
  ------------------
  |  Branch (676:5): [True: 940, False: 0]
  |  Branch (676:5): [True: 940, False: 0]
  |  Branch (676:5): [True: 940, False: 0]
  ------------------
  677|    940|    int num = 0;
  678|  3.39k|    do {
  679|       |      // Check overflow.
  680|  3.39k|      int digit = *current - '0';
  681|  3.39k|      if (num >= max_exponent / 10
  ------------------
  |  Branch (681:11): [True: 250, False: 3.14k]
  ------------------
  682|    250|          && !(num == max_exponent / 10 && digit <= max_exponent % 10)) {
  ------------------
  |  Branch (682:16): [True: 2, False: 248]
  |  Branch (682:44): [True: 1, False: 1]
  ------------------
  683|    249|        num = max_exponent;
  684|  3.14k|      } else {
  685|  3.14k|        num = num * 10 + digit;
  686|  3.14k|      }
  687|  3.39k|      ++current;
  688|  3.39k|    } while (current != end && *current >= '0' && *current <= '9');
  ------------------
  |  Branch (688:14): [True: 2.46k, False: 926]
  |  Branch (688:32): [True: 2.45k, False: 9]
  |  Branch (688:51): [True: 2.45k, False: 5]
  ------------------
  689|       |
  690|    940|    exponent += (exponen_sign == '-' ? -num : num);
  ------------------
  |  Branch (690:18): [True: 356, False: 584]
  ------------------
  691|    940|  }
  692|       |
  693|  1.04k|  if (!(allow_trailing_spaces || allow_trailing_junk) && (current != end)) {
  ------------------
  |  Branch (693:9): [True: 1.04k, False: 0]
  |  Branch (693:34): [True: 0, False: 0]
  |  Branch (693:58): [True: 0, False: 0]
  ------------------
  694|      0|    return junk_string_value_;
  695|      0|  }
  696|  1.04k|  if (!allow_trailing_junk && AdvanceToNonspace(&current, end)) {
  ------------------
  |  Branch (696:7): [True: 0, False: 1.04k]
  |  Branch (696:31): [True: 0, False: 0]
  ------------------
  697|      0|    return junk_string_value_;
  698|      0|  }
  699|  1.04k|  if (allow_trailing_spaces) {
  ------------------
  |  Branch (699:7): [True: 1.04k, False: 0]
  ------------------
  700|  1.04k|    AdvanceToNonspace(&current, end);
  701|  1.04k|  }
  702|       |
  703|  2.12k|  parsing_done:
  704|  2.12k|  exponent += insignificant_digits;
  705|       |
  706|  2.12k|  if (octal) {
  ------------------
  |  Branch (706:7): [True: 256, False: 1.86k]
  ------------------
  707|    256|    double result;
  708|    256|    bool result_is_junk;
  709|    256|    char* start = buffer;
  710|    256|    result = RadixStringToIeee<3>(&start,
  711|    256|                                  buffer + buffer_pos,
  712|    256|                                  sign,
  713|    256|                                  separator_,
  714|    256|                                  false, // Don't parse as hex_float.
  715|    256|                                  allow_trailing_junk,
  716|    256|                                  junk_string_value_,
  717|    256|                                  read_as_double,
  718|    256|                                  &result_is_junk);
  719|    256|    DOUBLE_CONVERSION_ASSERT(!result_is_junk);
  ------------------
  |  |   47|    256|    assert(condition)
  ------------------
  |  Branch (719:5): [True: 256, False: 0]
  ------------------
  720|    256|    *processed_characters_count = static_cast<int>(current - input);
  721|    256|    return result;
  722|    256|  }
  723|       |
  724|  1.86k|  if (nonzero_digit_dropped) {
  ------------------
  |  Branch (724:7): [True: 28, False: 1.83k]
  ------------------
  725|     28|    buffer[buffer_pos++] = '1';
  726|     28|    exponent--;
  727|     28|  }
  728|       |
  729|  1.86k|  DOUBLE_CONVERSION_ASSERT(buffer_pos < kBufferSize);
  ------------------
  |  |   47|  1.86k|    assert(condition)
  ------------------
  |  Branch (729:3): [True: 1.86k, False: 0]
  ------------------
  730|  1.86k|  buffer[buffer_pos] = '\0';
  731|       |
  732|       |  // Code above ensures there are no leading zeros and the buffer has fewer than
  733|       |  // kMaxSignificantDecimalDigits characters. Trim trailing zeros.
  734|  1.86k|  Vector<const char> chars(buffer, buffer_pos);
  735|  1.86k|  chars = TrimTrailingZeros(chars);
  736|  1.86k|  exponent += buffer_pos - chars.length();
  737|       |
  738|  1.86k|  double converted;
  739|  1.86k|  if (read_as_double) {
  ------------------
  |  Branch (739:7): [True: 1.86k, False: 0]
  ------------------
  740|  1.86k|    converted = StrtodTrimmed(chars, exponent);
  741|  1.86k|  } else {
  742|      0|    converted = StrtofTrimmed(chars, exponent);
  743|      0|  }
  744|  1.86k|  *processed_characters_count = static_cast<int>(current - input);
  745|  1.86k|  return sign? -converted: converted;
  ------------------
  |  Branch (745:10): [True: 1, False: 1.86k]
  ------------------
  746|  1.86k|}
string-to-double.cc:_ZN17double_conversionL17AdvanceToNonspaceIPKcEEbPT_S3_:
  139|  4.79k|static inline bool AdvanceToNonspace(Iterator* current, Iterator end) {
  140|  6.49k|  while (*current != end) {
  ------------------
  |  Branch (140:10): [True: 5.00k, False: 1.48k]
  ------------------
  141|  5.00k|    if (!isWhitespace(**current)) return true;
  ------------------
  |  Branch (141:9): [True: 3.30k, False: 1.70k]
  ------------------
  142|  1.70k|    ++*current;
  143|  1.70k|  }
  144|  1.48k|  return false;
  145|  4.79k|}
string-to-double.cc:_ZN17double_conversionL12isWhitespaceEi:
  123|  5.00k|static bool isWhitespace(int x) {
  124|  5.00k|  if (x < 128) {
  ------------------
  |  Branch (124:7): [True: 5.00k, False: 0]
  ------------------
  125|  30.3k|    for (int i = 0; i < kWhitespaceTable7Length; i++) {
  ------------------
  |  Branch (125:21): [True: 27.0k, False: 3.30k]
  ------------------
  126|  27.0k|      if (kWhitespaceTable7[i] == x) return true;
  ------------------
  |  Branch (126:11): [True: 1.70k, False: 25.3k]
  ------------------
  127|  27.0k|    }
  128|  5.00k|  } else {
  129|      0|    for (int i = 0; i < kWhitespaceTable16Length; i++) {
  ------------------
  |  Branch (129:21): [True: 0, False: 0]
  ------------------
  130|      0|      if (kWhitespaceTable16[i] == x) return true;
  ------------------
  |  Branch (130:11): [True: 0, False: 0]
  ------------------
  131|      0|    }
  132|      0|  }
  133|  3.30k|  return false;
  134|  5.00k|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_121ConsumeFirstCharacterEcPKcb:
   97|  5.90k|                                         bool case_insensitivity) {
   98|  5.90k|  return case_insensitivity ? ToLower(ch) == str[0] : ch == str[0];
  ------------------
  |  Branch (98:10): [True: 5.90k, False: 0]
  ------------------
   99|  5.90k|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_17ToLowerEc:
   54|  5.92k|inline char ToLower(char ch) {
   55|  5.92k|  static const std::ctype<char>& cType =
   56|  5.92k|      std::use_facet<std::ctype<char> >(std::locale::classic());
   57|  5.92k|  return cType.tolower(ch);
   58|  5.92k|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_116ConsumeSubStringIPKcEEbPT_S4_S3_b:
   86|      9|                             bool allow_case_insensitivity) {
   87|      9|  if (allow_case_insensitivity) {
  ------------------
  |  Branch (87:7): [True: 9, False: 0]
  ------------------
   88|      9|    return ConsumeSubStringImpl(current, end, substring, ToLower);
   89|      9|  } else {
   90|      0|    return ConsumeSubStringImpl(current, end, substring, Pass);
   91|      0|  }
   92|      9|}
string-to-double.cc:_ZN17double_conversion12_GLOBAL__N_120ConsumeSubStringImplIPKcPFccEEEbPT_S6_S3_T0_:
   68|      9|                                        Converter converter) {
   69|      9|  DOUBLE_CONVERSION_ASSERT(converter(**current) == *substring);
  ------------------
  |  |   47|      9|    assert(condition)
  ------------------
  |  Branch (69:3): [True: 9, False: 0]
  ------------------
   70|     19|  for (substring++; *substring != '\0'; substring++) {
  ------------------
  |  Branch (70:21): [True: 15, False: 4]
  ------------------
   71|     15|    ++*current;
   72|     15|    if (*current == end || converter(**current) != *substring) {
  ------------------
  |  Branch (72:9): [True: 4, False: 11]
  |  Branch (72:28): [True: 1, False: 10]
  ------------------
   73|      5|      return false;
   74|      5|    }
   75|     15|  }
   76|      4|  ++*current;
   77|      4|  return true;
   78|      9|}
string-to-double.cc:_ZN17double_conversionL7AdvanceIPKcEEbPT_tiRS3_:
  190|  9.85M|static bool Advance (Iterator* it, uc16 separator, int base, Iterator& end) {
  191|  9.85M|  if (separator == StringToDoubleConverter::kNoSeparator) {
  ------------------
  |  Branch (191:7): [True: 9.85M, False: 0]
  ------------------
  192|  9.85M|    ++(*it);
  193|  9.85M|    return *it == end;
  194|  9.85M|  }
  195|      0|  if (!isDigit(**it, base)) {
  ------------------
  |  Branch (195:7): [True: 0, False: 0]
  ------------------
  196|      0|    ++(*it);
  197|      0|    return *it == end;
  198|      0|  }
  199|      0|  ++(*it);
  200|      0|  if (*it == end) return true;
  ------------------
  |  Branch (200:7): [True: 0, False: 0]
  ------------------
  201|      0|  if (*it + 1 == end) return false;
  ------------------
  |  Branch (201:7): [True: 0, False: 0]
  ------------------
  202|      0|  if (**it == separator && isDigit(*(*it + 1), base)) {
  ------------------
  |  Branch (202:7): [True: 0, False: 0]
  |  Branch (202:28): [True: 0, False: 0]
  ------------------
  203|      0|    ++(*it);
  204|      0|  }
  205|      0|  return *it == end;
  206|      0|}
string-to-double.cc:_ZN17double_conversionL10SignedZeroEb:
  155|     33|static double SignedZero(bool sign) {
  156|     33|  return sign ? -0.0 : 0.0;
  ------------------
  |  Branch (156:10): [True: 3, False: 30]
  ------------------
  157|     33|}
string-to-double.cc:_ZN17double_conversionL16IsHexFloatStringIPKcEEbT_S3_tb:
  219|  1.01k|                             bool allow_trailing_junk) {
  220|  1.01k|  DOUBLE_CONVERSION_ASSERT(start != end);
  ------------------
  |  |   47|  1.01k|    assert(condition)
  ------------------
  |  Branch (220:3): [True: 1.01k, False: 0]
  ------------------
  221|       |
  222|  1.01k|  Iterator current = start;
  223|       |
  224|  1.01k|  bool saw_digit = false;
  225|  6.75k|  while (isDigit(*current, 16)) {
  ------------------
  |  Branch (225:10): [True: 5.97k, False: 782]
  ------------------
  226|  5.97k|    saw_digit = true;
  227|  5.97k|    if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (227:9): [True: 231, False: 5.74k]
  ------------------
  228|  5.97k|  }
  229|    782|  if (*current == '.') {
  ------------------
  |  Branch (229:7): [True: 149, False: 633]
  ------------------
  230|    149|    if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (230:9): [True: 2, False: 147]
  ------------------
  231|  5.06M|    while (isDigit(*current, 16)) {
  ------------------
  |  Branch (231:12): [True: 5.06M, False: 132]
  ------------------
  232|  5.06M|      saw_digit = true;
  233|  5.06M|      if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (233:11): [True: 15, False: 5.06M]
  ------------------
  234|  5.06M|    }
  235|    147|  }
  236|    765|  if (!saw_digit) return false;
  ------------------
  |  Branch (236:7): [True: 67, False: 698]
  ------------------
  237|    698|  if (*current != 'p' && *current != 'P') return false;
  ------------------
  |  Branch (237:7): [True: 333, False: 365]
  |  Branch (237:26): [True: 88, False: 245]
  ------------------
  238|    610|  if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (238:7): [True: 2, False: 608]
  ------------------
  239|    608|  if (*current == '+' || *current == '-') {
  ------------------
  |  Branch (239:7): [True: 3, False: 605]
  |  Branch (239:26): [True: 144, False: 461]
  ------------------
  240|    147|    if (Advance(&current, separator, 16, end)) return false;
  ------------------
  |  Branch (240:9): [True: 2, False: 145]
  ------------------
  241|    147|  }
  242|    606|  if (!isDigit(*current, 10)) return false;
  ------------------
  |  Branch (242:7): [True: 20, False: 586]
  ------------------
  243|    586|  if (Advance(&current, separator, 16, end)) return true;
  ------------------
  |  Branch (243:7): [True: 244, False: 342]
  ------------------
  244|  2.38k|  while (isDigit(*current, 10)) {
  ------------------
  |  Branch (244:10): [True: 2.34k, False: 42]
  ------------------
  245|  2.34k|    if (Advance(&current, separator, 16, end)) return true;
  ------------------
  |  Branch (245:9): [True: 300, False: 2.04k]
  ------------------
  246|  2.34k|  }
  247|     42|  return allow_trailing_junk || !AdvanceToNonspace(&current, end);
  ------------------
  |  Branch (247:10): [True: 42, False: 0]
  |  Branch (247:33): [True: 0, False: 0]
  ------------------
  248|    342|}
string-to-double.cc:_ZN17double_conversionL7isDigitEii:
  148|  5.07M|static bool isDigit(int x, int radix) {
  149|  5.07M|  return (x >= '0' && x <= '9' && x < '0' + radix)
  ------------------
  |  Branch (149:11): [True: 5.07M, False: 356]
  |  Branch (149:23): [True: 5.07M, False: 6.50k]
  |  Branch (149:35): [True: 5.07M, False: 0]
  ------------------
  150|  6.85k|      || (radix > 10 && x >= 'a' && x < 'a' + radix - 10)
  ------------------
  |  Branch (150:11): [True: 6.79k, False: 62]
  |  Branch (150:25): [True: 3.13k, False: 3.66k]
  |  Branch (150:37): [True: 2.73k, False: 407]
  ------------------
  151|  4.12k|      || (radix > 10 && x >= 'A' && x < 'A' + radix - 10);
  ------------------
  |  Branch (151:11): [True: 4.06k, False: 62]
  |  Branch (151:25): [True: 3.73k, False: 337]
  |  Branch (151:37): [True: 3.01k, False: 714]
  ------------------
  152|  5.07M|}
string-to-double.cc:_ZN17double_conversionL17RadixStringToIeeeILi4EPKcEEdPT0_S3_btbbdbPb:
  264|    630|                                bool* result_is_junk) {
  265|    630|  DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|    630|    assert(condition)
  ------------------
  |  Branch (265:3): [True: 630, False: 0]
  ------------------
  266|    630|  DOUBLE_CONVERSION_ASSERT(!parse_as_hex_float ||
  ------------------
  |  |   47|    630|    assert(condition)
  ------------------
  |  Branch (266:3): [True: 337, False: 293]
  |  Branch (266:3): [True: 293, False: 0]
  |  Branch (266:3): [True: 630, False: 0]
  ------------------
  267|    630|      IsHexFloatString(*current, end, separator, allow_trailing_junk));
  268|       |
  269|    630|  const int kDoubleSize = Double::kSignificandSize;
  270|    630|  const int kSingleSize = Single::kSignificandSize;
  271|    630|  const int kSignificandSize = read_as_double? kDoubleSize: kSingleSize;
  ------------------
  |  Branch (271:32): [True: 630, False: 0]
  ------------------
  272|       |
  273|    630|  *result_is_junk = true;
  274|       |
  275|    630|  int64_t number = 0;
  276|    630|  int exponent = 0;
  277|    630|  const int radix = (1 << radix_log_2);
  278|       |  // Whether we have encountered a '.' and are parsing the decimal digits.
  279|       |  // Only relevant if parse_as_hex_float is true.
  280|    630|  bool post_decimal = false;
  281|       |
  282|       |  // Skip leading 0s.
  283|  1.04k|  while (**current == '0') {
  ------------------
  |  Branch (283:10): [True: 427, False: 622]
  ------------------
  284|    427|    if (Advance(current, separator, radix, end)) {
  ------------------
  |  Branch (284:9): [True: 8, False: 419]
  ------------------
  285|      8|      *result_is_junk = false;
  286|      8|      return SignedZero(sign);
  287|      8|    }
  288|    427|  }
  289|       |
  290|  2.51M|  while (true) {
  ------------------
  |  Branch (290:10): [True: 2.51M, Folded]
  ------------------
  291|  2.51M|    int digit;
  292|  2.51M|    if (IsDecimalDigitForRadix(**current, radix)) {
  ------------------
  |  Branch (292:9): [True: 2.51M, False: 2.79k]
  ------------------
  293|  2.51M|      digit = static_cast<char>(**current) - '0';
  294|  2.51M|      if (post_decimal) exponent -= radix_log_2;
  ------------------
  |  Branch (294:11): [True: 2.51M, False: 917]
  ------------------
  295|  2.51M|    } else if (IsCharacterDigitForRadix(**current, radix, 'a')) {
  ------------------
  |  Branch (295:16): [True: 1.09k, False: 1.69k]
  ------------------
  296|  1.09k|      digit = static_cast<char>(**current) - 'a' + 10;
  297|  1.09k|      if (post_decimal) exponent -= radix_log_2;
  ------------------
  |  Branch (297:11): [True: 64, False: 1.03k]
  ------------------
  298|  1.69k|    } else if (IsCharacterDigitForRadix(**current, radix, 'A')) {
  ------------------
  |  Branch (298:16): [True: 1.29k, False: 398]
  ------------------
  299|  1.29k|      digit = static_cast<char>(**current) - 'A' + 10;
  300|  1.29k|      if (post_decimal) exponent -= radix_log_2;
  ------------------
  |  Branch (300:11): [True: 86, False: 1.21k]
  ------------------
  301|  1.29k|    } else if (parse_as_hex_float && **current == '.') {
  ------------------
  |  Branch (301:16): [True: 310, False: 88]
  |  Branch (301:38): [True: 46, False: 264]
  ------------------
  302|     46|      post_decimal = true;
  303|     46|      Advance(current, separator, radix, end);
  304|     46|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|     46|    assert(condition)
  ------------------
  |  Branch (304:7): [True: 46, False: 0]
  ------------------
  305|     46|      continue;
  306|    352|    } else if (parse_as_hex_float && (**current == 'p' || **current == 'P')) {
  ------------------
  |  Branch (306:16): [True: 264, False: 88]
  |  Branch (306:39): [True: 161, False: 103]
  |  Branch (306:59): [True: 103, False: 0]
  ------------------
  307|    264|      break;
  308|    264|    } else {
  309|     88|      if (allow_trailing_junk || !AdvanceToNonspace(current, end)) {
  ------------------
  |  Branch (309:11): [True: 88, False: 0]
  |  Branch (309:34): [True: 0, False: 0]
  ------------------
  310|     88|        break;
  311|     88|      } else {
  312|      0|        return junk_string_value;
  313|      0|      }
  314|     88|    }
  315|       |
  316|  2.51M|    number = number * radix + digit;
  317|  2.51M|    int overflow = static_cast<int>(number >> kSignificandSize);
  318|  2.51M|    if (overflow != 0) {
  ------------------
  |  Branch (318:9): [True: 145, False: 2.51M]
  ------------------
  319|       |      // Overflow occurred. Need to determine which direction to round the
  320|       |      // result.
  321|    145|      int overflow_bits_count = 1;
  322|    403|      while (overflow > 1) {
  ------------------
  |  Branch (322:14): [True: 258, False: 145]
  ------------------
  323|    258|        overflow_bits_count++;
  324|    258|        overflow >>= 1;
  325|    258|      }
  326|       |
  327|    145|      int dropped_bits_mask = ((1 << overflow_bits_count) - 1);
  328|    145|      int dropped_bits = static_cast<int>(number) & dropped_bits_mask;
  329|    145|      number >>= overflow_bits_count;
  330|    145|      exponent += overflow_bits_count;
  331|       |
  332|    145|      bool zero_tail = true;
  333|  1.79k|      for (;;) {
  334|  1.79k|        if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (334:13): [True: 98, False: 1.69k]
  ------------------
  335|  1.69k|        if (parse_as_hex_float && **current == '.') {
  ------------------
  |  Branch (335:13): [True: 665, False: 1.03k]
  |  Branch (335:35): [True: 1, False: 664]
  ------------------
  336|       |          // Just run over the '.'. We are just trying to see whether there is
  337|       |          // a non-zero digit somewhere.
  338|      1|          Advance(current, separator, radix, end);
  339|      1|          DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      1|    assert(condition)
  ------------------
  |  Branch (339:11): [True: 1, False: 0]
  ------------------
  340|      1|          post_decimal = true;
  341|      1|        }
  342|  1.69k|        if (!isDigit(**current, radix)) break;
  ------------------
  |  Branch (342:13): [True: 47, False: 1.64k]
  ------------------
  343|  1.64k|        zero_tail = zero_tail && **current == '0';
  ------------------
  |  Branch (343:21): [True: 342, False: 1.30k]
  |  Branch (343:34): [True: 280, False: 62]
  ------------------
  344|  1.64k|        if (!post_decimal) exponent += radix_log_2;
  ------------------
  |  Branch (344:13): [True: 1.35k, False: 298]
  ------------------
  345|  1.64k|      }
  346|       |
  347|    145|      if (!parse_as_hex_float &&
  ------------------
  |  Branch (347:11): [True: 116, False: 29]
  ------------------
  348|    116|          !allow_trailing_junk &&
  ------------------
  |  Branch (348:11): [True: 0, False: 116]
  ------------------
  349|      0|          AdvanceToNonspace(current, end)) {
  ------------------
  |  Branch (349:11): [True: 0, False: 0]
  ------------------
  350|      0|        return junk_string_value;
  351|      0|      }
  352|       |
  353|    145|      int middle_value = (1 << (overflow_bits_count - 1));
  354|    145|      if (dropped_bits > middle_value) {
  ------------------
  |  Branch (354:11): [True: 64, False: 81]
  ------------------
  355|     64|        number++;  // Rounding up.
  356|     81|      } else if (dropped_bits == middle_value) {
  ------------------
  |  Branch (356:18): [True: 19, False: 62]
  ------------------
  357|       |        // Rounding to even to consistency with decimals: half-way case rounds
  358|       |        // up if significant part is odd and down otherwise.
  359|     19|        if ((number & 1) != 0 || !zero_tail) {
  ------------------
  |  Branch (359:13): [True: 10, False: 9]
  |  Branch (359:34): [True: 3, False: 6]
  ------------------
  360|     13|          number++;  // Rounding up.
  361|     13|        }
  362|     19|      }
  363|       |
  364|       |      // Rounding up may cause overflow.
  365|    145|      if ((number & ((int64_t)1 << kSignificandSize)) != 0) {
  ------------------
  |  Branch (365:11): [True: 3, False: 142]
  ------------------
  366|      3|        exponent++;
  367|      3|        number >>= 1;
  368|      3|      }
  369|    145|      break;
  370|    145|    }
  371|  2.51M|    if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (371:9): [True: 125, False: 2.51M]
  ------------------
  372|  2.51M|  }
  373|       |
  374|    622|  DOUBLE_CONVERSION_ASSERT(number < ((int64_t)1 << kSignificandSize));
  ------------------
  |  |   47|    622|    assert(condition)
  ------------------
  |  Branch (374:3): [True: 622, False: 0]
  ------------------
  375|    622|  DOUBLE_CONVERSION_ASSERT(static_cast<int64_t>(static_cast<double>(number)) == number);
  ------------------
  |  |   47|    622|    assert(condition)
  ------------------
  |  Branch (375:3): [True: 622, False: 0]
  ------------------
  376|       |
  377|    622|  *result_is_junk = false;
  378|       |
  379|    622|  if (parse_as_hex_float) {
  ------------------
  |  Branch (379:7): [True: 293, False: 329]
  ------------------
  380|    293|    DOUBLE_CONVERSION_ASSERT(**current == 'p' || **current == 'P');
  ------------------
  |  |   47|    293|    assert(condition)
  ------------------
  |  Branch (380:5): [True: 175, False: 118]
  |  Branch (380:5): [True: 118, False: 0]
  |  Branch (380:5): [True: 293, False: 0]
  ------------------
  381|    293|    Advance(current, separator, radix, end);
  382|    293|    DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|    293|    assert(condition)
  ------------------
  |  Branch (382:5): [True: 293, False: 0]
  ------------------
  383|    293|    bool is_negative = false;
  384|    293|    if (**current == '+') {
  ------------------
  |  Branch (384:9): [True: 1, False: 292]
  ------------------
  385|      1|      Advance(current, separator, radix, end);
  386|      1|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      1|    assert(condition)
  ------------------
  |  Branch (386:7): [True: 1, False: 0]
  ------------------
  387|    292|    } else if (**current == '-') {
  ------------------
  |  Branch (387:16): [True: 71, False: 221]
  ------------------
  388|     71|      is_negative = true;
  389|     71|      Advance(current, separator, radix, end);
  390|     71|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|     71|    assert(condition)
  ------------------
  |  Branch (390:7): [True: 71, False: 0]
  ------------------
  391|     71|    }
  392|    293|    int written_exponent = 0;
  393|  1.48k|    while (IsDecimalDigitForRadix(**current, 10)) {
  ------------------
  |  Branch (393:12): [True: 1.46k, False: 21]
  ------------------
  394|       |      // No need to read exponents if they are too big. That could potentially overflow
  395|       |      // the `written_exponent` variable.
  396|  1.46k|      if (abs(written_exponent) <= 100 * Double::kMaxExponent) {
  ------------------
  |  Branch (396:11): [True: 1.11k, False: 347]
  ------------------
  397|  1.11k|        written_exponent = 10 * written_exponent + **current - '0';
  398|  1.11k|      }
  399|  1.46k|      if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (399:11): [True: 272, False: 1.19k]
  ------------------
  400|  1.46k|    }
  401|    293|    if (is_negative) written_exponent = -written_exponent;
  ------------------
  |  Branch (401:9): [True: 71, False: 222]
  ------------------
  402|    293|    exponent += written_exponent;
  403|    293|  }
  404|       |
  405|    622|  if (exponent == 0 || number == 0) {
  ------------------
  |  Branch (405:7): [True: 224, False: 398]
  |  Branch (405:24): [True: 19, False: 379]
  ------------------
  406|    243|    if (sign) {
  ------------------
  |  Branch (406:9): [True: 54, False: 189]
  ------------------
  407|     54|      if (number == 0) return -0.0;
  ------------------
  |  Branch (407:11): [True: 1, False: 53]
  ------------------
  408|     53|      number = -number;
  409|     53|    }
  410|    242|    return static_cast<double>(number);
  411|    243|  }
  412|       |
  413|    379|  DOUBLE_CONVERSION_ASSERT(number != 0);
  ------------------
  |  |   47|    379|    assert(condition)
  ------------------
  |  Branch (413:3): [True: 379, False: 0]
  ------------------
  414|    379|  double result = Double(DiyFp(number, exponent)).value();
  415|    379|  return sign ? -result : result;
  ------------------
  |  Branch (415:10): [True: 1, False: 378]
  ------------------
  416|    379|}
string-to-double.cc:_ZN17double_conversionL22IsDecimalDigitForRadixEii:
  173|  2.52M|static bool inline IsDecimalDigitForRadix(int c, int radix) {
  174|  2.52M|  return '0' <= c && c <= '9' && (c - '0') < radix;
  ------------------
  |  Branch (174:10): [True: 2.52M, False: 103]
  |  Branch (174:22): [True: 2.51M, False: 2.71k]
  |  Branch (174:34): [True: 2.51M, False: 0]
  ------------------
  175|  2.52M|}
string-to-double.cc:_ZN17double_conversionL24IsCharacterDigitForRadixEiic:
  184|  4.48k|static bool IsCharacterDigitForRadix(int c, int radix, char a_character) {
  185|  4.48k|  return radix > 10 && c >= a_character && c < a_character + radix - 10;
  ------------------
  |  Branch (185:10): [True: 4.48k, False: 0]
  |  Branch (185:24): [True: 2.88k, False: 1.60k]
  |  Branch (185:44): [True: 2.39k, False: 491]
  ------------------
  186|  4.48k|}
string-to-double.cc:_ZN17double_conversionL17RadixStringToIeeeILi3EPcEEdPT0_S2_btbbdbPb:
  264|    256|                                bool* result_is_junk) {
  265|    256|  DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|    256|    assert(condition)
  ------------------
  |  Branch (265:3): [True: 256, False: 0]
  ------------------
  266|    256|  DOUBLE_CONVERSION_ASSERT(!parse_as_hex_float ||
  ------------------
  |  |   47|    256|    assert(condition)
  ------------------
  |  Branch (266:3): [True: 256, False: 0]
  |  Branch (266:3): [True: 0, False: 0]
  |  Branch (266:3): [True: 256, False: 0]
  ------------------
  267|    256|      IsHexFloatString(*current, end, separator, allow_trailing_junk));
  268|       |
  269|    256|  const int kDoubleSize = Double::kSignificandSize;
  270|    256|  const int kSingleSize = Single::kSignificandSize;
  271|    256|  const int kSignificandSize = read_as_double? kDoubleSize: kSingleSize;
  ------------------
  |  Branch (271:32): [True: 256, False: 0]
  ------------------
  272|       |
  273|    256|  *result_is_junk = true;
  274|       |
  275|    256|  int64_t number = 0;
  276|    256|  int exponent = 0;
  277|    256|  const int radix = (1 << radix_log_2);
  278|       |  // Whether we have encountered a '.' and are parsing the decimal digits.
  279|       |  // Only relevant if parse_as_hex_float is true.
  280|    256|  bool post_decimal = false;
  281|       |
  282|       |  // Skip leading 0s.
  283|    256|  while (**current == '0') {
  ------------------
  |  Branch (283:10): [True: 0, False: 256]
  ------------------
  284|      0|    if (Advance(current, separator, radix, end)) {
  ------------------
  |  Branch (284:9): [True: 0, False: 0]
  ------------------
  285|      0|      *result_is_junk = false;
  286|      0|      return SignedZero(sign);
  287|      0|    }
  288|      0|  }
  289|       |
  290|  3.56k|  while (true) {
  ------------------
  |  Branch (290:10): [True: 3.56k, Folded]
  ------------------
  291|  3.56k|    int digit;
  292|  3.56k|    if (IsDecimalDigitForRadix(**current, radix)) {
  ------------------
  |  Branch (292:9): [True: 3.56k, False: 0]
  ------------------
  293|  3.56k|      digit = static_cast<char>(**current) - '0';
  294|  3.56k|      if (post_decimal) exponent -= radix_log_2;
  ------------------
  |  Branch (294:11): [True: 0, False: 3.56k]
  ------------------
  295|  3.56k|    } else if (IsCharacterDigitForRadix(**current, radix, 'a')) {
  ------------------
  |  Branch (295:16): [True: 0, False: 0]
  ------------------
  296|      0|      digit = static_cast<char>(**current) - 'a' + 10;
  297|      0|      if (post_decimal) exponent -= radix_log_2;
  ------------------
  |  Branch (297:11): [True: 0, False: 0]
  ------------------
  298|      0|    } else if (IsCharacterDigitForRadix(**current, radix, 'A')) {
  ------------------
  |  Branch (298:16): [True: 0, False: 0]
  ------------------
  299|      0|      digit = static_cast<char>(**current) - 'A' + 10;
  300|      0|      if (post_decimal) exponent -= radix_log_2;
  ------------------
  |  Branch (300:11): [True: 0, False: 0]
  ------------------
  301|      0|    } else if (parse_as_hex_float && **current == '.') {
  ------------------
  |  Branch (301:16): [True: 0, False: 0]
  |  Branch (301:38): [True: 0, False: 0]
  ------------------
  302|      0|      post_decimal = true;
  303|      0|      Advance(current, separator, radix, end);
  304|      0|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (304:7): [True: 0, False: 0]
  ------------------
  305|      0|      continue;
  306|      0|    } else if (parse_as_hex_float && (**current == 'p' || **current == 'P')) {
  ------------------
  |  Branch (306:16): [True: 0, False: 0]
  |  Branch (306:39): [True: 0, False: 0]
  |  Branch (306:59): [True: 0, False: 0]
  ------------------
  307|      0|      break;
  308|      0|    } else {
  309|      0|      if (allow_trailing_junk || !AdvanceToNonspace(current, end)) {
  ------------------
  |  Branch (309:11): [True: 0, False: 0]
  |  Branch (309:34): [True: 0, False: 0]
  ------------------
  310|      0|        break;
  311|      0|      } else {
  312|      0|        return junk_string_value;
  313|      0|      }
  314|      0|    }
  315|       |
  316|  3.56k|    number = number * radix + digit;
  317|  3.56k|    int overflow = static_cast<int>(number >> kSignificandSize);
  318|  3.56k|    if (overflow != 0) {
  ------------------
  |  Branch (318:9): [True: 142, False: 3.42k]
  ------------------
  319|       |      // Overflow occurred. Need to determine which direction to round the
  320|       |      // result.
  321|    142|      int overflow_bits_count = 1;
  322|    163|      while (overflow > 1) {
  ------------------
  |  Branch (322:14): [True: 21, False: 142]
  ------------------
  323|     21|        overflow_bits_count++;
  324|     21|        overflow >>= 1;
  325|     21|      }
  326|       |
  327|    142|      int dropped_bits_mask = ((1 << overflow_bits_count) - 1);
  328|    142|      int dropped_bits = static_cast<int>(number) & dropped_bits_mask;
  329|    142|      number >>= overflow_bits_count;
  330|    142|      exponent += overflow_bits_count;
  331|       |
  332|    142|      bool zero_tail = true;
  333|  7.06k|      for (;;) {
  334|  7.06k|        if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (334:13): [True: 142, False: 6.91k]
  ------------------
  335|  6.91k|        if (parse_as_hex_float && **current == '.') {
  ------------------
  |  Branch (335:13): [True: 0, False: 6.91k]
  |  Branch (335:35): [True: 0, False: 0]
  ------------------
  336|       |          // Just run over the '.'. We are just trying to see whether there is
  337|       |          // a non-zero digit somewhere.
  338|      0|          Advance(current, separator, radix, end);
  339|      0|          DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (339:11): [True: 0, False: 0]
  ------------------
  340|      0|          post_decimal = true;
  341|      0|        }
  342|  6.91k|        if (!isDigit(**current, radix)) break;
  ------------------
  |  Branch (342:13): [True: 0, False: 6.91k]
  ------------------
  343|  6.91k|        zero_tail = zero_tail && **current == '0';
  ------------------
  |  Branch (343:21): [True: 988, False: 5.93k]
  |  Branch (343:34): [True: 936, False: 52]
  ------------------
  344|  6.91k|        if (!post_decimal) exponent += radix_log_2;
  ------------------
  |  Branch (344:13): [True: 6.91k, False: 0]
  ------------------
  345|  6.91k|      }
  346|       |
  347|    142|      if (!parse_as_hex_float &&
  ------------------
  |  Branch (347:11): [True: 142, False: 0]
  ------------------
  348|    142|          !allow_trailing_junk &&
  ------------------
  |  Branch (348:11): [True: 0, False: 142]
  ------------------
  349|      0|          AdvanceToNonspace(current, end)) {
  ------------------
  |  Branch (349:11): [True: 0, False: 0]
  ------------------
  350|      0|        return junk_string_value;
  351|      0|      }
  352|       |
  353|    142|      int middle_value = (1 << (overflow_bits_count - 1));
  354|    142|      if (dropped_bits > middle_value) {
  ------------------
  |  Branch (354:11): [True: 2, False: 140]
  ------------------
  355|      2|        number++;  // Rounding up.
  356|    140|      } else if (dropped_bits == middle_value) {
  ------------------
  |  Branch (356:18): [True: 65, False: 75]
  ------------------
  357|       |        // Rounding to even to consistency with decimals: half-way case rounds
  358|       |        // up if significant part is odd and down otherwise.
  359|     65|        if ((number & 1) != 0 || !zero_tail) {
  ------------------
  |  Branch (359:13): [True: 40, False: 25]
  |  Branch (359:34): [True: 5, False: 20]
  ------------------
  360|     45|          number++;  // Rounding up.
  361|     45|        }
  362|     65|      }
  363|       |
  364|       |      // Rounding up may cause overflow.
  365|    142|      if ((number & ((int64_t)1 << kSignificandSize)) != 0) {
  ------------------
  |  Branch (365:11): [True: 17, False: 125]
  ------------------
  366|     17|        exponent++;
  367|     17|        number >>= 1;
  368|     17|      }
  369|    142|      break;
  370|    142|    }
  371|  3.42k|    if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (371:9): [True: 114, False: 3.30k]
  ------------------
  372|  3.42k|  }
  373|       |
  374|    256|  DOUBLE_CONVERSION_ASSERT(number < ((int64_t)1 << kSignificandSize));
  ------------------
  |  |   47|    256|    assert(condition)
  ------------------
  |  Branch (374:3): [True: 256, False: 0]
  ------------------
  375|    256|  DOUBLE_CONVERSION_ASSERT(static_cast<int64_t>(static_cast<double>(number)) == number);
  ------------------
  |  |   47|    256|    assert(condition)
  ------------------
  |  Branch (375:3): [True: 256, False: 0]
  ------------------
  376|       |
  377|    256|  *result_is_junk = false;
  378|       |
  379|    256|  if (parse_as_hex_float) {
  ------------------
  |  Branch (379:7): [True: 0, False: 256]
  ------------------
  380|      0|    DOUBLE_CONVERSION_ASSERT(**current == 'p' || **current == 'P');
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (380:5): [True: 0, False: 0]
  |  Branch (380:5): [True: 0, False: 0]
  |  Branch (380:5): [True: 0, False: 0]
  ------------------
  381|      0|    Advance(current, separator, radix, end);
  382|      0|    DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (382:5): [True: 0, False: 0]
  ------------------
  383|      0|    bool is_negative = false;
  384|      0|    if (**current == '+') {
  ------------------
  |  Branch (384:9): [True: 0, False: 0]
  ------------------
  385|      0|      Advance(current, separator, radix, end);
  386|      0|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (386:7): [True: 0, False: 0]
  ------------------
  387|      0|    } else if (**current == '-') {
  ------------------
  |  Branch (387:16): [True: 0, False: 0]
  ------------------
  388|      0|      is_negative = true;
  389|      0|      Advance(current, separator, radix, end);
  390|      0|      DOUBLE_CONVERSION_ASSERT(*current != end);
  ------------------
  |  |   47|      0|    assert(condition)
  ------------------
  |  Branch (390:7): [True: 0, False: 0]
  ------------------
  391|      0|    }
  392|      0|    int written_exponent = 0;
  393|      0|    while (IsDecimalDigitForRadix(**current, 10)) {
  ------------------
  |  Branch (393:12): [True: 0, False: 0]
  ------------------
  394|       |      // No need to read exponents if they are too big. That could potentially overflow
  395|       |      // the `written_exponent` variable.
  396|      0|      if (abs(written_exponent) <= 100 * Double::kMaxExponent) {
  ------------------
  |  Branch (396:11): [True: 0, False: 0]
  ------------------
  397|      0|        written_exponent = 10 * written_exponent + **current - '0';
  398|      0|      }
  399|      0|      if (Advance(current, separator, radix, end)) break;
  ------------------
  |  Branch (399:11): [True: 0, False: 0]
  ------------------
  400|      0|    }
  401|      0|    if (is_negative) written_exponent = -written_exponent;
  ------------------
  |  Branch (401:9): [True: 0, False: 0]
  ------------------
  402|      0|    exponent += written_exponent;
  403|      0|  }
  404|       |
  405|    256|  if (exponent == 0 || number == 0) {
  ------------------
  |  Branch (405:7): [True: 114, False: 142]
  |  Branch (405:24): [True: 0, False: 142]
  ------------------
  406|    114|    if (sign) {
  ------------------
  |  Branch (406:9): [True: 53, False: 61]
  ------------------
  407|     53|      if (number == 0) return -0.0;
  ------------------
  |  Branch (407:11): [True: 0, False: 53]
  ------------------
  408|     53|      number = -number;
  409|     53|    }
  410|    114|    return static_cast<double>(number);
  411|    114|  }
  412|       |
  413|    142|  DOUBLE_CONVERSION_ASSERT(number != 0);
  ------------------
  |  |   47|    142|    assert(condition)
  ------------------
  |  Branch (413:3): [True: 142, False: 0]
  ------------------
  414|    142|  double result = Double(DiyFp(number, exponent)).value();
  415|    142|  return sign ? -result : result;
  ------------------
  |  Branch (415:10): [True: 1, False: 141]
  ------------------
  416|    142|}
string-to-double.cc:_ZN17double_conversionL7AdvanceIPcEEbPT_tiRS2_:
  190|  10.4k|static bool Advance (Iterator* it, uc16 separator, int base, Iterator& end) {
  191|  10.4k|  if (separator == StringToDoubleConverter::kNoSeparator) {
  ------------------
  |  Branch (191:7): [True: 10.4k, False: 0]
  ------------------
  192|  10.4k|    ++(*it);
  193|  10.4k|    return *it == end;
  194|  10.4k|  }
  195|      0|  if (!isDigit(**it, base)) {
  ------------------
  |  Branch (195:7): [True: 0, False: 0]
  ------------------
  196|      0|    ++(*it);
  197|      0|    return *it == end;
  198|      0|  }
  199|      0|  ++(*it);
  200|      0|  if (*it == end) return true;
  ------------------
  |  Branch (200:7): [True: 0, False: 0]
  ------------------
  201|      0|  if (*it + 1 == end) return false;
  ------------------
  |  Branch (201:7): [True: 0, False: 0]
  ------------------
  202|      0|  if (**it == separator && isDigit(*(*it + 1), base)) {
  ------------------
  |  Branch (202:7): [True: 0, False: 0]
  |  Branch (202:28): [True: 0, False: 0]
  ------------------
  203|      0|    ++(*it);
  204|      0|  }
  205|      0|  return *it == end;
  206|      0|}

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

_ZN17double_conversion13StrtodTrimmedENS_6VectorIKcEEi:
  466|  1.86k|double StrtodTrimmed(Vector<const char> trimmed, int exponent) {
  467|  1.86k|  DOUBLE_CONVERSION_ASSERT(trimmed.length() <= kMaxSignificantDecimalDigits);
  ------------------
  |  |   47|  1.86k|    assert(condition)
  ------------------
  |  Branch (467:3): [True: 1.86k, False: 0]
  ------------------
  468|  1.86k|  DOUBLE_CONVERSION_ASSERT(AssertTrimmedDigits(trimmed));
  ------------------
  |  |   47|  1.86k|    assert(condition)
  ------------------
  |  Branch (468:3): [True: 1.86k, False: 0]
  ------------------
  469|  1.86k|  double guess;
  470|  1.86k|  const bool is_correct = ComputeGuess(trimmed, exponent, &guess);
  471|  1.86k|  if (is_correct) {
  ------------------
  |  Branch (471:7): [True: 1.11k, False: 747]
  ------------------
  472|  1.11k|    return guess;
  473|  1.11k|  }
  474|    747|  DiyFp upper_boundary = Double(guess).UpperBoundary();
  475|    747|  int comparison = CompareBufferWithDiyFp(trimmed, exponent, upper_boundary);
  476|    747|  if (comparison < 0) {
  ------------------
  |  Branch (476:7): [True: 216, False: 531]
  ------------------
  477|    216|    return guess;
  478|    531|  } else if (comparison > 0) {
  ------------------
  |  Branch (478:14): [True: 434, False: 97]
  ------------------
  479|    434|    return Double(guess).NextDouble();
  480|    434|  } else if ((Double(guess).Significand() & 1) == 0) {
  ------------------
  |  Branch (480:14): [True: 33, False: 64]
  ------------------
  481|       |    // Round towards even.
  482|     33|    return guess;
  483|     64|  } else {
  484|     64|    return Double(guess).NextDouble();
  485|     64|  }
  486|    747|}
strtod.cc:_ZN17double_conversionL19AssertTrimmedDigitsERKNS_6VectorIKcEE:
  457|  1.86k|static bool AssertTrimmedDigits(const Vector<const char>& buffer) {
  458|   126k|  for(int i = 0; i < buffer.length(); ++i) {
  ------------------
  |  Branch (458:18): [True: 124k, False: 1.86k]
  ------------------
  459|   124k|    if(!IsDigit(buffer[i])) {
  ------------------
  |  Branch (459:8): [True: 0, False: 124k]
  ------------------
  460|      0|      return false;
  461|      0|    }
  462|   124k|  }
  463|  1.86k|  return (buffer.length() == 0) || (IsNonZeroDigit(buffer[0]) && IsNonZeroDigit(buffer[buffer.length()-1]));
  ------------------
  |  Branch (463:10): [True: 68, False: 1.79k]
  |  Branch (463:37): [True: 1.79k, False: 0]
  |  Branch (463:66): [True: 1.79k, False: 0]
  ------------------
  464|  1.86k|}
strtod.cc:_ZN17double_conversionL7IsDigitEc:
  444|   124k|static bool IsDigit(const char d) {
  445|   124k|  return ('0' <= d) && (d <= '9');
  ------------------
  |  Branch (445:10): [True: 124k, False: 0]
  |  Branch (445:24): [True: 124k, False: 0]
  ------------------
  446|   124k|}
strtod.cc:_ZN17double_conversionL14IsNonZeroDigitEc:
  448|  3.59k|static bool IsNonZeroDigit(const char d) {
  449|  3.59k|  return ('1' <= d) && (d <= '9');
  ------------------
  |  Branch (449:10): [True: 3.59k, False: 0]
  |  Branch (449:24): [True: 3.59k, False: 0]
  ------------------
  450|  3.59k|}
strtod.cc:_ZN17double_conversionL12ComputeGuessENS_6VectorIKcEEiPd:
  420|  1.86k|                         double* guess) {
  421|  1.86k|  if (trimmed.length() == 0) {
  ------------------
  |  Branch (421:7): [True: 68, False: 1.79k]
  ------------------
  422|     68|    *guess = 0.0;
  423|     68|    return true;
  424|     68|  }
  425|  1.79k|  if (exponent + trimmed.length() - 1 >= kMaxDecimalPower) {
  ------------------
  |  Branch (425:7): [True: 116, False: 1.68k]
  ------------------
  426|    116|    *guess = Double::Infinity();
  427|    116|    return true;
  428|    116|  }
  429|  1.68k|  if (exponent + trimmed.length() <= kMinDecimalPower) {
  ------------------
  |  Branch (429:7): [True: 68, False: 1.61k]
  ------------------
  430|     68|    *guess = 0.0;
  431|     68|    return true;
  432|     68|  }
  433|       |
  434|  1.61k|  if (DoubleStrtod(trimmed, exponent, guess) ||
  ------------------
  |  Branch (434:7): [True: 276, False: 1.33k]
  ------------------
  435|  1.33k|      DiyFpStrtod(trimmed, exponent, guess)) {
  ------------------
  |  Branch (435:7): [True: 589, False: 748]
  ------------------
  436|    865|    return true;
  437|    865|  }
  438|    748|  if (*guess == Double::Infinity()) {
  ------------------
  |  Branch (438:7): [True: 1, False: 747]
  ------------------
  439|      1|    return true;
  440|      1|  }
  441|    747|  return false;
  442|    748|}
strtod.cc:_ZN17double_conversionL12DoubleStrtodENS_6VectorIKcEEiPd:
  192|  1.61k|                         double* result) {
  193|       |#if !defined(DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS)
  194|       |  // Avoid "unused parameter" warnings
  195|       |  (void) trimmed;
  196|       |  (void) exponent;
  197|       |  (void) result;
  198|       |  // On x86 the floating-point stack can be 64 or 80 bits wide. If it is
  199|       |  // 80 bits wide (as is the case on Linux) then double-rounding occurs and the
  200|       |  // result is not accurate.
  201|       |  // We know that Windows32 uses 64 bits and is therefore accurate.
  202|       |  return false;
  203|       |#else
  204|  1.61k|  if (trimmed.length() <= kMaxExactDoubleIntegerDecimalDigits) {
  ------------------
  |  Branch (204:7): [True: 896, False: 717]
  ------------------
  205|    896|    int read_digits;
  206|       |    // The trimmed input fits into a double.
  207|       |    // If the 10^exponent (resp. 10^-exponent) fits into a double too then we
  208|       |    // can compute the result-double simply by multiplying (resp. dividing) the
  209|       |    // two numbers.
  210|       |    // This is possible because IEEE guarantees that floating-point operations
  211|       |    // return the best possible approximation.
  212|    896|    if (exponent < 0 && -exponent < kExactPowersOfTenSize) {
  ------------------
  |  Branch (212:9): [True: 310, False: 586]
  |  Branch (212:25): [True: 73, False: 237]
  ------------------
  213|       |      // 10^-exponent fits into a double.
  214|     73|      *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
  215|     73|      DOUBLE_CONVERSION_ASSERT(read_digits == trimmed.length());
  ------------------
  |  |   47|     73|    assert(condition)
  ------------------
  |  Branch (215:7): [True: 73, False: 0]
  ------------------
  216|     73|      *result /= exact_powers_of_ten[-exponent];
  217|     73|      return true;
  218|     73|    }
  219|    823|    if (0 <= exponent && exponent < kExactPowersOfTenSize) {
  ------------------
  |  Branch (219:9): [True: 586, False: 237]
  |  Branch (219:26): [True: 148, False: 438]
  ------------------
  220|       |      // 10^exponent fits into a double.
  221|    148|      *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
  222|    148|      DOUBLE_CONVERSION_ASSERT(read_digits == trimmed.length());
  ------------------
  |  |   47|    148|    assert(condition)
  ------------------
  |  Branch (222:7): [True: 148, False: 0]
  ------------------
  223|    148|      *result *= exact_powers_of_ten[exponent];
  224|    148|      return true;
  225|    148|    }
  226|    675|    int remaining_digits =
  227|    675|        kMaxExactDoubleIntegerDecimalDigits - trimmed.length();
  228|    675|    if ((0 <= exponent) &&
  ------------------
  |  Branch (228:9): [True: 438, False: 237]
  ------------------
  229|    438|        (exponent - remaining_digits < kExactPowersOfTenSize)) {
  ------------------
  |  Branch (229:9): [True: 55, False: 383]
  ------------------
  230|       |      // The trimmed string was short and we can multiply it with
  231|       |      // 10^remaining_digits. As a result the remaining exponent now fits
  232|       |      // into a double too.
  233|     55|      *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
  234|     55|      DOUBLE_CONVERSION_ASSERT(read_digits == trimmed.length());
  ------------------
  |  |   47|     55|    assert(condition)
  ------------------
  |  Branch (234:7): [True: 55, False: 0]
  ------------------
  235|     55|      *result *= exact_powers_of_ten[remaining_digits];
  236|     55|      *result *= exact_powers_of_ten[exponent - remaining_digits];
  237|     55|      return true;
  238|     55|    }
  239|    675|  }
  240|  1.33k|  return false;
  241|  1.61k|#endif
  242|  1.61k|}
strtod.cc:_ZN17double_conversionL10ReadUint64ENS_6VectorIKcEEPi:
  152|  1.61k|                           int* number_of_read_digits) {
  153|  1.61k|  uint64_t result = 0;
  154|  1.61k|  int i = 0;
  155|  19.1k|  while (i < buffer.length() && result <= (kMaxUint64 / 10 - 1)) {
  ------------------
  |  Branch (155:10): [True: 17.8k, False: 1.27k]
  |  Branch (155:33): [True: 17.4k, False: 343]
  ------------------
  156|  17.4k|    int digit = buffer[i++] - '0';
  157|  17.4k|    DOUBLE_CONVERSION_ASSERT(0 <= digit && digit <= 9);
  ------------------
  |  |   47|  17.4k|    assert(condition)
  ------------------
  |  Branch (157:5): [True: 17.4k, False: 0]
  |  Branch (157:5): [True: 17.4k, False: 0]
  |  Branch (157:5): [True: 17.4k, False: 0]
  ------------------
  158|  17.4k|    result = 10 * result + digit;
  159|  17.4k|  }
  160|  1.61k|  *number_of_read_digits = i;
  161|  1.61k|  return result;
  162|  1.61k|}
strtod.cc:_ZN17double_conversionL11DiyFpStrtodENS_6VectorIKcEEiPd:
  272|  1.33k|                        double* result) {
  273|  1.33k|  DiyFp input;
  274|  1.33k|  int remaining_decimals;
  275|  1.33k|  ReadDiyFp(buffer, &input, &remaining_decimals);
  276|       |  // Since we may have dropped some digits the input is not accurate.
  277|       |  // If remaining_decimals is different than 0 than the error is at most
  278|       |  // .5 ulp (unit in the last place).
  279|       |  // We don't want to deal with fractions and therefore keep a common
  280|       |  // denominator.
  281|  1.33k|  const int kDenominatorLog = 3;
  282|  1.33k|  const int kDenominator = 1 << kDenominatorLog;
  283|       |  // Move the remaining decimals into the exponent.
  284|  1.33k|  exponent += remaining_decimals;
  285|  1.33k|  uint64_t error = (remaining_decimals == 0 ? 0 : kDenominator / 2);
  ------------------
  |  Branch (285:21): [True: 994, False: 343]
  ------------------
  286|       |
  287|  1.33k|  int old_e = input.e();
  288|  1.33k|  input.Normalize();
  289|  1.33k|  error <<= old_e - input.e();
  290|       |
  291|  1.33k|  DOUBLE_CONVERSION_ASSERT(exponent <= PowersOfTenCache::kMaxDecimalExponent);
  ------------------
  |  |   47|  1.33k|    assert(condition)
  ------------------
  |  Branch (291:3): [True: 1.33k, False: 0]
  ------------------
  292|  1.33k|  if (exponent < PowersOfTenCache::kMinDecimalExponent) {
  ------------------
  |  Branch (292:7): [True: 0, False: 1.33k]
  ------------------
  293|      0|    *result = 0.0;
  294|      0|    return true;
  295|      0|  }
  296|  1.33k|  DiyFp cached_power;
  297|  1.33k|  int cached_decimal_exponent;
  298|  1.33k|  PowersOfTenCache::GetCachedPowerForDecimalExponent(exponent,
  299|  1.33k|                                                     &cached_power,
  300|  1.33k|                                                     &cached_decimal_exponent);
  301|       |
  302|  1.33k|  if (cached_decimal_exponent != exponent) {
  ------------------
  |  Branch (302:7): [True: 1.22k, False: 108]
  ------------------
  303|  1.22k|    int adjustment_exponent = exponent - cached_decimal_exponent;
  304|  1.22k|    DiyFp adjustment_power = AdjustmentPowerOfTen(adjustment_exponent);
  305|  1.22k|    input.Multiply(adjustment_power);
  306|  1.22k|    if (kMaxUint64DecimalDigits - buffer.length() >= adjustment_exponent) {
  ------------------
  |  Branch (306:9): [True: 547, False: 682]
  ------------------
  307|       |      // The product of input with the adjustment power fits into a 64 bit
  308|       |      // integer.
  309|    547|      DOUBLE_CONVERSION_ASSERT(DiyFp::kSignificandSize == 64);
  ------------------
  |  |   47|    547|    assert(condition)
  ------------------
  |  Branch (309:7): [True: 547, Folded]
  ------------------
  310|    682|    } else {
  311|       |      // The adjustment power is exact. There is hence only an error of 0.5.
  312|    682|      error += kDenominator / 2;
  313|    682|    }
  314|  1.22k|  }
  315|       |
  316|  1.33k|  input.Multiply(cached_power);
  317|       |  // The error introduced by a multiplication of a*b equals
  318|       |  //   error_a + error_b + error_a*error_b/2^64 + 0.5
  319|       |  // Substituting a with 'input' and b with 'cached_power' we have
  320|       |  //   error_b = 0.5  (all cached powers have an error of less than 0.5 ulp),
  321|       |  //   error_ab = 0 or 1 / kDenominator > error_a*error_b/ 2^64
  322|  1.33k|  int error_b = kDenominator / 2;
  323|  1.33k|  int error_ab = (error == 0 ? 0 : 1);  // We round up to 1.
  ------------------
  |  Branch (323:19): [True: 635, False: 702]
  ------------------
  324|  1.33k|  int fixed_error = kDenominator / 2;
  325|  1.33k|  error += error_b + error_ab + fixed_error;
  326|       |
  327|  1.33k|  old_e = input.e();
  328|  1.33k|  input.Normalize();
  329|  1.33k|  error <<= old_e - input.e();
  330|       |
  331|       |  // See if the double's significand changes if we add/subtract the error.
  332|  1.33k|  int order_of_magnitude = DiyFp::kSignificandSize + input.e();
  333|  1.33k|  int effective_significand_size =
  334|  1.33k|      Double::SignificandSizeForOrderOfMagnitude(order_of_magnitude);
  335|  1.33k|  int precision_digits_count =
  336|  1.33k|      DiyFp::kSignificandSize - effective_significand_size;
  337|  1.33k|  if (precision_digits_count + kDenominatorLog >= DiyFp::kSignificandSize) {
  ------------------
  |  Branch (337:7): [True: 60, False: 1.27k]
  ------------------
  338|       |    // This can only happen for very small denormals. In this case the
  339|       |    // half-way multiplied by the denominator exceeds the range of an uint64.
  340|       |    // Simply shift everything to the right.
  341|     60|    int shift_amount = (precision_digits_count + kDenominatorLog) -
  342|     60|        DiyFp::kSignificandSize + 1;
  343|     60|    input.set_f(input.f() >> shift_amount);
  344|     60|    input.set_e(input.e() + shift_amount);
  345|       |    // We add 1 for the lost precision of error, and kDenominator for
  346|       |    // the lost precision of input.f().
  347|     60|    error = (error >> shift_amount) + 1 + kDenominator;
  348|     60|    precision_digits_count -= shift_amount;
  349|     60|  }
  350|       |  // We use uint64_ts now. This only works if the DiyFp uses uint64_ts too.
  351|  1.33k|  DOUBLE_CONVERSION_ASSERT(DiyFp::kSignificandSize == 64);
  ------------------
  |  |   47|  1.33k|    assert(condition)
  ------------------
  |  Branch (351:3): [True: 1.33k, Folded]
  ------------------
  352|  1.33k|  DOUBLE_CONVERSION_ASSERT(precision_digits_count < 64);
  ------------------
  |  |   47|  1.33k|    assert(condition)
  ------------------
  |  Branch (352:3): [True: 1.33k, False: 0]
  ------------------
  353|  1.33k|  uint64_t one64 = 1;
  354|  1.33k|  uint64_t precision_bits_mask = (one64 << precision_digits_count) - 1;
  355|  1.33k|  uint64_t precision_bits = input.f() & precision_bits_mask;
  356|  1.33k|  uint64_t half_way = one64 << (precision_digits_count - 1);
  357|  1.33k|  precision_bits *= kDenominator;
  358|  1.33k|  half_way *= kDenominator;
  359|  1.33k|  DiyFp rounded_input(input.f() >> precision_digits_count,
  360|  1.33k|                      input.e() + precision_digits_count);
  361|  1.33k|  if (precision_bits >= half_way + error) {
  ------------------
  |  Branch (361:7): [True: 269, False: 1.06k]
  ------------------
  362|    269|    rounded_input.set_f(rounded_input.f() + 1);
  363|    269|  }
  364|       |  // If the last_bits are too close to the half-way case than we are too
  365|       |  // inaccurate and round down. In this case we return false so that we can
  366|       |  // fall back to a more precise algorithm.
  367|       |
  368|  1.33k|  *result = Double(rounded_input).value();
  369|  1.33k|  if (half_way - error < precision_bits && precision_bits < half_way + error) {
  ------------------
  |  Branch (369:7): [True: 1.01k, False: 320]
  |  Branch (369:44): [True: 748, False: 269]
  ------------------
  370|       |    // Too imprecise. The caller will have to fall back to a slower version.
  371|       |    // However the returned number is guaranteed to be either the correct
  372|       |    // double, or the next-lower double.
  373|    748|    return false;
  374|    748|  } else {
  375|    589|    return true;
  376|    589|  }
  377|  1.33k|}
strtod.cc:_ZN17double_conversionL9ReadDiyFpENS_6VectorIKcEEPNS_5DiyFpEPi:
  171|  1.33k|                      int* remaining_decimals) {
  172|  1.33k|  int read_digits;
  173|  1.33k|  uint64_t significand = ReadUint64(buffer, &read_digits);
  174|  1.33k|  if (buffer.length() == read_digits) {
  ------------------
  |  Branch (174:7): [True: 994, False: 343]
  ------------------
  175|    994|    *result = DiyFp(significand, 0);
  176|    994|    *remaining_decimals = 0;
  177|    994|  } else {
  178|       |    // Round the significand.
  179|    343|    if (buffer[read_digits] >= '5') {
  ------------------
  |  Branch (179:9): [True: 94, False: 249]
  ------------------
  180|     94|      significand++;
  181|     94|    }
  182|       |    // Compute the binary exponent.
  183|    343|    int exponent = 0;
  184|    343|    *result = DiyFp(significand, exponent);
  185|    343|    *remaining_decimals = buffer.length() - read_digits;
  186|    343|  }
  187|  1.33k|}
strtod.cc:_ZN17double_conversionL20AdjustmentPowerOfTenEi:
  247|  1.22k|static DiyFp AdjustmentPowerOfTen(int exponent) {
  248|  1.22k|  DOUBLE_CONVERSION_ASSERT(0 < exponent);
  ------------------
  |  |   47|  1.22k|    assert(condition)
  ------------------
  |  Branch (248:3): [True: 1.22k, False: 0]
  ------------------
  249|  1.22k|  DOUBLE_CONVERSION_ASSERT(exponent < PowersOfTenCache::kDecimalExponentDistance);
  ------------------
  |  |   47|  1.22k|    assert(condition)
  ------------------
  |  Branch (249:3): [True: 1.22k, False: 0]
  ------------------
  250|       |  // Simply hardcode the remaining powers for the given decimal exponent
  251|       |  // distance.
  252|  1.22k|  DOUBLE_CONVERSION_ASSERT(PowersOfTenCache::kDecimalExponentDistance == 8);
  ------------------
  |  |   47|  1.22k|    assert(condition)
  ------------------
  |  Branch (252:3): [True: 1.22k, Folded]
  ------------------
  253|  1.22k|  switch (exponent) {
  254|    176|    case 1: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xa0000000, 00000000), -60);
  ------------------
  |  |  195|    176|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (254:5): [True: 176, False: 1.05k]
  ------------------
  255|    108|    case 2: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc8000000, 00000000), -57);
  ------------------
  |  |  195|    108|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (255:5): [True: 108, False: 1.12k]
  ------------------
  256|    113|    case 3: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xfa000000, 00000000), -54);
  ------------------
  |  |  195|    113|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (256:5): [True: 113, False: 1.11k]
  ------------------
  257|    384|    case 4: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0x9c400000, 00000000), -50);
  ------------------
  |  |  195|    384|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (257:5): [True: 384, False: 845]
  ------------------
  258|    144|    case 5: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc3500000, 00000000), -47);
  ------------------
  |  |  195|    144|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (258:5): [True: 144, False: 1.08k]
  ------------------
  259|    123|    case 6: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xf4240000, 00000000), -44);
  ------------------
  |  |  195|    123|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (259:5): [True: 123, False: 1.10k]
  ------------------
  260|    181|    case 7: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0x98968000, 00000000), -40);
  ------------------
  |  |  195|    181|#define DOUBLE_CONVERSION_UINT64_2PART_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
  ------------------
  |  Branch (260:5): [True: 181, False: 1.04k]
  ------------------
  261|      0|    default:
  ------------------
  |  Branch (261:5): [True: 0, False: 1.22k]
  ------------------
  262|      0|      DOUBLE_CONVERSION_UNREACHABLE();
  ------------------
  |  |   77|      0|#define DOUBLE_CONVERSION_UNREACHABLE()   (abort())
  ------------------
  263|  1.22k|  }
  264|  1.22k|}
strtod.cc:_ZN17double_conversionL22CompareBufferWithDiyFpENS_6VectorIKcEEiNS_5DiyFpE:
  390|    747|                                  DiyFp diy_fp) {
  391|    747|  DOUBLE_CONVERSION_ASSERT(buffer.length() + exponent <= kMaxDecimalPower + 1);
  ------------------
  |  |   47|    747|    assert(condition)
  ------------------
  |  Branch (391:3): [True: 747, False: 0]
  ------------------
  392|    747|  DOUBLE_CONVERSION_ASSERT(buffer.length() + exponent > kMinDecimalPower);
  ------------------
  |  |   47|    747|    assert(condition)
  ------------------
  |  Branch (392:3): [True: 747, False: 0]
  ------------------
  393|    747|  DOUBLE_CONVERSION_ASSERT(buffer.length() <= kMaxSignificantDecimalDigits);
  ------------------
  |  |   47|    747|    assert(condition)
  ------------------
  |  Branch (393:3): [True: 747, False: 0]
  ------------------
  394|       |  // Make sure that the Bignum will be able to hold all our numbers.
  395|       |  // Our Bignum implementation has a separate field for exponents. Shifts will
  396|       |  // consume at most one bigit (< 64 bits).
  397|       |  // ln(10) == 3.3219...
  398|    747|  DOUBLE_CONVERSION_ASSERT(((kMaxDecimalPower + 1) * 333 / 100) < Bignum::kMaxSignificantBits);
  ------------------
  |  |   47|    747|    assert(condition)
  ------------------
  |  Branch (398:3): [True: 747, Folded]
  ------------------
  399|    747|  Bignum buffer_bignum;
  400|    747|  Bignum diy_fp_bignum;
  401|    747|  buffer_bignum.AssignDecimalString(buffer);
  402|    747|  diy_fp_bignum.AssignUInt64(diy_fp.f());
  403|    747|  if (exponent >= 0) {
  ------------------
  |  Branch (403:7): [True: 420, False: 327]
  ------------------
  404|    420|    buffer_bignum.MultiplyByPowerOfTen(exponent);
  405|    420|  } else {
  406|    327|    diy_fp_bignum.MultiplyByPowerOfTen(-exponent);
  407|    327|  }
  408|    747|  if (diy_fp.e() > 0) {
  ------------------
  |  Branch (408:7): [True: 408, False: 339]
  ------------------
  409|    408|    diy_fp_bignum.ShiftLeft(diy_fp.e());
  410|    408|  } else {
  411|    339|    buffer_bignum.ShiftLeft(-diy_fp.e());
  412|    339|  }
  413|    747|  return Bignum::Compare(buffer_bignum, diy_fp_bignum);
  414|    747|}

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

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

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

