LLVMFuzzerTestOneInput:
   12|  4.76k|{
   13|  4.76k|    std::string s(reinterpret_cast<const char*>(data), size);
   14|  4.76k|    std::istringstream is(s);
   15|       |
   16|  4.76k|    default_json_visitor visitor;
   17|       |
   18|  4.76k|    msgpack_stream_reader reader(is, visitor);
   19|  4.76k|    std::error_code ec;
   20|  4.76k|    reader.read(ec);
   21|       |
   22|  4.76k|    return 0;
   23|  4.76k|}

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|   183k|        {
 1009|   183k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 32.2k, False: 150k]
  ------------------
 1010|  32.2k|            {
 1011|  32.2k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1011:21): [True: 28.8k, False: 3.42k]
  |  Branch (1011:86): [True: 25.6k, False: 3.21k]
  ------------------
 1012|  25.6k|                {
 1013|  25.6k|                    key_buffer_.push_back(',');
 1014|  25.6k|                }
 1015|  32.2k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1016|  32.2k|                key_buffer_.push_back('[');
 1017|  32.2k|            }
 1018|   150k|            else
 1019|   150k|            {
 1020|   150k|                switch (level_stack_.back().target_kind())
 1021|   150k|                {
 1022|   137k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 137k, False: 13.6k]
  ------------------
 1023|   137k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 109k, False: 27.4k]
  |  Branch (1023:65): [True: 31.2k, False: 78.5k]
  ------------------
 1024|  31.2k|                        {
 1025|  31.2k|                            key_buffer_.push_back(',');
 1026|  31.2k|                        }
 1027|   137k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|   137k|                        key_buffer_.push_back('[');
 1029|   137k|                        break;
 1030|  13.6k|                    default:
  ------------------
  |  Branch (1030:21): [True: 13.6k, False: 137k]
  ------------------
 1031|  13.6k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|  13.6k|                        destination_->begin_array(length, tag, context, ec);
 1033|  13.6k|                        break;
 1034|   150k|                }
 1035|   150k|            }
 1036|   183k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   183k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|   183k|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|  95.4M|            {
  816|  95.4M|                return even_odd_ == 0;
  817|  95.4M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|  54.1M|            {
  826|  54.1M|                return target_kind_;
  827|  54.1M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|  22.8M|            {
  831|  22.8M|                return count_;
  832|  22.8M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|   396k|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 208k, False: 187k]
  ------------------
  799|   396k|            {
  800|   396k|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|  56.0M|            {
  821|  56.0M|                return structure_kind_ == json_structure_kind::object;
  822|  56.0M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|   161k|        {
 1041|   161k|            switch (level_stack_.back().target_kind())
 1042|   161k|            {
 1043|   157k|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 157k, False: 4.26k]
  ------------------
 1044|   157k|                    key_buffer_.push_back(']');
 1045|   157k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|   157k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 157k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1046|   157k|                    level_stack_.pop_back();
 1047|   157k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 2.78k, False: 154k]
  ------------------
 1048|  2.78k|                    {
 1049|  2.78k|                        destination_->key(key_buffer_, context, ec);
 1050|  2.78k|                        key_buffer_.clear();
 1051|  2.78k|                    }
 1052|   154k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 27.0k, False: 127k]
  ------------------
 1053|  27.0k|                    {
 1054|  27.0k|                        key_buffer_.push_back(':');
 1055|  27.0k|                    }
 1056|   157k|                    level_stack_.back().advance();
 1057|   157k|                    break;
 1058|  4.26k|                default:
  ------------------
  |  Branch (1058:17): [True: 4.26k, False: 157k]
  ------------------
 1059|  4.26k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  4.26k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 4.26k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1060|  4.26k|                    level_stack_.pop_back();
 1061|  4.26k|                    level_stack_.back().advance();
 1062|  4.26k|                    destination_->end_array(context, ec);
 1063|  4.26k|                    break;
 1064|   161k|            }
 1065|   161k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   161k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|   161k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|  33.2M|            {
  804|  33.2M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 23.6M, False: 9.60M]
  ------------------
  805|  23.6M|                {
  806|  23.6M|                    ++count_;
  807|  23.6M|                }
  808|  33.2M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 19.2M, False: 14.0M]
  ------------------
  809|  19.2M|                {
  810|  19.2M|                    even_odd_ = !even_odd_;
  811|  19.2M|                }
  812|  33.2M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  8.49M|        {
 1234|  8.49M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 2.70M, False: 5.78M]
  |  Branch (1234:49): [True: 5.15M, False: 637k]
  ------------------
 1235|  7.86M|            {
 1236|  7.86M|                key_.clear();
 1237|  7.86M|                jsoncons::from_integer(value,key_);
 1238|  7.86M|            }
 1239|       |
 1240|  8.49M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 2.70M, False: 5.78M]
  ------------------
 1241|  2.70M|            {
 1242|  2.70M|                switch (level_stack_.back().target_kind())
 1243|  2.70M|                {
 1244|  2.62M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 2.62M, False: 88.6k]
  ------------------
 1245|  2.62M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 2.59M, False: 26.6k]
  ------------------
 1246|  2.59M|                        {
 1247|  2.59M|                            key_buffer_.push_back(',');
 1248|  2.59M|                        }
 1249|  2.62M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|  2.62M|                        key_buffer_.push_back(':');
 1251|  2.62M|                        break;
 1252|  88.6k|                    default:
  ------------------
  |  Branch (1252:21): [True: 88.6k, False: 2.62M]
  ------------------
 1253|  88.6k|                        destination_->key(key_, context, ec);
 1254|  88.6k|                        break;
 1255|  2.70M|                }
 1256|  2.70M|            }
 1257|  5.78M|            else
 1258|  5.78M|            {
 1259|  5.78M|                switch (level_stack_.back().target_kind())
 1260|  5.78M|                {
 1261|  5.15M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 5.15M, False: 637k]
  ------------------
 1262|  5.15M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 2.52M, False: 2.62M]
  |  Branch (1262:65): [True: 2.51M, False: 5.50k]
  ------------------
 1263|  2.51M|                        {
 1264|  2.51M|                            key_buffer_.push_back(',');
 1265|  2.51M|                        }
 1266|  5.15M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|  5.15M|                        break;
 1268|   637k|                    default:
  ------------------
  |  Branch (1268:21): [True: 637k, False: 5.15M]
  ------------------
 1269|   637k|                        destination_->uint64_value(value, tag, context, ec);
 1270|   637k|                        break;
 1271|  5.78M|                }
 1272|  5.78M|            }
 1273|       |
 1274|  8.49M|            level_stack_.back().advance();
 1275|  8.49M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  8.49M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  8.49M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|  4.79M|        {
 1280|  4.79M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 1.29M, False: 3.49M]
  |  Branch (1280:49): [True: 3.48M, False: 14.8k]
  ------------------
 1281|  4.77M|            {
 1282|  4.77M|                key_.clear();
 1283|  4.77M|                jsoncons::from_integer(value,key_);
 1284|  4.77M|            }
 1285|       |
 1286|  4.79M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 1.29M, False: 3.49M]
  ------------------
 1287|  1.29M|            {
 1288|  1.29M|                switch (level_stack_.back().target_kind())
 1289|  1.29M|                {
 1290|  1.29M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 1.29M, False: 7.14k]
  ------------------
 1291|  1.29M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 1.28M, False: 5.55k]
  ------------------
 1292|  1.28M|                        {
 1293|  1.28M|                            key_buffer_.push_back(',');
 1294|  1.28M|                        }
 1295|  1.29M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|  1.29M|                        key_buffer_.push_back(':');
 1297|  1.29M|                        break;
 1298|  7.14k|                    default:
  ------------------
  |  Branch (1298:21): [True: 7.14k, False: 1.29M]
  ------------------
 1299|  7.14k|                        destination_->key(key_, context, ec);
 1300|  7.14k|                        break;
 1301|  1.29M|                }
 1302|  1.29M|            }
 1303|  3.49M|            else
 1304|  3.49M|            {
 1305|  3.49M|                switch (level_stack_.back().target_kind())
 1306|  3.49M|                {
 1307|  3.48M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 3.48M, False: 14.8k]
  ------------------
 1308|  3.48M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 2.17M, False: 1.30M]
  |  Branch (1308:65): [True: 2.16M, False: 4.67k]
  ------------------
 1309|  2.16M|                        {
 1310|  2.16M|                            key_buffer_.push_back(',');
 1311|  2.16M|                        }
 1312|  3.48M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|  3.48M|                        break;
 1314|  14.8k|                    default:
  ------------------
  |  Branch (1314:21): [True: 14.8k, False: 3.48M]
  ------------------
 1315|  14.8k|                        destination_->int64_value(value, tag, context, ec);
 1316|  14.8k|                        break;
 1317|  3.49M|                }
 1318|  3.49M|            }
 1319|       |
 1320|  4.79M|            level_stack_.back().advance();
 1321|  4.79M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.79M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|  4.79M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1374|  82.2k|        {
 1375|  82.2k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1375:17): [True: 33.2k, False: 49.0k]
  |  Branch (1375:49): [True: 46.9k, False: 2.06k]
  ------------------
 1376|  80.2k|            {
 1377|  80.2k|                key_.clear();
 1378|  80.2k|                string_sink<string_type> sink(key_);
 1379|  80.2k|                jsoncons::write_double f{float_chars_format::general,0};
 1380|  80.2k|                f(value, sink);
 1381|  80.2k|            }
 1382|       |
 1383|  82.2k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1383:17): [True: 33.2k, False: 49.0k]
  ------------------
 1384|  33.2k|            {
 1385|  33.2k|                switch (level_stack_.back().target_kind())
 1386|  33.2k|                {
 1387|  30.4k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1387:21): [True: 30.4k, False: 2.81k]
  ------------------
 1388|  30.4k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1388:29): [True: 21.5k, False: 8.84k]
  ------------------
 1389|  21.5k|                        {
 1390|  21.5k|                            key_buffer_.push_back(',');
 1391|  21.5k|                        }
 1392|  30.4k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1393|  30.4k|                        key_buffer_.push_back(':');
 1394|  30.4k|                        break;
 1395|  2.81k|                    default:
  ------------------
  |  Branch (1395:21): [True: 2.81k, False: 30.4k]
  ------------------
 1396|  2.81k|                        destination_->key(key_, context, ec);
 1397|  2.81k|                        break;
 1398|  33.2k|                }
 1399|  33.2k|            }
 1400|  49.0k|            else
 1401|  49.0k|            {
 1402|  49.0k|                switch (level_stack_.back().target_kind())
 1403|  49.0k|                {
 1404|  46.9k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1404:21): [True: 46.9k, False: 2.06k]
  ------------------
 1405|  46.9k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1405:29): [True: 23.6k, False: 23.3k]
  |  Branch (1405:65): [True: 19.9k, False: 3.65k]
  ------------------
 1406|  19.9k|                        {
 1407|  19.9k|                            key_buffer_.push_back(',');
 1408|  19.9k|                        }
 1409|  46.9k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1410|  46.9k|                        break;
 1411|  2.06k|                    default:
  ------------------
  |  Branch (1411:21): [True: 2.06k, False: 46.9k]
  ------------------
 1412|  2.06k|                        destination_->double_value(value, tag, context, ec);
 1413|  2.06k|                        break;
 1414|  49.0k|                }
 1415|  49.0k|            }
 1416|       |
 1417|  82.2k|            level_stack_.back().advance();
 1418|  82.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  82.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1419|  82.2k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|    932|        {
  882|    932|            destination_->flush();
  883|    932|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|   208k|        {
  915|   208k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 110k, False: 98.0k]
  ------------------
  916|   110k|            {
  917|   110k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 106k, False: 3.57k]
  |  Branch (917:86): [True: 28.9k, False: 77.6k]
  ------------------
  918|  28.9k|                {
  919|  28.9k|                    key_buffer_.push_back(',');
  920|  28.9k|                }
  921|   110k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|   110k|                key_buffer_.push_back('{');
  923|   110k|            }
  924|  98.0k|            else
  925|  98.0k|            {
  926|  98.0k|                switch (level_stack_.back().target_kind())
  927|  98.0k|                {
  928|  88.9k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 88.9k, False: 9.13k]
  ------------------
  929|  88.9k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 42.9k, False: 46.0k]
  |  Branch (929:65): [True: 40.4k, False: 2.48k]
  ------------------
  930|  40.4k|                        {
  931|  40.4k|                            key_buffer_.push_back(',');
  932|  40.4k|                        }
  933|  88.9k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|  88.9k|                        key_buffer_.push_back('{');
  935|  88.9k|                        break;
  936|  9.13k|                    default:
  ------------------
  |  Branch (936:21): [True: 9.13k, False: 88.9k]
  ------------------
  937|  9.13k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|  9.13k|                        destination_->begin_object(length, tag, context, ec);
  939|  9.13k|                        break;
  940|  98.0k|                }
  941|  98.0k|            }
  942|   208k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   208k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|   208k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|   177k|        {
  947|   177k|            switch (level_stack_.back().target_kind())
  948|   177k|            {
  949|   173k|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 173k, False: 3.58k]
  ------------------
  950|   173k|                    key_buffer_.push_back('}');
  951|   173k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|   173k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 173k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  952|   173k|                    level_stack_.pop_back();
  953|       |                    
  954|   173k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 2.64k, False: 171k]
  ------------------
  955|  2.64k|                    {
  956|  2.64k|                        destination_->key(key_buffer_,context, ec);
  957|  2.64k|                        key_buffer_.clear();
  958|  2.64k|                    }
  959|   171k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 91.4k, False: 79.5k]
  ------------------
  960|  91.4k|                    {
  961|  91.4k|                        key_buffer_.push_back(':');
  962|  91.4k|                    }
  963|   173k|                    level_stack_.back().advance();
  964|   173k|                    break;
  965|  3.58k|                default:
  ------------------
  |  Branch (965:17): [True: 3.58k, False: 173k]
  ------------------
  966|  3.58k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  3.58k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 3.58k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  967|  3.58k|                    level_stack_.pop_back();
  968|  3.58k|                    level_stack_.back().advance();
  969|  3.58k|                    destination_->end_object(context, ec);
  970|  3.58k|                    break;
  971|   177k|            }
  972|   177k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   177k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|   177k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|   142k|        {
 1476|   142k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 44.3k, False: 97.7k]
  |  Branch (1476:49): [True: 94.8k, False: 2.90k]
  ------------------
 1477|   139k|            {
 1478|   139k|                key_.clear(); 
 1479|   139k|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|   139k|            }
 1481|       |
 1482|   142k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 44.3k, False: 97.7k]
  ------------------
 1483|  44.3k|            {
 1484|  44.3k|                switch (level_stack_.back().target_kind())
 1485|  44.3k|                {
 1486|  43.3k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 43.3k, False: 1.02k]
  ------------------
 1487|  43.3k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 39.4k, False: 3.86k]
  ------------------
 1488|  39.4k|                        {
 1489|  39.4k|                            key_buffer_.push_back(',');
 1490|  39.4k|                        }
 1491|  43.3k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|  43.3k|                        key_buffer_.push_back(':');
 1493|  43.3k|                        break;
 1494|  1.02k|                    default:
  ------------------
  |  Branch (1494:21): [True: 1.02k, False: 43.3k]
  ------------------
 1495|  1.02k|                        destination_->key(key_, context, ec);
 1496|  1.02k|                        break;
 1497|  44.3k|                }
 1498|  44.3k|            }
 1499|  97.7k|            else
 1500|  97.7k|            {
 1501|  97.7k|                switch (level_stack_.back().target_kind())
 1502|  97.7k|                {
 1503|  94.8k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 94.8k, False: 2.90k]
  ------------------
 1504|  94.8k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 54.5k, False: 40.3k]
  |  Branch (1504:65): [True: 53.7k, False: 778]
  ------------------
 1505|  53.7k|                        {
 1506|  53.7k|                            key_buffer_.push_back(',');
 1507|  53.7k|                        }
 1508|  94.8k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|  94.8k|                        break;
 1510|  2.90k|                    default:
  ------------------
  |  Branch (1510:21): [True: 2.90k, False: 94.8k]
  ------------------
 1511|  2.90k|                        destination_->null_value(tag, context, ec);
 1512|  2.90k|                        break;
 1513|  97.7k|                }
 1514|  97.7k|            }
 1515|       |
 1516|   142k|            level_stack_.back().advance();
 1517|   142k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   142k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|   142k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1422|  13.8M|        {
 1423|  13.8M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1423:17): [True: 4.14M, False: 9.75M]
  |  Branch (1423:49): [True: 9.72M, False: 26.0k]
  ------------------
 1424|  13.8M|            {
 1425|  13.8M|                key_.clear(); 
 1426|  13.8M|                if (value)
  ------------------
  |  Branch (1426:21): [True: 10.5M, False: 3.32M]
  ------------------
 1427|  10.5M|                {
 1428|  10.5M|                    key_.insert(key_.begin(), json_literals<char_type>::true_literal.begin(), json_literals<char_type>::true_literal.end());
 1429|  10.5M|                }
 1430|  3.32M|                else
 1431|  3.32M|                {
 1432|  3.32M|                    key_.insert(key_.begin(), json_literals<char_type>::false_literal.begin(), json_literals<char_type>::false_literal.end());
 1433|  3.32M|                }
 1434|  13.8M|            }
 1435|       |
 1436|  13.8M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1436:17): [True: 4.14M, False: 9.75M]
  ------------------
 1437|  4.14M|            {
 1438|  4.14M|                switch (level_stack_.back().target_kind())
 1439|  4.14M|                {
 1440|  4.12M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1440:21): [True: 4.12M, False: 13.8k]
  ------------------
 1441|  4.12M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1441:29): [True: 4.11M, False: 8.99k]
  ------------------
 1442|  4.11M|                        {
 1443|  4.11M|                            key_buffer_.push_back(',');
 1444|  4.11M|                        }
 1445|  4.12M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1446|  4.12M|                        key_buffer_.push_back(':');
 1447|  4.12M|                        break;
 1448|  13.8k|                    default:
  ------------------
  |  Branch (1448:21): [True: 13.8k, False: 4.12M]
  ------------------
 1449|  13.8k|                        destination_->key(key_, context, ec);
 1450|  13.8k|                        break;
 1451|  4.14M|                }
 1452|  4.14M|            }
 1453|  9.75M|            else
 1454|  9.75M|            {
 1455|  9.75M|                switch (level_stack_.back().target_kind())
 1456|  9.75M|                {
 1457|  9.72M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1457:21): [True: 9.72M, False: 26.0k]
  ------------------
 1458|  9.72M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1458:29): [True: 5.56M, False: 4.16M]
  |  Branch (1458:65): [True: 5.55M, False: 4.86k]
  ------------------
 1459|  5.55M|                        {
 1460|  5.55M|                            key_buffer_.push_back(',');
 1461|  5.55M|                        }
 1462|  9.72M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1463|  9.72M|                        break;
 1464|  26.0k|                    default:
  ------------------
  |  Branch (1464:21): [True: 26.0k, False: 9.72M]
  ------------------
 1465|  26.0k|                        destination_->bool_value(value, tag, context, ec);
 1466|  26.0k|                        break;
 1467|  9.75M|                }
 1468|  9.75M|            }
 1469|       |
 1470|  13.8M|            level_stack_.back().advance();
 1471|  13.8M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  13.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1472|  13.8M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|  4.31M|        {
 1073|  4.31M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 1.09M, False: 3.22M]
  ------------------
 1074|  1.09M|            {
 1075|  1.09M|                switch (level_stack_.back().target_kind())
 1076|  1.09M|                {
 1077|  1.08M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 1.08M, False: 3.32k]
  ------------------
 1078|  1.08M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 1.08M, False: 3.08k]
  ------------------
 1079|  1.08M|                        {
 1080|  1.08M|                            key_buffer_.push_back(',');
 1081|  1.08M|                        }
 1082|  1.08M|                        key_buffer_.push_back('\"');
 1083|  1.08M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|  1.08M|                        key_buffer_.push_back('\"');
 1085|  1.08M|                        key_buffer_.push_back(':');
 1086|  1.08M|                        break;
 1087|  3.32k|                    default:
  ------------------
  |  Branch (1087:21): [True: 3.32k, False: 1.08M]
  ------------------
 1088|  3.32k|                        destination_->key(value, context, ec);
 1089|  3.32k|                        break;
 1090|  1.09M|                }
 1091|  1.09M|            }
 1092|  3.22M|            else
 1093|  3.22M|            {
 1094|  3.22M|                switch (level_stack_.back().target_kind())
 1095|  3.22M|                {
 1096|  3.21M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 3.21M, False: 7.56k]
  ------------------
 1097|  3.21M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 2.12M, False: 1.09M]
  |  Branch (1097:65): [True: 2.12M, False: 1.24k]
  ------------------
 1098|  2.12M|                        {
 1099|  2.12M|                            key_buffer_.push_back(',');
 1100|  2.12M|                        }
 1101|  3.21M|                        key_buffer_.push_back('\"');
 1102|  3.21M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|  3.21M|                        key_buffer_.push_back('\"');
 1104|  3.21M|                        break;
 1105|  7.56k|                    default:
  ------------------
  |  Branch (1105:21): [True: 7.56k, False: 3.21M]
  ------------------
 1106|  7.56k|                        destination_->string_value(value, tag, context, ec);
 1107|  7.56k|                        break;
 1108|  3.22M|                }
 1109|  3.22M|            }
 1110|       |
 1111|  4.31M|            level_stack_.back().advance();
 1112|  4.31M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.31M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|  4.31M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  17.9k|        {
 1120|  17.9k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 8.12k, False: 9.84k]
  |  Branch (1120:49): [True: 8.95k, False: 891]
  ------------------
 1121|  17.0k|            {
 1122|  17.0k|                key_.clear();
 1123|  17.0k|                switch (tag)
 1124|  17.0k|                {
 1125|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 0, False: 17.0k]
  ------------------
 1126|      0|                        bytes_to_base64(value.begin(), value.end(), key_);
 1127|      0|                        break;
 1128|      0|                    case semantic_tag::base16:
  ------------------
  |  Branch (1128:21): [True: 0, False: 17.0k]
  ------------------
 1129|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|      0|                        break;
 1131|  17.0k|                    default:
  ------------------
  |  Branch (1131:21): [True: 17.0k, False: 0]
  ------------------
 1132|  17.0k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  17.0k|                        break;
 1134|  17.0k|                }
 1135|  17.0k|            }
 1136|       |
 1137|  17.9k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 8.12k, False: 9.84k]
  ------------------
 1138|  8.12k|            {
 1139|  8.12k|                switch (level_stack_.back().target_kind())
 1140|  8.12k|                {
 1141|  6.84k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 6.84k, False: 1.28k]
  ------------------
 1142|  6.84k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 4.29k, False: 2.55k]
  ------------------
 1143|  4.29k|                        {
 1144|  4.29k|                            key_buffer_.push_back(',');
 1145|  4.29k|                        }
 1146|  6.84k|                        key_buffer_.push_back('\"');
 1147|  6.84k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|  6.84k|                        key_buffer_.push_back('\"');
 1149|  6.84k|                        key_buffer_.push_back(':');
 1150|  6.84k|                        break;
 1151|  1.28k|                    default:
  ------------------
  |  Branch (1151:21): [True: 1.28k, False: 6.84k]
  ------------------
 1152|  1.28k|                        destination_->key(key_, context, ec);
 1153|  1.28k|                        break;
 1154|  8.12k|                }
 1155|  8.12k|            }
 1156|  9.84k|            else
 1157|  9.84k|            {
 1158|  9.84k|                switch (level_stack_.back().target_kind())
 1159|  9.84k|                {
 1160|  8.95k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 8.95k, False: 891]
  ------------------
 1161|  8.95k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 3.13k, False: 5.81k]
  |  Branch (1161:65): [True: 2.62k, False: 516]
  ------------------
 1162|  2.62k|                        {
 1163|  2.62k|                            key_buffer_.push_back(',');
 1164|  2.62k|                        }
 1165|  8.95k|                        key_buffer_.push_back('\"');
 1166|  8.95k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  8.95k|                        key_buffer_.push_back('\"');
 1168|  8.95k|                        break;
 1169|    891|                    default:
  ------------------
  |  Branch (1169:21): [True: 891, False: 8.95k]
  ------------------
 1170|    891|                        destination_->byte_string_value(value, tag, context, ec);
 1171|    891|                        break;
 1172|  9.84k|                }
 1173|  9.84k|            }
 1174|       |
 1175|  17.9k|            level_stack_.back().advance();
 1176|  17.9k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  17.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  17.9k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|  1.14M|        {
 1184|  1.14M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 159k, False: 986k]
  |  Branch (1184:49): [True: 839k, False: 147k]
  ------------------
 1185|   998k|            {
 1186|   998k|                key_.clear();
 1187|   998k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|   998k|            }
 1189|       |
 1190|  1.14M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 159k, False: 986k]
  ------------------
 1191|   159k|            {
 1192|   159k|                switch (level_stack_.back().target_kind())
 1193|   159k|                {
 1194|   157k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 157k, False: 1.58k]
  ------------------
 1195|   157k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 150k, False: 7.02k]
  ------------------
 1196|   150k|                        {
 1197|   150k|                            key_buffer_.push_back(',');
 1198|   150k|                        }
 1199|   157k|                        key_buffer_.push_back('\"');
 1200|   157k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|   157k|                        key_buffer_.push_back('\"');
 1202|   157k|                        key_buffer_.push_back(':');
 1203|   157k|                        break;
 1204|  1.58k|                    default:
  ------------------
  |  Branch (1204:21): [True: 1.58k, False: 157k]
  ------------------
 1205|  1.58k|                        destination_->key(key_, context, ec);
 1206|  1.58k|                        break;
 1207|   159k|                }
 1208|   159k|            }
 1209|   986k|            else
 1210|   986k|            {
 1211|   986k|                switch (level_stack_.back().target_kind())
 1212|   986k|                {
 1213|   839k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 839k, False: 147k]
  ------------------
 1214|   839k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 687k, False: 151k]
  |  Branch (1214:65): [True: 686k, False: 922]
  ------------------
 1215|   686k|                        {
 1216|   686k|                            key_buffer_.push_back(',');
 1217|   686k|                        }
 1218|   839k|                        key_buffer_.push_back('\"');
 1219|   839k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|   839k|                        key_buffer_.push_back('\"');
 1221|   839k|                        break;
 1222|   147k|                    default:
  ------------------
  |  Branch (1222:21): [True: 147k, False: 839k]
  ------------------
 1223|   147k|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|   147k|                        break;
 1225|   986k|                }
 1226|   986k|            }
 1227|       |
 1228|  1.14M|            level_stack_.back().advance();
 1229|  1.14M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.14M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|  1.14M|        }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|   183k|    {
  295|   183k|        visit_begin_array(length, tag, context, ec);
  296|   183k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   183k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|   183k|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|  8.49M|    {
  364|  8.49M|        visit_uint64(value, tag, context, ec);
  365|  8.49M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  8.49M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  8.49M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|   161k|    {
  301|   161k|        visit_end_array(context, ec);
  302|   161k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   161k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|   161k|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|  4.79M|    {
  373|  4.79M|        visit_int64(value, tag, context, ec);
  374|  4.79M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.79M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|  4.79M|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  390|  82.2k|    {
  391|  82.2k|        visit_double(value, tag, context, ec);
  392|  82.2k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  82.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  393|  82.2k|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|  4.76k|            : destination_(std::addressof(visitor)), 
  856|  4.76k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|  4.76k|        {
  858|  4.76k|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|  4.76k|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|  4.76k|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|   208k|    {
  277|   208k|        visit_begin_object(length, tag, context, ec);
  278|   208k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   208k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|   208k|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|  4.31M|    {
  333|  4.31M|        visit_string(value, tag, context, ec);
  334|  4.31M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.31M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|  4.31M|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|   142k|    {
  315|   142k|        visit_null(tag, context, ec);
  316|   142k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   142k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|   142k|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  323|  13.8M|    {
  324|  13.8M|        visit_bool(value, tag, context, ec);
  325|  13.8M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  13.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  13.8M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  17.9k|    {
  344|  17.9k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  17.9k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  17.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  17.9k|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|  1.14M|    {
  355|  1.14M|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|  1.14M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.14M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|  1.14M|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|   177k|    {
  283|   177k|        visit_end_object(context, ec);
  284|   177k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   177k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|   177k|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|    932|    {
   58|    932|        visit_flush();
   59|    932|    }

_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  9.52k|        basic_default_json_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  9.52k|        basic_json_visitor() = default;
_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  14.2k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  560|  13.6k|        {
  561|  13.6k|            visit_begin_array(tag, context, ec);
  562|  13.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  13.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  563|  13.6k|        }
_ZN8jsoncons26basic_default_json_visitorIcE15visit_end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  833|  4.26k|        {
  834|  4.26k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.26k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  835|  4.26k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  858|   637k|        {
  859|   637k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   637k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  860|   637k|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  863|  14.8k|        {
  864|  14.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  14.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  865|  14.8k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  873|  2.06k|        {
  874|  2.06k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.06k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  875|  2.06k|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_flushEv:
  814|    932|        {
  815|    932|        }
_ZN8jsoncons26basic_default_json_visitorIcE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  818|  9.13k|        {
  819|  9.13k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  9.13k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  820|  9.13k|        }
_ZN8jsoncons18basic_json_visitorIcE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  544|  9.13k|        {
  545|  9.13k|            visit_begin_object(tag, context, ec);
  546|  9.13k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  9.13k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  547|  9.13k|        }
_ZN8jsoncons26basic_default_json_visitorIcE16visit_end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  823|  3.58k|        {
  824|  3.58k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  3.58k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  825|  3.58k|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  828|  13.6k|        {
  829|  13.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  13.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  830|  13.6k|        }
_ZN8jsoncons26basic_default_json_visitorIcE9visit_keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  838|   125k|        {
  839|   125k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   125k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  840|   125k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  843|  2.90k|        {
  844|  2.90k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.90k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  845|  2.90k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  878|  26.0k|        {
  879|  26.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  26.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  880|  26.0k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_stringERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  848|  7.56k|        {
  849|  7.56k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  7.56k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  850|  7.56k|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  853|   148k|        {
  854|   148k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   148k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  855|   148k|        }
_ZN8jsoncons18basic_json_visitorIcE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNSt3__110error_codeE:
  595|   147k|        {
  596|   147k|            visit_byte_string(value, semantic_tag::none, context, ec);
  597|   147k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   147k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  598|   147k|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|  13.6k|        {
  346|  13.6k|            visit_begin_array(length, tag, context, ec);
  347|  13.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  13.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|  13.6k|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|   637k|        {
  415|   637k|            visit_uint64(value, tag, context, ec);
  416|   637k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   637k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|   637k|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|  4.26k|        {
  352|  4.26k|            visit_end_array(context, ec);
  353|  4.26k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.26k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|  4.26k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|  14.8k|        {
  424|  14.8k|            visit_int64(value, tag, context, ec);
  425|  14.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  14.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|  14.8k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|  2.06k|        {
  442|  2.06k|            visit_double(value, tag, context, ec);
  443|  2.06k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.06k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|  2.06k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|   125k|        {
  358|   125k|            visit_key(name, context, ec);
  359|   125k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   125k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|   125k|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|    932|        {
  109|    932|            visit_flush();
  110|    932|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  9.13k|        {
  328|  9.13k|            visit_begin_object(length, tag, context, ec);
  329|  9.13k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  9.13k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|  9.13k|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  3.58k|        {
  334|  3.58k|            visit_end_object(context, ec);
  335|  3.58k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  3.58k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  3.58k|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|  2.90k|        {
  366|  2.90k|            visit_null(tag, context, ec);
  367|  2.90k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.90k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  2.90k|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|  26.0k|        {
  375|  26.0k|            visit_bool(value, tag, context, ec);
  376|  26.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  26.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|  26.0k|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|  7.56k|        {
  384|  7.56k|            visit_string(value, tag, context, ec);
  385|  7.56k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  7.56k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  7.56k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|    891|        {
  395|    891|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|    891|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|    891|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|    891|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|   147k|        {
  406|   147k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|   147k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   147k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|   147k|        }

_ZN8jsoncons6nonstd16to_plain_pointerImEEPT_S3_:
  241|  97.7k|    {       
  242|  97.7k|        return (ptr);
  243|  97.7k|    }  

_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4sizeEv:
  116|  15.1M|        {
  117|  15.1M|            return size_;
  118|  15.1M|        }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2Ev:
   58|  4.29M|        {
   59|  4.29M|        }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|  1.14M|            : data_(data), size_(size)
   62|  1.14M|        {
   63|  1.14M|        }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4dataEv:
  111|  9.72M|        {
  112|  9.72M|            return data_;
  113|  9.72M|        }

_ZN8jsoncons6nonstd4u128C2Em:
   29|   104k|    constexpr u128(uint64_t lo) : hi(0), lo(lo) {}
_ZNK8jsoncons6nonstd4u128mlERKS1_:
  103|  34.9k|    u128 operator*(const u128& rhs) const {
  104|       |        // Split components into 32-bit chunks to avoid 64-bit overflow during multiplication
  105|  34.9k|        uint64_t a3 = hi >> 32;
  106|  34.9k|        uint64_t a2 = hi & 0xFFFFFFFFFFFFFFULL; // lower 32 bits of hi
  107|  34.9k|        uint64_t a1 = lo >> 32;
  108|  34.9k|        uint64_t a0 = lo & 0xFFFFFFFFULL;
  109|       |
  110|  34.9k|        uint64_t b3 = rhs.hi >> 32;
  111|  34.9k|        uint64_t b2 = rhs.hi & 0xFFFFFFFFFFFFFFULL;
  112|  34.9k|        uint64_t b1 = rhs.lo >> 32;
  113|  34.9k|        uint64_t b0 = rhs.lo & 0xFFFFFFFFULL;
  114|       |
  115|       |        // Long multiplication matrix
  116|       |        // We only care about terms that fit in the final 128 bits.
  117|       |        // Chunks exceeding indices that add up to 3 (e.g., a2*b2, a3*b1) drop out of range.
  118|       |
  119|  34.9k|        uint64_t c0 = a0 * b0;
  120|  34.9k|        uint64_t c1 = a0 * b1 + a1 * b0;
  121|  34.9k|        uint64_t c2 = a0 * b2 + a1 * b1 + a2 * b0;
  122|  34.9k|        uint64_t c3 = a0 * b3 + a1 * b2 + a2 * b1 + a3 * b0;
  123|       |
  124|       |        // Carry propagation
  125|  34.9k|        c1 += (c0 >> 32);
  126|  34.9k|        c2 += (c1 >> 32);
  127|  34.9k|        c3 += (c2 >> 32);
  128|       |
  129|       |        // Reconstruct hi and lo 64-bit values
  130|  34.9k|        uint64_t new_low = (c0 & 0xFFFFFFFFULL) | (c1 << 32);
  131|  34.9k|        uint64_t new_high = (c2 & 0xFFFFFFFFULL) | (c3 << 32);
  132|       |
  133|  34.9k|        return {new_high, new_low};
  134|  34.9k|    }
_ZN8jsoncons6nonstd4u128C2Emm:
   30|   104k|    constexpr u128(uint64_t hi, uint64_t lo) : hi(hi), lo(lo) {}
_ZNK8jsoncons6nonstd4u128plERKS1_:
   41|  34.9k|    u128 operator+(const u128& rhs) const {
   42|  34.9k|        uint64_t new_low = lo + rhs.lo;
   43|       |        // Carry occurs if the result wrapped around and is less than one of the inputs
   44|  34.9k|        uint64_t carry = (new_low < lo) ? 1 : 0;
  ------------------
  |  Branch (44:26): [True: 0, False: 34.9k]
  ------------------
   45|  34.9k|        uint64_t new_high = hi + rhs.hi + carry;
   46|  34.9k|        return {new_high, new_low};
   47|  34.9k|    }
_ZNK8jsoncons6nonstd4u128cvmEv:
  146|  59.4k|    explicit operator uint64_t() const {
  147|  59.4k|        return lo;
  148|  59.4k|    }
_ZNK8jsoncons6nonstd4u128rsEj:
   87|  34.9k|    u128 operator>>(unsigned int shift) const {
   88|  34.9k|        if (shift == 0) return *this;
  ------------------
  |  Branch (88:13): [True: 0, False: 34.9k]
  ------------------
   89|  34.9k|        if (shift >= 128) return {0, 0};
  ------------------
  |  Branch (89:13): [True: 0, False: 34.9k]
  ------------------
   90|       |
   91|  34.9k|        if (shift >= 64) {
  ------------------
  |  Branch (91:13): [True: 34.9k, False: 0]
  ------------------
   92|  34.9k|            return {0, hi >> (shift - 64)};
   93|  34.9k|        }
   94|      0|        else {
   95|      0|            return {
   96|      0|                hi >> shift,
   97|      0|                (lo >> shift) | (hi << (64 - shift))
   98|      0|            };
   99|      0|        }
  100|  34.9k|    }
_ZNK8jsoncons6nonstd4u128cvbEv:
   32|  34.9k|    explicit operator bool() const {
   33|  34.9k|        return hi != 0 || lo != 0;
  ------------------
  |  Branch (33:16): [True: 0, False: 34.9k]
  |  Branch (33:27): [True: 24.4k, False: 10.5k]
  ------------------
   34|  34.9k|    }

_ZN8jsoncons11ser_contextD2Ev:
   21|  4.76k|    virtual ~ser_context() = default;

_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEC2ERS7_:
  256|  80.2k|            : buf_ptr(std::addressof(buf))
  257|  80.2k|        {
  258|  80.2k|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE9push_backEc:
  287|  1.23M|        {
  288|  1.23M|            buf_ptr->push_back(ch);
  289|  1.23M|        }

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|  4.76k|    {
  194|  4.76k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 4.76k, False: 0]
  ------------------
  195|  4.76k|        {
  196|  4.76k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  4.76k|        }
  198|  4.76k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  4.76k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  4.76k|          chunk_size_(default_max_chunk_size)
  178|  4.76k|    {
  179|  4.76k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  4.76k|        data_end_ = chunk_;
  181|  4.76k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  4.76k|      : std::basic_istream<CharT>(&nb_)
   58|  4.76k|    {
   59|  4.76k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  4.76k|        null_buffer() = default;
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8is_errorEv:
  276|  33.2M|    {
  277|  33.2M|        return stream_ptr_->bad();  
  278|  33.2M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|  35.1M|    {
  378|  35.1M|        std::size_t len = 0;
  379|  35.1M|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 35.1M, False: 9.70k]
  ------------------
  380|  35.1M|        {
  381|  35.1M|            len = (std::min)(remaining_, length);
  382|  35.1M|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|  35.1M|            data_end_ += len;
  384|  35.1M|            remaining_ -= len;
  385|  35.1M|            position_ += len;
  386|  35.1M|        }
  387|  35.1M|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 35.1M, False: 11.2k]
  ------------------
  388|  35.1M|        {
  389|  35.1M|            return len;
  390|  35.1M|        }
  391|  11.2k|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 11.2k, False: 0]
  ------------------
  392|  11.2k|        {
  393|  11.2k|            data_end_ = chunk_;
  394|  11.2k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|  11.2k|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 7.95k, False: 3.31k]
  ------------------
  396|  7.95k|            {
  397|  7.95k|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|  7.95k|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|  7.95k|                data_end_ += len2;
  400|  7.95k|                remaining_ -= len2;
  401|  7.95k|                position_ += len2;
  402|  7.95k|                len += len2;
  403|  7.95k|            }
  404|  11.2k|            return len;
  405|  11.2k|        }
  406|      0|        else
  407|      0|        {
  408|      0|            if (stream_ptr_->eof())
  ------------------
  |  Branch (408:17): [True: 0, False: 0]
  ------------------
  409|      0|            {
  410|      0|                remaining_ = 0;
  411|      0|                return 0;
  412|      0|            }
  413|      0|            JSONCONS_TRY
  ------------------
  |  |   37|      0|    #define JSONCONS_TRY try
  ------------------
  414|      0|            {
  415|      0|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(p+len), length-len);
  416|      0|                std::size_t len2 = static_cast<std::size_t>(count);
  417|      0|                if (len2 < length-len)
  ------------------
  |  Branch (417:21): [True: 0, False: 0]
  ------------------
  418|      0|                {
  419|      0|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  420|      0|                }
  421|      0|                len += len2;
  422|      0|                position_ += len2;
  423|      0|                return len;
  424|      0|            }
  425|      0|            JSONCONS_CATCH(const std::exception&)     
  426|      0|            {
  427|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  428|      0|                return 0;
  429|      0|            }
  430|      0|        }
  431|  35.1M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|  11.9k|    {
  443|  11.9k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 3.38k, False: 8.60k]
  ------------------
  444|  3.38k|        {
  445|  3.38k|            return 0;
  446|  3.38k|        }
  447|       |
  448|  8.60k|        JSONCONS_TRY
  ------------------
  |  |   37|  8.60k|    #define JSONCONS_TRY try
  ------------------
  449|  8.60k|        {
  450|  8.60k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  8.60k|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  8.60k|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 4.75k, False: 3.84k]
  ------------------
  454|  4.75k|            {
  455|  4.75k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|  4.75k|            }
  457|  8.60k|            return length;
  458|  8.60k|        }
  459|  8.60k|        JSONCONS_CATCH(const std::exception&)     
  460|  8.60k|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  8.60k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_6vectorIhS3_EEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  352|  5.44M|    {
  353|  5.44M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|  5.44M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4.29M, False: 1.14M]
  |  |  ------------------
  ------------------
  354|  4.29M|        {
  355|  4.29M|            return span<const value_type>{};
  356|  4.29M|        }
  357|  1.14M|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 361, False: 1.14M]
  |  Branch (357:32): [True: 169, False: 192]
  ------------------
  358|    169|        {
  359|    169|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|    169|            data_end_ = chunk_;
  361|    169|        }
  362|  1.14M|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 976, False: 1.14M]
  ------------------
  363|    976|        {
  364|    976|            buffer.clear();
  365|    976|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|    976|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|    976|        }
  368|       |
  369|  1.14M|        const value_type* data = data_end_;
  370|  1.14M|        data_end_ += length;
  371|  1.14M|        remaining_ -= length;
  372|  1.14M|        position_ += length;
  373|  1.14M|        return span<const value_type>(data, length);
  374|  1.14M|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr6nonstd7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  746|    976|    {
  747|    976|        std::size_t unread = length;
  748|       |
  749|  3.14k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 2.65k, False: 499]
  |  Branch (749:30): [True: 2.17k, False: 477]
  ------------------
  750|  2.17k|        {
  751|  2.17k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 556, False: 1.61k]
  |  Branch (751:44): [True: 554, False: 2]
  ------------------
  752|    554|            {
  753|    554|                std::size_t n = source.chunk_size();
  754|    554|                std::size_t offset = buffer.size();
  755|    554|                buffer.resize(offset+n);
  756|    554|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|    554|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|    554|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 74, False: 480]
  |  |  ------------------
  ------------------
  758|     74|                {
  759|     74|                    buffer.resize(offset+actual);
  760|     74|                }
  761|    554|                unread -= actual;
  762|    554|            }
  763|  1.61k|            else
  764|  1.61k|            {
  765|  1.61k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|  1.61k|                std::size_t offset = buffer.size();
  767|  1.61k|                buffer.resize(offset+n);
  768|  1.61k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|  1.61k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|  1.61k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 204, False: 1.41k]
  |  |  ------------------
  ------------------
  770|    204|                {
  771|    204|                    buffer.resize(offset + actual);
  772|    204|                }
  773|  1.61k|                unread -= actual;
  774|  1.61k|            }
  775|  2.17k|        }
  776|    976|        return length - unread;
  777|    976|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  2.65k|    {
  272|  2.65k|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 1.03k, False: 1.61k]
  |  Branch (272:35): [True: 477, False: 556]
  ------------------
  273|  2.65k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|  2.17k|    {
  347|  2.17k|        return remaining_;
  348|  2.17k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|  2.72k|    {
  262|  2.72k|        return chunk_size_;
  263|  2.72k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11read_bufferEPhm:
  435|    554|    {
  436|    554|        auto len = fill_buffer(chunk, chunk_size);
  437|    554|        position_ += len;
  438|    554|        return len;
  439|    554|    }

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  672|  94.4k|        : storage_(n, alloc)
  673|  94.4k|    {
  674|  94.4k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  363|  94.4k|        : word_allocator_type(alloc)
  364|  94.4k|    {
  365|  94.4k|        ::new (&inlined_) inlined_storage(n);
  366|  94.4k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  141|  94.4k|            : is_allocated_(false),
  142|  94.4k|            is_negative_(false),
  143|  94.4k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (143:19): [True: 37.6k, False: 56.7k]
  ------------------
  144|  94.4k|        {
  145|  94.4k|            values_[0] = n;
  146|  94.4k|            values_[1] = 0;
  147|  94.4k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
 1030|  38.7k|    {
 1031|  38.7k|        auto words = get_words();
 1032|  38.7k|        size_type len = words.size();
 1033|  38.7k|        if (len == 0 || m == 0)
  ------------------
  |  Branch (1033:13): [True: 3.72k, False: 34.9k]
  |  Branch (1033:25): [True: 0, False: 34.9k]
  ------------------
 1034|  3.72k|        {
 1035|  3.72k|            resize(0);
 1036|  3.72k|            return *this;
 1037|  3.72k|        }
 1038|       |
 1039|  34.9k|        dword_type carry = 0;
 1040|  34.9k|        size_t i = 0;
 1041|  69.9k|        for (; i < len; ++i) {
  ------------------
  |  Branch (1041:16): [True: 34.9k, False: 34.9k]
  ------------------
 1042|  34.9k|            dword_type x = dword_type(words[i]) * m + carry;
 1043|  34.9k|            words[i] = static_cast<word_type>(x);
 1044|  34.9k|            carry = x >> 64;
 1045|  34.9k|        }
 1046|       |
 1047|  34.9k|        if (carry)
  ------------------
  |  Branch (1047:13): [True: 24.4k, False: 10.5k]
  ------------------
 1048|  24.4k|        {
 1049|  24.4k|            resize(len+1);
 1050|  24.4k|            words = get_words();
 1051|  24.4k|            words[i] = static_cast<word_type>(carry);
 1052|  24.4k|        }
 1053|       |
 1054|       |        /*
 1055|       |        word_type dig = words[0];
 1056|       |        word_type carry = 0;
 1057|       |
 1058|       |        resize(words.size() + 1);
 1059|       |        words = get_words();
 1060|       |
 1061|       |        size_type i = 0;
 1062|       |        for (; i < len; i++ )
 1063|       |        {
 1064|       |            word_type hi;
 1065|       |            word_type lo;
 1066|       |            DDproduct( dig, y, hi, lo );
 1067|       |            words[i] = lo + carry;
 1068|       |            dig = words[i+1];
 1069|       |            carry = hi + (words[i] < lo);
 1070|       |        }
 1071|       |        words[i] = carry;
 1072|       |        reduce(); 
 1073|       |        */ 
 1074|  34.9k|        return *this;
 1075|  38.7k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE9get_wordsEv:
  697|   640k|    {
  698|   640k|        return storage_.get_words();
  699|   640k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE9get_wordsEv:
  523|   888k|    {
  524|   888k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (524:16): [True: 317k, False: 571k]
  ------------------
  525|   317k|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  526|   888k|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  527|   888k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   67|   888k|            : data_(data), size_(size)
   68|   888k|        {
   69|   888k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   87|  1.45M|        {
   88|  1.45M|            return size_;
   89|  1.45M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  850|  91.7k|    {
  851|  91.7k|        storage_.resize(new_length);
  852|  91.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  537|   201k|    {
  538|   201k|        size_type old_length = common_.size_;
  539|   201k|        reserve(new_length);
  540|   201k|        common_.size_ = new_length;
  541|       |
  542|   201k|        if (old_length < new_length)
  ------------------
  |  Branch (542:13): [True: 99.5k, False: 101k]
  ------------------
  543|  99.5k|        {
  544|  99.5k|            if (is_allocated())
  ------------------
  |  Branch (544:17): [True: 24.4k, False: 75.1k]
  ------------------
  545|  24.4k|            {
  546|  24.4k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  547|  24.4k|            }
  548|  75.1k|            else
  549|  75.1k|            {
  550|  75.1k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   54|  75.1k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 75.1k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  551|   190k|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (551:48): [True: 115k, False: 75.1k]
  ------------------
  552|   115k|                {
  553|   115k|                    inlined_.values_[i] = 0;
  554|   115k|                }
  555|  75.1k|            }
  556|  99.5k|        }
  557|   201k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  455|   201k|    {
  456|   201k|       if (capacity() < n)
  ------------------
  |  Branch (456:12): [True: 24.4k, False: 177k]
  ------------------
  457|  24.4k|       {
  458|  24.4k|           if (!is_allocated())
  ------------------
  |  Branch (458:16): [True: 24.4k, False: 0]
  ------------------
  459|  24.4k|           {
  460|  24.4k|               size_type size = inlined_.size_;
  461|  24.4k|               size_type is_neg = inlined_.is_negative_;
  462|  24.4k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  463|       |
  464|  24.4k|               ::new (&allocated_) allocated_storage();
  465|  24.4k|               allocated_.reserve(n, get_allocator());
  466|  24.4k|               allocated_.size_ = size;
  467|  24.4k|               allocated_.is_negative_ = is_neg;
  468|  24.4k|               if (n >= 1)
  ------------------
  |  Branch (468:20): [True: 24.4k, False: 0]
  ------------------
  469|  24.4k|               {
  470|  24.4k|                   allocated_.data_[0] = values[0];
  471|  24.4k|               }
  472|  24.4k|               if (n >= 2)
  ------------------
  |  Branch (472:20): [True: 24.4k, False: 0]
  ------------------
  473|  24.4k|               {
  474|  24.4k|                   allocated_.data_[1] = values[1];
  475|  24.4k|               }
  476|  24.4k|           }
  477|      0|           else
  478|      0|           {
  479|      0|               allocated_.reserve(n, get_allocator());
  480|      0|           }
  481|  24.4k|       }
  482|   201k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  508|   201k|    {
  509|   201k|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (509:16): [True: 48.8k, False: 152k]
  ------------------
  510|   201k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  206|  24.4k|            : is_allocated_(true),
  207|  24.4k|            is_negative_(false)
  208|  24.4k|        {
  209|  24.4k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  258|  24.4k|        {
  259|  24.4k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   54|  24.4k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 24.4k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  260|  24.4k|            size_type capacity_new = round_up(n);
  261|       |
  262|  24.4k|            real_allocator_type alloc(a);
  263|  24.4k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  264|  24.4k|            if (size_ > 0)
  ------------------
  |  Branch (264:17): [True: 0, False: 24.4k]
  ------------------
  265|      0|            {
  266|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  267|      0|            }
  268|  24.4k|            if (data_ != nullptr)
  ------------------
  |  Branch (268:17): [True: 0, False: 24.4k]
  ------------------
  269|      0|            {
  270|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  271|      0|            }
  272|  24.4k|            capacity_ = capacity_new;
  273|  24.4k|            data_ = data_new;
  274|  24.4k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  278|  24.4k|        {
  279|  24.4k|            size_type remainder = i % mem_unit;
  280|  24.4k|            size_type off = mem_unit - remainder;
  281|  24.4k|            bool testoff = i < max_size - off;
  282|  24.4k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   54|  24.4k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 24.4k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  283|       |
  284|  24.4k|            return i + off;
  285|  24.4k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  485|   471k|    {
  486|   471k|        return static_cast<const word_allocator_type&>(*this);
  487|   471k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  503|   980k|    {
  504|   980k|        return common_.is_allocated_;
  505|   980k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   72|   542k|        {
   73|   542k|            return data_[i];
   74|   542k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr6nonstd19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  921|  9.57k|    {
  922|  9.57k|        if ( is_negative())
  ------------------
  |  Branch (922:14): [True: 0, False: 9.57k]
  ------------------
  923|      0|            return *this -= -basic_bigint<Allocator>(y);
  924|       |
  925|  9.57k|        word_type d;
  926|  9.57k|        word_type carry = 0;
  927|       |
  928|  9.57k|        auto words = get_words();
  929|  9.57k|        resize(words.size() + 1);
  930|       |
  931|  9.57k|        words = get_words();
  932|  9.57k|        const size_type this_size = words.size();
  933|  9.57k|        size_type y_size = 1;
  934|       |
  935|  9.57k|        d = words[0] + carry;
  936|  9.57k|        carry = d < carry;
  937|  9.57k|        words[0] = d + y;
  938|  9.57k|        if (words[0] < d)
  ------------------
  |  Branch (938:13): [True: 0, False: 9.57k]
  ------------------
  939|      0|            carry = 1;
  940|       |
  941|  9.57k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (941:36): [True: 8.11k, False: 1.46k]
  |  Branch (941:53): [True: 0, False: 8.11k]
  ------------------
  942|      0|        {
  943|      0|            d = words[i] + carry;
  944|      0|            carry = d < carry;
  945|      0|            words[i] = d;
  946|      0|        }
  947|  9.57k|        reduce();
  948|  9.57k|        return *this;
  949|  9.57k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  707|   601k|    {
  708|   601k|        return storage_.is_negative();
  709|   601k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  513|   601k|    {
  514|   601k|        return common_.is_negative_;
  515|   601k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  867|  8.53k|    {
  868|  8.53k|        basic_bigint<Allocator> v(*this);
  869|  8.53k|        v.set_negative(!v.is_negative());
  870|  8.53k|        return v;
  871|  8.53k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  650|  44.4k|        : storage_(other.storage_)
  651|  44.4k|    {
  652|  44.4k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  302|  44.4k|        : word_allocator_type(other.get_allocator())
  303|  44.4k|    {
  304|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  305|       |# pragma GCC diagnostic push
  306|       |# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  307|       |#endif
  308|  44.4k|        if (!other.is_allocated())
  ------------------
  |  Branch (308:13): [True: 19.9k, False: 24.4k]
  ------------------
  309|  19.9k|        {
  310|  19.9k|            ::new (&inlined_) inlined_storage(other.inlined_);
  311|  19.9k|        }
  312|  24.4k|        else
  313|  24.4k|        {
  314|  24.4k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  315|  24.4k|        }
  316|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  317|       |# pragma GCC diagnostic pop
  318|       |#endif
  319|  44.4k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  181|   131k|            : is_allocated_(false),
  182|   131k|            is_negative_(stor.is_negative_),
  183|   131k|            size_(stor.size_)
  184|   131k|        {
  185|   131k|            values_[0] = stor.values_[0];
  186|   131k|            values_[1] = stor.values_[1];
  187|   131k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  212|  97.7k|            : is_allocated_(true),
  213|  97.7k|              is_negative_(stor.is_negative_),
  214|  97.7k|              size_(stor.size_),
  215|  97.7k|              capacity_(stor.capacity_)
  216|  97.7k|        {
  217|  97.7k|            real_allocator_type alloc(a);
  218|       |
  219|  97.7k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  220|  97.7k|            JSONCONS_TRY
  ------------------
  |  |   37|  97.7k|    #define JSONCONS_TRY try
  ------------------
  221|  97.7k|            {
  222|  97.7k|                std::allocator_traits<real_allocator_type>::construct(alloc, nonstd::to_plain_pointer(data_));
  223|  97.7k|            }
  224|  97.7k|            JSONCONS_CATCH(...)
  225|  97.7k|            {
  226|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  227|      0|                data_ = nullptr;
  228|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  229|      0|            }
  230|  97.7k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   54|  97.7k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 97.7k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  231|  97.7k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  232|  97.7k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  728|   277k|    {
  729|   277k|        storage_.set_negative(value);
  730|   277k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  518|   277k|    {
  519|   277k|        common_.is_negative_ = value;
  520|   277k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 2039|   138k|    {
 2040|   138k|        storage_.reduce();
 2041|   138k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  432|   138k|    {
  433|   138k|        if (common_.size_ > 0)
  ------------------
  |  Branch (433:13): [True: 138k, False: 0]
  ------------------
  434|   138k|        {
  435|   138k|            auto words = get_words();
  436|   138k|            word_type* p = words.end() - 1;
  437|   138k|            word_type* first = words.begin();
  438|   201k|            while ( p >= first )
  ------------------
  |  Branch (438:21): [True: 197k, False: 3.37k]
  ------------------
  439|   197k|            {
  440|   197k|                if ( *p )
  ------------------
  |  Branch (440:22): [True: 134k, False: 62.7k]
  ------------------
  441|   134k|                {
  442|   134k|                    break;
  443|   134k|                }
  444|  62.7k|                --common_.size_;
  445|  62.7k|                --p;
  446|  62.7k|            }
  447|   138k|        }
  448|   138k|        if (common_.size_ == 0)
  ------------------
  |  Branch (448:13): [True: 3.37k, False: 134k]
  ------------------
  449|  3.37k|        {
  450|  3.37k|            common_.is_negative_ = false;
  451|  3.37k|        }
  452|   138k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   96|   138k|        {
   97|   138k|            return data_ + size_;
   98|   138k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   91|   138k|        {
   92|   138k|            return data_;
   93|   138k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16append_to_bufferIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1414|  38.7k|    {
 1415|  38.7k|        if (is_zero())
  ------------------
  |  Branch (1415:13): [True: 2.83k, False: 35.8k]
  ------------------
 1416|  2.83k|        {
 1417|  2.83k|            buf.push_back('0');
 1418|  2.83k|            return;
 1419|  2.83k|        }
 1420|  35.8k|        if (is_negative())
  ------------------
  |  Branch (1420:13): [True: 8.53k, False: 27.3k]
  ------------------
 1421|  8.53k|        {
 1422|  8.53k|            buf.push_back('-');
 1423|  8.53k|        }
 1424|  35.8k|        std::size_t pos = buf.size();
 1425|  35.8k|        basic_bigint<Allocator> v(*this);
 1426|  35.8k|        auto v_words = v.get_words();
 1427|       |
 1428|  35.8k|        size_type len = (v_words.size() * word_bits / 3) + 2;
 1429|  35.8k|        buf.reserve(len);
 1430|       |
 1431|  35.8k|        if ( v_words.size() == 0 )
  ------------------
  |  Branch (1431:14): [True: 0, False: 35.8k]
  ------------------
 1432|      0|        {
 1433|      0|            buf.push_back('0');
 1434|      0|        }
 1435|  35.8k|        else
 1436|  35.8k|        {
 1437|  35.8k|            word_type r;
 1438|  35.8k|            basic_bigint<Allocator> R(get_allocator());
 1439|  35.8k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1440|       |
 1441|  35.8k|            do
 1442|  67.3k|            {
 1443|  67.3k|                v.divide( LP10, v, R, true );
 1444|  67.3k|                v_words = v.get_words();
 1445|       |
 1446|  67.3k|                auto R_words = R.get_words();
 1447|  67.3k|                r = (R_words.size() ? R_words[0] : 0);
  ------------------
  |  Branch (1447:22): [True: 66.4k, False: 893]
  ------------------
 1448|   887k|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1448:38): [True: 856k, False: 31.4k]
  ------------------
 1449|   856k|                {
 1450|   856k|                    buf.push_back(char(r % 10u + '0'));
 1451|   856k|                    r /= 10u;
 1452|   856k|                    if ( r + v_words.size() == 0 )
  ------------------
  |  Branch (1452:26): [True: 35.8k, False: 820k]
  ------------------
 1453|  35.8k|                        break;
 1454|   856k|                }
 1455|  67.3k|            } 
 1456|  67.3k|            while ( v_words.size() > 0);
  ------------------
  |  Branch (1456:21): [True: 31.4k, False: 35.8k]
  ------------------
 1457|       |
 1458|  35.8k|            std::reverse(buf.begin()+pos,buf.end());
 1459|  35.8k|        }
 1460|  35.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7is_zeroEv:
 2160|  38.7k|    bool is_zero() const {
 2161|  38.7k|        return get_words().size() == 0;
 2162|  38.7k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9get_wordsEv:
  702|   280k|    {
  703|   280k|        return storage_.get_words();
  704|   280k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE9get_wordsEv:
  530|   389k|    {
  531|   389k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (531:16): [True: 146k, False: 243k]
  ------------------
  532|   146k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  533|   389k|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  534|   389k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   67|   389k|            : data_(data), size_(size)
   68|   389k|        {
   69|   389k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   87|   755k|        {
   88|   755k|            return size_;
   89|   755k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  692|   256k|    {
  693|   256k|        return storage_.get_allocator();
  694|   256k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  623|  35.8k|        : storage_(alloc)
  624|  35.8k|    {
  625|  35.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  296|  35.8k|        : word_allocator_type(alloc)
  297|  35.8k|    {
  298|  35.8k|        ::new (&inlined_) inlined_storage();
  299|  35.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  116|  35.8k|            : is_allocated_(false),
  117|  35.8k|            is_negative_(false),
  118|  35.8k|            size_(0),
  119|  35.8k|            values_{0, 0}
  120|  35.8k|        {
  121|  35.8k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1796|  67.3k|    {
 1797|  67.3k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1798|  67.3k|        auto denom_words = denom.get_words();
 1799|       |
 1800|  67.3k|        if (denom_words.size() == 0)
  ------------------
  |  Branch (1800:13): [True: 0, False: 67.3k]
  ------------------
 1801|      0|        {
 1802|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1803|      0|        }
 1804|  67.3k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1805|  67.3k|        bool rem_neg = is_negative();
 1806|  67.3k|        basic_bigint<Allocator> num(*this, get_allocator());
 1807|  67.3k|        num.set_negative(false);
 1808|  67.3k|        denom.set_negative(false);
 1809|  67.3k|        if ( num < denom )
  ------------------
  |  Branch (1809:14): [True: 35.8k, False: 31.4k]
  ------------------
 1810|  35.8k|        {
 1811|  35.8k|            quot = word_type(0);
 1812|  35.8k|            quot.set_negative(quot_neg);
 1813|  35.8k|            rem = num;
 1814|  35.8k|            rem.set_negative(rem_neg);
 1815|  35.8k|            return;
 1816|  35.8k|        }
 1817|       |
 1818|  31.4k|        auto num_words = num.get_words();
 1819|  31.4k|        auto quot_words = quot.get_words();
 1820|  31.4k|        auto words = get_words();
 1821|       |
 1822|  31.4k|        if ( denom_words.size() == 1 && num_words.size() == 1 )
  ------------------
  |  Branch (1822:14): [True: 31.4k, False: 0]
  |  Branch (1822:41): [True: 6.54k, False: 24.9k]
  ------------------
 1823|  6.54k|        {
 1824|  6.54k|            quot = word_type( num_words[0]/denom_words[0] );
 1825|  6.54k|            rem = word_type( num_words[0]%denom_words[0] );
 1826|  6.54k|            quot.set_negative(quot_neg);
 1827|  6.54k|            rem.set_negative(rem_neg);
 1828|  6.54k|            return;
 1829|  6.54k|        }
 1830|  24.9k|        if (denom_words.size() == 1 && (denom_words[0] & l_mask) == 0 )
  ------------------
  |  Branch (1830:13): [True: 24.9k, False: 0]
  |  Branch (1830:40): [True: 0, False: 24.9k]
  ------------------
 1831|      0|        {
 1832|       |            // Denominator fits into a half word
 1833|      0|            word_type divisor = denom_words[0], dHi = 0, q1, r, q2, dividend;
 1834|      0|            quot.resize(words.size());
 1835|      0|            quot_words = quot.get_words();
 1836|      0|            for (size_type i=words.size(); i-- > 0; )
  ------------------
  |  Branch (1836:44): [True: 0, False: 0]
  ------------------
 1837|      0|            {
 1838|      0|                dividend = (dHi << word_half_bits) | (words[i] >> word_half_bits);
 1839|      0|                q1 = dividend/divisor;
 1840|      0|                r = dividend % divisor;
 1841|      0|                dividend = (r << word_half_bits) | (words[i] & r_mask);
 1842|      0|                q2 = dividend/divisor;
 1843|      0|                dHi = dividend % divisor;
 1844|      0|                quot_words[i] = (q1 << word_half_bits) | q2;
 1845|      0|            }
 1846|      0|            quot.reduce();
 1847|      0|            rem = dHi;
 1848|      0|            quot.set_negative(quot_neg);
 1849|      0|            rem.set_negative(rem_neg);
 1850|      0|            return;
 1851|      0|        }
 1852|  24.9k|        basic_bigint<Allocator> num0(num, get_allocator());
 1853|  24.9k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1854|  24.9k|        int x = 0;
 1855|  24.9k|        bool second_done = normalize(denom, num, x);
 1856|  24.9k|        denom_words = denom.get_words();
 1857|  24.9k|        num_words = num.get_words();
 1858|       |
 1859|  24.9k|        size_type l = denom_words.size() - 1;
 1860|  24.9k|        size_type n = num_words.size() - 1;
 1861|  24.9k|        quot.resize(n - l);
 1862|  24.9k|        quot_words = quot.get_words();
 1863|  49.8k|        for (size_type i = quot_words.size(); i-- > 0; )
  ------------------
  |  Branch (1863:47): [True: 24.9k, False: 24.9k]
  ------------------
 1864|  24.9k|        {
 1865|  24.9k|            quot_words[i] = 0;
 1866|  24.9k|        }
 1867|  24.9k|        rem = num;
 1868|  24.9k|        auto rem_words = rem.get_words();
 1869|  24.9k|        if ( rem_words[n] >= denom_words[l] )
  ------------------
  |  Branch (1869:14): [True: 0, False: 24.9k]
  ------------------
 1870|      0|        {
 1871|      0|            rem.resize(rem_words.size() + 1);
 1872|      0|            rem_words = rem.get_words();
 1873|      0|            n++;
 1874|      0|            quot.resize(quot_words.size() + 1);
 1875|      0|            quot_words = quot.get_words();
 1876|      0|        }
 1877|  24.9k|        word_type d = denom_words[l];
 1878|       |
 1879|  49.8k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1879:32): [True: 24.9k, False: 24.9k]
  ------------------
 1880|  24.9k|        {
 1881|  24.9k|            word_type q = DDquotient(rem_words[k], rem_words[k-1], d);
 1882|  24.9k|            subtractmul( rem_words.data() + (k - l - 1), denom_words.data(), l + 1, q );
 1883|  24.9k|            quot_words[k - l - 1] = q;
 1884|  24.9k|        }
 1885|  24.9k|        quot.reduce();
 1886|  24.9k|        quot.set_negative(quot_neg);
 1887|  24.9k|        if (remDesired)
  ------------------
  |  Branch (1887:13): [True: 24.9k, False: 0]
  ------------------
 1888|  24.9k|        {
 1889|  24.9k|            unnormalize(rem, x, second_done);
 1890|  24.9k|            rem.set_negative(rem_neg);
 1891|  24.9k|        }
 1892|  24.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  655|   184k|        : storage_(other.storage_, alloc)
  656|   184k|    {
  657|   184k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  322|   184k|        : word_allocator_type(alloc)
  323|   184k|    {
  324|   184k|        if (!other.is_allocated())
  ------------------
  |  Branch (324:13): [True: 111k, False: 73.2k]
  ------------------
  325|   111k|        {
  326|   111k|            ::new (&inlined_) inlined_storage(other.inlined_);
  327|   111k|        }
  328|  73.2k|        else
  329|  73.2k|        {
  330|  73.2k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  331|  73.2k|        }
  332|   184k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1537|  67.3k|    {
 1538|  67.3k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1538:15): [True: 35.8k, False: 31.4k]
  ------------------
 1539|  67.3k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1702|  96.4k|    {
 1703|  96.4k|        auto words = get_words();
 1704|  96.4k|        auto y_words = y.get_words();
 1705|       |
 1706|  96.4k|        const size_type y_size = y_words.size();
 1707|  96.4k|        if ( words.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1707:14): [True: 2.26k, False: 94.1k]
  |  Branch (1707:35): [True: 2.26k, False: 0]
  ------------------
 1708|  2.26k|            return 0;
 1709|  94.1k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1709:14): [True: 8.53k, False: 85.6k]
  ------------------
 1710|  8.53k|            return y.is_negative() - is_negative();
 1711|  85.6k|        int code = 0;
 1712|  85.6k|        if ( words.size() < y_size)
  ------------------
  |  Branch (1712:14): [True: 0, False: 85.6k]
  ------------------
 1713|      0|            code = -1;
 1714|  85.6k|        else if ( words.size() > y_size)
  ------------------
  |  Branch (1714:19): [True: 43.2k, False: 42.4k]
  ------------------
 1715|  43.2k|            code = +1;
 1716|  42.4k|        else
 1717|  42.4k|        {
 1718|  42.7k|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1718:46): [True: 42.4k, False: 358]
  ------------------
 1719|  42.4k|            {
 1720|  42.4k|                if (words[i] > y_words[i])
  ------------------
  |  Branch (1720:21): [True: 6.19k, False: 36.2k]
  ------------------
 1721|  6.19k|                {
 1722|  6.19k|                    code = 1;
 1723|  6.19k|                    break;
 1724|  6.19k|                }
 1725|  36.2k|                else if (words[i] < y_words[i])
  ------------------
  |  Branch (1725:26): [True: 35.8k, False: 358]
  ------------------
 1726|  35.8k|                {
 1727|  35.8k|                    code = -1;
 1728|  35.8k|                    break;
 1729|  35.8k|                }
 1730|  42.4k|            }
 1731|  42.4k|        }
 1732|  85.6k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1732:16): [True: 0, False: 85.6k]
  ------------------
 1733|  94.1k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  874|   109k|    {
  875|   109k|        storage_ = y.storage_;
  876|   109k|        return *this;
  877|   109k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  369|   109k|    {
  370|   109k|        if (this != &other)
  ------------------
  |  Branch (370:13): [True: 109k, False: 0]
  ------------------
  371|   109k|        {
  372|   109k|            auto other_words = other.get_words();
  373|   109k|            resize(other_words.size());
  374|   109k|            auto words = get_words();
  375|   109k|            if (other_words.size() > 0)
  ------------------
  |  Branch (375:17): [True: 73.5k, False: 36.2k]
  ------------------
  376|  73.5k|            {
  377|  73.5k|                common_.is_negative_ = other.common_.is_negative_;
  378|  73.5k|                std::memcpy(words.data(), other_words.data(), size_type(other_words.size()*sizeof(word_type)));
  379|  73.5k|            }
  380|   109k|        }
  381|   109k|        return *this;
  382|   109k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   82|  73.5k|        {
   83|  73.5k|            return data_;
   84|  73.5k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   72|   164k|        {
   73|   164k|            return data_[i];
   74|   164k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1994|  24.9k|    {
 1995|  24.9k|        auto denom_words = denom.get_words();
 1996|  24.9k|        if (denom_words.size() == 0)
  ------------------
  |  Branch (1996:13): [True: 0, False: 24.9k]
  ------------------
 1997|      0|        {
 1998|      0|            return false;
 1999|      0|        }
 2000|  24.9k|        size_type r = denom_words.size() - 1;
 2001|  24.9k|        word_type y = denom_words[r];
 2002|       |
 2003|  24.9k|        x = 0;
 2004|  24.9k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (2004:17): [True: 0, False: 24.9k]
  ------------------
 2005|      0|        {
 2006|      0|            y <<= 1;
 2007|      0|            x++;
 2008|      0|        }
 2009|  24.9k|        denom <<= x;
 2010|  24.9k|        num <<= x;
 2011|       |
 2012|  24.9k|        denom_words = denom.get_words();
 2013|  24.9k|        if ( r > 0 && denom_words[r] < denom_words[r-1] )
  ------------------
  |  Branch (2013:14): [True: 0, False: 24.9k]
  |  Branch (2013:23): [True: 0, False: 0]
  ------------------
 2014|      0|        {
 2015|      0|            denom *= max_word;
 2016|      0|            num *= max_word;
 2017|      0|            return true;
 2018|      0|        }
 2019|  24.9k|        return false;
 2020|  24.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1172|  49.8k|    {
 1173|  49.8k|        auto words = get_words();
 1174|  49.8k|        size_type q = k / word_bits;
 1175|  49.8k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1175:14): [True: 0, False: 49.8k]
  ------------------
 1176|      0|        {
 1177|      0|            resize(words.size() + q);
 1178|      0|            words = get_words();
 1179|      0|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1179:46): [True: 0, False: 0]
  ------------------
 1180|      0|                words[i] = ( i < q ? 0 : words[i - q]);
  ------------------
  |  Branch (1180:30): [True: 0, False: 0]
  ------------------
 1181|      0|            k %= word_bits;
 1182|      0|        }
 1183|  49.8k|        if ( k )  // 0 < k < word_bits:
  ------------------
  |  Branch (1183:14): [True: 0, False: 49.8k]
  ------------------
 1184|      0|        {
 1185|      0|            size_type k1 = word_bits - k;
 1186|      0|            word_type mask = (word_type(1) << k) - word_type(1);
 1187|      0|            resize( words.size() + 1 );
 1188|      0|            words = get_words();
 1189|      0|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1189:46): [True: 0, False: 0]
  ------------------
 1190|      0|            {
 1191|      0|                words[i] <<= k;
 1192|      0|                if ( i > 0 )
  ------------------
  |  Branch (1192:22): [True: 0, False: 0]
  ------------------
 1193|      0|                    words[i] |= (words[i-1] >> k1) & mask;
 1194|      0|            }
 1195|      0|        }
 1196|  49.8k|        reduce();
 1197|  49.8k|        return *this;
 1198|  49.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1921|  24.9k|    {
 1922|  24.9k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1923|  24.9k|                   dHi = d >> word_half_bits, dLo = d & r_mask;
 1924|  24.9k|        qHi = A/(dHi + 1);
 1925|       |        // This initial guess of qHi may be too small.
 1926|  24.9k|        middle = qHi * dLo;
 1927|  24.9k|        left = qHi * dHi;
 1928|  24.9k|        x = B - (middle << word_half_bits);
 1929|  24.9k|        A -= (middle >> word_half_bits) + left + (x > B);
 1930|  24.9k|        B = x;
 1931|  24.9k|        dLo1 = dLo << word_half_bits;
 1932|       |        // Increase qHi if necessary:
 1933|  24.9k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1933:17): [True: 0, False: 24.9k]
  |  Branch (1933:29): [True: 0, False: 24.9k]
  |  Branch (1933:41): [True: 0, False: 0]
  ------------------
 1934|      0|        {
 1935|      0|            x = B - dLo1;
 1936|      0|            A -= dHi + (x > B);
 1937|      0|            B = x;
 1938|      0|            qHi++;
 1939|      0|        }
 1940|  24.9k|        qLo = ((A << word_half_bits) | (B >> word_half_bits))/(dHi + 1);
 1941|       |        // This initial guess of qLo may be too small.
 1942|  24.9k|        right = qLo * dLo;
 1943|  24.9k|        middle = qLo * dHi;
 1944|  24.9k|        x = B - right;
 1945|  24.9k|        A -= (x > B);
 1946|  24.9k|        B = x;
 1947|  24.9k|        x = B - (middle << word_half_bits);
 1948|  24.9k|            A -= (middle >> word_half_bits) + (x > B);
 1949|  24.9k|        B = x;
 1950|       |        // Increase qLo if necessary:
 1951|  28.8k|        while ( A || B >= d )
  ------------------
  |  Branch (1951:17): [True: 0, False: 28.8k]
  |  Branch (1951:22): [True: 3.93k, False: 24.9k]
  ------------------
 1952|  3.93k|        {
 1953|  3.93k|            x = B - d;
 1954|  3.93k|            A -= (x > B);
 1955|  3.93k|            B = x;
 1956|  3.93k|            qLo++;
 1957|  3.93k|        }
 1958|  24.9k|        return (qHi << word_half_bits) + qLo;
 1959|  24.9k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1963|  24.9k|    {
 1964|  24.9k|        word_type hi, lo, d, carry = 0;
 1965|  24.9k|        size_type i;
 1966|  49.8k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1966:22): [True: 24.9k, False: 24.9k]
  ------------------
 1967|  24.9k|        {
 1968|  24.9k|            DDproduct( b[i], q, hi, lo );
 1969|  24.9k|            d = a[i];
 1970|  24.9k|            a[i] -= lo;
 1971|  24.9k|            if ( a[i] > d )
  ------------------
  |  Branch (1971:18): [True: 13.7k, False: 11.2k]
  ------------------
 1972|  13.7k|                carry++;
 1973|  24.9k|            d = a[i + 1];
 1974|  24.9k|            a[i + 1] -= hi + carry;
 1975|  24.9k|            carry = a[i + 1] > d;
 1976|  24.9k|        }
 1977|  24.9k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1977:14): [True: 0, False: 24.9k]
  ------------------
 1978|      0|        {
 1979|      0|            q--;
 1980|      0|            carry = 0;
 1981|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1981:26): [True: 0, False: 0]
  ------------------
 1982|      0|            {
 1983|      0|                d = a[i] + carry;
 1984|      0|                carry = d < carry;
 1985|      0|                a[i] = d + b[i];
 1986|      0|                if ( a[i] < d )
  ------------------
  |  Branch (1986:22): [True: 0, False: 0]
  ------------------
 1987|      0|                    carry = 1;
 1988|      0|            }
 1989|      0|            a[n] = 0;
 1990|      0|        }
 1991|  24.9k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1903|  24.9k|    {
 1904|  24.9k|        word_type hiA = A >> word_half_bits, loA = A & r_mask,
 1905|  24.9k|                   hiB = B >> word_half_bits, loB = B & r_mask;
 1906|       |
 1907|  24.9k|        lo = loA * loB;
 1908|  24.9k|        hi = hiA * hiB;
 1909|  24.9k|        word_type mid1 = loA * hiB;
 1910|  24.9k|        word_type mid2 = hiA * loB;
 1911|  24.9k|        word_type old = lo;
 1912|  24.9k|        lo += mid1 << word_half_bits;
 1913|  24.9k|            hi += (lo < old) + (mid1 >> word_half_bits);
 1914|  24.9k|        old = lo;
 1915|  24.9k|        lo += mid2 << word_half_bits;
 1916|  24.9k|            hi += (lo < old) + (mid2 >> word_half_bits);
 1917|  24.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   82|   123k|        {
   83|   123k|            return data_;
   84|   123k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 2023|  24.9k|    {
 2024|  24.9k|        if (secondDone)
  ------------------
  |  Branch (2024:13): [True: 0, False: 24.9k]
  ------------------
 2025|      0|        {
 2026|      0|            rem /= max_word;
 2027|      0|        }
 2028|  24.9k|        if ( x > 0 )
  ------------------
  |  Branch (2028:14): [True: 0, False: 24.9k]
  ------------------
 2029|      0|        {
 2030|      0|            rem >>= x;
 2031|      0|        }
 2032|  24.9k|        else
 2033|  24.9k|        {
 2034|  24.9k|            rem.reduce();
 2035|  24.9k|        }
 2036|  24.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  687|   425k|    {
  688|   425k|        storage_.destroy();
  689|   425k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  490|   425k|    {
  491|   425k|        if (is_allocated())
  ------------------
  |  Branch (491:13): [True: 122k, False: 303k]
  ------------------
  492|   122k|        {
  493|   122k|            allocated_.destroy(get_allocator());
  494|   122k|            allocated_.~allocated_storage();
  495|   122k|        }
  496|   303k|        else
  497|   303k|        {
  498|   303k|            inlined_.~inlined_storage();
  499|   303k|        }
  500|   425k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  249|   122k|        {
  250|   122k|            if (data_ != nullptr)
  ------------------
  |  Branch (250:17): [True: 122k, False: 0]
  ------------------
  251|   122k|            {
  252|   122k|                real_allocator_type alloc(a);
  253|   122k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  254|   122k|            }
  255|   122k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  672|  58.2k|        : storage_(n, alloc)
  673|  58.2k|    {
  674|  58.2k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  363|  58.2k|        : word_allocator_type(alloc)
  364|  58.2k|    {
  365|  58.2k|        ::new (&inlined_) inlined_storage(n);
  366|  58.2k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  128|  58.2k|            : is_allocated_(false),
  129|  58.2k|            is_negative_(n < 0),
  130|  58.2k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (130:19): [True: 31.3k, False: 26.8k]
  ------------------
  131|  58.2k|        {
  132|  58.2k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (132:26): [True: 8.53k, False: 49.7k]
  ------------------
  133|  58.2k|            values_[1] = 0;
  134|  58.2k|        }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEEl:
 1542|  29.1k|    {
 1543|  29.1k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1543:15): [True: 8.53k, False: 20.5k]
  ------------------
 1544|  29.1k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IjEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  672|  8.53k|        : storage_(n, alloc)
  673|  8.53k|    {
  674|  8.53k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IjEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  363|  8.53k|        : word_allocator_type(alloc)
  364|  8.53k|    {
  365|  8.53k|        ::new (&inlined_) inlined_storage(n);
  366|  8.53k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IjEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  141|  8.53k|            : is_allocated_(false),
  142|  8.53k|            is_negative_(false),
  143|  8.53k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (143:19): [True: 1.58k, False: 6.95k]
  ------------------
  144|  8.53k|        {
  145|  8.53k|            values_[0] = n;
  146|  8.53k|            values_[1] = 0;
  147|  8.53k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  986|  8.53k|    {
  987|  8.53k|        auto y_words = y.get_words();
  988|       |
  989|  8.53k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (989:14): [True: 8.53k, False: 0]
  ------------------
  990|  8.53k|            return *this += -y;
  991|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (991:15): [True: 0, False: 0]
  |  Branch (991:33): [True: 0, False: 0]
  |  Branch (991:48): [True: 0, False: 0]
  |  Branch (991:65): [True: 0, False: 0]
  ------------------
  992|      0|            return *this = -(y - *this);
  993|      0|        word_type borrow = 0;
  994|      0|        word_type d;
  995|      0|        auto words = get_words();
  996|      0|        const size_type this_size = words.size();
  997|      0|        const size_type y_size = y_words.size();
  998|       |
  999|      0|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (999:31): [True: 0, False: 0]
  ------------------
 1000|      0|        {
 1001|      0|            d = words[i] - borrow;
 1002|      0|            borrow = d > words[i];
 1003|      0|            words[i] = d - y_words[i];
 1004|      0|            if ( words[i] > d )
  ------------------
  |  Branch (1004:18): [True: 0, False: 0]
  ------------------
 1005|      0|                borrow = 1;
 1006|      0|        }
 1007|      0|        for (size_type i = y_size; i < this_size && borrow != 0; i++ )
  ------------------
  |  Branch (1007:36): [True: 0, False: 0]
  |  Branch (1007:53): [True: 0, False: 0]
  ------------------
 1008|      0|        {
 1009|      0|            d = words[i] - borrow;
 1010|      0|            borrow = d > words[i];
 1011|      0|            words[i] = d;
 1012|      0|        }
 1013|      0|        reduce();
 1014|      0|        return *this;
 1015|      0|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  952|  8.53k|    {
  953|  8.53k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (953:14): [True: 0, False: 8.53k]
  ------------------
  954|      0|            return *this -= -y;
  955|       |
  956|  8.53k|        auto y_words = y.get_words();
  957|       |        
  958|  8.53k|        word_type d;
  959|  8.53k|        word_type carry = 0;
  960|       |
  961|  8.53k|        auto words = get_words();
  962|  8.53k|        resize( (std::max)(y_words.size(), words.size()) + 1 );
  963|  8.53k|        words = get_words();
  964|       |
  965|  8.53k|        const size_t this_size = words.size();
  966|  8.53k|        const size_t y_size = y_words.size();
  967|  15.4k|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (967:31): [True: 6.95k, False: 8.53k]
  ------------------
  968|  6.95k|        {
  969|  6.95k|            d = words[i] + carry;
  970|  6.95k|            carry = d < carry;
  971|  6.95k|            words[i] = d + y_words[i];
  972|  6.95k|            if (words[i] < d)
  ------------------
  |  Branch (972:17): [True: 621, False: 6.33k]
  ------------------
  973|    621|                carry = 1;
  974|  6.95k|        }
  975|  9.16k|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (975:36): [True: 8.69k, False: 463]
  |  Branch (975:53): [True: 621, False: 8.07k]
  ------------------
  976|    621|        {
  977|    621|            d = words[i] + carry;
  978|    621|            carry = d < carry;
  979|    621|            words[i] = d;
  980|    621|        }
  981|  8.53k|        reduce();
  982|  8.53k|        return *this;
  983|  8.53k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLIjEENS1_9enable_ifIXaasr6nonstd19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  921|  20.5k|    {
  922|  20.5k|        if ( is_negative())
  ------------------
  |  Branch (922:14): [True: 0, False: 20.5k]
  ------------------
  923|      0|            return *this -= -basic_bigint<Allocator>(y);
  924|       |
  925|  20.5k|        word_type d;
  926|  20.5k|        word_type carry = 0;
  927|       |
  928|  20.5k|        auto words = get_words();
  929|  20.5k|        resize(words.size() + 1);
  930|       |
  931|  20.5k|        words = get_words();
  932|  20.5k|        const size_type this_size = words.size();
  933|  20.5k|        size_type y_size = 1;
  934|       |
  935|  20.5k|        d = words[0] + carry;
  936|  20.5k|        carry = d < carry;
  937|  20.5k|        words[0] = d + y;
  938|  20.5k|        if (words[0] < d)
  ------------------
  |  Branch (938:13): [True: 9.60k, False: 10.9k]
  ------------------
  939|  9.60k|            carry = 1;
  940|       |
  941|  30.1k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (941:36): [True: 27.9k, False: 2.28k]
  |  Branch (941:53): [True: 9.60k, False: 18.3k]
  ------------------
  942|  9.60k|        {
  943|  9.60k|            d = words[i] + carry;
  944|  9.60k|            carry = d < carry;
  945|  9.60k|            words[i] = d;
  946|  9.60k|        }
  947|  20.5k|        reduce();
  948|  20.5k|        return *this;
  949|  20.5k|    }

_ZN8jsoncons6binary13big_to_nativeIfNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  67.2k|    {
  183|  67.2k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 67.2k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  67.2k|        T val;
  188|  67.2k|        std::memcpy(&val,first,sizeof(T));
  189|  67.2k|        return byte_swap(val);
  190|  67.2k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|  67.2k|    {
   65|  67.2k|        uint32_t x;
   66|  67.2k|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|  67.2k|        uint32_t y = byte_swap(x);
   68|  67.2k|        T val2;
   69|  67.2k|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|  67.2k|        return val2;
   71|  67.2k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   165k|    {
   40|   165k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   165k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  463|   165k|#  define JSONCONS_BYTE_SWAP_32 __builtin_bswap32
  ------------------
   42|       |    #else
   43|       |        uint32_t tmp = ((static_cast<uint32_t>(val) << 8) & 0xff00ff00) | ((static_cast<uint32_t>(val) >> 8) & 0xff00ff);
   44|       |        return (tmp << 16) | (tmp >> 16);
   45|       |    #endif
   46|   165k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  14.9k|    {
  183|  14.9k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 14.9k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  14.9k|        T val;
  188|  14.9k|        std::memcpy(&val,first,sizeof(T));
  189|  14.9k|        return byte_swap(val);
  190|  14.9k|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|  14.9k|    {
   77|  14.9k|        uint64_t x;
   78|  14.9k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|  14.9k|        uint64_t y = byte_swap(x);
   80|  14.9k|        T val2;
   81|  14.9k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|  14.9k|        return val2;
   83|  14.9k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  26.3k|    {
   52|  26.3k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  26.3k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  462|  26.3k|#  define JSONCONS_BYTE_SWAP_64 __builtin_bswap64
  ------------------
   54|       |    #else
   55|       |        uint64_t tmp = ((static_cast<uint64_t>(val) & 0x00000000ffffffffull) << 32) | ((static_cast<uint64_t>(val) & 0xffffffff00000000ull) >> 32);
   56|       |        tmp = ((tmp & 0x0000ffff0000ffffull) << 16) | ((tmp & 0xffff0000ffff0000ull) >> 16);
   57|       |        return ((tmp & 0x00ff00ff00ff00ffull) << 8)  | ((tmp & 0xff00ff00ff00ff00ull) >> 8);
   58|       |    #endif
   59|  26.3k|    }
_ZN8jsoncons6binary13big_to_nativeItNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   215k|    {
  183|   215k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 215k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   215k|        T val;
  188|   215k|        std::memcpy(&val,first,sizeof(T));
  189|   215k|        return byte_swap(val);
  190|   215k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|   215k|    {
   29|   215k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|   215k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  467|   215k|#      define JSONCONS_BYTE_SWAP_16    __builtin_bswap16
  ------------------
   31|       |    #else
   32|       |        return (static_cast<uint16_t>(val) >> 8) | (static_cast<uint16_t>(val) << 8);
   33|       |    #endif
   34|   215k|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  97.7k|    {
  183|  97.7k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 97.7k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  97.7k|        T val;
  188|  97.7k|        std::memcpy(&val,first,sizeof(T));
  189|  97.7k|        return byte_swap(val);
  190|  97.7k|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  11.3k|    {
  183|  11.3k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 11.3k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  11.3k|        T val;
  188|  11.3k|        std::memcpy(&val,first,sizeof(T));
  189|  11.3k|        return byte_swap(val);
  190|  11.3k|    }
_ZN8jsoncons6binary13big_to_nativeIaNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  1.40M|    {
  183|  1.40M|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 1.40M]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  1.40M|        T val;
  188|  1.40M|        std::memcpy(&val,first,sizeof(T));
  189|  1.40M|        return byte_swap(val);
  190|  1.40M|    }
_ZN8jsoncons6binary9byte_swapIaEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  1.40M|    {
   22|  1.40M|        return val;
   23|  1.40M|    }
_ZN8jsoncons6binary13big_to_nativeIsNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  2.35k|    {
  183|  2.35k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 2.35k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  2.35k|        T val;
  188|  2.35k|        std::memcpy(&val,first,sizeof(T));
  189|  2.35k|        return byte_swap(val);
  190|  2.35k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  2.35k|    {
   29|  2.35k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  2.35k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  467|  2.35k|#      define JSONCONS_BYTE_SWAP_16    __builtin_bswap16
  ------------------
   31|       |    #else
   32|       |        return (static_cast<uint16_t>(val) >> 8) | (static_cast<uint16_t>(val) << 8);
   33|       |    #endif
   34|  2.35k|    }
_ZN8jsoncons6binary13big_to_nativeIiNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  4.85k|    {
  183|  4.85k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 4.85k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  4.85k|        T val;
  188|  4.85k|        std::memcpy(&val,first,sizeof(T));
  189|  4.85k|        return byte_swap(val);
  190|  4.85k|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  4.85k|    {
   40|  4.85k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  4.85k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  463|  4.85k|#  define JSONCONS_BYTE_SWAP_32 __builtin_bswap32
  ------------------
   42|       |    #else
   43|       |        uint32_t tmp = ((static_cast<uint32_t>(val) << 8) & 0xff00ff00) | ((static_cast<uint32_t>(val) >> 8) & 0xff00ff);
   44|       |        return (tmp << 16) | (tmp >> 16);
   45|       |    #endif
   46|  4.85k|    }
_ZN8jsoncons6binary13big_to_nativeIlNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  33.4k|    {
  183|  33.4k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 33.4k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  33.4k|        T val;
  188|  33.4k|        std::memcpy(&val,first,sizeof(T));
  189|  33.4k|        return byte_swap(val);
  190|  33.4k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  33.4k|    {
   52|  33.4k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  33.4k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  462|  33.4k|#  define JSONCONS_BYTE_SWAP_64 __builtin_bswap64
  ------------------
   54|       |    #else
   55|       |        uint64_t tmp = ((static_cast<uint64_t>(val) & 0x00000000ffffffffull) << 32) | ((static_cast<uint64_t>(val) & 0xffffffff00000000ull) >> 32);
   56|       |        tmp = ((tmp & 0x0000ffff0000ffffull) << 16) | ((tmp & 0xffff0000ffff0000ull) >> 16);
   57|       |        return ((tmp & 0x00ff00ff00ff00ffull) << 8)  | ((tmp & 0xff00ff00ff00ff00ull) >> 8);
   58|       |    #endif
   59|  33.4k|    }
_ZN8jsoncons6binary13big_to_nativeIhNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  49.2k|    {
  183|  49.2k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 49.2k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  49.2k|        T val;
  188|  49.2k|        std::memcpy(&val,first,sizeof(T));
  189|  49.2k|        return byte_swap(val);
  190|  49.2k|    }
_ZN8jsoncons6binary9byte_swapIhEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  49.2k|    {
   22|  49.2k|        return val;
   23|  49.2k|    }

_ZN8jsoncons6detail23bytes_to_base64_genericIPKhNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS4_9enable_ifIXsr3std7is_sameINS4_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESD_SD_PKcRT0_:
   44|  1.01M|    {
   45|  1.01M|        std::size_t count = 0;
   46|  1.01M|        unsigned char a3[3];
   47|  1.01M|        unsigned char a4[4];
   48|  1.01M|        unsigned char fill = alphabet[64];
   49|  1.01M|        int i = 0;
   50|  1.01M|        int j = 0;
   51|       |
   52|  11.7M|        while (first != last)
  ------------------
  |  Branch (52:16): [True: 10.6M, False: 1.01M]
  ------------------
   53|  10.6M|        {
   54|  10.6M|            a3[i++] = *first++;
   55|  10.6M|            if (i == 3)
  ------------------
  |  Branch (55:17): [True: 2.90M, False: 7.78M]
  ------------------
   56|  2.90M|            {
   57|  2.90M|                a4[0] = (a3[0] & 0xfc) >> 2;
   58|  2.90M|                a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   59|  2.90M|                a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   60|  2.90M|                a4[3] = a3[2] & 0x3f;
   61|       |
   62|  14.5M|                for (i = 0; i < 4; i++) 
  ------------------
  |  Branch (62:29): [True: 11.6M, False: 2.90M]
  ------------------
   63|  11.6M|                {
   64|  11.6M|                    result.push_back(alphabet[a4[i]]);
   65|  11.6M|                    ++count;
   66|  11.6M|                }
   67|  2.90M|                i = 0;
   68|  2.90M|            }
   69|  10.6M|        }
   70|       |
   71|  1.01M|        if (i > 0)
  ------------------
  |  Branch (71:13): [True: 992k, False: 23.2k]
  ------------------
   72|   992k|        {
   73|  2.00M|            for (j = i; j < 3; ++j) 
  ------------------
  |  Branch (73:25): [True: 1.01M, False: 992k]
  ------------------
   74|  1.01M|            {
   75|  1.01M|                a3[j] = 0;
   76|  1.01M|            }
   77|       |
   78|   992k|            a4[0] = (a3[0] & 0xfc) >> 2;
   79|   992k|            a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   80|   992k|            a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   81|       |
   82|  3.95M|            for (j = 0; j < i + 1; ++j) 
  ------------------
  |  Branch (82:25): [True: 2.96M, False: 992k]
  ------------------
   83|  2.96M|            {
   84|  2.96M|                result.push_back(alphabet[a4[j]]);
   85|  2.96M|                ++count;
   86|  2.96M|            }
   87|       |
   88|   992k|            if (fill != 0)
  ------------------
  |  Branch (88:17): [True: 0, False: 992k]
  ------------------
   89|      0|            {
   90|      0|                while (i++ < 3) 
  ------------------
  |  Branch (90:24): [True: 0, False: 0]
  ------------------
   91|      0|                {
   92|      0|                    result.push_back(fill);
   93|      0|                    ++count;
   94|      0|                }
   95|      0|            }
   96|   992k|        }
   97|       |
   98|  1.01M|        return count;
   99|  1.01M|    }
_ZNK8jsoncons16byte_string_view5beginEv:
  409|  1.01M|        {
  410|  1.01M|            return data_;
  411|  1.01M|        }
_ZNK8jsoncons16byte_string_view3endEv:
  413|  1.01M|        {
  414|  1.01M|            return data_ + size_;
  415|  1.01M|        }
_ZN8jsoncons18bytes_to_base64urlIPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  177|  1.01M|    {
  178|  1.01M|        static constexpr char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  179|  1.01M|                                                      "abcdefghijklmnopqrstuvwxyz"
  180|  1.01M|                                                      "0123456789-_"
  181|  1.01M|                                                      "\0";
  182|  1.01M|        return detail::bytes_to_base64_generic(first, last, alphabet, result);
  183|  1.01M|    }
_ZNK8jsoncons16byte_string_view4dataEv:
  399|  1.31M|        {
  400|  1.31M|            return data_;
  401|  1.31M|        }
_ZNK8jsoncons16byte_string_view4sizeEv:
  403|  1.31M|        {
  404|  1.31M|            return size_;
  405|  1.31M|        }
_ZN8jsoncons16byte_string_viewC2EPKhm:
  362|  2.47M|            : data_(data), size_(length)
  363|  2.47M|        {
  364|  2.47M|        }

_ZN8jsoncons6detail6grisu3EdPcPiS2_:
  293|  79.2k|{
  294|  79.2k|    diy_fp_t w_m, w_p;
  295|  79.2k|    int q = 64, alpha = -59, gamma = -56;
  296|  79.2k|    normalized_boundaries(v, &w_m, &w_p);
  297|  79.2k|    diy_fp_t w = normalize_diy_fp(double2diy_fp(v));
  298|  79.2k|    int mk = k_comp(w_p.e + q, alpha, gamma);
  299|  79.2k|    diy_fp_t c_mk = cached_power(mk);
  300|  79.2k|    diy_fp_t W  = multiply(w,   c_mk);
  301|  79.2k|    diy_fp_t Wp = multiply(w_p, c_mk);
  302|  79.2k|    diy_fp_t Wm = multiply(w_m, c_mk);
  303|  79.2k|    *K = -mk;
  304|  79.2k|    bool result = digit_gen(Wm, W, Wp, buffer, length, K);
  305|  79.2k|    buffer[*length] = 0;
  306|  79.2k|    return result;
  307|  79.2k|}
_ZN8jsoncons6detail21normalized_boundariesEdPNS0_8diy_fp_tES2_:
  188|  79.2k|{
  189|  79.2k|    diy_fp_t v = double2diy_fp(d);
  190|  79.2k|    diy_fp_t pl, mi;
  191|  79.2k|    bool significand_is_zero = v.f == dp_hidden_bit;
  192|  79.2k|    pl.f  = (v.f << 1) + 1; pl.e  = v.e - 1;
  193|  79.2k|    pl = normalize_boundary(pl);
  194|  79.2k|    if (significand_is_zero)
  ------------------
  |  Branch (194:9): [True: 2.70k, False: 76.5k]
  ------------------
  195|  2.70k|    {
  196|  2.70k|        mi.f = (v.f << 2) - 1;
  197|  2.70k|        mi.e = v.e - 2;
  198|  2.70k|    } else
  199|  76.5k|    {
  200|  76.5k|        mi.f = (v.f << 1) - 1;
  201|  76.5k|        mi.e = v.e - 1;
  202|  76.5k|    }
  203|  79.2k|    int x = mi.e - pl.e;
  204|  79.2k|    mi.f <<= x;
  205|  79.2k|    mi.e = pl.e;
  206|  79.2k|    *out_m_plus = pl;
  207|  79.2k|    *out_m_minus = mi;
  208|  79.2k|}
_ZN8jsoncons6detail18normalize_boundaryENS0_8diy_fp_tE:
  171|  79.2k|{
  172|  79.2k|    diy_fp_t res = in;
  173|       |    /* Normalize now */
  174|       |    /* the original number could have been a denormal. */
  175|   407k|    while (!(res.f & (dp_hidden_bit << 1)))
  ------------------
  |  Branch (175:12): [True: 327k, False: 79.2k]
  ------------------
  176|   327k|    {
  177|   327k|        res.f <<= 1;
  178|   327k|        res.e--;
  179|   327k|    }
  180|       |    /* do the final shifts in one go. Don't forget the hidden bit (the '-1') */
  181|  79.2k|    res.f <<= (diy_significand_size - dp_significand_size - 2);
  182|  79.2k|    res.e = res.e - (diy_significand_size - dp_significand_size - 2);
  183|  79.2k|    return res;
  184|  79.2k|}
_ZN8jsoncons6detail16normalize_diy_fpENS0_8diy_fp_tE:
  134|  79.2k|{
  135|  79.2k|    diy_fp_t res = in;
  136|       |    /* Normalize now */
  137|       |    /* the original number could have been a denormal. */
  138|   407k|    while (!(res.f & dp_hidden_bit))
  ------------------
  |  Branch (138:12): [True: 327k, False: 79.2k]
  ------------------
  139|   327k|    {
  140|   327k|        res.f <<= 1;
  141|   327k|        res.e--;
  142|   327k|    }
  143|       |    /* do the final shifts in one go. Don't forget the hidden bit (the '-1') */
  144|  79.2k|    res.f <<= (diy_significand_size - dp_significand_size - 1);
  145|  79.2k|    res.e = res.e - (diy_significand_size - dp_significand_size - 1);
  146|  79.2k|    return res;
  147|  79.2k|}
_ZN8jsoncons6detail13double2diy_fpEd:
  151|   158k|{
  152|   158k|    uint64_t d64 = double_to_uint64(d);
  153|   158k|    int biased_e = (d64 & dp_exponent_mask) >> dp_significand_size;
  154|   158k|    uint64_t significand = (d64 & dp_significand_mask);
  155|   158k|    diy_fp_t res;
  156|   158k|    if (biased_e != 0)
  ------------------
  |  Branch (156:9): [True: 139k, False: 19.1k]
  ------------------
  157|   139k|    {
  158|   139k|        res.f = significand + dp_hidden_bit;
  159|   139k|        res.e = biased_e - dp_exponent_bias;
  160|   139k|    } 
  161|  19.1k|    else
  162|  19.1k|    {
  163|  19.1k|        res.f = significand;
  164|  19.1k|        res.e = dp_min_exponent + 1;
  165|  19.1k|    }
  166|   158k|    return res;
  167|   158k|}
_ZN8jsoncons6detail16double_to_uint64Ed:
  120|   158k|uint64_t double_to_uint64(double d) {uint64_t d64; std::memcpy(&d64,&d,sizeof(double)); return d64; }
_ZN8jsoncons6detail6k_compEiii:
   82|  79.2k|{
   83|  79.2k|    constexpr double d_1_log2_10 = 0.30102999566398114; //  1 / lg(10)
   84|  79.2k|    int x = alpha - e + 63;
   85|  79.2k|    return static_cast<int>(std::ceil(x * d_1_log2_10));
   86|  79.2k|}
_ZN8jsoncons6detail12cached_powerEi:
   97|  79.2k|{
   98|  79.2k|    diy_fp_t res;
   99|  79.2k|    int index = 343 + k;
  100|  79.2k|    res.f = powers_ten[index];
  101|  79.2k|    res.e = powers_ten_e[index];
  102|  79.2k|    return res;
  103|  79.2k|}
_ZN8jsoncons6detail8multiplyENS0_8diy_fp_tES1_:
   65|   237k|{
   66|   237k|    uint64_t a, b, c, d, ac, bc, ad, bd, tmp;
   67|   237k|    diy_fp_t r; uint64_t M32 = 0xFFFFFFFF;
   68|   237k|    a = x.f >> 32; b = x.f & M32;
   69|   237k|    c = y.f >> 32; d = y.f & M32;
   70|   237k|    ac = a * c; bc = b * c; ad = a * d; bd = b * d;
   71|   237k|    tmp = (bd >> 32) + (ad & M32) + (bc & M32);
   72|   237k|    tmp += 1U << 31; /// mult_round
   73|   237k|    r.f = ac + (ad >> 32) + (bc >> 32) + (tmp >> 32);
   74|   237k|    r.e = x.e + y.e + 64;
   75|   237k|    return r;
   76|   237k|}
_ZN8jsoncons6detail9digit_genENS0_8diy_fp_tES1_S1_PcPiS3_:
  250|  79.2k|{
  251|  79.2k|    static constexpr uint32_t TEN2 = 100;
  252|       |
  253|  79.2k|    uint32_t div, p1; uint64_t p2, tmp, unit = 1;
  254|  79.2k|    int d, kappa;
  255|  79.2k|    diy_fp_t one, wp_W, Delta;
  256|  79.2k|    Delta = minus(Wp, Wm); Delta.f += 2 * unit;
  257|  79.2k|    wp_W = minus(Wp, W); wp_W.f += unit;
  258|  79.2k|    one.f = ((uint64_t)1) << -Wp.e; one.e = Wp.e;
  259|  79.2k|    p1 = static_cast<uint32_t>((Wp.f + 1) >> -one.e);
  260|  79.2k|    p2 = (Wp.f + 1) & (one.f - 1);
  261|  79.2k|    *len = 0; kappa = 3; div = TEN2;
  262|   305k|    while (kappa > 0)
  ------------------
  |  Branch (262:12): [True: 232k, False: 73.1k]
  ------------------
  263|   232k|    {
  264|   232k|        d = p1 / div;
  265|   232k|        if (d || *len) buffer[(*len)++] = (char)('0' + d);
  ------------------
  |  Branch (265:13): [True: 149k, False: 82.9k]
  |  Branch (265:18): [True: 5.47k, False: 77.4k]
  ------------------
  266|   232k|        p1 %= div; kappa--;
  267|   232k|        tmp = (((uint64_t)p1) << -one.e) + p2;
  268|   232k|        if (tmp < Delta.f)
  ------------------
  |  Branch (268:13): [True: 6.16k, False: 226k]
  ------------------
  269|  6.16k|        {
  270|  6.16k|            *K += kappa;
  271|  6.16k|            return round_weed(buffer, *len, wp_W.f, Delta.f, tmp,
  272|  6.16k|                              ((uint64_t)div) << -one.e, unit);
  273|  6.16k|        }
  274|   226k|        div /= 10;
  275|   226k|    }
  276|   780k|    while (1)
  ------------------
  |  Branch (276:12): [True: 780k, Folded]
  ------------------
  277|   780k|    {
  278|   780k|        p2 *= 10; Delta.f *= 10; unit *= 10;
  279|   780k|        d = static_cast<int>(p2 >> -one.e);
  280|   780k|        if (d || *len) buffer[(*len)++] = (char)('0' + d);
  ------------------
  |  Branch (280:13): [True: 696k, False: 84.1k]
  |  Branch (280:18): [True: 84.1k, False: 0]
  ------------------
  281|   780k|        p2 &= one.f - 1; kappa--;
  282|   780k|        if (p2 < Delta.f)
  ------------------
  |  Branch (282:13): [True: 73.1k, False: 707k]
  ------------------
  283|  73.1k|        {
  284|  73.1k|            *K += kappa;
  285|  73.1k|            return round_weed(buffer, *len, wp_W.f * unit, Delta.f, p2,
  286|  73.1k|                              one.f, unit);
  287|  73.1k|        }
  288|   780k|    }
  289|  73.1k|}
_ZN8jsoncons6detail5minusENS0_8diy_fp_tES1_:
   56|   158k|{
   57|   158k|    assert(x.e == y.e);
  ------------------
  |  Branch (57:5): [True: 158k, False: 0]
  ------------------
   58|   158k|    assert(x.f >= y.f);
  ------------------
  |  Branch (58:5): [True: 158k, False: 0]
  ------------------
   59|   158k|    diy_fp_t r = { x.f = x.f - y.f, x.e };
   60|   158k|    return r;
   61|   158k|}
_ZN8jsoncons6detail10round_weedEPcimmmmm:
  230|  79.2k|{
  231|  79.2k|    uint64_t wp_Wup = wp_W - ulp;
  232|  79.2k|    uint64_t wp_Wdown = wp_W + ulp;
  233|   106k|    while (rest < wp_Wup &&  /// round1
  ------------------
  |  Branch (233:12): [True: 52.0k, False: 54.3k]
  ------------------
  234|  52.0k|           Delta - rest >= ten_kappa &&
  ------------------
  |  Branch (234:12): [True: 40.9k, False: 11.1k]
  ------------------
  235|  40.9k|           (rest + ten_kappa < wp_Wup || /// closer
  ------------------
  |  Branch (235:13): [True: 20.9k, False: 20.0k]
  ------------------
  236|  20.0k|            wp_Wup - rest >= rest + ten_kappa - wp_Wup))
  ------------------
  |  Branch (236:13): [True: 6.22k, False: 13.7k]
  ------------------
  237|  27.1k|    {
  238|  27.1k|        buffer[len - 1]--; rest += ten_kappa;
  239|  27.1k|    }
  240|  79.2k|    if (rest < wp_Wdown && /// round2
  ------------------
  |  Branch (240:9): [True: 54.2k, False: 25.0k]
  ------------------
  241|  54.2k|        Delta - rest >= ten_kappa &&
  ------------------
  |  Branch (241:9): [True: 14.9k, False: 39.2k]
  ------------------
  242|  14.9k|        (rest + ten_kappa < wp_Wdown ||
  ------------------
  |  Branch (242:10): [True: 0, False: 14.9k]
  ------------------
  243|  14.9k|         wp_Wdown - rest > rest + ten_kappa - wp_Wdown)) return 0;
  ------------------
  |  Branch (243:10): [True: 2.67k, False: 12.2k]
  ------------------
  244|  76.5k|    return 2 * ulp <= rest && rest <= Delta - 4 * ulp; /// weed
  ------------------
  |  Branch (244:12): [True: 74.9k, False: 1.63k]
  |  Branch (244:31): [True: 74.2k, False: 749]
  ------------------
  245|  79.2k|}

_ZN8jsoncons16decstr_to_doubleEPKcmRd:
  889|  5.06k|{
  890|  5.06k|    const char* cur = s+length;
  891|  5.06k|    char *end = nullptr;
  892|  5.06k|    val = strtod(s, &end);
  893|  5.06k|    const char* str_end = end;
  894|  5.06k|    if (JSONCONS_UNLIKELY(end < cur))
  ------------------
  |  |   79|  5.06k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.06k]
  |  |  ------------------
  ------------------
  895|      0|    {
  896|      0|        if (*end == '.')
  ------------------
  |  Branch (896:13): [True: 0, False: 0]
  ------------------
  897|      0|        {
  898|      0|            std::string buf{s, length};
  899|      0|            char* dot_ptr = &buf[0] + (cur - end - 1);
  900|      0|            *dot_ptr = ',';
  901|      0|            end = nullptr;
  902|      0|            val = strtod(buf.c_str(), &end);
  903|      0|            str_end = s + (end - &buf[0]);
  904|      0|        }
  905|      0|        if (JSONCONS_UNLIKELY(str_end != cur))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  906|      0|        {
  907|      0|            return to_number_result<char>{str_end,std::errc::invalid_argument};
  908|      0|        }
  909|      0|    }
  910|  5.06k|    if (JSONCONS_UNLIKELY(val <= -HUGE_VAL || val >= HUGE_VAL))
  ------------------
  |  |   79|  10.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.06k]
  |  |  |  Branch (79:50): [True: 0, False: 5.06k]
  |  |  |  Branch (79:50): [True: 0, False: 5.06k]
  |  |  ------------------
  ------------------
  911|      0|    {
  912|      0|        return to_number_result<char>{str_end, std::errc::result_out_of_range};
  913|      0|    }
  914|  5.06k|    return to_number_result<char>{str_end};
  915|  5.06k|}
_ZN8jsoncons16to_number_resultIcEC2EPKc:
  160|  5.06k|        : ptr(ptr_), ec(std::errc{})
  161|  5.06k|    {
  162|  5.06k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr6nonstd10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  7.86M|{
   43|  7.86M|    using char_type = typename Result::value_type;
   44|       |
   45|  7.86M|    char_type buf[255];
   46|  7.86M|    char_type *p = buf;
   47|  7.86M|    const char_type* last = buf+255;
   48|       |
   49|  7.86M|    bool is_negative = value < 0;
   50|       |
   51|  7.86M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 7.86M]
  ------------------
   52|      0|    {
   53|      0|        do
   54|      0|        {
   55|      0|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|      0|        }
   57|      0|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 0, False: 0]
  |  Branch (57:33): [True: 0, False: 0]
  ------------------
   58|      0|    }
   59|  7.86M|    else
   60|  7.86M|    {
   61|       |
   62|  7.86M|        do
   63|  13.2M|        {
   64|  13.2M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  13.2M|        }
   66|  13.2M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 5.43M, False: 7.86M]
  |  Branch (66:33): [True: 5.43M, False: 0]
  ------------------
   67|  7.86M|    }
   68|  7.86M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   54|  7.86M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 7.86M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  7.86M|    std::size_t count = (p - buf);
   71|  7.86M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 7.86M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  21.1M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 13.2M, False: 7.86M]
  ------------------
   77|  13.2M|    {
   78|  13.2M|        result.push_back(*p);
   79|  13.2M|    }
   80|       |
   81|  7.86M|    return count;
   82|  7.86M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr6nonstd10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  4.77M|{
   43|  4.77M|    using char_type = typename Result::value_type;
   44|       |
   45|  4.77M|    char_type buf[255];
   46|  4.77M|    char_type *p = buf;
   47|  4.77M|    const char_type* last = buf+255;
   48|       |
   49|  4.77M|    bool is_negative = value < 0;
   50|       |
   51|  4.77M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 4.77M, False: 6.36k]
  ------------------
   52|  4.77M|    {
   53|  4.77M|        do
   54|  5.17M|        {
   55|  5.17M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  5.17M|        }
   57|  5.17M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 400k, False: 4.77M]
  |  Branch (57:33): [True: 400k, False: 0]
  ------------------
   58|  4.77M|    }
   59|  6.36k|    else
   60|  6.36k|    {
   61|       |
   62|  6.36k|        do
   63|  42.1k|        {
   64|  42.1k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  42.1k|        }
   66|  42.1k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 35.7k, False: 6.36k]
  |  Branch (66:33): [True: 35.7k, False: 0]
  ------------------
   67|  6.36k|    }
   68|  4.77M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   54|  4.77M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 4.77M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  4.77M|    std::size_t count = (p - buf);
   71|  4.77M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 4.77M, False: 6.36k]
  ------------------
   72|  4.77M|    {
   73|  4.77M|        result.push_back('-');
   74|  4.77M|        ++count;
   75|  4.77M|    }
   76|  9.99M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 5.21M, False: 4.77M]
  ------------------
   77|  5.21M|    {
   78|  5.21M|        result.push_back(*p);
   79|  5.21M|    }
   80|       |
   81|  4.77M|    return count;
   82|  4.77M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  80.2k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  80.2k|    {
  489|  80.2k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  80.2k|        struct lconv *lc = localeconv();
  491|  80.2k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 80.2k, False: 0]
  |  Branch (491:30): [True: 80.2k, False: 0]
  ------------------
  492|  80.2k|        {
  493|  80.2k|            decimal_point_ = lc->decimal_point[0];
  494|  80.2k|        }
  495|  80.2k|#endif
  496|  80.2k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  80.2k|    {
  504|  80.2k|        std::size_t count = 0;
  505|       |
  506|  80.2k|        char number_buffer[200];
  507|  80.2k|        int length = 0;
  508|       |
  509|  80.2k|        switch (float_format_)
  510|  80.2k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 80.2k]
  ------------------
  512|      0|            {
  513|      0|                if (precision_ > 0)
  ------------------
  |  Branch (513:21): [True: 0, False: 0]
  ------------------
  514|      0|                {
  515|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*f", precision_, val);
  516|      0|                    if (length < 0)
  ------------------
  |  Branch (516:25): [True: 0, False: 0]
  ------------------
  517|      0|                    {
  518|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  519|      0|                    }
  520|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  521|      0|                }
  522|      0|                else
  523|      0|                {
  524|      0|                    if (!dtoa_fixed(val, decimal_point_, result))
  ------------------
  |  Branch (524:25): [True: 0, False: 0]
  ------------------
  525|      0|                    {
  526|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  527|      0|                    }
  528|      0|                }
  529|      0|            }
  530|      0|            break;
  531|      0|        case float_chars_format::scientific:
  ------------------
  |  Branch (531:9): [True: 0, False: 80.2k]
  ------------------
  532|      0|            {
  533|      0|                if (precision_ > 0)
  ------------------
  |  Branch (533:21): [True: 0, False: 0]
  ------------------
  534|      0|                {
  535|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*e", precision_, val);
  536|      0|                    if (length < 0)
  ------------------
  |  Branch (536:25): [True: 0, False: 0]
  ------------------
  537|      0|                    {
  538|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  539|      0|                    }
  540|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  541|      0|                }
  542|      0|                else
  543|      0|                {
  544|      0|                    if (!dtoa_scientific(val, decimal_point_, result))
  ------------------
  |  Branch (544:25): [True: 0, False: 0]
  ------------------
  545|      0|                    {
  546|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  547|      0|                    }
  548|      0|                }
  549|      0|            }
  550|      0|            break;
  551|  80.2k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 80.2k, False: 0]
  ------------------
  552|  80.2k|            {
  553|  80.2k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 80.2k]
  ------------------
  554|      0|                {
  555|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*g", precision_, val);
  556|      0|                    if (length < 0)
  ------------------
  |  Branch (556:25): [True: 0, False: 0]
  ------------------
  557|      0|                    {
  558|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  559|      0|                    }
  560|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  561|      0|                }
  562|  80.2k|                else
  563|  80.2k|                {
  564|  80.2k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 80.2k]
  ------------------
  565|      0|                    {
  566|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  567|      0|                    }
  568|  80.2k|                }             
  569|  80.2k|                break;
  570|  80.2k|            }
  571|  80.2k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 80.2k]
  ------------------
  572|      0|                JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  573|      0|                break;
  574|  80.2k|        }
  575|  80.2k|        return count;
  576|  80.2k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  5.06k|{
  244|  5.06k|    const char *sbeg = buffer;
  245|  5.06k|    const char *send = sbeg + length;
  246|       |
  247|  5.06k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 5.06k, False: 0]
  ------------------
  248|  5.06k|    {
  249|  5.06k|        bool needs_dot = true;
  250|  93.1k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 88.0k, False: 5.06k]
  ------------------
  251|  88.0k|        {
  252|  88.0k|            switch (*q)
  253|  88.0k|            {
  254|  4.11k|            case '-':
  ------------------
  |  Branch (254:13): [True: 4.11k, False: 83.9k]
  ------------------
  255|  12.3k|            case '0':
  ------------------
  |  Branch (255:13): [True: 8.23k, False: 79.8k]
  ------------------
  256|  21.6k|            case '1':
  ------------------
  |  Branch (256:13): [True: 9.25k, False: 78.8k]
  ------------------
  257|  31.9k|            case '2':
  ------------------
  |  Branch (257:13): [True: 10.3k, False: 77.7k]
  ------------------
  258|  38.8k|            case '3':
  ------------------
  |  Branch (258:13): [True: 6.87k, False: 81.2k]
  ------------------
  259|  44.2k|            case '4':
  ------------------
  |  Branch (259:13): [True: 5.45k, False: 82.6k]
  ------------------
  260|  51.3k|            case '5':
  ------------------
  |  Branch (260:13): [True: 7.09k, False: 80.9k]
  ------------------
  261|  60.0k|            case '6':
  ------------------
  |  Branch (261:13): [True: 8.65k, False: 79.4k]
  ------------------
  262|  65.5k|            case '7':
  ------------------
  |  Branch (262:13): [True: 5.48k, False: 82.6k]
  ------------------
  263|  72.6k|            case '8':
  ------------------
  |  Branch (263:13): [True: 7.11k, False: 80.9k]
  ------------------
  264|  77.3k|            case '9':
  ------------------
  |  Branch (264:13): [True: 4.71k, False: 83.3k]
  ------------------
  265|  78.7k|            case '+':
  ------------------
  |  Branch (265:13): [True: 1.42k, False: 86.6k]
  ------------------
  266|  78.7k|                result.push_back(*q);
  267|  78.7k|                break;
  268|  2.53k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 2.53k, False: 85.5k]
  ------------------
  269|  2.53k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 88.0k]
  ------------------
  270|  2.53k|                result.push_back('e');
  271|  2.53k|                needs_dot = false;
  272|  2.53k|                break;
  273|  6.77k|            default:
  ------------------
  |  Branch (273:13): [True: 6.77k, False: 81.3k]
  ------------------
  274|  6.77k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 3.98k, False: 2.79k]
  ------------------
  275|  3.98k|                {
  276|  3.98k|                    needs_dot = false;
  277|  3.98k|                    result.push_back('.');
  278|  3.98k|                }
  279|  6.77k|                break;
  280|  88.0k|            }
  281|  88.0k|        }
  282|  5.06k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 1.07k, False: 3.98k]
  ------------------
  283|  1.07k|        {
  284|  1.07k|            result.push_back('.');
  285|  1.07k|            result.push_back('0');
  286|  1.07k|        }
  287|  5.06k|    }
  288|  5.06k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKciiiiRT_:
  171|  74.2k|{
  172|  74.2k|    int nb_digits = length;
  173|  74.2k|    int offset;
  174|       |    /* v = buffer * 10^k
  175|       |       kk is such that 10^(kk-1) <= v < 10^kk
  176|       |       this way kk gives the position of the decimal point.
  177|       |    */
  178|  74.2k|    int kk = nb_digits + k;
  179|       |
  180|  74.2k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 25.9k, False: 48.2k]
  |  Branch (180:28): [True: 21.8k, False: 4.08k]
  ------------------
  181|  21.8k|    {
  182|       |        /* the first digits are already in. Add some 0s and call it a day. */
  183|       |        /* the max_exp is a personal choice. Only 16 digits could possibly be relevant.
  184|       |         * Basically we want to print 12340000000 rather than 1234.0e7 or 1.234e10 */
  185|   171k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 149k, False: 21.8k]
  ------------------
  186|   149k|        {
  187|   149k|            result.push_back(buffer[i]);
  188|   149k|        }
  189|  46.8k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 24.9k, False: 21.8k]
  ------------------
  190|  24.9k|        {
  191|  24.9k|            result.push_back('0');
  192|  24.9k|        }
  193|  21.8k|        result.push_back('.');
  194|  21.8k|        result.push_back('0');
  195|  21.8k|    } 
  196|  52.3k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 27.7k, False: 24.5k]
  |  Branch (196:24): [True: 23.7k, False: 4.08k]
  ------------------
  197|  23.7k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|   108k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 84.7k, False: 23.7k]
  ------------------
  200|  84.7k|        {
  201|  84.7k|            result.push_back(buffer[i]);
  202|  84.7k|        }
  203|  23.7k|        result.push_back('.');
  204|   281k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 257k, False: 23.7k]
  ------------------
  205|   257k|        {
  206|   257k|            result.push_back(buffer[i]);
  207|   257k|        }
  208|  23.7k|    } 
  209|  28.6k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 7.22k, False: 21.3k]
  |  Branch (209:30): [True: 3.14k, False: 4.08k]
  ------------------
  210|  3.14k|    {
  211|  3.14k|        offset = 2 - kk;
  212|       |
  213|  3.14k|        result.push_back('0');
  214|  3.14k|        result.push_back('.');
  215|  9.67k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 6.53k, False: 3.14k]
  ------------------
  216|  6.53k|            result.push_back('0');
  217|  48.2k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 45.1k, False: 3.14k]
  ------------------
  218|  45.1k|        {
  219|  45.1k|            result.push_back(buffer[i]);
  220|  45.1k|        }
  221|  3.14k|    } 
  222|  25.4k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 3.82k, False: 21.6k]
  ------------------
  223|  3.82k|    {
  224|  3.82k|        result.push_back(buffer[0]);
  225|  3.82k|        result.push_back('e');
  226|  3.82k|        fill_exponent(kk - 1, result);
  227|  3.82k|    } 
  228|  21.6k|    else
  229|  21.6k|    {
  230|  21.6k|        result.push_back(buffer[0]);
  231|  21.6k|        result.push_back('.');
  232|   312k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 291k, False: 21.6k]
  ------------------
  233|   291k|        {
  234|   291k|            result.push_back(buffer[i]);
  235|   291k|        }
  236|  21.6k|        result.push_back('e');
  237|  21.6k|        fill_exponent(kk - 1, result);
  238|  21.6k|    }
  239|  74.2k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  25.4k|{
  137|  25.4k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 21.3k, False: 4.08k]
  ------------------
  138|  21.3k|    {
  139|  21.3k|        result.push_back('-');
  140|  21.3k|        K = -K;
  141|  21.3k|    }
  142|  4.08k|    else
  143|  4.08k|    {
  144|  4.08k|        result.push_back('+'); // compatibility with sprintf
  145|  4.08k|    }
  146|       |
  147|  25.4k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 1.14k, False: 24.3k]
  ------------------
  148|  1.14k|    {
  149|  1.14k|        result.push_back('0'); // compatibility with sprintf
  150|  1.14k|        result.push_back((char)('0' + K));
  151|  1.14k|    }
  152|  24.3k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 10.9k, False: 13.4k]
  ------------------
  153|  10.9k|    {
  154|  10.9k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  10.9k|        result.push_back((char)('0' + K));
  156|  10.9k|    }
  157|  13.4k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 13.4k, False: 0]
  ------------------
  158|  13.4k|    {
  159|  13.4k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  13.4k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  13.4k|        result.push_back((char)('0' + K));
  162|  13.4k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  25.4k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  80.2k|{
  476|  80.2k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  80.2k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  80.2k|{
  367|  80.2k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 947, False: 79.2k]
  ------------------
  368|    947|    {
  369|    947|        result.push_back('0');
  370|    947|        result.push_back('.');
  371|    947|        result.push_back('0');
  372|    947|        return true;
  373|    947|    }
  374|       |
  375|  79.2k|    int length = 0;
  376|  79.2k|    int k;
  377|       |
  378|  79.2k|    char buffer[100];
  379|       |
  380|  79.2k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 55.4k, False: 23.8k]
  ------------------
  381|  79.2k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 74.2k, False: 5.06k]
  ------------------
  382|  74.2k|    {
  383|  74.2k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 52.4k, False: 21.7k]
  ------------------
  384|  52.4k|        {
  385|  52.4k|            result.push_back('-');
  386|  52.4k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  74.2k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  74.2k|        return true;
  391|  74.2k|    }
  392|  5.06k|    else
  393|  5.06k|    {
  394|  5.06k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  5.06k|    }
  396|  79.2k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  5.06k|{
  330|  5.06k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 5.06k]
  ------------------
  331|      0|    {
  332|      0|        result.push_back('0');
  333|      0|        result.push_back('.');
  334|      0|        result.push_back('0');
  335|      0|        return true;
  336|      0|    }
  337|       |
  338|  5.06k|    char buffer[100];
  339|  5.06k|    int precision = std::numeric_limits<double>::digits10;
  340|  5.06k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  5.06k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 5.06k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  5.06k|    double x{0};
  346|  5.06k|    auto res = decstr_to_double(buffer, length, x);
  347|  5.06k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 5.06k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  5.06k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 4.21k, False: 844]
  ------------------
  352|  4.21k|    {
  353|  4.21k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  4.21k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  4.21k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 4.21k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  4.21k|    }
  360|  5.06k|    dump_buffer(buffer, length, decimal_point, result);
  361|  5.06k|    return true;
  362|  5.06k|}

_ZN8jsoncons14unicode_traits8validateIhEENSt3__19enable_ifIXsr6nonstd8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|  4.28M|    {
 1148|  4.28M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|  4.28M|        const uint8_t* end = it + length;
 1150|       |
 1151|  4.28M|        unicode_errc  result{};
 1152|  4.29M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 13.3k, False: 4.28M]
  ------------------
 1153|  13.3k|        {
 1154|  13.3k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 4.57k, False: 8.76k]
  ------------------
 1155|  4.57k|            {
 1156|  17.4k|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  326|  9.15k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (326:32): [True: 3.54k, False: 1.03k]
  |  |  |  Branch (326:34): [True: 3.14k, False: 392]
  |  |  |  Branch (326:36): [True: 2.78k, False: 367]
  |  |  |  Branch (326:38): [True: 2.37k, False: 407]
  |  |  |  Branch (326:40): [True: 2.10k, False: 270]
  |  |  |  Branch (326:42): [True: 1.86k, False: 240]
  |  |  |  Branch (326:44): [True: 1.65k, False: 211]
  |  |  |  Branch (326:46): [True: 1.44k, False: 205]
  |  |  ------------------
  ------------------
 1157|  1.44k|                continue;
 1158|  17.4k|            }
 1159|  11.8k|    non_ascii:
 1160|  11.8k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  11.8k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 48, False: 11.8k]
  ------------------
 1162|     48|            {
 1163|     48|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     48|            }
 1165|  11.8k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 166, False: 11.6k]
  ------------------
 1166|    166|            {
 1167|    166|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    166|            }
 1169|  11.6k|            it += len;
 1170|  11.6k|        }
 1171|  4.28M|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|  4.28M|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  11.8k|    {
  306|  11.8k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  11.8k|        const uint8_t* end = it+length;
  308|       |
  309|  11.8k|        uint8_t byte;
  310|  11.8k|        switch (length) {
  311|     15|        default:
  ------------------
  |  Branch (311:9): [True: 15, False: 11.8k]
  ------------------
  312|     15|            return unicode_errc::over_long_utf8_sequence;
  313|    424|        case 4:
  ------------------
  |  Branch (313:9): [True: 424, False: 11.4k]
  ------------------
  314|    424|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 6, False: 418]
  ------------------
  315|      6|                return unicode_errc::bad_continuation_byte;
  316|    418|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  565|    418|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|    892|        case 3:
  ------------------
  |  Branch (317:9): [True: 474, False: 11.3k]
  ------------------
  318|    892|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 11, False: 881]
  ------------------
  319|     11|                return unicode_errc::bad_continuation_byte;
  320|    881|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  565|    881|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  3.48k|        case 2:
  ------------------
  |  Branch (321:9): [True: 2.60k, False: 9.24k]
  ------------------
  322|  3.48k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 47, False: 3.44k]
  ------------------
  323|     47|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  3.44k|            switch (*it) 
  326|  3.44k|            {
  327|       |                // no fall-through in this inner switch
  328|    203|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 203, False: 3.23k]
  |  Branch (328:32): [True: 7, False: 196]
  ------------------
  329|    243|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 243, False: 3.19k]
  |  Branch (329:32): [True: 3, False: 240]
  ------------------
  330|    240|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 206, False: 3.23k]
  |  Branch (330:32): [True: 6, False: 200]
  ------------------
  331|    205|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 205, False: 3.23k]
  |  Branch (331:32): [True: 4, False: 201]
  ------------------
  332|  2.58k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 2.58k, False: 857]
  |  Branch (332:32): [True: 0, False: 2.58k]
  ------------------
  333|  3.44k|            }
  334|       |
  335|  3.42k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  565|  3.42k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  11.7k|        case 1:
  ------------------
  |  Branch (336:9): [True: 8.32k, False: 3.51k]
  ------------------
  337|  11.7k|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 3.48k, False: 8.26k]
  |  Branch (337:32): [True: 66, False: 3.41k]
  ------------------
  338|     66|                return unicode_errc::source_illegal;
  339|  11.6k|            break;
  340|  11.8k|        }
  341|  11.6k|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 1, False: 11.6k]
  ------------------
  342|      1|            return unicode_errc::source_illegal;
  343|       |
  344|  11.6k|        return unicode_errc();
  345|  11.6k|    }

_ZN8jsoncons7msgpack15make_error_codeENS0_12msgpack_errcE:
   88|  3.82k|{
   89|  3.82k|    return std::error_code(static_cast<int>(e),msgpack_error_category());
   90|  3.82k|}
_ZN8jsoncons7msgpack22msgpack_error_categoryEv:
   81|  3.82k|{
   82|  3.82k|  static msgpack_error_category_impl instance;
   83|  3.82k|  return instance;
   84|  3.82k|}

_ZN8jsoncons7msgpack22msgpack_decode_optionsC1Ev:
   40|  4.76k|    msgpack_decode_options() = default;
_ZN8jsoncons7msgpack22msgpack_options_commonC2Ev:
   23|  4.76k|    msgpack_options_common() = default;
_ZN8jsoncons7msgpack22msgpack_options_commonD2Ev:
   26|  4.76k|    virtual ~msgpack_options_common() = default;
_ZNK8jsoncons7msgpack22msgpack_options_common17max_nesting_depthEv:
   31|  4.76k|    {
   32|  4.76k|        return max_nesting_depth_;
   33|  4.76k|    }

_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RKNS0_22msgpack_decode_optionsERKS7_:
   86|  4.76k|       : source_(std::forward<Sourceable>(source)),
   87|  4.76k|         max_nesting_depth_(options.max_nesting_depth()),
   88|  4.76k|         text_buffer_(alloc),
   89|  4.76k|         bytes_buffer_(alloc),
   90|  4.76k|         state_stack_(alloc)
   91|  4.76k|    {
   92|  4.76k|        state_stack_.emplace_back(parse_mode::root,0);
   93|  4.76k|    }
_ZN8jsoncons7msgpack11parse_stateC2ENS0_10parse_modeEm:
   46|   400k|        : mode(mode), length(length)
   47|   400k|    {
   48|   400k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  101|  4.76k|    {
  102|  4.76k|        more_ = true;
  103|  4.76k|        done_ = false;
  104|  4.76k|        text_buffer_.clear();
  105|  4.76k|        bytes_buffer_.clear();
  106|  4.76k|        state_stack_.clear();
  107|  4.76k|        state_stack_.emplace_back(parse_mode::root,0);
  108|  4.76k|        nesting_depth_ = 0;
  109|  4.76k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  159|  4.76k|    {
  160|  33.6M|        while (!done_ && more_)
  ------------------
  |  Branch (160:16): [True: 33.6M, False: 932]
  |  Branch (160:26): [True: 33.6M, False: 0]
  ------------------
  161|  33.6M|        {
  162|  33.6M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (162:21): [True: 33.6M, False: 0]
  ------------------
  163|  33.6M|            {
  164|  14.2M|                case parse_mode::array:
  ------------------
  |  Branch (164:17): [True: 14.2M, False: 19.4M]
  ------------------
  165|  14.2M|                {
  166|  14.2M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (166:25): [True: 14.0M, False: 161k]
  ------------------
  167|  14.0M|                    {
  168|  14.0M|                        ++state_stack_.back().index;
  169|  14.0M|                        read_item(visitor, ec);
  170|  14.0M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  14.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 815, False: 14.0M]
  |  |  ------------------
  ------------------
  171|    815|                        {
  172|    815|                            return;
  173|    815|                        }
  174|  14.0M|                    }
  175|   161k|                    else
  176|   161k|                    {
  177|   161k|                        end_array(visitor, ec);
  178|   161k|                    }
  179|  14.2M|                    break;
  180|  14.2M|                }
  181|  14.2M|                case parse_mode::map_key:
  ------------------
  |  Branch (181:17): [True: 9.80M, False: 23.8M]
  ------------------
  182|  9.80M|                {
  183|  9.80M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (183:25): [True: 9.62M, False: 177k]
  ------------------
  184|  9.62M|                    {
  185|  9.62M|                        ++state_stack_.back().index;
  186|  9.62M|                        state_stack_.back().mode = parse_mode::map_value;
  187|  9.62M|                        read_item(visitor, ec);
  188|  9.62M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.62M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 661, False: 9.62M]
  |  |  ------------------
  ------------------
  189|    661|                        {
  190|    661|                            return;
  191|    661|                        }
  192|  9.62M|                    }
  193|   177k|                    else
  194|   177k|                    {
  195|   177k|                        end_object(visitor, ec);
  196|   177k|                    }
  197|  9.80M|                    break;
  198|  9.80M|                }
  199|  9.80M|                case parse_mode::map_value:
  ------------------
  |  Branch (199:17): [True: 9.60M, False: 24.0M]
  ------------------
  200|  9.60M|                {
  201|  9.60M|                    state_stack_.back().mode = parse_mode::map_key;
  202|  9.60M|                    read_item(visitor, ec);
  203|  9.60M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.60M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.88k, False: 9.60M]
  |  |  ------------------
  ------------------
  204|  1.88k|                    {
  205|  1.88k|                        return;
  206|  1.88k|                    }
  207|  9.60M|                    break;
  208|  9.60M|                }
  209|  9.60M|                case parse_mode::root:
  ------------------
  |  Branch (209:17): [True: 4.76k, False: 33.6M]
  ------------------
  210|  4.76k|                {
  211|  4.76k|                    state_stack_.back().mode = parse_mode::accept;
  212|  4.76k|                    read_item(visitor, ec);
  213|  4.76k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.76k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 465, False: 4.29k]
  |  |  ------------------
  ------------------
  214|    465|                    {
  215|    465|                        return;
  216|    465|                    }
  217|  4.29k|                    break;
  218|  4.76k|                }
  219|  4.29k|                case parse_mode::accept:
  ------------------
  |  Branch (219:17): [True: 932, False: 33.6M]
  ------------------
  220|    932|                {
  221|    932|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   54|    932|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 932]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  222|    932|                    state_stack_.clear();
  223|    932|                    more_ = false;
  224|    932|                    done_ = true;
  225|    932|                    visitor.flush();
  226|    932|                    break;
  227|    932|                }
  228|  33.6M|            }
  229|  33.6M|        }
  230|  4.76k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  234|  33.2M|    {
  235|  33.2M|        if (source_.is_error())
  ------------------
  |  Branch (235:13): [True: 0, False: 33.2M]
  ------------------
  236|      0|        {
  237|      0|            ec = msgpack_errc::source_error;
  238|      0|            more_ = false;
  239|      0|            return;
  240|      0|        }   
  241|       |
  242|  33.2M|        uint8_t type;
  243|  33.2M|        if (source_.read(&type, 1) == 0)
  ------------------
  |  Branch (243:13): [True: 2.92k, False: 33.2M]
  ------------------
  244|  2.92k|        {
  245|  2.92k|            ec = msgpack_errc::unexpected_eof;
  246|  2.92k|            more_ = false;
  247|  2.92k|            return;
  248|  2.92k|        }
  249|       |
  250|  33.2M|        if (type <= 0xbf)
  ------------------
  |  Branch (250:13): [True: 12.8M, False: 20.3M]
  ------------------
  251|  12.8M|        {
  252|  12.8M|            if (type <= 0x7f) 
  ------------------
  |  Branch (252:17): [True: 8.22M, False: 4.66M]
  ------------------
  253|  8.22M|            {
  254|       |                // positive fixint
  255|  8.22M|                visitor.uint64_value(type, semantic_tag::none, *this, ec);
  256|  8.22M|                more_ = !cursor_mode_;
  257|  8.22M|            }
  258|  4.66M|            else if (type <= 0x8f) 
  ------------------
  |  Branch (258:22): [True: 204k, False: 4.46M]
  ------------------
  259|   204k|            {
  260|   204k|                begin_object(visitor,type,ec); // fixmap
  261|   204k|            }
  262|  4.46M|            else if (type <= 0x9f) 
  ------------------
  |  Branch (262:22): [True: 180k, False: 4.27M]
  ------------------
  263|   180k|            {
  264|   180k|                begin_array(visitor,type,ec); // fixarray
  265|   180k|            }
  266|  4.27M|            else 
  267|  4.27M|            {
  268|       |                // fixstr
  269|  4.27M|                const size_t len = type & 0x1f;
  270|       |
  271|  4.27M|                auto data = source_.read_span(len, bytes_buffer_);
  272|  4.27M|                if (data.size() != static_cast<std::size_t>(len))
  ------------------
  |  Branch (272:21): [True: 31, False: 4.27M]
  ------------------
  273|     31|                {
  274|     31|                    ec = msgpack_errc::unexpected_eof;
  275|     31|                    more_ = false;
  276|     31|                    return;
  277|     31|                }
  278|       |
  279|  4.27M|                auto result = unicode_traits::validate(data.data(), data.size());
  280|  4.27M|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (280:21): [True: 178, False: 4.27M]
  ------------------
  281|    178|                {
  282|    178|                    ec = msgpack_errc::invalid_utf8_text_string;
  283|    178|                    more_ = false;
  284|    178|                    return;
  285|    178|                }
  286|  4.27M|                visitor.string_value(jsoncons::string_view(reinterpret_cast<const char*>(data.data()),data.size()), 
  287|  4.27M|                    semantic_tag::none, *this, ec);
  288|  4.27M|                more_ = !cursor_mode_;
  289|  4.27M|            }
  290|  12.8M|        }
  291|  20.3M|        else if (type >= 0xe0) 
  ------------------
  |  Branch (291:18): [True: 4.56M, False: 15.8M]
  ------------------
  292|  4.56M|        {
  293|       |            // negative fixint
  294|  4.56M|            visitor.int64_value(static_cast<int8_t>(type), semantic_tag::none, *this, ec);
  295|  4.56M|            more_ = !cursor_mode_;
  296|  4.56M|        }
  297|  15.8M|        else
  298|  15.8M|        {
  299|  15.8M|            switch (type)
  300|  15.8M|            {
  301|   142k|                case jsoncons::msgpack::msgpack_type::nil_type: 
  ------------------
  |  Branch (301:17): [True: 142k, False: 15.6M]
  ------------------
  302|   142k|                {
  303|   142k|                    visitor.null_value(semantic_tag::none, *this, ec);
  304|   142k|                    more_ = !cursor_mode_;
  305|   142k|                    break;
  306|      0|                }
  307|  10.5M|                case jsoncons::msgpack::msgpack_type::true_type:
  ------------------
  |  Branch (307:17): [True: 10.5M, False: 5.27M]
  ------------------
  308|  10.5M|                {
  309|  10.5M|                    visitor.bool_value(true, semantic_tag::none, *this, ec);
  310|  10.5M|                    more_ = !cursor_mode_;
  311|  10.5M|                    break;
  312|      0|                }
  313|  3.33M|                case jsoncons::msgpack::msgpack_type::false_type:
  ------------------
  |  Branch (313:17): [True: 3.33M, False: 12.4M]
  ------------------
  314|  3.33M|                {
  315|  3.33M|                    visitor.bool_value(false, semantic_tag::none, *this, ec);
  316|  3.33M|                    more_ = !cursor_mode_;
  317|  3.33M|                    break;
  318|      0|                }
  319|  67.2k|                case jsoncons::msgpack::msgpack_type::float32_type: 
  ------------------
  |  Branch (319:17): [True: 67.2k, False: 15.7M]
  ------------------
  320|  67.2k|                {
  321|  67.2k|                    uint8_t buf[sizeof(float)];
  322|  67.2k|                    if (source_.read(buf, sizeof(float)) != sizeof(float))
  ------------------
  |  Branch (322:25): [True: 6, False: 67.2k]
  ------------------
  323|      6|                    {
  324|      6|                        ec = msgpack_errc::unexpected_eof;
  325|      6|                        more_ = false;
  326|      6|                        return;
  327|      6|                    }
  328|  67.2k|                    float val = binary::big_to_native<float>(buf, sizeof(buf));
  329|  67.2k|                    visitor.double_value(val, semantic_tag::none, *this, ec);
  330|  67.2k|                    more_ = !cursor_mode_;
  331|  67.2k|                    break;
  332|  67.2k|                }
  333|       |
  334|  15.0k|                case jsoncons::msgpack::msgpack_type::float64_type: 
  ------------------
  |  Branch (334:17): [True: 15.0k, False: 15.8M]
  ------------------
  335|  15.0k|                {
  336|  15.0k|                    uint8_t buf[sizeof(double)];
  337|  15.0k|                    if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (337:25): [True: 8, False: 14.9k]
  ------------------
  338|      8|                    {
  339|      8|                        ec = msgpack_errc::unexpected_eof;
  340|      8|                        more_ = false;
  341|      8|                        return;
  342|      8|                    }
  343|  14.9k|                    double val = binary::big_to_native<double>(buf, sizeof(buf));
  344|  14.9k|                    visitor.double_value(val, semantic_tag::none, *this, ec);
  345|  14.9k|                    more_ = !cursor_mode_;
  346|  14.9k|                    break;
  347|  15.0k|                }
  348|       |
  349|  3.51k|                case jsoncons::msgpack::msgpack_type::uint8_type: 
  ------------------
  |  Branch (349:17): [True: 3.51k, False: 15.8M]
  ------------------
  350|  3.51k|                {
  351|  3.51k|                    uint8_t b;
  352|  3.51k|                    if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (352:25): [True: 1, False: 3.51k]
  ------------------
  353|      1|                    {
  354|      1|                        ec = msgpack_errc::unexpected_eof;
  355|      1|                        more_ = false;
  356|      1|                        return;
  357|      1|                    }
  358|  3.51k|                    visitor.uint64_value(b, semantic_tag::none, *this, ec);
  359|  3.51k|                    more_ = !cursor_mode_;
  360|  3.51k|                    break;
  361|  3.51k|                }
  362|       |
  363|   205k|                case jsoncons::msgpack::msgpack_type::uint16_type: 
  ------------------
  |  Branch (363:17): [True: 205k, False: 15.6M]
  ------------------
  364|   205k|                {
  365|   205k|                    uint8_t buf[sizeof(uint16_t)];
  366|   205k|                    if (source_.read(buf, sizeof(uint16_t)) !=sizeof(uint16_t)) 
  ------------------
  |  Branch (366:25): [True: 3, False: 205k]
  ------------------
  367|      3|                    {
  368|      3|                        ec = msgpack_errc::unexpected_eof;
  369|      3|                        more_ = false;
  370|      3|                        return;
  371|      3|                    }
  372|   205k|                    uint16_t val = binary::big_to_native<uint16_t>(buf, sizeof(buf));
  373|   205k|                    visitor.uint64_value(val, semantic_tag::none, *this, ec);
  374|   205k|                    more_ = !cursor_mode_;
  375|   205k|                    break;
  376|   205k|                }
  377|       |
  378|  63.3k|                case jsoncons::msgpack::msgpack_type::uint32_type: 
  ------------------
  |  Branch (378:17): [True: 63.3k, False: 15.7M]
  ------------------
  379|  63.3k|                {
  380|  63.3k|                    uint8_t buf[sizeof(uint32_t)];
  381|  63.3k|                    if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (381:25): [True: 3, False: 63.3k]
  ------------------
  382|      3|                    {
  383|      3|                        ec = msgpack_errc::unexpected_eof;
  384|      3|                        more_ = false;
  385|      3|                        return;
  386|      3|                    }
  387|  63.3k|                    uint32_t val = binary::big_to_native<uint32_t>(buf, sizeof(buf));
  388|  63.3k|                    visitor.uint64_value(val, semantic_tag::none, *this, ec);
  389|  63.3k|                    more_ = !cursor_mode_;
  390|  63.3k|                    break;
  391|  63.3k|                }
  392|       |
  393|  1.81k|                case jsoncons::msgpack::msgpack_type::uint64_type: 
  ------------------
  |  Branch (393:17): [True: 1.81k, False: 15.8M]
  ------------------
  394|  1.81k|                {
  395|  1.81k|                    uint8_t buf[sizeof(uint64_t)];
  396|  1.81k|                    if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (396:25): [True: 3, False: 1.81k]
  ------------------
  397|      3|                    {
  398|      3|                        ec = msgpack_errc::unexpected_eof;
  399|      3|                        more_ = false;
  400|      3|                        return;
  401|      3|                    }
  402|  1.81k|                    uint64_t val = binary::big_to_native<uint64_t>(buf, sizeof(buf));
  403|  1.81k|                    visitor.uint64_value(val, semantic_tag::none, *this, ec);
  404|  1.81k|                    more_ = !cursor_mode_;
  405|  1.81k|                    break;
  406|  1.81k|                }
  407|       |
  408|   215k|                case jsoncons::msgpack::msgpack_type::int8_type: 
  ------------------
  |  Branch (408:17): [True: 215k, False: 15.6M]
  ------------------
  409|   215k|                {
  410|   215k|                    uint8_t buf[sizeof(int8_t)];
  411|   215k|                    if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (411:25): [True: 1, False: 215k]
  ------------------
  412|      1|                    {
  413|      1|                        ec = msgpack_errc::unexpected_eof;
  414|      1|                        more_ = false;
  415|      1|                        return;
  416|      1|                    }
  417|   215k|                    int8_t val = binary::big_to_native<int8_t>(buf, sizeof(buf));
  418|   215k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  419|   215k|                    more_ = !cursor_mode_;
  420|   215k|                    break;
  421|   215k|                }
  422|       |
  423|  2.35k|                case jsoncons::msgpack::msgpack_type::int16_type: 
  ------------------
  |  Branch (423:17): [True: 2.35k, False: 15.8M]
  ------------------
  424|  2.35k|                {
  425|  2.35k|                    uint8_t buf[sizeof(int16_t)];
  426|  2.35k|                    if (source_.read(buf, sizeof(int16_t)) != sizeof(int16_t))
  ------------------
  |  Branch (426:25): [True: 2, False: 2.35k]
  ------------------
  427|      2|                    {
  428|      2|                        ec = msgpack_errc::unexpected_eof;
  429|      2|                        more_ = false;
  430|      2|                        return;
  431|      2|                    }
  432|  2.35k|                    int16_t val = binary::big_to_native<int16_t>(buf, sizeof(buf));
  433|  2.35k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  434|  2.35k|                    more_ = !cursor_mode_;
  435|  2.35k|                    break;
  436|  2.35k|                }
  437|       |
  438|  4.85k|                case jsoncons::msgpack::msgpack_type::int32_type: 
  ------------------
  |  Branch (438:17): [True: 4.85k, False: 15.8M]
  ------------------
  439|  4.85k|                {
  440|  4.85k|                    uint8_t buf[sizeof(int32_t)];
  441|  4.85k|                    if (source_.read(buf, sizeof(int32_t)) != sizeof(int32_t))
  ------------------
  |  Branch (441:25): [True: 3, False: 4.85k]
  ------------------
  442|      3|                    {
  443|      3|                        ec = msgpack_errc::unexpected_eof;
  444|      3|                        more_ = false;
  445|      3|                        return;
  446|      3|                    }
  447|  4.85k|                    int32_t val = binary::big_to_native<int32_t>(buf, sizeof(buf));
  448|  4.85k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  449|  4.85k|                    more_ = !cursor_mode_;
  450|  4.85k|                    break;
  451|  4.85k|                }
  452|       |
  453|  4.29k|                case jsoncons::msgpack::msgpack_type::int64_type: 
  ------------------
  |  Branch (453:17): [True: 4.29k, False: 15.8M]
  ------------------
  454|  4.29k|                {
  455|  4.29k|                    uint8_t buf[sizeof(int64_t)];
  456|  4.29k|                    if (source_.read(buf, sizeof(int64_t)) != sizeof(int64_t))
  ------------------
  |  Branch (456:25): [True: 4, False: 4.29k]
  ------------------
  457|      4|                    {
  458|      4|                        ec = msgpack_errc::unexpected_eof;
  459|      4|                        more_ = false;
  460|      4|                        return;
  461|      4|                    }
  462|  4.29k|                    int64_t val = binary::big_to_native<int64_t>(buf, sizeof(buf));
  463|  4.29k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  464|  4.29k|                    more_ = !cursor_mode_;
  465|  4.29k|                    break;
  466|  4.29k|                }
  467|       |
  468|    843|                case jsoncons::msgpack::msgpack_type::str8_type: 
  ------------------
  |  Branch (468:17): [True: 843, False: 15.8M]
  ------------------
  469|  1.30k|                case jsoncons::msgpack::msgpack_type::str16_type: 
  ------------------
  |  Branch (469:17): [True: 459, False: 15.8M]
  ------------------
  470|  1.66k|                case jsoncons::msgpack::msgpack_type::str32_type: 
  ------------------
  |  Branch (470:17): [True: 366, False: 15.8M]
  ------------------
  471|  1.66k|                {
  472|  1.66k|                    std::size_t len = get_size(type, ec);
  473|  1.66k|                    if (!more_)
  ------------------
  |  Branch (473:25): [True: 24, False: 1.64k]
  ------------------
  474|     24|                    {
  475|     24|                        return;
  476|     24|                    }
  477|       |
  478|  1.64k|                    auto data = source_.read_span(len, bytes_buffer_);
  479|  1.64k|                    if (data.size() != static_cast<std::size_t>(len))
  ------------------
  |  Branch (479:25): [True: 109, False: 1.53k]
  ------------------
  480|    109|                    {
  481|    109|                        ec = msgpack_errc::unexpected_eof;
  482|    109|                        more_ = false;
  483|    109|                        return;
  484|    109|                    }
  485|       |
  486|  1.53k|                    auto result = unicode_traits::validate(data.data(), data.size());
  487|  1.53k|                    if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (487:25): [True: 36, False: 1.49k]
  ------------------
  488|     36|                    {
  489|     36|                        ec = msgpack_errc::invalid_utf8_text_string;
  490|     36|                        more_ = false;
  491|     36|                        return;
  492|     36|                    }
  493|  1.49k|                    visitor.string_value(jsoncons::string_view(reinterpret_cast<const char*>(data.data()),data.size()), 
  494|  1.49k|                        semantic_tag::none, *this, ec);
  495|  1.49k|                    more_ = !cursor_mode_;
  496|  1.49k|                    break;
  497|  1.53k|                }
  498|       |
  499|  12.9k|                case jsoncons::msgpack::msgpack_type::bin8_type: 
  ------------------
  |  Branch (499:17): [True: 12.9k, False: 15.8M]
  ------------------
  500|  17.6k|                case jsoncons::msgpack::msgpack_type::bin16_type: 
  ------------------
  |  Branch (500:17): [True: 4.68k, False: 15.8M]
  ------------------
  501|  18.1k|                case jsoncons::msgpack::msgpack_type::bin32_type: 
  ------------------
  |  Branch (501:17): [True: 492, False: 15.8M]
  ------------------
  502|  18.1k|                {
  503|  18.1k|                    std::size_t len = get_size(type,ec);
  504|  18.1k|                    if (!more_)
  ------------------
  |  Branch (504:25): [True: 28, False: 18.1k]
  ------------------
  505|     28|                    {
  506|     28|                        return;
  507|     28|                    }
  508|  18.1k|                    auto data = source_.read_span(len, bytes_buffer_);
  509|  18.1k|                    if (JSONCONS_UNLIKELY(data.size() != static_cast<std::size_t>(len)))
  ------------------
  |  |   79|  18.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 146, False: 17.9k]
  |  |  ------------------
  ------------------
  510|    146|                    {
  511|    146|                        ec = msgpack_errc::unexpected_eof;
  512|    146|                        more_ = false;
  513|    146|                        return;
  514|    146|                    }
  515|       |
  516|  17.9k|                    visitor.byte_string_value(byte_string_view(data.data(),data.size()), 
  517|  17.9k|                        semantic_tag::none, 
  518|  17.9k|                        *this,
  519|  17.9k|                        ec);
  520|  17.9k|                    more_ = !cursor_mode_;
  521|  17.9k|                    break;
  522|  18.1k|                }
  523|  13.4k|                case jsoncons::msgpack::msgpack_type::fixext1_type: 
  ------------------
  |  Branch (523:17): [True: 13.4k, False: 15.8M]
  ------------------
  524|  1.13M|                case jsoncons::msgpack::msgpack_type::fixext2_type: 
  ------------------
  |  Branch (524:17): [True: 1.11M, False: 14.7M]
  ------------------
  525|  1.13M|                case jsoncons::msgpack::msgpack_type::fixext4_type: 
  ------------------
  |  Branch (525:17): [True: 5.06k, False: 15.8M]
  ------------------
  526|  1.14M|                case jsoncons::msgpack::msgpack_type::fixext8_type: 
  ------------------
  |  Branch (526:17): [True: 12.1k, False: 15.8M]
  ------------------
  527|  1.14M|                case jsoncons::msgpack::msgpack_type::fixext16_type: 
  ------------------
  |  Branch (527:17): [True: 731, False: 15.8M]
  ------------------
  528|  1.18M|                case jsoncons::msgpack::msgpack_type::ext8_type: 
  ------------------
  |  Branch (528:17): [True: 35.5k, False: 15.7M]
  ------------------
  529|  1.18M|                case jsoncons::msgpack::msgpack_type::ext16_type: 
  ------------------
  |  Branch (529:17): [True: 863, False: 15.8M]
  ------------------
  530|  1.18M|                case jsoncons::msgpack::msgpack_type::ext32_type: 
  ------------------
  |  Branch (530:17): [True: 793, False: 15.8M]
  ------------------
  531|  1.18M|                {
  532|  1.18M|                    std::size_t len = get_size(type,ec);
  533|  1.18M|                    if (!more_)
  ------------------
  |  Branch (533:25): [True: 26, False: 1.18M]
  ------------------
  534|     26|                    {
  535|     26|                        return;
  536|     26|                    }
  537|       |
  538|       |                    // type
  539|  1.18M|                    uint8_t buf[sizeof(int8_t)];
  540|  1.18M|                    if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (540:25): [True: 45, False: 1.18M]
  ------------------
  541|     45|                    {
  542|     45|                        ec = msgpack_errc::unexpected_eof;
  543|     45|                        more_ = false;
  544|     45|                        return;
  545|     45|                    }
  546|       |
  547|  1.18M|                    int8_t ext_type = binary::big_to_native<int8_t>(buf, sizeof(buf));
  548|       |
  549|  1.18M|                    bool is_timestamp = false; 
  550|  1.18M|                    if (ext_type == -1)
  ------------------
  |  Branch (550:25): [True: 40.7k, False: 1.14M]
  ------------------
  551|  40.7k|                    {
  552|  40.7k|                        is_timestamp = true;;
  553|  40.7k|                    }
  554|       |
  555|       |                    // payload
  556|  1.18M|                    if (is_timestamp && len == 4)
  ------------------
  |  Branch (556:25): [True: 40.7k, False: 1.14M]
  |  Branch (556:41): [True: 974, False: 39.7k]
  ------------------
  557|    974|                    {
  558|    974|                        uint8_t buf32[sizeof(uint32_t)];
  559|    974|                        if (source_.read(buf32, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (559:29): [True: 4, False: 970]
  ------------------
  560|      4|                        {
  561|      4|                            ec = msgpack_errc::unexpected_eof;
  562|      4|                            more_ = false;
  563|      4|                            return;
  564|      4|                        }
  565|    970|                        uint32_t val = binary::big_to_native<uint32_t>(buf32, sizeof(buf32));
  566|    970|                        visitor.uint64_value(val, semantic_tag::epoch_second, *this, ec);
  567|    970|                        more_ = !cursor_mode_;
  568|    970|                    }
  569|  1.18M|                    else if (is_timestamp && len == 8)
  ------------------
  |  Branch (569:30): [True: 39.7k, False: 1.14M]
  |  Branch (569:46): [True: 9.57k, False: 30.2k]
  ------------------
  570|  9.57k|                    {
  571|  9.57k|                        uint8_t buf64[sizeof(uint64_t)];
  572|  9.57k|                        if (source_.read(buf64, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (572:29): [True: 5, False: 9.57k]
  ------------------
  573|      5|                        {
  574|      5|                            ec = msgpack_errc::unexpected_eof;
  575|      5|                            more_ = false;
  576|      5|                            return;
  577|      5|                        }
  578|  9.57k|                        uint64_t data64 = binary::big_to_native<uint64_t>(buf64, sizeof(buf64));
  579|  9.57k|                        uint64_t sec = data64 & 0x00000003ffffffffL;
  580|  9.57k|                        uint64_t nsec = data64 >> 34;
  581|       |
  582|  9.57k|                        bigint nano(sec);
  583|  9.57k|                        nano *= uint64_t(nanos_in_second);
  584|  9.57k|                        nano += nsec;
  585|  9.57k|                        text_buffer_.clear();
  586|  9.57k|                        nano.append_to_buffer(text_buffer_);
  587|  9.57k|                        visitor.string_value(text_buffer_, semantic_tag::epoch_nano, *this, ec);
  588|  9.57k|                        more_ = !cursor_mode_;
  589|  9.57k|                        if (!more_) return;
  ------------------
  |  Branch (589:29): [True: 0, False: 9.57k]
  ------------------
  590|  9.57k|                    }
  591|  1.17M|                    else if (is_timestamp && len == 12)
  ------------------
  |  Branch (591:30): [True: 30.2k, False: 1.14M]
  |  Branch (591:46): [True: 29.1k, False: 1.08k]
  ------------------
  592|  29.1k|                    {
  593|  29.1k|                        uint8_t buf1[sizeof(uint32_t)];
  594|  29.1k|                        if (source_.read(buf1, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (594:29): [True: 5, False: 29.1k]
  ------------------
  595|      5|                        {
  596|      5|                            ec = msgpack_errc::unexpected_eof;
  597|      5|                            more_ = false;
  598|      5|                            return;
  599|      5|                        }
  600|  29.1k|                        uint32_t nsec = binary::big_to_native<uint32_t>(buf1, sizeof(buf1));
  601|       |
  602|  29.1k|                        uint8_t buf2[sizeof(int64_t)];
  603|  29.1k|                        if (source_.read(buf2, sizeof(int64_t)) != sizeof(int64_t))
  ------------------
  |  Branch (603:29): [True: 2, False: 29.1k]
  ------------------
  604|      2|                        {
  605|      2|                            ec = msgpack_errc::unexpected_eof;
  606|      2|                            more_ = false;
  607|      2|                            return;
  608|      2|                        }
  609|  29.1k|                        int64_t sec = binary::big_to_native<int64_t>(buf2, sizeof(buf2));
  610|       |
  611|  29.1k|                        bigint nano(sec);
  612|       |
  613|  29.1k|                        nano *= uint64_t(nanos_in_second);
  614|       |
  615|  29.1k|                        if (nano < 0)
  ------------------
  |  Branch (615:29): [True: 8.53k, False: 20.5k]
  ------------------
  616|  8.53k|                        {
  617|  8.53k|                            nano -= nsec;
  618|  8.53k|                        }
  619|  20.5k|                        else
  620|  20.5k|                        {
  621|  20.5k|                            nano += nsec;
  622|  20.5k|                        }
  623|       |
  624|  29.1k|                        text_buffer_.clear();
  625|  29.1k|                        nano.append_to_buffer(text_buffer_);
  626|  29.1k|                        visitor.string_value(text_buffer_, semantic_tag::epoch_nano, *this, ec);
  627|  29.1k|                        more_ = !cursor_mode_;
  628|  29.1k|                        if (!more_) return;
  ------------------
  |  Branch (628:29): [True: 0, False: 29.1k]
  ------------------
  629|  29.1k|                    }
  630|  1.14M|                    else
  631|  1.14M|                    {
  632|  1.14M|                        auto data = source_.read_span(len, bytes_buffer_);
  633|  1.14M|                        if (JSONCONS_UNLIKELY(data.size() != static_cast<std::size_t>(len)))
  ------------------
  |  |   79|  1.14M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 191, False: 1.14M]
  |  |  ------------------
  ------------------
  634|    191|                        {
  635|    191|                            ec = msgpack_errc::unexpected_eof;
  636|    191|                            more_ = false;
  637|    191|                            return;
  638|    191|                        }
  639|       |
  640|  1.14M|                        visitor.byte_string_value(byte_string_view(data.data(),data.size()), 
  641|  1.14M|                                                          static_cast<uint8_t>(ext_type), 
  642|  1.14M|                                                          *this,
  643|  1.14M|                                                          ec);
  644|  1.14M|                        more_ = !cursor_mode_;
  645|  1.14M|                    }
  646|  1.18M|                    break;
  647|  1.18M|                }
  648|       |
  649|  1.18M|                case jsoncons::msgpack::msgpack_type::array16_type: 
  ------------------
  |  Branch (649:17): [True: 1.57k, False: 15.8M]
  ------------------
  650|  2.63k|                case jsoncons::msgpack::msgpack_type::array32_type: 
  ------------------
  |  Branch (650:17): [True: 1.06k, False: 15.8M]
  ------------------
  651|  2.63k|                {
  652|  2.63k|                    begin_array(visitor,type,ec);
  653|  2.63k|                    break;
  654|  1.57k|                }
  655|       |
  656|  2.53k|                case jsoncons::msgpack::msgpack_type::map16_type : 
  ------------------
  |  Branch (656:17): [True: 2.53k, False: 15.8M]
  ------------------
  657|  4.18k|                case jsoncons::msgpack::msgpack_type::map32_type : 
  ------------------
  |  Branch (657:17): [True: 1.65k, False: 15.8M]
  ------------------
  658|  4.18k|                {
  659|  4.18k|                    begin_object(visitor, type, ec);
  660|  4.18k|                    break;
  661|  2.53k|                }
  662|       |
  663|      4|                default:
  ------------------
  |  Branch (663:17): [True: 4, False: 15.8M]
  ------------------
  664|      4|                {
  665|      4|                    ec = msgpack_errc::unknown_type;
  666|      4|                    more_ = false;
  667|      4|                    return;
  668|  2.53k|                }
  669|  15.8M|            }
  670|  15.8M|        }
  671|  33.2M|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectERNS_21basic_generic_visitorIcEEhRNS3_10error_codeE:
  701|   208k|    {
  702|   208k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|   208k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 208k]
  |  |  ------------------
  ------------------
  703|      1|        {
  704|      1|            ec = msgpack_errc::max_nesting_depth_exceeded;
  705|      1|            more_ = false;
  706|      1|            return;
  707|      1|        } 
  708|   208k|        std::size_t length = get_size(type, ec);
  709|   208k|        if (!more_)
  ------------------
  |  Branch (709:13): [True: 17, False: 208k]
  ------------------
  710|     17|        {
  711|     17|            return;
  712|     17|        }
  713|   208k|        state_stack_.emplace_back(parse_mode::map_key,length);
  714|   208k|        visitor.begin_object(length, semantic_tag::none, *this, ec);
  715|   208k|        more_ = !cursor_mode_;
  716|   208k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayERNS_21basic_generic_visitorIcEEhRNS3_10error_codeE:
  674|   183k|    {
  675|   183k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|   183k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 183k]
  |  |  ------------------
  ------------------
  676|      3|        {
  677|      3|            ec = msgpack_errc::max_nesting_depth_exceeded;
  678|      3|            more_ = false;
  679|      3|            return;
  680|      3|        } 
  681|   183k|        std::size_t length = get_size(type, ec);
  682|   183k|        if (!more_)
  ------------------
  |  Branch (682:13): [True: 18, False: 183k]
  ------------------
  683|     18|        {
  684|     18|            return;
  685|     18|        }
  686|   183k|        state_stack_.emplace_back(parse_mode::array,length);
  687|   183k|        visitor.begin_array(length, semantic_tag::none, *this, ec);
  688|   183k|        more_ = !cursor_mode_;
  689|   183k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE8get_sizeEhRNS3_10error_codeE:
  727|  1.59M|    {
  728|  1.59M|        switch (type)
  729|  1.59M|        {
  730|    843|            case jsoncons::msgpack::msgpack_type::str8_type: 
  ------------------
  |  Branch (730:13): [True: 843, False: 1.59M]
  ------------------
  731|  13.8k|            case jsoncons::msgpack::msgpack_type::bin8_type: 
  ------------------
  |  Branch (731:13): [True: 12.9k, False: 1.58M]
  ------------------
  732|  49.3k|            case jsoncons::msgpack::msgpack_type::ext8_type: 
  ------------------
  |  Branch (732:13): [True: 35.5k, False: 1.56M]
  ------------------
  733|  49.3k|            {
  734|  49.3k|                uint8_t buf[sizeof(int8_t)];
  735|  49.3k|                if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (735:21): [True: 25, False: 49.2k]
  ------------------
  736|     25|                {
  737|     25|                    ec = msgpack_errc::unexpected_eof;
  738|     25|                    more_ = false;
  739|     25|                    return 0;
  740|     25|                }
  741|  49.2k|                uint8_t len = binary::big_to_native<uint8_t>(buf, sizeof(buf));
  742|  49.2k|                return static_cast<std::size_t>(len);
  743|  49.3k|            }
  744|       |
  745|    459|            case jsoncons::msgpack::msgpack_type::str16_type: 
  ------------------
  |  Branch (745:13): [True: 459, False: 1.59M]
  ------------------
  746|  5.14k|            case jsoncons::msgpack::msgpack_type::bin16_type: 
  ------------------
  |  Branch (746:13): [True: 4.68k, False: 1.59M]
  ------------------
  747|  6.00k|            case jsoncons::msgpack::msgpack_type::ext16_type: 
  ------------------
  |  Branch (747:13): [True: 863, False: 1.59M]
  ------------------
  748|  7.58k|            case jsoncons::msgpack::msgpack_type::array16_type: 
  ------------------
  |  Branch (748:13): [True: 1.57k, False: 1.59M]
  ------------------
  749|  10.1k|            case jsoncons::msgpack::msgpack_type::map16_type:
  ------------------
  |  Branch (749:13): [True: 2.53k, False: 1.59M]
  ------------------
  750|  10.1k|            {
  751|  10.1k|                uint8_t buf[sizeof(int16_t)];
  752|  10.1k|                if (source_.read(buf, sizeof(int16_t)) != sizeof(int16_t))
  ------------------
  |  Branch (752:21): [True: 42, False: 10.0k]
  ------------------
  753|     42|                {
  754|     42|                    ec = msgpack_errc::unexpected_eof;
  755|     42|                    more_ = false;
  756|     42|                    return 0;
  757|     42|                }
  758|  10.0k|                uint16_t len = binary::big_to_native<uint16_t>(buf, sizeof(buf));
  759|  10.0k|                return static_cast<std::size_t>(len);
  760|  10.1k|            }
  761|       |
  762|    366|            case jsoncons::msgpack::msgpack_type::str32_type: 
  ------------------
  |  Branch (762:13): [True: 366, False: 1.59M]
  ------------------
  763|    858|            case jsoncons::msgpack::msgpack_type::bin32_type: 
  ------------------
  |  Branch (763:13): [True: 492, False: 1.59M]
  ------------------
  764|  1.65k|            case jsoncons::msgpack::msgpack_type::ext32_type: 
  ------------------
  |  Branch (764:13): [True: 793, False: 1.59M]
  ------------------
  765|  2.71k|            case jsoncons::msgpack::msgpack_type::array32_type: 
  ------------------
  |  Branch (765:13): [True: 1.06k, False: 1.59M]
  ------------------
  766|  4.36k|            case jsoncons::msgpack::msgpack_type::map32_type : 
  ------------------
  |  Branch (766:13): [True: 1.65k, False: 1.59M]
  ------------------
  767|  4.36k|            {
  768|  4.36k|                uint8_t buf[sizeof(int32_t)];
  769|  4.36k|                if (source_.read(buf, sizeof(int32_t)) != sizeof(int32_t))
  ------------------
  |  Branch (769:21): [True: 46, False: 4.31k]
  ------------------
  770|     46|                {
  771|     46|                    ec = msgpack_errc::unexpected_eof;
  772|     46|                    more_ = false;
  773|     46|                    return 0;
  774|     46|                }
  775|  4.31k|                uint32_t len = binary::big_to_native<uint32_t>(buf, sizeof(buf));
  776|  4.31k|                return static_cast<std::size_t>(len);
  777|  4.36k|            }
  778|  13.4k|            case jsoncons::msgpack::msgpack_type::fixext1_type: 
  ------------------
  |  Branch (778:13): [True: 13.4k, False: 1.58M]
  ------------------
  779|  13.4k|                return 1;
  780|  1.11M|            case jsoncons::msgpack::msgpack_type::fixext2_type: 
  ------------------
  |  Branch (780:13): [True: 1.11M, False: 479k]
  ------------------
  781|  1.11M|                return 2;
  782|  5.06k|            case jsoncons::msgpack::msgpack_type::fixext4_type: 
  ------------------
  |  Branch (782:13): [True: 5.06k, False: 1.59M]
  ------------------
  783|  5.06k|                return 4;
  784|  12.1k|            case jsoncons::msgpack::msgpack_type::fixext8_type: 
  ------------------
  |  Branch (784:13): [True: 12.1k, False: 1.58M]
  ------------------
  785|  12.1k|                return 8;
  786|    731|            case jsoncons::msgpack::msgpack_type::fixext16_type: 
  ------------------
  |  Branch (786:13): [True: 731, False: 1.59M]
  ------------------
  787|    731|                return 16;
  788|   384k|            default:
  ------------------
  |  Branch (788:13): [True: 384k, False: 1.21M]
  ------------------
  789|   384k|                if ((type > 0x8f && type <= 0x9f) // fixarray
  ------------------
  |  Branch (789:22): [True: 180k, False: 204k]
  |  Branch (789:37): [True: 180k, False: 0]
  ------------------
  790|   204k|                    || (type > 0x7f && type <= 0x8f) // fixmap
  ------------------
  |  Branch (790:25): [True: 204k, False: 0]
  |  Branch (790:40): [True: 204k, False: 0]
  ------------------
  791|   384k|        )
  792|   384k|                {
  793|   384k|                    return type & 0x0f;
  794|   384k|                }
  795|      0|                else
  796|      0|                {
  797|      0|                    ec = msgpack_errc::unknown_type;
  798|      0|                    more_ = false;
  799|      0|                    return 0;
  800|      0|                }
  801|      0|                break;
  802|  1.59M|        }
  803|  1.59M|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  692|   161k|    {
  693|   161k|        --nesting_depth_;
  694|       |
  695|   161k|        visitor.end_array(*this, ec);
  696|   161k|        more_ = !cursor_mode_;
  697|   161k|        state_stack_.pop_back();
  698|   161k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  719|   177k|    {
  720|   177k|        --nesting_depth_;
  721|   177k|        visitor.end_object(*this, ec);
  722|   177k|        more_ = !cursor_mode_;
  723|   177k|        state_stack_.pop_back();
  724|   177k|    }

_ZN8jsoncons7msgpack20basic_msgpack_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RNS_18basic_json_visitorIcEERKNS0_22msgpack_decode_optionsERKS7_:
   51|  4.76k|       : parser_(std::forward<Sourceable>(source), options, alloc),
   52|  4.76k|         adaptor_(visitor, alloc), visitor_(adaptor_)
   53|  4.76k|    {
   54|  4.76k|    }
_ZN8jsoncons7msgpack20basic_msgpack_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4readERNS3_10error_codeE:
   87|  4.76k|    {
   88|  4.76k|        parser_.reset();
   89|  4.76k|        parser_.parse(visitor_, ec);
   90|  4.76k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.76k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3.82k, False: 932]
  |  |  ------------------
  ------------------
   91|  3.82k|        {
   92|  3.82k|            return;
   93|  3.82k|        }
   94|  4.76k|    }

