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

_ZN8jsoncons11countr_zeroImEEiT_:
  294|  30.0k|{
  295|  30.0k|    return jsoncons::nonstd::countr_zero(x);
  296|  30.0k|}
_ZN8jsoncons11countl_zeroImEEiT_:
  289|    126|{
  290|    126|    return jsoncons::nonstd::countl_zero(x);
  291|    126|}

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|  41.2M|        {
 1009|  41.2M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 96.4k, False: 41.1M]
  ------------------
 1010|  96.4k|            {
 1011|  96.4k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1011:21): [True: 93.7k, False: 2.68k]
  |  Branch (1011:86): [True: 79.4k, False: 14.3k]
  ------------------
 1012|  79.4k|                {
 1013|  79.4k|                    key_buffer_.push_back(',');
 1014|  79.4k|                }
 1015|  96.4k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1016|  96.4k|                key_buffer_.push_back('[');
 1017|  96.4k|            }
 1018|  41.1M|            else
 1019|  41.1M|            {
 1020|  41.1M|                switch (level_stack_.back().target_kind())
 1021|  41.1M|                {
 1022|  28.1M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 28.1M, False: 12.9M]
  ------------------
 1023|  28.1M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 28.0M, False: 86.1k]
  |  Branch (1023:65): [True: 1.61M, False: 26.4M]
  ------------------
 1024|  1.61M|                        {
 1025|  1.61M|                            key_buffer_.push_back(',');
 1026|  1.61M|                        }
 1027|  28.1M|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|  28.1M|                        key_buffer_.push_back('[');
 1029|  28.1M|                        break;
 1030|  12.9M|                    default:
  ------------------
  |  Branch (1030:21): [True: 12.9M, False: 28.1M]
  ------------------
 1031|  12.9M|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|  12.9M|                        destination_->begin_array(length, tag, context, ec);
 1033|  12.9M|                        break;
 1034|  41.1M|                }
 1035|  41.1M|            }
 1036|  41.2M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  41.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|  41.2M|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|   242M|            {
  816|   242M|                return even_odd_ == 0;
  817|   242M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|   188M|            {
  826|   188M|                return target_kind_;
  827|   188M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|  59.6M|            {
  831|  59.6M|                return count_;
  832|  59.6M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|  41.6M|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 268k, False: 41.3M]
  ------------------
  799|  41.6M|            {
  800|  41.6M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|   144M|            {
  821|   144M|                return structure_kind_ == json_structure_kind::object;
  822|   144M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|  38.9M|        {
 1041|  38.9M|            switch (level_stack_.back().target_kind())
 1042|  38.9M|            {
 1043|  27.8M|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 27.8M, False: 11.0M]
  ------------------
 1044|  27.8M|                    key_buffer_.push_back(']');
 1045|  27.8M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  27.8M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 27.8M]
  |  |  ------------------
  |  |   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|  27.8M|                    level_stack_.pop_back();
 1047|  27.8M|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 2.56k, False: 27.8M]
  ------------------
 1048|  2.56k|                    {
 1049|  2.56k|                        destination_->key(key_buffer_, context, ec);
 1050|  2.56k|                        key_buffer_.clear();
 1051|  2.56k|                    }
 1052|  27.8M|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 91.7k, False: 27.7M]
  ------------------
 1053|  91.7k|                    {
 1054|  91.7k|                        key_buffer_.push_back(':');
 1055|  91.7k|                    }
 1056|  27.8M|                    level_stack_.back().advance();
 1057|  27.8M|                    break;
 1058|  11.0M|                default:
  ------------------
  |  Branch (1058:17): [True: 11.0M, False: 27.8M]
  ------------------
 1059|  11.0M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  11.0M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 11.0M]
  |  |  ------------------
  |  |   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|  11.0M|                    level_stack_.pop_back();
 1061|  11.0M|                    level_stack_.back().advance();
 1062|  11.0M|                    destination_->end_array(context, ec);
 1063|  11.0M|                    break;
 1064|  38.9M|            }
 1065|  38.9M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  38.9M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|  38.9M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|  84.3M|            {
  804|  84.3M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 75.2M, False: 9.09M]
  ------------------
  805|  75.2M|                {
  806|  75.2M|                    ++count_;
  807|  75.2M|                }
  808|  84.3M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 18.1M, False: 66.1M]
  ------------------
  809|  18.1M|                {
  810|  18.1M|                    even_odd_ = !even_odd_;
  811|  18.1M|                }
  812|  84.3M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  15.5M|        {
 1234|  15.5M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 2.49M, False: 13.0M]
  |  Branch (1234:49): [True: 12.1M, False: 965k]
  ------------------
 1235|  14.6M|            {
 1236|  14.6M|                key_.clear();
 1237|  14.6M|                jsoncons::from_integer(value,key_);
 1238|  14.6M|            }
 1239|       |
 1240|  15.5M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 2.49M, False: 13.0M]
  ------------------
 1241|  2.49M|            {
 1242|  2.49M|                switch (level_stack_.back().target_kind())
 1243|  2.49M|                {
 1244|  1.90M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 1.90M, False: 590k]
  ------------------
 1245|  1.90M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 1.89M, False: 10.2k]
  ------------------
 1246|  1.89M|                        {
 1247|  1.89M|                            key_buffer_.push_back(',');
 1248|  1.89M|                        }
 1249|  1.90M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|  1.90M|                        key_buffer_.push_back(':');
 1251|  1.90M|                        break;
 1252|   590k|                    default:
  ------------------
  |  Branch (1252:21): [True: 590k, False: 1.90M]
  ------------------
 1253|   590k|                        destination_->key(key_, context, ec);
 1254|   590k|                        break;
 1255|  2.49M|                }
 1256|  2.49M|            }
 1257|  13.0M|            else
 1258|  13.0M|            {
 1259|  13.0M|                switch (level_stack_.back().target_kind())
 1260|  13.0M|                {
 1261|  12.1M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 12.1M, False: 965k]
  ------------------
 1262|  12.1M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 10.2M, False: 1.90M]
  |  Branch (1262:65): [True: 9.47M, False: 726k]
  ------------------
 1263|  9.47M|                        {
 1264|  9.47M|                            key_buffer_.push_back(',');
 1265|  9.47M|                        }
 1266|  12.1M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|  12.1M|                        break;
 1268|   965k|                    default:
  ------------------
  |  Branch (1268:21): [True: 965k, False: 12.1M]
  ------------------
 1269|   965k|                        destination_->uint64_value(value, tag, context, ec);
 1270|   965k|                        break;
 1271|  13.0M|                }
 1272|  13.0M|            }
 1273|       |
 1274|  15.5M|            level_stack_.back().advance();
 1275|  15.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  15.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  15.5M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|  9.02M|        {
 1280|  9.02M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 179k, False: 8.84M]
  |  Branch (1280:49): [True: 6.25M, False: 2.58M]
  ------------------
 1281|  6.43M|            {
 1282|  6.43M|                key_.clear();
 1283|  6.43M|                jsoncons::from_integer(value,key_);
 1284|  6.43M|            }
 1285|       |
 1286|  9.02M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 179k, False: 8.84M]
  ------------------
 1287|   179k|            {
 1288|   179k|                switch (level_stack_.back().target_kind())
 1289|   179k|                {
 1290|   176k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 176k, False: 3.04k]
  ------------------
 1291|   176k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 173k, False: 3.21k]
  ------------------
 1292|   173k|                        {
 1293|   173k|                            key_buffer_.push_back(',');
 1294|   173k|                        }
 1295|   176k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|   176k|                        key_buffer_.push_back(':');
 1297|   176k|                        break;
 1298|  3.04k|                    default:
  ------------------
  |  Branch (1298:21): [True: 3.04k, False: 176k]
  ------------------
 1299|  3.04k|                        destination_->key(key_, context, ec);
 1300|  3.04k|                        break;
 1301|   179k|                }
 1302|   179k|            }
 1303|  8.84M|            else
 1304|  8.84M|            {
 1305|  8.84M|                switch (level_stack_.back().target_kind())
 1306|  8.84M|                {
 1307|  6.25M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 6.25M, False: 2.58M]
  ------------------
 1308|  6.25M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 6.07M, False: 180k]
  |  Branch (1308:65): [True: 5.84M, False: 236k]
  ------------------
 1309|  5.84M|                        {
 1310|  5.84M|                            key_buffer_.push_back(',');
 1311|  5.84M|                        }
 1312|  6.25M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|  6.25M|                        break;
 1314|  2.58M|                    default:
  ------------------
  |  Branch (1314:21): [True: 2.58M, False: 6.25M]
  ------------------
 1315|  2.58M|                        destination_->int64_value(value, tag, context, ec);
 1316|  2.58M|                        break;
 1317|  8.84M|                }
 1318|  8.84M|            }
 1319|       |
 1320|  9.02M|            level_stack_.back().advance();
 1321|  9.02M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  9.02M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|  9.02M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1374|   681k|        {
 1375|   681k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1375:17): [True: 3.76k, False: 677k]
  |  Branch (1375:49): [True: 631k, False: 46.0k]
  ------------------
 1376|   635k|            {
 1377|   635k|                key_.clear();
 1378|   635k|                string_sink<string_type> sink(key_);
 1379|   635k|                jsoncons::write_double f{float_chars_format::general,0};
 1380|   635k|                f(value, sink);
 1381|   635k|            }
 1382|       |
 1383|   681k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1383:17): [True: 3.76k, False: 677k]
  ------------------
 1384|  3.76k|            {
 1385|  3.76k|                switch (level_stack_.back().target_kind())
 1386|  3.76k|                {
 1387|  3.68k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1387:21): [True: 3.68k, False: 78]
  ------------------
 1388|  3.68k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1388:29): [True: 2.72k, False: 965]
  ------------------
 1389|  2.72k|                        {
 1390|  2.72k|                            key_buffer_.push_back(',');
 1391|  2.72k|                        }
 1392|  3.68k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1393|  3.68k|                        key_buffer_.push_back(':');
 1394|  3.68k|                        break;
 1395|     78|                    default:
  ------------------
  |  Branch (1395:21): [True: 78, False: 3.68k]
  ------------------
 1396|     78|                        destination_->key(key_, context, ec);
 1397|     78|                        break;
 1398|  3.76k|                }
 1399|  3.76k|            }
 1400|   677k|            else
 1401|   677k|            {
 1402|   677k|                switch (level_stack_.back().target_kind())
 1403|   677k|                {
 1404|   631k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1404:21): [True: 631k, False: 46.0k]
  ------------------
 1405|   631k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1405:29): [True: 628k, False: 3.06k]
  |  Branch (1405:65): [True: 596k, False: 31.2k]
  ------------------
 1406|   596k|                        {
 1407|   596k|                            key_buffer_.push_back(',');
 1408|   596k|                        }
 1409|   631k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1410|   631k|                        break;
 1411|  46.0k|                    default:
  ------------------
  |  Branch (1411:21): [True: 46.0k, False: 631k]
  ------------------
 1412|  46.0k|                        destination_->double_value(value, tag, context, ec);
 1413|  46.0k|                        break;
 1414|   677k|                }
 1415|   677k|            }
 1416|       |
 1417|   681k|            level_stack_.back().advance();
 1418|   681k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   681k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1419|   681k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|     54|        {
  882|     54|            destination_->flush();
  883|     54|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  886|  13.4k|        {
  887|  13.4k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (887:17): [True: 6.03k, False: 7.42k]
  ------------------
  888|  6.03k|            {
  889|  6.03k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (889:21): [True: 5.81k, False: 215]
  |  Branch (889:86): [True: 3.32k, False: 2.49k]
  ------------------
  890|  3.32k|                {
  891|  3.32k|                    key_buffer_.push_back(',');
  892|  3.32k|                }
  893|  6.03k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  894|  6.03k|                key_buffer_.push_back('{');
  895|  6.03k|            }
  896|  7.42k|            else
  897|  7.42k|            {
  898|  7.42k|                switch (level_stack_.back().target_kind())
  899|  7.42k|                {
  900|  6.93k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (900:21): [True: 6.93k, False: 493]
  ------------------
  901|  6.93k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  902|  6.93k|                        key_buffer_.push_back('{');
  903|  6.93k|                        break;
  904|    493|                    default:
  ------------------
  |  Branch (904:21): [True: 493, False: 6.93k]
  ------------------
  905|    493|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  906|    493|                        destination_->begin_object(tag, context, ec);
  907|    493|                        break;
  908|  7.42k|                }
  909|  7.42k|            }
  910|  13.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  13.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  911|  13.4k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|   254k|        {
  915|   254k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 41.1k, False: 213k]
  ------------------
  916|  41.1k|            {
  917|  41.1k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 40.2k, False: 945]
  |  Branch (917:86): [True: 13.8k, False: 26.4k]
  ------------------
  918|  13.8k|                {
  919|  13.8k|                    key_buffer_.push_back(',');
  920|  13.8k|                }
  921|  41.1k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|  41.1k|                key_buffer_.push_back('{');
  923|  41.1k|            }
  924|   213k|            else
  925|   213k|            {
  926|   213k|                switch (level_stack_.back().target_kind())
  927|   213k|                {
  928|   210k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 210k, False: 2.77k]
  ------------------
  929|   210k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 191k, False: 18.7k]
  |  Branch (929:65): [True: 143k, False: 48.2k]
  ------------------
  930|   143k|                        {
  931|   143k|                            key_buffer_.push_back(',');
  932|   143k|                        }
  933|   210k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|   210k|                        key_buffer_.push_back('{');
  935|   210k|                        break;
  936|  2.77k|                    default:
  ------------------
  |  Branch (936:21): [True: 2.77k, False: 210k]
  ------------------
  937|  2.77k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|  2.77k|                        destination_->begin_object(length, tag, context, ec);
  939|  2.77k|                        break;
  940|   213k|                }
  941|   213k|            }
  942|   254k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   254k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|   254k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|   229k|        {
  947|   229k|            switch (level_stack_.back().target_kind())
  948|   229k|            {
  949|   226k|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 226k, False: 2.01k]
  ------------------
  950|   226k|                    key_buffer_.push_back('}');
  951|   226k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|   226k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 226k]
  |  |  ------------------
  |  |   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|   226k|                    level_stack_.pop_back();
  953|       |                    
  954|   226k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 707, False: 226k]
  ------------------
  955|    707|                    {
  956|    707|                        destination_->key(key_buffer_,context, ec);
  957|    707|                        key_buffer_.clear();
  958|    707|                    }
  959|   226k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 25.4k, False: 200k]
  ------------------
  960|  25.4k|                    {
  961|  25.4k|                        key_buffer_.push_back(':');
  962|  25.4k|                    }
  963|   226k|                    level_stack_.back().advance();
  964|   226k|                    break;
  965|  2.01k|                default:
  ------------------
  |  Branch (965:17): [True: 2.01k, False: 226k]
  ------------------
  966|  2.01k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  2.01k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 2.01k]
  |  |  ------------------
  |  |   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|  2.01k|                    level_stack_.pop_back();
  968|  2.01k|                    level_stack_.back().advance();
  969|  2.01k|                    destination_->end_object(context, ec);
  970|  2.01k|                    break;
  971|   229k|            }
  972|   229k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   229k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|   229k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  976|   175k|        {
  977|   175k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (977:17): [True: 1.82k, False: 173k]
  ------------------
  978|  1.82k|            {
  979|  1.82k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (979:21): [True: 1.71k, False: 111]
  |  Branch (979:86): [True: 1.09k, False: 626]
  ------------------
  980|  1.09k|                {
  981|  1.09k|                    key_buffer_.push_back(',');
  982|  1.09k|                }
  983|  1.82k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
  984|  1.82k|                key_buffer_.push_back('[');
  985|  1.82k|            }
  986|   173k|            else
  987|   173k|            {
  988|   173k|                switch (level_stack_.back().target_kind())
  989|   173k|                {
  990|   132k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (990:21): [True: 132k, False: 41.8k]
  ------------------
  991|   132k|                        if (level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (991:29): [True: 1.19k, False: 130k]
  |  Branch (991:64): [True: 1.02k, False: 169]
  ------------------
  992|  1.02k|                        {
  993|  1.02k|                            key_buffer_.push_back(',');
  994|  1.02k|                        }
  995|   132k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
  996|   132k|                        key_buffer_.push_back('[');
  997|   132k|                        break;
  998|  41.8k|                    default:
  ------------------
  |  Branch (998:21): [True: 41.8k, False: 132k]
  ------------------
  999|  41.8k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1000|  41.8k|                        destination_->begin_array(tag, context, ec);
 1001|  41.8k|                        break;
 1002|   173k|                }
 1003|   173k|            }
 1004|   175k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   175k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1005|   175k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|  9.84M|        {
 1476|  9.84M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 3.46M, False: 6.38M]
  |  Branch (1476:49): [True: 6.36M, False: 13.1k]
  ------------------
 1477|  9.83M|            {
 1478|  9.83M|                key_.clear(); 
 1479|  9.83M|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|  9.83M|            }
 1481|       |
 1482|  9.84M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 3.46M, False: 6.38M]
  ------------------
 1483|  3.46M|            {
 1484|  3.46M|                switch (level_stack_.back().target_kind())
 1485|  3.46M|                {
 1486|  3.45M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 3.45M, False: 11.7k]
  ------------------
 1487|  3.45M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 3.45M, False: 532]
  ------------------
 1488|  3.45M|                        {
 1489|  3.45M|                            key_buffer_.push_back(',');
 1490|  3.45M|                        }
 1491|  3.45M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|  3.45M|                        key_buffer_.push_back(':');
 1493|  3.45M|                        break;
 1494|  11.7k|                    default:
  ------------------
  |  Branch (1494:21): [True: 11.7k, False: 3.45M]
  ------------------
 1495|  11.7k|                        destination_->key(key_, context, ec);
 1496|  11.7k|                        break;
 1497|  3.46M|                }
 1498|  3.46M|            }
 1499|  6.38M|            else
 1500|  6.38M|            {
 1501|  6.38M|                switch (level_stack_.back().target_kind())
 1502|  6.38M|                {
 1503|  6.36M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 6.36M, False: 13.1k]
  ------------------
 1504|  6.36M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 2.90M, False: 3.46M]
  |  Branch (1504:65): [True: 2.76M, False: 143k]
  ------------------
 1505|  2.76M|                        {
 1506|  2.76M|                            key_buffer_.push_back(',');
 1507|  2.76M|                        }
 1508|  6.36M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|  6.36M|                        break;
 1510|  13.1k|                    default:
  ------------------
  |  Branch (1510:21): [True: 13.1k, False: 6.36M]
  ------------------
 1511|  13.1k|                        destination_->null_value(tag, context, ec);
 1512|  13.1k|                        break;
 1513|  6.38M|                }
 1514|  6.38M|            }
 1515|       |
 1516|  9.84M|            level_stack_.back().advance();
 1517|  9.84M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  9.84M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|  9.84M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1422|  2.08M|        {
 1423|  2.08M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1423:17): [True: 243k, False: 1.84M]
  |  Branch (1423:49): [True: 1.84M, False: 2.94k]
  ------------------
 1424|  2.08M|            {
 1425|  2.08M|                key_.clear(); 
 1426|  2.08M|                if (value)
  ------------------
  |  Branch (1426:21): [True: 9.82k, False: 2.07M]
  ------------------
 1427|  9.82k|                {
 1428|  9.82k|                    key_.insert(key_.begin(), json_literals<char_type>::true_literal.begin(), json_literals<char_type>::true_literal.end());
 1429|  9.82k|                }
 1430|  2.07M|                else
 1431|  2.07M|                {
 1432|  2.07M|                    key_.insert(key_.begin(), json_literals<char_type>::false_literal.begin(), json_literals<char_type>::false_literal.end());
 1433|  2.07M|                }
 1434|  2.08M|            }
 1435|       |
 1436|  2.08M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1436:17): [True: 243k, False: 1.84M]
  ------------------
 1437|   243k|            {
 1438|   243k|                switch (level_stack_.back().target_kind())
 1439|   243k|                {
 1440|   242k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1440:21): [True: 242k, False: 1.07k]
  ------------------
 1441|   242k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1441:29): [True: 241k, False: 840]
  ------------------
 1442|   241k|                        {
 1443|   241k|                            key_buffer_.push_back(',');
 1444|   241k|                        }
 1445|   242k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1446|   242k|                        key_buffer_.push_back(':');
 1447|   242k|                        break;
 1448|  1.07k|                    default:
  ------------------
  |  Branch (1448:21): [True: 1.07k, False: 242k]
  ------------------
 1449|  1.07k|                        destination_->key(key_, context, ec);
 1450|  1.07k|                        break;
 1451|   243k|                }
 1452|   243k|            }
 1453|  1.84M|            else
 1454|  1.84M|            {
 1455|  1.84M|                switch (level_stack_.back().target_kind())
 1456|  1.84M|                {
 1457|  1.84M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1457:21): [True: 1.84M, False: 2.94k]
  ------------------
 1458|  1.84M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1458:29): [True: 1.59M, False: 245k]
  |  Branch (1458:65): [True: 1.59M, False: 2.57k]
  ------------------
 1459|  1.59M|                        {
 1460|  1.59M|                            key_buffer_.push_back(',');
 1461|  1.59M|                        }
 1462|  1.84M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1463|  1.84M|                        break;
 1464|  2.94k|                    default:
  ------------------
  |  Branch (1464:21): [True: 2.94k, False: 1.84M]
  ------------------
 1465|  2.94k|                        destination_->bool_value(value, tag, context, ec);
 1466|  2.94k|                        break;
 1467|  1.84M|                }
 1468|  1.84M|            }
 1469|       |
 1470|  2.08M|            level_stack_.back().advance();
 1471|  2.08M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.08M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1472|  2.08M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|  2.23M|        {
 1073|  2.23M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 773k, False: 1.45M]
  ------------------
 1074|   773k|            {
 1075|   773k|                switch (level_stack_.back().target_kind())
 1076|   773k|                {
 1077|   537k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 537k, False: 236k]
  ------------------
 1078|   537k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 532k, False: 4.13k]
  ------------------
 1079|   532k|                        {
 1080|   532k|                            key_buffer_.push_back(',');
 1081|   532k|                        }
 1082|   537k|                        key_buffer_.push_back('\"');
 1083|   537k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|   537k|                        key_buffer_.push_back('\"');
 1085|   537k|                        key_buffer_.push_back(':');
 1086|   537k|                        break;
 1087|   236k|                    default:
  ------------------
  |  Branch (1087:21): [True: 236k, False: 537k]
  ------------------
 1088|   236k|                        destination_->key(value, context, ec);
 1089|   236k|                        break;
 1090|   773k|                }
 1091|   773k|            }
 1092|  1.45M|            else
 1093|  1.45M|            {
 1094|  1.45M|                switch (level_stack_.back().target_kind())
 1095|  1.45M|                {
 1096|  1.15M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 1.15M, False: 301k]
  ------------------
 1097|  1.15M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 623k, False: 533k]
  |  Branch (1097:65): [True: 348k, False: 274k]
  ------------------
 1098|   348k|                        {
 1099|   348k|                            key_buffer_.push_back(',');
 1100|   348k|                        }
 1101|  1.15M|                        key_buffer_.push_back('\"');
 1102|  1.15M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|  1.15M|                        key_buffer_.push_back('\"');
 1104|  1.15M|                        break;
 1105|   301k|                    default:
  ------------------
  |  Branch (1105:21): [True: 301k, False: 1.15M]
  ------------------
 1106|   301k|                        destination_->string_value(value, tag, context, ec);
 1107|   301k|                        break;
 1108|  1.45M|                }
 1109|  1.45M|            }
 1110|       |
 1111|  2.23M|            level_stack_.back().advance();
 1112|  2.23M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.23M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|  2.23M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  5.63M|        {
 1120|  5.63M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 1.77M, False: 3.85M]
  |  Branch (1120:49): [True: 2.81M, False: 1.04M]
  ------------------
 1121|  4.58M|            {
 1122|  4.58M|                key_.clear();
 1123|  4.58M|                switch (tag)
 1124|  4.58M|                {
 1125|    547|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 547, False: 4.58M]
  ------------------
 1126|    547|                        bytes_to_base64(value.begin(), value.end(), key_);
 1127|    547|                        break;
 1128|  1.52k|                    case semantic_tag::base16:
  ------------------
  |  Branch (1128:21): [True: 1.52k, False: 4.58M]
  ------------------
 1129|  1.52k|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|  1.52k|                        break;
 1131|  4.58M|                    default:
  ------------------
  |  Branch (1131:21): [True: 4.58M, False: 2.07k]
  ------------------
 1132|  4.58M|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  4.58M|                        break;
 1134|  4.58M|                }
 1135|  4.58M|            }
 1136|       |
 1137|  5.63M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 1.77M, False: 3.85M]
  ------------------
 1138|  1.77M|            {
 1139|  1.77M|                switch (level_stack_.back().target_kind())
 1140|  1.77M|                {
 1141|   893k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 893k, False: 881k]
  ------------------
 1142|   893k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 887k, False: 6.03k]
  ------------------
 1143|   887k|                        {
 1144|   887k|                            key_buffer_.push_back(',');
 1145|   887k|                        }
 1146|   893k|                        key_buffer_.push_back('\"');
 1147|   893k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|   893k|                        key_buffer_.push_back('\"');
 1149|   893k|                        key_buffer_.push_back(':');
 1150|   893k|                        break;
 1151|   881k|                    default:
  ------------------
  |  Branch (1151:21): [True: 881k, False: 893k]
  ------------------
 1152|   881k|                        destination_->key(key_, context, ec);
 1153|   881k|                        break;
 1154|  1.77M|                }
 1155|  1.77M|            }
 1156|  3.85M|            else
 1157|  3.85M|            {
 1158|  3.85M|                switch (level_stack_.back().target_kind())
 1159|  3.85M|                {
 1160|  2.81M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 2.81M, False: 1.04M]
  ------------------
 1161|  2.81M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 1.92M, False: 888k]
  |  Branch (1161:65): [True: 1.76M, False: 163k]
  ------------------
 1162|  1.76M|                        {
 1163|  1.76M|                            key_buffer_.push_back(',');
 1164|  1.76M|                        }
 1165|  2.81M|                        key_buffer_.push_back('\"');
 1166|  2.81M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  2.81M|                        key_buffer_.push_back('\"');
 1168|  2.81M|                        break;
 1169|  1.04M|                    default:
  ------------------
  |  Branch (1169:21): [True: 1.04M, False: 2.81M]
  ------------------
 1170|  1.04M|                        destination_->byte_string_value(value, tag, context, ec);
 1171|  1.04M|                        break;
 1172|  3.85M|                }
 1173|  3.85M|            }
 1174|       |
 1175|  5.63M|            level_stack_.back().advance();
 1176|  5.63M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  5.63M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  5.63M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|  73.3k|        {
 1184|  73.3k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 24.6k, False: 48.7k]
  |  Branch (1184:49): [True: 47.3k, False: 1.33k]
  ------------------
 1185|  72.0k|            {
 1186|  72.0k|                key_.clear();
 1187|  72.0k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|  72.0k|            }
 1189|       |
 1190|  73.3k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 24.6k, False: 48.7k]
  ------------------
 1191|  24.6k|            {
 1192|  24.6k|                switch (level_stack_.back().target_kind())
 1193|  24.6k|                {
 1194|  23.9k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 23.9k, False: 728]
  ------------------
 1195|  23.9k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 22.6k, False: 1.29k]
  ------------------
 1196|  22.6k|                        {
 1197|  22.6k|                            key_buffer_.push_back(',');
 1198|  22.6k|                        }
 1199|  23.9k|                        key_buffer_.push_back('\"');
 1200|  23.9k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|  23.9k|                        key_buffer_.push_back('\"');
 1202|  23.9k|                        key_buffer_.push_back(':');
 1203|  23.9k|                        break;
 1204|    728|                    default:
  ------------------
  |  Branch (1204:21): [True: 728, False: 23.9k]
  ------------------
 1205|    728|                        destination_->key(key_, context, ec);
 1206|    728|                        break;
 1207|  24.6k|                }
 1208|  24.6k|            }
 1209|  48.7k|            else
 1210|  48.7k|            {
 1211|  48.7k|                switch (level_stack_.back().target_kind())
 1212|  48.7k|                {
 1213|  47.3k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 47.3k, False: 1.33k]
  ------------------
 1214|  47.3k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 24.9k, False: 22.4k]
  |  Branch (1214:65): [True: 22.8k, False: 2.11k]
  ------------------
 1215|  22.8k|                        {
 1216|  22.8k|                            key_buffer_.push_back(',');
 1217|  22.8k|                        }
 1218|  47.3k|                        key_buffer_.push_back('\"');
 1219|  47.3k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|  47.3k|                        key_buffer_.push_back('\"');
 1221|  47.3k|                        break;
 1222|  1.33k|                    default:
  ------------------
  |  Branch (1222:21): [True: 1.33k, False: 47.3k]
  ------------------
 1223|  1.33k|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|  1.33k|                        break;
 1225|  48.7k|                }
 1226|  48.7k|            }
 1227|       |
 1228|  73.3k|            level_stack_.back().advance();
 1229|  73.3k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  73.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|  73.3k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1325|  22.2k|        {
 1326|  22.2k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1326:17): [True: 8.46k, False: 13.8k]
  |  Branch (1326:49): [True: 13.5k, False: 323]
  ------------------
 1327|  21.9k|            {
 1328|  21.9k|                key_.clear();
 1329|  21.9k|                jsoncons::string_sink<string_type> sink(key_);
 1330|  21.9k|                jsoncons::write_double f{float_chars_format::general,0};
 1331|  21.9k|                double x = binary::decode_half(value);
 1332|  21.9k|                f(x, sink);
 1333|  21.9k|            }
 1334|       |
 1335|  22.2k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1335:17): [True: 8.46k, False: 13.8k]
  ------------------
 1336|  8.46k|            {
 1337|  8.46k|                switch (level_stack_.back().target_kind())
 1338|  8.46k|                {
 1339|  8.17k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1339:21): [True: 8.17k, False: 291]
  ------------------
 1340|  8.17k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1340:29): [True: 7.46k, False: 710]
  ------------------
 1341|  7.46k|                        {
 1342|  7.46k|                            key_buffer_.push_back(',');
 1343|  7.46k|                        }
 1344|  8.17k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1345|  8.17k|                        key_buffer_.push_back(':');
 1346|  8.17k|                        break;
 1347|    291|                    default:
  ------------------
  |  Branch (1347:21): [True: 291, False: 8.17k]
  ------------------
 1348|    291|                        destination_->key(key_, context, ec);
 1349|    291|                        break;
 1350|  8.46k|                }
 1351|  8.46k|            }
 1352|  13.8k|            else
 1353|  13.8k|            {
 1354|  13.8k|                switch (level_stack_.back().target_kind())
 1355|  13.8k|                {
 1356|  13.5k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1356:21): [True: 13.5k, False: 323]
  ------------------
 1357|  13.5k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1357:29): [True: 5.75k, False: 7.75k]
  |  Branch (1357:65): [True: 4.73k, False: 1.01k]
  ------------------
 1358|  4.73k|                        {
 1359|  4.73k|                            key_buffer_.push_back(',');
 1360|  4.73k|                        }
 1361|  13.5k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1362|  13.5k|                        break;
 1363|    323|                    default:
  ------------------
  |  Branch (1363:21): [True: 323, False: 13.5k]
  ------------------
 1364|    323|                        destination_->half_value(value, tag, context, ec);
 1365|    323|                        break;
 1366|  13.8k|                }
 1367|  13.8k|            }
 1368|       |
 1369|  22.2k|            level_stack_.back().advance();
 1370|  22.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  22.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1371|  22.2k|        }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|  41.2M|    {
  295|  41.2M|        visit_begin_array(length, tag, context, ec);
  296|  41.2M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  41.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|  41.2M|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|  15.5M|    {
  364|  15.5M|        visit_uint64(value, tag, context, ec);
  365|  15.5M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  15.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  15.5M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|  38.9M|    {
  301|  38.9M|        visit_end_array(context, ec);
  302|  38.9M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  38.9M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|  38.9M|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|  9.02M|    {
  373|  9.02M|        visit_int64(value, tag, context, ec);
  374|  9.02M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  9.02M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|  9.02M|    }
_ZN8jsoncons21basic_generic_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  381|  22.2k|    {
  382|  22.2k|        visit_half(value, tag, context, ec);
  383|  22.2k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  22.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  384|  22.2k|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  390|   681k|    {
  391|   681k|        visit_double(value, tag, context, ec);
  392|   681k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   681k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  393|   681k|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|  1.01k|            : destination_(std::addressof(visitor)), 
  856|  1.01k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|  1.01k|        {
  858|  1.01k|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|  1.01k|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|  1.01k|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  5.63M|    {
  344|  5.63M|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  5.63M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  5.63M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  5.63M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|  73.3k|    {
  355|  73.3k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|  73.3k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  73.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|  73.3k|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  323|  2.08M|    {
  324|  2.08M|        visit_bool(value, tag, context, ec);
  325|  2.08M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.08M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  2.08M|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|  9.84M|    {
  315|  9.84M|        visit_null(tag, context, ec);
  316|  9.84M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  9.84M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|  9.84M|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|  2.23M|    {
  333|  2.23M|        visit_string(value, tag, context, ec);
  334|  2.23M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.23M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|  2.23M|    }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  288|   175k|    {
  289|   175k|        visit_begin_array(tag, context, ec);
  290|   175k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   175k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  291|   175k|    }
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  267|  13.4k|    {
  268|  13.4k|        visit_begin_object(tag, context, ec);
  269|  13.4k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  13.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  270|  13.4k|    }
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|   254k|    {
  277|   254k|        visit_begin_object(length, tag, context, ec);
  278|   254k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   254k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|   254k|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|   229k|    {
  283|   229k|        visit_end_object(context, ec);
  284|   229k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   229k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|   229k|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|     54|    {
   58|     54|        visit_flush();
   59|     54|    }

_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  2.03k|        basic_default_json_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  2.03k|        basic_json_visitor() = default;
_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  3.05k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  560|  12.9M|        {
  561|  12.9M|            visit_begin_array(tag, context, ec);
  562|  12.9M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  12.9M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  563|  12.9M|        }
_ZN8jsoncons26basic_default_json_visitorIcE15visit_end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  833|  11.0M|        {
  834|  11.0M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  11.0M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  835|  11.0M|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  858|   965k|        {
  859|   965k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   965k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  860|   965k|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  863|  2.58M|        {
  864|  2.58M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.58M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  865|  2.58M|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  873|  46.0k|        {
  874|  46.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  46.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  875|  46.0k|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_flushEv:
  814|     54|        {
  815|     54|        }
_ZN8jsoncons26basic_default_json_visitorIcE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  818|  3.26k|        {
  819|  3.26k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  3.26k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  820|  3.26k|        }
_ZN8jsoncons18basic_json_visitorIcE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  544|  2.77k|        {
  545|  2.77k|            visit_begin_object(tag, context, ec);
  546|  2.77k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.77k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  547|  2.77k|        }
_ZN8jsoncons26basic_default_json_visitorIcE16visit_end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  823|  2.01k|        {
  824|  2.01k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.01k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  825|  2.01k|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  828|  13.0M|        {
  829|  13.0M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  13.0M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  830|  13.0M|        }
_ZN8jsoncons26basic_default_json_visitorIcE9visit_keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  838|  1.72M|        {
  839|  1.72M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.72M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  840|  1.72M|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  843|  13.1k|        {
  844|  13.1k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  13.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  845|  13.1k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  878|  2.94k|        {
  879|  2.94k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.94k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  880|  2.94k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_stringERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  848|   301k|        {
  849|   301k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   301k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  850|   301k|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  853|  1.04M|        {
  854|  1.04M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.04M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  855|  1.04M|        }
_ZN8jsoncons18basic_json_visitorIcE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNSt3__110error_codeE:
  595|  1.33k|        {
  596|  1.33k|            visit_byte_string(value, semantic_tag::none, context, ec);
  597|  1.33k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.33k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  598|  1.33k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  868|    323|        {
  869|    323|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|    323|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  870|    323|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|  12.9M|        {
  346|  12.9M|            visit_begin_array(length, tag, context, ec);
  347|  12.9M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  12.9M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|  12.9M|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|   965k|        {
  415|   965k|            visit_uint64(value, tag, context, ec);
  416|   965k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   965k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|   965k|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|  11.0M|        {
  352|  11.0M|            visit_end_array(context, ec);
  353|  11.0M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  11.0M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|  11.0M|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|  2.58M|        {
  424|  2.58M|            visit_int64(value, tag, context, ec);
  425|  2.58M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.58M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|  2.58M|        }
_ZN8jsoncons18basic_json_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  432|    323|        {
  433|    323|            visit_half(value, tag, context, ec);
  434|    323|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|    323|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  435|    323|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|  46.0k|        {
  442|  46.0k|            visit_double(value, tag, context, ec);
  443|  46.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  46.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|  46.0k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|  1.72M|        {
  358|  1.72M|            visit_key(name, context, ec);
  359|  1.72M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.72M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|  1.72M|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|     54|        {
  109|     54|            visit_flush();
  110|     54|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  318|    493|        {
  319|    493|            visit_begin_object(tag, context, ec);
  320|    493|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|    493|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  321|    493|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  2.77k|        {
  328|  2.77k|            visit_begin_object(length, tag, context, ec);
  329|  2.77k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.77k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|  2.77k|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  2.01k|        {
  334|  2.01k|            visit_end_object(context, ec);
  335|  2.01k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.01k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  2.01k|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|  41.8k|        {
  340|  41.8k|            visit_begin_array(tag, context, ec);
  341|  41.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  41.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  342|  41.8k|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|  13.1k|        {
  366|  13.1k|            visit_null(tag, context, ec);
  367|  13.1k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  13.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  13.1k|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|  2.94k|        {
  375|  2.94k|            visit_bool(value, tag, context, ec);
  376|  2.94k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.94k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|  2.94k|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|   301k|        {
  384|   301k|            visit_string(value, tag, context, ec);
  385|   301k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   301k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|   301k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|  1.04M|        {
  395|  1.04M|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|  1.04M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.04M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|  1.04M|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|  1.33k|        {
  406|  1.33k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|  1.33k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.33k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|  1.33k|        }

_ZN8jsoncons6nonstd11countr_zeroImEEiT_:
   75|  30.0k|int countr_zero(T value) {
   76|  30.0k|    static_assert(std::is_integral<T>::value && std::is_unsigned<T>::value, "Type must be unsigned integer");
   77|       |    
   78|  30.0k|    if (value == 0) {
  ------------------
  |  Branch (78:9): [True: 0, False: 30.0k]
  ------------------
   79|      0|        return sizeof(T) * 8; // Or std::numeric_limits<T>::digits
   80|      0|    }
   81|       |    
   82|  30.0k|    #if defined(__GNUC__) || defined(__clang__)
   83|  30.0k|        if (sizeof(T) <= sizeof(unsigned int)) {
  ------------------
  |  Branch (83:13): [Folded, False: 30.0k]
  ------------------
   84|      0|            return __builtin_ctz(static_cast<unsigned int>(value));
   85|  30.0k|        } else if (sizeof(T) <= sizeof(unsigned long)) {
  ------------------
  |  Branch (85:20): [True: 30.0k, Folded]
  ------------------
   86|  30.0k|            return __builtin_ctzl(static_cast<unsigned long>(value));
   87|  30.0k|        } else {
   88|      0|            return __builtin_ctzll(static_cast<unsigned long long>(value));
   89|      0|        }
   90|       |    #elif defined(_MSC_VER)
   91|       |        unsigned long index;
   92|       |        #if defined(_M_X64) || defined(_M_ARM64)
   93|       |            JSONCONS_IF_CONSTEXPR (sizeof(T) == 8) 
   94|       |            {
   95|       |                _BitScanForward64(&index, static_cast<unsigned __int64>(value));
   96|       |                return static_cast<int>(index);
   97|       |            }
   98|       |            else
   99|       |            {
  100|       |                _BitScanForward(&index, static_cast<unsigned long>(value));
  101|       |                return static_cast<int>(index);
  102|       |            }
  103|       |        #else
  104|       |            _BitScanForward(&index, static_cast<unsigned long>(value));
  105|       |            return static_cast<int>(index);
  106|       |        #endif
  107|       |    #else
  108|       |        int count = 0;
  109|       |        while ((value & 1) == 0) {
  110|       |            count++;
  111|       |            value >>= 1;
  112|       |        }
  113|       |        return count;
  114|       |    #endif
  115|  30.0k|}
_ZN8jsoncons6nonstd11countl_zeroImEEiT_:
   20|    126|{
   21|    126|    static_assert(std::is_integral<T>::value && std::is_unsigned<T>::value, "Type must be unsigned integer");
   22|       |
   23|    126|    if (x == 0) return std::numeric_limits<T>::digits;
  ------------------
  |  Branch (23:9): [True: 0, False: 126]
  ------------------
   24|    126|#if defined(__GNUC__) || defined(__clang__)
   25|    126|    JSONCONS_IF_CONSTEXPR (sizeof(T) <= sizeof(unsigned int)) {
  ------------------
  |  |  195|    126|    #define JSONCONS_IF_CONSTEXPR if constexpr
  ------------------
   26|    126|        return __builtin_clz(x) - (sizeof(unsigned int) - sizeof(T)) * 8;
   27|    126|    }
   28|    126|    else JSONCONS_IF_CONSTEXPR (sizeof(T) <= sizeof(unsigned long long)) {
  ------------------
  |  |  195|    126|    #define JSONCONS_IF_CONSTEXPR if constexpr
  ------------------
   29|    126|        return __builtin_clzll(x) - (sizeof(unsigned long long) - sizeof(T)) * 8;
   30|    126|    }
   31|      0|#endif
   32|       |
   33|       |    // windows
   34|       |    // _BitScanReverse64
   35|    126|        if (x == 0)
  ------------------
  |  Branch (35:13): [True: 0, False: 126]
  ------------------
   36|      0|        return 64;
   37|       |
   38|       |/* 
   39|       |#include <intrin.h>
   40|       |#include <cstdint> 
   41|       | 
   42|       |#ifdef _MSC_VER
   43|       |    unsigned long index;
   44|       |
   45|       |#if defined(_M_X64) || defined(_M_ARM64)
   46|       |    _BitScanReverse64(&index, x);
   47|       |#else
   48|       |    // Support 32-bit MSVC.
   49|       |    if (x >> 32) {
   50|       |        _BitScanReverse(&index, uint32_t(x >> 32));
   51|       |        return 31 - index;
   52|       |    }
   53|       |
   54|       |    _BitScanReverse(&index, uint32_t(x));
   55|       |    return 63 - index;
   56|       |#endif
   57|       |
   58|       |    return 63 - index;
   59|       |#else
   60|       |    return __builtin_clzll(x);
   61|       |#endif
   62|       |*/
   63|       |
   64|    126|    int bits = std::numeric_limits<T>::digits;
   65|    126|    T mask = static_cast<T>(1) << (bits - 1);
   66|    126|    int leading_zeros = 0;
   67|    126|    while ((x & mask) == 0 && leading_zeros < bits) {
  ------------------
  |  Branch (67:12): [True: 0, False: 126]
  |  Branch (67:31): [True: 0, False: 0]
  ------------------
   68|      0|        leading_zeros++;
   69|      0|        x <<= 1;
   70|      0|    }
   71|    126|    return leading_zeros;
   72|    126|}

_ZN8jsoncons6binary11decode_halfEt:
  537|   122k|    {
  538|       |    #if defined(__F16C__) && !defined(APPLE_MISSING_INTRINSICS)
  539|       |        return _cvtsh_ss(half);
  540|       |    #else
  541|   122k|        int64_t exp = (half >> 10) & 0x1f;
  542|   122k|        int64_t mant = half & 0x3ff;
  543|   122k|        double val;
  544|   122k|        if (exp == 0) 
  ------------------
  |  Branch (544:13): [True: 20.3k, False: 102k]
  ------------------
  545|  20.3k|        {
  546|  20.3k|            val = ldexp(static_cast<double>(mant), -24);
  547|  20.3k|        }
  548|   102k|        else if (exp != 31) 
  ------------------
  |  Branch (548:18): [True: 99.7k, False: 2.85k]
  ------------------
  549|  99.7k|        {
  550|  99.7k|            val = ldexp(static_cast<double>(mant) + 1024.0, static_cast<int>(exp - 25));
  551|  99.7k|        } 
  552|  2.85k|        else
  553|  2.85k|        {
  554|  2.85k|            val = mant == 0 ? std::numeric_limits<double>::infinity() : std::nan("");
  ------------------
  |  Branch (554:19): [True: 582, False: 2.26k]
  ------------------
  555|  2.85k|        }
  556|   122k|        return half & 0x8000 ? -val : val;
  ------------------
  |  Branch (556:16): [True: 33.3k, False: 89.5k]
  ------------------
  557|   122k|    #endif
  558|   122k|    }

_ZN8jsoncons6nonstd8expectedImNSt3__14errcEEC2EOm:
   52|  20.2k|        : has_value_(true)
   53|  20.2k|    {
   54|  20.2k|        construct(std::move(value));
   55|  20.2k|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEE9constructEOm:
  274|  20.2k|    {
  275|  20.2k|        ::new (&value_) T(std::move(value));
  276|  20.2k|        has_value_ = true;
  277|  20.2k|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEEC2IJS3_EEENS0_10unexpect_tEDpOT_:
   66|     12|        : has_value_(false)
   67|     12|    {
   68|     12|        ::new (&error_) E(std::forward<Args>(args)...);
   69|     12|    }
_ZNK8jsoncons6nonstd8expectedImNSt3__14errcEEcvbEv:
  146|  20.2k|    {
  147|  20.2k|        return has_value_;
  148|  20.2k|    }
_ZNR8jsoncons6nonstd8expectedImNSt3__14errcEEdeEv:
  231|  40.4k|    {
  232|  40.4k|        return this->value_;
  233|  40.4k|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEED2Ev:
  100|  20.2k|    {
  101|  20.2k|        destroy();
  102|  20.2k|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEE7destroyEv:
  280|  20.2k|    {
  281|  20.2k|        if (has_value_) 
  ------------------
  |  Branch (281:13): [True: 20.2k, False: 12]
  ------------------
  282|  20.2k|        {
  283|  20.2k|            value_.~T();
  284|  20.2k|            has_value_ = false;
  285|  20.2k|        }
  286|     12|        else
  287|     12|        {
  288|     12|            error_.~E();
  289|     12|        }
  290|  20.2k|    }

_ZN8jsoncons6nonstd16to_plain_pointerImEEPT_S3_:
  265|   309k|    {       
  266|   309k|        return (ptr);
  267|   309k|    }  

_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4sizeEv:
  116|  15.5M|        {
  117|  15.5M|            return size_;
  118|  15.5M|        }
_ZNK8jsoncons6nonstd4spanIKtLm18446744073709551615EE4sizeEv:
  116|   521k|        {
  117|   521k|            return size_;
  118|   521k|        }
_ZNK8jsoncons6nonstd4spanIKjLm18446744073709551615EE4sizeEv:
  116|  3.32M|        {
  117|  3.32M|            return size_;
  118|  3.32M|        }
_ZNK8jsoncons6nonstd4spanIKmLm18446744073709551615EE4sizeEv:
  116|  6.69M|        {
  117|  6.69M|            return size_;
  118|  6.69M|        }
_ZNK8jsoncons6nonstd4spanIKaLm18446744073709551615EE4sizeEv:
  116|  5.10M|        {
  117|  5.10M|            return size_;
  118|  5.10M|        }
_ZNK8jsoncons6nonstd4spanIKsLm18446744073709551615EE4sizeEv:
  116|  1.23M|        {
  117|  1.23M|            return size_;
  118|  1.23M|        }
_ZNK8jsoncons6nonstd4spanIKiLm18446744073709551615EE4sizeEv:
  116|   581k|        {
  117|   581k|            return size_;
  118|   581k|        }
_ZNK8jsoncons6nonstd4spanIKlLm18446744073709551615EE4sizeEv:
  116|   488k|        {
  117|   488k|            return size_;
  118|   488k|        }
_ZNK8jsoncons6nonstd4spanIKfLm18446744073709551615EE4sizeEv:
  116|   140k|        {
  117|   140k|            return size_;
  118|   140k|        }
_ZNK8jsoncons6nonstd4spanIKdLm18446744073709551615EE4sizeEv:
  116|   476k|        {
  117|   476k|            return size_;
  118|   476k|        }
_ZNK8jsoncons6nonstd4spanIhLm18446744073709551615EE4dataEv:
  111|   469k|        {
  112|   469k|            return data_;
  113|   469k|        }
_ZNK8jsoncons6nonstd4spanIhLm18446744073709551615EE4sizeEv:
  116|   469k|        {
  117|   469k|            return size_;
  118|   469k|        }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|  6.95M|            : data_(data), size_(size)
   62|  6.95M|        {
   63|  6.95M|        }
_ZN8jsoncons6nonstd4spanIhLm18446744073709551615EEC2INSt3__16vectorIhNS4_9allocatorIhEEEEEERT_PNS4_9enable_ifIXaaaaaantsr7is_spanIS9_EE5valuentsr6nonstd12is_std_arrayIS9_EE5valuesr6nonstd21is_compatible_elementIS9_hEE5valuesr6nonstd17has_data_and_sizeIS9_EE5valueEvE4typeE:
   68|   469k|            : data_(c.data()), size_(c.size())
   69|   469k|        {
   70|   469k|        }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2IhLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  13.6k|            : data_(s.data()), size_(s.size())
  103|  13.6k|        {
  104|  13.6k|        }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EEixEm:
  126|   210k|         {
  127|   210k|             return data_[index];
  128|   210k|         }
_ZN8jsoncons6nonstd4spanItLm18446744073709551615EEC2EPtm:
   61|  63.9k|            : data_(data), size_(size)
   62|  63.9k|        {
   63|  63.9k|        }
_ZNK8jsoncons6nonstd4spanItLm18446744073709551615EE4sizeEv:
  116|   428k|        {
  117|   428k|            return size_;
  118|   428k|        }
_ZNK8jsoncons6nonstd4spanItLm18446744073709551615EEixEm:
  126|   686k|         {
  127|   686k|             return data_[index];
  128|   686k|         }
_ZN8jsoncons6nonstd4spanIKtLm18446744073709551615EEC2ItLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  31.9k|            : data_(s.data()), size_(s.size())
  103|  31.9k|        {
  104|  31.9k|        }
_ZNK8jsoncons6nonstd4spanItLm18446744073709551615EE4dataEv:
  111|  31.9k|        {
  112|  31.9k|            return data_;
  113|  31.9k|        }
_ZNK8jsoncons6nonstd4spanIKtLm18446744073709551615EEixEm:
  126|   473k|         {
  127|   473k|             return data_[index];
  128|   473k|         }
_ZN8jsoncons6nonstd4spanIjLm18446744073709551615EEC2EPjm:
   61|  5.25k|            : data_(data), size_(size)
   62|  5.25k|        {
   63|  5.25k|        }
_ZNK8jsoncons6nonstd4spanIjLm18446744073709551615EE4sizeEv:
  116|  1.23M|        {
  117|  1.23M|            return size_;
  118|  1.23M|        }
_ZNK8jsoncons6nonstd4spanIjLm18446744073709551615EEixEm:
  126|  2.46M|         {
  127|  2.46M|             return data_[index];
  128|  2.46M|         }
_ZN8jsoncons6nonstd4spanIKjLm18446744073709551615EEC2IjLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  2.62k|            : data_(s.data()), size_(s.size())
  103|  2.62k|        {
  104|  2.62k|        }
_ZNK8jsoncons6nonstd4spanIjLm18446744073709551615EE4dataEv:
  111|  2.62k|        {
  112|  2.62k|            return data_;
  113|  2.62k|        }
_ZNK8jsoncons6nonstd4spanIKjLm18446744073709551615EEixEm:
  126|  3.31M|         {
  127|  3.31M|             return data_[index];
  128|  3.31M|         }
_ZN8jsoncons6nonstd4spanImLm18446744073709551615EEC2EPmm:
   61|  73.2k|            : data_(data), size_(size)
   62|  73.2k|        {
   63|  73.2k|        }
_ZNK8jsoncons6nonstd4spanImLm18446744073709551615EE4sizeEv:
  116|   614k|        {
  117|   614k|            return size_;
  118|   614k|        }
_ZNK8jsoncons6nonstd4spanImLm18446744073709551615EEixEm:
  126|  1.00M|         {
  127|  1.00M|             return data_[index];
  128|  1.00M|         }
_ZN8jsoncons6nonstd4spanIKmLm18446744073709551615EEC2ImLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  36.6k|            : data_(s.data()), size_(s.size())
  103|  36.6k|        {
  104|  36.6k|        }
_ZNK8jsoncons6nonstd4spanImLm18446744073709551615EE4dataEv:
  111|  36.6k|        {
  112|  36.6k|            return data_;
  113|  36.6k|        }
_ZNK8jsoncons6nonstd4spanIKmLm18446744073709551615EEixEm:
  126|  18.6M|         {
  127|  18.6M|             return data_[index];
  128|  18.6M|         }
_ZN8jsoncons6nonstd4spanIaLm18446744073709551615EEC2EPam:
   61|  11.6k|            : data_(data), size_(size)
   62|  11.6k|        {
   63|  11.6k|        }
_ZNK8jsoncons6nonstd4spanIaLm18446744073709551615EE4sizeEv:
  116|  11.9k|        {
  117|  11.9k|            return size_;
  118|  11.9k|        }
_ZN8jsoncons6nonstd4spanIKaLm18446744073709551615EEC2IaLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  5.81k|            : data_(s.data()), size_(s.size())
  103|  5.81k|        {
  104|  5.81k|        }
_ZNK8jsoncons6nonstd4spanIaLm18446744073709551615EE4dataEv:
  111|  5.81k|        {
  112|  5.81k|            return data_;
  113|  5.81k|        }
_ZNK8jsoncons6nonstd4spanIKaLm18446744073709551615EEixEm:
  126|  5.09M|         {
  127|  5.09M|             return data_[index];
  128|  5.09M|         }
_ZN8jsoncons6nonstd4spanIsLm18446744073709551615EEC2EPsm:
   61|  14.3k|            : data_(data), size_(size)
   62|  14.3k|        {
   63|  14.3k|        }
_ZNK8jsoncons6nonstd4spanIsLm18446744073709551615EE4sizeEv:
  116|   210k|        {
  117|   210k|            return size_;
  118|   210k|        }
_ZNK8jsoncons6nonstd4spanIsLm18446744073709551615EEixEm:
  126|   380k|         {
  127|   380k|             return data_[index];
  128|   380k|         }
_ZN8jsoncons6nonstd4spanIKsLm18446744073709551615EEC2IsLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  7.17k|            : data_(s.data()), size_(s.size())
  103|  7.17k|        {
  104|  7.17k|        }
_ZNK8jsoncons6nonstd4spanIsLm18446744073709551615EE4dataEv:
  111|  7.17k|        {
  112|  7.17k|            return data_;
  113|  7.17k|        }
_ZNK8jsoncons6nonstd4spanIKsLm18446744073709551615EEixEm:
  126|  1.21M|         {
  127|  1.21M|             return data_[index];
  128|  1.21M|         }
_ZN8jsoncons6nonstd4spanIiLm18446744073709551615EEC2EPim:
   61|  16.2k|            : data_(data), size_(size)
   62|  16.2k|        {
   63|  16.2k|        }
_ZNK8jsoncons6nonstd4spanIiLm18446744073709551615EE4sizeEv:
  116|   427k|        {
  117|   427k|            return size_;
  118|   427k|        }
_ZNK8jsoncons6nonstd4spanIiLm18446744073709551615EEixEm:
  126|   806k|         {
  127|   806k|             return data_[index];
  128|   806k|         }
_ZN8jsoncons6nonstd4spanIKiLm18446744073709551615EEC2IiLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  8.10k|            : data_(s.data()), size_(s.size())
  103|  8.10k|        {
  104|  8.10k|        }
_ZNK8jsoncons6nonstd4spanIiLm18446744073709551615EE4dataEv:
  111|  8.10k|        {
  112|  8.10k|            return data_;
  113|  8.10k|        }
_ZNK8jsoncons6nonstd4spanIKiLm18446744073709551615EEixEm:
  126|   562k|         {
  127|   562k|             return data_[index];
  128|   562k|         }
_ZN8jsoncons6nonstd4spanIlLm18446744073709551615EEC2EPlm:
   61|   220k|            : data_(data), size_(size)
   62|   220k|        {
   63|   220k|        }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EE4sizeEv:
  116|   384k|        {
  117|   384k|            return size_;
  118|   384k|        }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EEixEm:
  126|   321k|         {
  127|   321k|             return data_[index];
  128|   321k|         }
_ZN8jsoncons6nonstd4spanIKlLm18446744073709551615EEC2IlLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|   110k|            : data_(s.data()), size_(s.size())
  103|   110k|        {
  104|   110k|        }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EE4dataEv:
  111|   110k|        {
  112|   110k|            return data_;
  113|   110k|        }
_ZNK8jsoncons6nonstd4spanIKlLm18446744073709551615EEixEm:
  126|   162k|         {
  127|   162k|             return data_[index];
  128|   162k|         }
_ZN8jsoncons6nonstd4spanIfLm18446744073709551615EEC2EPfm:
   61|  6.71k|            : data_(data), size_(size)
   62|  6.71k|        {
   63|  6.71k|        }
_ZNK8jsoncons6nonstd4spanIfLm18446744073709551615EE4sizeEv:
  116|  74.8k|        {
  117|  74.8k|            return size_;
  118|  74.8k|        }
_ZNK8jsoncons6nonstd4spanIfLm18446744073709551615EEixEm:
  126|   130k|         {
  127|   130k|             return data_[index];
  128|   130k|         }
_ZN8jsoncons6nonstd4spanIKfLm18446744073709551615EEC2IfLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  3.35k|            : data_(s.data()), size_(s.size())
  103|  3.35k|        {
  104|  3.35k|        }
_ZNK8jsoncons6nonstd4spanIfLm18446744073709551615EE4dataEv:
  111|  3.35k|        {
  112|  3.35k|            return data_;
  113|  3.35k|        }
_ZNK8jsoncons6nonstd4spanIKfLm18446744073709551615EEixEm:
  126|   134k|         {
  127|   134k|             return data_[index];
  128|   134k|         }
_ZN8jsoncons6nonstd4spanIdLm18446744073709551615EEC2EPdm:
   61|  30.1k|            : data_(data), size_(size)
   62|  30.1k|        {
   63|  30.1k|        }
_ZNK8jsoncons6nonstd4spanIdLm18446744073709551615EE4sizeEv:
  116|   371k|        {
  117|   371k|            return size_;
  118|   371k|        }
_ZNK8jsoncons6nonstd4spanIdLm18446744073709551615EEixEm:
  126|   674k|         {
  127|   674k|             return data_[index];
  128|   674k|         }
_ZN8jsoncons6nonstd4spanIKdLm18446744073709551615EEC2IdLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  15.0k|            : data_(s.data()), size_(s.size())
  103|  15.0k|        {
  104|  15.0k|        }
_ZNK8jsoncons6nonstd4spanIdLm18446744073709551615EE4dataEv:
  111|  15.0k|        {
  112|  15.0k|            return data_;
  113|  15.0k|        }
_ZNK8jsoncons6nonstd4spanIKdLm18446744073709551615EEixEm:
  126|   436k|         {
  127|   436k|             return data_[index];
  128|   436k|         }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2Ev:
   58|   690k|        {
   59|   690k|        }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4dataEv:
  111|  7.63M|        {
  112|  7.63M|            return data_;
  113|  7.63M|        }
_ZNK8jsoncons6nonstd4spanIKmLm18446744073709551615EE5emptyEv:
  121|  20.2k|        { 
  122|  20.2k|            return size_ == 0; 
  123|  20.2k|        }
_ZN8jsoncons6nonstd4spanIKmLm18446744073709551615EEC2INSt3__16vectorImNS5_9allocatorImEEEEEERT_PNS5_9enable_ifIXaaaaaantsr7is_spanISA_EE5valuentsr6nonstd12is_std_arrayISA_EE5valuesr6nonstd21is_compatible_elementISA_S2_EE5valuesr6nonstd17has_data_and_sizeISA_EE5valueEvE4typeE:
   68|  20.2k|            : data_(c.data()), size_(c.size())
   69|  20.2k|        {
   70|  20.2k|        }

_ZN8jsoncons6nonstd4u128C2Em:
   29|  4.85G|    constexpr u128(uint64_t lo) : hi(0), lo(lo) {}
_ZNK8jsoncons6nonstd4u128mlERKS1_:
  111|  2.42G|    u128 operator*(const u128& rhs) const {
  112|       |        // Split components into 32-bit chunks to avoid 64-bit overflow during multiplication
  113|  2.42G|        uint64_t a3 = hi >> 32;
  114|  2.42G|        uint64_t a2 = hi & 0xFFFFFFFFFFFFFFULL; // lower 32 bits of hi
  115|  2.42G|        uint64_t a1 = lo >> 32;
  116|  2.42G|        uint64_t a0 = lo & 0xFFFFFFFFULL;
  117|       |
  118|  2.42G|        uint64_t b3 = rhs.hi >> 32;
  119|  2.42G|        uint64_t b2 = rhs.hi & 0xFFFFFFFFFFFFFFULL;
  120|  2.42G|        uint64_t b1 = rhs.lo >> 32;
  121|  2.42G|        uint64_t b0 = rhs.lo & 0xFFFFFFFFULL;
  122|       |
  123|       |        // Long multiplication matrix
  124|       |        // We only care about terms that fit in the final 128 bits.
  125|       |        // Chunks exceeding indices that add up to 3 (e.g., a2*b2, a3*b1) drop out of range.
  126|       |
  127|  2.42G|        uint64_t c0 = a0 * b0;
  128|  2.42G|        uint64_t c1 = a0 * b1 + a1 * b0;
  129|  2.42G|        uint64_t c2 = a0 * b2 + a1 * b1 + a2 * b0;
  130|  2.42G|        uint64_t c3 = a0 * b3 + a1 * b2 + a2 * b1 + a3 * b0;
  131|       |
  132|       |        // Carry propagation
  133|  2.42G|        c1 += (c0 >> 32);
  134|  2.42G|        c2 += (c1 >> 32);
  135|  2.42G|        c3 += (c2 >> 32);
  136|       |
  137|       |        // Reconstruct hi and lo 64-bit values
  138|  2.42G|        uint64_t new_low = (c0 & 0xFFFFFFFFULL) | (c1 << 32);
  139|  2.42G|        uint64_t new_high = (c2 & 0xFFFFFFFFULL) | (c3 << 32);
  140|       |
  141|  2.42G|        return {new_high, new_low};
  142|  2.42G|    }
_ZN8jsoncons6nonstd4u128C2Emm:
   30|  7.27G|    constexpr u128(uint64_t hi, uint64_t lo) : hi(hi), lo(lo) {}
_ZNK8jsoncons6nonstd4u128plERKS1_:
   41|  2.42G|    u128 operator+(const u128& rhs) const {
   42|  2.42G|        uint64_t new_low = lo + rhs.lo;
   43|       |        // Carry occurs if the result wrapped around and is less than one of the inputs
   44|  2.42G|        uint64_t carry = (new_low < lo) ? 1 : 0;
  ------------------
  |  Branch (44:26): [True: 0, False: 2.42G]
  ------------------
   45|  2.42G|        uint64_t new_high = hi + rhs.hi + carry;
   46|  2.42G|        return {new_high, new_low};
   47|  2.42G|    }
_ZNK8jsoncons6nonstd4u128cvmEv:
  154|  2.42G|    explicit operator uint64_t() const {
  155|  2.42G|        return lo;
  156|  2.42G|    }
_ZNK8jsoncons6nonstd4u128rsEj:
   95|  2.42G|    u128 operator>>(unsigned int shift) const {
   96|  2.42G|        if (shift == 0) return *this;
  ------------------
  |  Branch (96:13): [True: 0, False: 2.42G]
  ------------------
   97|  2.42G|        if (shift >= 128) return {0, 0};
  ------------------
  |  Branch (97:13): [True: 0, False: 2.42G]
  ------------------
   98|       |
   99|  2.42G|        if (shift >= 64) {
  ------------------
  |  Branch (99:13): [True: 2.42G, False: 0]
  ------------------
  100|  2.42G|            return {0, hi >> (shift - 64)};
  101|  2.42G|        }
  102|      0|        else {
  103|      0|            return {
  104|      0|                hi >> shift,
  105|      0|                (lo >> shift) | (hi << (64 - shift))
  106|      0|            };
  107|      0|        }
  108|  2.42G|    }
_ZNK8jsoncons6nonstd4u128cvbEv:
   32|  1.17M|    explicit operator bool() const {
   33|  1.17M|        return hi != 0 || lo != 0;
  ------------------
  |  Branch (33:16): [True: 0, False: 1.17M]
  |  Branch (33:27): [True: 142k, False: 1.03M]
  ------------------
   34|  1.17M|    }
_ZNK8jsoncons6nonstd4u128geERKS1_:
   71|  30.1k|    {
   72|  30.1k|        if (hi != rhs.hi)
  ------------------
  |  Branch (72:13): [True: 0, False: 30.1k]
  ------------------
   73|      0|            return hi > rhs.hi;
   74|       |
   75|  30.1k|        return lo >= rhs.lo;
   76|  30.1k|    }

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

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

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|  1.01k|    {
  194|  1.01k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 1.01k, False: 0]
  ------------------
  195|  1.01k|        {
  196|  1.01k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  1.01k|        }
  198|  1.01k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  1.01k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  1.01k|          chunk_size_(default_max_chunk_size)
  178|  1.01k|    {
  179|  1.01k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  1.01k|        data_end_ = chunk_;
  181|  1.01k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  1.01k|      : std::basic_istream<CharT>(&nb_)
   58|  1.01k|    {
   59|  1.01k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  1.01k|        null_buffer() = default;
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|  2.96M|    {
  378|  2.96M|        std::size_t len = 0;
  379|  2.96M|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 2.96M, False: 324]
  ------------------
  380|  2.96M|        {
  381|  2.96M|            len = (std::min)(remaining_, length);
  382|  2.96M|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|  2.96M|            data_end_ += len;
  384|  2.96M|            remaining_ -= len;
  385|  2.96M|            position_ += len;
  386|  2.96M|        }
  387|  2.96M|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 2.96M, False: 2.86k]
  ------------------
  388|  2.96M|        {
  389|  2.96M|            return len;
  390|  2.96M|        }
  391|  2.86k|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 2.86k, False: 0]
  ------------------
  392|  2.86k|        {
  393|  2.86k|            data_end_ = chunk_;
  394|  2.86k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|  2.86k|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 2.68k, False: 181]
  ------------------
  396|  2.68k|            {
  397|  2.68k|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|  2.68k|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|  2.68k|                data_end_ += len2;
  400|  2.68k|                remaining_ -= len2;
  401|  2.68k|                position_ += len2;
  402|  2.68k|                len += len2;
  403|  2.68k|            }
  404|  2.86k|            return len;
  405|  2.86k|        }
  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|  2.96M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|  8.33k|    {
  443|  8.33k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 436, False: 7.89k]
  ------------------
  444|    436|        {
  445|    436|            return 0;
  446|    436|        }
  447|       |
  448|  7.89k|        JSONCONS_TRY
  ------------------
  |  |   37|  7.89k|    #define JSONCONS_TRY try
  ------------------
  449|  7.89k|        {
  450|  7.89k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  7.89k|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  7.89k|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 945, False: 6.95k]
  ------------------
  454|    945|            {
  455|    945|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|    945|            }
  457|  7.89k|            return length;
  458|  7.89k|        }
  459|  7.89k|        JSONCONS_CATCH(const std::exception&)     
  460|  7.89k|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  7.89k|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr6nonstd7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  746|  1.01M|    {
  747|  1.01M|        std::size_t unread = length;
  748|       |
  749|  1.77M|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 763k, False: 1.01M]
  |  Branch (749:30): [True: 763k, False: 179]
  ------------------
  750|   763k|        {
  751|   763k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 663, False: 762k]
  |  Branch (751:44): [True: 510, False: 153]
  ------------------
  752|    510|            {
  753|    510|                std::size_t n = source.chunk_size();
  754|    510|                std::size_t offset = buffer.size();
  755|    510|                buffer.resize(offset+n);
  756|    510|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|    510|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|    510|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 30, False: 480]
  |  |  ------------------
  ------------------
  758|     30|                {
  759|     30|                    buffer.resize(offset+actual);
  760|     30|                }
  761|    510|                unread -= actual;
  762|    510|            }
  763|   762k|            else
  764|   762k|            {
  765|   762k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|   762k|                std::size_t offset = buffer.size();
  767|   762k|                buffer.resize(offset+n);
  768|   762k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|   762k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|   762k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 125, False: 762k]
  |  |  ------------------
  ------------------
  770|    125|                {
  771|    125|                    buffer.resize(offset + actual);
  772|    125|                }
  773|   762k|                unread -= actual;
  774|   762k|            }
  775|   763k|        }
  776|  1.01M|        return length - unread;
  777|  1.01M|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  2.19M|    {
  272|  2.19M|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 1.30k, False: 2.19M]
  |  Branch (272:35): [True: 259, False: 1.05k]
  ------------------
  273|  2.19M|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|  2.19M|    {
  347|  2.19M|        return remaining_;
  348|  2.19M|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|  2.19M|    {
  262|  2.19M|        return chunk_size_;
  263|  2.19M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11read_bufferEPhm:
  435|    786|    {
  436|    786|        auto len = fill_buffer(chunk, chunk_size);
  437|    786|        position_ += len;
  438|    786|        return len;
  439|    786|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_6vectorIhS3_EEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  352|  5.71M|    {
  353|  5.71M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|  5.71M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 667k, False: 5.05M]
  |  |  ------------------
  ------------------
  354|   667k|        {
  355|   667k|            return span<const value_type>{};
  356|   667k|        }
  357|  5.05M|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 433, False: 5.05M]
  |  Branch (357:32): [True: 419, False: 14]
  ------------------
  358|    419|        {
  359|    419|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|    419|            data_end_ = chunk_;
  361|    419|        }
  362|  5.05M|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 1.26k, False: 5.05M]
  ------------------
  363|  1.26k|        {
  364|  1.26k|            buffer.clear();
  365|  1.26k|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|  1.26k|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|  1.26k|        }
  368|       |
  369|  5.05M|        const value_type* data = data_end_;
  370|  5.05M|        data_end_ += length;
  371|  5.05M|        remaining_ -= length;
  372|  5.05M|        position_ += length;
  373|  5.05M|        return span<const value_type>(data, length);
  374|  5.05M|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr6nonstd7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSG_m:
  746|  1.42M|    {
  747|  1.42M|        std::size_t unread = length;
  748|       |
  749|  2.85M|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 1.42M, False: 1.42M]
  |  Branch (749:30): [True: 1.42M, False: 80]
  ------------------
  750|  1.42M|        {
  751|  1.42M|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 387, False: 1.42M]
  |  Branch (751:44): [True: 276, False: 111]
  ------------------
  752|    276|            {
  753|    276|                std::size_t n = source.chunk_size();
  754|    276|                std::size_t offset = buffer.size();
  755|    276|                buffer.resize(offset+n);
  756|    276|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|    276|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|    276|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 16, False: 260]
  |  |  ------------------
  ------------------
  758|     16|                {
  759|     16|                    buffer.resize(offset+actual);
  760|     16|                }
  761|    276|                unread -= actual;
  762|    276|            }
  763|  1.42M|            else
  764|  1.42M|            {
  765|  1.42M|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|  1.42M|                std::size_t offset = buffer.size();
  767|  1.42M|                buffer.resize(offset+n);
  768|  1.42M|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|  1.42M|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|  1.42M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 49, False: 1.42M]
  |  |  ------------------
  ------------------
  770|     49|                {
  771|     49|                    buffer.resize(offset + actual);
  772|     49|                }
  773|  1.42M|                unread -= actual;
  774|  1.42M|            }
  775|  1.42M|        }
  776|  1.42M|        return length - unread;
  777|  1.42M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_12basic_stringIcNS1_11char_traitsIcEENS2_IcEEEEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  352|  1.91M|    {
  353|  1.91M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|  1.91M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 23.2k, False: 1.88M]
  |  |  ------------------
  ------------------
  354|  23.2k|        {
  355|  23.2k|            return span<const value_type>{};
  356|  23.2k|        }
  357|  1.88M|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 173, False: 1.88M]
  |  Branch (357:32): [True: 157, False: 16]
  ------------------
  358|    157|        {
  359|    157|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|    157|            data_end_ = chunk_;
  361|    157|        }
  362|  1.88M|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 245, False: 1.88M]
  ------------------
  363|    245|        {
  364|    245|            buffer.clear();
  365|    245|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|    245|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|    245|        }
  368|       |
  369|  1.88M|        const value_type* data = data_end_;
  370|  1.88M|        data_end_ += length;
  371|  1.88M|        remaining_ -= length;
  372|  1.88M|        position_ += length;
  373|  1.88M|        return span<const value_type>(data, length);
  374|  1.88M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4peekEv:
  312|   102M|    {
  313|   102M|        if (remaining_ == 0)
  ------------------
  |  Branch (313:13): [True: 4.10k, False: 102M]
  ------------------
  314|  4.10k|        {
  315|  4.10k|            data_end_ = chunk_;
  316|  4.10k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  317|  4.10k|        }
  318|   102M|        if (remaining_ > 0)
  ------------------
  |  Branch (318:13): [True: 102M, False: 262]
  ------------------
  319|   102M|        {
  320|   102M|            value_type c = *data_end_;
  321|   102M|            return char_result<value_type>{c, false};
  322|   102M|        }
  323|    262|        else
  324|    262|        {
  325|    262|            return char_result<value_type>{0, true};
  326|    262|        }
  327|   102M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE6ignoreEm:
  286|  46.5M|    {
  287|  46.5M|        std::size_t len = 0;
  288|  46.5M|        if (remaining_ > 0)
  ------------------
  |  Branch (288:13): [True: 46.5M, False: 0]
  ------------------
  289|  46.5M|        {
  290|  46.5M|            len = (std::min)(remaining_, length);
  291|  46.5M|            position_ += len;
  292|  46.5M|            data_end_ += len;
  293|  46.5M|            remaining_ -= len;
  294|  46.5M|        }
  295|  46.5M|        while (len < length)
  ------------------
  |  Branch (295:16): [True: 0, False: 46.5M]
  ------------------
  296|      0|        {
  297|      0|            data_end_ = chunk_;
  298|      0|            remaining_ = fill_buffer(chunk_, chunk_size_);
  299|      0|            if (remaining_ == 0)
  ------------------
  |  Branch (299:17): [True: 0, False: 0]
  ------------------
  300|      0|            {
  301|      0|                break;
  302|      0|            }
  303|      0|            std::size_t len2 = (std::min)(remaining_, length-len);
  304|      0|            position_ += len2;
  305|      0|            data_end_ += len2;
  306|      0|            remaining_ -= len2;
  307|      0|            len += len2;
  308|      0|        }
  309|  46.5M|    }

_ZN8jsoncons16typed_array_castIKhEENS_6nonstd4spanIT_Lm18446744073709551615EEENS3_IhLm18446744073709551615EEE:
  141|  13.6k|{
  142|  13.6k|    return jsoncons::span<const uint8_t>{reinterpret_cast<const uint8_t*>(bytes.data()), bytes.size()};
  143|  13.6k|}
_ZN8jsoncons16typed_array_castIhEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   81|  13.6k|{
   82|  13.6k|    return bytes;
   83|  13.6k|}
_ZN8jsoncons16typed_array_castItEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   87|  63.9k|{
   88|  63.9k|    return jsoncons::span<uint16_t>{reinterpret_cast<uint16_t*>(bytes.data()), bytes.size()/sizeof(uint16_t)};
   89|  63.9k|}
_ZN8jsoncons16typed_array_castIjEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   93|  5.25k|{
   94|  5.25k|    return jsoncons::span<uint32_t>{reinterpret_cast<uint32_t*>(bytes.data()), bytes.size()/sizeof(uint32_t)};
   95|  5.25k|}
_ZN8jsoncons16typed_array_castImEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   99|  73.2k|{
  100|  73.2k|    return jsoncons::span<uint64_t>{reinterpret_cast<uint64_t*>(bytes.data()), bytes.size()/sizeof(uint64_t)};
  101|  73.2k|}
_ZN8jsoncons16typed_array_castIaEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  105|  11.6k|{
  106|  11.6k|    return jsoncons::span<int8_t>{reinterpret_cast<int8_t*>(bytes.data()), bytes.size()};
  107|  11.6k|}
_ZN8jsoncons16typed_array_castIsEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  111|  14.3k|{
  112|  14.3k|    return jsoncons::span<int16_t>{reinterpret_cast<int16_t*>(bytes.data()), bytes.size()/sizeof(int16_t)};
  113|  14.3k|}
_ZN8jsoncons16typed_array_castIiEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  117|  16.2k|{
  118|  16.2k|    return jsoncons::span<int32_t>{reinterpret_cast<int32_t*>(bytes.data()), bytes.size()/sizeof(int32_t)};
  119|  16.2k|}
_ZN8jsoncons16typed_array_castIlEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  123|   220k|{
  124|   220k|    return jsoncons::span<int64_t>{reinterpret_cast<int64_t*>(bytes.data()), bytes.size()/sizeof(int64_t)};
  125|   220k|}
_ZN8jsoncons16typed_array_castIfEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  129|  6.71k|{
  130|  6.71k|    return jsoncons::span<float>{reinterpret_cast<float*>(bytes.data()), bytes.size()/sizeof(float)};
  131|  6.71k|}
_ZN8jsoncons16typed_array_castIdEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  135|  30.1k|{
  136|  30.1k|    return jsoncons::span<double>{reinterpret_cast<double*>(bytes.data()), bytes.size()/sizeof(double)};
  137|  30.1k|}
_ZN8jsoncons22calculate_mdarray_sizeENS_6nonstd4spanIKmLm18446744073709551615EEE:
  247|  20.2k|{
  248|  20.2k|    using result_type = jsoncons::expected<std::size_t,std::errc>;
  249|       |
  250|  20.2k|    if (extents.empty())
  ------------------
  |  Branch (250:9): [True: 0, False: 20.2k]
  ------------------
  251|      0|    {
  252|      0|        return result_type(0);
  253|      0|    }
  254|  20.2k|    std::size_t n = extents[0];
  255|  6.02M|    for (std::size_t i = 1; i < extents.size(); ++i)
  ------------------
  |  Branch (255:29): [True: 6.00M, False: 20.2k]
  ------------------
  256|  6.00M|    {
  257|  6.00M|        if (extents[i] == 0 || JSONCONS_UNLIKELY(n > (std::numeric_limits<std::size_t>::max)()/extents[i]))
  ------------------
  |  |   79|  6.00M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 6.00M]
  |  |  ------------------
  ------------------
  |  Branch (257:13): [True: 10, False: 6.00M]
  ------------------
  258|     12|        {
  259|     12|            return result_type(jsoncons::unexpect, std::errc::value_too_large);
  260|     12|        }
  261|  6.00M|        n *= extents[i];
  262|  6.00M|    }
  263|  20.2k|    return n;
  264|  20.2k|}

_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEC2EONS_12basic_bigintIS3_EEl:
   42|   288k|        : unscaled_{significand}, scale_{scale}
   43|   288k|    {
   44|   288k|    }
_ZN8jsoncons16append_to_bufferINSt3__19allocatorImEEcNS2_IcEEEEvRKNS_12basic_bigdecIT_EERNS1_12basic_stringIT0_NS1_11char_traitsISB_EET1_EE:
  408|   288k|{
  409|   288k|    if (value.scale() == 0)
  ------------------
  |  Branch (409:9): [True: 77.4k, False: 211k]
  ------------------
  410|  77.4k|    {
  411|  77.4k|        append_to_buffer(value.unscaled(), buf);
  412|  77.4k|        return;
  413|  77.4k|    }
  414|   211k|    if (value.unscaled().is_negative())
  ------------------
  |  Branch (414:9): [True: 158k, False: 52.9k]
  ------------------
  415|   158k|    {
  416|   158k|        buf.push_back('-');
  417|   158k|    }
  418|   211k|    std::basic_string<CharT> coeff;
  419|   211k|    append_to_buffer(value.unscaled().is_negative() ? -value.unscaled() : value.unscaled(), coeff);
  ------------------
  |  Branch (419:22): [True: 158k, False: 52.9k]
  ------------------
  420|   211k|    std::size_t coeffLen = coeff.size();
  421|   211k|    if ((value.scale() >= 0) && (value.scale() <= static_cast<int64_t>(coeffLen) + 5)) 
  ------------------
  |  Branch (421:9): [True: 206k, False: 4.78k]
  |  Branch (421:33): [True: 185k, False: 21.4k]
  ------------------
  422|   185k|    { 
  423|   185k|        int64_t pad = value.scale() - coeffLen;         // padding zeros
  424|   185k|        if (pad >= 0) {                                 // 0.xxx form
  ------------------
  |  Branch (424:13): [True: 157k, False: 27.8k]
  ------------------
  425|   157k|            buf.push_back('0');
  426|   157k|            buf.push_back('.');
  427|   710k|            for (; pad>0; pad--) {
  ------------------
  |  Branch (427:20): [True: 553k, False: 157k]
  ------------------
  428|   553k|                buf.push_back('0');
  429|   553k|            }
  430|   157k|            buf.append(coeff.data(), coeffLen);
  431|   157k|        } 
  432|  27.8k|        else 
  433|  27.8k|        {
  434|  27.8k|            buf.append(coeff.data(), -pad);
  435|  27.8k|            buf.push_back('.');
  436|  27.8k|            buf.append(coeff.data() -pad, value.scale());
  437|  27.8k|        }
  438|   185k|    }
  439|  26.2k|    else
  440|  26.2k|    {
  441|  26.2k|        buf.push_back(coeff[0]);   // first character
  442|  26.2k|        if (coeffLen > 1) 
  ------------------
  |  Branch (442:13): [True: 3.04k, False: 23.1k]
  ------------------
  443|  3.04k|        {
  444|  3.04k|            buf.push_back('.');
  445|  3.04k|            buf.append(coeff.data() + 1, coeffLen - 1);
  446|  3.04k|        }
  447|  26.2k|        int64_t digits = static_cast<int64_t>(coeffLen) - 1;
  448|  26.2k|        if (value.scale() != digits) 
  ------------------
  |  Branch (448:13): [True: 26.2k, False: 0]
  ------------------
  449|  26.2k|        {             
  450|  26.2k|            buf.push_back('e');
  451|  26.2k|            if (value.scale() < digits)
  ------------------
  |  Branch (451:17): [True: 4.78k, False: 21.4k]
  ------------------
  452|  4.78k|            {
  453|  4.78k|                from_integer(static_cast<uint64_t>(digits) - static_cast<uint64_t>(value.scale()), buf);
  454|  4.78k|            }
  455|  21.4k|            else
  456|  21.4k|            {
  457|  21.4k|                from_integer(digits - value.scale(), buf);
  458|  21.4k|            }
  459|  26.2k|        }
  460|  26.2k|    }
  461|   211k|}
_ZNK8jsoncons12basic_bigdecINSt3__19allocatorImEEE5scaleEv:
   78|   998k|    {
   79|   998k|        return scale_;
   80|   998k|    }
_ZNK8jsoncons12basic_bigdecINSt3__19allocatorImEEE8unscaledEv:
   73|   711k|    {
   74|   711k|        return unscaled_;
   75|   711k|    }
_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEC2Ev:
   35|   104k|    basic_bigdec() = default;
_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEaSEOS4_:
   70|   104k|    basic_bigdec& operator=(basic_bigdec&&) = default;

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE13from_bytes_beEiPKhm:
  824|   129k|    {
  825|   129k|        static const double radix_log2 = std::log2(next_power_of_two(256));
  826|       |        // Estimate how big the result will be, so we can pre-allocate it.
  827|   129k|        double bits = radix_log2 * n;
  828|   129k|        double big_digits = std::ceil(bits / 64.0);
  829|       |        //std::cout << "ESTIMATED: " << big_digits << "\n";
  830|       |
  831|   129k|        basic_bigint<Allocator> v = 0;
  832|   129k|        v.reserve(static_cast<size_type>(big_digits));
  833|       |
  834|  1.33M|        for (size_type i = 0; i < n; i++)
  ------------------
  |  Branch (834:31): [True: 1.20M, False: 129k]
  ------------------
  835|  1.20M|        {
  836|  1.20M|            v *= 256;
  837|  1.20M|            v += (word_type)(bytes[i]);
  838|  1.20M|        }
  839|       |        //std::cout << "ACTUAL: " << v.size() << "\n";
  840|       |
  841|   129k|        if (signum < 0)
  ------------------
  |  Branch (841:13): [True: 0, False: 129k]
  ------------------
  842|      0|        {
  843|      0|            v.set_negative(true);
  844|      0|        }
  845|       |
  846|   129k|        return v;
  847|   129k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE17next_power_of_twoEm:
 2062|      1|    static word_type next_power_of_two(word_type n) {
 2063|      1|        n = n - 1;
 2064|      1|        n |= n >> 1u;
 2065|      1|        n |= n >> 2u;
 2066|      1|        n |= n >> 4u;
 2067|      1|        n |= n >> 8u;
 2068|      1|        n |= n >> 16u;
 2069|      1|        n |= n >> 32u;
 2070|      1|        return n + 1;
 2071|      1|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE7reserveEm:
  855|   129k|    {
  856|   129k|        storage_.reserve(n);
  857|   129k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  455|  2.90M|    {
  456|  2.90M|       if (capacity() < n)
  ------------------
  |  Branch (456:12): [True: 18.2k, False: 2.88M]
  ------------------
  457|  18.2k|       {
  458|  18.2k|           if (!is_allocated())
  ------------------
  |  Branch (458:16): [True: 17.0k, False: 1.16k]
  ------------------
  459|  17.0k|           {
  460|  17.0k|               size_type size = inlined_.size_;
  461|  17.0k|               size_type is_neg = inlined_.is_negative_;
  462|  17.0k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  463|       |
  464|  17.0k|               ::new (&allocated_) allocated_storage();
  465|  17.0k|               allocated_.reserve(n, get_allocator());
  466|  17.0k|               allocated_.size_ = size;
  467|  17.0k|               allocated_.is_negative_ = is_neg;
  468|  17.0k|               if (n >= 1)
  ------------------
  |  Branch (468:20): [True: 17.0k, False: 0]
  ------------------
  469|  17.0k|               {
  470|  17.0k|                   allocated_.data_[0] = values[0];
  471|  17.0k|               }
  472|  17.0k|               if (n >= 2)
  ------------------
  |  Branch (472:20): [True: 17.0k, False: 0]
  ------------------
  473|  17.0k|               {
  474|  17.0k|                   allocated_.data_[1] = values[1];
  475|  17.0k|               }
  476|  17.0k|           }
  477|  1.16k|           else
  478|  1.16k|           {
  479|  1.16k|               allocated_.reserve(n, get_allocator());
  480|  1.16k|           }
  481|  18.2k|       }
  482|  2.90M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  508|  2.90M|    {
  509|  2.90M|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (509:16): [True: 1.59M, False: 1.31M]
  ------------------
  510|  2.90M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  503|  12.6M|    {
  504|  12.6M|        return common_.is_allocated_;
  505|  12.6M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  206|  17.0k|            : is_allocated_(true),
  207|  17.0k|            is_negative_(false)
  208|  17.0k|        {
  209|  17.0k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  258|  18.2k|        {
  259|  18.2k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   54|  18.2k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 18.2k]
  |  |  ------------------
  |  |   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|  18.2k|            size_type capacity_new = round_up(n);
  261|       |
  262|  18.2k|            real_allocator_type alloc(a);
  263|  18.2k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  264|  18.2k|            if (size_ > 0)
  ------------------
  |  Branch (264:17): [True: 1.16k, False: 17.0k]
  ------------------
  265|  1.16k|            {
  266|  1.16k|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  267|  1.16k|            }
  268|  18.2k|            if (data_ != nullptr)
  ------------------
  |  Branch (268:17): [True: 1.16k, False: 17.0k]
  ------------------
  269|  1.16k|            {
  270|  1.16k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  271|  1.16k|            }
  272|  18.2k|            capacity_ = capacity_new;
  273|  18.2k|            data_ = data_new;
  274|  18.2k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  278|  18.2k|        {
  279|  18.2k|            size_type remainder = i % mem_unit;
  280|  18.2k|            size_type off = mem_unit - remainder;
  281|  18.2k|            bool testoff = i < max_size - off;
  282|  18.2k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   54|  18.2k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 18.2k]
  |  |  ------------------
  |  |   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|  18.2k|            return i + off;
  285|  18.2k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  485|  3.81M|    {
  486|  3.81M|        return static_cast<const word_allocator_type&>(*this);
  487|  3.81M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLIiEENS1_9enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueERS4_E4typeES7_:
 1020|  1.20M|    {
 1021|  1.20M|        *this *= word_type(y < 0 ? -y : y);
  ------------------
  |  Branch (1021:28): [True: 0, False: 1.20M]
  ------------------
 1022|  1.20M|        if ( y < 0 )
  ------------------
  |  Branch (1022:14): [True: 0, False: 1.20M]
  ------------------
 1023|      0|            set_negative(!is_negative());
 1024|  1.20M|        return *this;
 1025|  1.20M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
 1030|  1.20M|    {
 1031|  1.20M|        auto words = get_words();
 1032|  1.20M|        size_type len = words.size();
 1033|  1.20M|        if (len == 0 || m == 0)
  ------------------
  |  Branch (1033:13): [True: 30.1k, False: 1.17M]
  |  Branch (1033:25): [True: 0, False: 1.17M]
  ------------------
 1034|  30.1k|        {
 1035|  30.1k|            resize(0);
 1036|  30.1k|            return *this;
 1037|  30.1k|        }
 1038|       |
 1039|  1.17M|        dword_type carry = 0;
 1040|  1.17M|        size_t i = 0;
 1041|  2.42G|        for (; i < len; ++i) {
  ------------------
  |  Branch (1041:16): [True: 2.42G, False: 1.17M]
  ------------------
 1042|  2.42G|            dword_type x = dword_type(words[i]) * m + carry;
 1043|  2.42G|            words[i] = static_cast<word_type>(x);
 1044|  2.42G|            carry = x >> 64;
 1045|  2.42G|        }
 1046|       |
 1047|  1.17M|        if (carry)
  ------------------
  |  Branch (1047:13): [True: 142k, False: 1.03M]
  ------------------
 1048|   142k|        {
 1049|   142k|            resize(len+1);
 1050|   142k|            words = get_words();
 1051|   142k|            words[i] = static_cast<word_type>(carry);
 1052|   142k|        }
 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|  1.17M|        return *this;
 1075|  1.20M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE9get_wordsEv:
  697|  7.23M|    {
  698|  7.23M|        return storage_.get_words();
  699|  7.23M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE9get_wordsEv:
  523|  10.2M|    {
  524|  10.2M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (524:16): [True: 6.50M, False: 3.78M]
  ------------------
  525|  6.50M|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  526|  10.2M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  527|  10.2M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   67|  10.2M|            : data_(data), size_(size)
   68|  10.2M|        {
   69|  10.2M|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   87|  66.9M|        {
   88|  66.9M|            return size_;
   89|  66.9M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  850|  1.65M|    {
  851|  1.65M|        storage_.resize(new_length);
  852|  1.65M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  537|  2.77M|    {
  538|  2.77M|        size_type old_length = common_.size_;
  539|  2.77M|        reserve(new_length);
  540|  2.77M|        common_.size_ = new_length;
  541|       |
  542|  2.77M|        if (old_length < new_length)
  ------------------
  |  Branch (542:13): [True: 2.10M, False: 670k]
  ------------------
  543|  2.10M|        {
  544|  2.10M|            if (is_allocated())
  ------------------
  |  Branch (544:17): [True: 1.44M, False: 659k]
  ------------------
  545|  1.44M|            {
  546|  1.44M|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  547|  1.44M|            }
  548|   659k|            else
  549|   659k|            {
  550|   659k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   54|   659k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 659k]
  |  |  ------------------
  |  |   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|  1.82M|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (551:48): [True: 1.16M, False: 659k]
  ------------------
  552|  1.16M|                {
  553|  1.16M|                    inlined_.values_[i] = 0;
  554|  1.16M|                }
  555|   659k|            }
  556|  2.10M|        }
  557|  2.77M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   72|  6.08G|        {
   73|  6.08G|            return data_[i];
   74|  6.08G|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  707|  5.43M|    {
  708|  5.43M|        return storage_.is_negative();
  709|  5.43M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  513|  5.43M|    {
  514|  5.43M|        return common_.is_negative_;
  515|  5.43M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr6nonstd19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  921|  1.20M|    {
  922|  1.20M|        if ( is_negative())
  ------------------
  |  Branch (922:14): [True: 0, False: 1.20M]
  ------------------
  923|      0|            return *this -= -basic_bigint<Allocator>(y);
  924|       |
  925|  1.20M|        word_type d;
  926|  1.20M|        word_type carry = 0;
  927|       |
  928|  1.20M|        auto words = get_words();
  929|  1.20M|        resize(words.size() + 1);
  930|       |
  931|  1.20M|        words = get_words();
  932|  1.20M|        const size_type this_size = words.size();
  933|  1.20M|        size_type y_size = 1;
  934|       |
  935|  1.20M|        d = words[0] + carry;
  936|  1.20M|        carry = d < carry;
  937|  1.20M|        words[0] = d + y;
  938|  1.20M|        if (words[0] < d)
  ------------------
  |  Branch (938:13): [True: 0, False: 1.20M]
  ------------------
  939|      0|            carry = 1;
  940|       |
  941|  1.20M|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (941:36): [True: 1.17M, False: 30.1k]
  |  Branch (941:53): [True: 0, False: 1.17M]
  ------------------
  942|      0|        {
  943|      0|            d = words[i] + carry;
  944|      0|            carry = d < carry;
  945|      0|            words[i] = d;
  946|      0|        }
  947|  1.20M|        reduce();
  948|  1.20M|        return *this;
  949|  1.20M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  672|   528k|        : storage_(n, alloc)
  673|   528k|    {
  674|   528k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  363|   528k|        : word_allocator_type(alloc)
  364|   528k|    {
  365|   528k|        ::new (&inlined_) inlined_storage(n);
  366|   528k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  141|   528k|            : is_allocated_(false),
  142|   528k|            is_negative_(false),
  143|   528k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (143:19): [True: 242k, False: 286k]
  ------------------
  144|   528k|        {
  145|   528k|            values_[0] = n;
  146|   528k|            values_[1] = 0;
  147|   528k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  867|   339k|    {
  868|   339k|        basic_bigint<Allocator> v(*this);
  869|   339k|        v.set_negative(!v.is_negative());
  870|   339k|        return v;
  871|   339k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  650|  1.83M|        : storage_(other.storage_)
  651|  1.83M|    {
  652|  1.83M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  302|  1.83M|        : word_allocator_type(other.get_allocator())
  303|  1.83M|    {
  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|  1.83M|        if (!other.is_allocated())
  ------------------
  |  Branch (308:13): [True: 1.81M, False: 16.3k]
  ------------------
  309|  1.81M|        {
  310|  1.81M|            ::new (&inlined_) inlined_storage(other.inlined_);
  311|  1.81M|        }
  312|  16.3k|        else
  313|  16.3k|        {
  314|  16.3k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  315|  16.3k|        }
  316|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  317|       |# pragma GCC diagnostic pop
  318|       |#endif
  319|  1.83M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  181|  2.68M|            : is_allocated_(false),
  182|  2.68M|            is_negative_(stor.is_negative_),
  183|  2.68M|            size_(stor.size_)
  184|  2.68M|        {
  185|  2.68M|            values_[0] = stor.values_[0];
  186|  2.68M|            values_[1] = stor.values_[1];
  187|  2.68M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  212|   309k|            : is_allocated_(true),
  213|   309k|              is_negative_(stor.is_negative_),
  214|   309k|              size_(stor.size_),
  215|   309k|              capacity_(stor.capacity_)
  216|   309k|        {
  217|   309k|            real_allocator_type alloc(a);
  218|       |
  219|   309k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  220|   309k|            JSONCONS_TRY
  ------------------
  |  |   37|   309k|    #define JSONCONS_TRY try
  ------------------
  221|   309k|            {
  222|   309k|                std::allocator_traits<real_allocator_type>::construct(alloc, nonstd::to_plain_pointer(data_));
  223|   309k|            }
  224|   309k|            JSONCONS_CATCH(...)
  225|   309k|            {
  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|   309k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   54|   309k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 309k]
  |  |  ------------------
  |  |   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|   309k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  232|   309k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  986|   122k|    {
  987|   122k|        auto y_words = y.get_words();
  988|       |
  989|   122k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (989:14): [True: 122k, False: 0]
  ------------------
  990|   122k|            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|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9get_wordsEv:
  702|  1.66M|    {
  703|  1.66M|        return storage_.get_words();
  704|  1.66M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE9get_wordsEv:
  530|  2.78M|    {
  531|  2.78M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (531:16): [True: 462k, False: 2.32M]
  ------------------
  532|   462k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  533|  2.78M|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  534|  2.78M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   67|  2.78M|            : data_(data), size_(size)
   68|  2.78M|        {
   69|  2.78M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  952|   122k|    {
  953|   122k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (953:14): [True: 0, False: 122k]
  ------------------
  954|      0|            return *this -= -y;
  955|       |
  956|   122k|        auto y_words = y.get_words();
  957|       |        
  958|   122k|        word_type d;
  959|   122k|        word_type carry = 0;
  960|       |
  961|   122k|        auto words = get_words();
  962|   122k|        resize( (std::max)(y_words.size(), words.size()) + 1 );
  963|   122k|        words = get_words();
  964|       |
  965|   122k|        const size_t this_size = words.size();
  966|   122k|        const size_t y_size = y_words.size();
  967|   201k|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (967:31): [True: 79.7k, False: 122k]
  ------------------
  968|  79.7k|        {
  969|  79.7k|            d = words[i] + carry;
  970|  79.7k|            carry = d < carry;
  971|  79.7k|            words[i] = d + y_words[i];
  972|  79.7k|            if (words[i] < d)
  ------------------
  |  Branch (972:17): [True: 17.8k, False: 61.8k]
  ------------------
  973|  17.8k|                carry = 1;
  974|  79.7k|        }
  975|   123k|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (975:36): [True: 122k, False: 1.40k]
  |  Branch (975:53): [True: 1.40k, False: 120k]
  ------------------
  976|  1.40k|        {
  977|  1.40k|            d = words[i] + carry;
  978|  1.40k|            carry = d < carry;
  979|  1.40k|            words[i] = d;
  980|  1.40k|        }
  981|   122k|        reduce();
  982|   122k|        return *this;
  983|   122k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1702|   411k|    {
 1703|   411k|        auto words = get_words();
 1704|   411k|        auto y_words = y.get_words();
 1705|       |
 1706|   411k|        const size_type y_size = y_words.size();
 1707|   411k|        if ( words.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1707:14): [True: 0, False: 411k]
  |  Branch (1707:35): [True: 0, False: 0]
  ------------------
 1708|      0|            return 0;
 1709|   411k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1709:14): [True: 29.3k, False: 382k]
  ------------------
 1710|  29.3k|            return y.is_negative() - is_negative();
 1711|   382k|        int code = 0;
 1712|   382k|        if ( words.size() < y_size)
  ------------------
  |  Branch (1712:14): [True: 0, False: 382k]
  ------------------
 1713|      0|            code = -1;
 1714|   382k|        else if ( words.size() > y_size)
  ------------------
  |  Branch (1714:19): [True: 147k, False: 235k]
  ------------------
 1715|   147k|            code = +1;
 1716|   235k|        else
 1717|   235k|        {
 1718|   235k|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1718:46): [True: 235k, False: 0]
  ------------------
 1719|   235k|            {
 1720|   235k|                if (words[i] > y_words[i])
  ------------------
  |  Branch (1720:21): [True: 2.58k, False: 232k]
  ------------------
 1721|  2.58k|                {
 1722|  2.58k|                    code = 1;
 1723|  2.58k|                    break;
 1724|  2.58k|                }
 1725|   232k|                else if (words[i] < y_words[i])
  ------------------
  |  Branch (1725:26): [True: 232k, False: 0]
  ------------------
 1726|   232k|                {
 1727|   232k|                    code = -1;
 1728|   232k|                    break;
 1729|   232k|                }
 1730|   235k|            }
 1731|   235k|        }
 1732|   382k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1732:16): [True: 0, False: 382k]
  ------------------
 1733|   411k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1537|   411k|    {
 1538|   411k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1538:15): [True: 261k, False: 149k]
  ------------------
 1539|   411k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   87|  5.46M|        {
   88|  5.46M|            return size_;
   89|  5.46M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   72|  1.04M|        {
   73|  1.04M|            return data_[i];
   74|  1.04M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 2058|  1.93M|    {
 2059|  1.93M|        storage_.reduce();
 2060|  1.93M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  432|  1.93M|    {
  433|  1.93M|        if (common_.size_ > 0)
  ------------------
  |  Branch (433:13): [True: 1.93M, False: 0]
  ------------------
  434|  1.93M|        {
  435|  1.93M|            auto words = get_words();
  436|  1.93M|            word_type* p = words.end() - 1;
  437|  1.93M|            word_type* first = words.begin();
  438|   310M|            while ( p >= first )
  ------------------
  |  Branch (438:21): [True: 310M, False: 16.2k]
  ------------------
  439|   310M|            {
  440|   310M|                if ( *p )
  ------------------
  |  Branch (440:22): [True: 1.91M, False: 308M]
  ------------------
  441|  1.91M|                {
  442|  1.91M|                    break;
  443|  1.91M|                }
  444|   308M|                --common_.size_;
  445|   308M|                --p;
  446|   308M|            }
  447|  1.93M|        }
  448|  1.93M|        if (common_.size_ == 0)
  ------------------
  |  Branch (448:13): [True: 16.2k, False: 1.91M]
  ------------------
  449|  16.2k|        {
  450|  16.2k|            common_.is_negative_ = false;
  451|  16.2k|        }
  452|  1.93M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   96|  1.93M|        {
   97|  1.93M|            return data_ + size_;
   98|  1.93M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   91|  1.93M|        {
   92|  1.93M|            return data_;
   93|  1.93M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  728|  2.03M|    {
  729|  2.03M|        storage_.set_negative(value);
  730|  2.03M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  518|  2.03M|    {
  519|  2.03M|        common_.is_negative_ = value;
  520|  2.03M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16append_to_bufferIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1414|  23.2k|    {
 1415|  23.2k|        if (is_zero())
  ------------------
  |  Branch (1415:13): [True: 367, False: 22.8k]
  ------------------
 1416|    367|        {
 1417|    367|            buf.push_back('0');
 1418|    367|            return;
 1419|    367|        }
 1420|  22.8k|        if (is_negative())
  ------------------
  |  Branch (1420:13): [True: 16.1k, False: 6.69k]
  ------------------
 1421|  16.1k|        {
 1422|  16.1k|            buf.push_back('-');
 1423|  16.1k|        }
 1424|  22.8k|        std::size_t pos = buf.size();
 1425|  22.8k|        basic_bigint<Allocator> v(*this);
 1426|  22.8k|        auto v_words = v.get_words();
 1427|       |
 1428|  22.8k|        size_type len = (v_words.size() * word_bits / 3) + 2;
 1429|  22.8k|        buf.reserve(len);
 1430|       |
 1431|  22.8k|        if ( v_words.size() == 0 )
  ------------------
  |  Branch (1431:14): [True: 0, False: 22.8k]
  ------------------
 1432|      0|        {
 1433|      0|            buf.push_back('0');
 1434|      0|        }
 1435|  22.8k|        else
 1436|  22.8k|        {
 1437|  22.8k|            word_type r;
 1438|  22.8k|            basic_bigint<Allocator> R(get_allocator());
 1439|  22.8k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1440|       |
 1441|  22.8k|            do
 1442|  84.7k|            {
 1443|  84.7k|                v.divide( LP10, v, R, true );
 1444|  84.7k|                v_words = v.get_words();
 1445|       |
 1446|  84.7k|                auto R_words = R.get_words();
 1447|  84.7k|                r = (R_words.size() ? R_words[0] : 0);
  ------------------
  |  Branch (1447:22): [True: 84.4k, False: 317]
  ------------------
 1448|  1.28M|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1448:38): [True: 1.22M, False: 61.9k]
  ------------------
 1449|  1.22M|                {
 1450|  1.22M|                    buf.push_back(char(r % 10u + '0'));
 1451|  1.22M|                    r /= 10u;
 1452|  1.22M|                    if ( r + v_words.size() == 0 )
  ------------------
  |  Branch (1452:26): [True: 22.8k, False: 1.19M]
  ------------------
 1453|  22.8k|                        break;
 1454|  1.22M|                }
 1455|  84.7k|            } 
 1456|  84.7k|            while ( v_words.size() > 0);
  ------------------
  |  Branch (1456:21): [True: 61.9k, False: 22.8k]
  ------------------
 1457|       |
 1458|  22.8k|            std::reverse(buf.begin()+pos,buf.end());
 1459|  22.8k|        }
 1460|  22.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7is_zeroEv:
 2179|   416k|    bool is_zero() const {
 2180|   416k|        return get_words().size() == 0;
 2181|   416k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  692|  1.52M|    {
  693|  1.52M|        return storage_.get_allocator();
  694|  1.52M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  623|   232k|        : storage_(alloc)
  624|   232k|    {
  625|   232k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  296|   626k|        : word_allocator_type(alloc)
  297|   626k|    {
  298|   626k|        ::new (&inlined_) inlined_storage();
  299|   626k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  116|   626k|            : is_allocated_(false),
  117|   626k|            is_negative_(false),
  118|   626k|            size_(0),
  119|   626k|            values_{0, 0}
  120|   626k|        {
  121|   626k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1815|   381k|    {
 1816|   381k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1817|   381k|        auto denom_words = denom.get_words();
 1818|       |
 1819|   381k|        if (denom_words.size() == 0)
  ------------------
  |  Branch (1819:13): [True: 0, False: 381k]
  ------------------
 1820|      0|        {
 1821|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1822|      0|        }
 1823|   381k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1824|   381k|        bool rem_neg = is_negative();
 1825|   381k|        basic_bigint<Allocator> num(*this, get_allocator());
 1826|   381k|        num.set_negative(false);
 1827|   381k|        denom.set_negative(false);
 1828|   381k|        if ( num < denom )
  ------------------
  |  Branch (1828:14): [True: 232k, False: 149k]
  ------------------
 1829|   232k|        {
 1830|   232k|            quot = word_type(0);
 1831|   232k|            quot.set_negative(quot_neg);
 1832|   232k|            rem = num;
 1833|   232k|            rem.set_negative(rem_neg);
 1834|   232k|            return;
 1835|   232k|        }
 1836|       |
 1837|   149k|        auto num_words = num.get_words();
 1838|   149k|        auto quot_words = quot.get_words();
 1839|   149k|        auto words = get_words();
 1840|       |
 1841|   149k|        if ( denom_words.size() == 1 && num_words.size() == 1 )
  ------------------
  |  Branch (1841:14): [True: 149k, False: 0]
  |  Branch (1841:41): [True: 2.58k, False: 146k]
  ------------------
 1842|  2.58k|        {
 1843|  2.58k|            quot = word_type( num_words[0]/denom_words[0] );
 1844|  2.58k|            rem = word_type( num_words[0]%denom_words[0] );
 1845|  2.58k|            quot.set_negative(quot_neg);
 1846|  2.58k|            rem.set_negative(rem_neg);
 1847|  2.58k|            return;
 1848|  2.58k|        }
 1849|   146k|        if (denom_words.size() == 1 && (denom_words[0] & l_mask) == 0 )
  ------------------
  |  Branch (1849:13): [True: 146k, False: 0]
  |  Branch (1849:40): [True: 0, False: 146k]
  ------------------
 1850|      0|        {
 1851|       |            // Denominator fits into a half word
 1852|      0|            word_type divisor = denom_words[0], dHi = 0, q1, r, q2, dividend;
 1853|      0|            quot.resize(words.size());
 1854|      0|            quot_words = quot.get_words();
 1855|      0|            for (size_type i=words.size(); i-- > 0; )
  ------------------
  |  Branch (1855:44): [True: 0, False: 0]
  ------------------
 1856|      0|            {
 1857|      0|                dividend = (dHi << word_half_bits) | (words[i] >> word_half_bits);
 1858|      0|                q1 = dividend/divisor;
 1859|      0|                r = dividend % divisor;
 1860|      0|                dividend = (r << word_half_bits) | (words[i] & r_mask);
 1861|      0|                q2 = dividend/divisor;
 1862|      0|                dHi = dividend % divisor;
 1863|      0|                quot_words[i] = (q1 << word_half_bits) | q2;
 1864|      0|            }
 1865|      0|            quot.reduce();
 1866|      0|            rem = dHi;
 1867|      0|            quot.set_negative(quot_neg);
 1868|      0|            rem.set_negative(rem_neg);
 1869|      0|            return;
 1870|      0|        }
 1871|   146k|        basic_bigint<Allocator> num0(num, get_allocator());
 1872|   146k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1873|   146k|        int x = 0;
 1874|   146k|        bool second_done = normalize(denom, num, x);
 1875|   146k|        denom_words = denom.get_words();
 1876|   146k|        num_words = num.get_words();
 1877|       |
 1878|   146k|        size_type l = denom_words.size() - 1;
 1879|   146k|        size_type n = num_words.size() - 1;
 1880|   146k|        quot.resize(n - l);
 1881|   146k|        quot_words = quot.get_words();
 1882|   307M|        for (size_type i = quot_words.size(); i-- > 0; )
  ------------------
  |  Branch (1882:47): [True: 307M, False: 146k]
  ------------------
 1883|   307M|        {
 1884|   307M|            quot_words[i] = 0;
 1885|   307M|        }
 1886|   146k|        rem = num;
 1887|   146k|        auto rem_words = rem.get_words();
 1888|   146k|        if ( rem_words[n] >= denom_words[l] )
  ------------------
  |  Branch (1888:14): [True: 2.61k, False: 144k]
  ------------------
 1889|  2.61k|        {
 1890|  2.61k|            rem.resize(rem_words.size() + 1);
 1891|  2.61k|            rem_words = rem.get_words();
 1892|  2.61k|            n++;
 1893|  2.61k|            quot.resize(quot_words.size() + 1);
 1894|  2.61k|            quot_words = quot.get_words();
 1895|  2.61k|        }
 1896|   146k|        word_type d = denom_words[l];
 1897|       |
 1898|   307M|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1898:32): [True: 307M, False: 146k]
  ------------------
 1899|   307M|        {
 1900|   307M|            word_type q = DDquotient(rem_words[k], rem_words[k-1], d);
 1901|   307M|            subtractmul( rem_words.data() + (k - l - 1), denom_words.data(), l + 1, q );
 1902|   307M|            quot_words[k - l - 1] = q;
 1903|   307M|        }
 1904|   146k|        quot.reduce();
 1905|   146k|        quot.set_negative(quot_neg);
 1906|   146k|        if (remDesired)
  ------------------
  |  Branch (1906:13): [True: 146k, False: 0]
  ------------------
 1907|   146k|        {
 1908|   146k|            unnormalize(rem, x, second_done);
 1909|   146k|            rem.set_negative(rem_neg);
 1910|   146k|        }
 1911|   146k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  655|  1.05M|        : storage_(other.storage_, alloc)
  656|  1.05M|    {
  657|  1.05M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  322|  1.05M|        : word_allocator_type(alloc)
  323|  1.05M|    {
  324|  1.05M|        if (!other.is_allocated())
  ------------------
  |  Branch (324:13): [True: 763k, False: 293k]
  ------------------
  325|   763k|        {
  326|   763k|            ::new (&inlined_) inlined_storage(other.inlined_);
  327|   763k|        }
  328|   293k|        else
  329|   293k|        {
  330|   293k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  331|   293k|        }
  332|  1.05M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 2013|   146k|    {
 2014|   146k|        auto denom_words = denom.get_words();
 2015|   146k|        if (denom_words.size() == 0)
  ------------------
  |  Branch (2015:13): [True: 0, False: 146k]
  ------------------
 2016|      0|        {
 2017|      0|            return false;
 2018|      0|        }
 2019|   146k|        size_type r = denom_words.size() - 1;
 2020|   146k|        word_type y = denom_words[r];
 2021|       |
 2022|   146k|        x = 0;
 2023|   146k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (2023:17): [True: 0, False: 146k]
  ------------------
 2024|      0|        {
 2025|      0|            y <<= 1;
 2026|      0|            x++;
 2027|      0|        }
 2028|   146k|        denom <<= x;
 2029|   146k|        num <<= x;
 2030|       |
 2031|   146k|        denom_words = denom.get_words();
 2032|   146k|        if ( r > 0 && denom_words[r] < denom_words[r-1] )
  ------------------
  |  Branch (2032:14): [True: 0, False: 146k]
  |  Branch (2032:23): [True: 0, False: 0]
  ------------------
 2033|      0|        {
 2034|      0|            denom *= max_word;
 2035|      0|            num *= max_word;
 2036|      0|            return true;
 2037|      0|        }
 2038|   146k|        return false;
 2039|   146k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1172|   295k|    {
 1173|   295k|        auto words = get_words();
 1174|   295k|        size_type q = k / word_bits;
 1175|   295k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1175:14): [True: 0, False: 295k]
  ------------------
 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|   295k|        if ( k )  // 0 < k < word_bits:
  ------------------
  |  Branch (1183:14): [True: 1.75k, False: 293k]
  ------------------
 1184|  1.75k|        {
 1185|  1.75k|            size_type k1 = word_bits - k;
 1186|  1.75k|            word_type mask = (word_type(1) << k) - word_type(1);
 1187|  1.75k|            resize( words.size() + 1 );
 1188|  1.75k|            words = get_words();
 1189|  27.1k|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1189:46): [True: 25.3k, False: 1.75k]
  ------------------
 1190|  25.3k|            {
 1191|  25.3k|                words[i] <<= k;
 1192|  25.3k|                if ( i > 0 )
  ------------------
  |  Branch (1192:22): [True: 23.6k, False: 1.75k]
  ------------------
 1193|  23.6k|                    words[i] |= (words[i-1] >> k1) & mask;
 1194|  25.3k|            }
 1195|  1.75k|        }
 1196|   295k|        reduce();
 1197|   295k|        return *this;
 1198|   295k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1940|   307M|    {
 1941|   307M|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1942|   307M|                   dHi = d >> word_half_bits, dLo = d & r_mask;
 1943|   307M|        qHi = A/(dHi + 1);
 1944|       |        // This initial guess of qHi may be too small.
 1945|   307M|        middle = qHi * dLo;
 1946|   307M|        left = qHi * dHi;
 1947|   307M|        x = B - (middle << word_half_bits);
 1948|   307M|        A -= (middle >> word_half_bits) + left + (x > B);
 1949|   307M|        B = x;
 1950|   307M|        dLo1 = dLo << word_half_bits;
 1951|       |        // Increase qHi if necessary:
 1952|   437M|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1952:17): [True: 130M, False: 307M]
  |  Branch (1952:29): [True: 138, False: 307M]
  |  Branch (1952:41): [True: 99, False: 39]
  ------------------
 1953|   130M|        {
 1954|   130M|            x = B - dLo1;
 1955|   130M|            A -= dHi + (x > B);
 1956|   130M|            B = x;
 1957|   130M|            qHi++;
 1958|   130M|        }
 1959|   307M|        qLo = ((A << word_half_bits) | (B >> word_half_bits))/(dHi + 1);
 1960|       |        // This initial guess of qLo may be too small.
 1961|   307M|        right = qLo * dLo;
 1962|   307M|        middle = qLo * dHi;
 1963|   307M|        x = B - right;
 1964|   307M|        A -= (x > B);
 1965|   307M|        B = x;
 1966|   307M|        x = B - (middle << word_half_bits);
 1967|   307M|            A -= (middle >> word_half_bits) + (x > B);
 1968|   307M|        B = x;
 1969|       |        // Increase qLo if necessary:
 1970|   437M|        while ( A || B >= d )
  ------------------
  |  Branch (1970:17): [True: 7.17k, False: 437M]
  |  Branch (1970:22): [True: 130M, False: 307M]
  ------------------
 1971|   130M|        {
 1972|   130M|            x = B - d;
 1973|   130M|            A -= (x > B);
 1974|   130M|            B = x;
 1975|   130M|            qLo++;
 1976|   130M|        }
 1977|   307M|        return (qHi << word_half_bits) + qLo;
 1978|   307M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1982|   307M|    {
 1983|   307M|        word_type hi, lo, d, carry = 0;
 1984|   307M|        size_type i;
 1985|   614M|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1985:22): [True: 307M, False: 307M]
  ------------------
 1986|   307M|        {
 1987|   307M|            DDproduct( b[i], q, hi, lo );
 1988|   307M|            d = a[i];
 1989|   307M|            a[i] -= lo;
 1990|   307M|            if ( a[i] > d )
  ------------------
  |  Branch (1990:18): [True: 83.3M, False: 223M]
  ------------------
 1991|  83.3M|                carry++;
 1992|   307M|            d = a[i + 1];
 1993|   307M|            a[i + 1] -= hi + carry;
 1994|   307M|            carry = a[i + 1] > d;
 1995|   307M|        }
 1996|   307M|        if ( carry ) // q was too large
  ------------------
  |  Branch (1996:14): [True: 0, False: 307M]
  ------------------
 1997|      0|        {
 1998|      0|            q--;
 1999|      0|            carry = 0;
 2000|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (2000:26): [True: 0, False: 0]
  ------------------
 2001|      0|            {
 2002|      0|                d = a[i] + carry;
 2003|      0|                carry = d < carry;
 2004|      0|                a[i] = d + b[i];
 2005|      0|                if ( a[i] < d )
  ------------------
  |  Branch (2005:22): [True: 0, False: 0]
  ------------------
 2006|      0|                    carry = 1;
 2007|      0|            }
 2008|      0|            a[n] = 0;
 2009|      0|        }
 2010|   307M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1922|   307M|    {
 1923|   307M|        word_type hiA = A >> word_half_bits, loA = A & r_mask,
 1924|   307M|                   hiB = B >> word_half_bits, loB = B & r_mask;
 1925|       |
 1926|   307M|        lo = loA * loB;
 1927|   307M|        hi = hiA * hiB;
 1928|   307M|        word_type mid1 = loA * hiB;
 1929|   307M|        word_type mid2 = hiA * loB;
 1930|   307M|        word_type old = lo;
 1931|   307M|        lo += mid1 << word_half_bits;
 1932|   307M|            hi += (lo < old) + (mid1 >> word_half_bits);
 1933|   307M|        old = lo;
 1934|   307M|        lo += mid2 << word_half_bits;
 1935|   307M|            hi += (lo < old) + (mid2 >> word_half_bits);
 1936|   307M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   82|   615M|        {
   83|   615M|            return data_;
   84|   615M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 2042|   146k|    {
 2043|   146k|        if (secondDone)
  ------------------
  |  Branch (2043:13): [True: 0, False: 146k]
  ------------------
 2044|      0|        {
 2045|      0|            rem /= max_word;
 2046|      0|        }
 2047|   146k|        if ( x > 0 )
  ------------------
  |  Branch (2047:14): [True: 0, False: 146k]
  ------------------
 2048|      0|        {
 2049|      0|            rem >>= x;
 2050|      0|        }
 2051|   146k|        else
 2052|   146k|        {
 2053|   146k|            rem.reduce();
 2054|   146k|        }
 2055|   146k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  620|   393k|    basic_bigint() = default;
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEErSEm:
 1201|  17.5k|    {
 1202|  17.5k|        auto words = get_words();
 1203|  17.5k|        size_type q = k / word_bits;
 1204|  17.5k|        if ( q >= words.size())
  ------------------
  |  Branch (1204:14): [True: 0, False: 17.5k]
  ------------------
 1205|      0|        {
 1206|      0|            resize( 0 );
 1207|      0|            return *this;
 1208|      0|        }
 1209|  17.5k|        if (q > 0)
  ------------------
  |  Branch (1209:13): [True: 16, False: 17.5k]
  ------------------
 1210|     16|        {
 1211|     16|            memmove( words.data(), words.data()+q, size_type((words.size() - q)*sizeof(word_type)) );
 1212|     16|            resize( size_type(words.size() - q) );
 1213|     16|            k %= word_bits;
 1214|     16|            if ( k == 0 )
  ------------------
  |  Branch (1214:18): [True: 0, False: 16]
  ------------------
 1215|      0|            {
 1216|      0|                reduce();
 1217|      0|                return *this;
 1218|      0|            }
 1219|     16|        }
 1220|       |
 1221|  17.5k|        words = get_words();
 1222|  17.5k|        size_type n = size_type(words.size() - 1);
 1223|  17.5k|        ssize_type k1 = word_bits - k;
 1224|  17.5k|        word_type mask = (word_type(1) << k) - 1;
 1225|  50.3k|        for (size_type i = 0; i <= n; i++)
  ------------------
  |  Branch (1225:31): [True: 32.8k, False: 17.5k]
  ------------------
 1226|  32.8k|        {
 1227|  32.8k|            words[i] >>= k;
 1228|  32.8k|            if ( i < n )
  ------------------
  |  Branch (1228:18): [True: 15.2k, False: 17.5k]
  ------------------
 1229|  15.2k|                words[i] |= ((words[i+1] & mask) << k1);
 1230|  32.8k|        }
 1231|  17.5k|        reduce();
 1232|  17.5k|        return *this;
 1233|  17.5k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  687|  4.61M|    {
  688|  4.61M|        storage_.destroy();
  689|  4.61M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  490|  4.61M|    {
  491|  4.61M|        if (is_allocated())
  ------------------
  |  Branch (491:13): [True: 326k, False: 4.29M]
  ------------------
  492|   326k|        {
  493|   326k|            allocated_.destroy(get_allocator());
  494|   326k|            allocated_.~allocated_storage();
  495|   326k|        }
  496|  4.29M|        else
  497|  4.29M|        {
  498|  4.29M|            inlined_.~inlined_storage();
  499|  4.29M|        }
  500|  4.61M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  249|   326k|        {
  250|   326k|            if (data_ != nullptr)
  ------------------
  |  Branch (250:17): [True: 326k, False: 0]
  ------------------
  251|   326k|            {
  252|   326k|                real_allocator_type alloc(a);
  253|   326k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  254|   326k|            }
  255|   326k|        }
_ZN8jsonconsmiENS_12basic_bigintINSt3__19allocatorImEEEERKS4_:
 1587|   122k|    {
 1588|   122k|        return x -= y;
 1589|   122k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IiEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  672|   414k|        : storage_(n, alloc)
  673|   414k|    {
  674|   414k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  363|   414k|        : word_allocator_type(alloc)
  364|   414k|    {
  365|   414k|        ::new (&inlined_) inlined_storage(n);
  366|   414k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  128|   414k|            : is_allocated_(false),
  129|   414k|            is_negative_(n < 0),
  130|   414k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (130:19): [True: 232k, False: 181k]
  ------------------
  131|   414k|        {
  132|   414k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (132:26): [True: 122k, False: 292k]
  ------------------
  133|   414k|            values_[1] = 0;
  134|   414k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  874|  1.12M|    {
  875|  1.12M|        storage_ = y.storage_;
  876|  1.12M|        return *this;
  877|  1.12M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  369|  1.12M|    {
  370|  1.12M|        if (this != &other)
  ------------------
  |  Branch (370:13): [True: 1.12M, False: 0]
  ------------------
  371|  1.12M|        {
  372|  1.12M|            auto other_words = other.get_words();
  373|  1.12M|            resize(other_words.size());
  374|  1.12M|            auto words = get_words();
  375|  1.12M|            if (other_words.size() > 0)
  ------------------
  |  Branch (375:17): [True: 703k, False: 418k]
  ------------------
  376|   703k|            {
  377|   703k|                common_.is_negative_ = other.common_.is_negative_;
  378|   703k|                std::memcpy(words.data(), other_words.data(), size_type(other_words.size()*sizeof(word_type)));
  379|   703k|            }
  380|  1.12M|        }
  381|  1.12M|        return *this;
  382|  1.12M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   82|   703k|        {
   83|   703k|            return data_;
   84|   703k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  672|  55.1k|        : storage_(n, alloc)
  673|  55.1k|    {
  674|  55.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  363|  55.1k|        : word_allocator_type(alloc)
  364|  55.1k|    {
  365|  55.1k|        ::new (&inlined_) inlined_storage(n);
  366|  55.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  128|  55.1k|            : is_allocated_(false),
  129|  55.1k|            is_negative_(n < 0),
  130|  55.1k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (130:19): [True: 0, False: 55.1k]
  ------------------
  131|  55.1k|        {
  132|  55.1k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (132:26): [True: 55.1k, False: 0]
  ------------------
  133|  55.1k|            values_[1] = 0;
  134|  55.1k|        }
_ZN8jsoncons16append_to_bufferIcNSt3__19allocatorIcEEEEvRKNS_12basic_bigintINS2_ImEEEERNS1_12basic_stringIT_NS1_11char_traitsISA_EET0_EE:
 2137|   288k|    {
 2138|   288k|        if (value.is_zero())
  ------------------
  |  Branch (2138:13): [True: 79.0k, False: 209k]
  ------------------
 2139|  79.0k|        {
 2140|  79.0k|            buf.push_back('0');
 2141|  79.0k|            return;
 2142|  79.0k|        }
 2143|   209k|        if (value.is_negative())
  ------------------
  |  Branch (2143:13): [True: 2.61k, False: 207k]
  ------------------
 2144|  2.61k|        {
 2145|  2.61k|            buf.push_back('-');
 2146|  2.61k|        }
 2147|       |
 2148|   209k|        size_type start = buf.size();
 2149|   209k|        basic_bigint v(value);
 2150|   209k|        auto v_words = v.get_words();
 2151|       |
 2152|   209k|        size_type len = (v_words.size() * word_bits / 3) + 2;
 2153|   209k|        buf.reserve(start+len);
 2154|       |
 2155|   209k|        word_type r;
 2156|   209k|        basic_bigint R(value.get_allocator());
 2157|   209k|        basic_bigint LP10(max_unsigned_power_10, value.get_allocator());
 2158|       |
 2159|   209k|        do
 2160|   296k|        {
 2161|   296k|            v.divide(LP10, v, R, true);
 2162|   296k|            v_words = v.get_words();
 2163|       |
 2164|   296k|            auto R_words = R.get_words();
 2165|   296k|            r = (R_words.size() ? R_words[0] : 0);
  ------------------
  |  Branch (2165:18): [True: 296k, False: 334]
  ------------------
 2166|  2.20M|            for (size_type j = 0; j < imax_unsigned_power_10; j++)
  ------------------
  |  Branch (2166:35): [True: 2.11M, False: 87.2k]
  ------------------
 2167|  2.11M|            {
 2168|  2.11M|                buf.push_back(CharT(r % 10u + '0'));
 2169|  2.11M|                r /= 10u;
 2170|  2.11M|                if (r + v_words.size() == 0)
  ------------------
  |  Branch (2170:21): [True: 209k, False: 1.90M]
  ------------------
 2171|   209k|                    break;
 2172|  2.11M|            }
 2173|   296k|        } while (v_words.size() > 0);
  ------------------
  |  Branch (2173:18): [True: 87.2k, False: 209k]
  ------------------
 2174|       |
 2175|   209k|        std::reverse(buf.begin()+start, buf.end());
 2176|       |        
 2177|   209k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE18trailing_zero_bitsEv:
 1736|  30.0k|    {
 1737|       |        // Assumes words contains the absolute magnitude,
 1738|       |        // even when BigInt is negative.
 1739|       |
 1740|  30.0k|        auto words = get_words();
 1741|  30.1k|        for (size_t i = 0; i < words.size(); ++i) {
  ------------------
  |  Branch (1741:28): [True: 30.1k, False: 0]
  ------------------
 1742|  30.1k|            const uint64_t w = words[i];
 1743|       |
 1744|  30.1k|            if (w != 0) {
  ------------------
  |  Branch (1744:17): [True: 30.0k, False: 125]
  ------------------
 1745|  30.0k|                return static_cast<u128>(i) * 64
 1746|  30.0k|                     + jsoncons::countr_zero(w);
 1747|  30.0k|            }
 1748|  30.1k|        }
 1749|       |
 1750|       |        // Zero has no finite number of trailing zero bits.
 1751|      0|        return (jsoncons::nonstd::integer_limits<u128>::max)();
 1752|  30.0k|    }
_ZN8jsoncons4powbINSt3__19allocatorImEEEENS_12basic_bigintIT_EES6_m:
 2261|  29.7k|{
 2262|  29.7k|    basic_bigint<Allocator> result{1};
 2263|       |
 2264|   134k|    while ( n )
  ------------------
  |  Branch (2264:13): [True: 104k, False: 29.7k]
  ------------------
 2265|   104k|    {
 2266|   104k|        if ( n & 1 )
  ------------------
  |  Branch (2266:14): [True: 62.6k, False: 41.8k]
  ------------------
 2267|  62.6k|        {
 2268|  62.6k|            result *= base;
 2269|  62.6k|        }
 2270|   104k|        n >>= 1;
 2271|       |
 2272|   104k|        if (n)
  ------------------
  |  Branch (2272:13): [True: 74.6k, False: 29.7k]
  ------------------
 2273|  74.6k|        {
 2274|  74.6k|            base *= base;
 2275|  74.6k|        }
 2276|   104k|    }
 2277|       |
 2278|  29.7k|    return result;
 2279|  29.7k|}
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLES4_:
 1078|   167k|    {
 1079|   167k|        auto words = get_words();
 1080|   167k|        auto y_words = y.get_words();
 1081|       |
 1082|   167k|        if (words.size() == 0 || y_words.size() == 0)
  ------------------
  |  Branch (1082:13): [True: 0, False: 167k]
  |  Branch (1082:34): [True: 0, False: 167k]
  ------------------
 1083|      0|        {
 1084|      0|            return *this = 0;
 1085|      0|        }
 1086|       |
 1087|   167k|        bool difSigns = is_negative() != y.is_negative();
 1088|   167k|        const size_type y_size = y_words.size();
 1089|   167k|        if ( words.size() + y_size == 2 ) // size() = y.size() = 1
  ------------------
  |  Branch (1089:14): [True: 166k, False: 458]
  ------------------
 1090|   166k|        {
 1091|   166k|            word_type a = words[0], b = y_words[0];
 1092|   166k|            words[0] = a * b;
 1093|   166k|            if ( words[0] / a != b )
  ------------------
  |  Branch (1093:18): [True: 68, False: 166k]
  ------------------
 1094|     68|            {
 1095|     68|                resize(2);
 1096|     68|                words = get_words();
 1097|     68|                DDproduct( a, b, words[1], words[0] );
 1098|     68|            }
 1099|   166k|            set_negative(difSigns);
 1100|   166k|            return *this;
 1101|   166k|        }
 1102|       |
 1103|    458|        if ( words.size() == 1 )  //  && y.size() > 1
  ------------------
  |  Branch (1103:14): [True: 131, False: 327]
  ------------------
 1104|    131|        {
 1105|    131|            word_type digit = words[0];
 1106|    131|            *this = y;
 1107|    131|            *this *= digit;
 1108|    131|        }
 1109|    327|        else
 1110|    327|        {
 1111|    327|            if (y_words.size() == 1)
  ------------------
  |  Branch (1111:17): [True: 326, False: 1]
  ------------------
 1112|    326|            {
 1113|    326|                *this *= y_words[0];
 1114|    326|            }
 1115|      1|            else
 1116|      1|            {
 1117|      1|                size_type lenProd = words.size() + y_words.size();
 1118|      1|                word_type sumHi = 0, sumLo, hi, lo,
 1119|      1|                sumLo_old, sumHi_old, carry=0;
 1120|      1|                basic_bigint<Allocator> x = *this;
 1121|      1|                auto x_words = x.get_words();
 1122|      1|                resize( lenProd ); // Give *this length lenProd
 1123|      1|                words = get_words();
 1124|       |
 1125|  6.13k|                for (size_type i = 0; i < lenProd; i++ )
  ------------------
  |  Branch (1125:39): [True: 6.13k, False: 1]
  ------------------
 1126|  6.13k|                {
 1127|  6.13k|                    sumLo = sumHi;
 1128|  6.13k|                    sumHi = carry;
 1129|  6.13k|                    carry = 0;
 1130|  37.6M|                    for (size_type jA=0; jA < x_words.size(); jA++)
  ------------------
  |  Branch (1130:42): [True: 37.6M, False: 6.13k]
  ------------------
 1131|  37.6M|                    {
 1132|  37.6M|                        if (JSONCONS_LIKELY(i >= jA))
  ------------------
  |  |   78|  37.6M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 18.8M, False: 18.8M]
  |  |  ------------------
  ------------------
 1133|  18.8M|                        {
 1134|  18.8M|                            size_type jB = i - jA;
 1135|  18.8M|                            if (jB < y_words.size())
  ------------------
  |  Branch (1135:33): [True: 12.2k, False: 18.8M]
  ------------------
 1136|  12.2k|                            {
 1137|  12.2k|                                DDproduct( x_words[jA], y_words[jB], hi, lo );
 1138|  12.2k|                                sumLo_old = sumLo;
 1139|  12.2k|                                sumHi_old = sumHi;
 1140|  12.2k|                                sumLo += lo;
 1141|  12.2k|                                if ( sumLo < sumLo_old )
  ------------------
  |  Branch (1141:38): [True: 4.81k, False: 7.44k]
  ------------------
 1142|  4.81k|                                    sumHi++;
 1143|  12.2k|                                sumHi += hi;
 1144|  12.2k|                                carry += (sumHi < sumHi_old);
 1145|  12.2k|                            }
 1146|  18.8M|                        }
 1147|  37.6M|                    }
 1148|  6.13k|                    words[i] = sumLo;
 1149|  6.13k|                }
 1150|      1|            }
 1151|    327|        }
 1152|    458|       reduce();
 1153|    458|       set_negative(difSigns);
 1154|    458|       return *this;
 1155|   167k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10bit_lengthEv:
 2230|    126|    {
 2231|       |        // Assumes words stores the absolute magnitude,
 2232|       |        // even when BigInt is negative.
 2233|       |
 2234|    126|        auto words = get_words();
 2235|       |
 2236|    126|        for (size_t i = words.size(); i-- > 0;) {
  ------------------
  |  Branch (2236:39): [True: 126, False: 0]
  ------------------
 2237|    126|            const uint64_t w = words[i];
 2238|       |
 2239|    126|            if (w != 0) {
  ------------------
  |  Branch (2239:17): [True: 126, False: 0]
  ------------------
 2240|    126|                return static_cast<uint64_t>(i) * 64
 2241|    126|                     + 64 - jsoncons::countl_zero(w);
 2242|    126|            }
 2243|    126|        }
 2244|       |
 2245|      0|        return 0;
 2246|    126|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE8test_bitEm:
 2184|     64|    {
 2185|     64|        auto words = get_words();
 2186|       |
 2187|     64|        const uint64_t wordIndex = bitIndex / 64;
 2188|     64|        const unsigned bit = static_cast<unsigned>(bitIndex % 64);
 2189|       |
 2190|     64|        if (wordIndex >= words.size())
  ------------------
  |  Branch (2190:13): [True: 16, False: 48]
  ------------------
 2191|     16|            return false;
 2192|       |
 2193|     48|        return ((words[static_cast<size_t>(wordIndex)] >> bit) & 1ULL) != 0;
 2194|     64|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12any_low_bitsEm:
 2197|     32|    {
 2198|     32|        auto words = get_words();
 2199|       |
 2200|       |        // Check whether any of bits [0, count) are set.
 2201|     32|        if (words.size() == 0)
  ------------------
  |  Branch (2201:13): [True: 0, False: 32]
  ------------------
 2202|      0|            return false;
 2203|       |
 2204|     32|        const uint64_t wholeWords = count / 64;
 2205|     32|        const unsigned remainingBits = static_cast<unsigned>(count % 64);
 2206|       |
 2207|       |        // Check complete 64-bit limbs.
 2208|     32|        const size_t limit =
 2209|     32|            wholeWords >= words.size()
  ------------------
  |  Branch (2209:13): [True: 0, False: 32]
  ------------------
 2210|     32|                ? words.size()
 2211|     32|                : static_cast<size_t>(wholeWords);
 2212|       |
 2213|     32|        for (size_t i = 0; i < limit; ++i) {
  ------------------
  |  Branch (2213:28): [True: 16, False: 16]
  ------------------
 2214|     16|            if (words[i] != 0)
  ------------------
  |  Branch (2214:17): [True: 16, False: 0]
  ------------------
 2215|     16|                return true;
 2216|     16|        }
 2217|       |
 2218|       |        // Check remaining low bits of the next limb.
 2219|     16|        if (remainingBits != 0 && wholeWords < words.size()) {
  ------------------
  |  Branch (2219:13): [True: 16, False: 0]
  |  Branch (2219:35): [True: 16, False: 0]
  ------------------
 2220|     16|            const uint64_t mask = (1ULL << remainingBits) - 1;
 2221|       |
 2222|     16|            if ((words[static_cast<size_t>(wholeWords)] & mask) != 0)
  ------------------
  |  Branch (2222:17): [True: 16, False: 0]
  ------------------
 2223|     16|                return true;
 2224|     16|        }
 2225|       |
 2226|      0|        return false;
 2227|     16|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2EOS4_:
  660|   104k|        : storage_(std::move(other.storage_))
  661|   104k|    {
  662|   104k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2EOS5_:
  335|   104k|        : word_allocator_type(other.get_allocator())
  336|   104k|    {
  337|   104k|        if (!other.is_allocated())
  ------------------
  |  Branch (337:13): [True: 103k, False: 1.21k]
  ------------------
  338|   103k|        {
  339|   103k|            ::new (&inlined_) inlined_storage(other.inlined_);
  340|   103k|        }
  341|  1.21k|        else
  342|  1.21k|        {
  343|  1.21k|            ::new (&allocated_) allocated_storage(std::move(other.allocated_));
  344|  1.21k|        }
  345|   104k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2EOS6_:
  235|  1.21k|            : is_allocated_(stor.is_allocated_),
  236|  1.21k|            is_negative_(stor.is_negative_),
  237|  1.21k|            size_(stor.size_),
  238|  1.21k|            capacity_(stor.capacity_),
  239|  1.21k|            data_(stor.data_)
  240|  1.21k|        {
  241|  1.21k|            stor.is_allocated_ = false;
  242|  1.21k|            stor.is_negative_ = false;
  243|  1.21k|            stor.size_ = 0;
  244|  1.21k|            stor.capacity_ = 0;
  245|  1.21k|            stor.data_ = nullptr;
  246|  1.21k|        }

_ZN8jsoncons6binary13big_to_nativeItNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  77.0k|    {
  183|  77.0k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 77.0k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  77.0k|        T val;
  188|  77.0k|        std::memcpy(&val,first,sizeof(T));
  189|  77.0k|        return byte_swap(val);
  190|  77.0k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|   420k|    {
   29|   420k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|   420k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  467|   420k|#      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|   420k|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  10.9k|    {
  183|  10.9k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 10.9k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  10.9k|        T val;
  188|  10.9k|        std::memcpy(&val,first,sizeof(T));
  189|  10.9k|        return byte_swap(val);
  190|  10.9k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  1.31M|    {
   40|  1.31M|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  1.31M|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  463|  1.31M|#  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|  1.31M|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  9.59k|    {
  183|  9.59k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 9.59k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  9.59k|        T val;
  188|  9.59k|        std::memcpy(&val,first,sizeof(T));
  189|  9.59k|        return byte_swap(val);
  190|  9.59k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|   855k|    {
   52|   855k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|   855k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  462|   855k|#  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|   855k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|   190k|    {
   29|   190k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|   190k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  467|   190k|#      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|   190k|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   403k|    {
   40|   403k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   403k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  463|   403k|#  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|   403k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|   160k|    {
   52|   160k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|   160k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  462|   160k|#  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|   160k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|  70.3k|    {
   65|  70.3k|        uint32_t x;
   66|  70.3k|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|  70.3k|        uint32_t y = byte_swap(x);
   68|  70.3k|        T val2;
   69|  70.3k|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|  70.3k|        return val2;
   71|  70.3k|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|   341k|    {
   77|   341k|        uint64_t x;
   78|   341k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|   341k|        uint64_t y = byte_swap(x);
   80|   341k|        T val2;
   81|   341k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|   341k|        return val2;
   83|   341k|    }
_ZN8jsoncons6binary13big_to_nativeIfNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  5.05k|    {
  183|  5.05k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 5.05k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  5.05k|        T val;
  188|  5.05k|        std::memcpy(&val,first,sizeof(T));
  189|  5.05k|        return byte_swap(val);
  190|  5.05k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  4.21k|    {
  183|  4.21k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 4.21k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  4.21k|        T val;
  188|  4.21k|        std::memcpy(&val,first,sizeof(T));
  189|  4.21k|        return byte_swap(val);
  190|  4.21k|    }

_ZN8jsoncons15bytes_to_base64IPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  188|    547|    {
  189|    547|        static constexpr char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  190|    547|                                                   "abcdefghijklmnopqrstuvwxyz"
  191|    547|                                                   "0123456789+/"
  192|    547|                                                   "=";
  193|    547|        return detail::bytes_to_base64_generic(first, last, alphabet, result);
  194|    547|    }
_ZN8jsoncons6detail23bytes_to_base64_genericIPKhNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS4_9enable_ifIXsr3std7is_sameINS4_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESD_SD_PKcRT0_:
   44|  4.65M|    {
   45|  4.65M|        std::size_t count = 0;
   46|  4.65M|        unsigned char a3[3];
   47|  4.65M|        unsigned char a4[4];
   48|  4.65M|        unsigned char fill = alphabet[64];
   49|  4.65M|        int i = 0;
   50|  4.65M|        int j = 0;
   51|       |
   52|  33.7M|        while (first != last)
  ------------------
  |  Branch (52:16): [True: 29.0M, False: 4.65M]
  ------------------
   53|  29.0M|        {
   54|  29.0M|            a3[i++] = *first++;
   55|  29.0M|            if (i == 3)
  ------------------
  |  Branch (55:17): [True: 7.37M, False: 21.7M]
  ------------------
   56|  7.37M|            {
   57|  7.37M|                a4[0] = (a3[0] & 0xfc) >> 2;
   58|  7.37M|                a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   59|  7.37M|                a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   60|  7.37M|                a4[3] = a3[2] & 0x3f;
   61|       |
   62|  36.8M|                for (i = 0; i < 4; i++) 
  ------------------
  |  Branch (62:29): [True: 29.5M, False: 7.37M]
  ------------------
   63|  29.5M|                {
   64|  29.5M|                    result.push_back(alphabet[a4[i]]);
   65|  29.5M|                    ++count;
   66|  29.5M|                }
   67|  7.37M|                i = 0;
   68|  7.37M|            }
   69|  29.0M|        }
   70|       |
   71|  4.65M|        if (i > 0)
  ------------------
  |  Branch (71:13): [True: 3.95M, False: 701k]
  ------------------
   72|  3.95M|        {
   73|  8.87M|            for (j = i; j < 3; ++j) 
  ------------------
  |  Branch (73:25): [True: 4.91M, False: 3.95M]
  ------------------
   74|  4.91M|            {
   75|  4.91M|                a3[j] = 0;
   76|  4.91M|            }
   77|       |
   78|  3.95M|            a4[0] = (a3[0] & 0xfc) >> 2;
   79|  3.95M|            a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   80|  3.95M|            a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   81|       |
   82|  14.8M|            for (j = 0; j < i + 1; ++j) 
  ------------------
  |  Branch (82:25): [True: 10.9M, False: 3.95M]
  ------------------
   83|  10.9M|            {
   84|  10.9M|                result.push_back(alphabet[a4[j]]);
   85|  10.9M|                ++count;
   86|  10.9M|            }
   87|       |
   88|  3.95M|            if (fill != 0)
  ------------------
  |  Branch (88:17): [True: 18, False: 3.95M]
  ------------------
   89|     18|            {
   90|     41|                while (i++ < 3) 
  ------------------
  |  Branch (90:24): [True: 23, False: 18]
  ------------------
   91|     23|                {
   92|     23|                    result.push_back(fill);
   93|     23|                    ++count;
   94|     23|                }
   95|     18|            }
   96|  3.95M|        }
   97|       |
   98|  4.65M|        return count;
   99|  4.65M|    }
_ZNK8jsoncons16byte_string_view5beginEv:
  409|  9.35M|        {
  410|  9.35M|            return data_;
  411|  9.35M|        }
_ZNK8jsoncons16byte_string_view3endEv:
  413|  9.35M|        {
  414|  9.35M|            return data_ + size_;
  415|  9.35M|        }
_ZN8jsoncons15bytes_to_base16IPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  162|  1.52k|    {
  163|  1.52k|        static constexpr char characters[] = "0123456789ABCDEF";
  164|       |
  165|  44.6k|        for (auto it = first; it != last; ++it)
  ------------------
  |  Branch (165:31): [True: 43.1k, False: 1.52k]
  ------------------
  166|  43.1k|        {
  167|  43.1k|            uint8_t c = *it;
  168|  43.1k|            result.push_back(characters[c >> 4]);
  169|  43.1k|            result.push_back(characters[c & 0xf]);
  170|  43.1k|        }
  171|  1.52k|        return (last-first)*2;
  172|  1.52k|    }
_ZN8jsoncons18bytes_to_base64urlIPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  177|  4.65M|    {
  178|  4.65M|        static constexpr char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  179|  4.65M|                                                      "abcdefghijklmnopqrstuvwxyz"
  180|  4.65M|                                                      "0123456789-_"
  181|  4.65M|                                                      "\0";
  182|  4.65M|        return detail::bytes_to_base64_generic(first, last, alphabet, result);
  183|  4.65M|    }
_ZNK8jsoncons16byte_string_view4dataEv:
  399|  6.77M|        {
  400|  6.77M|            return data_;
  401|  6.77M|        }
_ZNK8jsoncons16byte_string_view4sizeEv:
  403|  11.6M|        {
  404|  11.6M|            return size_;
  405|  11.6M|        }
_ZN8jsoncons16byte_string_viewC2EPKhm:
  362|  12.4M|            : data_(data), size_(length)
  363|  12.4M|        {
  364|  12.4M|        }
_ZN8jsoncons16byte_string_viewC2INSt3__16vectorIhNS2_9allocatorIhEEEEEERKT_NS2_9enable_ifIXsr6nonstd18is_bytes_view_likeIS7_EE5valueEiE4typeE:
  369|  35.8k|            : data_(reinterpret_cast<const uint8_t*>(cont.data())), size_(cont.size())
  370|  35.8k|        {
  371|  35.8k|        }
_ZN8jsoncons16byte_string_viewC2Ev:
  358|    165|        {
  359|    165|        }

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

_ZNK8jsoncons8identityclIRKhEEOT_S5_:
   19|   210k|    {
   20|   210k|        return std::forward<T>(val);
   21|   210k|    }
_ZNK8jsoncons8identityclIRKtEEOT_S5_:
   19|   372k|    {
   20|   372k|        return std::forward<T>(val);
   21|   372k|    }
_ZNK8jsoncons8identityclIRKjEEOT_S5_:
   19|  3.31M|    {
   20|  3.31M|        return std::forward<T>(val);
   21|  3.31M|    }
_ZNK8jsoncons8identityclIRKmEEOT_S5_:
   19|   577k|    {
   20|   577k|        return std::forward<T>(val);
   21|   577k|    }
_ZNK8jsoncons8identityclIRKaEEOT_S5_:
   19|  5.09M|    {
   20|  5.09M|        return std::forward<T>(val);
   21|  5.09M|    }
_ZNK8jsoncons8identityclIRKsEEOT_S5_:
   19|  1.21M|    {
   20|  1.21M|        return std::forward<T>(val);
   21|  1.21M|    }
_ZNK8jsoncons8identityclIRKiEEOT_S5_:
   19|   562k|    {
   20|   562k|        return std::forward<T>(val);
   21|   562k|    }
_ZNK8jsoncons8identityclIRKlEEOT_S5_:
   19|   162k|    {
   20|   162k|        return std::forward<T>(val);
   21|   162k|    }
_ZNK8jsoncons11decode_halfclEt:
   36|   100k|    {
   37|   100k|        return binary::decode_half(val);
   38|   100k|    }
_ZNK8jsoncons8identityclIRKfEEOT_S5_:
   19|   134k|    {
   20|   134k|        return std::forward<T>(val);
   21|   134k|    }
_ZNK8jsoncons8identityclIRKdEEOT_S5_:
   19|   436k|    {
   20|   436k|        return std::forward<T>(val);
   21|   436k|    }

_ZN8jsoncons16decstr_to_doubleEPKcmRd:
  889|  1.64k|{
  890|  1.64k|    const char* cur = s+length;
  891|  1.64k|    char *end = nullptr;
  892|  1.64k|    val = strtod(s, &end);
  893|  1.64k|    const char* str_end = end;
  894|  1.64k|    if (JSONCONS_UNLIKELY(end < cur))
  ------------------
  |  |   79|  1.64k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.64k]
  |  |  ------------------
  ------------------
  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|  1.64k|    if (JSONCONS_UNLIKELY(val <= -HUGE_VAL || val >= HUGE_VAL))
  ------------------
  |  |   79|  3.28k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.64k]
  |  |  |  Branch (79:50): [True: 0, False: 1.64k]
  |  |  |  Branch (79:50): [True: 0, False: 1.64k]
  |  |  ------------------
  ------------------
  911|      0|    {
  912|      0|        return to_number_result<char>{str_end, std::errc::result_out_of_range};
  913|      0|    }
  914|  1.64k|    return to_number_result<char>{str_end};
  915|  1.64k|}
_ZN8jsoncons16to_number_resultIcEC2EPKc:
  160|  1.64k|        : ptr(ptr_), ec(std::errc{})
  161|  1.64k|    {
  162|  1.64k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr6nonstd10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  14.6M|{
   43|  14.6M|    using char_type = typename Result::value_type;
   44|       |
   45|  14.6M|    char_type buf[255];
   46|  14.6M|    char_type *p = buf;
   47|  14.6M|    const char_type* last = buf+255;
   48|       |
   49|  14.6M|    bool is_negative = value < 0;
   50|       |
   51|  14.6M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 14.6M]
  ------------------
   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|  14.6M|    else
   60|  14.6M|    {
   61|       |
   62|  14.6M|        do
   63|  54.3M|        {
   64|  54.3M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  54.3M|        }
   66|  54.3M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 39.7M, False: 14.6M]
  |  Branch (66:33): [True: 39.7M, False: 0]
  ------------------
   67|  14.6M|    }
   68|  14.6M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   54|  14.6M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 14.6M]
  |  |  ------------------
  |  |   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|  14.6M|    std::size_t count = (p - buf);
   71|  14.6M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 14.6M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  68.9M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 54.3M, False: 14.6M]
  ------------------
   77|  54.3M|    {
   78|  54.3M|        result.push_back(*p);
   79|  54.3M|    }
   80|       |
   81|  14.6M|    return count;
   82|  14.6M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr6nonstd10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  6.46M|{
   43|  6.46M|    using char_type = typename Result::value_type;
   44|       |
   45|  6.46M|    char_type buf[255];
   46|  6.46M|    char_type *p = buf;
   47|  6.46M|    const char_type* last = buf+255;
   48|       |
   49|  6.46M|    bool is_negative = value < 0;
   50|       |
   51|  6.46M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 2.57M, False: 3.88M]
  ------------------
   52|  2.57M|    {
   53|  2.57M|        do
   54|  5.69M|        {
   55|  5.69M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  5.69M|        }
   57|  5.69M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 3.11M, False: 2.57M]
  |  Branch (57:33): [True: 3.11M, False: 0]
  ------------------
   58|  2.57M|    }
   59|  3.88M|    else
   60|  3.88M|    {
   61|       |
   62|  3.88M|        do
   63|  13.3M|        {
   64|  13.3M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  13.3M|        }
   66|  13.3M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 9.45M, False: 3.88M]
  |  Branch (66:33): [True: 9.45M, False: 0]
  ------------------
   67|  3.88M|    }
   68|  6.46M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   54|  6.46M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 6.46M]
  |  |  ------------------
  |  |   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|  6.46M|    std::size_t count = (p - buf);
   71|  6.46M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 2.57M, False: 3.88M]
  ------------------
   72|  2.57M|    {
   73|  2.57M|        result.push_back('-');
   74|  2.57M|        ++count;
   75|  2.57M|    }
   76|  25.4M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 19.0M, False: 6.46M]
  ------------------
   77|  19.0M|    {
   78|  19.0M|        result.push_back(*p);
   79|  19.0M|    }
   80|       |
   81|  6.46M|    return count;
   82|  6.46M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|   657k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|   657k|    {
  489|   657k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|   657k|        struct lconv *lc = localeconv();
  491|   657k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 657k, False: 0]
  |  Branch (491:30): [True: 657k, False: 0]
  ------------------
  492|   657k|        {
  493|   657k|            decimal_point_ = lc->decimal_point[0];
  494|   657k|        }
  495|   657k|#endif
  496|   657k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|   657k|    {
  504|   657k|        std::size_t count = 0;
  505|       |
  506|   657k|        char number_buffer[200];
  507|   657k|        int length = 0;
  508|       |
  509|   657k|        switch (float_format_)
  510|   657k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 657k]
  ------------------
  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: 657k]
  ------------------
  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|   657k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 657k, False: 0]
  ------------------
  552|   657k|            {
  553|   657k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 657k]
  ------------------
  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|   657k|                else
  563|   657k|                {
  564|   657k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 657k]
  ------------------
  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|   657k|                }             
  569|   657k|                break;
  570|   657k|            }
  571|   657k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 657k]
  ------------------
  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|   657k|        }
  575|   657k|        return count;
  576|   657k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  1.64k|{
  244|  1.64k|    const char *sbeg = buffer;
  245|  1.64k|    const char *send = sbeg + length;
  246|       |
  247|  1.64k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 1.64k, False: 0]
  ------------------
  248|  1.64k|    {
  249|  1.64k|        bool needs_dot = true;
  250|  35.4k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 33.8k, False: 1.64k]
  ------------------
  251|  33.8k|        {
  252|  33.8k|            switch (*q)
  253|  33.8k|            {
  254|  1.19k|            case '-':
  ------------------
  |  Branch (254:13): [True: 1.19k, False: 32.6k]
  ------------------
  255|  4.80k|            case '0':
  ------------------
  |  Branch (255:13): [True: 3.61k, False: 30.2k]
  ------------------
  256|  7.90k|            case '1':
  ------------------
  |  Branch (256:13): [True: 3.09k, False: 30.7k]
  ------------------
  257|  11.7k|            case '2':
  ------------------
  |  Branch (257:13): [True: 3.86k, False: 29.9k]
  ------------------
  258|  14.5k|            case '3':
  ------------------
  |  Branch (258:13): [True: 2.81k, False: 31.0k]
  ------------------
  259|  17.6k|            case '4':
  ------------------
  |  Branch (259:13): [True: 3.03k, False: 30.8k]
  ------------------
  260|  21.5k|            case '5':
  ------------------
  |  Branch (260:13): [True: 3.94k, False: 29.8k]
  ------------------
  261|  24.0k|            case '6':
  ------------------
  |  Branch (261:13): [True: 2.53k, False: 31.3k]
  ------------------
  262|  26.4k|            case '7':
  ------------------
  |  Branch (262:13): [True: 2.35k, False: 31.4k]
  ------------------
  263|  29.0k|            case '8':
  ------------------
  |  Branch (263:13): [True: 2.57k, False: 31.2k]
  ------------------
  264|  31.0k|            case '9':
  ------------------
  |  Branch (264:13): [True: 1.99k, False: 31.8k]
  ------------------
  265|  31.3k|            case '+':
  ------------------
  |  Branch (265:13): [True: 357, False: 33.4k]
  ------------------
  266|  31.3k|                result.push_back(*q);
  267|  31.3k|                break;
  268|    898|            case 'e':
  ------------------
  |  Branch (268:13): [True: 898, False: 32.9k]
  ------------------
  269|    898|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 33.8k]
  ------------------
  270|    898|                result.push_back('e');
  271|    898|                needs_dot = false;
  272|    898|                break;
  273|  1.56k|            default:
  ------------------
  |  Branch (273:13): [True: 1.56k, False: 32.2k]
  ------------------
  274|  1.56k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 1.43k, False: 126]
  ------------------
  275|  1.43k|                {
  276|  1.43k|                    needs_dot = false;
  277|  1.43k|                    result.push_back('.');
  278|  1.43k|                }
  279|  1.56k|                break;
  280|  33.8k|            }
  281|  33.8k|        }
  282|  1.64k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 201, False: 1.43k]
  ------------------
  283|    201|        {
  284|    201|            result.push_back('.');
  285|    201|            result.push_back('0');
  286|    201|        }
  287|  1.64k|    }
  288|  1.64k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKciiiiRT_:
  171|   620k|{
  172|   620k|    int nb_digits = length;
  173|   620k|    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|   620k|    int kk = nb_digits + k;
  179|       |
  180|   620k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 313k, False: 306k]
  |  Branch (180:28): [True: 30.2k, False: 283k]
  ------------------
  181|  30.2k|    {
  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|   241k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 210k, False: 30.2k]
  ------------------
  186|   210k|        {
  187|   210k|            result.push_back(buffer[i]);
  188|   210k|        }
  189|  33.7k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 3.47k, False: 30.2k]
  ------------------
  190|  3.47k|        {
  191|  3.47k|            result.push_back('0');
  192|  3.47k|        }
  193|  30.2k|        result.push_back('.');
  194|  30.2k|        result.push_back('0');
  195|  30.2k|    } 
  196|   589k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 390k, False: 198k]
  |  Branch (196:24): [True: 107k, False: 283k]
  ------------------
  197|   107k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|   403k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 296k, False: 107k]
  ------------------
  200|   296k|        {
  201|   296k|            result.push_back(buffer[i]);
  202|   296k|        }
  203|   107k|        result.push_back('.');
  204|  1.25M|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 1.14M, False: 107k]
  ------------------
  205|  1.14M|        {
  206|  1.14M|            result.push_back(buffer[i]);
  207|  1.14M|        }
  208|   107k|    } 
  209|   482k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 299k, False: 182k]
  |  Branch (209:30): [True: 15.7k, False: 283k]
  ------------------
  210|  15.7k|    {
  211|  15.7k|        offset = 2 - kk;
  212|       |
  213|  15.7k|        result.push_back('0');
  214|  15.7k|        result.push_back('.');
  215|  40.9k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 25.1k, False: 15.7k]
  ------------------
  216|  25.1k|            result.push_back('0');
  217|   235k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 219k, False: 15.7k]
  ------------------
  218|   219k|        {
  219|   219k|            result.push_back(buffer[i]);
  220|   219k|        }
  221|  15.7k|    } 
  222|   466k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 140, False: 466k]
  ------------------
  223|    140|    {
  224|    140|        result.push_back(buffer[0]);
  225|    140|        result.push_back('e');
  226|    140|        fill_exponent(kk - 1, result);
  227|    140|    } 
  228|   466k|    else
  229|   466k|    {
  230|   466k|        result.push_back(buffer[0]);
  231|   466k|        result.push_back('.');
  232|  7.55M|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 7.09M, False: 466k]
  ------------------
  233|  7.09M|        {
  234|  7.09M|            result.push_back(buffer[i]);
  235|  7.09M|        }
  236|   466k|        result.push_back('e');
  237|   466k|        fill_exponent(kk - 1, result);
  238|   466k|    }
  239|   620k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|   466k|{
  137|   466k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 182k, False: 283k]
  ------------------
  138|   182k|    {
  139|   182k|        result.push_back('-');
  140|   182k|        K = -K;
  141|   182k|    }
  142|   283k|    else
  143|   283k|    {
  144|   283k|        result.push_back('+'); // compatibility with sprintf
  145|   283k|    }
  146|       |
  147|   466k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 11.9k, False: 454k]
  ------------------
  148|  11.9k|    {
  149|  11.9k|        result.push_back('0'); // compatibility with sprintf
  150|  11.9k|        result.push_back((char)('0' + K));
  151|  11.9k|    }
  152|   454k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 101k, False: 352k]
  ------------------
  153|   101k|    {
  154|   101k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|   101k|        result.push_back((char)('0' + K));
  156|   101k|    }
  157|   352k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 352k, False: 0]
  ------------------
  158|   352k|    {
  159|   352k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|   352k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|   352k|        result.push_back((char)('0' + K));
  162|   352k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|   466k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|   657k|{
  476|   657k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|   657k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|   657k|{
  367|   657k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 35.4k, False: 621k]
  ------------------
  368|  35.4k|    {
  369|  35.4k|        result.push_back('0');
  370|  35.4k|        result.push_back('.');
  371|  35.4k|        result.push_back('0');
  372|  35.4k|        return true;
  373|  35.4k|    }
  374|       |
  375|   621k|    int length = 0;
  376|   621k|    int k;
  377|       |
  378|   621k|    char buffer[100];
  379|       |
  380|   621k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 247k, False: 373k]
  ------------------
  381|   621k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 620k, False: 1.64k]
  ------------------
  382|   620k|    {
  383|   620k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 247k, False: 372k]
  ------------------
  384|   247k|        {
  385|   247k|            result.push_back('-');
  386|   247k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|   620k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|   620k|        return true;
  391|   620k|    }
  392|  1.64k|    else
  393|  1.64k|    {
  394|  1.64k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  1.64k|    }
  396|   621k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  1.64k|{
  330|  1.64k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 1.64k]
  ------------------
  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|  1.64k|    char buffer[100];
  339|  1.64k|    int precision = std::numeric_limits<double>::digits10;
  340|  1.64k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  1.64k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 1.64k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  1.64k|    double x{0};
  346|  1.64k|    auto res = decstr_to_double(buffer, length, x);
  347|  1.64k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 1.64k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  1.64k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 1.60k, False: 37]
  ------------------
  352|  1.60k|    {
  353|  1.60k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  1.60k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  1.60k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 1.60k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  1.60k|    }
  360|  1.64k|    dump_buffer(buffer, length, decimal_point, result);
  361|  1.64k|    return true;
  362|  1.64k|}

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr6nonstd8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|  3.34M|    {
 1148|  3.34M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|  3.34M|        const uint8_t* end = it + length;
 1150|       |
 1151|  3.34M|        unicode_errc  result{};
 1152|  8.75M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 5.41M, False: 3.34M]
  ------------------
 1153|  5.41M|        {
 1154|  5.41M|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 143k, False: 5.27M]
  ------------------
 1155|   143k|            {
 1156|   895k|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  326|   286k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (326:32): [True: 141k, False: 1.87k]
  |  |  |  Branch (326:34): [True: 132k, False: 9.48k]
  |  |  |  Branch (326:36): [True: 125k, False: 6.97k]
  |  |  |  Branch (326:38): [True: 124k, False: 357]
  |  |  |  Branch (326:40): [True: 124k, False: 74]
  |  |  |  Branch (326:42): [True: 124k, False: 641]
  |  |  |  Branch (326:44): [True: 123k, False: 410]
  |  |  |  Branch (326:46): [True: 113k, False: 10.0k]
  |  |  ------------------
  ------------------
 1157|   113k|                continue;
 1158|   895k|            }
 1159|  5.30M|    non_ascii:
 1160|  5.30M|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  5.30M|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 11, False: 5.30M]
  ------------------
 1162|     11|            {
 1163|     11|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     11|            }
 1165|  5.30M|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 47, False: 5.30M]
  ------------------
 1166|     47|            {
 1167|     47|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|     47|            }
 1169|  5.30M|            it += len;
 1170|  5.30M|        }
 1171|  3.34M|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|  3.34M|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  5.30M|    {
  306|  5.30M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  5.30M|        const uint8_t* end = it+length;
  308|       |
  309|  5.30M|        uint8_t byte;
  310|  5.30M|        switch (length) {
  311|     11|        default:
  ------------------
  |  Branch (311:9): [True: 11, False: 5.30M]
  ------------------
  312|     11|            return unicode_errc::over_long_utf8_sequence;
  313|    241|        case 4:
  ------------------
  |  Branch (313:9): [True: 241, False: 5.30M]
  ------------------
  314|    241|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 5, False: 236]
  ------------------
  315|      5|                return unicode_errc::bad_continuation_byte;
  316|    236|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  565|    236|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  9.97k|        case 3:
  ------------------
  |  Branch (317:9): [True: 9.73k, False: 5.29M]
  ------------------
  318|  9.97k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 0, False: 9.97k]
  ------------------
  319|      0|                return unicode_errc::bad_continuation_byte;
  320|  9.97k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  565|  9.97k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  29.8k|        case 2:
  ------------------
  |  Branch (321:9): [True: 19.9k, False: 5.28M]
  ------------------
  322|  29.8k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 9, False: 29.8k]
  ------------------
  323|      9|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  29.8k|            switch (*it) 
  326|  29.8k|            {
  327|       |                // no fall-through in this inner switch
  328|      0|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 0, False: 29.8k]
  |  Branch (328:32): [True: 0, False: 0]
  ------------------
  329|      0|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 0, False: 29.8k]
  |  Branch (329:32): [True: 0, False: 0]
  ------------------
  330|      0|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 0, False: 29.8k]
  |  Branch (330:32): [True: 0, False: 0]
  ------------------
  331|    233|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 233, False: 29.6k]
  |  Branch (331:32): [True: 0, False: 233]
  ------------------
  332|  29.6k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 29.6k, False: 233]
  |  Branch (332:32): [True: 0, False: 29.6k]
  ------------------
  333|  29.8k|            }
  334|       |
  335|  29.8k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  565|  29.8k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  5.30M|        case 1:
  ------------------
  |  Branch (336:9): [True: 5.27M, False: 29.9k]
  ------------------
  337|  5.30M|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 29.8k, False: 5.27M]
  |  Branch (337:32): [True: 22, False: 29.8k]
  ------------------
  338|     22|                return unicode_errc::source_illegal;
  339|  5.30M|            break;
  340|  5.30M|        }
  341|  5.30M|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 0, False: 5.30M]
  ------------------
  342|      0|            return unicode_errc::source_illegal;
  343|       |
  344|  5.30M|        return unicode_errc();
  345|  5.30M|    }

_ZN8jsoncons4cbor6detail24min_length_for_stringrefEm:
   58|  5.18M|{
   59|  5.18M|    std::size_t n;
   60|  5.18M|    if (index <= 23)
  ------------------
  |  Branch (60:9): [True: 158k, False: 5.02M]
  ------------------
   61|   158k|    {
   62|   158k|        n = 3;
   63|   158k|    }
   64|  5.02M|    else if (index <= 255)
  ------------------
  |  Branch (64:14): [True: 247k, False: 4.77M]
  ------------------
   65|   247k|    {
   66|   247k|        n = 4;
   67|   247k|    }
   68|  4.77M|    else if (index <= 65535)
  ------------------
  |  Branch (68:14): [True: 4.42M, False: 350k]
  ------------------
   69|  4.42M|    {
   70|  4.42M|        n = 5;
   71|  4.42M|    }
   72|   350k|    else if (index <= 4294967295)
  ------------------
  |  Branch (72:14): [True: 350k, False: 0]
  ------------------
   73|   350k|    {
   74|   350k|        n = 7;
   75|   350k|    }
   76|      0|    else 
   77|      0|    {
   78|      0|        n = 11;
   79|      0|    }
   80|  5.18M|    return n;
   81|  5.18M|}

_ZN8jsoncons4cbor15make_error_codeENS0_9cbor_errcE:
  111|    964|{
  112|    964|    return std::error_code(static_cast<int>(e),cbor_error_category());
  113|    964|}
_ZN8jsoncons4cbor19cbor_error_categoryEv:
  104|    964|{
  105|    964|  static cbor_error_category_impl instance;
  106|    964|  return instance;
  107|    964|}

_ZN8jsoncons4cbor19cbor_decode_optionsC1Ev:
   43|  1.01k|    cbor_decode_options() = default;
_ZN8jsoncons4cbor19cbor_options_commonC2Ev:
   25|  1.01k|    cbor_options_common() = default;
_ZN8jsoncons4cbor19cbor_options_commonD2Ev:
   27|  1.01k|    virtual ~cbor_options_common() = default;
_ZNK8jsoncons4cbor19cbor_options_common17max_nesting_depthEv:
   33|  1.01k|    {
   34|  1.01k|        return max_nesting_depth_;
   35|  1.01k|    }
_ZNK8jsoncons4cbor19cbor_decode_options18bigfloat_precisionEv:
   49|  1.01k|    {
   50|  1.01k|        return bigfloat_precision_;
   51|  1.01k|    }

_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEED2Ev:
  354|  1.01k|    ~basic_cbor_parser() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringD2Ev:
  251|  16.7M|        ~mapped_string() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RKNS0_19cbor_decode_optionsERKS7_:
  336|  1.01k|       : alloc_(alloc),
  337|  1.01k|         source_(std::forward<Sourceable>(source)),
  338|  1.01k|         max_nesting_depth_(options.max_nesting_depth()),
  339|  1.01k|         bigfloat_precision_(options.bigfloat_precision()),
  340|  1.01k|         text_buffer_(alloc),
  341|  1.01k|         bytes_buffer_(alloc),
  342|  1.01k|         state_stack_(alloc),
  343|  1.01k|         stringref_map_stack_(alloc),
  344|  1.01k|         extents_(alloc)
  345|  1.01k|    {
  346|  1.01k|        state_stack_.emplace_back(parse_mode::root,0);
  347|  1.01k|    }
_ZN8jsoncons4cbor11parse_stateC2ENS0_10parse_modeEmb:
  167|   867k|        : mode(mode), length(length), pop_stringref_map_stack(pop_stringref_map_stack)
  168|   867k|    {
  169|   867k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  362|  1.01k|    {
  363|  1.01k|        more_ = true;
  364|  1.01k|        done_ = false;
  365|  1.01k|        text_buffer_.clear();
  366|  1.01k|        bytes_buffer_.clear();
  367|  1.01k|        raw_tag_ = 0;
  368|  1.01k|        state_stack_.clear();
  369|  1.01k|        state_stack_.emplace_back(parse_mode::root,0);
  370|  1.01k|        stringref_map_stack_.clear();
  371|  1.01k|        nesting_depth_ = 0;
  372|  1.01k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  465|  1.01k|    {
  466|   133M|        while (!done_ && more_)
  ------------------
  |  Branch (466:16): [True: 133M, False: 54]
  |  Branch (466:26): [True: 133M, False: 0]
  ------------------
  467|   133M|        {
  468|   133M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (468:21): [True: 133M, False: 0]
  ------------------
  469|   133M|            {
  470|  14.3k|                case parse_mode::multi_dim:
  ------------------
  |  Branch (470:17): [True: 14.3k, False: 133M]
  ------------------
  471|  14.3k|                {
  472|  14.3k|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  14.3k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 14.3k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  473|  14.3k|                    typed_array_stack_.pop_back();
  474|  14.3k|                    state_stack_.pop_back();
  475|  14.3k|                    break;
  476|  14.3k|                }
  477|  34.9M|                case parse_mode::typed_array:
  ------------------
  |  Branch (477:17): [True: 34.9M, False: 98.0M]
  ------------------
  478|  34.9M|                {
  479|  34.9M|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  34.9M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 34.9M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  480|  34.9M|                    read_typed_array_item(visitor, ec);
  481|  34.9M|                    auto iter = typed_array_stack_.back();
  482|  34.9M|                    if (iter->done())
  ------------------
  |  Branch (482:25): [True: 234k, False: 34.7M]
  ------------------
  483|   234k|                    {
  484|   234k|                        if (level() == mark_level_)
  ------------------
  |  Branch (484:29): [True: 0, False: 234k]
  ------------------
  485|      0|                        {
  486|      0|                            more_ = false;
  487|      0|                        }
  488|   234k|                        if (!is_multi_dim())
  ------------------
  |  Branch (488:29): [True: 221k, False: 13.5k]
  ------------------
  489|   221k|                        {
  490|   221k|                            typed_array_stack_.pop_back();
  491|   221k|                        }
  492|   234k|                        state_stack_.pop_back();
  493|   234k|                    }
  494|  34.9M|                    break;
  495|  34.9M|                }
  496|  54.2M|                case parse_mode::array:
  ------------------
  |  Branch (496:17): [True: 54.2M, False: 78.8M]
  ------------------
  497|  54.2M|                {
  498|  54.2M|                    if (is_multi_dim())
  ------------------
  |  Branch (498:25): [True: 52.6M, False: 1.59M]
  ------------------
  499|  52.6M|                    {
  500|  52.6M|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  52.6M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 52.6M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  501|  52.6M|                        auto iter = typed_array_stack_.back();
  502|  52.6M|                        if (!iter->done())
  ------------------
  |  Branch (502:29): [True: 52.6M, False: 612]
  ------------------
  503|  52.6M|                        {
  504|  52.6M|                            iter->next(visitor, *this, ec);
  505|  52.6M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  52.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 40, False: 52.6M]
  |  |  ------------------
  ------------------
  506|     40|                            {
  507|     40|                                return;
  508|     40|                            }
  509|  52.6M|                        }
  510|    612|                        else
  511|    612|                        {
  512|    612|                            if (iter->count() != state_stack_.back().length)
  ------------------
  |  Branch (512:33): [True: 5, False: 607]
  ------------------
  513|      5|                            {
  514|       |                                //std::cout << state_stack_.back().index << "!=" << state_stack_.back().length << "\n";
  515|      5|                                ec = cbor_errc::bad_mdarray;
  516|      5|                                return;
  517|      5|                            }
  518|    607|                            end_classical_array_storage(ec);
  519|    607|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    607|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 607]
  |  |  ------------------
  ------------------
  520|      0|                            {
  521|      0|                                return;
  522|      0|                            }
  523|    607|                        }
  524|  52.6M|                    }
  525|  1.59M|                    else
  526|  1.59M|                    {
  527|  1.59M|                        if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (527:29): [True: 1.45M, False: 133k]
  ------------------
  528|  1.45M|                        {
  529|  1.45M|                            ++state_stack_.back().index;
  530|  1.45M|                            read_item(visitor, ec);
  531|  1.45M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.45M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 125, False: 1.45M]
  |  |  ------------------
  ------------------
  532|    125|                            {
  533|    125|                                return;
  534|    125|                            }
  535|  1.45M|                        }
  536|   133k|                        else
  537|   133k|                        {
  538|   133k|                            end_array(visitor, ec);
  539|   133k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   133k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 133k]
  |  |  ------------------
  ------------------
  540|      0|                            {
  541|      0|                                return;
  542|      0|                            }
  543|   133k|                        }
  544|  1.59M|                    }
  545|  54.2M|                    break;
  546|  54.2M|                }
  547|  54.2M|                case parse_mode::indefinite_array:
  ------------------
  |  Branch (547:17): [True: 25.3M, False: 107M]
  ------------------
  548|  25.3M|                {
  549|  25.3M|                    if (is_multi_dim()) 
  ------------------
  |  Branch (549:25): [True: 16.1M, False: 9.26M]
  ------------------
  550|  16.1M|                    {
  551|  16.1M|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  16.1M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 16.1M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  552|  16.1M|                        auto iter = typed_array_stack_.back();
  553|  16.1M|                        if (!iter->done())
  ------------------
  |  Branch (553:29): [True: 16.1M, False: 140]
  ------------------
  554|  16.1M|                        {
  555|  16.1M|                            iter->next(visitor, *this, ec);
  556|  16.1M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  16.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 26, False: 16.1M]
  |  |  ------------------
  ------------------
  557|     26|                            {
  558|     26|                                return;
  559|     26|                            }
  560|  16.1M|                        }
  561|    140|                        else
  562|    140|                        {
  563|    140|                            auto c = source_.peek();
  564|    140|                            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|    140|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 140]
  |  |  ------------------
  ------------------
  565|      0|                            {
  566|      0|                                ec = cbor_errc::unexpected_eof;
  567|      0|                                more_ = false;
  568|      0|                                return;
  569|      0|                            }
  570|    140|                            if (c.value == 0xff)
  ------------------
  |  Branch (570:33): [True: 138, False: 2]
  ------------------
  571|    138|                            {
  572|    138|                                source_.ignore(1);
  573|    138|                            }
  574|      2|                            else
  575|      2|                            {
  576|      2|                                ec = cbor_errc::bad_mdarray;
  577|      2|                                return;
  578|      2|                            }
  579|    138|                            end_classical_array_storage(ec);
  580|    138|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    138|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 138]
  |  |  ------------------
  ------------------
  581|      0|                            {
  582|      0|                                return;
  583|      0|                            }
  584|    138|                        }
  585|  16.1M|                    }
  586|  9.26M|                    else
  587|  9.26M|                    {
  588|  9.26M|                        auto c = source_.peek();
  589|  9.26M|                        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  9.26M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 61, False: 9.26M]
  |  |  ------------------
  ------------------
  590|     61|                        {
  591|     61|                            ec = cbor_errc::unexpected_eof;
  592|     61|                            more_ = false;
  593|     61|                            return;
  594|     61|                        }
  595|  9.26M|                        if (c.value == 0xff)
  ------------------
  |  Branch (595:29): [True: 166k, False: 9.09M]
  ------------------
  596|   166k|                        {
  597|   166k|                            source_.ignore(1);
  598|   166k|                            end_array(visitor, ec);
  599|   166k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   166k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 166k]
  |  |  ------------------
  ------------------
  600|      0|                            {
  601|      0|                                return;
  602|      0|                            }
  603|   166k|                        }
  604|  9.09M|                        else
  605|  9.09M|                        {
  606|  9.09M|                            read_item(visitor, ec);
  607|  9.09M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.09M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 95, False: 9.09M]
  |  |  ------------------
  ------------------
  608|     95|                            {
  609|     95|                                return;
  610|     95|                            }
  611|  9.09M|                        }
  612|  9.26M|                    }
  613|  25.3M|                    break;
  614|  25.3M|                }
  615|  25.3M|                case parse_mode::map_key:
  ------------------
  |  Branch (615:17): [True: 2.34M, False: 130M]
  ------------------
  616|  2.34M|                {
  617|  2.34M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (617:25): [True: 2.11M, False: 228k]
  ------------------
  618|  2.11M|                    {
  619|  2.11M|                        ++state_stack_.back().index;
  620|  2.11M|                        state_stack_.back().mode = parse_mode::map_value;
  621|  2.11M|                        read_item(visitor, ec);
  622|  2.11M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.11M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 140, False: 2.11M]
  |  |  ------------------
  ------------------
  623|    140|                        {
  624|    140|                            return;
  625|    140|                        }
  626|  2.11M|                    }
  627|   228k|                    else
  628|   228k|                    {
  629|   228k|                        end_object(visitor, ec);
  630|   228k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   228k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 228k]
  |  |  ------------------
  ------------------
  631|      0|                        {
  632|      0|                            return;
  633|      0|                        }
  634|   228k|                    }
  635|  2.34M|                    break;
  636|  2.34M|                }
  637|  2.34M|                case parse_mode::map_value:
  ------------------
  |  Branch (637:17): [True: 2.09M, False: 130M]
  ------------------
  638|  2.09M|                {
  639|  2.09M|                    state_stack_.back().mode = parse_mode::map_key;
  640|  2.09M|                    read_item(visitor, ec);
  641|  2.09M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.09M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 115, False: 2.09M]
  |  |  ------------------
  ------------------
  642|    115|                    {
  643|    115|                        return;
  644|    115|                    }
  645|  2.09M|                    break;
  646|  2.09M|                }
  647|  7.00M|                case parse_mode::indefinite_map_key:
  ------------------
  |  Branch (647:17): [True: 7.00M, False: 126M]
  ------------------
  648|  7.00M|                {
  649|  7.00M|                    auto c = source_.peek();
  650|  7.00M|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  7.00M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 29, False: 7.00M]
  |  |  ------------------
  ------------------
  651|     29|                    {
  652|     29|                        ec = cbor_errc::unexpected_eof;
  653|     29|                        more_ = false;
  654|     29|                        return;
  655|     29|                    }
  656|  7.00M|                    if (c.value == 0xff)
  ------------------
  |  Branch (656:25): [True: 72, False: 7.00M]
  ------------------
  657|     72|                    {
  658|     72|                        source_.ignore(1);
  659|     72|                        end_object(visitor, ec);
  660|     72|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     72|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 72]
  |  |  ------------------
  ------------------
  661|      0|                        {
  662|      0|                            return;
  663|      0|                        }
  664|     72|                    }
  665|  7.00M|                    else
  666|  7.00M|                    {
  667|  7.00M|                        state_stack_.back().mode = parse_mode::indefinite_map_value;
  668|  7.00M|                        read_item(visitor, ec);
  669|  7.00M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.00M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 88, False: 7.00M]
  |  |  ------------------
  ------------------
  670|     88|                        {
  671|     88|                            return;
  672|     88|                        }
  673|  7.00M|                    }
  674|  7.00M|                    break;
  675|  7.00M|                }
  676|  7.00M|                case parse_mode::indefinite_map_value:
  ------------------
  |  Branch (676:17): [True: 6.99M, False: 126M]
  ------------------
  677|  6.99M|                {
  678|  6.99M|                    state_stack_.back().mode = parse_mode::indefinite_map_key;
  679|  6.99M|                    read_item(visitor, ec);
  680|  6.99M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.99M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 146, False: 6.99M]
  |  |  ------------------
  ------------------
  681|    146|                    {
  682|    146|                        return;
  683|    146|                    }
  684|  6.99M|                    break;
  685|  6.99M|                }
  686|  6.99M|                case parse_mode::root:
  ------------------
  |  Branch (686:17): [True: 1.01k, False: 133M]
  ------------------
  687|  1.01k|                {
  688|  1.01k|                    state_stack_.back().mode = parse_mode::accept;
  689|  1.01k|                    read_item(visitor, ec);
  690|  1.01k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.01k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 92, False: 926]
  |  |  ------------------
  ------------------
  691|     92|                    {
  692|     92|                        return;
  693|     92|                    }
  694|    926|                    break;
  695|  1.01k|                }
  696|    926|                case parse_mode::accept:
  ------------------
  |  Branch (696:17): [True: 54, False: 133M]
  ------------------
  697|     54|                {
  698|     54|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   54|     54|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 54]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  699|     54|                    state_stack_.clear();
  700|     54|                    more_ = false;
  701|     54|                    done_ = true;
  702|     54|                    visitor.flush();
  703|     54|                    break;
  704|     54|                }
  705|   133M|            }
  706|   133M|        }
  707|  1.01k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_typed_array_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  710|  34.9M|    {
  711|  34.9M|        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  34.9M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 34.9M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  712|  34.9M|        auto iter = typed_array_stack_.back();
  713|  34.9M|        if (!iter->done())
  ------------------
  |  Branch (713:13): [True: 34.9M, False: 0]
  ------------------
  714|  34.9M|        {
  715|  34.9M|            iter->next(visitor, *this, ec);
  716|  34.9M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  34.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 34.9M]
  |  |  ------------------
  ------------------
  717|      0|            {
  718|      0|                return;
  719|      0|            }
  720|  34.9M|            more_ = !cursor_mode_;
  721|  34.9M|        }
  722|  34.9M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5levelEv:
  420|   764k|    {
  421|   764k|        return static_cast<int>(state_stack_.size());
  422|   764k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12is_multi_dimEv:
  380|  79.8M|    {
  381|  79.8M|        return state_stack_.size() >=2 && state_stack_[state_stack_.size()-2].mode == parse_mode::multi_dim;
  ------------------
  |  Branch (381:16): [True: 79.8M, False: 0]
  |  Branch (381:43): [True: 68.7M, False: 11.0M]
  ------------------
  382|  79.8M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE27end_classical_array_storageERNS3_10error_codeE:
 1149|    745|    {
 1150|    745|        --nesting_depth_;
 1151|       |
 1152|    745|        more_ = !cursor_mode_;
 1153|    745|        if (level() == mark_level_)
  ------------------
  |  Branch (1153:13): [True: 0, False: 745]
  ------------------
 1154|      0|        {
 1155|      0|            more_ = false;
 1156|      0|        }
 1157|    745|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1157:13): [True: 239, False: 506]
  ------------------
 1158|    239|        {
 1159|    239|            stringref_map_stack_.pop_back();
 1160|    239|        }
 1161|    745|        state_stack_.pop_back();
 1162|    745|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  725|  32.8M|    {
  726|  32.8M|        read_tags(ec);
  727|  32.8M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  32.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 219, False: 32.8M]
  |  |  ------------------
  ------------------
  728|    219|        {
  729|    219|            return;
  730|    219|        }
  731|  32.8M|        auto c = source_.peek();
  732|  32.8M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  32.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 32.8M]
  |  |  ------------------
  ------------------
  733|      0|        {
  734|      0|            ec = cbor_errc::unexpected_eof;
  735|      0|            more_ = false;
  736|      0|            return;
  737|      0|        }
  738|  32.8M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
  739|  32.8M|        uint8_t info = get_additional_information(c.value);
  740|  32.8M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  33.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 32.8M]
  |  |  |  Branch (79:50): [True: 207k, False: 32.6M]
  |  |  |  Branch (79:50): [True: 7, False: 207k]
  |  |  ------------------
  ------------------
  741|      7|        {
  742|      7|            ec = cbor_errc::reserved_additional_info;
  743|      7|            more_ = false;
  744|      7|            return;
  745|      7|        }
  746|       |
  747|  32.8M|        switch (major_type)
  748|  32.8M|        {
  749|  10.1M|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (749:13): [True: 10.1M, False: 22.7M]
  ------------------
  750|  10.1M|            {
  751|  10.1M|                source_.ignore(1);
  752|  10.1M|                uint64_t val = read_unsigned_integer(info, ec);
  753|  10.1M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  10.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 10.1M]
  |  |  ------------------
  ------------------
  754|      3|                {
  755|      3|                    return;
  756|      3|                }
  757|  10.1M|                if (!stringref_map_stack_.empty() && other_tags_[stringref_tag])
  ------------------
  |  Branch (757:21): [True: 4.49M, False: 5.62M]
  |  Branch (757:21): [True: 37.1k, False: 10.0M]
  |  Branch (757:54): [True: 37.1k, False: 4.45M]
  ------------------
  758|  37.1k|                {
  759|  37.1k|                    other_tags_[stringref_tag] = false;
  760|  37.1k|                    if (val >= stringref_map_stack_.back().size())
  ------------------
  |  Branch (760:25): [True: 8, False: 37.0k]
  ------------------
  761|      8|                    {
  762|      8|                        ec = cbor_errc::stringref_too_large;
  763|      8|                        more_ = false;
  764|      8|                        return;
  765|      8|                    }
  766|  37.0k|                    auto index = static_cast<typename stringref_map::size_type>(val);
  767|  37.0k|                    if (index != val)
  ------------------
  |  Branch (767:25): [True: 0, False: 37.0k]
  ------------------
  768|      0|                    {
  769|      0|                        ec = cbor_errc::number_too_large;
  770|      0|                        more_ = false;
  771|      0|                        return;
  772|      0|                    }
  773|  37.0k|                    auto& str = stringref_map_stack_.back().at(index);
  774|  37.0k|                    switch (str.type)
  775|  37.0k|                    {
  776|  1.21k|                        case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (776:25): [True: 1.21k, False: 35.8k]
  ------------------
  777|  1.21k|                        {
  778|  1.21k|                            handle_string(visitor, jsoncons::string_view(str.str.data(),str.str.length()),ec);
  779|  1.21k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.21k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.21k]
  |  |  ------------------
  ------------------
  780|      0|                            {
  781|      0|                                return;
  782|      0|                            }
  783|  1.21k|                            break;
  784|  1.21k|                        }
  785|  35.8k|                        case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (785:25): [True: 35.8k, False: 1.21k]
  ------------------
  786|  35.8k|                        {
  787|  35.8k|                            read_byte_string_from_buffer read(byte_string_view(str.bytes));
  788|  35.8k|                            read_byte_string(read, visitor, ec);
  789|  35.8k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  35.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 35.8k]
  |  |  ------------------
  ------------------
  790|      0|                            {
  791|      0|                                return;
  792|      0|                            }
  793|  35.8k|                            break;
  794|  35.8k|                        }
  795|  35.8k|                        default:
  ------------------
  |  Branch (795:25): [True: 0, False: 37.0k]
  ------------------
  796|      0|                        {
  797|      0|                            ec = cbor_errc::invalid_major_type;
  798|      0|                            more_ = false;
  799|      0|                            return;
  800|  35.8k|                        }
  801|  37.0k|                    }
  802|  37.0k|                }
  803|  10.0M|                else
  804|  10.0M|                {
  805|  10.0M|                    semantic_tag tag = semantic_tag::none;
  806|  10.0M|                    if (other_tags_[item_tag])
  ------------------
  |  Branch (806:25): [True: 101k, False: 9.98M]
  ------------------
  807|   101k|                    {
  808|   101k|                        if (raw_tag_ == 1)
  ------------------
  |  Branch (808:29): [True: 1.31k, False: 99.7k]
  ------------------
  809|  1.31k|                        {
  810|  1.31k|                            tag = semantic_tag::epoch_second;
  811|  1.31k|                        }
  812|   101k|                        other_tags_[item_tag] = false;
  813|   101k|                    }
  814|  10.0M|                    visitor.uint64_value(val, tag, *this, ec);
  815|  10.0M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  10.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 10.0M]
  |  |  ------------------
  ------------------
  816|      0|                    {
  817|      0|                        return;
  818|      0|                    }
  819|  10.0M|                    more_ = !cursor_mode_;
  820|  10.0M|                }
  821|  10.1M|                break;
  822|  10.1M|            }
  823|  10.1M|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (823:13): [True: 1.99M, False: 30.8M]
  ------------------
  824|  1.99M|            {
  825|  1.99M|                source_.ignore(1);
  826|  1.99M|                read_negative_integer (info, visitor, ec);
  827|  1.99M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.99M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 19, False: 1.99M]
  |  |  ------------------
  ------------------
  828|     19|                {
  829|     19|                    return;
  830|     19|                }
  831|  1.99M|                break;
  832|  1.99M|            }
  833|  5.91M|            case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (833:13): [True: 5.91M, False: 26.9M]
  ------------------
  834|  5.91M|            {
  835|  5.91M|                read_byte_string_from_source read(this);
  836|  5.91M|                read_byte_string(read, visitor, ec);
  837|  5.91M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.91M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 189, False: 5.91M]
  |  |  ------------------
  ------------------
  838|    189|                {
  839|    189|                    return;
  840|    189|                }
  841|  5.91M|                break;
  842|  5.91M|            }
  843|  5.91M|            case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (843:13): [True: 1.91M, False: 30.9M]
  ------------------
  844|  1.91M|            {
  845|  1.91M|                source_.ignore(1);
  846|  1.91M|                auto sv = read_text_string_view(info, ec);
  847|  1.91M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.91M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 96, False: 1.91M]
  |  |  ------------------
  ------------------
  848|     96|                {
  849|     96|                    return;
  850|     96|                }
  851|  1.91M|                auto result = unicode_traits::validate(sv.data(),sv.size());
  852|  1.91M|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (852:21): [True: 57, False: 1.91M]
  ------------------
  853|     57|                {
  854|     57|                    ec = cbor_errc::invalid_utf8_text_string;
  855|     57|                    more_ = false;
  856|     57|                    return;
  857|     57|                }
  858|  1.91M|                handle_string(visitor, sv, ec);
  859|  1.91M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.91M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.91M]
  |  |  ------------------
  ------------------
  860|      0|                {
  861|      0|                    return;
  862|      0|                }
  863|  1.91M|                break;
  864|  1.91M|            }
  865|  1.91M|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (865:13): [True: 0, False: 32.8M]
  ------------------
  866|      0|            {
  867|      0|                JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
  868|      0|                break;
  869|  1.91M|            }
  870|  11.9M|            case jsoncons::cbor::detail::cbor_major_type::simple:
  ------------------
  |  Branch (870:13): [True: 11.9M, False: 20.8M]
  ------------------
  871|  11.9M|            {
  872|  11.9M|                switch (info)
  873|  11.9M|                {
  874|  2.07M|                    case 0x14:
  ------------------
  |  Branch (874:21): [True: 2.07M, False: 9.89M]
  ------------------
  875|  2.07M|                        source_.ignore(1);
  876|  2.07M|                        visitor.bool_value(false, semantic_tag::none, *this, ec);
  877|  2.07M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.07M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.07M]
  |  |  ------------------
  ------------------
  878|      0|                        {
  879|      0|                            return;
  880|      0|                        }
  881|  2.07M|                        more_ = !cursor_mode_;
  882|  2.07M|                        break;
  883|  11.3k|                    case 0x15:
  ------------------
  |  Branch (883:21): [True: 11.3k, False: 11.9M]
  ------------------
  884|  11.3k|                        source_.ignore(1);
  885|  11.3k|                        visitor.bool_value(true, semantic_tag::none, *this, ec);
  886|  11.3k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  11.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 11.3k]
  |  |  ------------------
  ------------------
  887|      0|                        {
  888|      0|                            return;
  889|      0|                        }
  890|  11.3k|                        more_ = !cursor_mode_;
  891|  11.3k|                        break;
  892|  9.80M|                    case 0x16:
  ------------------
  |  Branch (892:21): [True: 9.80M, False: 2.16M]
  ------------------
  893|  9.80M|                        source_.ignore(1);
  894|  9.80M|                        visitor.null_value(semantic_tag::none, *this, ec);
  895|  9.80M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.80M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9.80M]
  |  |  ------------------
  ------------------
  896|      0|                        {
  897|      0|                            return;
  898|      0|                        }
  899|  9.80M|                        more_ = !cursor_mode_;
  900|  9.80M|                        break;
  901|  42.1k|                    case 0x17:
  ------------------
  |  Branch (901:21): [True: 42.1k, False: 11.9M]
  ------------------
  902|  42.1k|                        source_.ignore(1);
  903|  42.1k|                        visitor.null_value(semantic_tag::undefined, *this, ec);
  904|  42.1k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  42.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 42.1k]
  |  |  ------------------
  ------------------
  905|      0|                        {
  906|      0|                            return;
  907|      0|                        }
  908|  42.1k|                        more_ = !cursor_mode_;
  909|  42.1k|                        break;
  910|  22.2k|                    case 0x19: // Half-Precision Float (two-byte IEEE 754)
  ------------------
  |  Branch (910:21): [True: 22.2k, False: 11.9M]
  ------------------
  911|  22.2k|                    {
  912|  22.2k|                        source_.ignore(1);
  913|  22.2k|                        uint64_t val = read_unsigned_integer(info, ec);
  914|  22.2k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  22.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 22.2k]
  |  |  ------------------
  ------------------
  915|      3|                        {
  916|      3|                            return;
  917|      3|                        }
  918|  22.2k|                        visitor.half_value(static_cast<uint16_t>(val), semantic_tag::none, *this, ec);
  919|  22.2k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  22.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 22.2k]
  |  |  ------------------
  ------------------
  920|      0|                        {
  921|      0|                            return;
  922|      0|                        }
  923|  22.2k|                        more_ = !cursor_mode_;
  924|  22.2k|                        break;
  925|  22.2k|                    }
  926|  5.05k|                    case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (926:21): [True: 5.05k, False: 11.9M]
  ------------------
  927|  9.27k|                    case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (927:21): [True: 4.21k, False: 11.9M]
  ------------------
  928|  9.27k|                    {
  929|  9.27k|                        source_.ignore(1);
  930|  9.27k|                        double val = read_double(info, ec);
  931|  9.27k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.27k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 9.27k]
  |  |  ------------------
  ------------------
  932|      2|                        {
  933|      2|                            return;
  934|      2|                        }
  935|  9.27k|                        semantic_tag tag = semantic_tag::none;
  936|  9.27k|                        if (other_tags_[item_tag])
  ------------------
  |  Branch (936:29): [True: 576, False: 8.69k]
  ------------------
  937|    576|                        {
  938|    576|                            if (raw_tag_ == 1)
  ------------------
  |  Branch (938:33): [True: 181, False: 395]
  ------------------
  939|    181|                            {
  940|    181|                                tag = semantic_tag::epoch_second;
  941|    181|                            }
  942|    576|                            other_tags_[item_tag] = false;
  943|    576|                        }
  944|  9.27k|                        visitor.double_value(val, tag, *this, ec);
  945|  9.27k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.27k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9.27k]
  |  |  ------------------
  ------------------
  946|      0|                        {
  947|      0|                            return;
  948|      0|                        }
  949|  9.27k|                        more_ = !cursor_mode_;
  950|  9.27k|                        break;
  951|  9.27k|                    }
  952|    143|                    default:
  ------------------
  |  Branch (952:21): [True: 143, False: 11.9M]
  ------------------
  953|    143|                    {
  954|    143|                        ec = cbor_errc::unknown_type;
  955|    143|                        more_ = false;
  956|    143|                        return;
  957|  9.27k|                    }
  958|  11.9M|                }
  959|  11.9M|                break;
  960|  11.9M|            }
  961|  11.9M|            case jsoncons::cbor::detail::cbor_major_type::array:
  ------------------
  |  Branch (961:13): [True: 652k, False: 32.1M]
  ------------------
  962|   652k|            {
  963|   652k|                if (other_tags_[item_tag])
  ------------------
  |  Branch (963:21): [True: 360k, False: 291k]
  ------------------
  964|   360k|                {
  965|   360k|                    switch (raw_tag_)
  966|   360k|                    {
  967|   183k|                        case 0x04:
  ------------------
  |  Branch (967:25): [True: 183k, False: 177k]
  ------------------
  968|   183k|                            source_.ignore(1);
  969|   183k|                            text_buffer_.clear();
  970|   183k|                            read_bigdecimal(info, text_buffer_, ec);
  971|   183k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   183k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 26, False: 183k]
  |  |  ------------------
  ------------------
  972|     26|                            {
  973|     26|                                return;
  974|     26|                            }
  975|   183k|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
  976|   183k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   183k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 183k]
  |  |  ------------------
  ------------------
  977|      0|                            {
  978|      0|                                return;
  979|      0|                            }
  980|   183k|                            more_ = !cursor_mode_;
  981|   183k|                            break;
  982|   112k|                        case 0x05:
  ------------------
  |  Branch (982:25): [True: 112k, False: 248k]
  ------------------
  983|   112k|                            source_.ignore(1);
  984|   112k|                            text_buffer_.clear();
  985|   112k|                            read_bigfloat(info, text_buffer_, ec);
  986|   112k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   112k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 18, False: 112k]
  |  |  ------------------
  ------------------
  987|     18|                            {
  988|     18|                                return;
  989|     18|                            }
  990|   112k|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
  991|   112k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   112k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 112k]
  |  |  ------------------
  ------------------
  992|      0|                            {
  993|      0|                                return;
  994|      0|                            }
  995|   112k|                            more_ = !cursor_mode_;
  996|   112k|                            break;
  997|  12.4k|                        case 40: // row-major storage
  ------------------
  |  Branch (997:25): [True: 12.4k, False: 348k]
  ------------------
  998|  12.4k|                            order_ = mdarray_order::row_major;
  999|  12.4k|                            read_mdarray_header(visitor, ec);
 1000|  12.4k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 47, False: 12.3k]
  |  |  ------------------
  ------------------
 1001|     47|                            {
 1002|     47|                                return;
 1003|     47|                            }
 1004|  12.3k|                            break;
 1005|  12.3k|                        case 1040: // column-major storage
  ------------------
  |  Branch (1005:25): [True: 7.82k, False: 353k]
  ------------------
 1006|  7.82k|                            order_ = mdarray_order::column_major;
 1007|  7.82k|                            read_mdarray_header(visitor, ec);
 1008|  7.82k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.82k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 21, False: 7.80k]
  |  |  ------------------
  ------------------
 1009|     21|                            {
 1010|     21|                                return;
 1011|     21|                            }
 1012|  7.80k|                            break;
 1013|  44.3k|                        default:
  ------------------
  |  Branch (1013:25): [True: 44.3k, False: 316k]
  ------------------
 1014|  44.3k|                            source_.ignore(1);
 1015|  44.3k|                            begin_array(info, visitor, ec);
 1016|  44.3k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  44.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 44.3k]
  |  |  ------------------
  ------------------
 1017|      1|                            {
 1018|      1|                                return;
 1019|      1|                            }
 1020|  44.3k|                            break;
 1021|   360k|                    }
 1022|   360k|                    other_tags_[item_tag] = false;
 1023|   360k|                }
 1024|   291k|                else
 1025|   291k|                {
 1026|   291k|                    source_.ignore(1);
 1027|   291k|                    begin_array(info, visitor, ec);
 1028|   291k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   291k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 291k]
  |  |  ------------------
  ------------------
 1029|      5|                    {
 1030|      5|                        return;
 1031|      5|                    }
 1032|   291k|                }
 1033|   652k|                break;
 1034|   652k|            }
 1035|   652k|            case jsoncons::cbor::detail::cbor_major_type::map:
  ------------------
  |  Branch (1035:13): [True: 268k, False: 32.5M]
  ------------------
 1036|   268k|            {
 1037|   268k|                source_.ignore(1);
 1038|   268k|                begin_object(info, visitor, ec);
 1039|   268k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   268k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 268k]
  |  |  ------------------
  ------------------
 1040|      3|                {
 1041|      3|                    return;
 1042|      3|                }
 1043|   268k|                break;
 1044|   268k|            }
 1045|   268k|            default:
  ------------------
  |  Branch (1045:13): [True: 0, False: 32.8M]
  ------------------
 1046|      0|                ec = cbor_errc::invalid_major_type;
 1047|      0|                more_ = false;
 1048|      0|                return;
 1049|  32.8M|        }
 1050|  32.8M|        other_tags_[item_tag] = false;
 1051|  32.8M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_tagsERNS3_10error_codeE:
 2212|  32.8M|    {
 2213|  32.8M|        auto c = source_.peek();
 2214|  32.8M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  32.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 110, False: 32.8M]
  |  |  ------------------
  ------------------
 2215|    110|        {
 2216|    110|            ec = cbor_errc::unexpected_eof;
 2217|    110|            more_ = false;
 2218|    110|            return;
 2219|    110|        }
 2220|  32.8M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 2221|  32.8M|        uint8_t info = get_additional_information(c.value);
 2222|  32.8M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  33.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 63, False: 32.8M]
  |  |  |  Branch (79:50): [True: 186k, False: 32.6M]
  |  |  |  Branch (79:50): [True: 63, False: 186k]
  |  |  ------------------
  ------------------
 2223|     63|        {
 2224|     63|            ec = cbor_errc::reserved_additional_info;
 2225|     63|            more_ = false;
 2226|     63|            return;
 2227|     63|        }
 2228|       |
 2229|  35.4M|        while (major_type == jsoncons::cbor::detail::cbor_major_type::semantic_tag)
  ------------------
  |  Branch (2229:16): [True: 2.62M, False: 32.8M]
  ------------------
 2230|  2.62M|        {
 2231|  2.62M|            source_.ignore(1);
 2232|  2.62M|            uint64_t val = read_unsigned_integer(info, ec);
 2233|  2.62M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.62M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 22, False: 2.62M]
  |  |  ------------------
  ------------------
 2234|     22|            {
 2235|     22|                return;
 2236|     22|            }
 2237|  2.62M|            switch(val)
 2238|  2.62M|            {
 2239|  55.3k|                case 25: // stringref
  ------------------
  |  Branch (2239:17): [True: 55.3k, False: 2.56M]
  ------------------
 2240|  55.3k|                    other_tags_[stringref_tag] = true;
 2241|  55.3k|                    break;
 2242|  6.13k|                case 256: // stringref-namespace
  ------------------
  |  Branch (2242:17): [True: 6.13k, False: 2.61M]
  ------------------
 2243|  6.13k|                    other_tags_[stringref_namespace_tag] = true;
 2244|  6.13k|                    break;
 2245|  2.56M|                default:
  ------------------
  |  Branch (2245:17): [True: 2.56M, False: 61.5k]
  ------------------
 2246|  2.56M|                    other_tags_[item_tag] = true;
 2247|  2.56M|                    raw_tag_ = val;
 2248|  2.56M|                    break;
 2249|  2.62M|            }
 2250|  2.62M|            c = source_.peek();
 2251|  2.62M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  2.62M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 27, False: 2.62M]
  |  |  ------------------
  ------------------
 2252|     27|            {
 2253|     27|                ec = cbor_errc::unexpected_eof;
 2254|     27|                more_ = false;
 2255|     27|                return;
 2256|     27|            }
 2257|  2.62M|            major_type = get_major_type(c.value);
 2258|  2.62M|        }
 2259|  32.8M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE14get_major_typeEh:
 2198|  77.6M|    {
 2199|  77.6M|        static constexpr uint8_t major_type_shift = 0x05;
 2200|  77.6M|        uint8_t value = type >> major_type_shift;
 2201|  77.6M|        return static_cast<jsoncons::cbor::detail::cbor_major_type>(value);
 2202|  77.6M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26get_additional_informationEh:
 2205|  83.2M|    {
 2206|  83.2M|        static constexpr uint8_t additional_information_mask = (1U << 5) - 1;
 2207|  83.2M|        uint8_t value = type & additional_information_mask;
 2208|  83.2M|        return value;
 2209|  83.2M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_unsigned_integerEhRNS3_10error_codeE:
 1728|  31.9M|    {
 1729|  31.9M|        switch (info)
 1730|  31.9M|        {
 1731|  31.4M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  31.4M|    0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x17
  |  |  ------------------
  |  |  |  Branch (18:10): [True: 10.3M, False: 21.6M]
  |  |  |  Branch (18:20): [True: 576k, False: 31.4M]
  |  |  |  Branch (18:30): [True: 1.10M, False: 30.8M]
  |  |  |  Branch (18:40): [True: 300k, False: 31.6M]
  |  |  |  Branch (18:50): [True: 3.95M, False: 28.0M]
  |  |  |  Branch (18:60): [True: 275k, False: 31.7M]
  |  |  |  Branch (18:70): [True: 1.98M, False: 29.9M]
  |  |  |  Branch (18:80): [True: 39.2k, False: 31.9M]
  |  |  |  Branch (18:90): [True: 16.5k, False: 31.9M]
  |  |  |  Branch (18:100): [True: 147k, False: 31.8M]
  |  |  |  Branch (18:110): [True: 77.6k, False: 31.8M]
  |  |  |  Branch (18:120): [True: 14.1k, False: 31.9M]
  |  |  |  Branch (18:130): [True: 133k, False: 31.8M]
  |  |  |  Branch (18:140): [True: 284k, False: 31.6M]
  |  |  |  Branch (18:150): [True: 76.2k, False: 31.9M]
  |  |  |  Branch (18:160): [True: 18.0k, False: 31.9M]
  |  |  |  Branch (18:170): [True: 120k, False: 31.8M]
  |  |  |  Branch (18:180): [True: 5.39k, False: 31.9M]
  |  |  |  Branch (18:190): [True: 9.12k, False: 31.9M]
  |  |  |  Branch (18:200): [True: 8.42k, False: 31.9M]
  |  |  |  Branch (18:210): [True: 30.3k, False: 31.9M]
  |  |  |  Branch (18:220): [True: 20.7k, False: 31.9M]
  |  |  ------------------
  ------------------
  |  Branch (1731:13): [True: 11.9M, False: 20.0M]
  ------------------
 1732|  31.4M|            {
 1733|  31.4M|                return info;
 1734|   646M|            }
 1735|   425k|            case 0x18: // Unsigned integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1735:13): [True: 425k, False: 31.5M]
  ------------------
 1736|   425k|            {
 1737|   425k|                uint8_t b;
 1738|   425k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1738:21): [True: 15, False: 425k]
  ------------------
 1739|     15|                {
 1740|     15|                    ec = cbor_errc::unexpected_eof;
 1741|     15|                    return uint64_t{};
 1742|     15|                }
 1743|   425k|                return b;
 1744|   425k|            }
 1745|  74.4k|            case 0x19: // Unsigned integer (two-byte uint16_t follows)
  ------------------
  |  Branch (1745:13): [True: 74.4k, False: 31.9M]
  ------------------
 1746|  74.4k|            {
 1747|  74.4k|                uint8_t buf[sizeof(uint16_t)];
 1748|  74.4k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1748:21): [True: 10, False: 74.4k]
  ------------------
 1749|     10|                {
 1750|     10|                    ec = cbor_errc::unexpected_eof;
 1751|     10|                    return uint64_t{};
 1752|     10|                }
 1753|  74.4k|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1754|  74.4k|                return u;
 1755|  74.4k|            }
 1756|  3.40k|            case 0x1a: // Unsigned integer (four-byte uint32_t follows)
  ------------------
  |  Branch (1756:13): [True: 3.40k, False: 31.9M]
  ------------------
 1757|  3.40k|            {
 1758|  3.40k|                uint8_t buf[sizeof(uint32_t)];
 1759|  3.40k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1759:21): [True: 1, False: 3.40k]
  ------------------
 1760|      1|                {
 1761|      1|                    ec = cbor_errc::unexpected_eof;
 1762|      1|                    return uint64_t{};
 1763|      1|                }
 1764|  3.40k|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1765|  3.40k|                return u;
 1766|  3.40k|            }
 1767|  7.92k|            case 0x1b: // Unsigned integer (eight-byte uint64_t follows)
  ------------------
  |  Branch (1767:13): [True: 7.92k, False: 31.9M]
  ------------------
 1768|  7.92k|            {
 1769|  7.92k|                uint8_t buf[sizeof(uint64_t)];
 1770|  7.92k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1770:21): [True: 0, False: 7.92k]
  ------------------
 1771|      0|                {
 1772|      0|                    ec = cbor_errc::unexpected_eof;
 1773|      0|                    return uint64_t{};
 1774|      0|                }
 1775|  7.92k|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1776|  7.92k|                return u;
 1777|  7.92k|            }
 1778|     17|            default:
  ------------------
  |  Branch (1778:13): [True: 17, False: 31.9M]
  ------------------
 1779|     17|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (1779:22): [True: 14, False: 3]
  ------------------
 1780|     17|                return uint64_t{};
 1781|  31.9M|        }
 1782|  31.9M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13handle_stringERNS_21basic_generic_visitorIcEERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERNS3_10error_codeE:
 2262|  1.91M|    {
 2263|  1.91M|        semantic_tag tag = semantic_tag::none;
 2264|  1.91M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2264:13): [True: 17.4k, False: 1.89M]
  ------------------
 2265|  17.4k|        {
 2266|  17.4k|            switch (raw_tag_)
 2267|  17.4k|            {
 2268|     36|                case 0:
  ------------------
  |  Branch (2268:17): [True: 36, False: 17.3k]
  ------------------
 2269|     36|                    tag = semantic_tag::datetime;
 2270|     36|                    break;
 2271|    969|                case 32:
  ------------------
  |  Branch (2271:17): [True: 969, False: 16.4k]
  ------------------
 2272|    969|                    tag = semantic_tag::uri;
 2273|    969|                    break;
 2274|  13.6k|                case 33:
  ------------------
  |  Branch (2274:17): [True: 13.6k, False: 3.71k]
  ------------------
 2275|  13.6k|                    tag = semantic_tag::base64url;
 2276|  13.6k|                    break;
 2277|    222|                case 34:
  ------------------
  |  Branch (2277:17): [True: 222, False: 17.1k]
  ------------------
 2278|    222|                    tag = semantic_tag::base64;
 2279|    222|                    break;
 2280|  2.48k|                default:
  ------------------
  |  Branch (2280:17): [True: 2.48k, False: 14.9k]
  ------------------
 2281|  2.48k|                    break;
 2282|  17.4k|            }
 2283|  17.4k|            other_tags_[item_tag] = false;
 2284|  17.4k|        }
 2285|  1.91M|        visitor.string_value(v, tag, *this, ec);
 2286|  1.91M|        more_ = !cursor_mode_;
 2287|  1.91M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferC2ERKNS_16byte_string_viewE:
  291|  35.8k|            : bytes(b)
  292|  35.8k|        {
  293|  35.8k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_bufferEEEvT_RNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2304|  35.8k|    {
 2305|  35.8k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2305:13): [True: 30.6k, False: 5.19k]
  ------------------
 2306|  30.6k|        {
 2307|  30.6k|            switch (raw_tag_)
 2308|  30.6k|            {
 2309|    366|                case 0x2:
  ------------------
  |  Branch (2309:17): [True: 366, False: 30.3k]
  ------------------
 2310|    366|                {
 2311|    366|                    auto bytes = read.view(ec);
 2312|    366|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    366|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 366]
  |  |  ------------------
  ------------------
 2313|      0|                    {
 2314|      0|                        more_ = false;
 2315|      0|                        return;
 2316|      0|                    }
 2317|    366|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2318|    366|                    text_buffer_.clear();
 2319|    366|                    b.append_to_buffer(text_buffer_);
 2320|    366|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2321|    366|                    more_ = !cursor_mode_;
 2322|    366|                    break;
 2323|    366|                }
 2324|    179|                case 0x3:
  ------------------
  |  Branch (2324:17): [True: 179, False: 30.5k]
  ------------------
 2325|    179|                {
 2326|    179|                    auto bytes = read.view(ec);
 2327|    179|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    179|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 179]
  |  |  ------------------
  ------------------
 2328|      0|                    {
 2329|      0|                        more_ = false;
 2330|      0|                        return;
 2331|      0|                    }
 2332|    179|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2333|    179|                    b = -1 - b;
 2334|    179|                    text_buffer_.clear();
 2335|    179|                    b.append_to_buffer(text_buffer_);
 2336|    179|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2337|    179|                    more_ = !cursor_mode_;
 2338|    179|                    break;
 2339|    179|                }
 2340|     18|                case 0x15:
  ------------------
  |  Branch (2340:17): [True: 18, False: 30.6k]
  ------------------
 2341|     19|                case 0x16:
  ------------------
  |  Branch (2341:17): [True: 1, False: 30.6k]
  ------------------
 2342|  1.23k|                case 0x17:
  ------------------
  |  Branch (2342:17): [True: 1.21k, False: 29.4k]
  ------------------
 2343|  1.23k|                {
 2344|  1.23k|                    auto bytes = read.view(ec);
 2345|  1.23k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.23k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.23k]
  |  |  ------------------
  ------------------
 2346|      0|                    {
 2347|      0|                        more_ = false;
 2348|      0|                        return;
 2349|      0|                    }
 2350|  1.23k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2350:46): [True: 18, False: 1.21k]
  ------------------
 2351|  1.23k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2351:27): [True: 1, False: 1.21k]
  ------------------
 2352|  1.21k|                        : semantic_tag::base16;
 2353|  1.23k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2354|  1.23k|                    more_ = !cursor_mode_;
 2355|  1.23k|                    break;
 2356|  1.23k|                }
 2357|    113|                case 0x40:
  ------------------
  |  Branch (2357:17): [True: 113, False: 30.5k]
  ------------------
 2358|    113|                {
 2359|    113|                    array_tag_ = typed_array_tags::uint8;
 2360|    113|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2361|    113|                    read(array_buffer, ec);
 2362|    113|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    113|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 113]
  |  |  ------------------
  ------------------
 2363|      0|                    {
 2364|      0|                        more_ = false;
 2365|      0|                        return;
 2366|      0|                    }
 2367|    113|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2368|    113|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2368:25): [True: 113, False: 0]
  |  Branch (2368:42): [True: 0, False: 113]
  ------------------
 2369|      0|                    {
 2370|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2370:29): [True: 0, False: 0]
  ------------------
 2371|      0|                        {
 2372|      0|                            ec = cbor_errc::bad_extents;
 2373|      0|                            more_ = false;
 2374|      0|                            return;
 2375|      0|                        }
 2376|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2377|      0|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2378|      0|                        typed_array_stack_.push_back(iter);
 2379|      0|                        iter->next(visitor, *this, ec);
 2380|      0|                    }
 2381|    113|                    else
 2382|    113|                    {
 2383|    113|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2384|    113|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2385|    113|                        typed_array_stack_.push_back(iter);
 2386|    113|                        iter->next(visitor, *this, ec);
 2387|    113|                    }
 2388|    113|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2389|    113|                    more_ = !cursor_mode_;
 2390|    113|                    break;
 2391|    113|                }
 2392|     80|                case 0x44:
  ------------------
  |  Branch (2392:17): [True: 80, False: 30.6k]
  ------------------
 2393|     80|                {
 2394|     80|                    array_tag_ = typed_array_tags::uint8;
 2395|     80|                    typed_array_tag_ = semantic_tag::clamped;
 2396|     80|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2397|     80|                    read(array_buffer, ec);
 2398|     80|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     80|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 80]
  |  |  ------------------
  ------------------
 2399|      0|                    {
 2400|      0|                        more_ = false;
 2401|      0|                        return;
 2402|      0|                    }
 2403|     80|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2404|     80|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2404:25): [True: 80, False: 0]
  |  Branch (2404:42): [True: 0, False: 80]
  ------------------
 2405|      0|                    {
 2406|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2406:29): [True: 0, False: 0]
  ------------------
 2407|      0|                        {
 2408|      0|                            ec = cbor_errc::bad_extents;
 2409|      0|                            more_ = false;
 2410|      0|                            return;
 2411|      0|                        }
 2412|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2413|      0|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2414|      0|                        typed_array_stack_.push_back(iter);
 2415|      0|                        iter->next(visitor, *this, ec);
 2416|      0|                    }
 2417|     80|                    else
 2418|     80|                    {
 2419|     80|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2420|     80|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 2421|     80|                        typed_array_stack_.push_back(iter);
 2422|     80|                        iter->next(visitor, *this, ec);
 2423|     80|                    }
 2424|     80|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2425|     80|                    more_ = !cursor_mode_;
 2426|     80|                    break;
 2427|     80|                }
 2428|    596|                case 0x41:
  ------------------
  |  Branch (2428:17): [True: 596, False: 30.0k]
  ------------------
 2429|  3.33k|                case 0x45:
  ------------------
  |  Branch (2429:17): [True: 2.74k, False: 27.9k]
  ------------------
 2430|  3.33k|                {
 2431|  3.33k|                    array_tag_ = typed_array_tags::uint16;
 2432|  3.33k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2433|  3.33k|                    read(array_buffer, ec);
 2434|  3.33k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.33k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.33k]
  |  |  ------------------
  ------------------
 2435|      0|                    {
 2436|      0|                        more_ = false;
 2437|      0|                        return;
 2438|      0|                    }
 2439|  3.33k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2440|  3.33k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2441|  3.33k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2442|  3.33k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2442:25): [True: 596, False: 2.74k]
  ------------------
 2443|    596|                    {
 2444|   230k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2444:49): [True: 230k, False: 596]
  ------------------
 2445|   230k|                        {
 2446|   230k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2447|   230k|                        }
 2448|    596|                    }
 2449|  3.33k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2449:25): [True: 3.33k, False: 0]
  |  Branch (2449:42): [True: 0, False: 3.33k]
  ------------------
 2450|      0|                    {
 2451|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2451:29): [True: 0, False: 0]
  ------------------
 2452|      0|                        {
 2453|      0|                            ec = cbor_errc::bad_extents;
 2454|      0|                            more_ = false;
 2455|      0|                            return;
 2456|      0|                        }
 2457|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2458|      0|                            typed_array_tags::uint16, extents_, order_, alloc_);
 2459|      0|                        typed_array_stack_.push_back(iter);
 2460|      0|                        iter->next(visitor, *this, ec);
 2461|      0|                    }
 2462|  3.33k|                    else
 2463|  3.33k|                    {
 2464|  3.33k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2465|  3.33k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 2466|  3.33k|                        typed_array_stack_.push_back(iter);
 2467|  3.33k|                        iter->next(visitor, *this, ec);
 2468|  3.33k|                    }
 2469|  3.33k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2470|  3.33k|                    more_ = !cursor_mode_;
 2471|  3.33k|                    break;
 2472|  3.33k|                }
 2473|    391|                case 0x42:
  ------------------
  |  Branch (2473:17): [True: 391, False: 30.2k]
  ------------------
 2474|    842|                case 0x46:
  ------------------
  |  Branch (2474:17): [True: 451, False: 30.2k]
  ------------------
 2475|    842|                {
 2476|    842|                    array_tag_ = typed_array_tags::uint32;
 2477|    842|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2478|    842|                    read(array_buffer, ec);
 2479|    842|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    842|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 842]
  |  |  ------------------
  ------------------
 2480|      0|                    {
 2481|      0|                        more_ = false;
 2482|      0|                        return;
 2483|      0|                    }
 2484|    842|                    const uint8_t tag = (uint8_t)raw_tag_;
 2485|    842|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2486|    842|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2487|    842|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2487:25): [True: 391, False: 451]
  ------------------
 2488|    391|                    {
 2489|  1.11M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2489:49): [True: 1.11M, False: 391]
  ------------------
 2490|  1.11M|                        {
 2491|  1.11M|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2492|  1.11M|                        }
 2493|    391|                    }
 2494|    842|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2494:25): [True: 842, False: 0]
  |  Branch (2494:42): [True: 0, False: 842]
  ------------------
 2495|      0|                    {
 2496|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2496:29): [True: 0, False: 0]
  ------------------
 2497|      0|                        {
 2498|      0|                            ec = cbor_errc::bad_extents;
 2499|      0|                            more_ = false;
 2500|      0|                            return;
 2501|      0|                        }
 2502|      0|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2503|      0|                            typed_array_tags::uint32, extents_, order_, alloc_);
 2504|      0|                        typed_array_stack_.push_back(iter);
 2505|      0|                        iter->next(visitor, *this, ec);
 2506|      0|                    }
 2507|    842|                    else
 2508|    842|                    {
 2509|    842|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2510|    842|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 2511|    842|                        typed_array_stack_.push_back(iter);
 2512|    842|                        iter->next(visitor, *this, ec);
 2513|    842|                    }
 2514|    842|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2515|    842|                    more_ = !cursor_mode_;
 2516|    842|                    break;
 2517|    842|                }
 2518|    767|                case 0x43:
  ------------------
  |  Branch (2518:17): [True: 767, False: 29.9k]
  ------------------
 2519|  1.02k|                case 0x47:
  ------------------
  |  Branch (2519:17): [True: 254, False: 30.4k]
  ------------------
 2520|  1.02k|                {
 2521|  1.02k|                    array_tag_ = typed_array_tags::uint64;
 2522|  1.02k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2523|  1.02k|                    read(array_buffer, ec);
 2524|  1.02k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.02k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.02k]
  |  |  ------------------
  ------------------
 2525|      0|                    {
 2526|      0|                        more_ = false;
 2527|      0|                        return;
 2528|      0|                    }
 2529|  1.02k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2530|  1.02k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2531|  1.02k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2532|  1.02k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2532:25): [True: 767, False: 254]
  ------------------
 2533|    767|                    {
 2534|   439k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2534:49): [True: 439k, False: 767]
  ------------------
 2535|   439k|                        {
 2536|   439k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2537|   439k|                        }
 2538|    767|                    }
 2539|  1.02k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2539:25): [True: 1.02k, False: 0]
  |  Branch (2539:42): [True: 0, False: 1.02k]
  ------------------
 2540|      0|                    {
 2541|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2541:29): [True: 0, False: 0]
  ------------------
 2542|      0|                        {
 2543|      0|                            ec = cbor_errc::bad_extents;
 2544|      0|                            more_ = false;
 2545|      0|                            return;
 2546|      0|                        }
 2547|      0|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2548|      0|                            typed_array_tags::uint64, extents_, order_, alloc_);
 2549|      0|                        typed_array_stack_.push_back(iter);
 2550|      0|                        iter->next(visitor, *this, ec);
 2551|      0|                    }
 2552|  1.02k|                    else
 2553|  1.02k|                    {
 2554|  1.02k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2555|  1.02k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 2556|  1.02k|                        typed_array_stack_.push_back(iter);
 2557|  1.02k|                        iter->next(visitor, *this, ec);
 2558|  1.02k|                    }
 2559|  1.02k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2560|  1.02k|                    more_ = !cursor_mode_;
 2561|  1.02k|                    break;
 2562|  1.02k|                }
 2563|  1.42k|                case 0x48:
  ------------------
  |  Branch (2563:17): [True: 1.42k, False: 29.2k]
  ------------------
 2564|  1.42k|                {
 2565|  1.42k|                    array_tag_ = typed_array_tags::int8;
 2566|  1.42k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2567|  1.42k|                    read(array_buffer, ec);
 2568|  1.42k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.42k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.42k]
  |  |  ------------------
  ------------------
 2569|      0|                    {
 2570|      0|                        more_ = false;
 2571|      0|                        return;
 2572|      0|                    }
 2573|  1.42k|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2574|  1.42k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2574:25): [True: 1.42k, False: 0]
  |  Branch (2574:42): [True: 0, False: 1.42k]
  ------------------
 2575|      0|                    {
 2576|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2576:29): [True: 0, False: 0]
  ------------------
 2577|      0|                        {
 2578|      0|                            ec = cbor_errc::bad_extents;
 2579|      0|                            more_ = false;
 2580|      0|                            return;
 2581|      0|                        }
 2582|      0|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2583|      0|                            typed_array_tags::int8, extents_, order_, alloc_);
 2584|      0|                        typed_array_stack_.push_back(iter);
 2585|      0|                        iter->next(visitor, *this, ec);
 2586|      0|                    }
 2587|  1.42k|                    else
 2588|  1.42k|                    {
 2589|  1.42k|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2590|  1.42k|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 2591|  1.42k|                        typed_array_stack_.push_back(iter);
 2592|  1.42k|                        iter->next(visitor, *this, ec);
 2593|  1.42k|                    }
 2594|  1.42k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2595|  1.42k|                    more_ = !cursor_mode_;
 2596|  1.42k|                    break;
 2597|  1.42k|                }
 2598|  4.78k|                case 0x49:
  ------------------
  |  Branch (2598:17): [True: 4.78k, False: 25.9k]
  ------------------
 2599|  5.76k|                case 0x4d:
  ------------------
  |  Branch (2599:17): [True: 987, False: 29.6k]
  ------------------
 2600|  5.76k|                {
 2601|  5.76k|                    array_tag_ = typed_array_tags::int16;
 2602|  5.76k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2603|  5.76k|                    read(array_buffer, ec);
 2604|  5.76k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.76k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.76k]
  |  |  ------------------
  ------------------
 2605|      0|                    {
 2606|      0|                        more_ = false;
 2607|      0|                        return;
 2608|      0|                    }
 2609|  5.76k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2610|  5.76k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2611|  5.76k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2612|  5.76k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2612:25): [True: 4.78k, False: 987]
  ------------------
 2613|  4.78k|                    {
 2614|  30.8k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2614:49): [True: 26.1k, False: 4.78k]
  ------------------
 2615|  26.1k|                        {
 2616|  26.1k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2617|  26.1k|                        }
 2618|  4.78k|                    }
 2619|  5.76k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2619:25): [True: 5.76k, False: 0]
  |  Branch (2619:42): [True: 0, False: 5.76k]
  ------------------
 2620|      0|                    {
 2621|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2621:29): [True: 0, False: 0]
  ------------------
 2622|      0|                        {
 2623|      0|                            ec = cbor_errc::bad_extents;
 2624|      0|                            more_ = false;
 2625|      0|                            return;
 2626|      0|                        }
 2627|      0|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2628|      0|                            typed_array_tags::int16, extents_, order_, alloc_);
 2629|      0|                        typed_array_stack_.push_back(iter);
 2630|      0|                        iter->next(visitor, *this, ec);
 2631|      0|                    }
 2632|  5.76k|                    else
 2633|  5.76k|                    {
 2634|  5.76k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2635|  5.76k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 2636|  5.76k|                        typed_array_stack_.push_back(iter);
 2637|  5.76k|                        iter->next(visitor, *this, ec);
 2638|  5.76k|                    }
 2639|  5.76k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2640|  5.76k|                    more_ = !cursor_mode_;
 2641|  5.76k|                    break;
 2642|  5.76k|                }
 2643|    360|                case 0x4a:
  ------------------
  |  Branch (2643:17): [True: 360, False: 30.3k]
  ------------------
 2644|    639|                case 0x4e:
  ------------------
  |  Branch (2644:17): [True: 279, False: 30.4k]
  ------------------
 2645|    639|                {
 2646|    639|                    array_tag_ = typed_array_tags::int32;
 2647|    639|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2648|    639|                    read(array_buffer, ec);
 2649|    639|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    639|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 639]
  |  |  ------------------
  ------------------
 2650|      0|                    {
 2651|      0|                        more_ = false;
 2652|      0|                        return;
 2653|      0|                    }
 2654|    639|                    const uint8_t tag = (uint8_t)raw_tag_;
 2655|    639|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2656|    639|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2657|    639|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2657:25): [True: 360, False: 279]
  ------------------
 2658|    360|                    {
 2659|   365k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2659:49): [True: 365k, False: 360]
  ------------------
 2660|   365k|                        {
 2661|   365k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2662|   365k|                        }
 2663|    360|                    }
 2664|    639|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2664:25): [True: 639, False: 0]
  |  Branch (2664:42): [True: 0, False: 639]
  ------------------
 2665|      0|                    {
 2666|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2666:29): [True: 0, False: 0]
  ------------------
 2667|      0|                        {
 2668|      0|                            ec = cbor_errc::bad_extents;
 2669|      0|                            more_ = false;
 2670|      0|                            return;
 2671|      0|                        }
 2672|      0|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2673|      0|                            typed_array_tags::int32, extents_, order_, alloc_);
 2674|      0|                        typed_array_stack_.push_back(iter);
 2675|      0|                        iter->next(visitor, *this, ec);
 2676|      0|                    }
 2677|    639|                    else
 2678|    639|                    {
 2679|    639|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2680|    639|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 2681|    639|                        typed_array_stack_.push_back(iter);
 2682|    639|                        iter->next(visitor, *this, ec);
 2683|    639|                    }
 2684|    639|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2685|    639|                    more_ = !cursor_mode_;
 2686|    639|                    break;
 2687|    639|                }
 2688|  1.17k|                case 0x4b:
  ------------------
  |  Branch (2688:17): [True: 1.17k, False: 29.5k]
  ------------------
 2689|  1.17k|                case 0x4f:
  ------------------
  |  Branch (2689:17): [True: 0, False: 30.6k]
  ------------------
 2690|  1.17k|                {
 2691|  1.17k|                    array_tag_ = typed_array_tags::int64;
 2692|  1.17k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2693|  1.17k|                    read(array_buffer, ec);
 2694|  1.17k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.17k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.17k]
  |  |  ------------------
  ------------------
 2695|      0|                    {
 2696|      0|                        more_ = false;
 2697|      0|                        return;
 2698|      0|                    }
 2699|  1.17k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2700|  1.17k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2701|  1.17k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2702|  1.17k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2702:25): [True: 1.17k, False: 0]
  ------------------
 2703|  1.17k|                    {
 2704|   130k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2704:49): [True: 129k, False: 1.17k]
  ------------------
 2705|   129k|                        {
 2706|   129k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2707|   129k|                        }
 2708|  1.17k|                    }
 2709|  1.17k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2709:25): [True: 1.17k, False: 0]
  |  Branch (2709:42): [True: 0, False: 1.17k]
  ------------------
 2710|      0|                    {
 2711|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2711:29): [True: 0, False: 0]
  ------------------
 2712|      0|                        {
 2713|      0|                            ec = cbor_errc::bad_extents;
 2714|      0|                            more_ = false;
 2715|      0|                            return;
 2716|      0|                        }
 2717|      0|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2718|      0|                            typed_array_tags::int64, extents_, order_, alloc_);
 2719|      0|                        typed_array_stack_.push_back(iter);
 2720|      0|                        iter->next(visitor, *this, ec);
 2721|      0|                    }
 2722|  1.17k|                    else
 2723|  1.17k|                    {
 2724|  1.17k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2725|  1.17k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 2726|  1.17k|                        typed_array_stack_.push_back(iter);
 2727|  1.17k|                        iter->next(visitor, *this, ec);
 2728|  1.17k|                    }
 2729|  1.17k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2730|  1.17k|                    more_ = !cursor_mode_;
 2731|  1.17k|                    break;
 2732|  1.17k|                }
 2733|  6.02k|                case 0x50:
  ------------------
  |  Branch (2733:17): [True: 6.02k, False: 24.6k]
  ------------------
 2734|  6.15k|                case 0x54:
  ------------------
  |  Branch (2734:17): [True: 124, False: 30.5k]
  ------------------
 2735|  6.15k|                {
 2736|  6.15k|                    array_tag_ = typed_array_tags::half_float;
 2737|  6.15k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2738|  6.15k|                    read(array_buffer, ec);
 2739|  6.15k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.15k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.15k]
  |  |  ------------------
  ------------------
 2740|      0|                    {
 2741|      0|                        more_ = false;
 2742|      0|                        return;
 2743|      0|                    }
 2744|  6.15k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2745|  6.15k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2746|  6.15k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2747|  6.15k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2747:25): [True: 6.02k, False: 124]
  ------------------
 2748|  6.02k|                    {
 2749|  28.8k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2749:49): [True: 22.8k, False: 6.02k]
  ------------------
 2750|  22.8k|                        {
 2751|  22.8k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2752|  22.8k|                        }
 2753|  6.02k|                    }
 2754|  6.15k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2754:25): [True: 6.15k, False: 0]
  |  Branch (2754:42): [True: 0, False: 6.15k]
  ------------------
 2755|      0|                    {
 2756|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2756:29): [True: 0, False: 0]
  ------------------
 2757|      0|                        {
 2758|      0|                            ec = cbor_errc::bad_extents;
 2759|      0|                            more_ = false;
 2760|      0|                            return;
 2761|      0|                        }
 2762|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2763|      0|                            typed_array_tags::half_float, extents_, order_, alloc_);
 2764|      0|                        typed_array_stack_.push_back(iter);
 2765|      0|                        iter->next(visitor, *this, ec);
 2766|      0|                    }
 2767|  6.15k|                    else
 2768|  6.15k|                    {
 2769|  6.15k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2770|  6.15k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 2771|  6.15k|                        typed_array_stack_.push_back(iter);
 2772|  6.15k|                        iter->next(visitor, *this, ec);
 2773|  6.15k|                    }
 2774|  6.15k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2775|  6.15k|                    more_ = !cursor_mode_;
 2776|  6.15k|                    break;
 2777|  6.15k|                }
 2778|    177|                case 0x51:
  ------------------
  |  Branch (2778:17): [True: 177, False: 30.5k]
  ------------------
 2779|    627|                case 0x55:
  ------------------
  |  Branch (2779:17): [True: 450, False: 30.2k]
  ------------------
 2780|    627|                {
 2781|    627|                    array_tag_ = typed_array_tags::float32;
 2782|    627|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2783|    627|                    read(array_buffer, ec);
 2784|    627|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    627|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 627]
  |  |  ------------------
  ------------------
 2785|      0|                    {
 2786|      0|                        more_ = false;
 2787|      0|                        return;
 2788|      0|                    }
 2789|    627|                    const uint8_t tag = (uint8_t)raw_tag_;
 2790|    627|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2791|    627|                    auto ta = typed_array_cast<float>(array_buffer);
 2792|    627|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2792:25): [True: 177, False: 450]
  ------------------
 2793|    177|                    {
 2794|  42.1k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2794:49): [True: 42.0k, False: 177]
  ------------------
 2795|  42.0k|                        {
 2796|  42.0k|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2797|  42.0k|                        }
 2798|    177|                    }
 2799|    627|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2799:25): [True: 627, False: 0]
  |  Branch (2799:42): [True: 0, False: 627]
  ------------------
 2800|      0|                    {
 2801|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2801:29): [True: 0, False: 0]
  ------------------
 2802|      0|                        {
 2803|      0|                            ec = cbor_errc::bad_extents;
 2804|      0|                            more_ = false;
 2805|      0|                            return;
 2806|      0|                        }
 2807|      0|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2808|      0|                            typed_array_tags::float32, extents_, order_, alloc_);
 2809|      0|                        typed_array_stack_.push_back(iter);
 2810|      0|                        iter->next(visitor, *this, ec);
 2811|      0|                    }
 2812|    627|                    else
 2813|    627|                    {
 2814|    627|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2815|    627|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 2816|    627|                        typed_array_stack_.push_back(iter);
 2817|    627|                        iter->next(visitor, *this, ec);
 2818|    627|                    }
 2819|    627|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2820|    627|                    more_ = !cursor_mode_;
 2821|    627|                    break;
 2822|    627|                }
 2823|  2.85k|                case 0x52:
  ------------------
  |  Branch (2823:17): [True: 2.85k, False: 27.8k]
  ------------------
 2824|  6.11k|                case 0x56:
  ------------------
  |  Branch (2824:17): [True: 3.26k, False: 27.4k]
  ------------------
 2825|  6.11k|                {
 2826|  6.11k|                    array_tag_ = typed_array_tags::float64;
 2827|  6.11k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2828|  6.11k|                    read(array_buffer, ec);
 2829|  6.11k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.11k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.11k]
  |  |  ------------------
  ------------------
 2830|      0|                    {
 2831|      0|                        more_ = false;
 2832|      0|                        return;
 2833|      0|                    }
 2834|  6.11k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2835|  6.11k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2836|  6.11k|                    auto ta = typed_array_cast<double>(array_buffer);
 2837|  6.11k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2837:25): [True: 2.85k, False: 3.26k]
  ------------------
 2838|  2.85k|                    {
 2839|   330k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2839:49): [True: 327k, False: 2.85k]
  ------------------
 2840|   327k|                        {
 2841|   327k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2842|   327k|                        }
 2843|  2.85k|                    }
 2844|  6.11k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2844:25): [True: 6.11k, False: 0]
  |  Branch (2844:42): [True: 0, False: 6.11k]
  ------------------
 2845|      0|                    {
 2846|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2846:29): [True: 0, False: 0]
  ------------------
 2847|      0|                        {
 2848|      0|                            ec = cbor_errc::bad_extents;
 2849|      0|                            more_ = false;
 2850|      0|                            return;
 2851|      0|                        }
 2852|      0|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2853|      0|                            typed_array_tags::float64, extents_, order_, alloc_);
 2854|      0|                        typed_array_stack_.push_back(iter);
 2855|      0|                        iter->next(visitor, *this, ec);
 2856|      0|                    }
 2857|  6.11k|                    else
 2858|  6.11k|                    {
 2859|  6.11k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2860|  6.11k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 2861|  6.11k|                        typed_array_stack_.push_back(iter);
 2862|  6.11k|                        iter->next(visitor, *this, ec);
 2863|  6.11k|                    }
 2864|  6.11k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2865|  6.11k|                    more_ = !cursor_mode_;
 2866|  6.11k|                    break;
 2867|  6.11k|                }
 2868|  1.60k|                default:
  ------------------
  |  Branch (2868:17): [True: 1.60k, False: 29.0k]
  ------------------
 2869|  1.60k|                {
 2870|  1.60k|                    auto bytes = read.view(ec);
 2871|  1.60k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.60k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.60k]
  |  |  ------------------
  ------------------
 2872|      0|                    {
 2873|      0|                        more_ = false;
 2874|      0|                        return;
 2875|      0|                    }
 2876|  1.60k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 2877|  1.60k|                    more_ = !cursor_mode_;
 2878|  1.60k|                    break;
 2879|  1.60k|                }
 2880|  30.6k|            }
 2881|  30.6k|            other_tags_[item_tag] = false;
 2882|  30.6k|        }
 2883|  5.19k|        else
 2884|  5.19k|        {
 2885|  5.19k|            auto bytes = read.view(ec);
 2886|  5.19k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.19k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.19k]
  |  |  ------------------
  ------------------
 2887|      0|            {
 2888|      0|                return;
 2889|      0|            }
 2890|  5.19k|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 2891|  5.19k|            more_ = !cursor_mode_;
 2892|  5.19k|        }
 2893|  35.8k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_buffer4viewERNS3_10error_codeE:
  306|  8.58k|        {
  307|  8.58k|            return bytes;
  308|  8.58k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  296|  27.2k|        {
  297|  27.2k|            c.clear();
  298|  27.2k|            c.reserve(bytes.size());
  299|  27.2k|            for (auto b : bytes)
  ------------------
  |  Branch (299:25): [True: 31.0M, False: 27.2k]
  ------------------
  300|  31.0M|            {
  301|  31.0M|                c.push_back(b);
  302|  31.0M|            }
  303|  27.2k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26get_typed_array_endiannessEh:
 2290|   215k|    {
 2291|   215k|        return ((tag & detail::cbor_array_tags_e_mask) >> detail::cbor_array_tags_e_shift) == 0 ? jsoncons::endian::big : jsoncons::endian::little; 
  ------------------
  |  Branch (2291:16): [True: 71.1k, False: 144k]
  ------------------
 2292|   215k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_negative_integerEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1623|  1.99M|    {
 1624|  1.99M|        semantic_tag tag = semantic_tag::none;
 1625|  1.99M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (1625:13): [True: 21.4k, False: 1.97M]
  ------------------
 1626|  21.4k|        {
 1627|  21.4k|            if (raw_tag_ == 1)
  ------------------
  |  Branch (1627:17): [True: 61, False: 21.4k]
  ------------------
 1628|     61|            {
 1629|     61|                tag = semantic_tag::epoch_second;
 1630|     61|            }
 1631|  21.4k|            other_tags_[item_tag] = false;
 1632|  21.4k|        }
 1633|       |
 1634|  1.99M|        switch (info)
 1635|  1.99M|        {
 1636|  1.95M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  1.95M|    0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x17
  |  |  ------------------
  |  |  |  Branch (18:10): [True: 10.9k, False: 1.98M]
  |  |  |  Branch (18:20): [True: 1.17k, False: 1.99M]
  |  |  |  Branch (18:30): [True: 3.87k, False: 1.99M]
  |  |  |  Branch (18:40): [True: 6.01k, False: 1.99M]
  |  |  |  Branch (18:50): [True: 4.89k, False: 1.99M]
  |  |  |  Branch (18:60): [True: 66.7k, False: 1.92M]
  |  |  |  Branch (18:70): [True: 8.68k, False: 1.98M]
  |  |  |  Branch (18:80): [True: 933k, False: 1.06M]
  |  |  |  Branch (18:90): [True: 37.4k, False: 1.95M]
  |  |  |  Branch (18:100): [True: 36.9k, False: 1.95M]
  |  |  |  Branch (18:110): [True: 702k, False: 1.29M]
  |  |  |  Branch (18:120): [True: 1.02k, False: 1.99M]
  |  |  |  Branch (18:130): [True: 15.8k, False: 1.98M]
  |  |  |  Branch (18:140): [True: 22.2k, False: 1.97M]
  |  |  |  Branch (18:150): [True: 15.2k, False: 1.98M]
  |  |  |  Branch (18:160): [True: 8.05k, False: 1.98M]
  |  |  |  Branch (18:170): [True: 3.49k, False: 1.99M]
  |  |  |  Branch (18:180): [True: 12.7k, False: 1.98M]
  |  |  |  Branch (18:190): [True: 3.87k, False: 1.99M]
  |  |  |  Branch (18:200): [True: 12.3k, False: 1.98M]
  |  |  |  Branch (18:210): [True: 12.3k, False: 1.98M]
  |  |  |  Branch (18:220): [True: 9.13k, False: 1.98M]
  |  |  ------------------
  ------------------
  |  Branch (1636:13): [True: 25.7k, False: 1.97M]
  ------------------
 1637|  1.95M|            {
 1638|  1.95M|                int64_t val = static_cast<int8_t>(- 1 - info);
 1639|  1.95M|                visitor.int64_value(val, tag, *this, ec);
 1640|  1.95M|                more_ = !cursor_mode_;
 1641|  1.95M|                break;
 1642|  26.5M|            }
 1643|  27.8k|            case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1643:13): [True: 27.8k, False: 1.96M]
  ------------------
 1644|  27.8k|            {
 1645|  27.8k|                uint8_t b;
 1646|  27.8k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1646:21): [True: 0, False: 27.8k]
  ------------------
 1647|      0|                {
 1648|      0|                    ec = cbor_errc::unexpected_eof;
 1649|      0|                    more_ = false;
 1650|      0|                    return;
 1651|      0|                }
 1652|  27.8k|                int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1653|  27.8k|                visitor.int64_value(val, tag, *this, ec);
 1654|  27.8k|                more_ = !cursor_mode_;
 1655|  27.8k|                break;
 1656|  27.8k|            }
 1657|  1.91k|            case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1657:13): [True: 1.91k, False: 1.99M]
  ------------------
 1658|  1.91k|            {
 1659|  1.91k|                uint8_t buf[sizeof(uint16_t)];
 1660|  1.91k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1660:21): [True: 0, False: 1.91k]
  ------------------
 1661|      0|                {
 1662|      0|                    ec = cbor_errc::unexpected_eof;
 1663|      0|                    more_ = false;
 1664|      0|                    return;
 1665|      0|                }
 1666|  1.91k|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1667|  1.91k|                int64_t val = static_cast<int64_t>(-1)- u;
 1668|  1.91k|                visitor.int64_value(val, tag, *this, ec);
 1669|  1.91k|                more_ = !cursor_mode_;
 1670|  1.91k|                break;
 1671|  1.91k|            }
 1672|  7.57k|            case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1672:13): [True: 7.57k, False: 1.98M]
  ------------------
 1673|  7.57k|            {
 1674|  7.57k|                uint8_t buf[sizeof(uint32_t)];
 1675|  7.57k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1675:21): [True: 2, False: 7.56k]
  ------------------
 1676|      2|                {
 1677|      2|                    ec = cbor_errc::unexpected_eof;
 1678|      2|                    more_ = false;
 1679|      2|                    return;
 1680|      2|                }
 1681|  7.56k|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1682|  7.56k|                int64_t val = static_cast<int64_t>(-1)- u;
 1683|  7.56k|                visitor.int64_value(val, tag, *this, ec);
 1684|  7.56k|                more_ = !cursor_mode_;
 1685|  7.56k|                break;
 1686|  7.57k|            }
 1687|  1.56k|            case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1687:13): [True: 1.56k, False: 1.99M]
  ------------------
 1688|  1.56k|            {
 1689|  1.56k|                uint8_t buf[sizeof(uint64_t)];
 1690|  1.56k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1690:21): [True: 1, False: 1.56k]
  ------------------
 1691|      1|                {
 1692|      1|                    ec = cbor_errc::unexpected_eof;
 1693|      1|                    more_ = false;
 1694|      1|                    return;
 1695|      1|                }
 1696|  1.56k|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1697|  1.56k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1697:21): [True: 630, False: 938]
  ------------------
 1698|    630|                {
 1699|       |                    //ec = cbor_errc::invalid_negative_integer;
 1700|       |                    //more_ = false;
 1701|       |                    //return;
 1702|    630|                    bigint b(u);
 1703|    630|                    bigint b2 = -1 - b;
 1704|    630|                    text_buffer_.clear();
 1705|    630|                    b2.append_to_buffer(text_buffer_);
 1706|    630|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 1707|    630|                }
 1708|    938|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|    938|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 197, False: 741]
  |  |  ------------------
  ------------------
 1709|    197|                {
 1710|    197|                    visitor.int64_value((std::numeric_limits<int64_t>::min)(), tag, *this, ec);
 1711|    197|                }
 1712|    741|                else
 1713|    741|                {
 1714|    741|                    int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(u);
 1715|    741|                    visitor.int64_value(val, tag, *this, ec);
 1716|    741|                }
 1717|  1.56k|                more_ = !cursor_mode_;
 1718|  1.56k|                break;
 1719|  1.56k|            }
 1720|     16|            default:
  ------------------
  |  Branch (1720:13): [True: 16, False: 1.99M]
  ------------------
 1721|     16|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (1721:22): [True: 16, False: 0]
  ------------------
 1722|     16|                more_ = false;
 1723|     16|                return;
 1724|  1.99M|        }
 1725|  1.99M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceC2EPS8_:
  316|  5.92M|            : source(source)
  317|  5.92M|        {
  318|  5.92M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_sourceEEEvT_RNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2304|  5.92M|    {
 2305|  5.92M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2305:13): [True: 304k, False: 5.62M]
  ------------------
 2306|   304k|        {
 2307|   304k|            switch (raw_tag_)
 2308|   304k|            {
 2309|  6.69k|                case 0x2:
  ------------------
  |  Branch (2309:17): [True: 6.69k, False: 297k]
  ------------------
 2310|  6.69k|                {
 2311|  6.69k|                    auto bytes = read.view(ec);
 2312|  6.69k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.69k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 6.69k]
  |  |  ------------------
  ------------------
 2313|      1|                    {
 2314|      1|                        more_ = false;
 2315|      1|                        return;
 2316|      1|                    }
 2317|  6.69k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2318|  6.69k|                    text_buffer_.clear();
 2319|  6.69k|                    b.append_to_buffer(text_buffer_);
 2320|  6.69k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2321|  6.69k|                    more_ = !cursor_mode_;
 2322|  6.69k|                    break;
 2323|  6.69k|                }
 2324|  15.3k|                case 0x3:
  ------------------
  |  Branch (2324:17): [True: 15.3k, False: 289k]
  ------------------
 2325|  15.3k|                {
 2326|  15.3k|                    auto bytes = read.view(ec);
 2327|  15.3k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  15.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 15.3k]
  |  |  ------------------
  ------------------
 2328|      5|                    {
 2329|      5|                        more_ = false;
 2330|      5|                        return;
 2331|      5|                    }
 2332|  15.3k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2333|  15.3k|                    b = -1 - b;
 2334|  15.3k|                    text_buffer_.clear();
 2335|  15.3k|                    b.append_to_buffer(text_buffer_);
 2336|  15.3k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2337|  15.3k|                    more_ = !cursor_mode_;
 2338|  15.3k|                    break;
 2339|  15.3k|                }
 2340|  2.26k|                case 0x15:
  ------------------
  |  Branch (2340:17): [True: 2.26k, False: 302k]
  ------------------
 2341|  2.82k|                case 0x16:
  ------------------
  |  Branch (2341:17): [True: 556, False: 303k]
  ------------------
 2342|  3.13k|                case 0x17:
  ------------------
  |  Branch (2342:17): [True: 314, False: 304k]
  ------------------
 2343|  3.13k|                {
 2344|  3.13k|                    auto bytes = read.view(ec);
 2345|  3.13k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.13k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 3.13k]
  |  |  ------------------
  ------------------
 2346|      1|                    {
 2347|      1|                        more_ = false;
 2348|      1|                        return;
 2349|      1|                    }
 2350|  3.13k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2350:46): [True: 2.26k, False: 869]
  ------------------
 2351|  3.13k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2351:27): [True: 555, False: 314]
  ------------------
 2352|    869|                        : semantic_tag::base16;
 2353|  3.13k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2354|  3.13k|                    more_ = !cursor_mode_;
 2355|  3.13k|                    break;
 2356|  3.13k|                }
 2357|  3.78k|                case 0x40:
  ------------------
  |  Branch (2357:17): [True: 3.78k, False: 300k]
  ------------------
 2358|  3.78k|                {
 2359|  3.78k|                    array_tag_ = typed_array_tags::uint8;
 2360|  3.78k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2361|  3.78k|                    read(array_buffer, ec);
 2362|  3.78k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.78k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.78k]
  |  |  ------------------
  ------------------
 2363|      0|                    {
 2364|      0|                        more_ = false;
 2365|      0|                        return;
 2366|      0|                    }
 2367|  3.78k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2368|  3.78k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2368:25): [True: 3.78k, False: 0]
  |  Branch (2368:42): [True: 982, False: 2.80k]
  ------------------
 2369|    982|                    {
 2370|    982|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2370:29): [True: 0, False: 982]
  ------------------
 2371|      0|                        {
 2372|      0|                            ec = cbor_errc::bad_extents;
 2373|      0|                            more_ = false;
 2374|      0|                            return;
 2375|      0|                        }
 2376|    982|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2377|    982|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2378|    982|                        typed_array_stack_.push_back(iter);
 2379|    982|                        iter->next(visitor, *this, ec);
 2380|    982|                    }
 2381|  2.80k|                    else
 2382|  2.80k|                    {
 2383|  2.80k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2384|  2.80k|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2385|  2.80k|                        typed_array_stack_.push_back(iter);
 2386|  2.80k|                        iter->next(visitor, *this, ec);
 2387|  2.80k|                    }
 2388|  3.78k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2389|  3.78k|                    more_ = !cursor_mode_;
 2390|  3.78k|                    break;
 2391|  3.78k|                }
 2392|  9.62k|                case 0x44:
  ------------------
  |  Branch (2392:17): [True: 9.62k, False: 294k]
  ------------------
 2393|  9.62k|                {
 2394|  9.62k|                    array_tag_ = typed_array_tags::uint8;
 2395|  9.62k|                    typed_array_tag_ = semantic_tag::clamped;
 2396|  9.62k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2397|  9.62k|                    read(array_buffer, ec);
 2398|  9.62k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.62k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9.62k]
  |  |  ------------------
  ------------------
 2399|      0|                    {
 2400|      0|                        more_ = false;
 2401|      0|                        return;
 2402|      0|                    }
 2403|  9.62k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2404|  9.62k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2404:25): [True: 9.62k, False: 0]
  |  Branch (2404:42): [True: 161, False: 9.46k]
  ------------------
 2405|    161|                    {
 2406|    161|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2406:29): [True: 0, False: 161]
  ------------------
 2407|      0|                        {
 2408|      0|                            ec = cbor_errc::bad_extents;
 2409|      0|                            more_ = false;
 2410|      0|                            return;
 2411|      0|                        }
 2412|    161|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2413|    161|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2414|    161|                        typed_array_stack_.push_back(iter);
 2415|    161|                        iter->next(visitor, *this, ec);
 2416|    161|                    }
 2417|  9.46k|                    else
 2418|  9.46k|                    {
 2419|  9.46k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2420|  9.46k|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 2421|  9.46k|                        typed_array_stack_.push_back(iter);
 2422|  9.46k|                        iter->next(visitor, *this, ec);
 2423|  9.46k|                    }
 2424|  9.62k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2425|  9.62k|                    more_ = !cursor_mode_;
 2426|  9.62k|                    break;
 2427|  9.62k|                }
 2428|  1.83k|                case 0x41:
  ------------------
  |  Branch (2428:17): [True: 1.83k, False: 302k]
  ------------------
 2429|  15.0k|                case 0x45:
  ------------------
  |  Branch (2429:17): [True: 13.2k, False: 291k]
  ------------------
 2430|  15.0k|                {
 2431|  15.0k|                    array_tag_ = typed_array_tags::uint16;
 2432|  15.0k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2433|  15.0k|                    read(array_buffer, ec);
 2434|  15.0k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  15.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 15.0k]
  |  |  ------------------
  ------------------
 2435|      0|                    {
 2436|      0|                        more_ = false;
 2437|      0|                        return;
 2438|      0|                    }
 2439|  15.0k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2440|  15.0k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2441|  15.0k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2442|  15.0k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2442:25): [True: 1.83k, False: 13.2k]
  ------------------
 2443|  1.83k|                    {
 2444|  18.0k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2444:49): [True: 16.2k, False: 1.83k]
  ------------------
 2445|  16.2k|                        {
 2446|  16.2k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2447|  16.2k|                        }
 2448|  1.83k|                    }
 2449|  15.0k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2449:25): [True: 15.0k, False: 0]
  |  Branch (2449:42): [True: 4.92k, False: 10.1k]
  ------------------
 2450|  4.92k|                    {
 2451|  4.92k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2451:29): [True: 0, False: 4.92k]
  ------------------
 2452|      0|                        {
 2453|      0|                            ec = cbor_errc::bad_extents;
 2454|      0|                            more_ = false;
 2455|      0|                            return;
 2456|      0|                        }
 2457|  4.92k|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2458|  4.92k|                            typed_array_tags::uint16, extents_, order_, alloc_);
 2459|  4.92k|                        typed_array_stack_.push_back(iter);
 2460|  4.92k|                        iter->next(visitor, *this, ec);
 2461|  4.92k|                    }
 2462|  10.1k|                    else
 2463|  10.1k|                    {
 2464|  10.1k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2465|  10.1k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 2466|  10.1k|                        typed_array_stack_.push_back(iter);
 2467|  10.1k|                        iter->next(visitor, *this, ec);
 2468|  10.1k|                    }
 2469|  15.0k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2470|  15.0k|                    more_ = !cursor_mode_;
 2471|  15.0k|                    break;
 2472|  15.0k|                }
 2473|  1.37k|                case 0x42:
  ------------------
  |  Branch (2473:17): [True: 1.37k, False: 303k]
  ------------------
 2474|  1.78k|                case 0x46:
  ------------------
  |  Branch (2474:17): [True: 415, False: 304k]
  ------------------
 2475|  1.78k|                {
 2476|  1.78k|                    array_tag_ = typed_array_tags::uint32;
 2477|  1.78k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2478|  1.78k|                    read(array_buffer, ec);
 2479|  1.78k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.78k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.78k]
  |  |  ------------------
  ------------------
 2480|      0|                    {
 2481|      0|                        more_ = false;
 2482|      0|                        return;
 2483|      0|                    }
 2484|  1.78k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2485|  1.78k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2486|  1.78k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2487|  1.78k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2487:25): [True: 1.37k, False: 415]
  ------------------
 2488|  1.37k|                    {
 2489|   118k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2489:49): [True: 116k, False: 1.37k]
  ------------------
 2490|   116k|                        {
 2491|   116k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2492|   116k|                        }
 2493|  1.37k|                    }
 2494|  1.78k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2494:25): [True: 1.78k, False: 0]
  |  Branch (2494:42): [True: 269, False: 1.51k]
  ------------------
 2495|    269|                    {
 2496|    269|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2496:29): [True: 1, False: 268]
  ------------------
 2497|      1|                        {
 2498|      1|                            ec = cbor_errc::bad_extents;
 2499|      1|                            more_ = false;
 2500|      1|                            return;
 2501|      1|                        }
 2502|    268|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2503|    268|                            typed_array_tags::uint32, extents_, order_, alloc_);
 2504|    268|                        typed_array_stack_.push_back(iter);
 2505|    268|                        iter->next(visitor, *this, ec);
 2506|    268|                    }
 2507|  1.51k|                    else
 2508|  1.51k|                    {
 2509|  1.51k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2510|  1.51k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 2511|  1.51k|                        typed_array_stack_.push_back(iter);
 2512|  1.51k|                        iter->next(visitor, *this, ec);
 2513|  1.51k|                    }
 2514|  1.78k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2515|  1.78k|                    more_ = !cursor_mode_;
 2516|  1.78k|                    break;
 2517|  1.78k|                }
 2518|  32.6k|                case 0x43:
  ------------------
  |  Branch (2518:17): [True: 32.6k, False: 271k]
  ------------------
 2519|  35.5k|                case 0x47:
  ------------------
  |  Branch (2519:17): [True: 2.97k, False: 301k]
  ------------------
 2520|  35.5k|                {
 2521|  35.5k|                    array_tag_ = typed_array_tags::uint64;
 2522|  35.5k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2523|  35.5k|                    read(array_buffer, ec);
 2524|  35.5k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  35.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 35.5k]
  |  |  ------------------
  ------------------
 2525|      1|                    {
 2526|      1|                        more_ = false;
 2527|      1|                        return;
 2528|      1|                    }
 2529|  35.5k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2530|  35.5k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2531|  35.5k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2532|  35.5k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2532:25): [True: 32.6k, False: 2.97k]
  ------------------
 2533|  32.6k|                    {
 2534|  98.2k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2534:49): [True: 65.6k, False: 32.6k]
  ------------------
 2535|  65.6k|                        {
 2536|  65.6k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2537|  65.6k|                        }
 2538|  32.6k|                    }
 2539|  35.5k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2539:25): [True: 35.5k, False: 0]
  |  Branch (2539:42): [True: 2.61k, False: 32.9k]
  ------------------
 2540|  2.61k|                    {
 2541|  2.61k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2541:29): [True: 6, False: 2.60k]
  ------------------
 2542|      6|                        {
 2543|      6|                            ec = cbor_errc::bad_extents;
 2544|      6|                            more_ = false;
 2545|      6|                            return;
 2546|      6|                        }
 2547|  2.60k|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2548|  2.60k|                            typed_array_tags::uint64, extents_, order_, alloc_);
 2549|  2.60k|                        typed_array_stack_.push_back(iter);
 2550|  2.60k|                        iter->next(visitor, *this, ec);
 2551|  2.60k|                    }
 2552|  32.9k|                    else
 2553|  32.9k|                    {
 2554|  32.9k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2555|  32.9k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 2556|  32.9k|                        typed_array_stack_.push_back(iter);
 2557|  32.9k|                        iter->next(visitor, *this, ec);
 2558|  32.9k|                    }
 2559|  35.5k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2560|  35.5k|                    more_ = !cursor_mode_;
 2561|  35.5k|                    break;
 2562|  35.5k|                }
 2563|  4.38k|                case 0x48:
  ------------------
  |  Branch (2563:17): [True: 4.38k, False: 300k]
  ------------------
 2564|  4.38k|                {
 2565|  4.38k|                    array_tag_ = typed_array_tags::int8;
 2566|  4.38k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2567|  4.38k|                    read(array_buffer, ec);
 2568|  4.38k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.38k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 4.38k]
  |  |  ------------------
  ------------------
 2569|      2|                    {
 2570|      2|                        more_ = false;
 2571|      2|                        return;
 2572|      2|                    }
 2573|  4.38k|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2574|  4.38k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2574:25): [True: 4.38k, False: 0]
  |  Branch (2574:42): [True: 327, False: 4.06k]
  ------------------
 2575|    327|                    {
 2576|    327|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2576:29): [True: 1, False: 326]
  ------------------
 2577|      1|                        {
 2578|      1|                            ec = cbor_errc::bad_extents;
 2579|      1|                            more_ = false;
 2580|      1|                            return;
 2581|      1|                        }
 2582|    326|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2583|    326|                            typed_array_tags::int8, extents_, order_, alloc_);
 2584|    326|                        typed_array_stack_.push_back(iter);
 2585|    326|                        iter->next(visitor, *this, ec);
 2586|    326|                    }
 2587|  4.06k|                    else
 2588|  4.06k|                    {
 2589|  4.06k|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2590|  4.06k|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 2591|  4.06k|                        typed_array_stack_.push_back(iter);
 2592|  4.06k|                        iter->next(visitor, *this, ec);
 2593|  4.06k|                    }
 2594|  4.38k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2595|  4.38k|                    more_ = !cursor_mode_;
 2596|  4.38k|                    break;
 2597|  4.38k|                }
 2598|    696|                case 0x49:
  ------------------
  |  Branch (2598:17): [True: 696, False: 303k]
  ------------------
 2599|  1.40k|                case 0x4d:
  ------------------
  |  Branch (2599:17): [True: 707, False: 303k]
  ------------------
 2600|  1.40k|                {
 2601|  1.40k|                    array_tag_ = typed_array_tags::int16;
 2602|  1.40k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2603|  1.40k|                    read(array_buffer, ec);
 2604|  1.40k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.40k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 1.40k]
  |  |  ------------------
  ------------------
 2605|      1|                    {
 2606|      1|                        more_ = false;
 2607|      1|                        return;
 2608|      1|                    }
 2609|  1.40k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2610|  1.40k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2611|  1.40k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2612|  1.40k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2612:25): [True: 695, False: 707]
  ------------------
 2613|    695|                    {
 2614|   164k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2614:49): [True: 164k, False: 695]
  ------------------
 2615|   164k|                        {
 2616|   164k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2617|   164k|                        }
 2618|    695|                    }
 2619|  1.40k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2619:25): [True: 1.40k, False: 0]
  |  Branch (2619:42): [True: 292, False: 1.11k]
  ------------------
 2620|    292|                    {
 2621|    292|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2621:29): [True: 0, False: 292]
  ------------------
 2622|      0|                        {
 2623|      0|                            ec = cbor_errc::bad_extents;
 2624|      0|                            more_ = false;
 2625|      0|                            return;
 2626|      0|                        }
 2627|    292|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2628|    292|                            typed_array_tags::int16, extents_, order_, alloc_);
 2629|    292|                        typed_array_stack_.push_back(iter);
 2630|    292|                        iter->next(visitor, *this, ec);
 2631|    292|                    }
 2632|  1.11k|                    else
 2633|  1.11k|                    {
 2634|  1.11k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2635|  1.11k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 2636|  1.11k|                        typed_array_stack_.push_back(iter);
 2637|  1.11k|                        iter->next(visitor, *this, ec);
 2638|  1.11k|                    }
 2639|  1.40k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2640|  1.40k|                    more_ = !cursor_mode_;
 2641|  1.40k|                    break;
 2642|  1.40k|                }
 2643|  6.96k|                case 0x4a:
  ------------------
  |  Branch (2643:17): [True: 6.96k, False: 297k]
  ------------------
 2644|  7.46k|                case 0x4e:
  ------------------
  |  Branch (2644:17): [True: 504, False: 303k]
  ------------------
 2645|  7.46k|                {
 2646|  7.46k|                    array_tag_ = typed_array_tags::int32;
 2647|  7.46k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2648|  7.46k|                    read(array_buffer, ec);
 2649|  7.46k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.46k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 7.46k]
  |  |  ------------------
  ------------------
 2650|      5|                    {
 2651|      5|                        more_ = false;
 2652|      5|                        return;
 2653|      5|                    }
 2654|  7.46k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2655|  7.46k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2656|  7.46k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2657|  7.46k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2657:25): [True: 6.95k, False: 504]
  ------------------
 2658|  6.95k|                    {
 2659|  44.4k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2659:49): [True: 37.4k, False: 6.95k]
  ------------------
 2660|  37.4k|                        {
 2661|  37.4k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2662|  37.4k|                        }
 2663|  6.95k|                    }
 2664|  7.46k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2664:25): [True: 7.46k, False: 0]
  |  Branch (2664:42): [True: 766, False: 6.69k]
  ------------------
 2665|    766|                    {
 2666|    766|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2666:29): [True: 0, False: 766]
  ------------------
 2667|      0|                        {
 2668|      0|                            ec = cbor_errc::bad_extents;
 2669|      0|                            more_ = false;
 2670|      0|                            return;
 2671|      0|                        }
 2672|    766|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2673|    766|                            typed_array_tags::int32, extents_, order_, alloc_);
 2674|    766|                        typed_array_stack_.push_back(iter);
 2675|    766|                        iter->next(visitor, *this, ec);
 2676|    766|                    }
 2677|  6.69k|                    else
 2678|  6.69k|                    {
 2679|  6.69k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2680|  6.69k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 2681|  6.69k|                        typed_array_stack_.push_back(iter);
 2682|  6.69k|                        iter->next(visitor, *this, ec);
 2683|  6.69k|                    }
 2684|  7.46k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2685|  7.46k|                    more_ = !cursor_mode_;
 2686|  7.46k|                    break;
 2687|  7.46k|                }
 2688|  1.17k|                case 0x4b:
  ------------------
  |  Branch (2688:17): [True: 1.17k, False: 303k]
  ------------------
 2689|   109k|                case 0x4f:
  ------------------
  |  Branch (2689:17): [True: 108k, False: 196k]
  ------------------
 2690|   109k|                {
 2691|   109k|                    array_tag_ = typed_array_tags::int64;
 2692|   109k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2693|   109k|                    read(array_buffer, ec);
 2694|   109k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   109k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 8, False: 109k]
  |  |  ------------------
  ------------------
 2695|      8|                    {
 2696|      8|                        more_ = false;
 2697|      8|                        return;
 2698|      8|                    }
 2699|   109k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2700|   109k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2701|   109k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2702|   109k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2702:25): [True: 1.16k, False: 108k]
  ------------------
 2703|  1.16k|                    {
 2704|  32.0k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2704:49): [True: 30.8k, False: 1.16k]
  ------------------
 2705|  30.8k|                        {
 2706|  30.8k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2707|  30.8k|                        }
 2708|  1.16k|                    }
 2709|   109k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2709:25): [True: 109k, False: 0]
  |  Branch (2709:42): [True: 849, False: 108k]
  ------------------
 2710|    849|                    {
 2711|    849|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2711:29): [True: 3, False: 846]
  ------------------
 2712|      3|                        {
 2713|      3|                            ec = cbor_errc::bad_extents;
 2714|      3|                            more_ = false;
 2715|      3|                            return;
 2716|      3|                        }
 2717|    846|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2718|    846|                            typed_array_tags::int64, extents_, order_, alloc_);
 2719|    846|                        typed_array_stack_.push_back(iter);
 2720|    846|                        iter->next(visitor, *this, ec);
 2721|    846|                    }
 2722|   108k|                    else
 2723|   108k|                    {
 2724|   108k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2725|   108k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 2726|   108k|                        typed_array_stack_.push_back(iter);
 2727|   108k|                        iter->next(visitor, *this, ec);
 2728|   108k|                    }
 2729|   109k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2730|   109k|                    more_ = !cursor_mode_;
 2731|   109k|                    break;
 2732|   109k|                }
 2733|  6.59k|                case 0x50:
  ------------------
  |  Branch (2733:17): [True: 6.59k, False: 297k]
  ------------------
 2734|  7.39k|                case 0x54:
  ------------------
  |  Branch (2734:17): [True: 794, False: 303k]
  ------------------
 2735|  7.39k|                {
 2736|  7.39k|                    array_tag_ = typed_array_tags::half_float;
 2737|  7.39k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2738|  7.39k|                    read(array_buffer, ec);
 2739|  7.39k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.39k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 7.38k]
  |  |  ------------------
  ------------------
 2740|      1|                    {
 2741|      1|                        more_ = false;
 2742|      1|                        return;
 2743|      1|                    }
 2744|  7.38k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2745|  7.38k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2746|  7.38k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2747|  7.38k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2747:25): [True: 6.59k, False: 794]
  ------------------
 2748|  6.59k|                    {
 2749|  80.5k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2749:49): [True: 73.9k, False: 6.59k]
  ------------------
 2750|  73.9k|                        {
 2751|  73.9k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2752|  73.9k|                        }
 2753|  6.59k|                    }
 2754|  7.38k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2754:25): [True: 7.38k, False: 0]
  |  Branch (2754:42): [True: 1.06k, False: 6.32k]
  ------------------
 2755|  1.06k|                    {
 2756|  1.06k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2756:29): [True: 1, False: 1.06k]
  ------------------
 2757|      1|                        {
 2758|      1|                            ec = cbor_errc::bad_extents;
 2759|      1|                            more_ = false;
 2760|      1|                            return;
 2761|      1|                        }
 2762|  1.06k|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2763|  1.06k|                            typed_array_tags::half_float, extents_, order_, alloc_);
 2764|  1.06k|                        typed_array_stack_.push_back(iter);
 2765|  1.06k|                        iter->next(visitor, *this, ec);
 2766|  1.06k|                    }
 2767|  6.32k|                    else
 2768|  6.32k|                    {
 2769|  6.32k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2770|  6.32k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 2771|  6.32k|                        typed_array_stack_.push_back(iter);
 2772|  6.32k|                        iter->next(visitor, *this, ec);
 2773|  6.32k|                    }
 2774|  7.38k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2775|  7.38k|                    more_ = !cursor_mode_;
 2776|  7.38k|                    break;
 2777|  7.38k|                }
 2778|  1.90k|                case 0x51:
  ------------------
  |  Branch (2778:17): [True: 1.90k, False: 302k]
  ------------------
 2779|  2.72k|                case 0x55:
  ------------------
  |  Branch (2779:17): [True: 825, False: 303k]
  ------------------
 2780|  2.72k|                {
 2781|  2.72k|                    array_tag_ = typed_array_tags::float32;
 2782|  2.72k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2783|  2.72k|                    read(array_buffer, ec);
 2784|  2.72k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.72k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 2.72k]
  |  |  ------------------
  ------------------
 2785|      1|                    {
 2786|      1|                        more_ = false;
 2787|      1|                        return;
 2788|      1|                    }
 2789|  2.72k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2790|  2.72k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2791|  2.72k|                    auto ta = typed_array_cast<float>(array_buffer);
 2792|  2.72k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2792:25): [True: 1.90k, False: 824]
  ------------------
 2793|  1.90k|                    {
 2794|  25.2k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2794:49): [True: 23.3k, False: 1.90k]
  ------------------
 2795|  23.3k|                        {
 2796|  23.3k|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2797|  23.3k|                        }
 2798|  1.90k|                    }
 2799|  2.72k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2799:25): [True: 2.72k, False: 0]
  |  Branch (2799:42): [True: 691, False: 2.03k]
  ------------------
 2800|    691|                    {
 2801|    691|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2801:29): [True: 0, False: 691]
  ------------------
 2802|      0|                        {
 2803|      0|                            ec = cbor_errc::bad_extents;
 2804|      0|                            more_ = false;
 2805|      0|                            return;
 2806|      0|                        }
 2807|    691|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2808|    691|                            typed_array_tags::float32, extents_, order_, alloc_);
 2809|    691|                        typed_array_stack_.push_back(iter);
 2810|    691|                        iter->next(visitor, *this, ec);
 2811|    691|                    }
 2812|  2.03k|                    else
 2813|  2.03k|                    {
 2814|  2.03k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2815|  2.03k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 2816|  2.03k|                        typed_array_stack_.push_back(iter);
 2817|  2.03k|                        iter->next(visitor, *this, ec);
 2818|  2.03k|                    }
 2819|  2.72k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2820|  2.72k|                    more_ = !cursor_mode_;
 2821|  2.72k|                    break;
 2822|  2.72k|                }
 2823|    917|                case 0x52:
  ------------------
  |  Branch (2823:17): [True: 917, False: 303k]
  ------------------
 2824|  8.97k|                case 0x56:
  ------------------
  |  Branch (2824:17): [True: 8.06k, False: 296k]
  ------------------
 2825|  8.97k|                {
 2826|  8.97k|                    array_tag_ = typed_array_tags::float64;
 2827|  8.97k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2828|  8.97k|                    read(array_buffer, ec);
 2829|  8.97k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.97k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 8.97k]
  |  |  ------------------
  ------------------
 2830|      7|                    {
 2831|      7|                        more_ = false;
 2832|      7|                        return;
 2833|      7|                    }
 2834|  8.97k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2835|  8.97k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2836|  8.97k|                    auto ta = typed_array_cast<double>(array_buffer);
 2837|  8.97k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2837:25): [True: 915, False: 8.05k]
  ------------------
 2838|    915|                    {
 2839|  11.0k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2839:49): [True: 10.0k, False: 915]
  ------------------
 2840|  10.0k|                        {
 2841|  10.0k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2842|  10.0k|                        }
 2843|    915|                    }
 2844|  8.97k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2844:25): [True: 8.97k, False: 0]
  |  Branch (2844:42): [True: 638, False: 8.33k]
  ------------------
 2845|    638|                    {
 2846|    638|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2846:29): [True: 0, False: 638]
  ------------------
 2847|      0|                        {
 2848|      0|                            ec = cbor_errc::bad_extents;
 2849|      0|                            more_ = false;
 2850|      0|                            return;
 2851|      0|                        }
 2852|    638|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2853|    638|                            typed_array_tags::float64, extents_, order_, alloc_);
 2854|    638|                        typed_array_stack_.push_back(iter);
 2855|    638|                        iter->next(visitor, *this, ec);
 2856|    638|                    }
 2857|  8.33k|                    else
 2858|  8.33k|                    {
 2859|  8.33k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2860|  8.33k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 2861|  8.33k|                        typed_array_stack_.push_back(iter);
 2862|  8.33k|                        iter->next(visitor, *this, ec);
 2863|  8.33k|                    }
 2864|  8.97k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2865|  8.97k|                    more_ = !cursor_mode_;
 2866|  8.97k|                    break;
 2867|  8.97k|                }
 2868|  71.7k|                default:
  ------------------
  |  Branch (2868:17): [True: 71.7k, False: 232k]
  ------------------
 2869|  71.7k|                {
 2870|  71.7k|                    auto bytes = read.view(ec);
 2871|  71.7k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  71.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 10, False: 71.7k]
  |  |  ------------------
  ------------------
 2872|     10|                    {
 2873|     10|                        more_ = false;
 2874|     10|                        return;
 2875|     10|                    }
 2876|  71.7k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 2877|  71.7k|                    more_ = !cursor_mode_;
 2878|  71.7k|                    break;
 2879|  71.7k|                }
 2880|   304k|            }
 2881|   304k|            other_tags_[item_tag] = false;
 2882|   304k|        }
 2883|  5.62M|        else
 2884|  5.62M|        {
 2885|  5.62M|            auto bytes = read.view(ec);
 2886|  5.62M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.62M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 148, False: 5.62M]
  |  |  ------------------
  ------------------
 2887|    148|            {
 2888|    148|                return;
 2889|    148|            }
 2890|  5.62M|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 2891|  5.62M|            more_ = !cursor_mode_;
 2892|  5.62M|        }
 2893|  5.92M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_source4viewERNS3_10error_codeE:
  326|  5.72M|        {
  327|  5.72M|            return source->read_byte_string_view(ec);
  328|  5.72M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_byte_string_viewERNS3_10error_codeE:
 1260|  5.72M|    {
 1261|  5.72M|        auto c = source_.peek();
 1262|  5.72M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  5.72M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.72M]
  |  |  ------------------
  ------------------
 1263|      0|        {
 1264|      0|            ec = cbor_errc::unexpected_eof;
 1265|      0|            more_ = false;
 1266|      0|            return byte_string_view();
 1267|      0|        }
 1268|  5.72M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1269|  5.72M|        uint8_t info = get_additional_information(c.value);
 1270|  5.72M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  5.72M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.72M]
  |  |  |  Branch (79:50): [True: 2.10k, False: 5.71M]
  |  |  |  Branch (79:50): [True: 0, False: 2.10k]
  |  |  ------------------
  ------------------
 1271|      0|        {
 1272|      0|            ec = cbor_errc::reserved_additional_info;
 1273|      0|            more_ = false;
 1274|      0|            return byte_string_view();
 1275|      0|        }
 1276|       |
 1277|  5.72M|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   54|  5.72M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 5.72M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1278|       |
 1279|  5.72M|        source_.ignore(1);
 1280|  5.72M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1280:13): [True: 2.10k, False: 5.71M]
  ------------------
 1281|  2.10k|        {
 1282|  2.10k|            bytes_buffer_.clear();
 1283|  2.10k|            iterate_byte_string_chunks(bytes_buffer_, ec);
 1284|  2.10k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.10k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 48, False: 2.05k]
  |  |  ------------------
  ------------------
 1285|     48|            {
 1286|     48|                return byte_string_view();
 1287|     48|            }
 1288|  2.05k|            return byte_string_view(bytes_buffer_.data(), bytes_buffer_.size());
 1289|  2.10k|        }
 1290|       |
 1291|  5.71M|        std::size_t length = read_size(info, ec);
 1292|  5.71M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.71M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.71M]
  |  |  ------------------
  ------------------
 1293|      0|        {
 1294|      0|            return byte_string_view();
 1295|      0|        }
 1296|  5.71M|        auto data = source_.read_span(length, bytes_buffer_);
 1297|  5.71M|        if (data.size() != length)
  ------------------
  |  Branch (1297:13): [True: 117, False: 5.71M]
  ------------------
 1298|    117|        {
 1299|    117|            ec = cbor_errc::unexpected_eof;
 1300|    117|            more_ = false;
 1301|    117|            return byte_string_view();
 1302|    117|        }
 1303|       |        
 1304|  5.71M|        byte_string_view bytes(data.data(), data.size());
 1305|  5.71M|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1305:13): [True: 4.86M, False: 853k]
  ------------------
 1306|  4.86M|            bytes.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1306:13): [True: 4.66M, False: 196k]
  ------------------
 1307|  4.66M|        {
 1308|  4.66M|            stringref_map_stack_.back().emplace_back(mapped_string(bytes, alloc_));
 1309|  4.66M|        }
 1310|  5.71M|        return bytes;
 1311|  5.71M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26iterate_byte_string_chunksINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
 1444|  4.61k|    {
 1445|  4.61k|        bool done = false;
 1446|   712k|        while (!done)
  ------------------
  |  Branch (1446:16): [True: 708k, False: 4.55k]
  ------------------
 1447|   708k|        {
 1448|   708k|            auto c = source_.peek();
 1449|   708k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   708k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 708k]
  |  |  ------------------
  ------------------
 1450|      7|            {
 1451|      7|                ec = cbor_errc::unexpected_eof;
 1452|      7|                more_ = false;
 1453|      7|                return;
 1454|      7|            }
 1455|   708k|            if (c.value == 0xff)
  ------------------
  |  Branch (1455:17): [True: 4.55k, False: 703k]
  ------------------
 1456|  4.55k|            {
 1457|  4.55k|                source_.ignore(1);
 1458|  4.55k|                done = true;
 1459|  4.55k|                continue;
 1460|  4.55k|            }
 1461|       |
 1462|   703k|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1463|   703k|            if (major_type != jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1463:17): [True: 11, False: 703k]
  ------------------
 1464|     11|            {
 1465|     11|                ec = cbor_errc::illegal_chunked_string;
 1466|     11|                more_ = false;
 1467|     11|                return;
 1468|     11|            }
 1469|   703k|            uint8_t info = get_additional_information(c.value);
 1470|   703k|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1470:17): [True: 0, False: 703k]
  ------------------
 1471|      0|            {
 1472|      0|                ec = cbor_errc::illegal_chunked_string;
 1473|      0|                more_ = false;
 1474|      0|                return;
 1475|      0|            }
 1476|       |
 1477|   703k|            source_.ignore(1);
 1478|   703k|            std::size_t length = read_size(info, ec);
 1479|   703k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   703k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 703k]
  |  |  ------------------
  ------------------
 1480|      0|            {
 1481|      0|                return;
 1482|      0|            }
 1483|   703k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1483:17): [True: 42, False: 703k]
  ------------------
 1484|     42|            {
 1485|     42|                ec = cbor_errc::unexpected_eof;
 1486|     42|            }
 1487|   703k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   703k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 42, False: 703k]
  |  |  ------------------
  ------------------
 1488|     42|            {
 1489|     42|                return;
 1490|     42|            }
 1491|   703k|        }
 1492|  4.61k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_sizeEhRNS3_10error_codeE:
 1314|  18.7M|    {
 1315|  18.7M|        uint64_t u = read_unsigned_integer(info, ec);
 1316|  18.7M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 13, False: 18.7M]
  |  |  ------------------
  ------------------
 1317|     13|        {
 1318|     13|            return 0;
 1319|     13|        }
 1320|  18.7M|        std::size_t len = static_cast<std::size_t>(u);
 1321|  18.7M|        if (len != u)
  ------------------
  |  Branch (1321:13): [True: 0, False: 18.7M]
  ------------------
 1322|      0|        {
 1323|      0|            ec = cbor_errc::number_too_large;
 1324|      0|            more_ = false;
 1325|      0|        }
 1326|  18.7M|        return len;
 1327|  18.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2EOS9_:
  236|  11.9M|        mapped_string(mapped_string&&) = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS_16byte_string_viewERKS7_:
  225|  4.66M|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes.begin(),bytes.end(),alloc)
  226|  4.66M|        {
  227|  4.66M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  321|   207k|        {
  322|   207k|            source->read_byte_string(cont,ec);
  323|   207k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringERNS3_6vectorIhS5_EERNS3_10error_codeE:
 1330|   314k|    {
 1331|   314k|        v.clear();
 1332|   314k|        auto c = source_.peek();
 1333|   314k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   314k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 314k]
  |  |  ------------------
  ------------------
 1334|      0|        {
 1335|      0|            ec = cbor_errc::unexpected_eof;
 1336|      0|            return;
 1337|      0|        }
 1338|   314k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1339|   314k|        uint8_t info = get_additional_information(c.value);
 1340|   314k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   317k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 314k]
  |  |  |  Branch (79:50): [True: 2.51k, False: 312k]
  |  |  |  Branch (79:50): [True: 0, False: 2.51k]
  |  |  ------------------
  ------------------
 1341|      0|        {
 1342|      0|            ec = cbor_errc::reserved_additional_info;
 1343|      0|            more_ = false;
 1344|      0|            return;
 1345|      0|        }
 1346|       |
 1347|   314k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   54|   314k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 314k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1348|       |
 1349|   314k|        source_.ignore(1);
 1350|   314k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1350:13): [True: 2.51k, False: 312k]
  ------------------
 1351|  2.51k|        {
 1352|  2.51k|            iterate_byte_string_chunks(v, ec);
 1353|  2.51k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.51k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12, False: 2.49k]
  |  |  ------------------
  ------------------
 1354|     12|            {
 1355|     12|                return;
 1356|     12|            }
 1357|  2.51k|        }
 1358|   312k|        else 
 1359|   312k|        {
 1360|   312k|            std::size_t length = read_size(info, ec);
 1361|   312k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   312k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 312k]
  |  |  ------------------
  ------------------
 1362|      0|            {
 1363|      0|                return;
 1364|      0|            }
 1365|   312k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1365:17): [True: 20, False: 312k]
  ------------------
 1366|     20|            {
 1367|     20|                ec = cbor_errc::unexpected_eof;
 1368|     20|                return;
 1369|     20|            }
 1370|   312k|            if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1370:17): [True: 77.5k, False: 234k]
  ------------------
 1371|  77.5k|                v.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1371:17): [True: 12.0k, False: 65.4k]
  ------------------
 1372|  12.0k|            {
 1373|  12.0k|                stringref_map_stack_.back().emplace_back(mapped_string(v, alloc_));
 1374|  12.0k|            }
 1375|   312k|        }
 1376|   314k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_6vectorIhS5_EERKS7_:
  219|  12.0k|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes,alloc)
  220|  12.0k|        {
  221|  12.0k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_text_string_viewEhRNS3_10error_codeE:
 1226|  1.91M|    {
 1227|  1.91M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1227:13): [True: 213, False: 1.91M]
  ------------------
 1228|    213|        {
 1229|    213|            text_buffer_.clear();
 1230|    213|            iterate_text_string_chunks(text_buffer_, ec);
 1231|    213|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    213|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 26, False: 187]
  |  |  ------------------
  ------------------
 1232|     26|            {
 1233|     26|                return string_view_type();
 1234|     26|            }
 1235|    187|            return string_view_type(text_buffer_.data(), text_buffer_.size());
 1236|    213|        }
 1237|       |
 1238|  1.91M|        std::size_t length = read_size(info, ec);
 1239|  1.91M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.91M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 1.91M]
  |  |  ------------------
  ------------------
 1240|      2|        {
 1241|      2|            return string_view_type();
 1242|      2|        }
 1243|  1.91M|        auto data = source_.read_span(length, text_buffer_);
 1244|  1.91M|        if (data.size() != length)
  ------------------
  |  Branch (1244:13): [True: 68, False: 1.91M]
  ------------------
 1245|     68|        {
 1246|     68|            ec = cbor_errc::unexpected_eof;
 1247|     68|            more_ = false;
 1248|     68|            return string_view_type();
 1249|     68|        }
 1250|  1.91M|        string_view_type sv(reinterpret_cast<const char_type*>(data.data()), data.size());
 1251|  1.91M|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1251:13): [True: 240k, False: 1.67M]
  ------------------
 1252|   240k|            sv.length() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1252:13): [True: 85.0k, False: 155k]
  ------------------
 1253|  85.0k|        {
 1254|  85.0k|            stringref_map_stack_.back().emplace_back(mapped_string(sv,alloc_));
 1255|  85.0k|        }
 1256|  1.91M|        return sv;
 1257|  1.91M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26iterate_text_string_chunksINS3_12basic_stringIcNS3_11char_traitsIcEES7_EEEEvRT_RNS3_10error_codeE:
 1380|    213|    {
 1381|    213|        bool done = false;
 1382|  1.42M|        while (!done)
  ------------------
  |  Branch (1382:16): [True: 1.42M, False: 187]
  ------------------
 1383|  1.42M|        {
 1384|  1.42M|            auto c = source_.peek();
 1385|  1.42M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  1.42M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 1.42M]
  |  |  ------------------
  ------------------
 1386|      6|            {
 1387|      6|                ec = cbor_errc::unexpected_eof;
 1388|      6|                more_ = false;
 1389|      6|                return;
 1390|      6|            }
 1391|  1.42M|            if (c.value == 0xff)
  ------------------
  |  Branch (1391:17): [True: 187, False: 1.42M]
  ------------------
 1392|    187|            {
 1393|    187|                source_.ignore(1);
 1394|    187|                done = true;
 1395|    187|                continue;
 1396|    187|            }
 1397|       |
 1398|  1.42M|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1399|  1.42M|            if (major_type != jsoncons::cbor::detail::cbor_major_type::text_string)
  ------------------
  |  Branch (1399:17): [True: 6, False: 1.42M]
  ------------------
 1400|      6|            {
 1401|      6|                ec = cbor_errc::illegal_chunked_string;
 1402|      6|                more_ = false;
 1403|      6|                return;
 1404|      6|            }
 1405|  1.42M|            uint8_t info = get_additional_information(c.value);
 1406|  1.42M|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1406:17): [True: 1, False: 1.42M]
  ------------------
 1407|      1|            {
 1408|      1|                ec = cbor_errc::illegal_chunked_string;
 1409|      1|                more_ = false;
 1410|      1|                return;
 1411|      1|            }
 1412|       |
 1413|  1.42M|            source_.ignore(1);
 1414|  1.42M|            std::size_t length = read_size(info, ec);
 1415|  1.42M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.42M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.42M]
  |  |  ------------------
  ------------------
 1416|      0|            {
 1417|      0|                return;
 1418|      0|            }
 1419|  1.42M|            const std::size_t offset = v.size();
 1420|  1.42M|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1420:17): [True: 12, False: 1.42M]
  ------------------
 1421|     12|            {
 1422|     12|                ec = cbor_errc::unexpected_eof;
 1423|     12|            }
 1424|  1.42M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.42M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12, False: 1.42M]
  |  |  ------------------
  ------------------
 1425|     12|            {
 1426|     12|                return;
 1427|     12|            }
 1428|       |            // RFC 8949 3.2.3: each chunk of an indefinite-length text
 1429|       |            // string must itself be well-formed UTF-8, so a code point
 1430|       |            // may not be split across chunks.
 1431|  1.42M|            auto result = unicode_traits::validate(
 1432|  1.42M|                reinterpret_cast<const char*>(v.data()) + offset, length);
 1433|  1.42M|            if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (1433:17): [True: 1, False: 1.42M]
  ------------------
 1434|      1|            {
 1435|      1|                ec = cbor_errc::invalid_utf8_text_string;
 1436|      1|                more_ = false;
 1437|      1|                return;
 1438|      1|            }
 1439|  1.42M|        }
 1440|    213|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKS7_:
  208|  85.0k|            : type(jsoncons::cbor::detail::cbor_major_type::text_string), str(sv.data(), sv.size(), alloc), bytes(alloc)
  209|  85.0k|        {
  210|  85.0k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11read_doubleEhRNS3_10error_codeE:
 1785|  9.27k|    {
 1786|  9.27k|        double val = 0;
 1787|       |
 1788|  9.27k|        switch (info)
 1789|  9.27k|        {
 1790|  5.05k|            case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (1790:13): [True: 5.05k, False: 4.21k]
  ------------------
 1791|  5.05k|            {
 1792|  5.05k|                uint8_t buf[sizeof(float)];
 1793|  5.05k|                if (source_.read(buf, sizeof(float)) !=sizeof(float)) 
  ------------------
  |  Branch (1793:21): [True: 2, False: 5.05k]
  ------------------
 1794|      2|                {
 1795|      2|                    ec = cbor_errc::unexpected_eof;
 1796|      2|                    more_ = false;
 1797|      2|                    return 0;
 1798|      2|                }
 1799|  5.05k|                val = binary::big_to_native<float>(buf, sizeof(buf));
 1800|  5.05k|                break;
 1801|  5.05k|            }
 1802|       |
 1803|  4.21k|            case 0x1b: //  Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (1803:13): [True: 4.21k, False: 5.05k]
  ------------------
 1804|  4.21k|            {
 1805|  4.21k|                uint8_t buf[sizeof(double)];
 1806|  4.21k|                if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (1806:21): [True: 0, False: 4.21k]
  ------------------
 1807|      0|                {
 1808|      0|                    ec = cbor_errc::unexpected_eof;
 1809|      0|                    more_ = false;
 1810|      0|                    return 0;
 1811|      0|                }
 1812|  4.21k|                val = binary::big_to_native<double>(buf, sizeof(buf));
 1813|  4.21k|                break;
 1814|  4.21k|            }
 1815|      0|            default:
  ------------------
  |  Branch (1815:13): [True: 0, False: 9.27k]
  ------------------
 1816|      0|            {
 1817|      0|                ec = cbor_errc::unknown_type;
 1818|      0|                more_ = false;
 1819|      0|                return 0;
 1820|  4.21k|            }
 1821|  9.27k|        }
 1822|       |        
 1823|  9.27k|        return val;
 1824|  9.27k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE15read_bigdecimalEhRNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 1827|   183k|    {
 1828|   183k|        std::size_t size = read_unsigned_integer(container_info, ec);
 1829|   183k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   183k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 183k]
  |  |  ------------------
  ------------------
 1830|      0|        {
 1831|      0|            return;
 1832|      0|        }
 1833|   183k|        if (size != 2)
  ------------------
  |  Branch (1833:13): [True: 1, False: 183k]
  ------------------
 1834|      1|        {
 1835|      1|            ec = cbor_errc::invalid_bigdecimal;
 1836|      1|            more_ = false;
 1837|      1|            return;
 1838|      1|        }
 1839|       |
 1840|   183k|        auto c = source_.peek();
 1841|   183k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   183k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 183k]
  |  |  ------------------
  ------------------
 1842|      1|        {
 1843|      1|            ec = cbor_errc::unexpected_eof;
 1844|      1|            more_ = false;
 1845|      1|            return;
 1846|      1|        }
 1847|   183k|        int64_t exponent = 0;
 1848|   183k|        auto major_type = get_major_type(c.value);
 1849|   183k|        auto info = get_additional_information(c.value);
 1850|   183k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   183k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 183k]
  |  |  |  Branch (79:50): [True: 2, False: 183k]
  |  |  |  Branch (79:50): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 1851|      0|        {
 1852|      0|            ec = cbor_errc::reserved_additional_info;
 1853|      0|            more_ = false;
 1854|      0|            return;
 1855|      0|        }
 1856|       |
 1857|   183k|        switch (major_type)
 1858|   183k|        {
 1859|  7.09k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1859:13): [True: 7.09k, False: 176k]
  ------------------
 1860|  7.09k|            {
 1861|  7.09k|                source_.ignore(1);
 1862|  7.09k|                auto u = read_unsigned_integer(info, ec);
 1863|  7.09k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.09k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 7.09k]
  |  |  ------------------
  ------------------
 1864|      1|                {
 1865|      1|                    return;
 1866|      1|                }
 1867|  7.09k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1867:21): [True: 1, False: 7.09k]
  ------------------
 1868|      1|                {
 1869|      1|                    ec = cbor_errc::bigdec_scale_overflow;
 1870|      1|                    more_ = false;
 1871|      1|                    return;
 1872|      1|                }
 1873|  7.09k|                exponent = static_cast<int64_t>(u);
 1874|  7.09k|                break;
 1875|  7.09k|            }
 1876|   176k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1876:13): [True: 176k, False: 7.09k]
  ------------------
 1877|   176k|            {
 1878|   176k|                exponent = read_int64(ec);
 1879|   176k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   176k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 176k]
  |  |  ------------------
  ------------------
 1880|      0|                {
 1881|      0|                    return;
 1882|      0|                }
 1883|   176k|                break;
 1884|   176k|            }
 1885|   176k|            default:
  ------------------
  |  Branch (1885:13): [True: 2, False: 183k]
  ------------------
 1886|      2|            {
 1887|      2|                ec = cbor_errc::invalid_bigdecimal;
 1888|      2|                more_ = false;
 1889|      2|                return;
 1890|   176k|            }
 1891|   183k|        }
 1892|       |
 1893|   183k|        c = source_.peek();
 1894|   183k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   183k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 183k]
  |  |  ------------------
  ------------------
 1895|      5|        {
 1896|      5|            ec = cbor_errc::unexpected_eof;
 1897|      5|            more_ = false;
 1898|      5|            return;
 1899|      5|        }
 1900|       |
 1901|   183k|        major_type = get_major_type(c.value);
 1902|   183k|        info = get_additional_information(c.value);
 1903|   183k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   183k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 183k]
  |  |  |  Branch (79:50): [True: 136, False: 183k]
  |  |  |  Branch (79:50): [True: 0, False: 136]
  |  |  ------------------
  ------------------
 1904|      0|        {
 1905|      0|            ec = cbor_errc::reserved_additional_info;
 1906|      0|            more_ = false;
 1907|      0|            return;
 1908|      0|        }
 1909|       |
 1910|   183k|        bigint unscaled;
 1911|   183k|        switch (major_type)
 1912|   183k|        {
 1913|  50.0k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1913:13): [True: 50.0k, False: 133k]
  ------------------
 1914|  50.0k|            {
 1915|  50.0k|                source_.ignore(1);
 1916|  50.0k|                uint64_t u = read_unsigned_integer(info, ec);
 1917|  50.0k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  50.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 50.0k]
  |  |  ------------------
  ------------------
 1918|      0|                {
 1919|      0|                    return;
 1920|      0|                }
 1921|  50.0k|                unscaled = bigint(u);
 1922|  50.0k|                break;
 1923|  50.0k|            }
 1924|  27.8k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1924:13): [True: 27.8k, False: 155k]
  ------------------
 1925|  27.8k|            {
 1926|  27.8k|                source_.ignore(1);
 1927|  27.8k|                auto u = read_unsigned_integer(info, ec);
 1928|  27.8k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 27.8k]
  |  |  ------------------
  ------------------
 1929|      0|                {
 1930|      0|                    return;
 1931|      0|                }
 1932|  27.8k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1932:21): [True: 449, False: 27.3k]
  ------------------
 1933|    449|                {
 1934|    449|                    unscaled = -1 - bigint(u);
 1935|    449|                }
 1936|  27.3k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  27.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.48k, False: 25.8k]
  |  |  ------------------
  ------------------
 1937|  1.48k|                {
 1938|  1.48k|                    unscaled = bigint((std::numeric_limits<int64_t>::min)());
 1939|  1.48k|                }
 1940|  25.8k|                else
 1941|  25.8k|                {
 1942|  25.8k|                    unscaled = bigint(static_cast<int64_t>(-1) - static_cast<int64_t>(u));
 1943|  25.8k|                }
 1944|  27.8k|                break;
 1945|  27.8k|            }
 1946|   105k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1946:13): [True: 105k, False: 77.9k]
  ------------------
 1947|   105k|            {
 1948|   105k|                uint8_t b;
 1949|   105k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1949:21): [True: 0, False: 105k]
  ------------------
 1950|      0|                {
 1951|      0|                    ec = cbor_errc::unexpected_eof;
 1952|      0|                    more_ = false;
 1953|      0|                    return;
 1954|      0|                }
 1955|   105k|                info = get_additional_information(b);
 1956|   105k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   105k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 105k]
  |  |  |  Branch (79:50): [True: 135, False: 105k]
  |  |  |  Branch (79:50): [True: 0, False: 135]
  |  |  ------------------
  ------------------
 1957|      0|                {
 1958|      0|                    ec = cbor_errc::reserved_additional_info;
 1959|      0|                    more_ = false;
 1960|      0|                    return;
 1961|      0|                }
 1962|   105k|                c = source_.peek();
 1963|   105k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   105k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 105k]
  |  |  ------------------
  ------------------
 1964|      3|                {
 1965|      3|                    ec = cbor_errc::unexpected_eof;
 1966|      3|                    more_ = false;
 1967|      3|                    return;
 1968|      3|                }
 1969|       |
 1970|   105k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1970:21): [True: 103k, False: 2.31k]
  ------------------
 1971|   103k|                {
 1972|   103k|                    bytes_buffer_.clear();
 1973|   103k|                    read_byte_string(bytes_buffer_, ec);
 1974|   103k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   103k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 103k]
  |  |  ------------------
  ------------------
 1975|      5|                    {
 1976|      5|                        more_ = false;
 1977|      5|                        return;
 1978|      5|                    }
 1979|   103k|                    if (info == 2)
  ------------------
  |  Branch (1979:25): [True: 575, False: 102k]
  ------------------
 1980|    575|                    {
 1981|    575|                        unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1982|    575|                    }
 1983|   102k|                    else if (info == 3)
  ------------------
  |  Branch (1983:30): [True: 102k, False: 271]
  ------------------
 1984|   102k|                    {
 1985|   102k|                        unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1986|   102k|                        unscaled = -1 - unscaled;
 1987|   102k|                    }
 1988|   103k|                }
 1989|   105k|                break;
 1990|   105k|            }
 1991|   105k|            default:
  ------------------
  |  Branch (1991:13): [True: 7, False: 183k]
  ------------------
 1992|      7|            {
 1993|      7|                ec = cbor_errc::invalid_bigdecimal;
 1994|      7|                more_ = false;
 1995|      7|                return;
 1996|   105k|            }
 1997|   183k|        }
 1998|       |
 1999|   183k|        bigdec dec(std::move(unscaled), -exponent);
 2000|   183k|        append_to_buffer(dec, result);
 2001|   183k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10read_int64ERNS3_10error_codeE:
 1495|   283k|    {
 1496|   283k|        int64_t val = 0;
 1497|       |
 1498|   283k|        auto ch = source_.peek();
 1499|   283k|        if (ch.eof)
  ------------------
  |  Branch (1499:13): [True: 0, False: 283k]
  ------------------
 1500|      0|        {
 1501|      0|            ec = cbor_errc::unexpected_eof;
 1502|      0|            more_ = false;
 1503|      0|            return val;
 1504|      0|        }
 1505|       |
 1506|   283k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(ch.value);
 1507|   283k|        uint8_t info = get_additional_information(ch.value);
 1508|   283k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   289k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 283k]
  |  |  |  Branch (79:50): [True: 6.94k, False: 276k]
  |  |  |  Branch (79:50): [True: 0, False: 6.94k]
  |  |  ------------------
  ------------------
 1509|      0|        {
 1510|      0|            ec = cbor_errc::reserved_additional_info;
 1511|      0|            more_ = false;
 1512|      0|            return val;
 1513|      0|        }
 1514|   283k|        switch (major_type)
 1515|   283k|        {
 1516|   283k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1516:13): [True: 283k, False: 0]
  ------------------
 1517|   283k|                source_.ignore(1);
 1518|   283k|                switch (info)
  ------------------
  |  Branch (1518:25): [True: 276k, False: 6.94k]
  ------------------
 1519|   283k|                {
 1520|   274k|                    case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|   274k|    0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x17
  |  |  ------------------
  |  |  |  Branch (18:10): [True: 186, False: 282k]
  |  |  |  Branch (18:20): [True: 2.10k, False: 280k]
  |  |  |  Branch (18:30): [True: 381, False: 282k]
  |  |  |  Branch (18:40): [True: 130k, False: 152k]
  |  |  |  Branch (18:50): [True: 32, False: 283k]
  |  |  |  Branch (18:60): [True: 338, False: 282k]
  |  |  |  Branch (18:70): [True: 297, False: 282k]
  |  |  |  Branch (18:80): [True: 82.9k, False: 200k]
  |  |  |  Branch (18:90): [True: 10.2k, False: 272k]
  |  |  |  Branch (18:100): [True: 68, False: 282k]
  |  |  |  Branch (18:110): [True: 35, False: 283k]
  |  |  |  Branch (18:120): [True: 2.09k, False: 280k]
  |  |  |  Branch (18:130): [True: 156, False: 282k]
  |  |  |  Branch (18:140): [True: 29, False: 283k]
  |  |  |  Branch (18:150): [True: 4, False: 283k]
  |  |  |  Branch (18:160): [True: 385, False: 282k]
  |  |  |  Branch (18:170): [True: 369, False: 282k]
  |  |  |  Branch (18:180): [True: 339, False: 282k]
  |  |  |  Branch (18:190): [True: 64, False: 282k]
  |  |  |  Branch (18:200): [True: 19.0k, False: 263k]
  |  |  |  Branch (18:210): [True: 433, False: 282k]
  |  |  |  Branch (18:220): [True: 93, False: 282k]
  |  |  ------------------
  ------------------
  |  Branch (1520:21): [True: 24.3k, False: 258k]
  ------------------
 1521|   274k|                    {
 1522|   274k|                        val = static_cast<int8_t>(- 1 - info);
 1523|   274k|                        break;
 1524|  4.55M|                    }
 1525|    373|                    case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1525:21): [True: 373, False: 282k]
  ------------------
 1526|    373|                        {
 1527|    373|                            uint8_t b;
 1528|    373|                            if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1528:33): [True: 0, False: 373]
  ------------------
 1529|      0|                            {
 1530|      0|                                ec = cbor_errc::unexpected_eof;
 1531|      0|                                more_ = false;
 1532|      0|                                return val;
 1533|      0|                            }
 1534|    373|                            val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1535|    373|                            break;
 1536|    373|                        }
 1537|       |
 1538|    692|                    case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1538:21): [True: 692, False: 282k]
  ------------------
 1539|    692|                        {
 1540|    692|                            uint8_t buf[sizeof(uint16_t)];
 1541|    692|                            if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1541:33): [True: 0, False: 692]
  ------------------
 1542|      0|                            {
 1543|      0|                                ec = cbor_errc::unexpected_eof;
 1544|      0|                                more_ = false;
 1545|      0|                                return val;
 1546|      0|                            }
 1547|    692|                            auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1548|    692|                            val = static_cast<int64_t>(-1)- u;
 1549|    692|                            break;
 1550|    692|                        }
 1551|       |
 1552|     20|                    case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1552:21): [True: 20, False: 283k]
  ------------------
 1553|     20|                        {
 1554|     20|                            uint8_t buf[sizeof(uint32_t)];
 1555|     20|                            if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1555:33): [True: 0, False: 20]
  ------------------
 1556|      0|                            {
 1557|      0|                                ec = cbor_errc::unexpected_eof;
 1558|      0|                                more_ = false;
 1559|      0|                                return val;
 1560|      0|                            }
 1561|     20|                            auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1562|     20|                            val = static_cast<int64_t>(-1)- u;
 1563|     20|                            break;
 1564|     20|                        }
 1565|       |
 1566|     99|                    case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1566:21): [True: 99, False: 282k]
  ------------------
 1567|     99|                        {
 1568|     99|                            uint8_t buf[sizeof(uint64_t)];
 1569|     99|                            if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1569:33): [True: 0, False: 99]
  ------------------
 1570|      0|                            {
 1571|      0|                                ec = cbor_errc::unexpected_eof;
 1572|      0|                                more_ = false;
 1573|      0|                                return val;
 1574|      0|                            }
 1575|     99|                            auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1576|     99|                            if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1576:33): [True: 0, False: 99]
  ------------------
 1577|      0|                            {
 1578|      0|                                ec = cbor_errc::invalid_bigdecimal;
 1579|      0|                                more_ = false;
 1580|      0|                                return val;
 1581|      0|                            }
 1582|     99|                            if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|     99|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 99]
  |  |  ------------------
  ------------------
 1583|      0|                            {
 1584|      0|                                val = (std::numeric_limits<int64_t>::min)();
 1585|      0|                            }
 1586|     99|                            else
 1587|     99|                            {
 1588|     99|                                val = static_cast<int64_t>(-1)- static_cast<int64_t>(u);
 1589|     99|                            }
 1590|     99|                            break;
 1591|     99|                        }
 1592|   283k|                }
 1593|   283k|                break;
 1594|       |
 1595|   283k|                case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1595:17): [True: 0, False: 283k]
  ------------------
 1596|      0|                {
 1597|      0|                    source_.ignore(1);
 1598|      0|                    uint64_t u = read_unsigned_integer(info, ec);
 1599|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1600|      0|                    {
 1601|      0|                        return 0;
 1602|      0|                    }
 1603|      0|                    if (u <= static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1603:25): [True: 0, False: 0]
  ------------------
 1604|      0|                    {
 1605|      0|                        val = u;
 1606|      0|                    }
 1607|      0|                    else
 1608|      0|                    {
 1609|       |                        // error;
 1610|      0|                    }
 1611|       |                    
 1612|      0|                    break;
 1613|      0|                }
 1614|      0|                break;
 1615|      0|            default:
  ------------------
  |  Branch (1615:13): [True: 0, False: 283k]
  ------------------
 1616|      0|                break;
 1617|   283k|        }
 1618|       |
 1619|   283k|        return val;
 1620|   283k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13read_bigfloatEhRNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 2004|   112k|    {
 2005|   112k|        std::size_t size = read_unsigned_integer(container_info, ec);
 2006|   112k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   112k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 112k]
  |  |  ------------------
  ------------------
 2007|      0|        {
 2008|      0|            return;
 2009|      0|        }
 2010|   112k|        if (size != 2)
  ------------------
  |  Branch (2010:13): [True: 1, False: 112k]
  ------------------
 2011|      1|        {
 2012|      1|            ec = cbor_errc::invalid_bigfloat;
 2013|      1|            more_ = false;
 2014|      1|            return;
 2015|      1|        }
 2016|       |
 2017|   112k|        auto c = source_.peek();
 2018|   112k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   112k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 112k]
  |  |  ------------------
  ------------------
 2019|      2|        {
 2020|      2|            ec = cbor_errc::unexpected_eof;
 2021|      2|            more_ = false;
 2022|      2|            return;
 2023|      2|        }
 2024|   112k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 2025|   112k|        uint8_t info = get_additional_information(c.value);
 2026|   112k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   119k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 112k]
  |  |  |  Branch (79:50): [True: 6.94k, False: 105k]
  |  |  |  Branch (79:50): [True: 0, False: 6.94k]
  |  |  ------------------
  ------------------
 2027|      0|        {
 2028|      0|            ec = cbor_errc::reserved_additional_info;
 2029|      0|            more_ = false;
 2030|      0|            return;
 2031|      0|        }
 2032|       |
 2033|   112k|        int64_t exponent = 0;
 2034|   112k|        switch (major_type)
 2035|   112k|        {
 2036|  6.11k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2036:13): [True: 6.11k, False: 106k]
  ------------------
 2037|  6.11k|            {
 2038|  6.11k|                source_.ignore(1);
 2039|  6.11k|                auto u = read_unsigned_integer(info, ec);
 2040|  6.11k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.11k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.11k]
  |  |  ------------------
  ------------------
 2041|      0|                {
 2042|      0|                    return;
 2043|      0|                }
 2044|  6.11k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2044:21): [True: 0, False: 6.11k]
  ------------------
 2045|      0|                {
 2046|      0|                    ec = cbor_errc::invalid_bigdecimal;
 2047|      0|                    more_ = false;
 2048|      0|                    return;
 2049|      0|                }
 2050|  6.11k|                exponent = static_cast<int64_t>(u);
 2051|  6.11k|                if (exponent == 0)
  ------------------
  |  Branch (2051:21): [True: 580, False: 5.53k]
  ------------------
 2052|    580|                {
 2053|    580|                    str.append("0.0");
 2054|    580|                    return;
 2055|    580|                }
 2056|  5.53k|                break;
 2057|  6.11k|            }
 2058|   106k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2058:13): [True: 106k, False: 6.11k]
  ------------------
 2059|   106k|            {
 2060|   106k|                exponent = read_int64(ec);
 2061|   106k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   106k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 106k]
  |  |  ------------------
  ------------------
 2062|      0|                {
 2063|      0|                    return;
 2064|      0|                }
 2065|   106k|                if (exponent == 0)
  ------------------
  |  Branch (2065:21): [True: 6.94k, False: 99.4k]
  ------------------
 2066|  6.94k|                {
 2067|  6.94k|                    str.append("0.0");
 2068|  6.94k|                    return;
 2069|  6.94k|                }
 2070|  99.4k|                break;
 2071|   106k|            }
 2072|  99.4k|            default:
  ------------------
  |  Branch (2072:13): [True: 9, False: 112k]
  ------------------
 2073|      9|            {
 2074|      9|                ec = cbor_errc::invalid_bigfloat;
 2075|      9|                more_ = false;
 2076|      9|                return;
 2077|   106k|            }
 2078|   112k|        }
 2079|       |
 2080|   104k|        c = source_.peek();
 2081|   104k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   104k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 104k]
  |  |  ------------------
  ------------------
 2082|      3|        {
 2083|      3|            ec = cbor_errc::unexpected_eof;
 2084|      3|            more_ = false;
 2085|      3|            return;
 2086|      3|        }
 2087|   104k|        major_type = get_major_type(c.value);
 2088|   104k|        info = get_additional_information(c.value);
 2089|   104k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   104k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 104k]
  |  |  |  Branch (79:50): [True: 19, False: 104k]
  |  |  |  Branch (79:50): [True: 0, False: 19]
  |  |  ------------------
  ------------------
 2090|      0|        {
 2091|      0|            ec = cbor_errc::reserved_additional_info;
 2092|      0|            more_ = false;
 2093|      0|            return;
 2094|      0|        }
 2095|       |
 2096|   104k|        bigint unscaled;
 2097|   104k|        switch (major_type)
 2098|   104k|        {
 2099|  7.35k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2099:13): [True: 7.35k, False: 97.6k]
  ------------------
 2100|  7.35k|            {
 2101|  7.35k|                source_.ignore(1);
 2102|  7.35k|                uint64_t u = read_unsigned_integer(info, ec);
 2103|  7.35k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.35k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 7.35k]
  |  |  ------------------
  ------------------
 2104|      0|                {
 2105|      0|                    return;
 2106|      0|                }
 2107|  7.35k|                unscaled = bigint(u);
 2108|       |                //bigdec dec(std::move(unscaled), -exponent);
 2109|       |                //append_to_buffer(dec, str);
 2110|  7.35k|                break;
 2111|  7.35k|            }
 2112|  27.7k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2112:13): [True: 27.7k, False: 77.2k]
  ------------------
 2113|  27.7k|            {
 2114|  27.7k|                source_.ignore(1);
 2115|  27.7k|                auto u = read_unsigned_integer(info, ec);
 2116|  27.7k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 27.7k]
  |  |  ------------------
  ------------------
 2117|      1|                {
 2118|      1|                    return;
 2119|      1|                }
 2120|  27.7k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2120:21): [True: 1, False: 27.7k]
  ------------------
 2121|      1|                {
 2122|      1|                    unscaled = -1 - bigint(u);
 2123|      1|                }
 2124|  27.7k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  27.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 16, False: 27.7k]
  |  |  ------------------
  ------------------
 2125|     16|                {
 2126|     16|                    unscaled = bigint((std::numeric_limits<int64_t>::min)());
 2127|     16|                }
 2128|  27.7k|                else
 2129|  27.7k|                {
 2130|  27.7k|                    unscaled = bigint(static_cast<int64_t>(-1) - static_cast<int64_t>(u));
 2131|  27.7k|                }
 2132|       |                //bigdec dec(std::move(unscaled), -exponent);
 2133|       |                //append_to_buffer(dec, str);
 2134|  27.7k|                break;
 2135|  27.7k|            }
 2136|  69.8k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (2136:13): [True: 69.8k, False: 35.1k]
  ------------------
 2137|  69.8k|            {
 2138|  69.8k|                uint8_t x;
 2139|  69.8k|                if (source_.read(&x, 1) == 0)
  ------------------
  |  Branch (2139:21): [True: 0, False: 69.8k]
  ------------------
 2140|      0|                {
 2141|      0|                    ec = cbor_errc::unexpected_eof;
 2142|      0|                    more_ = false;
 2143|      0|                    return;
 2144|      0|                }
 2145|  69.8k|                uint8_t tag = get_additional_information(x);
 2146|  69.8k|                if (JSONCONS_UNLIKELY(tag >= 0x1C && tag <= 0x1E))
  ------------------
  |  |   79|  69.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 69.8k]
  |  |  |  Branch (79:50): [True: 18, False: 69.8k]
  |  |  |  Branch (79:50): [True: 0, False: 18]
  |  |  ------------------
  ------------------
 2147|      0|                {
 2148|      0|                    ec = cbor_errc::reserved_additional_info;
 2149|      0|                    more_ = false;
 2150|      0|                    return;
 2151|      0|                }
 2152|       |
 2153|  69.8k|                c = source_.peek();
 2154|  69.8k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  69.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 69.8k]
  |  |  ------------------
  ------------------
 2155|      0|                {
 2156|      0|                    ec = cbor_errc::unexpected_eof;
 2157|      0|                    more_ = false;
 2158|      0|                    return;
 2159|      0|                }
 2160|       |
 2161|  69.8k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (2161:21): [True: 3.58k, False: 66.2k]
  ------------------
 2162|  3.58k|                {
 2163|  3.58k|                    bytes_buffer_.clear();
 2164|  3.58k|                    read_byte_string(bytes_buffer_, ec);
 2165|  3.58k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.58k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 3.58k]
  |  |  ------------------
  ------------------
 2166|      1|                    {
 2167|      1|                        more_ = false;
 2168|      1|                        return;
 2169|      1|                    }
 2170|  3.58k|                    unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 2171|  3.58k|                    if (tag == 3)
  ------------------
  |  Branch (2171:25): [True: 2.89k, False: 687]
  ------------------
 2172|  2.89k|                    {
 2173|  2.89k|                        unscaled = -1 - unscaled;
 2174|  2.89k|                    }
 2175|  3.58k|                }
 2176|  69.8k|                break;
 2177|  69.8k|            }
 2178|  69.8k|            default:
  ------------------
  |  Branch (2178:13): [True: 1, False: 104k]
  ------------------
 2179|      1|            {
 2180|      1|                ec = cbor_errc::invalid_bigfloat;
 2181|      1|                more_ = false;
 2182|      1|                return;
 2183|  69.8k|            }
 2184|   104k|        }
 2185|       |
 2186|   104k|        bigdec dec;
 2187|   104k|        auto result = from_cbor_bigfloat(std::move(unscaled), exponent, dec, bigfloat_precision_);
 2188|   104k|        if (result != cbor_errc{})
  ------------------
  |  Branch (2188:13): [True: 0, False: 104k]
  ------------------
 2189|      0|        {
 2190|      0|            ec = result;
 2191|      0|            more_ = false;
 2192|      0|            return;
 2193|      0|        }
 2194|   104k|        append_to_buffer(dec, str);
 2195|   104k|    }
_ZN8jsoncons4cbor18from_cbor_bigfloatINSt3__19allocatorImEEEENS0_9cbor_errcENS_12basic_bigintIT_EElRNS_12basic_bigdecIS7_EEm:
   46|   104k|{
   47|   104k|    constexpr uint64_t max_scale =
   48|   104k|        static_cast<uint64_t>(
   49|   104k|            (std::numeric_limits<int64_t>::max)()
   50|   104k|        );
   51|       |
   52|   104k|    if (max_decimal_places > max_scale)
  ------------------
  |  Branch (52:9): [True: 0, False: 104k]
  ------------------
   53|      0|    {
   54|      0|        return cbor_errc::bigdec_scale_overflow;
   55|      0|    }
   56|       |
   57|   104k|    if (unscaled.is_zero())
  ------------------
  |  Branch (57:9): [True: 73.1k, False: 31.8k]
  ------------------
   58|  73.1k|    {
   59|  73.1k|        value = basic_bigdec<Allocator>{ basic_bigint<Allocator>(0), 0 };
   60|  73.1k|        return cbor_errc{};
   61|  73.1k|    }
   62|       |
   63|       |    // Positive exponent: exact integer.
   64|  31.8k|    if (exponent >= 0) {
  ------------------
  |  Branch (64:9): [True: 1.75k, False: 30.0k]
  ------------------
   65|  1.75k|        unscaled <<= (static_cast<uint64_t>(exponent));
   66|  1.75k|        value = basic_bigdec<Allocator>{ std::move(unscaled), 0 };
   67|  1.75k|        return cbor_errc{};
   68|  1.75k|    }
   69|       |
   70|  30.0k|    const bool negative = unscaled < basic_bigint<Allocator>(0);
   71|       |
   72|  30.0k|    if (negative)
  ------------------
  |  Branch (72:9): [True: 29.3k, False: 702]
  ------------------
   73|  29.3k|        unscaled = -unscaled;
   74|       |
   75|       |    // Absolute exponent, safe for INT64_MIN.
   76|  30.0k|    uint64_t k =
   77|  30.0k|        static_cast<uint64_t>(-(exponent + 1)) + 1;
   78|       |
   79|       |    // Cancel powers of 2.
   80|  30.0k|    const u128 trailing = unscaled.trailing_zero_bits();
   81|       |
   82|  30.0k|    const uint64_t cancel =
   83|  30.0k|        trailing >= static_cast<u128>(k)
  ------------------
  |  Branch (83:9): [True: 186, False: 29.8k]
  ------------------
   84|  30.0k|            ? k
   85|  30.0k|            : static_cast<uint64_t>(trailing);
   86|       |
   87|  30.0k|    if (cancel != 0)
  ------------------
  |  Branch (87:9): [True: 17.5k, False: 12.5k]
  ------------------
   88|  17.5k|        unscaled >>= (cancel);
   89|       |
   90|  30.0k|    k -= cancel;
   91|       |
   92|       |    // Exact conversion when the scale fits.
   93|  30.0k|    if (k <= max_decimal_places) {
  ------------------
  |  Branch (93:9): [True: 29.9k, False: 126]
  ------------------
   94|  29.9k|        if (k != 0)
  ------------------
  |  Branch (94:13): [True: 29.7k, False: 186]
  ------------------
   95|  29.7k|            unscaled *= jsoncons::powb(basic_bigint<Allocator>(5), k);
   96|       |
   97|  29.9k|        if (negative)
  ------------------
  |  Branch (97:13): [True: 29.2k, False: 701]
  ------------------
   98|  29.2k|            unscaled = -unscaled;
   99|       |
  100|  29.9k|        value = basic_bigdec<Allocator>{
  101|  29.9k|            std::move(unscaled),
  102|  29.9k|            static_cast<int64_t>(k)
  103|  29.9k|        };
  104|  29.9k|        return cbor_errc{};
  105|  29.9k|    }
  106|       |
  107|       |    // Round to max_decimal_places.
  108|       |    //
  109|       |    // m / 2^k * 10^scale
  110|       |    // = m * 5^scale / 2^(k-scale)
  111|       |
  112|    126|    const uint64_t scale = max_decimal_places;
  113|    126|    const uint64_t shift = k - scale;
  114|       |
  115|       |    // Conservative early-zero bound:
  116|       |    // 5^scale < 2^(3*scale).
  117|       |    //
  118|       |    // If shift >= bit_length(m) + 3*scale,
  119|       |    // the rounded result must be zero.
  120|    126|    const u128 bits = unscaled.bit_length();
  121|    126|    const u128 bound =
  122|    126|        bits + static_cast<u128>(3) * scale;
  123|       |
  124|    126|    if (static_cast<u128>(shift) >= bound) {
  ------------------
  |  Branch (124:9): [True: 94, False: 32]
  ------------------
  125|     94|        value = basic_bigdec<Allocator>{
  126|     94|            basic_bigint<Allocator>(0),
  127|     94|            static_cast<int64_t>(scale)
  128|     94|        };
  129|     94|        return cbor_errc{};
  130|     94|    }
  131|       |
  132|       |    // Compute scaled positive magnitude.
  133|     32|    unscaled *= jsoncons::powb(basic_bigint<Allocator>(5), scale);
  134|       |
  135|       |    // Round unscaled / 2^shift using HALF_EVEN.
  136|     32|    basic_bigint<Allocator> quotient = unscaled;
  137|     32|    quotient >>= (shift);
  138|       |
  139|     32|    const bool halfBit = unscaled.test_bit(shift - 1);
  140|     32|    const bool lowerBits = unscaled.any_low_bits(shift - 1);
  141|     32|    const bool odd = quotient.test_bit(0);
  142|       |
  143|     32|    if (halfBit && (lowerBits || odd))
  ------------------
  |  Branch (143:9): [True: 0, False: 32]
  |  Branch (143:21): [True: 0, False: 0]
  |  Branch (143:34): [True: 0, False: 0]
  ------------------
  144|      0|        quotient += basic_bigint<Allocator>(1);
  145|       |
  146|     32|    if (negative && !quotient.is_zero())
  ------------------
  |  Branch (146:9): [True: 32, False: 0]
  |  Branch (146:21): [True: 16, False: 16]
  ------------------
  147|     16|        quotient = -quotient;
  148|       |
  149|     32|    value = basic_bigdec<Allocator> {
  150|     32|        std::move(quotient),
  151|     32|        static_cast<int64_t>(scale)
  152|     32|    };
  153|     32|    return cbor_errc{};
  154|    126|}
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE19read_mdarray_headerERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2896|  20.2k|    {
 2897|  20.2k|        uint8_t b;
 2898|  20.2k|        if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2898:13): [True: 0, False: 20.2k]
  ------------------
 2899|      0|        {
 2900|      0|            ec = cbor_errc::unexpected_eof;
 2901|      0|            more_ = false;
 2902|      0|            return;
 2903|      0|        }
 2904|  20.2k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(b);
 2905|  20.2k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::array);
  ------------------
  |  |   54|  20.2k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 20.2k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 2906|  20.2k|        uint8_t info = get_additional_information(b);
 2907|  20.2k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  33.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 20.2k]
  |  |  |  Branch (79:50): [True: 13.0k, False: 7.16k]
  |  |  |  Branch (79:50): [True: 0, False: 13.0k]
  |  |  ------------------
  ------------------
 2908|      0|        {
 2909|      0|            ec = cbor_errc::reserved_additional_info;
 2910|      0|            more_ = false;
 2911|      0|            return;
 2912|      0|        }
 2913|       |       
 2914|  20.2k|        read_extents(ec);   
 2915|  20.2k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  20.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 42, False: 20.2k]
  |  |  ------------------
  ------------------
 2916|     42|        {
 2917|     42|            return;
 2918|     42|        }
 2919|       |
 2920|  20.2k|        read_tags(ec);
 2921|  20.2k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  20.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 20.2k]
  |  |  ------------------
  ------------------
 2922|      3|        {
 2923|      3|            return;
 2924|      3|        }
 2925|  20.2k|        auto c = source_.peek();
 2926|  20.2k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  20.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 20.2k]
  |  |  ------------------
  ------------------
 2927|      0|        {
 2928|      0|            ec = cbor_errc::unexpected_eof;
 2929|      0|            more_ = false;
 2930|      0|            return;
 2931|      0|        }
 2932|  20.2k|        major_type = get_major_type(c.value);
 2933|  20.2k|        info = get_additional_information(c.value);
 2934|  20.2k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  23.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 20.2k]
  |  |  |  Branch (79:50): [True: 2.80k, False: 17.4k]
  |  |  |  Branch (79:50): [True: 0, False: 2.80k]
  |  |  ------------------
  ------------------
 2935|      0|        {
 2936|      0|            ec = cbor_errc::reserved_additional_info;
 2937|      0|            more_ = false;
 2938|      0|            return;
 2939|      0|        }
 2940|  20.2k|        state_stack_.emplace_back(parse_mode::multi_dim, 0);
 2941|  20.2k|        ++state_stack_.back().index;
 2942|       |
 2943|  20.2k|        if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::row_major) 
  ------------------
  |  Branch (2943:13): [True: 6.63k, False: 13.5k]
  |  Branch (2943:77): [True: 4.32k, False: 2.30k]
  ------------------
 2944|  4.32k|        {
 2945|  4.32k|            source_.ignore(1);
 2946|  4.32k|            begin_classical_array_storage(info, ec);
 2947|  4.32k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.32k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.32k]
  |  |  ------------------
  ------------------
 2948|      0|            {
 2949|      0|                return;
 2950|      0|            }
 2951|  4.32k|            auto iter = std::make_shared<cbor_mdarray_row_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, alloc_);
 2952|  4.32k|            typed_array_stack_.push_back(iter);
 2953|  4.32k|            if (!iter->done())
  ------------------
  |  Branch (2953:17): [True: 4.32k, False: 0]
  ------------------
 2954|  4.32k|            {
 2955|  4.32k|                iter->next(visitor, *this, ec);
 2956|  4.32k|            }
 2957|  4.32k|        }
 2958|  15.8k|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::column_major) 
  ------------------
  |  Branch (2958:18): [True: 2.30k, False: 13.5k]
  |  Branch (2958:82): [True: 2.30k, False: 0]
  ------------------
 2959|  2.30k|        {
 2960|  2.30k|            source_.ignore(1);
 2961|  2.30k|            begin_classical_array_storage(info, ec);
 2962|  2.30k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.30k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 2.30k]
  |  |  ------------------
  ------------------
 2963|      1|            {
 2964|      1|                return;
 2965|      1|            }
 2966|  2.30k|            auto iter = std::make_shared<cbor_mdarray_column_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, alloc_);
 2967|  2.30k|            typed_array_stack_.push_back(iter);
 2968|  2.30k|            if (!iter->done())
  ------------------
  |  Branch (2968:17): [True: 2.30k, False: 0]
  ------------------
 2969|  2.30k|            {
 2970|  2.30k|                iter->next(visitor, *this, ec);
 2971|  2.30k|            }
 2972|  2.30k|        }
 2973|  13.5k|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (2973:18): [True: 13.5k, False: 6]
  ------------------
 2974|  13.5k|        {
 2975|  13.5k|            std::size_t typed_array_count = typed_array_stack_.size();
 2976|  13.5k|            read_byte_string_from_source read(this);
 2977|  13.5k|            read_byte_string(read, visitor, ec);
 2978|  13.5k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 14, False: 13.5k]
  |  |  ------------------
  ------------------
 2979|     14|            {
 2980|     14|                return;
 2981|     14|            }
 2982|  13.5k|            if (typed_array_stack_.size() == typed_array_count)
  ------------------
  |  Branch (2982:17): [True: 2, False: 13.5k]
  ------------------
 2983|      2|            {
 2984|       |                // Byte string storage must be a typed array
 2985|      2|                ec = cbor_errc::bad_mdarray;
 2986|      2|                return;
 2987|      2|            }
 2988|  13.5k|        }
 2989|      6|        else
 2990|      6|        {
 2991|      6|            ec = cbor_errc::bad_mdarray;
 2992|      6|            return;
 2993|      6|        }
 2994|       |        // cursor case
 2995|  20.2k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12read_extentsERNS3_10error_codeE:
 2998|  20.2k|    {
 2999|  20.2k|        extents_.clear();
 3000|       |
 3001|  20.2k|        auto b = source_.peek();
 3002|  20.2k|        if (JSONCONS_UNLIKELY(b.eof))
  ------------------
  |  |   79|  20.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 20.2k]
  |  |  ------------------
  ------------------
 3003|      1|        {
 3004|      1|            ec = cbor_errc::unexpected_eof;
 3005|      1|            more_ = false;
 3006|      1|            return;
 3007|      1|        }
 3008|  20.2k|        if (get_major_type(b.value) != jsoncons::cbor::detail::cbor_major_type::array)
  ------------------
  |  Branch (3008:13): [True: 5, False: 20.2k]
  ------------------
 3009|      5|        {
 3010|      5|            ec = cbor_errc::bad_extents;
 3011|      5|            more_ = false;
 3012|      5|            return;
 3013|      5|        }
 3014|  20.2k|        uint8_t info = get_additional_information(b.value);
 3015|  20.2k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  37.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 20.2k]
  |  |  |  Branch (79:50): [True: 17.2k, False: 2.96k]
  |  |  |  Branch (79:50): [True: 0, False: 17.2k]
  |  |  ------------------
  ------------------
 3016|      0|        {
 3017|      0|            ec = cbor_errc::reserved_additional_info;
 3018|      0|            more_ = false;
 3019|      0|            return;
 3020|      0|        }
 3021|       |
 3022|  20.2k|        source_.ignore(1);
 3023|  20.2k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (3023:13): [True: 17.2k, False: 2.96k]
  ------------------
 3024|  17.2k|        {
 3025|  17.2k|             bool done = false;
 3026|  8.30M|             while (!done)
  ------------------
  |  Branch (3026:21): [True: 8.28M, False: 17.2k]
  ------------------
 3027|  8.28M|             {
 3028|  8.28M|                 auto c = source_.peek();
 3029|  8.28M|                 if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  8.28M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 8.28M]
  |  |  ------------------
  ------------------
 3030|      7|                 {
 3031|      7|                     ec = cbor_errc::unexpected_eof;
 3032|      7|                     more_ = false;
 3033|      7|                     return;
 3034|      7|                 }
 3035|  8.28M|                 if (c.value == 0xff)
  ------------------
  |  Branch (3035:22): [True: 17.2k, False: 8.27M]
  ------------------
 3036|  17.2k|                 {
 3037|  17.2k|                     source_.ignore(1);
 3038|  17.2k|                     done = true;
 3039|  17.2k|                 }
 3040|  8.27M|                 else
 3041|  8.27M|                 {
 3042|  8.27M|                     source_.ignore(1);
 3043|  8.27M|                     std::size_t extent = read_size(get_additional_information(c.value), ec);
 3044|  8.27M|                     if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.27M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 8, False: 8.27M]
  |  |  ------------------
  ------------------
 3045|      8|                     {
 3046|      8|                         more_ = false;
 3047|      8|                         return;
 3048|      8|                     }
 3049|  8.27M|                     extents_.push_back(extent);
 3050|  8.27M|                 }
 3051|  8.28M|             }
 3052|  17.2k|        }
 3053|  2.96k|        else 
 3054|  2.96k|        {
 3055|  2.96k|            std::size_t size = read_size(info, ec);
 3056|  2.96k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.96k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.96k]
  |  |  ------------------
  ------------------
 3057|      0|            {
 3058|      0|                more_ = false;
 3059|      0|                return;
 3060|      0|            }
 3061|  22.5k|            for (std::size_t i = 0; more_ && i < size; ++i)
  ------------------
  |  Branch (3061:37): [True: 22.5k, False: 0]
  |  Branch (3061:46): [True: 19.6k, False: 2.95k]
  ------------------
 3062|  19.6k|            {
 3063|  19.6k|                uint8_t initial_byte;
 3064|  19.6k|                if (source_.read(&initial_byte, 1) == 0)
  ------------------
  |  Branch (3064:21): [True: 0, False: 19.6k]
  ------------------
 3065|      0|                {
 3066|      0|                    ec = cbor_errc::unexpected_eof;
 3067|      0|                    more_ = false;
 3068|      0|                    return;
 3069|      0|                }
 3070|  19.6k|                if (JSONCONS_UNLIKELY(get_major_type(initial_byte) != jsoncons::cbor::detail::cbor_major_type::unsigned_integer))
  ------------------
  |  |   79|  19.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 9, False: 19.6k]
  |  |  ------------------
  ------------------
 3071|      9|                {
 3072|      9|                    ec = cbor_errc::unknown_type;
 3073|      9|                    more_ = false;
 3074|      9|                    return;
 3075|      9|                }
 3076|  19.6k|                info = get_additional_information(initial_byte);
 3077|  19.6k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  19.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 19.6k]
  |  |  |  Branch (79:50): [True: 0, False: 19.6k]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3078|      0|                {
 3079|      0|                    ec = cbor_errc::reserved_additional_info;
 3080|      0|                    more_ = false;
 3081|      0|                    return;
 3082|      0|                }
 3083|  19.6k|                std::size_t extent = read_size(info, ec);
 3084|  19.6k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  19.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 19.6k]
  |  |  ------------------
  ------------------
 3085|      0|                {
 3086|      0|                    more_ = false;
 3087|      0|                    return;
 3088|      0|                }
 3089|  19.6k|                extents_.push_back(extent);
 3090|  19.6k|            }
 3091|  2.96k|        }
 3092|  20.2k|        auto r = calculate_mdarray_size(extents_);
 3093|  20.2k|        if (!r || *r == 0)
  ------------------
  |  Branch (3093:13): [True: 12, False: 20.2k]
  |  Branch (3093:19): [True: 0, False: 20.2k]
  ------------------
 3094|     12|        {
 3095|     12|            ec = cbor_errc::bad_extents;
 3096|     12|            more_ = false;
 3097|     12|            return;
 3098|     12|        }
 3099|  20.2k|        mdarray_size_ = *r;
 3100|  20.2k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE29begin_classical_array_storageEhRNS3_10error_codeE:
 1118|  6.63k|    {
 1119|  6.63k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  6.63k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 6.63k]
  |  |  ------------------
  ------------------
 1120|      1|        {
 1121|      1|            ec = cbor_errc::max_nesting_depth_exceeded;
 1122|      1|            more_ = false;
 1123|      1|            return;
 1124|      1|        }
 1125|  6.63k|        bool pop_stringref_map_stack = false;
 1126|  6.63k|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1126:13): [True: 358, False: 6.27k]
  ------------------
 1127|    358|        {
 1128|    358|            stringref_map_stack_.emplace_back();
 1129|    358|            other_tags_[stringref_namespace_tag] = false;
 1130|    358|            pop_stringref_map_stack = true;
 1131|    358|        }
 1132|  6.63k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1132:13): [True: 2.80k, False: 3.82k]
  ------------------
 1133|  2.80k|        {
 1134|  2.80k|            state_stack_.emplace_back(parse_mode::indefinite_array, 0, pop_stringref_map_stack);
 1135|  2.80k|        }
 1136|  3.82k|        else // definite length
 1137|  3.82k|        {
 1138|  3.82k|            std::size_t len = read_size(info, ec);
 1139|  3.82k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.82k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.82k]
  |  |  ------------------
  ------------------
 1140|      0|            {
 1141|      0|                return;
 1142|      0|            }
 1143|  3.82k|            state_stack_.emplace_back(parse_mode::array, len, pop_stringref_map_stack);
 1144|  3.82k|        }
 1145|  6.63k|        more_ = !cursor_mode_;
 1146|  6.63k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1055|   335k|    {
 1056|   335k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|   335k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 335k]
  |  |  ------------------
  ------------------
 1057|      3|        {
 1058|      3|            ec = cbor_errc::max_nesting_depth_exceeded;
 1059|      3|            more_ = false;
 1060|      3|            return;
 1061|      3|        } 
 1062|   335k|        semantic_tag tag = semantic_tag::none;
 1063|   335k|        bool pop_stringref_map_stack = false;
 1064|   335k|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1064:13): [True: 2.41k, False: 333k]
  ------------------
 1065|  2.41k|        {
 1066|  2.41k|            stringref_map_stack_.emplace_back();
 1067|  2.41k|            other_tags_[stringref_namespace_tag] = false;
 1068|  2.41k|            pop_stringref_map_stack = true;
 1069|  2.41k|        }
 1070|   335k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1070:13): [True: 175k, False: 160k]
  ------------------
 1071|   175k|        {
 1072|   175k|            state_stack_.emplace_back(parse_mode::indefinite_array,0,pop_stringref_map_stack);
 1073|   175k|            visitor.begin_array(tag, *this, ec);
 1074|   175k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   175k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 175k]
  |  |  ------------------
  ------------------
 1075|      0|            {
 1076|      0|                return;
 1077|      0|            }
 1078|   175k|        }
 1079|   160k|        else // definite length
 1080|   160k|        {
 1081|   160k|            std::size_t len = read_size(info, ec);
 1082|   160k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   160k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 160k]
  |  |  ------------------
  ------------------
 1083|      3|            {
 1084|      3|                return;
 1085|      3|            }
 1086|   160k|            state_stack_.emplace_back(parse_mode::array,len,pop_stringref_map_stack);
 1087|   160k|            visitor.begin_array(len, tag, *this, ec);
 1088|   160k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   160k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 160k]
  |  |  ------------------
  ------------------
 1089|      0|            {
 1090|      0|                return;
 1091|      0|            }
 1092|   160k|        }
 1093|   335k|        more_ = !cursor_mode_;
 1094|   335k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1165|   268k|    {
 1166|   268k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|   268k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 268k]
  |  |  ------------------
  ------------------
 1167|      3|        {
 1168|      3|            ec = cbor_errc::max_nesting_depth_exceeded;
 1169|      3|            more_ = false;
 1170|      3|            return;
 1171|      3|        } 
 1172|   268k|        bool pop_stringref_map_stack = false;
 1173|   268k|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1173:13): [True: 2.84k, False: 265k]
  ------------------
 1174|  2.84k|        {
 1175|  2.84k|            stringref_map_stack_.emplace_back();
 1176|  2.84k|            other_tags_[stringref_namespace_tag] = false;
 1177|  2.84k|            pop_stringref_map_stack = true;
 1178|  2.84k|        }
 1179|   268k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1179:13): [True: 13.4k, False: 254k]
  ------------------
 1180|  13.4k|        {
 1181|  13.4k|            state_stack_.emplace_back(parse_mode::indefinite_map_key,0,pop_stringref_map_stack);
 1182|  13.4k|            visitor.begin_object(semantic_tag::none, *this, ec);
 1183|  13.4k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 13.4k]
  |  |  ------------------
  ------------------
 1184|      0|            {
 1185|      0|                return;
 1186|      0|            }
 1187|  13.4k|        }
 1188|   254k|        else // definite_length
 1189|   254k|        {
 1190|   254k|            std::size_t len = read_size(info, ec);
 1191|   254k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   254k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 254k]
  |  |  ------------------
  ------------------
 1192|      0|            {
 1193|      0|                return;
 1194|      0|            }
 1195|   254k|            state_stack_.emplace_back(parse_mode::map_key,len,pop_stringref_map_stack);
 1196|   254k|            visitor.begin_object(len, semantic_tag::none, *this, ec);
 1197|   254k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   254k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 254k]
  |  |  ------------------
  ------------------
 1198|      0|            {
 1199|      0|                return;
 1200|      0|            }
 1201|   254k|        }
 1202|   268k|        more_ = !cursor_mode_;
 1203|   268k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1097|   300k|    {
 1098|   300k|        --nesting_depth_;
 1099|       |
 1100|   300k|        visitor.end_array(*this, ec);
 1101|   300k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   300k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 300k]
  |  |  ------------------
  ------------------
 1102|      0|        {
 1103|      0|            return;
 1104|      0|        }
 1105|   300k|        more_ = !cursor_mode_;
 1106|   300k|        if (level() == mark_level_)
  ------------------
  |  Branch (1106:13): [True: 0, False: 300k]
  ------------------
 1107|      0|        {
 1108|      0|            more_ = false;
 1109|      0|        }
 1110|   300k|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1110:13): [True: 1.65k, False: 298k]
  ------------------
 1111|  1.65k|        {
 1112|  1.65k|            stringref_map_stack_.pop_back();
 1113|  1.65k|        }
 1114|   300k|        state_stack_.pop_back();
 1115|   300k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1206|   229k|    {
 1207|   229k|        --nesting_depth_;
 1208|   229k|        visitor.end_object(*this, ec);
 1209|   229k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   229k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 229k]
  |  |  ------------------
  ------------------
 1210|      0|        {
 1211|      0|            return;
 1212|      0|        }
 1213|   229k|        more_ = !cursor_mode_;
 1214|   229k|        if (level() == mark_level_)
  ------------------
  |  Branch (1214:13): [True: 0, False: 229k]
  ------------------
 1215|      0|        {
 1216|      0|            more_ = false;
 1217|      0|        }
 1218|   229k|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1218:13): [True: 1.01k, False: 227k]
  ------------------
 1219|  1.01k|        {
 1220|  1.01k|            stringref_map_stack_.pop_back();
 1221|  1.01k|        }
 1222|   229k|        state_stack_.pop_back();
 1223|   229k|    }

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

_ZN8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  1.14k|        : data_(std::move(data), alloc), 
  200|  1.14k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  1.14k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  1.14k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  1.14k|    {
  204|  1.14k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  1.14k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 854, False: 289]
  ------------------
  206|    854|        {
  207|    854|            std::size_t stride = 1;
  208|    854|            const size_t num_extents = extents.size();
  209|  1.70k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 854, False: 854]
  ------------------
  210|    854|            {
  211|    854|                strides[i] = stride;
  212|    854|                stride *= extents[i];
  213|    854|            }
  214|    854|        }
  215|    289|        else
  216|    289|        {
  217|    289|            std::size_t stride = 1;
  218|    289|            const size_t num_extents = extents.size();
  219|  1.10k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 815, False: 289]
  ------------------
  220|    815|            {
  221|    815|                strides[num_extents-i-1] = stride;
  222|    815|                stride *= extents[num_extents-i-1];
  223|    815|            }
  224|    289|        }
  225|  2.81k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 1.66k, False: 1.14k]
  ------------------
  226|  1.66k|        {
  227|  1.66k|            dimensions_[i].extent = extents[i];
  228|  1.66k|            dimensions_[i].stride = strides[i];
  229|  1.66k|            dimensions_[i].index = 0;
  230|  1.66k|            dimensions_[i].end = strides[i]*extents[i];
  231|  1.66k|        }
  232|  1.14k|    }
_ZN8jsoncons4cbor20typed_array_iteratorD2Ev:
   43|   241k|    virtual ~typed_array_iterator() = default;
_ZNK8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  12.7k|    {
  261|  12.7k|        return done_;
  262|  12.7k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  7.52k|    {
  267|  7.52k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  7.52k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 7.52k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  7.52k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 4.16k, False: 3.36k]
  ------------------
  270|  4.16k|        {
  271|  4.16k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 1.14k, False: 3.01k]
  ------------------
  272|  1.14k|            {
  273|  1.14k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  1.14k|                first_ = false;
  275|  1.14k|                return;
  276|  1.14k|            }
  277|  3.01k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 1.14k, False: 1.87k]
  ------------------
  278|  1.14k|            {
  279|  1.14k|                visitor.end_array(context, ec);
  280|  1.14k|                done_ = true;
  281|  1.14k|                return;
  282|  1.14k|            }
  283|  3.01k|        }
  284|  5.24k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 2.35k, False: 2.88k]
  |  Branch (284:44): [True: 1.53k, False: 821]
  ------------------
  285|  1.53k|        {
  286|  1.53k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  1.53k|            ++dim_;
  288|  1.53k|            return;
  289|  1.53k|        }
  290|  3.70k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 2.17k, False: 1.53k]
  ------------------
  291|  2.17k|        {
  292|  2.17k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  2.17k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  2.17k|            ++count_;
  295|  2.17k|            return;
  296|  2.17k|        }
  297|  1.53k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 1.53k, False: 0]
  ------------------
  298|  1.53k|        {
  299|  1.53k|            visitor.end_array(context, ec);
  300|  1.53k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 1.53k, False: 0]
  ------------------
  301|  1.53k|            {
  302|  1.53k|                --dim_;
  303|  1.53k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  1.53k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 513, False: 1.02k]
  ------------------
  305|    513|                {
  306|  1.52k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 1.00k, False: 513]
  ------------------
  307|  1.00k|                    {
  308|  1.00k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  1.00k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  1.00k|                    }
  311|    513|                }
  312|  1.53k|            }
  313|  1.53k|        }
  314|  1.53k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIhEENSt3__19enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   210k|    {
   73|   210k|        visitor.uint64_value(val, tag, context, ec);
   74|   210k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  12.4k|        : data_(std::move(data), alloc), 
  107|  12.4k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  12.4k|          array_tag_(array_tag), 
  109|  12.4k|          extent_(span_.size()), 
  110|  12.4k|          tag_(tag), 
  111|  12.4k|          func_(Func{})
  112|  12.4k|    {
  113|  12.4k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   440k|    {
  142|   440k|        return done_;
  143|   440k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   232k|    {
  148|   232k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   232k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12.4k, False: 220k]
  |  |  ------------------
  ------------------
  149|  12.4k|        {
  150|  12.4k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  12.4k|            first_ = false;
  152|  12.4k|        }
  153|   220k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   220k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 208k, False: 12.4k]
  |  |  ------------------
  ------------------
  154|   208k|        {
  155|   208k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   208k|            ++index_;
  157|   208k|        }
  158|  12.4k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 12.4k, False: 0]
  ------------------
  159|  12.4k|        {
  160|  12.4k|            visitor.end_array(context, ec);
  161|  12.4k|            done_ = true;
  162|  12.4k|        }
  163|   232k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  4.92k|        : data_(std::move(data), alloc), 
  200|  4.92k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  4.92k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  4.92k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  4.92k|    {
  204|  4.92k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  4.92k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 128, False: 4.79k]
  ------------------
  206|    128|        {
  207|    128|            std::size_t stride = 1;
  208|    128|            const size_t num_extents = extents.size();
  209|    384|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 256, False: 128]
  ------------------
  210|    256|            {
  211|    256|                strides[i] = stride;
  212|    256|                stride *= extents[i];
  213|    256|            }
  214|    128|        }
  215|  4.79k|        else
  216|  4.79k|        {
  217|  4.79k|            std::size_t stride = 1;
  218|  4.79k|            const size_t num_extents = extents.size();
  219|  50.1k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 45.3k, False: 4.79k]
  ------------------
  220|  45.3k|            {
  221|  45.3k|                strides[num_extents-i-1] = stride;
  222|  45.3k|                stride *= extents[num_extents-i-1];
  223|  45.3k|            }
  224|  4.79k|        }
  225|  50.5k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 45.6k, False: 4.92k]
  ------------------
  226|  45.6k|        {
  227|  45.6k|            dimensions_[i].extent = extents[i];
  228|  45.6k|            dimensions_[i].stride = strides[i];
  229|  45.6k|            dimensions_[i].index = 0;
  230|  45.6k|            dimensions_[i].end = strides[i]*extents[i];
  231|  45.6k|        }
  232|  4.92k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|   441k|    {
  261|   441k|        return done_;
  262|   441k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   225k|    {
  267|   225k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   225k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 225k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|   225k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 33.9k, False: 191k]
  ------------------
  270|  33.9k|        {
  271|  33.9k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 4.92k, False: 28.9k]
  ------------------
  272|  4.92k|            {
  273|  4.92k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  4.92k|                first_ = false;
  275|  4.92k|                return;
  276|  4.92k|            }
  277|  28.9k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 4.92k, False: 24.0k]
  ------------------
  278|  4.92k|            {
  279|  4.92k|                visitor.end_array(context, ec);
  280|  4.92k|                done_ = true;
  281|  4.92k|                return;
  282|  4.92k|            }
  283|  28.9k|        }
  284|   215k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 167k, False: 48.1k]
  |  Branch (284:44): [True: 95.8k, False: 71.7k]
  ------------------
  285|  95.8k|        {
  286|  95.8k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  95.8k|            ++dim_;
  288|  95.8k|            return;
  289|  95.8k|        }
  290|   119k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 24.0k, False: 95.8k]
  ------------------
  291|  24.0k|        {
  292|  24.0k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  24.0k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  24.0k|            ++count_;
  295|  24.0k|            return;
  296|  24.0k|        }
  297|  95.8k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 95.8k, False: 0]
  ------------------
  298|  95.8k|        {
  299|  95.8k|            visitor.end_array(context, ec);
  300|  95.8k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 95.8k, False: 0]
  ------------------
  301|  95.8k|            {
  302|  95.8k|                --dim_;
  303|  95.8k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  95.8k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 19.1k, False: 76.7k]
  ------------------
  305|  19.1k|                {
  306|  74.3k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 55.1k, False: 19.1k]
  ------------------
  307|  55.1k|                    {
  308|  55.1k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  55.1k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  55.1k|                    }
  311|  19.1k|                }
  312|  95.8k|            }
  313|  95.8k|        }
  314|  95.8k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueItEENSt3__19enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   372k|    {
   73|   372k|        visitor.uint64_value(val, tag, context, ec);
   74|   372k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  13.4k|        : data_(std::move(data), alloc), 
  107|  13.4k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  13.4k|          array_tag_(array_tag), 
  109|  13.4k|          extent_(span_.size()), 
  110|  13.4k|          tag_(tag), 
  111|  13.4k|          func_(Func{})
  112|  13.4k|    {
  113|  13.4k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   723k|    {
  142|   723k|        return done_;
  143|   723k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   375k|    {
  148|   375k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   375k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 13.4k, False: 361k]
  |  |  ------------------
  ------------------
  149|  13.4k|        {
  150|  13.4k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  13.4k|            first_ = false;
  152|  13.4k|        }
  153|   361k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   361k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 348k, False: 13.4k]
  |  |  ------------------
  ------------------
  154|   348k|        {
  155|   348k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   348k|            ++index_;
  157|   348k|        }
  158|  13.4k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 13.4k, False: 0]
  ------------------
  159|  13.4k|        {
  160|  13.4k|            visitor.end_array(context, ec);
  161|  13.4k|            done_ = true;
  162|  13.4k|        }
  163|   375k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    268|        : data_(std::move(data), alloc), 
  200|    268|          span_(typed_array_cast<ValueType>(data_)), 
  201|    268|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    268|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    268|    {
  204|    268|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    268|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 139, False: 129]
  ------------------
  206|    139|        {
  207|    139|            std::size_t stride = 1;
  208|    139|            const size_t num_extents = extents.size();
  209|  9.38k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 9.24k, False: 139]
  ------------------
  210|  9.24k|            {
  211|  9.24k|                strides[i] = stride;
  212|  9.24k|                stride *= extents[i];
  213|  9.24k|            }
  214|    139|        }
  215|    129|        else
  216|    129|        {
  217|    129|            std::size_t stride = 1;
  218|    129|            const size_t num_extents = extents.size();
  219|    514|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 385, False: 129]
  ------------------
  220|    385|            {
  221|    385|                strides[num_extents-i-1] = stride;
  222|    385|                stride *= extents[num_extents-i-1];
  223|    385|            }
  224|    129|        }
  225|  9.89k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 9.62k, False: 268]
  ------------------
  226|  9.62k|        {
  227|  9.62k|            dimensions_[i].extent = extents[i];
  228|  9.62k|            dimensions_[i].stride = strides[i];
  229|  9.62k|            dimensions_[i].index = 0;
  230|  9.62k|            dimensions_[i].end = strides[i]*extents[i];
  231|  9.62k|        }
  232|    268|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  74.8k|    {
  261|  74.8k|        return done_;
  262|  74.8k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  37.6k|    {
  267|  37.6k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  37.6k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 37.6k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  37.6k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 811, False: 36.8k]
  ------------------
  270|    811|        {
  271|    811|            if (first_)
  ------------------
  |  Branch (271:17): [True: 268, False: 543]
  ------------------
  272|    268|            {
  273|    268|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    268|                first_ = false;
  275|    268|                return;
  276|    268|            }
  277|    543|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 268, False: 275]
  ------------------
  278|    268|            {
  279|    268|                visitor.end_array(context, ec);
  280|    268|                done_ = true;
  281|    268|                return;
  282|    268|            }
  283|    543|        }
  284|  37.1k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 35.5k, False: 1.56k]
  |  Branch (284:44): [True: 18.1k, False: 17.3k]
  ------------------
  285|  18.1k|        {
  286|  18.1k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  18.1k|            ++dim_;
  288|  18.1k|            return;
  289|  18.1k|        }
  290|  18.9k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 787, False: 18.1k]
  ------------------
  291|    787|        {
  292|    787|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|    787|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|    787|            ++count_;
  295|    787|            return;
  296|    787|        }
  297|  18.1k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 18.1k, False: 0]
  ------------------
  298|  18.1k|        {
  299|  18.1k|            visitor.end_array(context, ec);
  300|  18.1k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 18.1k, False: 0]
  ------------------
  301|  18.1k|            {
  302|  18.1k|                --dim_;
  303|  18.1k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  18.1k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 515, False: 17.6k]
  ------------------
  305|    515|                {
  306|  9.32k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 8.81k, False: 515]
  ------------------
  307|  8.81k|                    {
  308|  8.81k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  8.81k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  8.81k|                    }
  311|    515|                }
  312|  18.1k|            }
  313|  18.1k|        }
  314|  18.1k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIjEENSt3__19enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|  3.31M|    {
   73|  3.31M|        visitor.uint64_value(val, tag, context, ec);
   74|  3.31M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  2.36k|        : data_(std::move(data), alloc), 
  107|  2.36k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  2.36k|          array_tag_(array_tag), 
  109|  2.36k|          extent_(span_.size()), 
  110|  2.36k|          tag_(tag), 
  111|  2.36k|          func_(Func{})
  112|  2.36k|    {
  113|  2.36k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  6.64M|    {
  142|  6.64M|        return done_;
  143|  6.64M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  3.32M|    {
  148|  3.32M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  3.32M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.36k, False: 3.32M]
  |  |  ------------------
  ------------------
  149|  2.36k|        {
  150|  2.36k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  2.36k|            first_ = false;
  152|  2.36k|        }
  153|  3.32M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  3.32M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 3.31M, False: 2.36k]
  |  |  ------------------
  ------------------
  154|  3.31M|        {
  155|  3.31M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  3.31M|            ++index_;
  157|  3.31M|        }
  158|  2.36k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 2.36k, False: 0]
  ------------------
  159|  2.36k|        {
  160|  2.36k|            visitor.end_array(context, ec);
  161|  2.36k|            done_ = true;
  162|  2.36k|        }
  163|  3.32M|    }
_ZN8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  2.60k|        : data_(std::move(data), alloc), 
  200|  2.60k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  2.60k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  2.60k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  2.60k|    {
  204|  2.60k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  2.60k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 2.41k, False: 189]
  ------------------
  206|  2.41k|        {
  207|  2.41k|            std::size_t stride = 1;
  208|  2.41k|            const size_t num_extents = extents.size();
  209|  29.4k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 27.0k, False: 2.41k]
  ------------------
  210|  27.0k|            {
  211|  27.0k|                strides[i] = stride;
  212|  27.0k|                stride *= extents[i];
  213|  27.0k|            }
  214|  2.41k|        }
  215|    189|        else
  216|    189|        {
  217|    189|            std::size_t stride = 1;
  218|    189|            const size_t num_extents = extents.size();
  219|  60.8k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 60.6k, False: 189]
  ------------------
  220|  60.6k|            {
  221|  60.6k|                strides[num_extents-i-1] = stride;
  222|  60.6k|                stride *= extents[num_extents-i-1];
  223|  60.6k|            }
  224|    189|        }
  225|  90.2k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 87.6k, False: 2.60k]
  ------------------
  226|  87.6k|        {
  227|  87.6k|            dimensions_[i].extent = extents[i];
  228|  87.6k|            dimensions_[i].stride = strides[i];
  229|  87.6k|            dimensions_[i].index = 0;
  230|  87.6k|            dimensions_[i].end = strides[i]*extents[i];
  231|  87.6k|        }
  232|  2.60k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|   682k|    {
  261|   682k|        return done_;
  262|   682k|    }
_ZN8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   343k|    {
  267|   343k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   343k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 343k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|   343k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 7.91k, False: 335k]
  ------------------
  270|  7.91k|        {
  271|  7.91k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 2.60k, False: 5.31k]
  ------------------
  272|  2.60k|            {
  273|  2.60k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  2.60k|                first_ = false;
  275|  2.60k|                return;
  276|  2.60k|            }
  277|  5.31k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 2.60k, False: 2.70k]
  ------------------
  278|  2.60k|            {
  279|  2.60k|                visitor.end_array(context, ec);
  280|  2.60k|                done_ = true;
  281|  2.60k|                return;
  282|  2.60k|            }
  283|  5.31k|        }
  284|   338k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 314k, False: 23.7k]
  |  Branch (284:44): [True: 163k, False: 151k]
  ------------------
  285|   163k|        {
  286|   163k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|   163k|            ++dim_;
  288|   163k|            return;
  289|   163k|        }
  290|   175k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 11.8k, False: 163k]
  ------------------
  291|  11.8k|        {
  292|  11.8k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  11.8k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  11.8k|            ++count_;
  295|  11.8k|            return;
  296|  11.8k|        }
  297|   163k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 163k, False: 0]
  ------------------
  298|   163k|        {
  299|   163k|            visitor.end_array(context, ec);
  300|   163k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 163k, False: 0]
  ------------------
  301|   163k|            {
  302|   163k|                --dim_;
  303|   163k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|   163k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 9.25k, False: 154k]
  ------------------
  305|  9.25k|                {
  306|  87.5k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 78.3k, False: 9.25k]
  ------------------
  307|  78.3k|                    {
  308|  78.3k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  78.3k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  78.3k|                    }
  311|  9.25k|                }
  312|   163k|            }
  313|   163k|        }
  314|   163k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueImEENSt3__19enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   577k|    {
   73|   577k|        visitor.uint64_value(val, tag, context, ec);
   74|   577k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  34.0k|        : data_(std::move(data), alloc), 
  107|  34.0k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  34.0k|          array_tag_(array_tag), 
  109|  34.0k|          extent_(span_.size()), 
  110|  34.0k|          tag_(tag), 
  111|  34.0k|          func_(Func{})
  112|  34.0k|    {
  113|  34.0k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  1.19M|    {
  142|  1.19M|        return done_;
  143|  1.19M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   633k|    {
  148|   633k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   633k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 34.0k, False: 599k]
  |  |  ------------------
  ------------------
  149|  34.0k|        {
  150|  34.0k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  34.0k|            first_ = false;
  152|  34.0k|        }
  153|   599k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   599k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 565k, False: 34.0k]
  |  |  ------------------
  ------------------
  154|   565k|        {
  155|   565k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   565k|            ++index_;
  157|   565k|        }
  158|  34.0k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 34.0k, False: 0]
  ------------------
  159|  34.0k|        {
  160|  34.0k|            visitor.end_array(context, ec);
  161|  34.0k|            done_ = true;
  162|  34.0k|        }
  163|   633k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    326|        : data_(std::move(data), alloc), 
  200|    326|          span_(typed_array_cast<ValueType>(data_)), 
  201|    326|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    326|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    326|    {
  204|    326|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    326|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 190, False: 136]
  ------------------
  206|    190|        {
  207|    190|            std::size_t stride = 1;
  208|    190|            const size_t num_extents = extents.size();
  209|    764|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 574, False: 190]
  ------------------
  210|    574|            {
  211|    574|                strides[i] = stride;
  212|    574|                stride *= extents[i];
  213|    574|            }
  214|    190|        }
  215|    136|        else
  216|    136|        {
  217|    136|            std::size_t stride = 1;
  218|    136|            const size_t num_extents = extents.size();
  219|   205k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 205k, False: 136]
  ------------------
  220|   205k|            {
  221|   205k|                strides[num_extents-i-1] = stride;
  222|   205k|                stride *= extents[num_extents-i-1];
  223|   205k|            }
  224|    136|        }
  225|   206k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 206k, False: 326]
  ------------------
  226|   206k|        {
  227|   206k|            dimensions_[i].extent = extents[i];
  228|   206k|            dimensions_[i].stride = strides[i];
  229|   206k|            dimensions_[i].index = 0;
  230|   206k|            dimensions_[i].end = strides[i]*extents[i];
  231|   206k|        }
  232|    326|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  1.00M|    {
  261|  1.00M|        return done_;
  262|  1.00M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   500k|    {
  267|   500k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   500k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 500k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|   500k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 1.49k, False: 498k]
  ------------------
  270|  1.49k|        {
  271|  1.49k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 326, False: 1.16k]
  ------------------
  272|    326|            {
  273|    326|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    326|                first_ = false;
  275|    326|                return;
  276|    326|            }
  277|  1.16k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 326, False: 838]
  ------------------
  278|    326|            {
  279|    326|                visitor.end_array(context, ec);
  280|    326|                done_ = true;
  281|    326|                return;
  282|    326|            }
  283|  1.16k|        }
  284|   499k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 497k, False: 2.06k]
  |  Branch (284:44): [True: 249k, False: 248k]
  ------------------
  285|   249k|        {
  286|   249k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|   249k|            ++dim_;
  288|   249k|            return;
  289|   249k|        }
  290|   250k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 1.38k, False: 249k]
  ------------------
  291|  1.38k|        {
  292|  1.38k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  1.38k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  1.38k|            ++count_;
  295|  1.38k|            return;
  296|  1.38k|        }
  297|   249k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 249k, False: 0]
  ------------------
  298|   249k|        {
  299|   249k|            visitor.end_array(context, ec);
  300|   249k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 249k, False: 0]
  ------------------
  301|   249k|            {
  302|   249k|                --dim_;
  303|   249k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|   249k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 544, False: 248k]
  ------------------
  305|    544|                {
  306|  43.8k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 43.2k, False: 544]
  ------------------
  307|  43.2k|                    {
  308|  43.2k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  43.2k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  43.2k|                    }
  311|    544|                }
  312|   249k|            }
  313|   249k|        }
  314|   249k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIaEENSt3__19enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|  5.09M|    {
   65|  5.09M|        visitor.int64_value(val, tag, context, ec);
   66|  5.09M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  5.48k|        : data_(std::move(data), alloc), 
  107|  5.48k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  5.48k|          array_tag_(array_tag), 
  109|  5.48k|          extent_(span_.size()), 
  110|  5.48k|          tag_(tag), 
  111|  5.48k|          func_(Func{})
  112|  5.48k|    {
  113|  5.48k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  10.1M|    {
  142|  10.1M|        return done_;
  143|  10.1M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  5.10M|    {
  148|  5.10M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  5.10M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5.48k, False: 5.09M]
  |  |  ------------------
  ------------------
  149|  5.48k|        {
  150|  5.48k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  5.48k|            first_ = false;
  152|  5.48k|        }
  153|  5.09M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  5.09M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 5.09M, False: 5.48k]
  |  |  ------------------
  ------------------
  154|  5.09M|        {
  155|  5.09M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  5.09M|            ++index_;
  157|  5.09M|        }
  158|  5.48k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 5.48k, False: 0]
  ------------------
  159|  5.48k|        {
  160|  5.48k|            visitor.end_array(context, ec);
  161|  5.48k|            done_ = true;
  162|  5.48k|        }
  163|  5.10M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    292|        : data_(std::move(data), alloc), 
  200|    292|          span_(typed_array_cast<ValueType>(data_)), 
  201|    292|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    292|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    292|    {
  204|    292|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    292|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 150, False: 142]
  ------------------
  206|    150|        {
  207|    150|            std::size_t stride = 1;
  208|    150|            const size_t num_extents = extents.size();
  209|    346|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 196, False: 150]
  ------------------
  210|    196|            {
  211|    196|                strides[i] = stride;
  212|    196|                stride *= extents[i];
  213|    196|            }
  214|    150|        }
  215|    142|        else
  216|    142|        {
  217|    142|            std::size_t stride = 1;
  218|    142|            const size_t num_extents = extents.size();
  219|  18.2k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 18.0k, False: 142]
  ------------------
  220|  18.0k|            {
  221|  18.0k|                strides[num_extents-i-1] = stride;
  222|  18.0k|                stride *= extents[num_extents-i-1];
  223|  18.0k|            }
  224|    142|        }
  225|  18.5k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 18.2k, False: 292]
  ------------------
  226|  18.2k|        {
  227|  18.2k|            dimensions_[i].extent = extents[i];
  228|  18.2k|            dimensions_[i].stride = strides[i];
  229|  18.2k|            dimensions_[i].index = 0;
  230|  18.2k|            dimensions_[i].end = strides[i]*extents[i];
  231|  18.2k|        }
  232|    292|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|   360k|    {
  261|   360k|        return done_;
  262|   360k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   180k|    {
  267|   180k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   180k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 180k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|   180k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 1.03k, False: 179k]
  ------------------
  270|  1.03k|        {
  271|  1.03k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 292, False: 742]
  ------------------
  272|    292|            {
  273|    292|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    292|                first_ = false;
  275|    292|                return;
  276|    292|            }
  277|    742|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 292, False: 450]
  ------------------
  278|    292|            {
  279|    292|                visitor.end_array(context, ec);
  280|    292|                done_ = true;
  281|    292|                return;
  282|    292|            }
  283|    742|        }
  284|   180k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 178k, False: 1.82k]
  |  Branch (284:44): [True: 89.5k, False: 88.7k]
  ------------------
  285|  89.5k|        {
  286|  89.5k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  89.5k|            ++dim_;
  288|  89.5k|            return;
  289|  89.5k|        }
  290|  90.5k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 1.04k, False: 89.5k]
  ------------------
  291|  1.04k|        {
  292|  1.04k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  1.04k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  1.04k|            ++count_;
  295|  1.04k|            return;
  296|  1.04k|        }
  297|  89.5k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 89.5k, False: 0]
  ------------------
  298|  89.5k|        {
  299|  89.5k|            visitor.end_array(context, ec);
  300|  89.5k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 89.5k, False: 0]
  ------------------
  301|  89.5k|            {
  302|  89.5k|                --dim_;
  303|  89.5k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  89.5k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 623, False: 88.8k]
  ------------------
  305|    623|                {
  306|  72.1k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 71.5k, False: 623]
  ------------------
  307|  71.5k|                    {
  308|  71.5k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  71.5k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  71.5k|                    }
  311|    623|                }
  312|  89.5k|            }
  313|  89.5k|        }
  314|  89.5k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIsEENSt3__19enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|  1.21M|    {
   65|  1.21M|        visitor.int64_value(val, tag, context, ec);
   66|  1.21M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  6.87k|        : data_(std::move(data), alloc), 
  107|  6.87k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  6.87k|          array_tag_(array_tag), 
  109|  6.87k|          extent_(span_.size()), 
  110|  6.87k|          tag_(tag), 
  111|  6.87k|          func_(Func{})
  112|  6.87k|    {
  113|  6.87k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  2.44M|    {
  142|  2.44M|        return done_;
  143|  2.44M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  1.22M|    {
  148|  1.22M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  1.22M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6.87k, False: 1.22M]
  |  |  ------------------
  ------------------
  149|  6.87k|        {
  150|  6.87k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  6.87k|            first_ = false;
  152|  6.87k|        }
  153|  1.22M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  1.22M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 1.21M, False: 6.87k]
  |  |  ------------------
  ------------------
  154|  1.21M|        {
  155|  1.21M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  1.21M|            ++index_;
  157|  1.21M|        }
  158|  6.87k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 6.87k, False: 0]
  ------------------
  159|  6.87k|        {
  160|  6.87k|            visitor.end_array(context, ec);
  161|  6.87k|            done_ = true;
  162|  6.87k|        }
  163|  1.22M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    766|        : data_(std::move(data), alloc), 
  200|    766|          span_(typed_array_cast<ValueType>(data_)), 
  201|    766|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    766|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    766|    {
  204|    766|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    766|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 181, False: 585]
  ------------------
  206|    181|        {
  207|    181|            std::size_t stride = 1;
  208|    181|            const size_t num_extents = extents.size();
  209|  7.36k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 7.18k, False: 181]
  ------------------
  210|  7.18k|            {
  211|  7.18k|                strides[i] = stride;
  212|  7.18k|                stride *= extents[i];
  213|  7.18k|            }
  214|    181|        }
  215|    585|        else
  216|    585|        {
  217|    585|            std::size_t stride = 1;
  218|    585|            const size_t num_extents = extents.size();
  219|   470k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 470k, False: 585]
  ------------------
  220|   470k|            {
  221|   470k|                strides[num_extents-i-1] = stride;
  222|   470k|                stride *= extents[num_extents-i-1];
  223|   470k|            }
  224|    585|        }
  225|   478k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 477k, False: 766]
  ------------------
  226|   477k|        {
  227|   477k|            dimensions_[i].extent = extents[i];
  228|   477k|            dimensions_[i].stride = strides[i];
  229|   477k|            dimensions_[i].index = 0;
  230|   477k|            dimensions_[i].end = strides[i]*extents[i];
  231|   477k|        }
  232|    766|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  18.8M|    {
  261|  18.8M|        return done_;
  262|  18.8M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  9.41M|    {
  267|  9.41M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  9.41M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 9.41M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  9.41M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 3.26k, False: 9.40M]
  ------------------
  270|  3.26k|        {
  271|  3.26k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 766, False: 2.50k]
  ------------------
  272|    766|            {
  273|    766|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    766|                first_ = false;
  275|    766|                return;
  276|    766|            }
  277|  2.50k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 766, False: 1.73k]
  ------------------
  278|    766|            {
  279|    766|                visitor.end_array(context, ec);
  280|    766|                done_ = true;
  281|    766|                return;
  282|    766|            }
  283|  2.50k|        }
  284|  9.40M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 9.40M, False: 6.64k]
  |  Branch (284:44): [True: 4.70M, False: 4.69M]
  ------------------
  285|  4.70M|        {
  286|  4.70M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  4.70M|            ++dim_;
  288|  4.70M|            return;
  289|  4.70M|        }
  290|  4.70M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 3.33k, False: 4.70M]
  ------------------
  291|  3.33k|        {
  292|  3.33k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  3.33k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  3.33k|            ++count_;
  295|  3.33k|            return;
  296|  3.33k|        }
  297|  4.70M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 4.70M, False: 0]
  ------------------
  298|  4.70M|        {
  299|  4.70M|            visitor.end_array(context, ec);
  300|  4.70M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 4.70M, False: 0]
  ------------------
  301|  4.70M|            {
  302|  4.70M|                --dim_;
  303|  4.70M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  4.70M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 2.54k, False: 4.70M]
  ------------------
  305|  2.54k|                {
  306|  4.22M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 4.22M, False: 2.54k]
  ------------------
  307|  4.22M|                    {
  308|  4.22M|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  4.22M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  4.22M|                    }
  311|  2.54k|                }
  312|  4.70M|            }
  313|  4.70M|        }
  314|  4.70M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIiEENSt3__19enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|   562k|    {
   65|   562k|        visitor.int64_value(val, tag, context, ec);
   66|   562k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  7.33k|        : data_(std::move(data), alloc), 
  107|  7.33k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  7.33k|          array_tag_(array_tag), 
  109|  7.33k|          extent_(span_.size()), 
  110|  7.33k|          tag_(tag), 
  111|  7.33k|          func_(Func{})
  112|  7.33k|    {
  113|  7.33k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  1.13M|    {
  142|  1.13M|        return done_;
  143|  1.13M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   574k|    {
  148|   574k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   574k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7.33k, False: 566k]
  |  |  ------------------
  ------------------
  149|  7.33k|        {
  150|  7.33k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  7.33k|            first_ = false;
  152|  7.33k|        }
  153|   566k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   566k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 559k, False: 7.33k]
  |  |  ------------------
  ------------------
  154|   559k|        {
  155|   559k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   559k|            ++index_;
  157|   559k|        }
  158|  7.33k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 7.33k, False: 0]
  ------------------
  159|  7.33k|        {
  160|  7.33k|            visitor.end_array(context, ec);
  161|  7.33k|            done_ = true;
  162|  7.33k|        }
  163|   574k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    846|        : data_(std::move(data), alloc), 
  200|    846|          span_(typed_array_cast<ValueType>(data_)), 
  201|    846|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    846|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    846|    {
  204|    846|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    846|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 557, False: 289]
  ------------------
  206|    557|        {
  207|    557|            std::size_t stride = 1;
  208|    557|            const size_t num_extents = extents.size();
  209|  5.42k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 4.87k, False: 557]
  ------------------
  210|  4.87k|            {
  211|  4.87k|                strides[i] = stride;
  212|  4.87k|                stride *= extents[i];
  213|  4.87k|            }
  214|    557|        }
  215|    289|        else
  216|    289|        {
  217|    289|            std::size_t stride = 1;
  218|    289|            const size_t num_extents = extents.size();
  219|   864k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 863k, False: 289]
  ------------------
  220|   863k|            {
  221|   863k|                strides[num_extents-i-1] = stride;
  222|   863k|                stride *= extents[num_extents-i-1];
  223|   863k|            }
  224|    289|        }
  225|   869k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 868k, False: 846]
  ------------------
  226|   868k|        {
  227|   868k|            dimensions_[i].extent = extents[i];
  228|   868k|            dimensions_[i].stride = strides[i];
  229|   868k|            dimensions_[i].index = 0;
  230|   868k|            dimensions_[i].end = strides[i]*extents[i];
  231|   868k|        }
  232|    846|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  17.2M|    {
  261|  17.2M|        return done_;
  262|  17.2M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  8.63M|    {
  267|  8.63M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  8.63M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 8.63M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  8.63M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 2.69k, False: 8.63M]
  ------------------
  270|  2.69k|        {
  271|  2.69k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 846, False: 1.84k]
  ------------------
  272|    846|            {
  273|    846|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    846|                first_ = false;
  275|    846|                return;
  276|    846|            }
  277|  1.84k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 846, False: 1.00k]
  ------------------
  278|    846|            {
  279|    846|                visitor.end_array(context, ec);
  280|    846|                done_ = true;
  281|    846|                return;
  282|    846|            }
  283|  1.84k|        }
  284|  8.63M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 8.63M, False: 4.45k]
  |  Branch (284:44): [True: 4.31M, False: 4.31M]
  ------------------
  285|  4.31M|        {
  286|  4.31M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  4.31M|            ++dim_;
  288|  4.31M|            return;
  289|  4.31M|        }
  290|  4.31M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 2.36k, False: 4.31M]
  ------------------
  291|  2.36k|        {
  292|  2.36k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  2.36k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  2.36k|            ++count_;
  295|  2.36k|            return;
  296|  2.36k|        }
  297|  4.31M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 4.31M, False: 0]
  ------------------
  298|  4.31M|        {
  299|  4.31M|            visitor.end_array(context, ec);
  300|  4.31M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 4.31M, False: 0]
  ------------------
  301|  4.31M|            {
  302|  4.31M|                --dim_;
  303|  4.31M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  4.31M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 1.52k, False: 4.31M]
  ------------------
  305|  1.52k|                {
  306|  3.45M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 3.44M, False: 1.52k]
  ------------------
  307|  3.44M|                    {
  308|  3.44M|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  3.44M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  3.44M|                    }
  311|  1.52k|                }
  312|  4.31M|            }
  313|  4.31M|        }
  314|  4.31M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIlEENSt3__19enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|   162k|    {
   65|   162k|        visitor.int64_value(val, tag, context, ec);
   66|   162k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|   109k|        : data_(std::move(data), alloc), 
  107|   109k|          span_(typed_array_cast<ValueType>(data_)), 
  108|   109k|          array_tag_(array_tag), 
  109|   109k|          extent_(span_.size()), 
  110|   109k|          tag_(tag), 
  111|   109k|          func_(Func{})
  112|   109k|    {
  113|   109k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   539k|    {
  142|   539k|        return done_;
  143|   539k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   379k|    {
  148|   379k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   379k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 109k, False: 269k]
  |  |  ------------------
  ------------------
  149|   109k|        {
  150|   109k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|   109k|            first_ = false;
  152|   109k|        }
  153|   269k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   269k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 159k, False: 109k]
  |  |  ------------------
  ------------------
  154|   159k|        {
  155|   159k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   159k|            ++index_;
  157|   159k|        }
  158|   109k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 109k, False: 0]
  ------------------
  159|   109k|        {
  160|   109k|            visitor.end_array(context, ec);
  161|   109k|            done_ = true;
  162|   109k|        }
  163|   379k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  1.06k|        : data_(std::move(data), alloc), 
  200|  1.06k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  1.06k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  1.06k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  1.06k|    {
  204|  1.06k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  1.06k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 436, False: 625]
  ------------------
  206|    436|        {
  207|    436|            std::size_t stride = 1;
  208|    436|            const size_t num_extents = extents.size();
  209|  2.25k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 1.81k, False: 436]
  ------------------
  210|  1.81k|            {
  211|  1.81k|                strides[i] = stride;
  212|  1.81k|                stride *= extents[i];
  213|  1.81k|            }
  214|    436|        }
  215|    625|        else
  216|    625|        {
  217|    625|            std::size_t stride = 1;
  218|    625|            const size_t num_extents = extents.size();
  219|  44.6k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 44.0k, False: 625]
  ------------------
  220|  44.0k|            {
  221|  44.0k|                strides[num_extents-i-1] = stride;
  222|  44.0k|                stride *= extents[num_extents-i-1];
  223|  44.0k|            }
  224|    625|        }
  225|  46.9k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 45.8k, False: 1.06k]
  ------------------
  226|  45.8k|        {
  227|  45.8k|            dimensions_[i].extent = extents[i];
  228|  45.8k|            dimensions_[i].stride = strides[i];
  229|  45.8k|            dimensions_[i].index = 0;
  230|  45.8k|            dimensions_[i].end = strides[i]*extents[i];
  231|  45.8k|        }
  232|  1.06k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4doneEv:
  260|   882k|    {
  261|   882k|        return done_;
  262|   882k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   442k|    {
  267|   442k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   442k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 442k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|   442k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 3.36k, False: 438k]
  ------------------
  270|  3.36k|        {
  271|  3.36k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 1.06k, False: 2.30k]
  ------------------
  272|  1.06k|            {
  273|  1.06k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  1.06k|                first_ = false;
  275|  1.06k|                return;
  276|  1.06k|            }
  277|  2.30k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 1.06k, False: 1.24k]
  ------------------
  278|  1.06k|            {
  279|  1.06k|                visitor.end_array(context, ec);
  280|  1.06k|                done_ = true;
  281|  1.06k|                return;
  282|  1.06k|            }
  283|  2.30k|        }
  284|   440k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 431k, False: 8.27k]
  |  Branch (284:44): [True: 217k, False: 214k]
  ------------------
  285|   217k|        {
  286|   217k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|   217k|            ++dim_;
  288|   217k|            return;
  289|   217k|        }
  290|   222k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 5.28k, False: 217k]
  ------------------
  291|  5.28k|        {
  292|  5.28k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  5.28k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  5.28k|            ++count_;
  295|  5.28k|            return;
  296|  5.28k|        }
  297|   217k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 217k, False: 0]
  ------------------
  298|   217k|        {
  299|   217k|            visitor.end_array(context, ec);
  300|   217k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 217k, False: 0]
  ------------------
  301|   217k|            {
  302|   217k|                --dim_;
  303|   217k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|   217k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 1.92k, False: 215k]
  ------------------
  305|  1.92k|                {
  306|   174k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 172k, False: 1.92k]
  ------------------
  307|   172k|                    {
  308|   172k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|   172k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|   172k|                    }
  311|  1.92k|                }
  312|   217k|            }
  313|   217k|        }
  314|   217k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIdEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   80|   537k|    {
   81|   537k|        visitor.double_value(val, tag, context, ec);
   82|   537k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  12.4k|        : data_(std::move(data), alloc), 
  107|  12.4k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  12.4k|          array_tag_(array_tag), 
  109|  12.4k|          extent_(span_.size()), 
  110|  12.4k|          tag_(tag), 
  111|  12.4k|          func_(Func{})
  112|  12.4k|    {
  113|  12.4k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4doneEv:
  141|   216k|    {
  142|   216k|        return done_;
  143|   216k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   120k|    {
  148|   120k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   120k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12.4k, False: 108k]
  |  |  ------------------
  ------------------
  149|  12.4k|        {
  150|  12.4k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  12.4k|            first_ = false;
  152|  12.4k|        }
  153|   108k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   108k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 95.6k, False: 12.4k]
  |  |  ------------------
  ------------------
  154|  95.6k|        {
  155|  95.6k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  95.6k|            ++index_;
  157|  95.6k|        }
  158|  12.4k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 12.4k, False: 0]
  ------------------
  159|  12.4k|        {
  160|  12.4k|            visitor.end_array(context, ec);
  161|  12.4k|            done_ = true;
  162|  12.4k|        }
  163|   120k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    691|        : data_(std::move(data), alloc), 
  200|    691|          span_(typed_array_cast<ValueType>(data_)), 
  201|    691|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    691|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    691|    {
  204|    691|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    691|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 391, False: 300]
  ------------------
  206|    391|        {
  207|    391|            std::size_t stride = 1;
  208|    391|            const size_t num_extents = extents.size();
  209|  2.33k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 1.94k, False: 391]
  ------------------
  210|  1.94k|            {
  211|  1.94k|                strides[i] = stride;
  212|  1.94k|                stride *= extents[i];
  213|  1.94k|            }
  214|    391|        }
  215|    300|        else
  216|    300|        {
  217|    300|            std::size_t stride = 1;
  218|    300|            const size_t num_extents = extents.size();
  219|   310k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 310k, False: 300]
  ------------------
  220|   310k|            {
  221|   310k|                strides[num_extents-i-1] = stride;
  222|   310k|                stride *= extents[num_extents-i-1];
  223|   310k|            }
  224|    300|        }
  225|   313k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 312k, False: 691]
  ------------------
  226|   312k|        {
  227|   312k|            dimensions_[i].extent = extents[i];
  228|   312k|            dimensions_[i].stride = strides[i];
  229|   312k|            dimensions_[i].index = 0;
  230|   312k|            dimensions_[i].end = strides[i]*extents[i];
  231|   312k|        }
  232|    691|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  4.98M|    {
  261|  4.98M|        return done_;
  262|  4.98M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  2.49M|    {
  267|  2.49M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  2.49M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 2.49M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  2.49M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 2.29k, False: 2.49M]
  ------------------
  270|  2.29k|        {
  271|  2.29k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 691, False: 1.60k]
  ------------------
  272|    691|            {
  273|    691|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    691|                first_ = false;
  275|    691|                return;
  276|    691|            }
  277|  1.60k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 691, False: 916]
  ------------------
  278|    691|            {
  279|    691|                visitor.end_array(context, ec);
  280|    691|                done_ = true;
  281|    691|                return;
  282|    691|            }
  283|  1.60k|        }
  284|  2.49M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 2.48M, False: 4.55k]
  |  Branch (284:44): [True: 1.24M, False: 1.24M]
  ------------------
  285|  1.24M|        {
  286|  1.24M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  1.24M|            ++dim_;
  288|  1.24M|            return;
  289|  1.24M|        }
  290|  1.24M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 2.28k, False: 1.24M]
  ------------------
  291|  2.28k|        {
  292|  2.28k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  2.28k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  2.28k|            ++count_;
  295|  2.28k|            return;
  296|  2.28k|        }
  297|  1.24M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 1.24M, False: 0]
  ------------------
  298|  1.24M|        {
  299|  1.24M|            visitor.end_array(context, ec);
  300|  1.24M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 1.24M, False: 0]
  ------------------
  301|  1.24M|            {
  302|  1.24M|                --dim_;
  303|  1.24M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  1.24M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 1.58k, False: 1.24M]
  ------------------
  305|  1.58k|                {
  306|   934k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 932k, False: 1.58k]
  ------------------
  307|   932k|                    {
  308|   932k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|   932k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|   932k|                    }
  311|  1.58k|                }
  312|  1.24M|            }
  313|  1.24M|        }
  314|  1.24M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIfEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   80|   134k|    {
   81|   134k|        visitor.double_value(val, tag, context, ec);
   82|   134k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  2.66k|        : data_(std::move(data), alloc), 
  107|  2.66k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  2.66k|          array_tag_(array_tag), 
  109|  2.66k|          extent_(span_.size()), 
  110|  2.66k|          tag_(tag), 
  111|  2.66k|          func_(Func{})
  112|  2.66k|    {
  113|  2.66k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   270k|    {
  142|   270k|        return done_;
  143|   270k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   137k|    {
  148|   137k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   137k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.66k, False: 135k]
  |  |  ------------------
  ------------------
  149|  2.66k|        {
  150|  2.66k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  2.66k|            first_ = false;
  152|  2.66k|        }
  153|   135k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   135k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 132k, False: 2.66k]
  |  |  ------------------
  ------------------
  154|   132k|        {
  155|   132k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   132k|            ++index_;
  157|   132k|        }
  158|  2.66k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 2.66k, False: 0]
  ------------------
  159|  2.66k|        {
  160|  2.66k|            visitor.end_array(context, ec);
  161|  2.66k|            done_ = true;
  162|  2.66k|        }
  163|   137k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    638|        : data_(std::move(data), alloc), 
  200|    638|          span_(typed_array_cast<ValueType>(data_)), 
  201|    638|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    638|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    638|    {
  204|    638|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    638|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 53, False: 585]
  ------------------
  206|     53|        {
  207|     53|            std::size_t stride = 1;
  208|     53|            const size_t num_extents = extents.size();
  209|  1.58k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 1.53k, False: 53]
  ------------------
  210|  1.53k|            {
  211|  1.53k|                strides[i] = stride;
  212|  1.53k|                stride *= extents[i];
  213|  1.53k|            }
  214|     53|        }
  215|    585|        else
  216|    585|        {
  217|    585|            std::size_t stride = 1;
  218|    585|            const size_t num_extents = extents.size();
  219|  40.7k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 40.1k, False: 585]
  ------------------
  220|  40.1k|            {
  221|  40.1k|                strides[num_extents-i-1] = stride;
  222|  40.1k|                stride *= extents[num_extents-i-1];
  223|  40.1k|            }
  224|    585|        }
  225|  42.3k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 41.6k, False: 638]
  ------------------
  226|  41.6k|        {
  227|  41.6k|            dimensions_[i].extent = extents[i];
  228|  41.6k|            dimensions_[i].stride = strides[i];
  229|  41.6k|            dimensions_[i].index = 0;
  230|  41.6k|            dimensions_[i].end = strides[i]*extents[i];
  231|  41.6k|        }
  232|    638|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|   737k|    {
  261|   737k|        return done_;
  262|   737k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   369k|    {
  267|   369k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   369k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 369k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|   369k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 3.96k, False: 365k]
  ------------------
  270|  3.96k|        {
  271|  3.96k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 638, False: 3.32k]
  ------------------
  272|    638|            {
  273|    638|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    638|                first_ = false;
  275|    638|                return;
  276|    638|            }
  277|  3.32k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 638, False: 2.69k]
  ------------------
  278|    638|            {
  279|    638|                visitor.end_array(context, ec);
  280|    638|                done_ = true;
  281|    638|                return;
  282|    638|            }
  283|  3.32k|        }
  284|   368k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 361k, False: 6.38k]
  |  Branch (284:44): [True: 182k, False: 179k]
  ------------------
  285|   182k|        {
  286|   182k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|   182k|            ++dim_;
  288|   182k|            return;
  289|   182k|        }
  290|   185k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 3.19k, False: 182k]
  ------------------
  291|  3.19k|        {
  292|  3.19k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  3.19k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  3.19k|            ++count_;
  295|  3.19k|            return;
  296|  3.19k|        }
  297|   182k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 182k, False: 0]
  ------------------
  298|   182k|        {
  299|   182k|            visitor.end_array(context, ec);
  300|   182k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 182k, False: 0]
  ------------------
  301|   182k|            {
  302|   182k|                --dim_;
  303|   182k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|   182k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 2.55k, False: 179k]
  ------------------
  305|  2.55k|                {
  306|   144k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 141k, False: 2.55k]
  ------------------
  307|   141k|                    {
  308|   141k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|   141k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|   141k|                    }
  311|  2.55k|                }
  312|   182k|            }
  313|   182k|        }
  314|   182k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  14.4k|        : data_(std::move(data), alloc), 
  107|  14.4k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  14.4k|          array_tag_(array_tag), 
  109|  14.4k|          extent_(span_.size()), 
  110|  14.4k|          tag_(tag), 
  111|  14.4k|          func_(Func{})
  112|  14.4k|    {
  113|  14.4k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   894k|    {
  142|   894k|        return done_;
  143|   894k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   461k|    {
  148|   461k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   461k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 14.4k, False: 447k]
  |  |  ------------------
  ------------------
  149|  14.4k|        {
  150|  14.4k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  14.4k|            first_ = false;
  152|  14.4k|        }
  153|   447k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   447k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 433k, False: 14.4k]
  |  |  ------------------
  ------------------
  154|   433k|        {
  155|   433k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   433k|            ++index_;
  157|   433k|        }
  158|  14.4k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 14.4k, False: 0]
  ------------------
  159|  14.4k|        {
  160|  14.4k|            visitor.end_array(context, ec);
  161|  14.4k|            done_ = true;
  162|  14.4k|        }
  163|   461k|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2ERKNS3_6vectorImNS4_ImEEEEPNS0_17basic_cbor_parserIS6_S7_EEbRKS7_:
  337|  4.32k|        : extents_(extents, alloc), dimensions_(extents.size(), mdarray_dimension{}, alloc),
  338|  4.32k|          parser_(parser), cursor_mode_(cursor_mode)
  339|  4.32k|    {
  340|  4.32k|        std::vector<std::size_t> strides(extents.size(), 0);
  341|  4.32k|        std::size_t stride = 1;
  342|  4.32k|        const size_t num_extents = extents.size();
  343|  2.45M|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (343:28): [True: 2.44M, False: 4.32k]
  ------------------
  344|  2.44M|        {
  345|  2.44M|            strides[num_extents - i - 1] = stride;
  346|  2.44M|            stride *= extents[num_extents - i - 1];
  347|  2.44M|        }
  348|  2.45M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (348:33): [True: 2.44M, False: 4.32k]
  ------------------
  349|  2.44M|        {
  350|  2.44M|            dimensions_[i].extent = extents[i];
  351|  2.44M|            dimensions_[i].stride = strides[i];
  352|  2.44M|            dimensions_[i].index = 0;
  353|  2.44M|            dimensions_[i].end = strides[i] * extents[i];
  354|  2.44M|        }
  355|  4.32k|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5countEv:
  383|    135|    {
  384|    135|        return count_;
  385|    135|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  378|  59.5M|    {
  379|  59.5M|        return done_;
  380|  59.5M|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  389|  59.5M|    {
  390|  59.5M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  59.5M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 59.5M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  391|       |
  392|  59.5M|        if (dim_ == 0)
  ------------------
  |  Branch (392:13): [True: 880k, False: 58.6M]
  ------------------
  393|   880k|        {
  394|   880k|            if (first_)
  ------------------
  |  Branch (394:17): [True: 4.32k, False: 875k]
  ------------------
  395|  4.32k|            {
  396|  4.32k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  397|  4.32k|                first_ = false;
  398|  4.32k|                return;
  399|  4.32k|            }
  400|   875k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (400:17): [True: 270, False: 875k]
  ------------------
  401|    270|            {
  402|    270|                visitor.end_array(context, ec);
  403|    270|                done_ = true;
  404|    270|                return;
  405|    270|            }
  406|   875k|        }
  407|  59.5M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (407:13): [True: 55.1M, False: 4.36M]
  |  Branch (407:44): [True: 29.5M, False: 25.6M]
  ------------------
  408|  29.5M|        {
  409|  29.5M|            if (!cursor_mode_)
  ------------------
  |  Branch (409:17): [True: 29.5M, False: 0]
  ------------------
  410|  29.5M|            {
  411|  29.5M|                visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  412|  29.5M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  29.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 29.5M]
  |  |  ------------------
  ------------------
  413|      0|                {
  414|      0|                    return;
  415|      0|                }
  416|  29.5M|            }
  417|  29.5M|            ++dim_;
  418|  29.5M|            return;
  419|  29.5M|        }
  420|  30.0M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (420:13): [True: 2.91M, False: 27.1M]
  ------------------
  421|  2.91M|        {
  422|  2.91M|            parser_->read_item(visitor, ec);
  423|  2.91M|            dimensions_[dim_].index += dimensions_[dim_].stride;
  424|  2.91M|            ++count_;
  425|  2.91M|            return;
  426|  2.91M|        }
  427|  27.1M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (427:13): [True: 27.1M, False: 0]
  ------------------
  428|  27.1M|        {
  429|  27.1M|            if (!cursor_mode_)
  ------------------
  |  Branch (429:17): [True: 27.1M, False: 0]
  ------------------
  430|  27.1M|            {
  431|  27.1M|                visitor.end_array(context, ec);
  432|  27.1M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 27.1M]
  |  |  ------------------
  ------------------
  433|      0|                {
  434|      0|                    return;
  435|      0|                }
  436|  27.1M|            }
  437|  27.1M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 27.1M]
  |  |  ------------------
  ------------------
  438|      0|            {
  439|      0|                return;
  440|      0|            }
  441|  27.1M|            if (dim_ > 0)
  ------------------
  |  Branch (441:17): [True: 27.1M, False: 0]
  ------------------
  442|  27.1M|            {
  443|  27.1M|                --dim_;
  444|  27.1M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  445|  27.1M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (445:21): [True: 1.44M, False: 25.6M]
  ------------------
  446|  1.44M|                {
  447|  28.5M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (447:50): [True: 27.0M, False: 1.44M]
  ------------------
  448|  27.0M|                    {
  449|  27.0M|                        dimensions_[i].index = dimensions_[i-1].index;
  450|  27.0M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  451|  27.0M|                    }
  452|  1.44M|                }
  453|  27.1M|            }
  454|  27.1M|        }
  455|  27.1M|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2ERKNS3_6vectorImNS4_ImEEEEPNS0_17basic_cbor_parserIS6_S7_EEbRKS7_:
  478|  2.30k|        : extents_(extents,alloc), dimensions_(extents.size(), mdarray_dimension{},alloc),
  479|  2.30k|          parser_(parser), cursor_mode_(cursor_mode)
  480|  2.30k|    {
  481|  2.30k|        std::vector<std::size_t> strides(extents.size(), 0);
  482|  2.30k|        std::size_t stride = 1;
  483|  2.30k|        const size_t num_extents = extents.size();
  484|  1.01M|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (484:28): [True: 1.01M, False: 2.30k]
  ------------------
  485|  1.01M|        {
  486|  1.01M|            strides[num_extents - i - 1] = stride;
  487|  1.01M|            stride *= extents[num_extents - i - 1];
  488|  1.01M|        }
  489|  1.01M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (489:33): [True: 1.01M, False: 2.30k]
  ------------------
  490|  1.01M|        {
  491|  1.01M|            dimensions_[i].extent = extents[i];
  492|  1.01M|            dimensions_[i].stride = strides[i];
  493|  1.01M|            dimensions_[i].index = 0;
  494|  1.01M|            dimensions_[i].end = strides[i] * extents[i];
  495|  1.01M|        }
  496|  2.30k|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5countEv:
  524|    477|    {
  525|    477|        return count_;
  526|    477|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  519|  9.19M|    {
  520|  9.19M|        return done_;
  521|  9.19M|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  530|  9.19M|    {
  531|  9.19M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  9.19M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 9.19M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  532|       |
  533|  9.19M|        if (dim_ == 0)
  ------------------
  |  Branch (533:13): [True: 1.06M, False: 8.12M]
  ------------------
  534|  1.06M|        {
  535|  1.06M|            if (first_)
  ------------------
  |  Branch (535:17): [True: 2.30k, False: 1.06M]
  ------------------
  536|  2.30k|            {
  537|  2.30k|                if (!cursor_mode_)
  ------------------
  |  Branch (537:21): [True: 2.30k, False: 0]
  ------------------
  538|  2.30k|                {
  539|  2.30k|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::multi_dim_column_major, context, ec);
  540|  2.30k|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  541|  2.30k|                    for (auto item : dimensions_)
  ------------------
  |  Branch (541:36): [True: 1.01M, False: 2.30k]
  ------------------
  542|  1.01M|                    {
  543|  1.01M|                        visitor.uint64_value(item.extent, semantic_tag::none, context, ec);
  544|  1.01M|                    }
  545|  2.30k|                    visitor.end_array(context, ec);
  546|  2.30k|                }
  547|  2.30k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  548|  2.30k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.30k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.30k]
  |  |  ------------------
  ------------------
  549|      0|                {
  550|      0|                    return;
  551|      0|                }
  552|  2.30k|                first_ = false;
  553|  2.30k|                return;
  554|  2.30k|            }
  555|  1.06M|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (555:17): [True: 482, False: 1.06M]
  ------------------
  556|    482|            {
  557|    482|                visitor.end_array(context, ec);
  558|    482|                if (!cursor_mode_)
  ------------------
  |  Branch (558:21): [True: 482, False: 0]
  ------------------
  559|    482|                {
  560|    482|                    visitor.end_array(context, ec);
  561|    482|                }
  562|    482|                done_ = true;
  563|    482|                return;
  564|    482|            }
  565|  1.06M|        }
  566|  9.18M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (566:13): [True: 6.88M, False: 2.30M]
  |  Branch (566:44): [True: 4.52M, False: 2.36M]
  ------------------
  567|  4.52M|        {
  568|  4.52M|            ++dim_;
  569|  4.52M|            return;
  570|  4.52M|        }
  571|  4.66M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (571:13): [True: 1.15M, False: 3.51M]
  ------------------
  572|  1.15M|        {
  573|  1.15M|            parser_->read_item(visitor, ec);
  574|  1.15M|            dimensions_[dim_].index += dimensions_[dim_].stride;
  575|  1.15M|            ++count_;
  576|  1.15M|            return;
  577|  1.15M|        }
  578|  3.51M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (578:13): [True: 3.51M, False: 0]
  ------------------
  579|  3.51M|        {
  580|  3.51M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.51M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.51M]
  |  |  ------------------
  ------------------
  581|      0|            {
  582|      0|                return;
  583|      0|            }
  584|  3.51M|            if (dim_ > 0)
  ------------------
  |  Branch (584:17): [True: 3.51M, False: 0]
  ------------------
  585|  3.51M|            {
  586|  3.51M|                --dim_;
  587|  3.51M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  588|  3.51M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (588:21): [True: 1.14M, False: 2.36M]
  ------------------
  589|  1.14M|                {
  590|  4.66M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (590:50): [True: 3.51M, False: 1.14M]
  ------------------
  591|  3.51M|                    {
  592|  3.51M|                        dimensions_[i].index = dimensions_[i-1].index;
  593|  3.51M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  594|  3.51M|                    }
  595|  1.14M|                }
  596|  3.51M|            }
  597|  3.51M|        }
  598|  3.51M|    }

