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

_ZN8jsoncons11countr_zeroImEEiT_:
  310|      2|{
  311|      2|    return jsoncons::nonstd::countr_zero(x);
  312|      2|}

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|     88|        {
 1009|     88|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 6, False: 82]
  ------------------
 1010|      6|            {
 1011|      6|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1011:21): [True: 6, False: 0]
  |  Branch (1011:86): [True: 2, False: 4]
  ------------------
 1012|      2|                {
 1013|      2|                    key_buffer_.push_back(',');
 1014|      2|                }
 1015|      6|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1016|      6|                key_buffer_.push_back('[');
 1017|      6|            }
 1018|     82|            else
 1019|     82|            {
 1020|     82|                switch (level_stack_.back().target_kind())
 1021|     82|                {
 1022|     75|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 75, False: 7]
  ------------------
 1023|     75|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 6, False: 69]
  |  Branch (1023:65): [True: 6, False: 0]
  ------------------
 1024|      6|                        {
 1025|      6|                            key_buffer_.push_back(',');
 1026|      6|                        }
 1027|     75|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|     75|                        key_buffer_.push_back('[');
 1029|     75|                        break;
 1030|      7|                    default:
  ------------------
  |  Branch (1030:21): [True: 7, False: 75]
  ------------------
 1031|      7|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|      7|                        destination_->begin_array(length, tag, context, ec);
 1033|      7|                        break;
 1034|     82|                }
 1035|     82|            }
 1036|     88|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     88|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|     88|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|  7.22M|            {
  816|  7.22M|                return even_odd_ == 0;
  817|  7.22M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|  4.25M|            {
  826|  4.25M|                return target_kind_;
  827|  4.25M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|   604k|            {
  831|   604k|                return count_;
  832|   604k|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|    269|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 157, False: 112]
  ------------------
  799|    269|            {
  800|    269|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|  3.05M|            {
  821|  3.05M|                return structure_kind_ == json_structure_kind::object;
  822|  3.05M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|     86|        {
 1041|     86|            switch (level_stack_.back().target_kind())
 1042|     86|            {
 1043|     81|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 81, False: 5]
  ------------------
 1044|     81|                    key_buffer_.push_back(']');
 1045|     81|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   67|     81|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 81]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1046|     81|                    level_stack_.pop_back();
 1047|     81|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 0, False: 81]
  ------------------
 1048|      0|                    {
 1049|      0|                        destination_->key(key_buffer_, context, ec);
 1050|      0|                        key_buffer_.clear();
 1051|      0|                    }
 1052|     81|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 6, False: 75]
  ------------------
 1053|      6|                    {
 1054|      6|                        key_buffer_.push_back(':');
 1055|      6|                    }
 1056|     81|                    level_stack_.back().advance();
 1057|     81|                    break;
 1058|      5|                default:
  ------------------
  |  Branch (1058:17): [True: 5, False: 81]
  ------------------
 1059|      5|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   67|      5|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 5]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1060|      5|                    level_stack_.pop_back();
 1061|      5|                    level_stack_.back().advance();
 1062|      5|                    destination_->end_array(context, ec);
 1063|      5|                    break;
 1064|     86|            }
 1065|     86|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     86|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|     86|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|  2.44M|            {
  804|  2.44M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 1.92M, False: 525k]
  ------------------
  805|  1.92M|                {
  806|  1.92M|                    ++count_;
  807|  1.92M|                }
  808|  2.44M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 1.05M, False: 1.39M]
  ------------------
  809|  1.05M|                {
  810|  1.05M|                    even_odd_ = !even_odd_;
  811|  1.05M|                }
  812|  2.44M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  2.25M|        {
 1234|  2.25M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 524k, False: 1.73M]
  |  Branch (1234:49): [True: 524k, False: 1.20M]
  ------------------
 1235|  1.04M|            {
 1236|  1.04M|                key_.clear();
 1237|  1.04M|                jsoncons::append_to_string(value,key_);
 1238|  1.04M|            }
 1239|       |
 1240|  2.25M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 524k, False: 1.73M]
  ------------------
 1241|   524k|            {
 1242|   524k|                switch (level_stack_.back().target_kind())
 1243|   524k|                {
 1244|   524k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 524k, False: 2]
  ------------------
 1245|   524k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 524k, False: 78]
  ------------------
 1246|   524k|                        {
 1247|   524k|                            key_buffer_.push_back(',');
 1248|   524k|                        }
 1249|   524k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|   524k|                        key_buffer_.push_back(':');
 1251|   524k|                        break;
 1252|      2|                    default:
  ------------------
  |  Branch (1252:21): [True: 2, False: 524k]
  ------------------
 1253|      2|                        destination_->key(key_, context, ec);
 1254|      2|                        break;
 1255|   524k|                }
 1256|   524k|            }
 1257|  1.73M|            else
 1258|  1.73M|            {
 1259|  1.73M|                switch (level_stack_.back().target_kind())
 1260|  1.73M|                {
 1261|   524k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 524k, False: 1.20M]
  ------------------
 1262|   524k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 15, False: 524k]
  |  Branch (1262:65): [True: 15, False: 0]
  ------------------
 1263|     15|                        {
 1264|     15|                            key_buffer_.push_back(',');
 1265|     15|                        }
 1266|   524k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|   524k|                        break;
 1268|  1.20M|                    default:
  ------------------
  |  Branch (1268:21): [True: 1.20M, False: 524k]
  ------------------
 1269|  1.20M|                        destination_->uint64_value(value, tag, context, ec);
 1270|  1.20M|                        break;
 1271|  1.73M|                }
 1272|  1.73M|            }
 1273|       |
 1274|  2.25M|            level_stack_.back().advance();
 1275|  2.25M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.25M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  2.25M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|      3|        {
 1280|      3|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 0, False: 3]
  |  Branch (1280:49): [True: 0, False: 3]
  ------------------
 1281|      0|            {
 1282|      0|                key_.clear();
 1283|      0|                jsoncons::append_to_string(value,key_);
 1284|      0|            }
 1285|       |
 1286|      3|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 0, False: 3]
  ------------------
 1287|      0|            {
 1288|      0|                switch (level_stack_.back().target_kind())
 1289|      0|                {
 1290|      0|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 0, False: 0]
  ------------------
 1291|      0|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 0, False: 0]
  ------------------
 1292|      0|                        {
 1293|      0|                            key_buffer_.push_back(',');
 1294|      0|                        }
 1295|      0|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|      0|                        key_buffer_.push_back(':');
 1297|      0|                        break;
 1298|      0|                    default:
  ------------------
  |  Branch (1298:21): [True: 0, False: 0]
  ------------------
 1299|      0|                        destination_->key(key_, context, ec);
 1300|      0|                        break;
 1301|      0|                }
 1302|      0|            }
 1303|      3|            else
 1304|      3|            {
 1305|      3|                switch (level_stack_.back().target_kind())
 1306|      3|                {
 1307|      0|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 0, False: 3]
  ------------------
 1308|      0|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 0, False: 0]
  |  Branch (1308:65): [True: 0, False: 0]
  ------------------
 1309|      0|                        {
 1310|      0|                            key_buffer_.push_back(',');
 1311|      0|                        }
 1312|      0|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|      0|                        break;
 1314|      3|                    default:
  ------------------
  |  Branch (1314:21): [True: 3, False: 0]
  ------------------
 1315|      3|                        destination_->int64_value(value, tag, context, ec);
 1316|      3|                        break;
 1317|      3|                }
 1318|      3|            }
 1319|       |
 1320|      3|            level_stack_.back().advance();
 1321|      3|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|      3|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|      5|        {
  882|      5|            destination_->flush();
  883|      5|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  886|      2|        {
  887|      2|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (887:17): [True: 1, False: 1]
  ------------------
  888|      1|            {
  889|      1|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (889:21): [True: 0, False: 1]
  |  Branch (889:86): [True: 0, False: 0]
  ------------------
  890|      0|                {
  891|      0|                    key_buffer_.push_back(',');
  892|      0|                }
  893|      1|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  894|      1|                key_buffer_.push_back('{');
  895|      1|            }
  896|      1|            else
  897|      1|            {
  898|      1|                switch (level_stack_.back().target_kind())
  899|      1|                {
  900|      1|                    case json_target_kind::buffer:
  ------------------
  |  Branch (900:21): [True: 1, False: 0]
  ------------------
  901|      1|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  902|      1|                        key_buffer_.push_back('{');
  903|      1|                        break;
  904|      0|                    default:
  ------------------
  |  Branch (904:21): [True: 0, False: 1]
  ------------------
  905|      0|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  906|      0|                        destination_->begin_object(tag, context, ec);
  907|      0|                        break;
  908|      1|                }
  909|      1|            }
  910|      2|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  911|      2|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|    155|        {
  915|    155|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 103, False: 52]
  ------------------
  916|    103|            {
  917|    103|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 98, False: 5]
  |  Branch (917:86): [True: 69, False: 29]
  ------------------
  918|     69|                {
  919|     69|                    key_buffer_.push_back(',');
  920|     69|                }
  921|    103|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|    103|                key_buffer_.push_back('{');
  923|    103|            }
  924|     52|            else
  925|     52|            {
  926|     52|                switch (level_stack_.back().target_kind())
  927|     52|                {
  928|     18|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 18, False: 34]
  ------------------
  929|     18|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 6, False: 12]
  |  Branch (929:65): [True: 6, False: 0]
  ------------------
  930|      6|                        {
  931|      6|                            key_buffer_.push_back(',');
  932|      6|                        }
  933|     18|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|     18|                        key_buffer_.push_back('{');
  935|     18|                        break;
  936|     34|                    default:
  ------------------
  |  Branch (936:21): [True: 34, False: 18]
  ------------------
  937|     34|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|     34|                        destination_->begin_object(length, tag, context, ec);
  939|     34|                        break;
  940|     52|                }
  941|     52|            }
  942|    155|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|    155|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|    155|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|     77|        {
  947|     77|            switch (level_stack_.back().target_kind())
  948|     77|            {
  949|     46|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 46, False: 31]
  ------------------
  950|     46|                    key_buffer_.push_back('}');
  951|     46|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   67|     46|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 46]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  952|     46|                    level_stack_.pop_back();
  953|       |                    
  954|     46|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 4, False: 42]
  ------------------
  955|      4|                    {
  956|      4|                        destination_->key(key_buffer_,context, ec);
  957|      4|                        key_buffer_.clear();
  958|      4|                    }
  959|     42|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 38, False: 4]
  ------------------
  960|     38|                    {
  961|     38|                        key_buffer_.push_back(':');
  962|     38|                    }
  963|     46|                    level_stack_.back().advance();
  964|     46|                    break;
  965|     31|                default:
  ------------------
  |  Branch (965:17): [True: 31, False: 46]
  ------------------
  966|     31|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   67|     31|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 31]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  967|     31|                    level_stack_.pop_back();
  968|     31|                    level_stack_.back().advance();
  969|     31|                    destination_->end_object(context, ec);
  970|     31|                    break;
  971|     77|            }
  972|     77|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     77|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|     77|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  976|      9|        {
  977|      9|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (977:17): [True: 6, False: 3]
  ------------------
  978|      6|            {
  979|      6|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (979:21): [True: 6, False: 0]
  |  Branch (979:86): [True: 0, False: 6]
  ------------------
  980|      0|                {
  981|      0|                    key_buffer_.push_back(',');
  982|      0|                }
  983|      6|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
  984|      6|                key_buffer_.push_back('[');
  985|      6|            }
  986|      3|            else
  987|      3|            {
  988|      3|                switch (level_stack_.back().target_kind())
  989|      3|                {
  990|      0|                    case json_target_kind::buffer:
  ------------------
  |  Branch (990:21): [True: 0, False: 3]
  ------------------
  991|      0|                        if (level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (991:29): [True: 0, False: 0]
  |  Branch (991:64): [True: 0, False: 0]
  ------------------
  992|      0|                        {
  993|      0|                            key_buffer_.push_back(',');
  994|      0|                        }
  995|      0|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
  996|      0|                        key_buffer_.push_back('[');
  997|      0|                        break;
  998|      3|                    default:
  ------------------
  |  Branch (998:21): [True: 3, False: 0]
  ------------------
  999|      3|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1000|      3|                        destination_->begin_array(tag, context, ec);
 1001|      3|                        break;
 1002|      3|                }
 1003|      3|            }
 1004|      9|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      9|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1005|      9|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|      6|        {
 1476|      6|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 0, False: 6]
  |  Branch (1476:49): [True: 6, False: 0]
  ------------------
 1477|      6|            {
 1478|      6|                key_.clear(); 
 1479|      6|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|      6|            }
 1481|       |
 1482|      6|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 0, False: 6]
  ------------------
 1483|      0|            {
 1484|      0|                switch (level_stack_.back().target_kind())
 1485|      0|                {
 1486|      0|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 0, False: 0]
  ------------------
 1487|      0|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 0, False: 0]
  ------------------
 1488|      0|                        {
 1489|      0|                            key_buffer_.push_back(',');
 1490|      0|                        }
 1491|      0|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|      0|                        key_buffer_.push_back(':');
 1493|      0|                        break;
 1494|      0|                    default:
  ------------------
  |  Branch (1494:21): [True: 0, False: 0]
  ------------------
 1495|      0|                        destination_->key(key_, context, ec);
 1496|      0|                        break;
 1497|      0|                }
 1498|      0|            }
 1499|      6|            else
 1500|      6|            {
 1501|      6|                switch (level_stack_.back().target_kind())
 1502|      6|                {
 1503|      6|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 6, False: 0]
  ------------------
 1504|      6|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 6, False: 0]
  |  Branch (1504:65): [True: 0, False: 6]
  ------------------
 1505|      0|                        {
 1506|      0|                            key_buffer_.push_back(',');
 1507|      0|                        }
 1508|      6|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|      6|                        break;
 1510|      0|                    default:
  ------------------
  |  Branch (1510:21): [True: 0, False: 6]
  ------------------
 1511|      0|                        destination_->null_value(tag, context, ec);
 1512|      0|                        break;
 1513|      6|                }
 1514|      6|            }
 1515|       |
 1516|      6|            level_stack_.back().advance();
 1517|      6|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      6|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|      6|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|   111k|        {
 1073|   111k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 0, False: 111k]
  ------------------
 1074|      0|            {
 1075|      0|                switch (level_stack_.back().target_kind())
 1076|      0|                {
 1077|      0|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 0, False: 0]
  ------------------
 1078|      0|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 0, False: 0]
  ------------------
 1079|      0|                        {
 1080|      0|                            key_buffer_.push_back(',');
 1081|      0|                        }
 1082|      0|                        key_buffer_.push_back('\"');
 1083|      0|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|      0|                        key_buffer_.push_back('\"');
 1085|      0|                        key_buffer_.push_back(':');
 1086|      0|                        break;
 1087|      0|                    default:
  ------------------
  |  Branch (1087:21): [True: 0, False: 0]
  ------------------
 1088|      0|                        destination_->key(value, context, ec);
 1089|      0|                        break;
 1090|      0|                }
 1091|      0|            }
 1092|   111k|            else
 1093|   111k|            {
 1094|   111k|                switch (level_stack_.back().target_kind())
 1095|   111k|                {
 1096|      0|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 0, False: 111k]
  ------------------
 1097|      0|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 0, False: 0]
  |  Branch (1097:65): [True: 0, False: 0]
  ------------------
 1098|      0|                        {
 1099|      0|                            key_buffer_.push_back(',');
 1100|      0|                        }
 1101|      0|                        key_buffer_.push_back('\"');
 1102|      0|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|      0|                        key_buffer_.push_back('\"');
 1104|      0|                        break;
 1105|   111k|                    default:
  ------------------
  |  Branch (1105:21): [True: 111k, False: 0]
  ------------------
 1106|   111k|                        destination_->string_value(value, tag, context, ec);
 1107|   111k|                        break;
 1108|   111k|                }
 1109|   111k|            }
 1110|       |
 1111|   111k|            level_stack_.back().advance();
 1112|   111k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   111k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|   111k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  80.5k|        {
 1120|  80.5k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 761, False: 79.7k]
  |  Branch (1120:49): [True: 79.7k, False: 4]
  ------------------
 1121|  80.5k|            {
 1122|  80.5k|                key_.clear();
 1123|  80.5k|                switch (tag)
 1124|  80.5k|                {
 1125|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 0, False: 80.5k]
  ------------------
 1126|      0|                        bytes_to_base64(value.begin(), value.end(), key_);
 1127|      0|                        break;
 1128|      0|                    case semantic_tag::base16:
  ------------------
  |  Branch (1128:21): [True: 0, False: 80.5k]
  ------------------
 1129|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|      0|                        break;
 1131|  80.5k|                    default:
  ------------------
  |  Branch (1131:21): [True: 80.5k, False: 0]
  ------------------
 1132|  80.5k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  80.5k|                        break;
 1134|  80.5k|                }
 1135|  80.5k|            }
 1136|       |
 1137|  80.5k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 761, False: 79.7k]
  ------------------
 1138|    761|            {
 1139|    761|                switch (level_stack_.back().target_kind())
 1140|    761|                {
 1141|    761|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 761, False: 0]
  ------------------
 1142|    761|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 759, False: 2]
  ------------------
 1143|    759|                        {
 1144|    759|                            key_buffer_.push_back(',');
 1145|    759|                        }
 1146|    761|                        key_buffer_.push_back('\"');
 1147|    761|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|    761|                        key_buffer_.push_back('\"');
 1149|    761|                        key_buffer_.push_back(':');
 1150|    761|                        break;
 1151|      0|                    default:
  ------------------
  |  Branch (1151:21): [True: 0, False: 761]
  ------------------
 1152|      0|                        destination_->key(key_, context, ec);
 1153|      0|                        break;
 1154|    761|                }
 1155|    761|            }
 1156|  79.7k|            else
 1157|  79.7k|            {
 1158|  79.7k|                switch (level_stack_.back().target_kind())
 1159|  79.7k|                {
 1160|  79.7k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 79.7k, False: 4]
  ------------------
 1161|  79.7k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 78.9k, False: 798]
  |  Branch (1161:65): [True: 78.9k, False: 0]
  ------------------
 1162|  78.9k|                        {
 1163|  78.9k|                            key_buffer_.push_back(',');
 1164|  78.9k|                        }
 1165|  79.7k|                        key_buffer_.push_back('\"');
 1166|  79.7k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  79.7k|                        key_buffer_.push_back('\"');
 1168|  79.7k|                        break;
 1169|      4|                    default:
  ------------------
  |  Branch (1169:21): [True: 4, False: 79.7k]
  ------------------
 1170|      4|                        destination_->byte_string_value(value, tag, context, ec);
 1171|      4|                        break;
 1172|  79.7k|                }
 1173|  79.7k|            }
 1174|       |
 1175|  80.5k|            level_stack_.back().advance();
 1176|  80.5k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  80.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  80.5k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|     17|        {
 1184|     17|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 7, False: 10]
  |  Branch (1184:49): [True: 9, False: 1]
  ------------------
 1185|     16|            {
 1186|     16|                key_.clear();
 1187|     16|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|     16|            }
 1189|       |
 1190|     17|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 7, False: 10]
  ------------------
 1191|      7|            {
 1192|      7|                switch (level_stack_.back().target_kind())
 1193|      7|                {
 1194|      7|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 7, False: 0]
  ------------------
 1195|      7|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 7, False: 0]
  ------------------
 1196|      7|                        {
 1197|      7|                            key_buffer_.push_back(',');
 1198|      7|                        }
 1199|      7|                        key_buffer_.push_back('\"');
 1200|      7|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|      7|                        key_buffer_.push_back('\"');
 1202|      7|                        key_buffer_.push_back(':');
 1203|      7|                        break;
 1204|      0|                    default:
  ------------------
  |  Branch (1204:21): [True: 0, False: 7]
  ------------------
 1205|      0|                        destination_->key(key_, context, ec);
 1206|      0|                        break;
 1207|      7|                }
 1208|      7|            }
 1209|     10|            else
 1210|     10|            {
 1211|     10|                switch (level_stack_.back().target_kind())
 1212|     10|                {
 1213|      9|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 9, False: 1]
  ------------------
 1214|      9|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 0, False: 9]
  |  Branch (1214:65): [True: 0, False: 0]
  ------------------
 1215|      0|                        {
 1216|      0|                            key_buffer_.push_back(',');
 1217|      0|                        }
 1218|      9|                        key_buffer_.push_back('\"');
 1219|      9|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|      9|                        key_buffer_.push_back('\"');
 1221|      9|                        break;
 1222|      1|                    default:
  ------------------
  |  Branch (1222:21): [True: 1, False: 9]
  ------------------
 1223|      1|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|      1|                        break;
 1225|     10|                }
 1226|     10|            }
 1227|       |
 1228|     17|            level_stack_.back().advance();
 1229|     17|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     17|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|     17|        }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|     88|    {
  295|     88|        visit_begin_array(length, tag, context, ec);
  296|     88|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     88|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|     88|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|  2.25M|    {
  364|  2.25M|        visit_uint64(value, tag, context, ec);
  365|  2.25M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.25M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  2.25M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|     86|    {
  301|     86|        visit_end_array(context, ec);
  302|     86|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     86|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|     86|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|      3|    {
  373|      3|        visit_int64(value, tag, context, ec);
  374|      3|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|      3|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|     15|            : destination_(std::addressof(visitor)), 
  856|     15|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|     15|        {
  858|     15|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|     15|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|     15|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  80.5k|    {
  344|  80.5k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  80.5k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  80.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  80.5k|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|     17|    {
  355|     17|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|     17|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     17|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|     17|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|      6|    {
  315|      6|        visit_null(tag, context, ec);
  316|      6|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      6|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|      6|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|   111k|    {
  333|   111k|        visit_string(value, tag, context, ec);
  334|   111k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   111k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|   111k|    }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  288|      9|    {
  289|      9|        visit_begin_array(tag, context, ec);
  290|      9|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      9|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  291|      9|    }
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  267|      2|    {
  268|      2|        visit_begin_object(tag, context, ec);
  269|      2|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  270|      2|    }
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|    155|    {
  277|    155|        visit_begin_object(length, tag, context, ec);
  278|    155|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|    155|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|    155|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|     77|    {
  283|     77|        visit_end_object(context, ec);
  284|     77|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     77|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|     77|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|      5|    {
   58|      5|        visit_flush();
   59|      5|    }

_ZN8jsoncons19typed_array_visitorD2Ev:
   33|     45|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|      7|        {
  346|      7|            visit_begin_array(length, tag, context, ec);
  347|      7|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      7|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|      7|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|      6|        {
  358|      6|            visit_key(name, context, ec);
  359|      6|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      6|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|      6|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|      5|        {
  352|      5|            visit_end_array(context, ec);
  353|      5|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      5|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|      5|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|  1.20M|        {
  415|  1.20M|            visit_uint64(value, tag, context, ec);
  416|  1.20M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.20M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|  1.20M|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|      3|        {
  424|      3|            visit_int64(value, tag, context, ec);
  425|      3|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|      3|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|      5|        {
  109|      5|            visit_flush();
  110|      5|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|     34|        {
  328|     34|            visit_begin_object(length, tag, context, ec);
  329|     34|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     34|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|     34|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|     31|        {
  334|     31|            visit_end_object(context, ec);
  335|     31|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     31|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|     31|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|      3|        {
  340|      3|            visit_begin_array(tag, context, ec);
  341|      3|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  342|      3|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|   111k|        {
  384|   111k|            visit_string(value, tag, context, ec);
  385|   111k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   111k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|   111k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|      4|        {
  395|      4|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|      4|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      4|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|      4|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|      1|        {
  406|      1|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|      1|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|      1|        }
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|     30|        basic_json_visitor() = default;
_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|     15|        basic_default_json_visitor() = default;

_ZN8jsoncons6nonstd11countr_zeroImEEiT_:
   75|      2|int countr_zero(T value) {
   76|      2|    static_assert(std::is_integral<T>::value && std::is_unsigned<T>::value, "Type must be unsigned integer");
   77|       |    
   78|      2|    if (value == 0) {
  ------------------
  |  Branch (78:9): [True: 0, False: 2]
  ------------------
   79|      0|        return sizeof(T) * 8; // Or std::numeric_limits<T>::digits
   80|      0|    }
   81|       |    
   82|      2|    #if defined(__GNUC__) || defined(__clang__)
   83|      2|        if (sizeof(T) <= sizeof(unsigned int)) {
  ------------------
  |  Branch (83:13): [Folded, False: 2]
  ------------------
   84|      0|            return __builtin_ctz(static_cast<unsigned int>(value));
   85|      2|        } else if (sizeof(T) <= sizeof(unsigned long)) {
  ------------------
  |  Branch (85:20): [True: 2, Folded]
  ------------------
   86|      2|            return __builtin_ctzl(static_cast<unsigned long>(value));
   87|      2|        } 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|      2|}

_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4sizeEv:
  159|   383k|    {
  160|   383k|        return size_;
  161|   383k|    }
_ZNK8jsoncons6nonstd4spanIKlLm18446744073709551615EE4sizeEv:
  159|    249|    {
  160|    249|        return size_;
  161|    249|    }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4dataEv:
  154|   191k|    {
  155|   191k|        return data_;
  156|   191k|    }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2EPS2_m:
  102|   191k|        : data_(data), size_(size)
  103|   191k|    {
  104|   191k|    }
_ZNK8jsoncons6nonstd4spanIhLm18446744073709551615EE4dataEv:
  154|    166|    {
  155|    166|        return data_;
  156|    166|    }
_ZNK8jsoncons6nonstd4spanIhLm18446744073709551615EE4sizeEv:
  159|    166|    {
  160|    166|        return size_;
  161|    166|    }
_ZN8jsoncons6nonstd4spanIhLm18446744073709551615EEC2INSt3__16vectorIhNS4_9allocatorIhEEEEEERT_PNS4_9enable_ifIXaaaaaaaantsr7is_spanIS9_EE5valuentsr6nonstd6detail12is_std_arrayIS9_EE5valuesr6nonstd6detail21is_compatible_elementIS9_hEE5valuesr6nonstd6detail8has_dataIS9_EE5valuesr6nonstd6detail8has_sizeIS9_EE5valueEvE4typeE:
  110|    166|        : data_(c.data()), size_(c.size())
  111|    166|    {
  112|    166|    }
_ZN8jsoncons6nonstd4spanIlLm18446744073709551615EEC2EPlm:
  102|    166|        : data_(data), size_(size)
  103|    166|    {
  104|    166|    }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EE4sizeEv:
  159|    166|    {
  160|    166|        return size_;
  161|    166|    }
_ZN8jsoncons6nonstd4spanIKlLm18446744073709551615EEC2IlLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  145|     83|        : data_(s.data()), size_(s.size())
  146|     83|    {
  147|     83|    }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EE4dataEv:
  154|     83|    {
  155|     83|        return data_;
  156|     83|    }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2Ev:
   99|     15|    {
  100|     15|    }

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

_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvEC2ERS5_:
  315|     15|            : buf_ptr(std::addressof(buf))
  316|     15|        {
  317|     15|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE9push_backEh:
  334|  1.31M|        {
  335|  1.31M|            buf_ptr->push_back(static_cast<value_type>(ch));
  336|  1.31M|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE5flushEv:
  325|     20|        {
  326|     20|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE6appendEPKhm:
  329|   111k|        {
  330|   111k|            append_impl(*buf_ptr, s, length, 0);
  331|   111k|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE11append_implIS5_EEDTcmcldtfp_6insertcldtfp_3endEfp0_plfp0_fp1_Ecvv_EERT_PKhml:
  349|   111k|        {
  350|   111k|            c.insert(c.end(), s, s + length);
  351|   111k|        }

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|     15|    {
  194|     15|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 15, False: 0]
  ------------------
  195|     15|        {
  196|     15|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|     15|        }
  198|     15|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|     15|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|     15|          chunk_size_(default_max_chunk_size)
  178|     15|    {
  179|     15|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|     15|        data_end_ = chunk_;
  181|     15|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|     15|      : std::basic_istream<CharT>(&nb_)
   58|     15|    {
   59|     15|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|     15|        null_buffer() = default;
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|    876|    {
  378|    876|        std::size_t len = 0;
  379|    876|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 876, False: 0]
  ------------------
  380|    876|        {
  381|    876|            len = (std::min)(remaining_, length);
  382|    876|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|    876|            data_end_ += len;
  384|    876|            remaining_ -= len;
  385|    876|            position_ += len;
  386|    876|        }
  387|    876|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 512, False: 364]
  ------------------
  388|    512|        {
  389|    512|            return len;
  390|    512|        }
  391|    364|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 364, False: 0]
  ------------------
  392|    364|        {
  393|    364|            data_end_ = chunk_;
  394|    364|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|    364|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 358, False: 6]
  ------------------
  396|    358|            {
  397|    358|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|    358|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|    358|                data_end_ += len2;
  400|    358|                remaining_ -= len2;
  401|    358|                position_ += len2;
  402|    358|                len += len2;
  403|    358|            }
  404|    364|            return len;
  405|    364|        }
  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|    876|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|    591|    {
  443|    591|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 0, False: 591]
  ------------------
  444|      0|        {
  445|      0|            return 0;
  446|      0|        }
  447|       |
  448|    591|        JSONCONS_TRY
  ------------------
  |  |   37|    591|    #define JSONCONS_TRY try
  ------------------
  449|    591|        {
  450|    591|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|    591|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|    591|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 9, False: 582]
  ------------------
  454|      9|            {
  455|      9|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|      9|            }
  457|    591|            return length;
  458|    591|        }
  459|    591|        JSONCONS_CATCH(const std::exception&)     
  460|    591|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|    591|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  749|     56|    {
  750|     56|        std::size_t unread = length;
  751|       |
  752|    301|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (752:16): [True: 249, False: 52]
  |  Branch (752:30): [True: 245, False: 4]
  ------------------
  753|    245|        {
  754|    245|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (754:17): [True: 0, False: 245]
  |  Branch (754:44): [True: 0, False: 0]
  ------------------
  755|      0|            {
  756|      0|                std::size_t n = source.chunk_size();
  757|      0|                std::size_t offset = buffer.size();
  758|      0|                buffer.resize(offset+n);
  759|      0|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  760|      0|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  761|      0|                {
  762|      0|                    buffer.resize(offset+actual);
  763|      0|                }
  764|      0|                unread -= actual;
  765|      0|            }
  766|    245|            else
  767|    245|            {
  768|    245|                std::size_t n = (std::min)(source.chunk_size(), unread);
  769|    245|                std::size_t offset = buffer.size();
  770|    245|                buffer.resize(offset+n);
  771|    245|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  772|    245|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|    245|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 241]
  |  |  ------------------
  ------------------
  773|      4|                {
  774|      4|                    buffer.resize(offset + actual);
  775|      4|                }
  776|    245|                unread -= actual;
  777|    245|            }
  778|    245|        }
  779|     56|        return length - unread;
  780|     56|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|    370|    {
  272|    370|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 6, False: 364]
  |  Branch (272:35): [True: 6, False: 0]
  ------------------
  273|    370|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|    364|    {
  347|    364|        return remaining_;
  348|    364|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|    364|    {
  262|    364|        return chunk_size_;
  263|    364|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_6vectorIhS3_EEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  352|  80.5k|    {
  353|  80.5k|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|  80.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 15, False: 80.5k]
  |  |  ------------------
  ------------------
  354|     15|        {
  355|     15|            return span<const value_type>{};
  356|     15|        }
  357|  80.5k|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 6, False: 80.5k]
  |  Branch (357:32): [True: 6, False: 0]
  ------------------
  358|      6|        {
  359|      6|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|      6|            data_end_ = chunk_;
  361|      6|        }
  362|  80.5k|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 56, False: 80.5k]
  ------------------
  363|     56|        {
  364|     56|            buffer.clear();
  365|     56|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|     56|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|     56|        }
  368|       |
  369|  80.5k|        const value_type* data = data_end_;
  370|  80.5k|        data_end_ += length;
  371|  80.5k|        remaining_ -= length;
  372|  80.5k|        position_ += length;
  373|  80.5k|        return span<const value_type>(data, length);
  374|  80.5k|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSG_m:
  749|     56|    {
  750|     56|        std::size_t unread = length;
  751|       |
  752|    175|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (752:16): [True: 121, False: 54]
  |  Branch (752:30): [True: 119, False: 2]
  ------------------
  753|    119|        {
  754|    119|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (754:17): [True: 0, False: 119]
  |  Branch (754:44): [True: 0, False: 0]
  ------------------
  755|      0|            {
  756|      0|                std::size_t n = source.chunk_size();
  757|      0|                std::size_t offset = buffer.size();
  758|      0|                buffer.resize(offset+n);
  759|      0|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  760|      0|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  761|      0|                {
  762|      0|                    buffer.resize(offset+actual);
  763|      0|                }
  764|      0|                unread -= actual;
  765|      0|            }
  766|    119|            else
  767|    119|            {
  768|    119|                std::size_t n = (std::min)(source.chunk_size(), unread);
  769|    119|                std::size_t offset = buffer.size();
  770|    119|                buffer.resize(offset+n);
  771|    119|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  772|    119|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|    119|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 117]
  |  |  ------------------
  ------------------
  773|      2|                {
  774|      2|                    buffer.resize(offset + actual);
  775|      2|                }
  776|    119|                unread -= actual;
  777|    119|            }
  778|    119|        }
  779|     56|        return length - unread;
  780|     56|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_12basic_stringIcNS1_11char_traitsIcEENS2_IcEEEEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  352|   111k|    {
  353|   111k|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|   111k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 111k]
  |  |  ------------------
  ------------------
  354|      0|        {
  355|      0|            return span<const value_type>{};
  356|      0|        }
  357|   111k|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 0, False: 111k]
  |  Branch (357:32): [True: 0, False: 0]
  ------------------
  358|      0|        {
  359|      0|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|      0|            data_end_ = chunk_;
  361|      0|        }
  362|   111k|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 56, False: 111k]
  ------------------
  363|     56|        {
  364|     56|            buffer.clear();
  365|     56|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|     56|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|     56|        }
  368|       |
  369|   111k|        const value_type* data = data_end_;
  370|   111k|        data_end_ += length;
  371|   111k|        remaining_ -= length;
  372|   111k|        position_ += length;
  373|   111k|        return span<const value_type>(data, length);
  374|   111k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4peekEv:
  312|  7.94M|    {
  313|  7.94M|        if (remaining_ == 0)
  ------------------
  |  Branch (313:13): [True: 221, False: 7.94M]
  ------------------
  314|    221|        {
  315|    221|            data_end_ = chunk_;
  316|    221|            remaining_ = fill_buffer(chunk_, chunk_size_);
  317|    221|        }
  318|  7.94M|        if (remaining_ > 0)
  ------------------
  |  Branch (318:13): [True: 7.94M, False: 3]
  ------------------
  319|  7.94M|        {
  320|  7.94M|            value_type c = *data_end_;
  321|  7.94M|            return char_result<value_type>{c, false};
  322|  7.94M|        }
  323|      3|        else
  324|      3|        {
  325|      3|            return char_result<value_type>{0, true};
  326|      3|        }
  327|  7.94M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE6ignoreEm:
  286|  3.49M|    {
  287|  3.49M|        std::size_t len = 0;
  288|  3.49M|        if (remaining_ > 0)
  ------------------
  |  Branch (288:13): [True: 3.49M, False: 0]
  ------------------
  289|  3.49M|        {
  290|  3.49M|            len = (std::min)(remaining_, length);
  291|  3.49M|            position_ += len;
  292|  3.49M|            data_end_ += len;
  293|  3.49M|            remaining_ -= len;
  294|  3.49M|        }
  295|  3.49M|        while (len < length)
  ------------------
  |  Branch (295:16): [True: 0, False: 3.49M]
  ------------------
  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|  3.49M|    }

_ZN8jsoncons16typed_array_castIlEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  123|    166|{
  124|    166|    return jsoncons::span<int64_t>{reinterpret_cast<int64_t*>(bytes.data()), bytes.size()/sizeof(int64_t)};
  125|    166|}

_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEC2EONS_12basic_bigintIS3_EEl:
   48|      4|        : unscaled_{std::move(significand)}, scale_{scale}
   49|      4|    {
   50|      4|    }
_ZN8jsoncons16append_to_stringINSt3__19allocatorImEEcNS2_IcEEEEvRKNS_12basic_bigdecIT_EERNS1_12basic_stringIT0_NS1_11char_traitsISB_EET1_EE:
  420|      4|{
  421|      4|    const std::size_t rel = buf.size();  
  422|      4|    append_to_string(value.unscaled(), buf);
  423|       |
  424|      4|    const size_t sign = buf[rel] == '-' ? 1 : 0;
  ------------------
  |  Branch (424:25): [True: 0, False: 4]
  ------------------
  425|      4|    const size_t sign_pos = rel+sign;
  426|      4|    const size_t precision = (buf.size()-rel) - sign;
  427|      4|    const int64_t scale = value.scale();
  428|       |
  429|      4|    const int128 adjustedExponent =
  430|      4|        static_cast<int128>(precision) - 1 -
  431|      4|        static_cast<int128>(scale);
  432|       |
  433|       |    // Plain notation when scale >= 0 and
  434|       |    // adjustedExponent >= -6.
  435|      4|    if (scale >= 0 && adjustedExponent >= -6) {
  ------------------
  |  Branch (435:9): [True: 2, False: 2]
  |  Branch (435:23): [True: 2, False: 0]
  ------------------
  436|      2|        if (scale == 0)
  ------------------
  |  Branch (436:13): [True: 1, False: 1]
  ------------------
  437|      1|            return;
  438|       |
  439|      1|        if (static_cast<uint64_t>(scale) >= precision) {
  ------------------
  |  Branch (439:13): [True: 0, False: 1]
  ------------------
  440|       |            // 123 with scale 5 -> 0.00123
  441|      0|            const size_t zeros =
  442|      0|                static_cast<size_t>(scale) - precision;
  443|       |
  444|      0|            buf.insert(sign_pos, 1, '0');
  445|      0|            buf.insert(sign_pos+1, 1, '.');
  446|      0|            buf.insert(sign_pos+2, zeros, '0');
  447|      0|        }
  448|      1|        else {
  449|       |            // 12345 with scale 2 -> 123.45
  450|      1|            const size_t dot_pos = buf.size() - static_cast<size_t>(scale);
  451|       |
  452|      1|            buf.insert(dot_pos, 1, '.');
  453|      1|        }
  454|       |
  455|      1|        return;
  456|      2|    }
  457|       |
  458|       |    // Scientific notation.
  459|       |    // 12345 with scale -2 -> 1.2345E+6
  460|      2|    if (precision > 1)
  ------------------
  |  Branch (460:9): [True: 0, False: 2]
  ------------------
  461|      0|        buf.insert(sign_pos + 1, 1, '.');
  462|       |
  463|      2|    buf.push_back('e');
  464|       |
  465|      2|    append_to_string(adjustedExponent, buf);
  466|      2|}
_ZNK8jsoncons12basic_bigdecINSt3__19allocatorImEEE8unscaledEv:
   79|      4|    {
   80|      4|        return unscaled_;
   81|      4|    }
_ZNK8jsoncons12basic_bigdecINSt3__19allocatorImEEE5scaleEv:
   89|      4|    {
   90|      4|        return scale_;
   91|      4|    }
_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEC2Ev:
   36|      2|    basic_bigdec() = default;
_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEaSEOS4_:
   76|      2|    basic_bigdec& operator=(basic_bigdec&&) = default;

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IcEEPKT_mRKS3_:
  656|      2|        : storage_(alloc)
  657|      2|    {
  658|      2|        auto r = jsoncons::to_bigint(s, length, *this, alloc);
  659|      2|        if (r.ec != bignum_errc{})
  ------------------
  |  Branch (659:13): [True: 0, False: 2]
  ------------------
  660|      0|        {
  661|      0|            JSONCONS_THROW(std::system_error((int)r.ec, std::system_category()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  662|      0|        }
  663|      2|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  306|     51|        : word_allocator_type(alloc)
  307|     51|    {
  308|     51|        ::new (&inlined_) inlined_storage();
  309|     51|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  126|     51|            : is_allocated_(false),
  127|     51|            is_negative_(false),
  128|     51|            size_(0),
  129|     51|            values_{0, 0}
  130|     51|        {
  131|     51|        }
_ZN8jsoncons9to_bigintIcNSt3__19allocatorImEEEENS_16to_bignum_resultIT_EEPKS5_mRNS_12basic_bigintIT0_EERKSA_:
 2443|      2|{
 2444|      2|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2445|      0|    {
 2446|      0|        return to_bignum_result<CharT>(data, bignum_errc::invalid_argument);
 2447|      0|    }
 2448|       |
 2449|      2|    if (*data == '-')
  ------------------
  |  Branch (2449:9): [True: 1, False: 1]
  ------------------
 2450|      1|    {
 2451|      1|        return jsoncons::detail::to_bigint(data + 1, length - 1, true, value, alloc);
 2452|      1|    }
 2453|      1|    else
 2454|      1|    {
 2455|      1|        return jsoncons::detail::to_bigint(data, length, false, value, alloc);
 2456|      1|    }
 2457|      2|}
_ZN8jsoncons6detail9to_bigintIcNSt3__19allocatorImEEEENS_16to_bignum_resultIT_EEPKS6_mbRNS_12basic_bigintIT0_EERKSB_:
 2377|      2|{
 2378|      2|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2379|      0|    {
 2380|      0|        return to_bignum_result<CharT>(data, bignum_errc::invalid_argument);
 2381|      0|    }
 2382|       |
 2383|      2|    using word_type = typename basic_bigint<Allocator>::word_type;
 2384|       |
 2385|      2|    const CharT* last = data + length;
 2386|      2|    const CharT* p = data;
 2387|       |
 2388|      2|    while (p < last && *p == '0')
  ------------------
  |  Branch (2388:12): [True: 2, False: 0]
  |  Branch (2388:24): [True: 0, False: 2]
  ------------------
 2389|      0|    {
 2390|      0|        ++p;
 2391|      0|    }
 2392|      2|    if (p == last)
  ------------------
  |  Branch (2392:9): [True: 0, False: 2]
  ------------------
 2393|      0|    {
 2394|      0|        value = std::move(basic_bigint<Allocator>{0, alloc});
 2395|      0|        return to_bignum_result<CharT>(last, bignum_errc{});
 2396|      0|    }
 2397|      2|    std::size_t num_digits = last - data;
 2398|      2|    std::size_t num_words;
 2399|      2|    if (length < 10)
  ------------------
  |  Branch (2399:9): [True: 0, False: 2]
  ------------------
 2400|      0|    {
 2401|      0|        num_words = 1;
 2402|      0|    }
 2403|      2|    else
 2404|      2|    {
 2405|      2|        std::size_t num_bits = (std::size_t)(((num_digits * detail::bits_per_digit[10]) >> 10) + 1);
 2406|      2|        num_words = (num_bits + 63) >> 6;
 2407|      2|    }
 2408|       |
 2409|      2|    basic_bigint<Allocator> v(0, alloc);
 2410|      2|    v.reserve(num_words);
 2411|     52|    for (std::size_t i = 0; i < length; i++)
  ------------------
  |  Branch (2411:29): [True: 50, False: 2]
  ------------------
 2412|     50|    {
 2413|     50|        CharT c = data[i];
 2414|     50|        if (JSONCONS_LIKELY(c >= '0' && c <= '9'))
  ------------------
  |  |   78|    100|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 50, False: 0]
  |  |  |  Branch (78:48): [True: 50, False: 0]
  |  |  |  Branch (78:48): [True: 50, False: 0]
  |  |  ------------------
  ------------------
 2415|     50|        {
 2416|     50|            v *= 10u;
 2417|     50|            word_type d = static_cast<word_type>(c - '0');
 2418|     50|            if (d != 0)
  ------------------
  |  Branch (2418:17): [True: 46, False: 4]
  ------------------
 2419|     46|            {
 2420|     46|                v += d;
 2421|     46|            }
 2422|     50|        }
 2423|      0|        else
 2424|      0|        {
 2425|      0|            return to_bignum_result<CharT>(data + i, bignum_errc::invalid_argument);
 2426|      0|        }
 2427|     50|    }
 2428|       |
 2429|      2|    if (neg)
  ------------------
  |  Branch (2429:9): [True: 1, False: 1]
  ------------------
 2430|      1|    {
 2431|      1|        v.set_negative(true);
 2432|      1|    }
 2433|       |
 2434|      2|    value = std::move(v);
 2435|      2|    return to_bignum_result<CharT>(last, bignum_errc{});
 2436|      2|}
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IiEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  688|     34|        : storage_(n, alloc)
  689|     34|    {
  690|     34|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  373|     34|        : word_allocator_type(alloc)
  374|     34|    {
  375|     34|        ::new (&inlined_) inlined_storage(n);
  376|     34|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  138|     34|            : is_allocated_(false),
  139|     34|            is_negative_(n < 0),
  140|     34|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 8, False: 26]
  ------------------
  141|     34|        {
  142|     34|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (142:26): [True: 1, False: 33]
  ------------------
  143|     34|            values_[1] = 0;
  144|     34|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  887|     74|    {
  888|     74|        storage_ = y.storage_;
  889|     74|        return *this;
  890|     74|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  379|     74|    {
  380|     74|        if (this != &other)
  ------------------
  |  Branch (380:13): [True: 74, False: 0]
  ------------------
  381|     74|        {
  382|     74|            auto other_words = other.get_words();
  383|     74|            resize(other_words.size());
  384|     74|            auto words = get_words();
  385|     74|            if (other_words.size() > 0)
  ------------------
  |  Branch (385:17): [True: 69, False: 5]
  ------------------
  386|     69|            {
  387|     69|                common_.is_negative_ = other.common_.is_negative_;
  388|     69|                std::memcpy(words.data(), other_words.data(), size_type(other_words.size()*sizeof(word_type)));
  389|     69|            }
  390|     74|        }
  391|     74|        return *this;
  392|     74|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE9get_wordsEv:
  540|    244|    {
  541|    244|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (541:16): [True: 1, False: 243]
  ------------------
  542|      1|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  543|    244|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  544|    244|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   67|    244|            : data_(data), size_(size)
   68|    244|        {
   69|    244|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  547|    131|    {
  548|    131|        size_type old_length = common_.size_;
  549|    131|        reserve(new_length);
  550|    131|        common_.size_ = new_length;
  551|       |
  552|    131|        if (old_length < new_length)
  ------------------
  |  Branch (552:13): [True: 100, False: 31]
  ------------------
  553|    100|        {
  554|    100|            if (is_allocated())
  ------------------
  |  Branch (554:17): [True: 11, False: 89]
  ------------------
  555|     11|            {
  556|     11|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  557|     11|            }
  558|     89|            else
  559|     89|            {
  560|     89|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   67|     89|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 89]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  561|    231|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (561:48): [True: 142, False: 89]
  ------------------
  562|    142|                {
  563|    142|                    inlined_.values_[i] = 0;
  564|    142|                }
  565|     89|            }
  566|    100|        }
  567|    131|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  465|    133|    {
  466|    133|       if (capacity() < n)
  ------------------
  |  Branch (466:12): [True: 1, False: 132]
  ------------------
  467|      1|       {
  468|      1|           if (!is_allocated())
  ------------------
  |  Branch (468:16): [True: 1, False: 0]
  ------------------
  469|      1|           {
  470|      1|               size_type size = inlined_.size_;
  471|      1|               size_type is_neg = inlined_.is_negative_;
  472|      1|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  473|       |
  474|      1|               ::new (&allocated_) allocated_storage();
  475|      1|               allocated_.reserve(n, get_allocator());
  476|      1|               allocated_.size_ = size;
  477|      1|               allocated_.is_negative_ = is_neg;
  478|      1|               if (n >= 1)
  ------------------
  |  Branch (478:20): [True: 1, False: 0]
  ------------------
  479|      1|               {
  480|      1|                   allocated_.data_[0] = values[0];
  481|      1|               }
  482|      1|               if (n >= 2)
  ------------------
  |  Branch (482:20): [True: 1, False: 0]
  ------------------
  483|      1|               {
  484|      1|                   allocated_.data_[1] = values[1];
  485|      1|               }
  486|      1|           }
  487|      0|           else
  488|      0|           {
  489|      0|               allocated_.reserve(n, get_allocator());
  490|      0|           }
  491|      1|       }
  492|    133|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  518|    133|    {
  519|    133|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (519:16): [True: 10, False: 123]
  ------------------
  520|    133|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  216|      1|            : is_allocated_(true),
  217|      1|            is_negative_(false)
  218|      1|        {
  219|      1|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  268|      1|        {
  269|      1|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   67|      1|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 1]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  270|      1|            size_type capacity_new = round_up(n);
  271|       |
  272|      1|            real_allocator_type alloc(a);
  273|      1|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  274|      1|            if (size_ > 0)
  ------------------
  |  Branch (274:17): [True: 0, False: 1]
  ------------------
  275|      0|            {
  276|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  277|      0|            }
  278|      1|            if (data_ != nullptr)
  ------------------
  |  Branch (278:17): [True: 0, False: 1]
  ------------------
  279|      0|            {
  280|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  281|      0|            }
  282|      1|            capacity_ = capacity_new;
  283|      1|            data_ = data_new;
  284|      1|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  288|      1|        {
  289|      1|            size_type remainder = i % mem_unit;
  290|      1|            size_type off = mem_unit - remainder;
  291|      1|            bool testoff = i < max_size - off;
  292|      1|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   67|      1|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 1]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  293|       |
  294|      1|            return i + off;
  295|      1|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  495|     90|    {
  496|     90|        return static_cast<const word_allocator_type&>(*this);
  497|     90|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  513|    530|    {
  514|    530|        return common_.is_allocated_;
  515|    530|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   97|    527|        {
   98|    527|            return size_;
   99|    527|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE9get_wordsEv:
  533|    397|    {
  534|    397|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (534:16): [True: 42, False: 355]
  ------------------
  535|     42|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  536|    397|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  537|    397|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   67|    397|            : data_(data), size_(size)
   68|    397|        {
   69|    397|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   92|     71|        {
   93|     71|            return data_;
   94|     71|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   92|     69|        {
   93|     69|            return data_;
   94|     69|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE7reserveEm:
  868|      2|    {
  869|      2|        storage_.reserve(n);
  870|      2|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLIjEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
 1043|     50|    {
 1044|     50|        auto words = get_words();
 1045|     50|        size_type len = words.size();
 1046|     50|        if (len == 0 || m == 0)
  ------------------
  |  Branch (1046:13): [True: 2, False: 48]
  |  Branch (1046:25): [True: 0, False: 48]
  ------------------
 1047|      2|        {
 1048|      2|            resize(0);
 1049|      2|            return *this;
 1050|      2|        }
 1051|       |
 1052|     48|        dword_type carry = 0;
 1053|     48|        size_t i = 0;
 1054|    106|        for (; i < len; ++i) {
  ------------------
  |  Branch (1054:16): [True: 58, False: 48]
  ------------------
 1055|     58|            dword_type x = dword_type(words[i]) * m + carry;
 1056|     58|            words[i] = static_cast<word_type>(x);
 1057|     58|            carry = x >> 64;
 1058|     58|        }
 1059|       |
 1060|     48|        if (carry)
  ------------------
  |  Branch (1060:13): [True: 1, False: 47]
  ------------------
 1061|      1|        {
 1062|      1|            resize(len+1);
 1063|      1|            words = get_words();
 1064|      1|            words[i] = static_cast<word_type>(carry);
 1065|      1|        }
 1066|       |
 1067|       |        /*
 1068|       |        word_type dig = words[0];
 1069|       |        word_type carry = 0;
 1070|       |
 1071|       |        resize(words.size() + 1);
 1072|       |        words = get_words();
 1073|       |
 1074|       |        size_type i = 0;
 1075|       |        for (; i < len; i++ )
 1076|       |        {
 1077|       |            word_type hi;
 1078|       |            word_type lo;
 1079|       |            DDproduct( dig, y, hi, lo );
 1080|       |            words[i] = lo + carry;
 1081|       |            dig = words[i+1];
 1082|       |            carry = hi + (words[i] < lo);
 1083|       |        }
 1084|       |        words[i] = carry;
 1085|       |        reduce(); 
 1086|       |        */ 
 1087|     48|        return *this;
 1088|     50|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE9get_wordsEv:
  713|    265|    {
  714|    265|        return storage_.get_words();
  715|    265|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   97|    345|        {
   98|    345|            return size_;
   99|    345|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  863|     57|    {
  864|     57|        storage_.resize(new_length);
  865|     57|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   72|    393|        {
   73|    393|            return data_[i];
   74|    393|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  934|     46|    {
  935|     46|        if ( is_negative())
  ------------------
  |  Branch (935:14): [True: 0, False: 46]
  ------------------
  936|      0|            return *this -= -basic_bigint<Allocator>(y);
  937|       |
  938|     46|        word_type d;
  939|     46|        word_type carry = 0;
  940|       |
  941|     46|        auto words = get_words();
  942|     46|        resize(words.size() + 1);
  943|       |
  944|     46|        words = get_words();
  945|     46|        const size_type this_size = words.size();
  946|     46|        size_type y_size = 1;
  947|       |
  948|     46|        d = words[0] + carry;
  949|     46|        carry = d < carry;
  950|     46|        words[0] = d + y;
  951|     46|        if (words[0] < d)
  ------------------
  |  Branch (951:13): [True: 0, False: 46]
  ------------------
  952|      0|            carry = 1;
  953|       |
  954|     46|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (954:36): [True: 44, False: 2]
  |  Branch (954:53): [True: 0, False: 44]
  ------------------
  955|      0|        {
  956|      0|            d = words[i] + carry;
  957|      0|            carry = d < carry;
  958|      0|            words[i] = d;
  959|      0|        }
  960|     46|        reduce();
  961|     46|        return *this;
  962|     46|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  723|    351|    {
  724|    351|        return storage_.is_negative();
  725|    351|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  523|    351|    {
  524|    351|        return common_.is_negative_;
  525|    351|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  688|     50|        : storage_(n, alloc)
  689|     50|    {
  690|     50|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  373|     50|        : word_allocator_type(alloc)
  374|     50|    {
  375|     50|        ::new (&inlined_) inlined_storage(n);
  376|     50|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  151|     50|            : is_allocated_(false),
  152|     50|            is_negative_(false),
  153|     50|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (153:19): [True: 5, False: 45]
  ------------------
  154|     50|        {
  155|     50|            values_[0] = n;
  156|     50|            values_[1] = 0;
  157|     50|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  880|      2|    {
  881|      2|        basic_bigint<Allocator> v(*this);
  882|      2|        v.set_negative(!v.is_negative());
  883|      2|        return v;
  884|      2|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  666|     18|        : storage_(other.storage_)
  667|     18|    {
  668|     18|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  312|     18|        : word_allocator_type(other.get_allocator())
  313|     18|    {
  314|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  315|       |# pragma GCC diagnostic push
  316|       |# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  317|       |#endif
  318|     18|        if (!other.is_allocated())
  ------------------
  |  Branch (318:13): [True: 18, False: 0]
  ------------------
  319|     18|        {
  320|     18|            ::new (&inlined_) inlined_storage(other.inlined_);
  321|     18|        }
  322|      0|        else
  323|      0|        {
  324|      0|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  325|      0|        }
  326|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  327|       |# pragma GCC diagnostic pop
  328|       |#endif
  329|     18|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  191|     78|            : is_allocated_(false),
  192|     78|            is_negative_(stor.is_negative_),
  193|     78|            size_(stor.size_)
  194|     78|        {
  195|     78|            values_[0] = stor.values_[0];
  196|     78|            values_[1] = stor.values_[1];
  197|     78|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  999|      2|    {
 1000|      2|        auto y_words = y.get_words();
 1001|       |
 1002|      2|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1002:14): [True: 1, False: 1]
  ------------------
 1003|      1|            return *this += -y;
 1004|      1|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (1004:15): [True: 1, False: 0]
  |  Branch (1004:33): [True: 0, False: 1]
  |  Branch (1004:48): [True: 0, False: 1]
  |  Branch (1004:65): [True: 0, False: 0]
  ------------------
 1005|      0|            return *this = -(y - *this);
 1006|      1|        word_type borrow = 0;
 1007|      1|        word_type d;
 1008|      1|        auto words = get_words();
 1009|      1|        const size_type this_size = words.size();
 1010|      1|        const size_type y_size = y_words.size();
 1011|       |
 1012|      2|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (1012:31): [True: 1, False: 1]
  ------------------
 1013|      1|        {
 1014|      1|            d = words[i] - borrow;
 1015|      1|            borrow = d > words[i];
 1016|      1|            words[i] = d - y_words[i];
 1017|      1|            if ( words[i] > d )
  ------------------
  |  Branch (1017:18): [True: 0, False: 1]
  ------------------
 1018|      0|                borrow = 1;
 1019|      1|        }
 1020|      1|        for (size_type i = y_size; i < this_size && borrow != 0; i++ )
  ------------------
  |  Branch (1020:36): [True: 0, False: 1]
  |  Branch (1020:53): [True: 0, False: 0]
  ------------------
 1021|      0|        {
 1022|      0|            d = words[i] - borrow;
 1023|      0|            borrow = d > words[i];
 1024|      0|            words[i] = d;
 1025|      0|        }
 1026|      1|        reduce();
 1027|      1|        return *this;
 1028|      1|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9get_wordsEv:
  718|    170|    {
  719|    170|        return storage_.get_words();
  720|    170|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  965|      1|    {
  966|      1|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (966:14): [True: 0, False: 1]
  ------------------
  967|      0|            return *this -= -y;
  968|       |
  969|      1|        auto y_words = y.get_words();
  970|       |        
  971|      1|        word_type d;
  972|      1|        word_type carry = 0;
  973|       |
  974|      1|        auto words = get_words();
  975|      1|        resize( (std::max)(y_words.size(), words.size()) + 1 );
  976|      1|        words = get_words();
  977|       |
  978|      1|        const size_t this_size = words.size();
  979|      1|        const size_t y_size = y_words.size();
  980|      2|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (980:31): [True: 1, False: 1]
  ------------------
  981|      1|        {
  982|      1|            d = words[i] + carry;
  983|      1|            carry = d < carry;
  984|      1|            words[i] = d + y_words[i];
  985|      1|            if (words[i] < d)
  ------------------
  |  Branch (985:17): [True: 0, False: 1]
  ------------------
  986|      0|                carry = 1;
  987|      1|        }
  988|      1|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (988:36): [True: 1, False: 0]
  |  Branch (988:53): [True: 0, False: 1]
  ------------------
  989|      0|        {
  990|      0|            d = words[i] + carry;
  991|      0|            carry = d < carry;
  992|      0|            words[i] = d;
  993|      0|        }
  994|      1|        reduce();
  995|      1|        return *this;
  996|      1|    }
_ZN8jsonconsgtERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1560|      1|    {
 1561|      1|        return x.compare(y) > 0 ? true : false;
  ------------------
  |  Branch (1561:16): [True: 0, False: 1]
  ------------------
 1562|      1|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1715|     58|    {
 1716|     58|        auto words = get_words();
 1717|     58|        auto y_words = y.get_words();
 1718|       |
 1719|     58|        const size_type y_size = y_words.size();
 1720|     58|        if ( words.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1720:14): [True: 0, False: 58]
  |  Branch (1720:35): [True: 0, False: 0]
  ------------------
 1721|      0|            return 0;
 1722|     58|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1722:14): [True: 1, False: 57]
  ------------------
 1723|      1|            return y.is_negative() - is_negative();
 1724|     57|        int code = 0;
 1725|     57|        if ( words.size() < y_size)
  ------------------
  |  Branch (1725:14): [True: 0, False: 57]
  ------------------
 1726|      0|            code = -1;
 1727|     57|        else if ( words.size() > y_size)
  ------------------
  |  Branch (1727:19): [True: 20, False: 37]
  ------------------
 1728|     20|            code = +1;
 1729|     37|        else
 1730|     37|        {
 1731|     37|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1731:46): [True: 37, False: 0]
  ------------------
 1732|     37|            {
 1733|     37|                if (words[i] > y_words[i])
  ------------------
  |  Branch (1733:21): [True: 29, False: 8]
  ------------------
 1734|     29|                {
 1735|     29|                    code = 1;
 1736|     29|                    break;
 1737|     29|                }
 1738|      8|                else if (words[i] < y_words[i])
  ------------------
  |  Branch (1738:26): [True: 8, False: 0]
  ------------------
 1739|      8|                {
 1740|      8|                    code = -1;
 1741|      8|                    break;
 1742|      8|                }
 1743|     37|            }
 1744|     37|        }
 1745|     57|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1745:16): [True: 0, False: 57]
  ------------------
 1746|     58|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1550|     28|    {
 1551|     28|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1551:15): [True: 5, False: 23]
  ------------------
 1552|     28|    }
_ZN8jsonconsmiENS_12basic_bigintINSt3__19allocatorImEEEERKS4_:
 1600|      1|    {
 1601|      1|        return x -= y;
 1602|      1|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   72|    135|        {
   73|    135|            return data_[i];
   74|    135|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 2071|     58|    {
 2072|     58|        storage_.reduce();
 2073|     58|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  442|     58|    {
  443|     58|        if (common_.size_ > 0)
  ------------------
  |  Branch (443:13): [True: 58, False: 0]
  ------------------
  444|     58|        {
  445|     58|            auto words = get_words();
  446|     58|            word_type* p = words.end() - 1;
  447|     58|            word_type* first = words.begin();
  448|    105|            while ( p >= first )
  ------------------
  |  Branch (448:21): [True: 105, False: 0]
  ------------------
  449|    105|            {
  450|    105|                if ( *p )
  ------------------
  |  Branch (450:22): [True: 58, False: 47]
  ------------------
  451|     58|                {
  452|     58|                    break;
  453|     58|                }
  454|     47|                --common_.size_;
  455|     47|                --p;
  456|     47|            }
  457|     58|        }
  458|     58|        if (common_.size_ == 0)
  ------------------
  |  Branch (458:13): [True: 0, False: 58]
  ------------------
  459|      0|        {
  460|      0|            common_.is_negative_ = false;
  461|      0|        }
  462|     58|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
  106|     58|        {
  107|     58|            return data_ + size_;
  108|     58|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
  101|     58|        {
  102|     58|            return data_;
  103|     58|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  744|    115|    {
  745|    115|        storage_.set_negative(value);
  746|    115|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  528|    115|    {
  529|    115|        common_.is_negative_ = value;
  530|    115|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEEl:
 1555|      4|    {
 1556|      4|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1556:15): [True: 1, False: 3]
  ------------------
 1557|      4|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  688|      5|        : storage_(n, alloc)
  689|      5|    {
  690|      5|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  373|      5|        : word_allocator_type(alloc)
  374|      5|    {
  375|      5|        ::new (&inlined_) inlined_storage(n);
  376|      5|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  138|      5|            : is_allocated_(false),
  139|      5|            is_negative_(n < 0),
  140|      5|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 4, False: 1]
  ------------------
  141|      5|        {
  142|      5|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (142:26): [True: 0, False: 5]
  ------------------
  143|      5|            values_[1] = 0;
  144|      5|        }
_ZN8jsonconsmiENS_12basic_bigintINSt3__19allocatorImEEEEl:
 1605|      1|    {
 1606|      1|        return x -= y;
 1607|      1|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE14write_bytes_beINS2_IhEEEEvRiRNS1_6vectorIhT_EE:
 1396|      2|    {
 1397|      2|        basic_bigint<Allocator> n(*this);
 1398|      2|        signum = (n < 0) ? -1 : (n > 0 ? 1 : 0); 
  ------------------
  |  Branch (1398:18): [True: 0, False: 2]
  |  Branch (1398:34): [True: 2, False: 0]
  ------------------
 1399|       |
 1400|      2|        basic_bigint<Allocator> divisor(256);
 1401|       |
 1402|     21|        while (n >= 256)
  ------------------
  |  Branch (1402:16): [True: 19, False: 2]
  ------------------
 1403|     19|        {
 1404|     19|            basic_bigint<Allocator> q;
 1405|     19|            basic_bigint<Allocator> r;
 1406|     19|            n.divide(divisor, q, r, true);
 1407|     19|            n = q;
 1408|     19|            data.push_back((uint8_t)(word_type)r);
 1409|     19|        }
 1410|      2|        if (n >= 0)
  ------------------
  |  Branch (1410:13): [True: 2, False: 0]
  ------------------
 1411|      2|        {
 1412|      2|            data.push_back((uint8_t)(word_type)n);
 1413|      2|        }
 1414|       |
 1415|      2|        std::reverse(data.begin(),data.end());
 1416|      2|    }
_ZN8jsonconsgtERKNS_12basic_bigintINSt3__19allocatorImEEEEi:
 1565|      2|    {
 1566|      2|        return x.compare(basic_bigint<Allocator>(y)) > 0 ? true : false;
  ------------------
  |  Branch (1566:16): [True: 2, False: 0]
  ------------------
 1567|      2|    }
_ZN8jsonconsgeERKNS_12basic_bigintINSt3__19allocatorImEEEEi:
 1585|     23|    {
 1586|     23|        return x.compare(y) >= 0 ? true : false;
  ------------------
  |  Branch (1586:16): [True: 21, False: 2]
  ------------------
 1587|     23|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  630|     44|    basic_bigint() = default;
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1828|     26|    {
 1829|     26|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1830|     26|        auto denom_words = denom.get_words();
 1831|       |
 1832|     26|        if (denom_words.size() == 0)
  ------------------
  |  Branch (1832:13): [True: 0, False: 26]
  ------------------
 1833|      0|        {
 1834|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1835|      0|        }
 1836|     26|        bool quot_neg = is_negative() ^ denom.is_negative();
 1837|     26|        bool rem_neg = is_negative();
 1838|     26|        basic_bigint<Allocator> num(*this, get_allocator());
 1839|     26|        num.set_negative(false);
 1840|     26|        denom.set_negative(false);
 1841|     26|        if ( num < denom )
  ------------------
  |  Branch (1841:14): [True: 5, False: 21]
  ------------------
 1842|      5|        {
 1843|      5|            quot = word_type(0);
 1844|      5|            quot.set_negative(quot_neg);
 1845|      5|            rem = num;
 1846|      5|            rem.set_negative(rem_neg);
 1847|      5|            return;
 1848|      5|        }
 1849|       |
 1850|     21|        auto num_words = num.get_words();
 1851|     21|        auto quot_words = quot.get_words();
 1852|     21|        auto words = get_words();
 1853|       |
 1854|     21|        if ( denom_words.size() == 1 && num_words.size() == 1 )
  ------------------
  |  Branch (1854:14): [True: 21, False: 0]
  |  Branch (1854:41): [True: 15, False: 6]
  ------------------
 1855|     15|        {
 1856|     15|            quot = word_type( num_words[0]/denom_words[0] );
 1857|     15|            rem = word_type( num_words[0]%denom_words[0] );
 1858|     15|            quot.set_negative(quot_neg);
 1859|     15|            rem.set_negative(rem_neg);
 1860|     15|            return;
 1861|     15|        }
 1862|      6|        if (denom_words.size() == 1 && (denom_words[0] & l_mask) == 0 )
  ------------------
  |  Branch (1862:13): [True: 6, False: 0]
  |  Branch (1862:40): [True: 5, False: 1]
  ------------------
 1863|      5|        {
 1864|       |            // Denominator fits into a half word
 1865|      5|            word_type divisor = denom_words[0], dHi = 0, q1, r, q2, dividend;
 1866|      5|            quot.resize(words.size());
 1867|      5|            quot_words = quot.get_words();
 1868|     15|            for (size_type i=words.size(); i-- > 0; )
  ------------------
  |  Branch (1868:44): [True: 10, False: 5]
  ------------------
 1869|     10|            {
 1870|     10|                dividend = (dHi << word_half_bits) | (words[i] >> word_half_bits);
 1871|     10|                q1 = dividend/divisor;
 1872|     10|                r = dividend % divisor;
 1873|     10|                dividend = (r << word_half_bits) | (words[i] & r_mask);
 1874|     10|                q2 = dividend/divisor;
 1875|     10|                dHi = dividend % divisor;
 1876|     10|                quot_words[i] = (q1 << word_half_bits) | q2;
 1877|     10|            }
 1878|      5|            quot.reduce();
 1879|      5|            rem = dHi;
 1880|      5|            quot.set_negative(quot_neg);
 1881|      5|            rem.set_negative(rem_neg);
 1882|      5|            return;
 1883|      5|        }
 1884|      1|        basic_bigint<Allocator> num0(num, get_allocator());
 1885|      1|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1886|      1|        int x = 0;
 1887|      1|        bool second_done = normalize(denom, num, x);
 1888|      1|        denom_words = denom.get_words();
 1889|      1|        num_words = num.get_words();
 1890|       |
 1891|      1|        size_type l = denom_words.size() - 1;
 1892|      1|        size_type n = num_words.size() - 1;
 1893|      1|        quot.resize(n - l);
 1894|      1|        quot_words = quot.get_words();
 1895|      2|        for (size_type i = quot_words.size(); i-- > 0; )
  ------------------
  |  Branch (1895:47): [True: 1, False: 1]
  ------------------
 1896|      1|        {
 1897|      1|            quot_words[i] = 0;
 1898|      1|        }
 1899|      1|        rem = num;
 1900|      1|        auto rem_words = rem.get_words();
 1901|      1|        if ( rem_words[n] >= denom_words[l] )
  ------------------
  |  Branch (1901:14): [True: 0, False: 1]
  ------------------
 1902|      0|        {
 1903|      0|            rem.resize(rem_words.size() + 1);
 1904|      0|            rem_words = rem.get_words();
 1905|      0|            n++;
 1906|      0|            quot.resize(quot_words.size() + 1);
 1907|      0|            quot_words = quot.get_words();
 1908|      0|        }
 1909|      1|        word_type d = denom_words[l];
 1910|       |
 1911|      2|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1911:32): [True: 1, False: 1]
  ------------------
 1912|      1|        {
 1913|      1|            word_type q = DDquotient(rem_words[k], rem_words[k-1], d);
 1914|      1|            subtractmul( rem_words.data() + (k - l - 1), denom_words.data(), l + 1, q );
 1915|      1|            quot_words[k - l - 1] = q;
 1916|      1|        }
 1917|      1|        quot.reduce();
 1918|      1|        quot.set_negative(quot_neg);
 1919|      1|        if (remDesired)
  ------------------
  |  Branch (1919:13): [True: 1, False: 0]
  ------------------
 1920|      1|        {
 1921|      1|            unnormalize(rem, x, second_done);
 1922|      1|            rem.set_negative(rem_neg);
 1923|      1|        }
 1924|      1|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  708|     64|    {
  709|     64|        return storage_.get_allocator();
  710|     64|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  671|     54|        : storage_(other.storage_, alloc)
  672|     54|    {
  673|     54|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  332|     54|        : word_allocator_type(alloc)
  333|     54|    {
  334|     54|        if (!other.is_allocated())
  ------------------
  |  Branch (334:13): [True: 54, False: 0]
  ------------------
  335|     54|        {
  336|     54|            ::new (&inlined_) inlined_storage(other.inlined_);
  337|     54|        }
  338|      0|        else
  339|      0|        {
  340|      0|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  341|      0|        }
  342|     54|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 2026|      1|    {
 2027|      1|        auto denom_words = denom.get_words();
 2028|      1|        if (denom_words.size() == 0)
  ------------------
  |  Branch (2028:13): [True: 0, False: 1]
  ------------------
 2029|      0|        {
 2030|      0|            return false;
 2031|      0|        }
 2032|      1|        size_type r = denom_words.size() - 1;
 2033|      1|        word_type y = denom_words[r];
 2034|       |
 2035|      1|        x = 0;
 2036|      1|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (2036:17): [True: 0, False: 1]
  ------------------
 2037|      0|        {
 2038|      0|            y <<= 1;
 2039|      0|            x++;
 2040|      0|        }
 2041|      1|        denom <<= x;
 2042|      1|        num <<= x;
 2043|       |
 2044|      1|        denom_words = denom.get_words();
 2045|      1|        if ( r > 0 && denom_words[r] < denom_words[r-1] )
  ------------------
  |  Branch (2045:14): [True: 0, False: 1]
  |  Branch (2045:23): [True: 0, False: 0]
  ------------------
 2046|      0|        {
 2047|      0|            denom *= max_word;
 2048|      0|            num *= max_word;
 2049|      0|            return true;
 2050|      0|        }
 2051|      1|        return false;
 2052|      1|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1185|      2|    {
 1186|      2|        auto words = get_words();
 1187|      2|        size_type q = k / word_bits;
 1188|      2|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1188:14): [True: 0, False: 2]
  ------------------
 1189|      0|        {
 1190|      0|            resize(words.size() + q);
 1191|      0|            words = get_words();
 1192|      0|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1192:46): [True: 0, False: 0]
  ------------------
 1193|      0|                words[i] = ( i < q ? 0 : words[i - q]);
  ------------------
  |  Branch (1193:30): [True: 0, False: 0]
  ------------------
 1194|      0|            k %= word_bits;
 1195|      0|        }
 1196|      2|        if ( k )  // 0 < k < word_bits:
  ------------------
  |  Branch (1196:14): [True: 0, False: 2]
  ------------------
 1197|      0|        {
 1198|      0|            size_type k1 = word_bits - k;
 1199|      0|            word_type mask = (word_type(1) << k) - word_type(1);
 1200|      0|            resize( words.size() + 1 );
 1201|      0|            words = get_words();
 1202|      0|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1202:46): [True: 0, False: 0]
  ------------------
 1203|      0|            {
 1204|      0|                words[i] <<= k;
 1205|      0|                if ( i > 0 )
  ------------------
  |  Branch (1205:22): [True: 0, False: 0]
  ------------------
 1206|      0|                    words[i] |= (words[i-1] >> k1) & mask;
 1207|      0|            }
 1208|      0|        }
 1209|      2|        reduce();
 1210|      2|        return *this;
 1211|      2|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1953|      1|    {
 1954|      1|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1955|      1|                   dHi = d >> word_half_bits, dLo = d & r_mask;
 1956|      1|        qHi = A/(dHi + 1);
 1957|       |        // This initial guess of qHi may be too small.
 1958|      1|        middle = qHi * dLo;
 1959|      1|        left = qHi * dHi;
 1960|      1|        x = B - (middle << word_half_bits);
 1961|      1|        A -= (middle >> word_half_bits) + left + (x > B);
 1962|      1|        B = x;
 1963|      1|        dLo1 = dLo << word_half_bits;
 1964|       |        // Increase qHi if necessary:
 1965|      1|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1965:17): [True: 0, False: 1]
  |  Branch (1965:29): [True: 0, False: 1]
  |  Branch (1965:41): [True: 0, False: 0]
  ------------------
 1966|      0|        {
 1967|      0|            x = B - dLo1;
 1968|      0|            A -= dHi + (x > B);
 1969|      0|            B = x;
 1970|      0|            qHi++;
 1971|      0|        }
 1972|      1|        qLo = ((A << word_half_bits) | (B >> word_half_bits))/(dHi + 1);
 1973|       |        // This initial guess of qLo may be too small.
 1974|      1|        right = qLo * dLo;
 1975|      1|        middle = qLo * dHi;
 1976|      1|        x = B - right;
 1977|      1|        A -= (x > B);
 1978|      1|        B = x;
 1979|      1|        x = B - (middle << word_half_bits);
 1980|      1|            A -= (middle >> word_half_bits) + (x > B);
 1981|      1|        B = x;
 1982|       |        // Increase qLo if necessary:
 1983|      1|        while ( A || B >= d )
  ------------------
  |  Branch (1983:17): [True: 0, False: 1]
  |  Branch (1983:22): [True: 0, False: 1]
  ------------------
 1984|      0|        {
 1985|      0|            x = B - d;
 1986|      0|            A -= (x > B);
 1987|      0|            B = x;
 1988|      0|            qLo++;
 1989|      0|        }
 1990|      1|        return (qHi << word_half_bits) + qLo;
 1991|      1|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1995|      1|    {
 1996|      1|        word_type hi, lo, d, carry = 0;
 1997|      1|        size_type i;
 1998|      2|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1998:22): [True: 1, False: 1]
  ------------------
 1999|      1|        {
 2000|      1|            DDproduct( b[i], q, hi, lo );
 2001|      1|            d = a[i];
 2002|      1|            a[i] -= lo;
 2003|      1|            if ( a[i] > d )
  ------------------
  |  Branch (2003:18): [True: 1, False: 0]
  ------------------
 2004|      1|                carry++;
 2005|      1|            d = a[i + 1];
 2006|      1|            a[i + 1] -= hi + carry;
 2007|      1|            carry = a[i + 1] > d;
 2008|      1|        }
 2009|      1|        if ( carry ) // q was too large
  ------------------
  |  Branch (2009:14): [True: 0, False: 1]
  ------------------
 2010|      0|        {
 2011|      0|            q--;
 2012|      0|            carry = 0;
 2013|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (2013:26): [True: 0, False: 0]
  ------------------
 2014|      0|            {
 2015|      0|                d = a[i] + carry;
 2016|      0|                carry = d < carry;
 2017|      0|                a[i] = d + b[i];
 2018|      0|                if ( a[i] < d )
  ------------------
  |  Branch (2018:22): [True: 0, False: 0]
  ------------------
 2019|      0|                    carry = 1;
 2020|      0|            }
 2021|      0|            a[n] = 0;
 2022|      0|        }
 2023|      1|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1935|      2|    {
 1936|      2|        word_type hiA = A >> word_half_bits, loA = A & r_mask,
 1937|      2|                   hiB = B >> word_half_bits, loB = B & r_mask;
 1938|       |
 1939|      2|        lo = loA * loB;
 1940|      2|        hi = hiA * hiB;
 1941|      2|        word_type mid1 = loA * hiB;
 1942|      2|        word_type mid2 = hiA * loB;
 1943|      2|        word_type old = lo;
 1944|      2|        lo += mid1 << word_half_bits;
 1945|      2|            hi += (lo < old) + (mid1 >> word_half_bits);
 1946|      2|        old = lo;
 1947|      2|        lo += mid2 << word_half_bits;
 1948|      2|            hi += (lo < old) + (mid2 >> word_half_bits);
 1949|      2|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 2055|      1|    {
 2056|      1|        if (secondDone)
  ------------------
  |  Branch (2056:13): [True: 0, False: 1]
  ------------------
 2057|      0|        {
 2058|      0|            rem /= max_word;
 2059|      0|        }
 2060|      1|        if ( x > 0 )
  ------------------
  |  Branch (2060:14): [True: 0, False: 1]
  ------------------
 2061|      0|        {
 2062|      0|            rem >>= x;
 2063|      0|        }
 2064|      1|        else
 2065|      1|        {
 2066|      1|            rem.reduce();
 2067|      1|        }
 2068|      1|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEErSEm:
 1214|      1|    {
 1215|      1|        auto words = get_words();
 1216|      1|        size_type q = k / word_bits;
 1217|      1|        if ( q >= words.size())
  ------------------
  |  Branch (1217:14): [True: 0, False: 1]
  ------------------
 1218|      0|        {
 1219|      0|            resize( 0 );
 1220|      0|            return *this;
 1221|      0|        }
 1222|      1|        if (q > 0)
  ------------------
  |  Branch (1222:13): [True: 0, False: 1]
  ------------------
 1223|      0|        {
 1224|      0|            memmove( words.data(), words.data()+q, size_type((words.size() - q)*sizeof(word_type)) );
 1225|      0|            resize( size_type(words.size() - q) );
 1226|      0|            k %= word_bits;
 1227|      0|            if ( k == 0 )
  ------------------
  |  Branch (1227:18): [True: 0, False: 0]
  ------------------
 1228|      0|            {
 1229|      0|                reduce();
 1230|      0|                return *this;
 1231|      0|            }
 1232|      0|        }
 1233|       |
 1234|      1|        words = get_words();
 1235|      1|        size_type n = size_type(words.size() - 1);
 1236|      1|        ssize_type k1 = word_bits - k;
 1237|      1|        word_type mask = (word_type(1) << k) - 1;
 1238|      2|        for (size_type i = 0; i <= n; i++)
  ------------------
  |  Branch (1238:31): [True: 1, False: 1]
  ------------------
 1239|      1|        {
 1240|      1|            words[i] >>= k;
 1241|      1|            if ( i < n )
  ------------------
  |  Branch (1241:18): [True: 0, False: 1]
  ------------------
 1242|      0|                words[i] |= ((words[i+1] & mask) << k1);
 1243|      1|        }
 1244|      1|        reduce();
 1245|      1|        return *this;
 1246|      1|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEcvT_ImvEEv:
 1343|     21|    {
 1344|     21|        auto words = get_words();
 1345|     21|        Integer x = 0;
 1346|     21|        if (words.size() > 0)
  ------------------
  |  Branch (1346:13): [True: 21, False: 0]
  ------------------
 1347|     21|        {
 1348|     21|            x = static_cast<Integer>(words[0]);
 1349|     21|        }
 1350|       |
 1351|     21|        return is_negative() ? x*(-1) : x;
  ------------------
  |  Branch (1351:16): [True: 0, False: 21]
  ------------------
 1352|     21|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  703|    218|    {
  704|    218|        storage_.destroy();
  705|    218|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  500|    218|    {
  501|    218|        if (is_allocated())
  ------------------
  |  Branch (501:13): [True: 1, False: 217]
  ------------------
  502|      1|        {
  503|      1|            allocated_.destroy(get_allocator());
  504|      1|            allocated_.~allocated_storage();
  505|      1|        }
  506|    217|        else
  507|    217|        {
  508|    217|            inlined_.~inlined_storage();
  509|    217|        }
  510|    218|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  259|      1|        {
  260|      1|            if (data_ != nullptr)
  ------------------
  |  Branch (260:17): [True: 1, False: 0]
  ------------------
  261|      1|            {
  262|      1|                real_allocator_type alloc(a);
  263|      1|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  264|      1|            }
  265|      1|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16append_to_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1427|      1|    {
 1428|      1|        if (is_zero())
  ------------------
  |  Branch (1428:13): [True: 0, False: 1]
  ------------------
 1429|      0|        {
 1430|      0|            buf.push_back('0');
 1431|      0|            return;
 1432|      0|        }
 1433|      1|        if (is_negative())
  ------------------
  |  Branch (1433:13): [True: 1, False: 0]
  ------------------
 1434|      1|        {
 1435|      1|            buf.push_back('-');
 1436|      1|        }
 1437|      1|        std::size_t pos = buf.size();
 1438|      1|        basic_bigint<Allocator> v(*this);
 1439|      1|        auto v_words = v.get_words();
 1440|       |
 1441|      1|        size_type len = (v_words.size() * word_bits / 3) + 2;
 1442|      1|        buf.reserve(len);
 1443|       |
 1444|      1|        if ( v_words.size() == 0 )
  ------------------
  |  Branch (1444:14): [True: 0, False: 1]
  ------------------
 1445|      0|        {
 1446|      0|            buf.push_back('0');
 1447|      0|        }
 1448|      1|        else
 1449|      1|        {
 1450|      1|            word_type r;
 1451|      1|            basic_bigint<Allocator> R(get_allocator());
 1452|      1|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1453|       |
 1454|      1|            do
 1455|      2|            {
 1456|      2|                v.divide( LP10, v, R, true );
 1457|      2|                v_words = v.get_words();
 1458|       |
 1459|      2|                auto R_words = R.get_words();
 1460|      2|                r = (R_words.size() ? R_words[0] : 0);
  ------------------
  |  Branch (1460:22): [True: 2, False: 0]
  ------------------
 1461|     21|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1461:38): [True: 20, False: 1]
  ------------------
 1462|     20|                {
 1463|     20|                    buf.push_back(char(r % 10u + '0'));
 1464|     20|                    r /= 10u;
 1465|     20|                    if ( r + v_words.size() == 0 )
  ------------------
  |  Branch (1465:26): [True: 1, False: 19]
  ------------------
 1466|      1|                        break;
 1467|     20|                }
 1468|      2|            } 
 1469|      2|            while ( v_words.size() > 0);
  ------------------
  |  Branch (1469:21): [True: 1, False: 1]
  ------------------
 1470|       |
 1471|      1|            std::reverse(buf.begin()+pos,buf.end());
 1472|      1|        }
 1473|      1|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7is_zeroEv:
 2192|      7|    bool is_zero() const {
 2193|      7|        return get_words().size() == 0;
 2194|      7|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  633|      5|        : storage_(alloc)
  634|      5|    {
  635|      5|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2EOS4_:
  676|      6|        : storage_(std::move(other.storage_))
  677|      6|    {
  678|      6|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2EOS5_:
  345|      6|        : word_allocator_type(other.get_allocator())
  346|      6|    {
  347|      6|        if (!other.is_allocated())
  ------------------
  |  Branch (347:13): [True: 6, False: 0]
  ------------------
  348|      6|        {
  349|      6|            ::new (&inlined_) inlined_storage(other.inlined_);
  350|      6|        }
  351|      0|        else
  352|      0|        {
  353|      0|            ::new (&allocated_) allocated_storage(std::move(other.allocated_));
  354|      0|        }
  355|      6|    }
_ZN8jsoncons16append_to_stringIcNSt3__19allocatorIcEEEEvRKNS_12basic_bigintINS2_ImEEEERNS1_12basic_stringIT_NS1_11char_traitsISA_EET0_EE:
 2150|      4|    {
 2151|      4|        if (value.is_zero())
  ------------------
  |  Branch (2151:13): [True: 0, False: 4]
  ------------------
 2152|      0|        {
 2153|      0|            buf.push_back('0');
 2154|      0|            return;
 2155|      0|        }
 2156|      4|        if (value.is_negative())
  ------------------
  |  Branch (2156:13): [True: 0, False: 4]
  ------------------
 2157|      0|        {
 2158|      0|            buf.push_back('-');
 2159|      0|        }
 2160|       |
 2161|      4|        size_type start = buf.size();
 2162|      4|        basic_bigint v(value);
 2163|      4|        auto v_words = v.get_words();
 2164|       |
 2165|      4|        size_type len = (v_words.size() * word_bits / 3) + 2;
 2166|      4|        buf.reserve(start+len);
 2167|       |
 2168|      4|        word_type r;
 2169|      4|        basic_bigint R(value.get_allocator());
 2170|      4|        basic_bigint LP10(max_unsigned_power_10, value.get_allocator());
 2171|       |
 2172|      4|        do
 2173|      5|        {
 2174|      5|            v.divide(LP10, v, R, true);
 2175|      5|            v_words = v.get_words();
 2176|       |
 2177|      5|            auto R_words = R.get_words();
 2178|      5|            r = (R_words.size() ? R_words[0] : 0);
  ------------------
  |  Branch (2178:18): [True: 5, False: 0]
  ------------------
 2179|     48|            for (size_type j = 0; j < imax_unsigned_power_10; j++)
  ------------------
  |  Branch (2179:35): [True: 47, False: 1]
  ------------------
 2180|     47|            {
 2181|     47|                buf.push_back(CharT(r % 10u + '0'));
 2182|     47|                r /= 10u;
 2183|     47|                if (r + v_words.size() == 0)
  ------------------
  |  Branch (2183:21): [True: 4, False: 43]
  ------------------
 2184|      4|                    break;
 2185|     47|            }
 2186|      5|        } while (v_words.size() > 0);
  ------------------
  |  Branch (2186:18): [True: 1, False: 4]
  ------------------
 2187|       |
 2188|      4|        std::reverse(buf.begin()+start, buf.end());
 2189|       |        
 2190|      4|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE18trailing_zero_bitsEv:
 1749|      2|    {
 1750|       |        // Assumes words contains the absolute magnitude,
 1751|       |        // even when BigInt is negative.
 1752|       |
 1753|      2|        auto words = get_words();
 1754|      2|        for (size_t i = 0; i < words.size(); ++i) {
  ------------------
  |  Branch (1754:28): [True: 2, False: 0]
  ------------------
 1755|      2|            const uint64_t w = words[i];
 1756|       |
 1757|      2|            if (w != 0) {
  ------------------
  |  Branch (1757:17): [True: 2, False: 0]
  ------------------
 1758|      2|                return static_cast<uint128>(i) * 64
 1759|      2|                     + jsoncons::countr_zero(w);
 1760|      2|            }
 1761|      2|        }
 1762|       |
 1763|       |        // Zero has no finite number of trailing zero bits.
 1764|      0|        return (jsoncons::ext_traits::integer_limits<uint128>::max)();
 1765|      2|    }
_ZN8jsoncons4powbINSt3__19allocatorImEEEENS_12basic_bigintIT_EES6_m:
 2332|      1|{
 2333|      1|    basic_bigint<Allocator> result{1};
 2334|       |
 2335|      5|    while ( n )
  ------------------
  |  Branch (2335:13): [True: 4, False: 1]
  ------------------
 2336|      4|    {
 2337|      4|        if ( n & 1 )
  ------------------
  |  Branch (2337:14): [True: 4, False: 0]
  ------------------
 2338|      4|        {
 2339|      4|            result *= base;
 2340|      4|        }
 2341|      4|        n >>= 1;
 2342|       |
 2343|      4|        if (n)
  ------------------
  |  Branch (2343:13): [True: 3, False: 1]
  ------------------
 2344|      3|        {
 2345|      3|            base *= base;
 2346|      3|        }
 2347|      4|    }
 2348|       |
 2349|      1|    return result;
 2350|      1|}
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLES4_:
 1091|      8|    {
 1092|      8|        auto words = get_words();
 1093|      8|        auto y_words = y.get_words();
 1094|       |
 1095|      8|        if (words.size() == 0 || y_words.size() == 0)
  ------------------
  |  Branch (1095:13): [True: 0, False: 8]
  |  Branch (1095:34): [True: 0, False: 8]
  ------------------
 1096|      0|        {
 1097|      0|            return *this = 0;
 1098|      0|        }
 1099|       |
 1100|      8|        bool difSigns = is_negative() != y.is_negative();
 1101|      8|        const size_type y_size = y_words.size();
 1102|      8|        if ( words.size() + y_size == 2 ) // size() = y.size() = 1
  ------------------
  |  Branch (1102:14): [True: 8, False: 0]
  ------------------
 1103|      8|        {
 1104|      8|            word_type a = words[0], b = y_words[0];
 1105|      8|            words[0] = a * b;
 1106|      8|            if ( words[0] / a != b )
  ------------------
  |  Branch (1106:18): [True: 1, False: 7]
  ------------------
 1107|      1|            {
 1108|      1|                resize(2);
 1109|      1|                words = get_words();
 1110|      1|                DDproduct( a, b, words[1], words[0] );
 1111|      1|            }
 1112|      8|            set_negative(difSigns);
 1113|      8|            return *this;
 1114|      8|        }
 1115|       |
 1116|      0|        if ( words.size() == 1 )  //  && y.size() > 1
  ------------------
  |  Branch (1116:14): [True: 0, False: 0]
  ------------------
 1117|      0|        {
 1118|      0|            word_type digit = words[0];
 1119|      0|            *this = y;
 1120|      0|            *this *= digit;
 1121|      0|        }
 1122|      0|        else
 1123|      0|        {
 1124|      0|            if (y_words.size() == 1)
  ------------------
  |  Branch (1124:17): [True: 0, False: 0]
  ------------------
 1125|      0|            {
 1126|      0|                *this *= y_words[0];
 1127|      0|            }
 1128|      0|            else
 1129|      0|            {
 1130|      0|                size_type lenProd = words.size() + y_words.size();
 1131|      0|                word_type sumHi = 0, sumLo, hi, lo,
 1132|      0|                sumLo_old, sumHi_old, carry=0;
 1133|      0|                basic_bigint<Allocator> x = *this;
 1134|      0|                auto x_words = x.get_words();
 1135|      0|                resize( lenProd ); // Give *this length lenProd
 1136|      0|                words = get_words();
 1137|       |
 1138|      0|                for (size_type i = 0; i < lenProd; i++ )
  ------------------
  |  Branch (1138:39): [True: 0, False: 0]
  ------------------
 1139|      0|                {
 1140|      0|                    sumLo = sumHi;
 1141|      0|                    sumHi = carry;
 1142|      0|                    carry = 0;
 1143|      0|                    for (size_type jA=0; jA < x_words.size(); jA++)
  ------------------
  |  Branch (1143:42): [True: 0, False: 0]
  ------------------
 1144|      0|                    {
 1145|      0|                        if (JSONCONS_LIKELY(i >= jA))
  ------------------
  |  |   78|      0|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1146|      0|                        {
 1147|      0|                            size_type jB = i - jA;
 1148|      0|                            if (jB < y_words.size())
  ------------------
  |  Branch (1148:33): [True: 0, False: 0]
  ------------------
 1149|      0|                            {
 1150|      0|                                DDproduct( x_words[jA], y_words[jB], hi, lo );
 1151|      0|                                sumLo_old = sumLo;
 1152|      0|                                sumHi_old = sumHi;
 1153|      0|                                sumLo += lo;
 1154|      0|                                if ( sumLo < sumLo_old )
  ------------------
  |  Branch (1154:38): [True: 0, False: 0]
  ------------------
 1155|      0|                                    sumHi++;
 1156|      0|                                sumHi += hi;
 1157|      0|                                carry += (sumHi < sumHi_old);
 1158|      0|                            }
 1159|      0|                        }
 1160|      0|                    }
 1161|      0|                    words[i] = sumLo;
 1162|      0|                }
 1163|      0|            }
 1164|      0|        }
 1165|      0|       reduce();
 1166|      0|       set_negative(difSigns);
 1167|      0|       return *this;
 1168|      8|    }

_ZN8jsoncons16to_bignum_resultIcEC2EPKcNS_11bignum_errcE:
  100|      2|        : ptr(ptr_), ec(ec_)
  101|      2|    {
  102|      2|    }

_ZN8jsoncons6binary13native_to_bigItNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6nonstd6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|      1|    {
  128|      1|        T val2 = byte_swap(val);
  129|      1|        uint8_t buf[sizeof(T)];
  130|      1|        std::memcpy(buf, &val2, sizeof(T));
  131|      1|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 2, False: 1]
  ------------------
  132|      2|        {
  133|      2|            *d_first++ = item;
  134|      2|        }
  135|      1|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|      4|    {
   29|      4|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|      4|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  478|      4|#      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|      4|    }
_ZN8jsoncons6binary13native_to_bigIjNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6nonstd6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|      1|    {
  128|      1|        T val2 = byte_swap(val);
  129|      1|        uint8_t buf[sizeof(T)];
  130|      1|        std::memcpy(buf, &val2, sizeof(T));
  131|      1|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 4, False: 1]
  ------------------
  132|      4|        {
  133|      4|            *d_first++ = item;
  134|      4|        }
  135|      1|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|      2|    {
   40|      2|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|      2|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  474|      2|#  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|      2|    }
_ZN8jsoncons6binary13native_to_bigImNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6nonstd6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|      1|    {
  128|      1|        T val2 = byte_swap(val);
  129|      1|        uint8_t buf[sizeof(T)];
  130|      1|        std::memcpy(buf, &val2, sizeof(T));
  131|      1|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 8, False: 1]
  ------------------
  132|      8|        {
  133|      8|            *d_first++ = item;
  134|      8|        }
  135|      1|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|     11|    {
   52|     11|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|     11|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  473|     11|#  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|     11|    }
_ZN8jsoncons6binary13native_to_bigIhNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6nonstd6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|      2|    {
  128|      2|        T val2 = byte_swap(val);
  129|      2|        uint8_t buf[sizeof(T)];
  130|      2|        std::memcpy(buf, &val2, sizeof(T));
  131|      2|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 2, False: 2]
  ------------------
  132|      2|        {
  133|      2|            *d_first++ = item;
  134|      2|        }
  135|      2|    }
_ZN8jsoncons6binary9byte_swapIhEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|      2|    {
   22|      2|        return val;
   23|      2|    }
_ZN8jsoncons6binary13big_to_nativeItNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|      3|    {
  183|      3|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 3]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|      3|        T val;
  188|      3|        std::memcpy(&val,first,sizeof(T));
  189|      3|        return byte_swap(val);
  190|      3|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|      1|    {
  183|      1|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 1]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|      1|        T val;
  188|      1|        std::memcpy(&val,first,sizeof(T));
  189|      1|        return byte_swap(val);
  190|      1|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|     10|    {
  183|     10|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 10]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|     10|        T val;
  188|     10|        std::memcpy(&val,first,sizeof(T));
  189|     10|        return byte_swap(val);
  190|     10|    }

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

_ZN8jsoncons10ext_traits14integer_limitsIlvE3maxEv:
   98|      5|        {
   99|      5|            return (std::numeric_limits<T>::max)();
  100|      5|        }

_ZN8jsoncons16to_number_resultIcEC2EPKcNSt3__14errcE:
  164|     12|        : ptr(ptr_), ec(ec_)
  165|     12|    {
  166|     12|    }
_ZN8jsoncons14dec_to_integerIlcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  350|      6|{
  351|      6|    if (length == 0)
  ------------------
  |  Branch (351:9): [True: 0, False: 6]
  ------------------
  352|      0|    {
  353|      0|        return to_number_result<CharT>(s, std::errc::invalid_argument);
  354|      0|    }
  355|       |
  356|      6|    bool sign = *s == '-';
  357|      6|    s += sign;
  358|      6|    length -= sign;
  359|       |
  360|      6|    using U = typename ext_traits::make_unsigned<T>::type;
  361|       |
  362|      6|    U num;
  363|      6|    auto ru = dec_to_integer(s, length, num);
  364|      6|    if (ru.ec != std::errc{})
  ------------------
  |  Branch (364:9): [True: 1, False: 5]
  ------------------
  365|      1|    {
  366|      1|        return to_number_result<CharT>(ru.ptr, ru.ec);
  367|      1|    }
  368|      5|    if (sign)
  ------------------
  |  Branch (368:9): [True: 0, False: 5]
  ------------------
  369|      0|    {
  370|      0|        if (num > static_cast<U>(-((ext_traits::integer_limits<T>::lowest)()+T(1))) + U(1))
  ------------------
  |  Branch (370:13): [True: 0, False: 0]
  ------------------
  371|      0|        {
  372|      0|            return to_number_result<CharT>(ru.ptr, std::errc::result_out_of_range);
  373|      0|        }
  374|      0|        else
  375|      0|        {
  376|      0|            value = static_cast<T>(U(0) - num);
  377|      0|            return to_number_result<CharT>(ru.ptr, std::errc{});
  378|      0|        }
  379|      0|    }
  380|      5|    else
  381|      5|    {
  382|      5|        if (num > static_cast<U>((ext_traits::integer_limits<T>::max)()))
  ------------------
  |  Branch (382:13): [True: 0, False: 5]
  ------------------
  383|      0|        {
  384|      0|            return to_number_result<CharT>(ru.ptr, std::errc::result_out_of_range);
  385|      0|        }
  386|      5|        else
  387|      5|        {
  388|      5|            value = static_cast<T>(num);
  389|      5|            return to_number_result<CharT>(ru.ptr, std::errc{});
  390|      5|        }
  391|      5|    }
  392|      5|}
_ZN8jsoncons14dec_to_integerImcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedntsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  288|      6|{
  289|      6|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|      6|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6]
  |  |  ------------------
  ------------------
  290|      0|    {
  291|      0|        return to_number_result<CharT>(s, std::errc::invalid_argument);
  292|      0|    }
  293|       |
  294|      6|    static constexpr T max_value = (ext_traits::integer_limits<T>::max)();
  295|      6|    static constexpr T max_value_div_10 = max_value / 10;
  296|       |
  297|      6|    T num = 0;
  298|      6|    const CharT* cur = s;
  299|      6|    const CharT* last = s + length;
  300|      6|    static constexpr std::size_t digits10 = static_cast<std::size_t>(ext_traits::integer_limits<T>::digits10);
  301|      6|    const std::size_t n = (std::min)(digits10, length);
  302|      6|    const CharT* stop = s + n;
  303|       |     
  304|     44|    while (cur < stop)
  ------------------
  |  Branch (304:12): [True: 38, False: 6]
  ------------------
  305|     38|    {
  306|     38|        uint8_t d;
  307|     38|        if (JSONCONS_LIKELY((d = static_cast<uint8_t>(*cur - '0')) <= 9) )
  ------------------
  |  |   78|     38|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 38, False: 0]
  |  |  ------------------
  ------------------
  308|     38|        {
  309|     38|            num = static_cast<T>(d) + num*10;
  310|     38|        }
  311|      0|        else
  312|      0|        {
  313|      0|            return to_number_result<CharT>(cur, std::errc::invalid_argument);
  314|      0|        }
  315|     38|        ++cur;
  316|     38|    }
  317|      6|    if (cur == last)
  ------------------
  |  Branch (317:9): [True: 5, False: 1]
  ------------------
  318|      5|    {
  319|      5|        value = num;
  320|      5|        return to_number_result<CharT>(cur, std::errc{});
  321|      5|    }
  322|      1|    if (cur+1 != last)
  ------------------
  |  Branch (322:9): [True: 1, False: 0]
  ------------------
  323|      1|    {
  324|      1|        return to_number_result<CharT>(cur, std::errc::result_out_of_range);
  325|      1|    }
  326|      0|    if (is_char_digit(*cur))
  ------------------
  |  Branch (326:9): [True: 0, False: 0]
  ------------------
  327|      0|    {
  328|      0|        if (num > max_value_div_10)
  ------------------
  |  Branch (328:13): [True: 0, False: 0]
  ------------------
  329|      0|        {
  330|      0|            return to_number_result<CharT>(cur, std::errc::result_out_of_range);
  331|      0|        }
  332|      0|        uint8_t d = static_cast<uint8_t>(*cur - '0');
  333|      0|        num = num*10;
  334|      0|        if (num > max_value - d)
  ------------------
  |  Branch (334:13): [True: 0, False: 0]
  ------------------
  335|      0|        {
  336|      0|            return to_number_result<CharT>(s, std::errc::result_out_of_range);
  337|      0|        }
  338|      0|        num += d;
  339|      0|        ++cur;
  340|      0|        value = num;
  341|      0|        return to_number_result<CharT>(cur, std::errc{});
  342|      0|    }
  343|       |    
  344|      0|    return to_number_result<CharT>(cur, std::errc::invalid_argument);
  345|      0|}
_ZNK8jsoncons16to_number_resultIcEcvbEv:
  173|      6|    {
  174|      6|        return ec == std::errc{};
  175|      6|    }
_ZNK8jsoncons16to_number_resultIcE10error_codeEv:
  177|      1|    {
  178|      1|        return make_error_code(ec);
  179|      1|    }

_ZN8jsoncons16append_to_stringImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  1.04M|{
   43|  1.04M|    using char_type = typename Result::value_type;
   44|       |
   45|  1.04M|    char_type buf[255];
   46|  1.04M|    char_type *p = buf;
   47|  1.04M|    const char_type* last = buf+255;
   48|       |
   49|  1.04M|    bool is_negative = value < 0;
   50|       |
   51|  1.04M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 1.04M]
  ------------------
   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|  1.04M|    else
   60|  1.04M|    {
   61|       |
   62|  1.04M|        do
   63|  1.04M|        {
   64|  1.04M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  1.04M|        }
   66|  1.04M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 1, False: 1.04M]
  |  Branch (66:33): [True: 1, False: 0]
  ------------------
   67|  1.04M|    }
   68|  1.04M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   67|  1.04M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 1.04M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  1.04M|    std::size_t count = (p - buf);
   71|  1.04M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 1.04M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  2.09M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 1.04M, False: 1.04M]
  ------------------
   77|  1.04M|    {
   78|  1.04M|        result.push_back(*p);
   79|  1.04M|    }
   80|       |
   81|  1.04M|    return count;
   82|  1.04M|}
_ZN8jsoncons16append_to_stringInNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|      2|{
   43|      2|    using char_type = typename Result::value_type;
   44|       |
   45|      2|    char_type buf[255];
   46|      2|    char_type *p = buf;
   47|      2|    const char_type* last = buf+255;
   48|       |
   49|      2|    bool is_negative = value < 0;
   50|       |
   51|      2|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 2]
  ------------------
   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|      2|    else
   60|      2|    {
   61|       |
   62|      2|        do
   63|      2|        {
   64|      2|            *p++ = static_cast<char_type>(48 + value % 10);
   65|      2|        }
   66|      2|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 0, False: 2]
  |  Branch (66:33): [True: 0, False: 0]
  ------------------
   67|      2|    }
   68|      2|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   67|      2|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 2]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|      2|    std::size_t count = (p - buf);
   71|      2|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 2]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|      4|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 2, False: 2]
  ------------------
   77|      2|    {
   78|      2|        result.push_back(*p);
   79|      2|    }
   80|       |
   81|      2|    return count;
   82|      2|}

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|   222k|    {
 1148|   222k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|   222k|        const uint8_t* end = it + length;
 1150|       |
 1151|   222k|        unicode_errc  result{};
 1152|  1.78M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 1.55M, False: 222k]
  ------------------
 1153|  1.55M|        {
 1154|  1.55M|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 0, False: 1.55M]
  ------------------
 1155|      0|            {
 1156|      0|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  342|      0|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (342:32): [True: 0, False: 0]
  |  |  |  Branch (342:34): [True: 0, False: 0]
  |  |  |  Branch (342:36): [True: 0, False: 0]
  |  |  |  Branch (342:38): [True: 0, False: 0]
  |  |  |  Branch (342:40): [True: 0, False: 0]
  |  |  |  Branch (342:42): [True: 0, False: 0]
  |  |  |  Branch (342:44): [True: 0, False: 0]
  |  |  |  Branch (342:46): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1157|      0|                continue;
 1158|      0|            }
 1159|  1.55M|    non_ascii:
 1160|  1.55M|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  1.55M|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 0, False: 1.55M]
  ------------------
 1162|      0|            {
 1163|      0|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|      0|            }
 1165|  1.55M|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 0, False: 1.55M]
  ------------------
 1166|      0|            {
 1167|      0|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|      0|            }
 1169|  1.55M|            it += len;
 1170|  1.55M|        }
 1171|   222k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|   222k|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  1.55M|    {
  306|  1.55M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  1.55M|        const uint8_t* end = it+length;
  308|       |
  309|  1.55M|        uint8_t byte;
  310|  1.55M|        switch (length) {
  311|      0|        default:
  ------------------
  |  Branch (311:9): [True: 0, False: 1.55M]
  ------------------
  312|      0|            return unicode_errc::over_long_utf8_sequence;
  313|      0|        case 4:
  ------------------
  |  Branch (313:9): [True: 0, False: 1.55M]
  ------------------
  314|      0|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 0, False: 0]
  ------------------
  315|      0|                return unicode_errc::bad_continuation_byte;
  316|      0|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|      0|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|      0|        case 3:
  ------------------
  |  Branch (317:9): [True: 0, False: 1.55M]
  ------------------
  318|      0|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 0, False: 0]
  ------------------
  319|      0|                return unicode_errc::bad_continuation_byte;
  320|      0|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|      0|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|      0|        case 2:
  ------------------
  |  Branch (321:9): [True: 0, False: 1.55M]
  ------------------
  322|      0|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 0, False: 0]
  ------------------
  323|      0|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|      0|            switch (*it) 
  326|      0|            {
  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: 0]
  |  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: 0]
  |  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: 0]
  |  Branch (330:32): [True: 0, False: 0]
  ------------------
  331|      0|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 0, False: 0]
  |  Branch (331:32): [True: 0, False: 0]
  ------------------
  332|      0|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 0, False: 0]
  |  Branch (332:32): [True: 0, False: 0]
  ------------------
  333|      0|            }
  334|       |
  335|      0|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|      0|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  1.55M|        case 1:
  ------------------
  |  Branch (336:9): [True: 1.55M, False: 0]
  ------------------
  337|  1.55M|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 0, False: 1.55M]
  |  Branch (337:32): [True: 0, False: 0]
  ------------------
  338|      0|                return unicode_errc::source_illegal;
  339|  1.55M|            break;
  340|  1.55M|        }
  341|  1.55M|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 0, False: 1.55M]
  ------------------
  342|      0|            return unicode_errc::source_illegal;
  343|       |
  344|  1.55M|        return unicode_errc();
  345|  1.55M|    }

_ZN8jsoncons4cbor6detail24min_length_for_stringrefEm:
   75|   191k|{
   76|   191k|    std::size_t n;
   77|   191k|    if (index <= 23)
  ------------------
  |  Branch (77:9): [True: 48, False: 191k]
  ------------------
   78|     48|    {
   79|     48|        n = 3;
   80|     48|    }
   81|   191k|    else if (index <= 255)
  ------------------
  |  Branch (81:14): [True: 464, False: 191k]
  ------------------
   82|    464|    {
   83|    464|        n = 4;
   84|    464|    }
   85|   191k|    else if (index <= 65535)
  ------------------
  |  Branch (85:14): [True: 130k, False: 60.8k]
  ------------------
   86|   130k|    {
   87|   130k|        n = 5;
   88|   130k|    }
   89|  60.8k|    else if (index <= 4294967295)
  ------------------
  |  Branch (89:14): [True: 60.8k, False: 0]
  ------------------
   90|  60.8k|    {
   91|  60.8k|        n = 7;
   92|  60.8k|    }
   93|      0|    else 
   94|      0|    {
   95|      0|        n = 11;
   96|      0|    }
   97|   191k|    return n;
   98|   191k|}
_ZN8jsoncons4cbor14get_major_typeEh:
   40|  6.02M|{
   41|  6.02M|    static constexpr uint8_t major_type_shift = 0x05;
   42|  6.02M|    uint8_t value = initial_byte >> major_type_shift;
   43|  6.02M|    return static_cast<jsoncons::cbor::cbor_major_type>(value);
   44|  6.02M|}
_ZN8jsoncons4cbor19get_additional_infoEh:
   48|  3.57M|{
   49|  3.57M|    static constexpr uint8_t additional_information_mask = (1U << 5) - 1;
   50|  3.57M|    uint8_t value = initial_byte & additional_information_mask;
   51|  3.57M|    return value;
   52|  3.57M|}

_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEEC2EOS8_RKS9_:
  128|     15|       : basic_cbor_encoder(std::forward<Sink>(sink), cbor_encode_options(), alloc)
  129|     15|    {
  130|     15|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEEC2EOS8_RKNS0_19cbor_encode_optionsERKS9_:
  134|     15|       : sink_(std::forward<Sink>(sink)), 
  135|     15|         max_nesting_depth_(static_cast<std::size_t>(options.max_nesting_depth())), 
  136|     15|         pack_strings_(options.pack_strings()),
  137|     15|         use_typed_arrays_(options.use_typed_arrays()),
  138|     15|         alloc_(alloc),
  139|     15|         stack_(alloc),
  140|     15|         stringref_map_(alloc),
  141|     15|         bytestringref_map_(alloc)
  142|     15|    {
  143|     15|        if (options.pack_strings())
  ------------------
  |  Branch (143:13): [True: 0, False: 15]
  ------------------
  144|      0|        {
  145|      0|            write_tag(256);
  146|      0|        }
  147|     15|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE9write_tagEm:
 1101|      7|    {
 1102|      7|        write_type_and_length(0xc0, value);
 1103|      7|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE21write_type_and_lengthEhm:
  433|  1.31M|    {
  434|  1.31M|        if (length <= 0x17)
  ------------------
  |  Branch (434:13): [True: 1.31M, False: 5]
  ------------------
  435|  1.31M|        {
  436|  1.31M|            sink_.push_back(static_cast<uint8_t>(major_type + length));
  437|  1.31M|        }
  438|      5|        else if (length <= 0xff)
  ------------------
  |  Branch (438:18): [True: 2, False: 3]
  ------------------
  439|      2|        {
  440|      2|            sink_.push_back(static_cast<uint8_t>(major_type + 0x18));
  441|      2|            sink_.push_back(static_cast<uint8_t>(length));
  442|      2|        }
  443|      3|        else if (length <= 0xffff)
  ------------------
  |  Branch (443:18): [True: 1, False: 2]
  ------------------
  444|      1|        {
  445|      1|            sink_.push_back(static_cast<uint8_t>(major_type + 0x19));
  446|      1|            binary::native_to_big(static_cast<uint16_t>(length),
  447|      1|                                            std::back_inserter(sink_));
  448|      1|        }
  449|      2|        else if (length <= 0xffffffff)
  ------------------
  |  Branch (449:18): [True: 1, False: 1]
  ------------------
  450|      1|        {
  451|      1|            sink_.push_back(static_cast<uint8_t>(major_type + 0x1a));
  452|      1|            binary::native_to_big(static_cast<uint32_t>(length),
  453|      1|                                            std::back_inserter(sink_));
  454|      1|        }
  455|      1|        else
  456|      1|        {
  457|      1|            sink_.push_back(static_cast<uint8_t>(major_type + 0x1b));
  458|      1|            binary::native_to_big(static_cast<uint64_t>(length),
  459|      1|                                            std::back_inserter(sink_));
  460|      1|        }
  461|  1.31M|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  339|     11|    {
  340|     11|        if (JSONCONS_UNLIKELY(stack_.size() >= max_nesting_depth_))
  ------------------
  |  |   79|     11|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 11]
  |  |  ------------------
  ------------------
  341|      0|        {
  342|      0|            ec = cbor_errc::max_nesting_depth_exceeded;
  343|      0|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  344|      0|        } 
  345|     11|        stack_.emplace_back(container_type::array, length);
  346|     11|        write_type_and_length(0x80, length);
  347|     11|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     11|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|     11|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_itemC2ENS0_14container_typeEm:
   74|     48|           : type_(type), length_(length)
   75|     48|        {
   76|     48|        }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE15visit_end_arrayERKNS_11ser_contextERNS3_10error_codeE:
  351|      9|    {
  352|      9|        if (JSONCONS_UNLIKELY(stack_.empty() || !stack_.back().is_array()))
  ------------------
  |  |   79|     18|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9]
  |  |  |  Branch (79:50): [True: 0, False: 9]
  |  |  |  Branch (79:50): [True: 0, False: 9]
  |  |  ------------------
  ------------------
  353|      0|        {
  354|      0|            ec = cbor_errc::unmatched_end_array;
  355|      0|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  356|      0|        }
  357|       |
  358|      9|        if (stack_.back().is_indefinite_length())
  ------------------
  |  Branch (358:13): [True: 0, False: 9]
  ------------------
  359|      0|        {
  360|      0|            sink_.push_back(0xff);
  361|      0|        }
  362|      9|        else
  363|      9|        {
  364|      9|            if (stack_.back().count() < stack_.back().length())
  ------------------
  |  Branch (364:17): [True: 0, False: 9]
  ------------------
  365|      0|            {
  366|      0|                ec = cbor_errc::too_few_items;
  367|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|      0|            }
  369|      9|            if (stack_.back().count() > stack_.back().length())
  ------------------
  |  Branch (369:17): [True: 0, False: 9]
  ------------------
  370|      0|            {
  371|      0|                ec = cbor_errc::too_many_items;
  372|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  373|      0|            }
  374|      9|        }
  375|       |
  376|      9|        stack_.pop_back();
  377|      9|        end_value();
  378|       |
  379|      9|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      9|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  380|      9|    }
_ZNK8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item8is_arrayEv:
   96|      9|        {
   97|      9|            return type_ == container_type::array || type_ == container_type::indefinite_length_array;
  ------------------
  |  Branch (97:20): [True: 9, False: 0]
  |  Branch (97:54): [True: 0, False: 0]
  ------------------
   98|      9|        }
_ZNK8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item20is_indefinite_lengthEv:
  101|     40|        {
  102|     40|            return type_ == container_type::indefinite_length_array || type_ == container_type::indefinite_length_object;
  ------------------
  |  Branch (102:20): [True: 0, False: 40]
  |  Branch (102:72): [True: 0, False: 40]
  ------------------
  103|     40|        }
_ZNK8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item5countEv:
   86|     80|        {
   87|     80|            return is_object() ? index_/2 : index_;
  ------------------
  |  Branch (87:20): [True: 62, False: 18]
  ------------------
   88|     80|        }
_ZNK8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item9is_objectEv:
   91|    111|        {
   92|    111|            return type_ == container_type::object || type_ == container_type::indefinite_length_object;
  ------------------
  |  Branch (92:20): [True: 93, False: 18]
  |  Branch (92:55): [True: 0, False: 18]
  ------------------
   93|    111|        }
_ZNK8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item6lengthEv:
   81|     80|        {
   82|     80|            return length_;
   83|     80|        }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE9end_valueEv:
 1618|  1.31M|    {
 1619|  1.31M|        if (!stack_.empty())
  ------------------
  |  Branch (1619:13): [True: 1.31M, False: 5]
  ------------------
 1620|  1.31M|        {
 1621|  1.31M|            ++stack_.back().index_;
 1622|  1.31M|        }
 1623|  1.31M|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
 1082|  1.20M|    {
 1083|  1.20M|        switch (tag)
 1084|  1.20M|        {
 1085|      0|            case semantic_tag::epoch_milli:
  ------------------
  |  Branch (1085:13): [True: 0, False: 1.20M]
  ------------------
 1086|      0|            case semantic_tag::epoch_nano:
  ------------------
  |  Branch (1086:13): [True: 0, False: 1.20M]
  ------------------
 1087|      0|                return visit_double(static_cast<double>(value), tag, context, ec);
 1088|      0|            case semantic_tag::epoch_second:
  ------------------
  |  Branch (1088:13): [True: 0, False: 1.20M]
  ------------------
 1089|      0|                write_tag(1);
 1090|      0|                break;
 1091|  1.20M|            default:
  ------------------
  |  Branch (1091:13): [True: 1.20M, False: 0]
  ------------------
 1092|  1.20M|                break;
 1093|  1.20M|        }
 1094|       |
 1095|  1.20M|        write_uint64_value(value);
 1096|  1.20M|        end_value();
 1097|  1.20M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.20M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1098|  1.20M|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE18write_uint64_valueEm:
 1106|  1.20M|    {
 1107|  1.20M|        write_type_and_length(0x00, value);
 1108|  1.20M|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
 1061|     10|    {
 1062|     10|        switch (tag)
 1063|     10|        {
 1064|      0|            case semantic_tag::epoch_milli:
  ------------------
  |  Branch (1064:13): [True: 0, False: 10]
  ------------------
 1065|      0|            case semantic_tag::epoch_nano:
  ------------------
  |  Branch (1065:13): [True: 0, False: 10]
  ------------------
 1066|      0|                return visit_double(static_cast<double>(value), tag, context, ec);
 1067|      0|            case semantic_tag::epoch_second:
  ------------------
  |  Branch (1067:13): [True: 0, False: 10]
  ------------------
 1068|      0|                write_tag(1);
 1069|      0|                break;
 1070|     10|            default:
  ------------------
  |  Branch (1070:13): [True: 10, False: 0]
  ------------------
 1071|     10|                break;
 1072|     10|        }
 1073|     10|        write_int64_value(value);
 1074|     10|        end_value();
 1075|     10|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     10|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1076|     10|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17write_int64_valueEl:
 1111|     10|    {
 1112|     10|        if (value >= 0)
  ------------------
  |  Branch (1112:13): [True: 6, False: 4]
  ------------------
 1113|      6|        {
 1114|      6|            write_type_and_length(0x00, static_cast<uint64_t>(value));
 1115|      6|        }
 1116|      4|        else
 1117|      4|        {
 1118|      4|            write_type_and_length(0x20, static_cast<uint64_t>(-1 - value));
 1119|      4|        }
 1120|     10|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE11visit_flushEv:
  263|      5|    {
  264|      5|        sink_.flush();
  265|      5|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  281|     34|    {
  282|     34|        if (JSONCONS_UNLIKELY(stack_.size() >= max_nesting_depth_))
  ------------------
  |  |   79|     34|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 34]
  |  |  ------------------
  ------------------
  283|      0|        {
  284|      0|            ec = cbor_errc::max_nesting_depth_exceeded;
  285|      0|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  286|      0|        } 
  287|     34|        stack_.emplace_back(container_type::object, length);
  288|       |
  289|     34|        write_type_and_length(0xa0, length);
  290|       |
  291|     34|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     34|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  292|     34|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE16visit_end_objectERKNS_11ser_contextERNS3_10error_codeE:
  295|     31|    {
  296|     31|        if (JSONCONS_UNLIKELY(stack_.empty() || !stack_.back().is_object()))
  ------------------
  |  |   79|     62|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 31]
  |  |  |  Branch (79:50): [True: 0, False: 31]
  |  |  |  Branch (79:50): [True: 0, False: 31]
  |  |  ------------------
  ------------------
  297|      0|        {
  298|      0|            ec = cbor_errc::unmatched_end_object;
  299|      0|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  300|      0|        }
  301|       |
  302|     31|        if (stack_.back().is_indefinite_length())
  ------------------
  |  Branch (302:13): [True: 0, False: 31]
  ------------------
  303|      0|        {
  304|      0|            sink_.push_back(0xff);
  305|      0|        }
  306|     31|        else
  307|     31|        {
  308|     31|            if (stack_.back().count() < stack_.back().length())
  ------------------
  |  Branch (308:17): [True: 0, False: 31]
  ------------------
  309|      0|            {
  310|      0|                ec = cbor_errc::too_few_items;
  311|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  312|      0|            }
  313|     31|            if (stack_.back().count() > stack_.back().length())
  ------------------
  |  Branch (313:17): [True: 0, False: 31]
  ------------------
  314|      0|            {
  315|      0|                ec = cbor_errc::too_many_items;
  316|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|      0|            }
  318|     31|        }
  319|       |
  320|     31|        stack_.pop_back();
  321|     31|        end_value();
  322|       |
  323|     31|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     31|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  324|     31|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  327|      3|    {
  328|      3|        if (JSONCONS_UNLIKELY(stack_.size() >= max_nesting_depth_))
  ------------------
  |  |   79|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  329|      0|        {
  330|      0|            ec = cbor_errc::max_nesting_depth_exceeded;
  331|      0|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  332|      0|        } 
  333|      3|        stack_.emplace_back(container_type::indefinite_length_array);
  334|      3|        sink_.push_back(0x9f);
  335|      3|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|      3|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE9visit_keyERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  383|      6|    {
  384|      6|        visit_string(name, semantic_tag::none, context, ec);
  385|      6|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      6|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|      6|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  858|   111k|    {
  859|   111k|        switch (tag)
  860|   111k|        {
  861|      1|            case semantic_tag::bigint:
  ------------------
  |  Branch (861:13): [True: 1, False: 111k]
  ------------------
  862|      1|            {
  863|      1|                bigint n(sv.data(), sv.length());
  864|      1|                write_bignum(n);
  865|      1|                end_value();
  866|      1|                break;
  867|      0|            }
  868|      4|            case semantic_tag::bigdec:
  ------------------
  |  Branch (868:13): [True: 4, False: 111k]
  ------------------
  869|      4|            {
  870|      4|                write_decimal_value(sv, context, ec);
  871|      4|                break;
  872|      0|            }
  873|      0|            case semantic_tag::datetime:
  ------------------
  |  Branch (873:13): [True: 0, False: 111k]
  ------------------
  874|      0|            {
  875|      0|                write_tag(0);
  876|       |
  877|      0|                write_string(sv);
  878|      0|                end_value();
  879|      0|                break;
  880|      0|            }
  881|      0|            case semantic_tag::uri:
  ------------------
  |  Branch (881:13): [True: 0, False: 111k]
  ------------------
  882|      0|            {
  883|      0|                write_tag(32);
  884|      0|                write_string(sv);
  885|      0|                end_value();
  886|      0|                break;
  887|      0|            }
  888|      0|            case semantic_tag::base64url:
  ------------------
  |  Branch (888:13): [True: 0, False: 111k]
  ------------------
  889|      0|            {
  890|      0|                write_tag(33);
  891|      0|                write_string(sv);
  892|      0|                end_value();
  893|      0|                break;
  894|      0|            }
  895|      0|            case semantic_tag::base64:
  ------------------
  |  Branch (895:13): [True: 0, False: 111k]
  ------------------
  896|      0|            {
  897|      0|                write_tag(34);
  898|      0|                write_string(sv);
  899|      0|                end_value();
  900|      0|                break;
  901|      0|            }
  902|   111k|            default:
  ------------------
  |  Branch (902:13): [True: 111k, False: 5]
  ------------------
  903|   111k|            {
  904|   111k|                write_string(sv);
  905|   111k|                end_value();
  906|   111k|                break;
  907|      0|            }
  908|   111k|        }
  909|   111k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   111k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  910|   111k|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12write_bignumERNS_12basic_bigintINS5_ImEEEE:
  471|      2|    {
  472|      2|        bool is_neg = n < 0;
  473|      2|        if (is_neg)
  ------------------
  |  Branch (473:13): [True: 1, False: 1]
  ------------------
  474|      1|        {
  475|      1|            n = - n -1;
  476|      1|        }
  477|       |
  478|      2|        int signum;
  479|      2|        std::vector<uint8_t> data;
  480|      2|        n.write_bytes_be(signum, data);
  481|      2|        std::size_t length = data.size();
  482|       |
  483|      2|        if (is_neg)
  ------------------
  |  Branch (483:13): [True: 1, False: 1]
  ------------------
  484|      1|        {
  485|      1|            write_tag(3);
  486|      1|        }
  487|      1|        else
  488|      1|        {
  489|      1|            write_tag(2);
  490|      1|        }
  491|       |
  492|      2|        if (length <= 0x17)
  ------------------
  |  Branch (492:13): [True: 2, False: 0]
  ------------------
  493|      2|        {
  494|       |            // fixstr stores a byte array whose length is upto 31 bytes
  495|      2|            binary::native_to_big(static_cast<uint8_t>(0x40 + length), 
  496|      2|                                  std::back_inserter(sink_));
  497|      2|        }
  498|      0|        else if (length <= 0xff)
  ------------------
  |  Branch (498:18): [True: 0, False: 0]
  ------------------
  499|      0|        {
  500|      0|            binary::native_to_big(static_cast<uint8_t>(0x58), 
  501|      0|                                  std::back_inserter(sink_));
  502|      0|            binary::native_to_big(static_cast<uint8_t>(length), 
  503|      0|                                  std::back_inserter(sink_));
  504|      0|        }
  505|      0|        else if (length <= 0xffff)
  ------------------
  |  Branch (505:18): [True: 0, False: 0]
  ------------------
  506|      0|        {
  507|      0|            binary::native_to_big(static_cast<uint8_t>(0x59), 
  508|      0|                                  std::back_inserter(sink_));
  509|      0|            binary::native_to_big(static_cast<uint16_t>(length), 
  510|      0|                                  std::back_inserter(sink_));
  511|      0|        }
  512|      0|        else if (length <= 0xffffffff)
  ------------------
  |  Branch (512:18): [True: 0, False: 0]
  ------------------
  513|      0|        {
  514|      0|            binary::native_to_big(static_cast<uint8_t>(0x5a), 
  515|      0|                                  std::back_inserter(sink_));
  516|      0|            binary::native_to_big(static_cast<uint32_t>(length), 
  517|      0|                                  std::back_inserter(sink_));
  518|      0|        }
  519|      0|        else if (uint64_t(length) <= (std::numeric_limits<std::uint64_t>::max)())
  ------------------
  |  Branch (519:18): [True: 0, False: 0]
  ------------------
  520|      0|        {
  521|      0|            binary::native_to_big(static_cast<uint8_t>(0x5b), 
  522|      0|                                  std::back_inserter(sink_));
  523|      0|            binary::native_to_big(static_cast<uint64_t>(length), 
  524|      0|                                  std::back_inserter(sink_));
  525|      0|        }
  526|       |
  527|      2|        for (auto c : data)
  ------------------
  |  Branch (527:21): [True: 21, False: 2]
  ------------------
  528|     21|        {
  529|     21|            sink_.push_back(c);
  530|     21|        }
  531|      2|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE19write_decimal_valueERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  534|      4|    {
  535|      4|        decimal_parse_state state = decimal_parse_state::start;
  536|      4|        std::basic_string<char> s;
  537|      4|        std::basic_string<char> exponent;
  538|      4|        int64_t scale = 0;
  539|      4|        for (auto c : sv)
  ------------------
  |  Branch (539:21): [True: 52, False: 4]
  ------------------
  540|     52|        {
  541|     52|            switch (state)
  ------------------
  |  Branch (541:21): [True: 52, False: 0]
  ------------------
  542|     52|            {
  543|      4|                case decimal_parse_state::start:
  ------------------
  |  Branch (543:17): [True: 4, False: 48]
  ------------------
  544|      4|                {
  545|      4|                    switch (c)
  546|      4|                    {
  547|      0|                        case '-':
  ------------------
  |  Branch (547:25): [True: 0, False: 4]
  ------------------
  548|      4|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (548:25): [True: 0, False: 4]
  |  Branch (548:34): [True: 1, False: 3]
  |  Branch (548:43): [True: 0, False: 4]
  |  Branch (548:52): [True: 1, False: 3]
  |  Branch (548:61): [True: 0, False: 4]
  |  Branch (548:70): [True: 0, False: 4]
  |  Branch (548:79): [True: 0, False: 4]
  |  Branch (548:88): [True: 0, False: 4]
  |  Branch (548:97): [True: 2, False: 2]
  |  Branch (548:107): [True: 0, False: 4]
  ------------------
  549|      4|                            s.push_back(c);
  550|      4|                            state = decimal_parse_state::integer;
  551|      4|                            break;
  552|      0|                        case '+':
  ------------------
  |  Branch (552:25): [True: 0, False: 4]
  ------------------
  553|      0|                            state = decimal_parse_state::integer;
  554|      0|                            break;
  555|      0|                        case '.':
  ------------------
  |  Branch (555:25): [True: 0, False: 4]
  ------------------
  556|      0|                            state = decimal_parse_state::fraction1;
  557|      0|                            break;
  558|      0|                        default:
  ------------------
  |  Branch (558:25): [True: 0, False: 4]
  ------------------
  559|      0|                        {
  560|      0|                            ec = cbor_errc::invalid_bigdecimal;
  561|      0|                            return;
  562|      4|                        }
  563|      4|                    }
  564|      4|                    break;
  565|      4|                }
  566|     31|                case decimal_parse_state::integer:
  ------------------
  |  Branch (566:17): [True: 31, False: 21]
  ------------------
  567|     31|                {
  568|     31|                    switch (c)
  569|     31|                    {
  570|     28|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (570:25): [True: 2, False: 29]
  |  Branch (570:34): [True: 6, False: 25]
  |  Branch (570:43): [True: 2, False: 29]
  |  Branch (570:52): [True: 2, False: 29]
  |  Branch (570:61): [True: 5, False: 26]
  |  Branch (570:70): [True: 1, False: 30]
  |  Branch (570:79): [True: 5, False: 26]
  |  Branch (570:88): [True: 1, False: 30]
  |  Branch (570:97): [True: 1, False: 30]
  |  Branch (570:107): [True: 3, False: 28]
  ------------------
  571|     28|                            s.push_back(c);
  572|     28|                            break;
  573|      2|                        case 'e': case 'E':
  ------------------
  |  Branch (573:25): [True: 2, False: 29]
  |  Branch (573:35): [True: 0, False: 31]
  ------------------
  574|      2|                            state = decimal_parse_state::exp1;
  575|      2|                            break;
  576|      1|                        case '.':
  ------------------
  |  Branch (576:25): [True: 1, False: 30]
  ------------------
  577|      1|                            state = decimal_parse_state::fraction1;
  578|      1|                            break;
  579|      0|                        default:
  ------------------
  |  Branch (579:25): [True: 0, False: 31]
  ------------------
  580|      0|                        {
  581|      0|                            ec = cbor_errc::invalid_bigdecimal;
  582|      0|                            return;
  583|      2|                        }
  584|     31|                    }
  585|     31|                    break;
  586|     31|                }
  587|     31|                case decimal_parse_state::exp1:
  ------------------
  |  Branch (587:17): [True: 2, False: 50]
  ------------------
  588|      2|                {
  589|      2|                    switch (c)
  590|      2|                    {
  591|      0|                        case '+':
  ------------------
  |  Branch (591:25): [True: 0, False: 2]
  ------------------
  592|      0|                            state = decimal_parse_state::exp2;
  593|      0|                            break;
  594|      0|                        case '-':
  ------------------
  |  Branch (594:25): [True: 0, False: 2]
  ------------------
  595|      2|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (595:25): [True: 0, False: 2]
  |  Branch (595:34): [True: 2, False: 0]
  |  Branch (595:43): [True: 0, False: 2]
  |  Branch (595:52): [True: 0, False: 2]
  |  Branch (595:61): [True: 0, False: 2]
  |  Branch (595:70): [True: 0, False: 2]
  |  Branch (595:79): [True: 0, False: 2]
  |  Branch (595:88): [True: 0, False: 2]
  |  Branch (595:97): [True: 0, False: 2]
  |  Branch (595:107): [True: 0, False: 2]
  ------------------
  596|      2|                            exponent.push_back(c);
  597|      2|                            state = decimal_parse_state::exp2;
  598|      2|                            break;
  599|      0|                        default:
  ------------------
  |  Branch (599:25): [True: 0, False: 2]
  ------------------
  600|      0|                        {
  601|      0|                            ec = cbor_errc::invalid_bigdecimal;
  602|      0|                            return;
  603|      2|                        }
  604|      2|                    }
  605|      2|                    break;
  606|      2|                }
  607|      2|                case decimal_parse_state::exp2:
  ------------------
  |  Branch (607:17): [True: 0, False: 52]
  ------------------
  608|      0|                {
  609|      0|                    switch (c)
  610|      0|                    {
  611|      0|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (611:25): [True: 0, False: 0]
  |  Branch (611:34): [True: 0, False: 0]
  |  Branch (611:43): [True: 0, False: 0]
  |  Branch (611:52): [True: 0, False: 0]
  |  Branch (611:61): [True: 0, False: 0]
  |  Branch (611:70): [True: 0, False: 0]
  |  Branch (611:79): [True: 0, False: 0]
  |  Branch (611:88): [True: 0, False: 0]
  |  Branch (611:97): [True: 0, False: 0]
  |  Branch (611:107): [True: 0, False: 0]
  ------------------
  612|      0|                            exponent.push_back(c);
  613|      0|                            break;
  614|      0|                        default:
  ------------------
  |  Branch (614:25): [True: 0, False: 0]
  ------------------
  615|      0|                        {
  616|      0|                            ec = cbor_errc::invalid_bigdecimal;
  617|      0|                            return;
  618|      0|                        }
  619|      0|                    }
  620|      0|                    break;
  621|      0|                }
  622|     15|                case decimal_parse_state::fraction1:
  ------------------
  |  Branch (622:17): [True: 15, False: 37]
  ------------------
  623|     15|                {
  624|     15|                    switch (c)
  625|     15|                    {
  626|     15|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (626:25): [True: 0, False: 15]
  |  Branch (626:34): [True: 0, False: 15]
  |  Branch (626:43): [True: 0, False: 15]
  |  Branch (626:52): [True: 3, False: 12]
  |  Branch (626:61): [True: 2, False: 13]
  |  Branch (626:70): [True: 1, False: 14]
  |  Branch (626:79): [True: 1, False: 14]
  |  Branch (626:88): [True: 1, False: 14]
  |  Branch (626:97): [True: 2, False: 13]
  |  Branch (626:107): [True: 5, False: 10]
  ------------------
  627|     15|                            s.push_back(c);
  628|     15|                            --scale;
  629|     15|                            break;
  630|      0|                        case 'e': case 'E':
  ------------------
  |  Branch (630:25): [True: 0, False: 15]
  |  Branch (630:35): [True: 0, False: 15]
  ------------------
  631|      0|                            state = decimal_parse_state::exp1;
  632|      0|                            break;
  633|      0|                        default:
  ------------------
  |  Branch (633:25): [True: 0, False: 15]
  ------------------
  634|      0|                        {
  635|      0|                            ec = cbor_errc::invalid_bigdecimal;
  636|      0|                            return;
  637|      0|                        }
  638|     15|                    }
  639|     15|                    break;
  640|     15|                }
  641|     52|            }
  642|     52|        }
  643|       |
  644|      4|        write_tag(4);
  645|      4|        visit_begin_array((std::size_t)2, semantic_tag::none, context, ec);
  646|      4|        if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   79|      4|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4]
  |  |  ------------------
  ------------------
  647|      4|        if (exponent.length() > 0)
  ------------------
  |  Branch (647:13): [True: 2, False: 2]
  ------------------
  648|      2|        {
  649|      2|            int64_t val{};
  650|      2|            auto r = jsoncons::dec_to_integer(exponent.data(), exponent.length(), val);
  651|      2|            if (!r)
  ------------------
  |  Branch (651:17): [True: 0, False: 2]
  ------------------
  652|      0|            {
  653|      0|                ec = r.error_code();
  654|      0|                return;
  655|      0|            }
  656|      2|            scale += val;
  657|      2|        }
  658|      4|        visit_int64(scale, semantic_tag::none, context, ec);
  659|      4|        if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   79|      4|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4]
  |  |  ------------------
  ------------------
  660|       |
  661|      4|        int64_t val{ 0 };
  662|      4|        auto r = jsoncons::dec_to_integer(s.data(),s.length(), val);
  663|      4|        if (r)
  ------------------
  |  Branch (663:13): [True: 3, False: 1]
  ------------------
  664|      3|        {
  665|      3|            visit_int64(val, semantic_tag::none, context, ec);
  666|      3|            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   79|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  667|      3|        }
  668|      1|        else if (r.error_code() == std::errc::result_out_of_range)
  ------------------
  |  Branch (668:18): [True: 1, False: 0]
  ------------------
  669|      1|        {
  670|      1|            bigint n(s.data(), s.length());
  671|      1|            write_bignum(n);
  672|      1|            end_value();
  673|      1|        }
  674|      0|        else
  675|      0|        {
  676|      0|            ec = r.error_code();
  677|      0|            return;
  678|      0|        }
  679|      4|        visit_end_array(context, ec);
  680|      4|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12write_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEE:
  404|   111k|    {
  405|   111k|        auto sink = unicode_traits::validate(sv.data(), sv.size());
  406|   111k|        if (sink.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (406:13): [True: 0, False: 111k]
  ------------------
  407|      0|        {
  408|      0|            JSONCONS_THROW(ser_error(cbor_errc::invalid_utf8));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  409|      0|        }
  410|       |
  411|   111k|        if (pack_strings_ && sv.size() >= jsoncons::cbor::detail::min_length_for_stringref(next_stringref_))
  ------------------
  |  Branch (411:13): [True: 0, False: 111k]
  |  Branch (411:30): [True: 0, False: 0]
  ------------------
  412|      0|        {
  413|      0|            string_type s(sv.data(), sv.size(), alloc_);
  414|      0|            auto it = stringref_map_.find(s);
  415|      0|            if (it == stringref_map_.end())
  ------------------
  |  Branch (415:17): [True: 0, False: 0]
  ------------------
  416|      0|            {
  417|      0|                stringref_map_.emplace(std::make_pair(std::move(s), next_stringref_++));
  418|      0|                write_utf8_string(sv);
  419|      0|            }
  420|      0|            else
  421|      0|            {
  422|      0|                write_tag(25);
  423|      0|                write_uint64_value((*it).second);
  424|      0|            }
  425|      0|        }
  426|   111k|        else
  427|   111k|        {
  428|   111k|            write_utf8_string(sv);
  429|   111k|        }
  430|   111k|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17write_utf8_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEE:
  464|   111k|    {
  465|   111k|        write_type_and_length(0x60, sv.size());
  466|       |
  467|   111k|        sink_.append(reinterpret_cast<const uint8_t*>(sv.data()), sv.size());
  468|   111k|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  916|      4|    {
  917|      4|        byte_string_chars_format encoding_hint;
  918|      4|        switch (tag)
  919|      4|        {
  920|      0|            case semantic_tag::base16:
  ------------------
  |  Branch (920:13): [True: 0, False: 4]
  ------------------
  921|      0|                encoding_hint = byte_string_chars_format::base16;
  922|      0|                break;
  923|      0|            case semantic_tag::base64:
  ------------------
  |  Branch (923:13): [True: 0, False: 4]
  ------------------
  924|      0|                encoding_hint = byte_string_chars_format::base64;
  925|      0|                break;
  926|      0|            case semantic_tag::base64url:
  ------------------
  |  Branch (926:13): [True: 0, False: 4]
  ------------------
  927|      0|                encoding_hint = byte_string_chars_format::base64url;
  928|      0|                break;
  929|      4|            default:
  ------------------
  |  Branch (929:13): [True: 4, False: 0]
  ------------------
  930|      4|                encoding_hint = byte_string_chars_format::none;
  931|      4|                break;
  932|      4|        }
  933|      4|        switch (encoding_hint)
  934|      4|        {
  935|      0|            case byte_string_chars_format::base64url:
  ------------------
  |  Branch (935:13): [True: 0, False: 4]
  ------------------
  936|      0|                write_tag(21);
  937|      0|                break;
  938|      0|            case byte_string_chars_format::base64:
  ------------------
  |  Branch (938:13): [True: 0, False: 4]
  ------------------
  939|      0|                write_tag(22);
  940|      0|                break;
  941|      0|            case byte_string_chars_format::base16:
  ------------------
  |  Branch (941:13): [True: 0, False: 4]
  ------------------
  942|      0|                write_tag(23);
  943|      0|                break;
  944|      4|            default:
  ------------------
  |  Branch (944:13): [True: 4, False: 0]
  ------------------
  945|      4|                break;
  946|      4|        }
  947|      4|        if (pack_strings_ && b.size() >= jsoncons::cbor::detail::min_length_for_stringref(next_stringref_))
  ------------------
  |  Branch (947:13): [True: 0, False: 4]
  |  Branch (947:30): [True: 0, False: 0]
  ------------------
  948|      0|        {
  949|      0|            byte_string_type bs(b.data(), b.size(), alloc_);
  950|      0|            auto it = bytestringref_map_.find(bs);
  951|      0|            if (it == bytestringref_map_.end())
  ------------------
  |  Branch (951:17): [True: 0, False: 0]
  ------------------
  952|      0|            {
  953|      0|                bytestringref_map_.emplace(std::make_pair(bs, next_stringref_++));
  954|      0|                write_byte_string(bs);
  955|      0|            }
  956|      0|            else
  957|      0|            {
  958|      0|                write_tag(25);
  959|      0|                write_uint64_value((*it).second);
  960|      0|            }
  961|      0|        }
  962|      4|        else
  963|      4|        {
  964|      4|            write_byte_string(b);
  965|      4|        }
  966|       |
  967|      4|        end_value();
  968|      4|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      4|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  969|      4|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17write_byte_stringERKNS_16byte_string_viewE:
 1003|      5|    {
 1004|      5|        write_type_and_length(0x40, b.size());
 1005|       |
 1006|      5|        sink_.append(b.data(), b.size());
 1007|      5|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS3_10error_codeE:
  975|      1|    {
  976|      1|        if (pack_strings_ && b.size() >= jsoncons::cbor::detail::min_length_for_stringref(next_stringref_))
  ------------------
  |  Branch (976:13): [True: 0, False: 1]
  |  Branch (976:30): [True: 0, False: 0]
  ------------------
  977|      0|        {
  978|      0|            byte_string_type bs(b.data(), b.size(), alloc_);
  979|      0|            auto it = bytestringref_map_.find(bs);
  980|      0|            if (it == bytestringref_map_.end())
  ------------------
  |  Branch (980:17): [True: 0, False: 0]
  ------------------
  981|      0|            {
  982|      0|                bytestringref_map_.emplace(std::make_pair(bs, next_stringref_++));
  983|      0|                write_tag(raw_tag);
  984|      0|                write_byte_string(bs);
  985|      0|            }
  986|      0|            else
  987|      0|            {
  988|      0|                write_tag(25);
  989|      0|                write_uint64_value((*it).second);
  990|      0|            }
  991|      0|        }
  992|      1|        else
  993|      1|        {
  994|      1|            write_tag(raw_tag);
  995|      1|            write_byte_string(b);
  996|      1|        }
  997|       |
  998|      1|        end_value();
  999|      1|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1000|      1|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEED2Ev:
  150|     15|    {
  151|     15|        JSONCONS_TRY
  ------------------
  |  |   37|     15|    #define JSONCONS_TRY try
  ------------------
  152|     15|        {
  153|     15|            sink_.flush();
  154|     15|        }
  155|     15|        JSONCONS_CATCH(...)
  156|     15|        {
  157|      0|        }
  158|     15|    }

_ZN8jsoncons4cbor15make_error_codeENS0_9cbor_errcE:
  150|     10|{
  151|     10|    return std::error_code(static_cast<int>(e),cbor_error_category());
  152|     10|}
_ZN8jsoncons4cbor19cbor_error_categoryEv:
  143|     10|{
  144|     10|  static cbor_error_category_impl instance;
  145|     10|  return instance;
  146|     10|}

_ZN8jsoncons4cbor19cbor_decode_optionsC1Ev:
   48|     15|    cbor_decode_options() = default;
_ZN8jsoncons4cbor19cbor_options_commonC2Ev:
   26|     30|    cbor_options_common() = default;
_ZN8jsoncons4cbor19cbor_options_commonD2Ev:
   28|     30|    virtual ~cbor_options_common() = default;
_ZN8jsoncons4cbor19cbor_encode_optionsC1Ev:
   66|     15|    cbor_encode_options() = default;
_ZNK8jsoncons4cbor19cbor_options_common17max_nesting_depthEv:
   34|     30|    {
   35|     30|        return max_nesting_depth_;
   36|     30|    }
_ZNK8jsoncons4cbor19cbor_encode_options12pack_stringsEv:
   72|     30|    {
   73|     30|        return use_stringref_;
   74|     30|    }
_ZNK8jsoncons4cbor19cbor_encode_options16use_typed_arraysEv:
   77|     15|    {
   78|     15|        return use_typed_arrays_;
   79|     15|    }
_ZNK8jsoncons4cbor19cbor_options_common14max_dimensionsEv:
   38|     15|    {
   39|     15|        return max_dimensions_;
   40|     15|    }
_ZNK8jsoncons4cbor19cbor_decode_options18bigfloat_precisionEv:
   54|     15|    {
   55|     15|        return bigfloat_precision_;
   56|     15|    }

_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEED2Ev:
  977|     15|    ~basic_cbor_parser() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringD2Ev:
  872|   646k|        ~mapped_string() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RKNS0_19cbor_decode_optionsERKS7_:
  958|     15|       : alloc_(alloc),
  959|     15|         source_(std::forward<Sourceable>(source)),
  960|     15|         max_nesting_depth_(options.max_nesting_depth()),
  961|     15|         max_dimensions_(options.max_dimensions()),
  962|     15|         bigfloat_precision_(options.bigfloat_precision()),
  963|     15|         text_buffer_(alloc),
  964|     15|         bytes_buffer_(alloc),
  965|     15|         state_stack_(alloc),
  966|     15|         stringref_map_stack_(alloc),
  967|     15|         extents_(alloc)
  968|     15|    {
  969|     15|        state_stack_.emplace_back(parse_mode::root,0);
  970|     15|    }
_ZN8jsoncons4cbor11parse_stateC2ENS0_10parse_modeEmb:
  788|    284|        : mode(mode), length(length), pop_stringref_map_stack(pop_stringref_map_stack)
  789|    284|    {
  790|    284|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  985|     15|    {
  986|     15|        more_ = true;
  987|     15|        done_ = false;
  988|     15|        text_buffer_.clear();
  989|     15|        bytes_buffer_.clear();
  990|     15|        raw_tag_ = 0;
  991|     15|        state_stack_.clear();
  992|     15|        state_stack_.emplace_back(parse_mode::root,0);
  993|     15|        stringref_map_stack_.clear();
  994|     15|        nesting_depth_ = 0;
  995|     15|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1088|     15|    {
 1089|  2.44M|        while (!done_ && more_)
  ------------------
  |  Branch (1089:16): [True: 2.44M, False: 5]
  |  Branch (1089:26): [True: 2.44M, False: 0]
  ------------------
 1090|  2.44M|        {
 1091|  2.44M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (1091:21): [True: 2.44M, False: 0]
  ------------------
 1092|  2.44M|            {
 1093|      0|                case parse_mode::multi_dim:
  ------------------
  |  Branch (1093:17): [True: 0, False: 2.44M]
  ------------------
 1094|      0|                {
 1095|      0|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   67|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1096|      0|                    typed_array_stack_.pop_back();
 1097|      0|                    state_stack_.pop_back();
 1098|      0|                    break;
 1099|      0|                }
 1100|     83|                case parse_mode::typed_array:
  ------------------
  |  Branch (1100:17): [True: 83, False: 2.44M]
  ------------------
 1101|     83|                {
 1102|     83|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   67|     83|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 83]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1103|     83|                    read_typed_array_item(visitor, ec);
 1104|     83|                    auto iter = typed_array_stack_.back();
 1105|     83|                    if (iter->done())
  ------------------
  |  Branch (1105:25): [True: 83, False: 0]
  ------------------
 1106|     83|                    {
 1107|     83|                        if (level() == mark_level_)
  ------------------
  |  Branch (1107:29): [True: 0, False: 83]
  ------------------
 1108|      0|                        {
 1109|      0|                            more_ = false;
 1110|      0|                        }
 1111|     83|                        if (!is_multi_dim())
  ------------------
  |  Branch (1111:29): [True: 83, False: 0]
  ------------------
 1112|     83|                        {
 1113|     83|                            typed_array_stack_.pop_back();
 1114|     83|                        }
 1115|     83|                        state_stack_.pop_back();
 1116|     83|                    }
 1117|     83|                    break;
 1118|     83|                }
 1119|     55|                case parse_mode::array:
  ------------------
  |  Branch (1119:17): [True: 55, False: 2.44M]
  ------------------
 1120|     55|                {
 1121|     55|                    if (is_multi_dim())
  ------------------
  |  Branch (1121:25): [True: 0, False: 55]
  ------------------
 1122|      0|                    {
 1123|      0|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   67|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1124|      0|                        auto iter = typed_array_stack_.back();
 1125|      0|                        if (!iter->done())
  ------------------
  |  Branch (1125:29): [True: 0, False: 0]
  ------------------
 1126|      0|                        {
 1127|      0|                            iter->next(visitor, *this, ec);
 1128|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1129|      0|                            {
 1130|      0|                                return;
 1131|      0|                            }
 1132|      0|                        }
 1133|      0|                        else
 1134|      0|                        {
 1135|      0|                            if (iter->count() != state_stack_.back().length)
  ------------------
  |  Branch (1135:33): [True: 0, False: 0]
  ------------------
 1136|      0|                            {
 1137|      0|                                ec = cbor_errc::invalid_mdarray;
 1138|      0|                                return;
 1139|      0|                            }
 1140|      0|                            end_classical_array_storage(ec);
 1141|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1142|      0|                            {
 1143|      0|                                return;
 1144|      0|                            }
 1145|      0|                        }
 1146|      0|                    }
 1147|     55|                    else
 1148|     55|                    {
 1149|     55|                        if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (1149:29): [True: 52, False: 3]
  ------------------
 1150|     52|                        {
 1151|     52|                            ++state_stack_.back().index;
 1152|     52|                            read_item(visitor, ec);
 1153|     52|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     52|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 52]
  |  |  ------------------
  ------------------
 1154|      0|                            {
 1155|      0|                                return;
 1156|      0|                            }
 1157|     52|                        }
 1158|      3|                        else
 1159|      3|                        {
 1160|      3|                            end_array(visitor, ec);
 1161|      3|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 1162|      0|                            {
 1163|      0|                                return;
 1164|      0|                            }
 1165|      3|                        }
 1166|     55|                    }
 1167|     55|                    break;
 1168|     55|                }
 1169|  1.39M|                case parse_mode::indefinite_array:
  ------------------
  |  Branch (1169:17): [True: 1.39M, False: 1.05M]
  ------------------
 1170|  1.39M|                {
 1171|  1.39M|                    if (is_multi_dim()) 
  ------------------
  |  Branch (1171:25): [True: 0, False: 1.39M]
  ------------------
 1172|      0|                    {
 1173|      0|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   67|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1174|      0|                        auto iter = typed_array_stack_.back();
 1175|      0|                        if (!iter->done())
  ------------------
  |  Branch (1175:29): [True: 0, False: 0]
  ------------------
 1176|      0|                        {
 1177|      0|                            iter->next(visitor, *this, ec);
 1178|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1179|      0|                            {
 1180|      0|                                return;
 1181|      0|                            }
 1182|      0|                        }
 1183|      0|                        else
 1184|      0|                        {
 1185|      0|                            auto c = source_.peek();
 1186|      0|                            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1187|      0|                            {
 1188|      0|                                ec = cbor_errc::unexpected_eof;
 1189|      0|                                more_ = false;
 1190|      0|                                return;
 1191|      0|                            }
 1192|      0|                            if (c.value == 0xff)
  ------------------
  |  Branch (1192:33): [True: 0, False: 0]
  ------------------
 1193|      0|                            {
 1194|      0|                                source_.ignore(1);
 1195|      0|                            }
 1196|      0|                            else
 1197|      0|                            {
 1198|      0|                                ec = cbor_errc::invalid_mdarray;
 1199|      0|                                return;
 1200|      0|                            }
 1201|      0|                            end_classical_array_storage(ec);
 1202|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1203|      0|                            {
 1204|      0|                                return;
 1205|      0|                            }
 1206|      0|                        }
 1207|      0|                    }
 1208|  1.39M|                    else
 1209|  1.39M|                    {
 1210|  1.39M|                        auto c = source_.peek();
 1211|  1.39M|                        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  1.39M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 1.39M]
  |  |  ------------------
  ------------------
 1212|      1|                        {
 1213|      1|                            ec = cbor_errc::unexpected_eof;
 1214|      1|                            more_ = false;
 1215|      1|                            return;
 1216|      1|                        }
 1217|  1.39M|                        if (c.value == 0xff)
  ------------------
  |  Branch (1217:29): [True: 0, False: 1.39M]
  ------------------
 1218|      0|                        {
 1219|      0|                            source_.ignore(1);
 1220|      0|                            end_array(visitor, ec);
 1221|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1222|      0|                            {
 1223|      0|                                return;
 1224|      0|                            }
 1225|      0|                        }
 1226|  1.39M|                        else
 1227|  1.39M|                        {
 1228|  1.39M|                            read_item(visitor, ec);
 1229|  1.39M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.39M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 1.39M]
  |  |  ------------------
  ------------------
 1230|      2|                            {
 1231|      2|                                return;
 1232|      2|                            }
 1233|  1.39M|                        }
 1234|  1.39M|                    }
 1235|  1.39M|                    break;
 1236|  1.39M|                }
 1237|  1.39M|                case parse_mode::map_key:
  ------------------
  |  Branch (1237:17): [True: 1.11k, False: 2.44M]
  ------------------
 1238|  1.11k|                {
 1239|  1.11k|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (1239:25): [True: 1.03k, False: 77]
  ------------------
 1240|  1.03k|                    {
 1241|  1.03k|                        ++state_stack_.back().index;
 1242|  1.03k|                        state_stack_.back().mode = parse_mode::map_value;
 1243|  1.03k|                        read_item(visitor, ec);
 1244|  1.03k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.03k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 1.03k]
  |  |  ------------------
  ------------------
 1245|      1|                        {
 1246|      1|                            return;
 1247|      1|                        }
 1248|  1.03k|                    }
 1249|     77|                    else
 1250|     77|                    {
 1251|     77|                        end_object(visitor, ec);
 1252|     77|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     77|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 77]
  |  |  ------------------
  ------------------
 1253|      0|                        {
 1254|      0|                            return;
 1255|      0|                        }
 1256|     77|                    }
 1257|  1.11k|                    break;
 1258|  1.11k|                }
 1259|  1.11k|                case parse_mode::map_value:
  ------------------
  |  Branch (1259:17): [True: 966, False: 2.44M]
  ------------------
 1260|    966|                {
 1261|    966|                    state_stack_.back().mode = parse_mode::map_key;
 1262|    966|                    read_item(visitor, ec);
 1263|    966|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    966|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 966]
  |  |  ------------------
  ------------------
 1264|      0|                    {
 1265|      0|                        return;
 1266|      0|                    }
 1267|    966|                    break;
 1268|    966|                }
 1269|   524k|                case parse_mode::indefinite_map_key:
  ------------------
  |  Branch (1269:17): [True: 524k, False: 1.92M]
  ------------------
 1270|   524k|                {
 1271|   524k|                    auto c = source_.peek();
 1272|   524k|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   524k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 524k]
  |  |  ------------------
  ------------------
 1273|      0|                    {
 1274|      0|                        ec = cbor_errc::unexpected_eof;
 1275|      0|                        more_ = false;
 1276|      0|                        return;
 1277|      0|                    }
 1278|   524k|                    if (c.value == 0xff)
  ------------------
  |  Branch (1278:25): [True: 0, False: 524k]
  ------------------
 1279|      0|                    {
 1280|      0|                        source_.ignore(1);
 1281|      0|                        end_object(visitor, ec);
 1282|      0|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1283|      0|                        {
 1284|      0|                            return;
 1285|      0|                        }
 1286|      0|                    }
 1287|   524k|                    else
 1288|   524k|                    {
 1289|   524k|                        state_stack_.back().mode = parse_mode::indefinite_map_value;
 1290|   524k|                        read_item(visitor, ec);
 1291|   524k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   524k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 524k]
  |  |  ------------------
  ------------------
 1292|      0|                        {
 1293|      0|                            return;
 1294|      0|                        }
 1295|   524k|                    }
 1296|   524k|                    break;
 1297|   524k|                }
 1298|   524k|                case parse_mode::indefinite_map_value:
  ------------------
  |  Branch (1298:17): [True: 524k, False: 1.92M]
  ------------------
 1299|   524k|                {
 1300|   524k|                    state_stack_.back().mode = parse_mode::indefinite_map_key;
 1301|   524k|                    read_item(visitor, ec);
 1302|   524k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   524k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 524k]
  |  |  ------------------
  ------------------
 1303|      1|                    {
 1304|      1|                        return;
 1305|      1|                    }
 1306|   524k|                    break;
 1307|   524k|                }
 1308|   524k|                case parse_mode::root:
  ------------------
  |  Branch (1308:17): [True: 15, False: 2.44M]
  ------------------
 1309|     15|                {
 1310|     15|                    state_stack_.back().mode = parse_mode::accept;
 1311|     15|                    read_item(visitor, ec);
 1312|     15|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     15|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 10]
  |  |  ------------------
  ------------------
 1313|      5|                    {
 1314|      5|                        return;
 1315|      5|                    }
 1316|     10|                    break;
 1317|     15|                }
 1318|     10|                case parse_mode::accept:
  ------------------
  |  Branch (1318:17): [True: 5, False: 2.44M]
  ------------------
 1319|      5|                {
 1320|      5|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   67|      5|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 5]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1321|      5|                    state_stack_.clear();
 1322|      5|                    more_ = false;
 1323|      5|                    done_ = true;
 1324|      5|                    visitor.flush();
 1325|      5|                    break;
 1326|      5|                }
 1327|  2.44M|            }
 1328|  2.44M|        }
 1329|     15|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_typed_array_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1332|     83|    {
 1333|     83|        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   67|     83|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 83]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1334|     83|        auto iter = typed_array_stack_.back();
 1335|     83|        if (!iter->done())
  ------------------
  |  Branch (1335:13): [True: 83, False: 0]
  ------------------
 1336|     83|        {
 1337|     83|            iter->next(visitor, *this, ec);
 1338|     83|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     83|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 83]
  |  |  ------------------
  ------------------
 1339|      0|            {
 1340|      0|                more_ = false;
 1341|      0|                return;
 1342|      0|            }
 1343|     83|            more_ = !cursor_mode_;
 1344|     83|        }
 1345|     83|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5levelEv:
 1043|    163|    {
 1044|    163|        return static_cast<int>(state_stack_.size());
 1045|    163|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12is_multi_dimEv:
 1003|  1.39M|    {
 1004|  1.39M|        return state_stack_.size() >=2 && state_stack_[state_stack_.size()-2].mode == parse_mode::multi_dim;
  ------------------
  |  Branch (1004:16): [True: 1.39M, False: 0]
  |  Branch (1004:43): [True: 0, False: 1.39M]
  ------------------
 1005|  1.39M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1348|  2.44M|    {
 1349|  2.44M|        read_tags(ec);
 1350|  2.44M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.44M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 2.44M]
  |  |  ------------------
  ------------------
 1351|      1|        {
 1352|      1|            return;
 1353|      1|        }
 1354|  2.44M|        auto c = source_.peek();
 1355|  2.44M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  2.44M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.44M]
  |  |  ------------------
  ------------------
 1356|      0|        {
 1357|      0|            ec = cbor_errc::unexpected_eof;
 1358|      0|            more_ = false;
 1359|      0|            return;
 1360|      0|        }
 1361|  2.44M|        jsoncons::cbor::cbor_major_type major_type = get_major_type(c.value);
 1362|  2.44M|        uint8_t info = get_additional_info(c.value);
 1363|  2.44M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  2.44M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 2.44M]
  |  |  |  Branch (79:50): [True: 12, False: 2.44M]
  |  |  |  Branch (79:50): [True: 1, False: 11]
  |  |  ------------------
  ------------------
 1364|      1|        {
 1365|      1|            ec = cbor_errc::reserved_additional_info;
 1366|      1|            more_ = false;
 1367|      1|            return;
 1368|      1|        }
 1369|       |
 1370|  2.44M|        switch (major_type)
 1371|  2.44M|        {
 1372|  2.25M|            case jsoncons::cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1372:13): [True: 2.25M, False: 192k]
  ------------------
 1373|  2.25M|            {
 1374|  2.25M|                source_.ignore(1);
 1375|  2.25M|                uint64_t val = read_unsigned_integer(info, ec);
 1376|  2.25M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.25M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.25M]
  |  |  ------------------
  ------------------
 1377|      0|                {
 1378|      0|                    return;
 1379|      0|                }
 1380|  2.25M|                if (!stringref_map_stack_.empty() && other_tags_[stringref_tag])
  ------------------
  |  Branch (1380:21): [True: 157k, False: 2.09M]
  |  Branch (1380:21): [True: 85, False: 2.25M]
  |  Branch (1380:54): [True: 85, False: 157k]
  ------------------
 1381|     85|                {
 1382|     85|                    other_tags_[stringref_tag] = false;
 1383|     85|                    if (val >= stringref_map_stack_.back().size())
  ------------------
  |  Branch (1383:25): [True: 0, False: 85]
  ------------------
 1384|      0|                    {
 1385|      0|                        ec = cbor_errc::stringref_too_large;
 1386|      0|                        more_ = false;
 1387|      0|                        return;
 1388|      0|                    }
 1389|     85|                    auto index = static_cast<typename stringref_map::size_type>(val);
 1390|     85|                    if (index != val)
  ------------------
  |  Branch (1390:25): [True: 0, False: 85]
  ------------------
 1391|      0|                    {
 1392|      0|                        ec = cbor_errc::number_too_large;
 1393|      0|                        more_ = false;
 1394|      0|                        return;
 1395|      0|                    }
 1396|     85|                    auto& str = stringref_map_stack_.back().at(index);
 1397|     85|                    switch (str.type)
 1398|     85|                    {
 1399|      0|                        case jsoncons::cbor::cbor_major_type::text_string:
  ------------------
  |  Branch (1399:25): [True: 0, False: 85]
  ------------------
 1400|      0|                        {
 1401|      0|                            handle_string(visitor, jsoncons::string_view(str.str.data(),str.str.length()),ec);
 1402|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1403|      0|                            {
 1404|      0|                                return;
 1405|      0|                            }
 1406|      0|                            break;
 1407|      0|                        }
 1408|     85|                        case jsoncons::cbor::cbor_major_type::byte_string:
  ------------------
  |  Branch (1408:25): [True: 85, False: 0]
  ------------------
 1409|     85|                        {
 1410|     85|                            read_byte_string_from_buffer read(byte_string_view(str.bytes));
 1411|     85|                            read_byte_string(read, visitor, ec);
 1412|     85|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     85|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 85]
  |  |  ------------------
  ------------------
 1413|      0|                            {
 1414|      0|                                return;
 1415|      0|                            }
 1416|     85|                            break;
 1417|     85|                        }
 1418|     85|                        default:
  ------------------
  |  Branch (1418:25): [True: 0, False: 85]
  ------------------
 1419|      0|                        {
 1420|      0|                            ec = cbor_errc::invalid_major_type;
 1421|      0|                            more_ = false;
 1422|      0|                            return;
 1423|     85|                        }
 1424|     85|                    }
 1425|     85|                }
 1426|  2.25M|                else
 1427|  2.25M|                {
 1428|  2.25M|                    semantic_tag tag = semantic_tag::none;
 1429|  2.25M|                    if (other_tags_[item_tag])
  ------------------
  |  Branch (1429:25): [True: 164, False: 2.25M]
  ------------------
 1430|    164|                    {
 1431|    164|                        if (raw_tag_ == 1)
  ------------------
  |  Branch (1431:29): [True: 0, False: 164]
  ------------------
 1432|      0|                        {
 1433|      0|                            tag = semantic_tag::epoch_second;
 1434|      0|                        }
 1435|    164|                        other_tags_[item_tag] = false;
 1436|    164|                    }
 1437|  2.25M|                    visitor.uint64_value(val, tag, *this, ec);
 1438|  2.25M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.25M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.25M]
  |  |  ------------------
  ------------------
 1439|      0|                    {
 1440|      0|                        return;
 1441|      0|                    }
 1442|  2.25M|                    more_ = !cursor_mode_;
 1443|  2.25M|                }
 1444|  2.25M|                break;
 1445|  2.25M|            }
 1446|  2.25M|            case jsoncons::cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1446:13): [True: 4, False: 2.44M]
  ------------------
 1447|      4|            {
 1448|      4|                source_.ignore(1);
 1449|      4|                read_negative_integer (info, visitor, ec);
 1450|      4|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      4|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4]
  |  |  ------------------
  ------------------
 1451|      0|                {
 1452|      0|                    return;
 1453|      0|                }
 1454|      4|                break;
 1455|      4|            }
 1456|  80.5k|            case jsoncons::cbor::cbor_major_type::byte_string:
  ------------------
  |  Branch (1456:13): [True: 80.5k, False: 2.36M]
  ------------------
 1457|  80.5k|            {
 1458|  80.5k|                read_byte_string_from_source read(this);
 1459|  80.5k|                read_byte_string(read, visitor, ec);
 1460|  80.5k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  80.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 80.5k]
  |  |  ------------------
  ------------------
 1461|      4|                {
 1462|      4|                    return;
 1463|      4|                }
 1464|  80.5k|                break;
 1465|  80.5k|            }
 1466|   111k|            case jsoncons::cbor::cbor_major_type::text_string:
  ------------------
  |  Branch (1466:13): [True: 111k, False: 2.33M]
  ------------------
 1467|   111k|            {
 1468|   111k|                source_.ignore(1);
 1469|   111k|                auto sv = read_text_string_view(info, ec);
 1470|   111k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   111k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 111k]
  |  |  ------------------
  ------------------
 1471|      2|                {
 1472|      2|                    return;
 1473|      2|                }
 1474|   111k|                auto result = unicode_traits::validate(sv.data(),sv.size());
 1475|   111k|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (1475:21): [True: 0, False: 111k]
  ------------------
 1476|      0|                {
 1477|      0|                    ec = cbor_errc::invalid_utf8;
 1478|      0|                    more_ = false;
 1479|      0|                    return;
 1480|      0|                }
 1481|   111k|                handle_string(visitor, sv, ec);
 1482|   111k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   111k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 111k]
  |  |  ------------------
  ------------------
 1483|      0|                {
 1484|      0|                    return;
 1485|      0|                }
 1486|   111k|                break;
 1487|   111k|            }
 1488|   111k|            case jsoncons::cbor::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1488:13): [True: 0, False: 2.44M]
  ------------------
 1489|      0|            {
 1490|      0|                JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1491|      0|                break;
 1492|   111k|            }
 1493|      6|            case jsoncons::cbor::cbor_major_type::simple:
  ------------------
  |  Branch (1493:13): [True: 6, False: 2.44M]
  ------------------
 1494|      6|            {
 1495|      6|                switch (info)
 1496|      6|                {
 1497|      0|                    case 0x14:
  ------------------
  |  Branch (1497:21): [True: 0, False: 6]
  ------------------
 1498|      0|                        source_.ignore(1);
 1499|      0|                        visitor.bool_value(false, semantic_tag::none, *this, ec);
 1500|      0|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1501|      0|                        {
 1502|      0|                            return;
 1503|      0|                        }
 1504|      0|                        more_ = !cursor_mode_;
 1505|      0|                        break;
 1506|      0|                    case 0x15:
  ------------------
  |  Branch (1506:21): [True: 0, False: 6]
  ------------------
 1507|      0|                        source_.ignore(1);
 1508|      0|                        visitor.bool_value(true, semantic_tag::none, *this, ec);
 1509|      0|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1510|      0|                        {
 1511|      0|                            return;
 1512|      0|                        }
 1513|      0|                        more_ = !cursor_mode_;
 1514|      0|                        break;
 1515|      0|                    case 0x16:
  ------------------
  |  Branch (1515:21): [True: 0, False: 6]
  ------------------
 1516|      0|                        source_.ignore(1);
 1517|      0|                        visitor.null_value(semantic_tag::none, *this, ec);
 1518|      0|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1519|      0|                        {
 1520|      0|                            return;
 1521|      0|                        }
 1522|      0|                        more_ = !cursor_mode_;
 1523|      0|                        break;
 1524|      6|                    case 0x17:
  ------------------
  |  Branch (1524:21): [True: 6, False: 0]
  ------------------
 1525|      6|                        source_.ignore(1);
 1526|      6|                        visitor.null_value(semantic_tag::undefined, *this, ec);
 1527|      6|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      6|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6]
  |  |  ------------------
  ------------------
 1528|      0|                        {
 1529|      0|                            return;
 1530|      0|                        }
 1531|      6|                        more_ = !cursor_mode_;
 1532|      6|                        break;
 1533|      0|                    case 0x19: // Half-Precision Float (two-byte IEEE 754)
  ------------------
  |  Branch (1533:21): [True: 0, False: 6]
  ------------------
 1534|      0|                    {
 1535|      0|                        source_.ignore(1);
 1536|      0|                        uint64_t val = read_unsigned_integer(info, ec);
 1537|      0|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1538|      0|                        {
 1539|      0|                            return;
 1540|      0|                        }
 1541|      0|                        visitor.half_value(static_cast<uint16_t>(val), semantic_tag::none, *this, ec);
 1542|      0|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1543|      0|                        {
 1544|      0|                            return;
 1545|      0|                        }
 1546|      0|                        more_ = !cursor_mode_;
 1547|      0|                        break;
 1548|      0|                    }
 1549|      0|                    case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (1549:21): [True: 0, False: 6]
  ------------------
 1550|      0|                    case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (1550:21): [True: 0, False: 6]
  ------------------
 1551|      0|                    {
 1552|      0|                        source_.ignore(1);
 1553|      0|                        double val = read_double(info, ec);
 1554|      0|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1555|      0|                        {
 1556|      0|                            return;
 1557|      0|                        }
 1558|      0|                        semantic_tag tag = semantic_tag::none;
 1559|      0|                        if (other_tags_[item_tag])
  ------------------
  |  Branch (1559:29): [True: 0, False: 0]
  ------------------
 1560|      0|                        {
 1561|      0|                            if (raw_tag_ == 1)
  ------------------
  |  Branch (1561:33): [True: 0, False: 0]
  ------------------
 1562|      0|                            {
 1563|      0|                                tag = semantic_tag::epoch_second;
 1564|      0|                            }
 1565|      0|                            other_tags_[item_tag] = false;
 1566|      0|                        }
 1567|      0|                        visitor.double_value(val, tag, *this, ec);
 1568|      0|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1569|      0|                        {
 1570|      0|                            return;
 1571|      0|                        }
 1572|      0|                        more_ = !cursor_mode_;
 1573|      0|                        break;
 1574|      0|                    }
 1575|      0|                    default:
  ------------------
  |  Branch (1575:21): [True: 0, False: 6]
  ------------------
 1576|      0|                    {
 1577|      0|                        ec = cbor_errc::unknown_type;
 1578|      0|                        more_ = false;
 1579|      0|                        return;
 1580|      0|                    }
 1581|      6|                }
 1582|      6|                break;
 1583|      6|            }
 1584|     19|            case jsoncons::cbor::cbor_major_type::array:
  ------------------
  |  Branch (1584:13): [True: 19, False: 2.44M]
  ------------------
 1585|     19|            {
 1586|     19|                if (other_tags_[item_tag])
  ------------------
  |  Branch (1586:21): [True: 7, False: 12]
  ------------------
 1587|      7|                {
 1588|      7|                    switch (raw_tag_)
 1589|      7|                    {
 1590|      2|                        case 0x04:
  ------------------
  |  Branch (1590:25): [True: 2, False: 5]
  ------------------
 1591|      2|                            source_.ignore(1);
 1592|      2|                            text_buffer_.clear();
 1593|      2|                            read_bigdecimal(info, text_buffer_, ec);
 1594|      2|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 1595|      0|                            {
 1596|      0|                                return;
 1597|      0|                            }
 1598|      2|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
 1599|      2|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 1600|      0|                            {
 1601|      0|                                return;
 1602|      0|                            }
 1603|      2|                            more_ = !cursor_mode_;
 1604|      2|                            break;
 1605|      2|                        case 0x05:
  ------------------
  |  Branch (1605:25): [True: 2, False: 5]
  ------------------
 1606|      2|                            source_.ignore(1);
 1607|      2|                            text_buffer_.clear();
 1608|      2|                            read_bigfloat(info, text_buffer_, ec);
 1609|      2|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 1610|      0|                            {
 1611|      0|                                return;
 1612|      0|                            }
 1613|      2|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
 1614|      2|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 1615|      0|                            {
 1616|      0|                                return;
 1617|      0|                            }
 1618|      2|                            more_ = !cursor_mode_;
 1619|      2|                            break;
 1620|      1|                        case 40: // row-major storage
  ------------------
  |  Branch (1620:25): [True: 1, False: 6]
  ------------------
 1621|      1|                            order_ = mdarray_order::row_major;
 1622|      1|                            read_mdarray_header(visitor, ec);
 1623|      1|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 0]
  |  |  ------------------
  ------------------
 1624|      1|                            {
 1625|      1|                                return;
 1626|      1|                            }
 1627|      0|                            break;
 1628|      0|                        case 1040: // column-major storage
  ------------------
  |  Branch (1628:25): [True: 0, False: 7]
  ------------------
 1629|      0|                            order_ = mdarray_order::column_major;
 1630|      0|                            read_mdarray_header(visitor, ec);
 1631|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1632|      0|                            {
 1633|      0|                                return;
 1634|      0|                            }
 1635|      0|                            break;
 1636|      2|                        default:
  ------------------
  |  Branch (1636:25): [True: 2, False: 5]
  ------------------
 1637|      2|                            source_.ignore(1);
 1638|      2|                            begin_array(info, visitor, ec);
 1639|      2|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 1640|      0|                            {
 1641|      0|                                return;
 1642|      0|                            }
 1643|      2|                            break;
 1644|      7|                    }
 1645|      6|                    other_tags_[item_tag] = false;
 1646|      6|                }
 1647|     12|                else
 1648|     12|                {
 1649|     12|                    source_.ignore(1);
 1650|     12|                    begin_array(info, visitor, ec);
 1651|     12|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     12|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 12]
  |  |  ------------------
  ------------------
 1652|      0|                    {
 1653|      0|                        return;
 1654|      0|                    }
 1655|     12|                }
 1656|     18|                break;
 1657|     19|            }
 1658|    157|            case jsoncons::cbor::cbor_major_type::map:
  ------------------
  |  Branch (1658:13): [True: 157, False: 2.44M]
  ------------------
 1659|    157|            {
 1660|    157|                source_.ignore(1);
 1661|    157|                begin_object(info, visitor, ec);
 1662|    157|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    157|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 157]
  |  |  ------------------
  ------------------
 1663|      0|                {
 1664|      0|                    return;
 1665|      0|                }
 1666|    157|                break;
 1667|    157|            }
 1668|    157|            default:
  ------------------
  |  Branch (1668:13): [True: 0, False: 2.44M]
  ------------------
 1669|      0|                ec = cbor_errc::invalid_major_type;
 1670|      0|                more_ = false;
 1671|      0|                return;
 1672|  2.44M|        }
 1673|  2.44M|        other_tags_[item_tag] = false;
 1674|  2.44M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_tagsERNS3_10error_codeE:
 2821|  2.44M|    {
 2822|  2.44M|        auto c = source_.peek();
 2823|  2.44M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  2.44M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 2.44M]
  |  |  ------------------
  ------------------
 2824|      1|        {
 2825|      1|            ec = cbor_errc::unexpected_eof;
 2826|      1|            more_ = false;
 2827|      1|            return;
 2828|      1|        }
 2829|  2.44M|        jsoncons::cbor::cbor_major_type major_type = get_major_type(c.value);
 2830|       |
 2831|  2.44M|        while (major_type == jsoncons::cbor::cbor_major_type::semantic_tag)
  ------------------
  |  Branch (2831:16): [True: 447, False: 2.44M]
  ------------------
 2832|    447|        {
 2833|    447|            uint8_t info = get_additional_info(c.value);
 2834|    447|            if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|    447|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 447]
  |  |  |  Branch (79:50): [True: 0, False: 447]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2835|      0|            {
 2836|      0|                ec = cbor_errc::reserved_additional_info;
 2837|      0|                more_ = false;
 2838|      0|                return;
 2839|      0|            }
 2840|    447|            source_.ignore(1);
 2841|    447|            uint64_t val = read_unsigned_integer(info, ec);
 2842|    447|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    447|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 447]
  |  |  ------------------
  ------------------
 2843|      0|            {
 2844|      0|                return;
 2845|      0|            }
 2846|    447|            switch(val)
 2847|    447|            {
 2848|     87|                case 25: // stringref
  ------------------
  |  Branch (2848:17): [True: 87, False: 360]
  ------------------
 2849|     87|                    other_tags_[stringref_tag] = true;
 2850|     87|                    break;
 2851|      2|                case 256: // stringref-namespace
  ------------------
  |  Branch (2851:17): [True: 2, False: 445]
  ------------------
 2852|      2|                    other_tags_[stringref_namespace_tag] = true;
 2853|      2|                    break;
 2854|    358|                default:
  ------------------
  |  Branch (2854:17): [True: 358, False: 89]
  ------------------
 2855|    358|                    other_tags_[item_tag] = true;
 2856|    358|                    raw_tag_ = val;
 2857|    358|                    break;
 2858|    447|            }
 2859|    447|            c = source_.peek();
 2860|    447|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|    447|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 447]
  |  |  ------------------
  ------------------
 2861|      0|            {
 2862|      0|                ec = cbor_errc::unexpected_eof;
 2863|      0|                more_ = false;
 2864|      0|                return;
 2865|      0|            }
 2866|    447|            major_type = get_major_type(c.value);
 2867|    447|        }
 2868|  2.44M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_unsigned_integerEhRNS3_10error_codeE:
 2351|  3.49M|    {
 2352|  3.49M|        switch (info)
 2353|  3.49M|        {
 2354|  3.49M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  3.49M|    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: 4, False: 3.49M]
  |  |  |  Branch (18:20): [True: 7, False: 3.49M]
  |  |  |  Branch (18:30): [True: 4, False: 3.49M]
  |  |  |  Branch (18:40): [True: 4, False: 3.49M]
  |  |  |  Branch (18:50): [True: 21, False: 3.49M]
  |  |  |  Branch (18:60): [True: 0, False: 3.49M]
  |  |  |  Branch (18:70): [True: 111k, False: 3.38M]
  |  |  |  Branch (18:80): [True: 3, False: 3.49M]
  |  |  |  Branch (18:90): [True: 1, False: 3.49M]
  |  |  |  Branch (18:100): [True: 2, False: 3.49M]
  |  |  |  Branch (18:110): [True: 3, False: 3.49M]
  |  |  |  Branch (18:120): [True: 80.5k, False: 3.41M]
  |  |  |  Branch (18:130): [True: 0, False: 3.49M]
  |  |  |  Branch (18:140): [True: 0, False: 3.49M]
  |  |  |  Branch (18:150): [True: 13, False: 3.49M]
  |  |  |  Branch (18:160): [True: 6, False: 3.49M]
  |  |  |  Branch (18:170): [True: 30, False: 3.49M]
  |  |  |  Branch (18:180): [True: 1, False: 3.49M]
  |  |  |  Branch (18:190): [True: 1, False: 3.49M]
  |  |  |  Branch (18:200): [True: 0, False: 3.49M]
  |  |  |  Branch (18:210): [True: 0, False: 3.49M]
  |  |  |  Branch (18:220): [True: 7, False: 3.49M]
  |  |  ------------------
  ------------------
  |  Branch (2354:13): [True: 3.30M, False: 192k]
  ------------------
 2355|  3.49M|            {
 2356|  3.49M|                return info;
 2357|  75.3M|            }
 2358|    497|            case 0x18: // Unsigned integer (one-byte uint8_t follows)
  ------------------
  |  Branch (2358:13): [True: 497, False: 3.49M]
  ------------------
 2359|    497|            {
 2360|    497|                uint8_t b;
 2361|    497|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2361:21): [True: 0, False: 497]
  ------------------
 2362|      0|                {
 2363|      0|                    ec = cbor_errc::unexpected_eof;
 2364|      0|                    return uint64_t{};
 2365|      0|                }
 2366|    497|                return b;
 2367|    497|            }
 2368|      3|            case 0x19: // Unsigned integer (two-byte uint16_t follows)
  ------------------
  |  Branch (2368:13): [True: 3, False: 3.49M]
  ------------------
 2369|      3|            {
 2370|      3|                uint8_t buf[sizeof(uint16_t)];
 2371|      3|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (2371:21): [True: 0, False: 3]
  ------------------
 2372|      0|                {
 2373|      0|                    ec = cbor_errc::unexpected_eof;
 2374|      0|                    return uint64_t{};
 2375|      0|                }
 2376|      3|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 2377|      3|                return u;
 2378|      3|            }
 2379|      0|            case 0x1a: // Unsigned integer (four-byte uint32_t follows)
  ------------------
  |  Branch (2379:13): [True: 0, False: 3.49M]
  ------------------
 2380|      0|            {
 2381|      0|                uint8_t buf[sizeof(uint32_t)];
 2382|      0|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (2382:21): [True: 0, False: 0]
  ------------------
 2383|      0|                {
 2384|      0|                    ec = cbor_errc::unexpected_eof;
 2385|      0|                    return uint64_t{};
 2386|      0|                }
 2387|      0|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 2388|      0|                return u;
 2389|      0|            }
 2390|      9|            case 0x1b: // Unsigned integer (eight-byte uint64_t follows)
  ------------------
  |  Branch (2390:13): [True: 9, False: 3.49M]
  ------------------
 2391|      9|            {
 2392|      9|                uint8_t buf[sizeof(uint64_t)];
 2393|      9|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (2393:21): [True: 0, False: 9]
  ------------------
 2394|      0|                {
 2395|      0|                    ec = cbor_errc::unexpected_eof;
 2396|      0|                    return uint64_t{};
 2397|      0|                }
 2398|      9|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 2399|      9|                return u;
 2400|      9|            }
 2401|      0|            default:
  ------------------
  |  Branch (2401:13): [True: 0, False: 3.49M]
  ------------------
 2402|      0|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (2402:22): [True: 0, False: 0]
  ------------------
 2403|      0|                return uint64_t{};
 2404|  3.49M|        }
 2405|  3.49M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13handle_stringERNS_21basic_generic_visitorIcEERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERNS3_10error_codeE:
 2871|   111k|    {
 2872|   111k|        semantic_tag tag = semantic_tag::none;
 2873|   111k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2873:13): [True: 0, False: 111k]
  ------------------
 2874|      0|        {
 2875|      0|            switch (raw_tag_)
 2876|      0|            {
 2877|      0|                case 0:
  ------------------
  |  Branch (2877:17): [True: 0, False: 0]
  ------------------
 2878|      0|                    tag = semantic_tag::datetime;
 2879|      0|                    break;
 2880|      0|                case 32:
  ------------------
  |  Branch (2880:17): [True: 0, False: 0]
  ------------------
 2881|      0|                    tag = semantic_tag::uri;
 2882|      0|                    break;
 2883|      0|                case 33:
  ------------------
  |  Branch (2883:17): [True: 0, False: 0]
  ------------------
 2884|      0|                    tag = semantic_tag::base64url;
 2885|      0|                    break;
 2886|      0|                case 34:
  ------------------
  |  Branch (2886:17): [True: 0, False: 0]
  ------------------
 2887|      0|                    tag = semantic_tag::base64;
 2888|      0|                    break;
 2889|      0|                default:
  ------------------
  |  Branch (2889:17): [True: 0, False: 0]
  ------------------
 2890|      0|                    break;
 2891|      0|            }
 2892|      0|            other_tags_[item_tag] = false;
 2893|      0|        }
 2894|   111k|        visitor.string_value(v, tag, *this, ec);
 2895|   111k|        more_ = !cursor_mode_;
 2896|   111k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferC2ERKNS_16byte_string_viewE:
  913|     85|            : bytes(b)
  914|     85|        {
  915|     85|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_bufferEEEvT_RNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2913|     85|    {
 2914|     85|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2914:13): [True: 85, False: 0]
  ------------------
 2915|     85|        {
 2916|     85|            switch (raw_tag_)
 2917|     85|            {
 2918|      0|                case 0x2:
  ------------------
  |  Branch (2918:17): [True: 0, False: 85]
  ------------------
 2919|      0|                {
 2920|      0|                    auto bytes = read.view(ec);
 2921|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2922|      0|                    {
 2923|      0|                        more_ = false;
 2924|      0|                        return;
 2925|      0|                    }
 2926|      0|                    bigint b;
 2927|      0|                    bigint::from_sign_magnitude(false, bytes.data(), bytes.size(), b);
 2928|      0|                    text_buffer_.clear();
 2929|      0|                    b.append_to_string(text_buffer_);
 2930|      0|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2931|      0|                    more_ = !cursor_mode_;
 2932|      0|                    break;
 2933|      0|                }
 2934|      0|                case 0x3:
  ------------------
  |  Branch (2934:17): [True: 0, False: 85]
  ------------------
 2935|      0|                {
 2936|      0|                    auto bytes = read.view(ec);
 2937|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2938|      0|                    {
 2939|      0|                        more_ = false;
 2940|      0|                        return;
 2941|      0|                    }
 2942|      0|                    bigint b;
 2943|      0|                    bigint::from_sign_magnitude(false, bytes.data(), bytes.size(), b);
 2944|      0|                    b = -1 - b;
 2945|      0|                    text_buffer_.clear();
 2946|      0|                    b.append_to_string(text_buffer_);
 2947|      0|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2948|      0|                    more_ = !cursor_mode_;
 2949|      0|                    break;
 2950|      0|                }
 2951|      0|                case 0x15:
  ------------------
  |  Branch (2951:17): [True: 0, False: 85]
  ------------------
 2952|      0|                case 0x16:
  ------------------
  |  Branch (2952:17): [True: 0, False: 85]
  ------------------
 2953|      0|                case 0x17:
  ------------------
  |  Branch (2953:17): [True: 0, False: 85]
  ------------------
 2954|      0|                {
 2955|      0|                    auto bytes = read.view(ec);
 2956|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2957|      0|                    {
 2958|      0|                        more_ = false;
 2959|      0|                        return;
 2960|      0|                    }
 2961|      0|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2961:46): [True: 0, False: 0]
  ------------------
 2962|      0|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2962:27): [True: 0, False: 0]
  ------------------
 2963|      0|                        : semantic_tag::base16;
 2964|      0|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2965|      0|                    more_ = !cursor_mode_;
 2966|      0|                    break;
 2967|      0|                }
 2968|      0|                case 0x40:
  ------------------
  |  Branch (2968:17): [True: 0, False: 85]
  ------------------
 2969|      0|                {
 2970|      0|                    array_tag_ = typed_array_tags::uint8;
 2971|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2972|      0|                    read(array_buffer, ec);
 2973|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2974|      0|                    {
 2975|      0|                        more_ = false;
 2976|      0|                        return;
 2977|      0|                    }
 2978|      0|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2979|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2979:25): [True: 0, False: 0]
  |  Branch (2979:42): [True: 0, False: 0]
  ------------------
 2980|      0|                    {
 2981|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2981:29): [True: 0, False: 0]
  ------------------
 2982|      0|                        {
 2983|      0|                            ec = cbor_errc::bad_extents;
 2984|      0|                            more_ = false;
 2985|      0|                            return;
 2986|      0|                        }
 2987|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2988|      0|                            typed_array_tags::uint8, extents_, order_, max_dimensions_, alloc_);
 2989|      0|                        typed_array_stack_.push_back(iter);
 2990|      0|                        iter->next(visitor, *this, ec);
 2991|      0|                    }
 2992|      0|                    else
 2993|      0|                    {
 2994|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2995|      0|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2996|      0|                        typed_array_stack_.push_back(iter);
 2997|      0|                        iter->next(visitor, *this, ec);
 2998|      0|                    }
 2999|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3000|      0|                    more_ = !cursor_mode_;
 3001|      0|                    break;
 3002|      0|                }
 3003|      0|                case 0x44:
  ------------------
  |  Branch (3003:17): [True: 0, False: 85]
  ------------------
 3004|      0|                {
 3005|      0|                    array_tag_ = typed_array_tags::uint8;
 3006|      0|                    typed_array_tag_ = semantic_tag::clamped;
 3007|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3008|      0|                    read(array_buffer, ec);
 3009|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3010|      0|                    {
 3011|      0|                        more_ = false;
 3012|      0|                        return;
 3013|      0|                    }
 3014|      0|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 3015|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3015:25): [True: 0, False: 0]
  |  Branch (3015:42): [True: 0, False: 0]
  ------------------
 3016|      0|                    {
 3017|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3017:29): [True: 0, False: 0]
  ------------------
 3018|      0|                        {
 3019|      0|                            ec = cbor_errc::bad_extents;
 3020|      0|                            more_ = false;
 3021|      0|                            return;
 3022|      0|                        }
 3023|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3024|      0|                            typed_array_tags::uint8, extents_, order_, max_dimensions_, alloc_);
 3025|      0|                        typed_array_stack_.push_back(iter);
 3026|      0|                        iter->next(visitor, *this, ec);
 3027|      0|                    }
 3028|      0|                    else
 3029|      0|                    {
 3030|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3031|      0|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 3032|      0|                        typed_array_stack_.push_back(iter);
 3033|      0|                        iter->next(visitor, *this, ec);
 3034|      0|                    }
 3035|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3036|      0|                    more_ = !cursor_mode_;
 3037|      0|                    break;
 3038|      0|                }
 3039|      0|                case 0x41:
  ------------------
  |  Branch (3039:17): [True: 0, False: 85]
  ------------------
 3040|      0|                case 0x45:
  ------------------
  |  Branch (3040:17): [True: 0, False: 85]
  ------------------
 3041|      0|                {
 3042|      0|                    array_tag_ = typed_array_tags::uint16;
 3043|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3044|      0|                    read(array_buffer, ec);
 3045|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3046|      0|                    {
 3047|      0|                        more_ = false;
 3048|      0|                        return;
 3049|      0|                    }
 3050|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3051|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3052|      0|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 3053|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3053:25): [True: 0, False: 0]
  ------------------
 3054|      0|                    {
 3055|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3055:49): [True: 0, False: 0]
  ------------------
 3056|      0|                        {
 3057|      0|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 3058|      0|                        }
 3059|      0|                    }
 3060|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3060:25): [True: 0, False: 0]
  |  Branch (3060:42): [True: 0, False: 0]
  ------------------
 3061|      0|                    {
 3062|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3062:29): [True: 0, False: 0]
  ------------------
 3063|      0|                        {
 3064|      0|                            ec = cbor_errc::bad_extents;
 3065|      0|                            more_ = false;
 3066|      0|                            return;
 3067|      0|                        }
 3068|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3069|      0|                            typed_array_tags::uint16, extents_, order_, max_dimensions_, alloc_);
 3070|      0|                        typed_array_stack_.push_back(iter);
 3071|      0|                        iter->next(visitor, *this, ec);
 3072|      0|                    }
 3073|      0|                    else
 3074|      0|                    {
 3075|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3076|      0|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 3077|      0|                        typed_array_stack_.push_back(iter);
 3078|      0|                        iter->next(visitor, *this, ec);
 3079|      0|                    }
 3080|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3081|      0|                    more_ = !cursor_mode_;
 3082|      0|                    break;
 3083|      0|                }
 3084|      0|                case 0x42:
  ------------------
  |  Branch (3084:17): [True: 0, False: 85]
  ------------------
 3085|      0|                case 0x46:
  ------------------
  |  Branch (3085:17): [True: 0, False: 85]
  ------------------
 3086|      0|                {
 3087|      0|                    array_tag_ = typed_array_tags::uint32;
 3088|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3089|      0|                    read(array_buffer, ec);
 3090|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3091|      0|                    {
 3092|      0|                        more_ = false;
 3093|      0|                        return;
 3094|      0|                    }
 3095|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3096|      0|                    jsoncons::endian e = get_typed_array_endianness(tag);
 3097|      0|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 3098|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3098:25): [True: 0, False: 0]
  ------------------
 3099|      0|                    {
 3100|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3100:49): [True: 0, False: 0]
  ------------------
 3101|      0|                        {
 3102|      0|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 3103|      0|                        }
 3104|      0|                    }
 3105|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3105:25): [True: 0, False: 0]
  |  Branch (3105:42): [True: 0, False: 0]
  ------------------
 3106|      0|                    {
 3107|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3107:29): [True: 0, False: 0]
  ------------------
 3108|      0|                        {
 3109|      0|                            ec = cbor_errc::bad_extents;
 3110|      0|                            more_ = false;
 3111|      0|                            return;
 3112|      0|                        }
 3113|      0|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3114|      0|                            typed_array_tags::uint32, extents_, order_, max_dimensions_, alloc_);
 3115|      0|                        typed_array_stack_.push_back(iter);
 3116|      0|                        iter->next(visitor, *this, ec);
 3117|      0|                    }
 3118|      0|                    else
 3119|      0|                    {
 3120|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3121|      0|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 3122|      0|                        typed_array_stack_.push_back(iter);
 3123|      0|                        iter->next(visitor, *this, ec);
 3124|      0|                    }
 3125|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3126|      0|                    more_ = !cursor_mode_;
 3127|      0|                    break;
 3128|      0|                }
 3129|      0|                case 0x43:
  ------------------
  |  Branch (3129:17): [True: 0, False: 85]
  ------------------
 3130|      0|                case 0x47:
  ------------------
  |  Branch (3130:17): [True: 0, False: 85]
  ------------------
 3131|      0|                {
 3132|      0|                    array_tag_ = typed_array_tags::uint64;
 3133|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3134|      0|                    read(array_buffer, ec);
 3135|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3136|      0|                    {
 3137|      0|                        more_ = false;
 3138|      0|                        return;
 3139|      0|                    }
 3140|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3141|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3142|      0|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 3143|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3143:25): [True: 0, False: 0]
  ------------------
 3144|      0|                    {
 3145|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3145:49): [True: 0, False: 0]
  ------------------
 3146|      0|                        {
 3147|      0|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 3148|      0|                        }
 3149|      0|                    }
 3150|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3150:25): [True: 0, False: 0]
  |  Branch (3150:42): [True: 0, False: 0]
  ------------------
 3151|      0|                    {
 3152|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3152:29): [True: 0, False: 0]
  ------------------
 3153|      0|                        {
 3154|      0|                            ec = cbor_errc::bad_extents;
 3155|      0|                            more_ = false;
 3156|      0|                            return;
 3157|      0|                        }
 3158|      0|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3159|      0|                            typed_array_tags::uint64, extents_, order_, max_dimensions_, alloc_);
 3160|      0|                        typed_array_stack_.push_back(iter);
 3161|      0|                        iter->next(visitor, *this, ec);
 3162|      0|                    }
 3163|      0|                    else
 3164|      0|                    {
 3165|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3166|      0|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 3167|      0|                        typed_array_stack_.push_back(iter);
 3168|      0|                        iter->next(visitor, *this, ec);
 3169|      0|                    }
 3170|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3171|      0|                    more_ = !cursor_mode_;
 3172|      0|                    break;
 3173|      0|                }
 3174|      0|                case 0x48:
  ------------------
  |  Branch (3174:17): [True: 0, False: 85]
  ------------------
 3175|      0|                {
 3176|      0|                    array_tag_ = typed_array_tags::int8;
 3177|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3178|      0|                    read(array_buffer, ec);
 3179|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3180|      0|                    {
 3181|      0|                        more_ = false;
 3182|      0|                        return;
 3183|      0|                    }
 3184|      0|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 3185|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3185:25): [True: 0, False: 0]
  |  Branch (3185:42): [True: 0, False: 0]
  ------------------
 3186|      0|                    {
 3187|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3187:29): [True: 0, False: 0]
  ------------------
 3188|      0|                        {
 3189|      0|                            ec = cbor_errc::bad_extents;
 3190|      0|                            more_ = false;
 3191|      0|                            return;
 3192|      0|                        }
 3193|      0|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3194|      0|                            typed_array_tags::int8, extents_, order_, max_dimensions_, alloc_);
 3195|      0|                        typed_array_stack_.push_back(iter);
 3196|      0|                        iter->next(visitor, *this, ec);
 3197|      0|                    }
 3198|      0|                    else
 3199|      0|                    {
 3200|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3201|      0|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 3202|      0|                        typed_array_stack_.push_back(iter);
 3203|      0|                        iter->next(visitor, *this, ec);
 3204|      0|                    }
 3205|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3206|      0|                    more_ = !cursor_mode_;
 3207|      0|                    break;
 3208|      0|                }
 3209|      0|                case 0x49:
  ------------------
  |  Branch (3209:17): [True: 0, False: 85]
  ------------------
 3210|      0|                case 0x4d:
  ------------------
  |  Branch (3210:17): [True: 0, False: 85]
  ------------------
 3211|      0|                {
 3212|      0|                    array_tag_ = typed_array_tags::int16;
 3213|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3214|      0|                    read(array_buffer, ec);
 3215|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3216|      0|                    {
 3217|      0|                        more_ = false;
 3218|      0|                        return;
 3219|      0|                    }
 3220|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3221|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3222|      0|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 3223|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3223:25): [True: 0, False: 0]
  ------------------
 3224|      0|                    {
 3225|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3225:49): [True: 0, False: 0]
  ------------------
 3226|      0|                        {
 3227|      0|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 3228|      0|                        }
 3229|      0|                    }
 3230|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3230:25): [True: 0, False: 0]
  |  Branch (3230:42): [True: 0, False: 0]
  ------------------
 3231|      0|                    {
 3232|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3232:29): [True: 0, False: 0]
  ------------------
 3233|      0|                        {
 3234|      0|                            ec = cbor_errc::bad_extents;
 3235|      0|                            more_ = false;
 3236|      0|                            return;
 3237|      0|                        }
 3238|      0|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3239|      0|                            typed_array_tags::int16, extents_, order_, max_dimensions_, alloc_);
 3240|      0|                        typed_array_stack_.push_back(iter);
 3241|      0|                        iter->next(visitor, *this, ec);
 3242|      0|                    }
 3243|      0|                    else
 3244|      0|                    {
 3245|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3246|      0|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 3247|      0|                        typed_array_stack_.push_back(iter);
 3248|      0|                        iter->next(visitor, *this, ec);
 3249|      0|                    }
 3250|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3251|      0|                    more_ = !cursor_mode_;
 3252|      0|                    break;
 3253|      0|                }
 3254|      0|                case 0x4a:
  ------------------
  |  Branch (3254:17): [True: 0, False: 85]
  ------------------
 3255|      0|                case 0x4e:
  ------------------
  |  Branch (3255:17): [True: 0, False: 85]
  ------------------
 3256|      0|                {
 3257|      0|                    array_tag_ = typed_array_tags::int32;
 3258|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3259|      0|                    read(array_buffer, ec);
 3260|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3261|      0|                    {
 3262|      0|                        more_ = false;
 3263|      0|                        return;
 3264|      0|                    }
 3265|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3266|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3267|      0|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 3268|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3268:25): [True: 0, False: 0]
  ------------------
 3269|      0|                    {
 3270|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3270:49): [True: 0, False: 0]
  ------------------
 3271|      0|                        {
 3272|      0|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 3273|      0|                        }
 3274|      0|                    }
 3275|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3275:25): [True: 0, False: 0]
  |  Branch (3275:42): [True: 0, False: 0]
  ------------------
 3276|      0|                    {
 3277|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3277:29): [True: 0, False: 0]
  ------------------
 3278|      0|                        {
 3279|      0|                            ec = cbor_errc::bad_extents;
 3280|      0|                            more_ = false;
 3281|      0|                            return;
 3282|      0|                        }
 3283|      0|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3284|      0|                            typed_array_tags::int32, extents_, order_, max_dimensions_, alloc_);
 3285|      0|                        typed_array_stack_.push_back(iter);
 3286|      0|                        iter->next(visitor, *this, ec);
 3287|      0|                    }
 3288|      0|                    else
 3289|      0|                    {
 3290|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3291|      0|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 3292|      0|                        typed_array_stack_.push_back(iter);
 3293|      0|                        iter->next(visitor, *this, ec);
 3294|      0|                    }
 3295|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3296|      0|                    more_ = !cursor_mode_;
 3297|      0|                    break;
 3298|      0|                }
 3299|      0|                case 0x4b:
  ------------------
  |  Branch (3299:17): [True: 0, False: 85]
  ------------------
 3300|     83|                case 0x4f:
  ------------------
  |  Branch (3300:17): [True: 83, False: 2]
  ------------------
 3301|     83|                {
 3302|     83|                    array_tag_ = typed_array_tags::int64;
 3303|     83|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3304|     83|                    read(array_buffer, ec);
 3305|     83|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     83|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 83]
  |  |  ------------------
  ------------------
 3306|      0|                    {
 3307|      0|                        more_ = false;
 3308|      0|                        return;
 3309|      0|                    }
 3310|     83|                    const uint8_t tag = (uint8_t)raw_tag_;
 3311|     83|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3312|     83|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 3313|     83|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3313:25): [True: 0, False: 83]
  ------------------
 3314|      0|                    {
 3315|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3315:49): [True: 0, False: 0]
  ------------------
 3316|      0|                        {
 3317|      0|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 3318|      0|                        }
 3319|      0|                    }
 3320|     83|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3320:25): [True: 83, False: 0]
  |  Branch (3320:42): [True: 0, False: 83]
  ------------------
 3321|      0|                    {
 3322|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3322:29): [True: 0, False: 0]
  ------------------
 3323|      0|                        {
 3324|      0|                            ec = cbor_errc::bad_extents;
 3325|      0|                            more_ = false;
 3326|      0|                            return;
 3327|      0|                        }
 3328|      0|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3329|      0|                            typed_array_tags::int64, extents_, order_, max_dimensions_, alloc_);
 3330|      0|                        typed_array_stack_.push_back(iter);
 3331|      0|                        iter->next(visitor, *this, ec);
 3332|      0|                    }
 3333|     83|                    else
 3334|     83|                    {
 3335|     83|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3336|     83|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 3337|     83|                        typed_array_stack_.push_back(iter);
 3338|     83|                        iter->next(visitor, *this, ec);
 3339|     83|                    }
 3340|     83|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3341|     83|                    more_ = !cursor_mode_;
 3342|     83|                    break;
 3343|     83|                }
 3344|      0|                case 0x50:
  ------------------
  |  Branch (3344:17): [True: 0, False: 85]
  ------------------
 3345|      0|                case 0x54:
  ------------------
  |  Branch (3345:17): [True: 0, False: 85]
  ------------------
 3346|      0|                {
 3347|      0|                    array_tag_ = typed_array_tags::half_float;
 3348|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3349|      0|                    read(array_buffer, ec);
 3350|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3351|      0|                    {
 3352|      0|                        more_ = false;
 3353|      0|                        return;
 3354|      0|                    }
 3355|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3356|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3357|      0|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 3358|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3358:25): [True: 0, False: 0]
  ------------------
 3359|      0|                    {
 3360|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3360:49): [True: 0, False: 0]
  ------------------
 3361|      0|                        {
 3362|      0|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 3363|      0|                        }
 3364|      0|                    }
 3365|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3365:25): [True: 0, False: 0]
  |  Branch (3365:42): [True: 0, False: 0]
  ------------------
 3366|      0|                    {
 3367|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3367:29): [True: 0, False: 0]
  ------------------
 3368|      0|                        {
 3369|      0|                            ec = cbor_errc::bad_extents;
 3370|      0|                            more_ = false;
 3371|      0|                            return;
 3372|      0|                        }
 3373|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 3374|      0|                            typed_array_tags::half_float, extents_, order_, max_dimensions_, alloc_);
 3375|      0|                        typed_array_stack_.push_back(iter);
 3376|      0|                        iter->next(visitor, *this, ec);
 3377|      0|                    }
 3378|      0|                    else
 3379|      0|                    {
 3380|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 3381|      0|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 3382|      0|                        typed_array_stack_.push_back(iter);
 3383|      0|                        iter->next(visitor, *this, ec);
 3384|      0|                    }
 3385|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3386|      0|                    more_ = !cursor_mode_;
 3387|      0|                    break;
 3388|      0|                }
 3389|      0|                case 0x51:
  ------------------
  |  Branch (3389:17): [True: 0, False: 85]
  ------------------
 3390|      0|                case 0x55:
  ------------------
  |  Branch (3390:17): [True: 0, False: 85]
  ------------------
 3391|      0|                {
 3392|      0|                    array_tag_ = typed_array_tags::float32;
 3393|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3394|      0|                    read(array_buffer, ec);
 3395|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3396|      0|                    {
 3397|      0|                        more_ = false;
 3398|      0|                        return;
 3399|      0|                    }
 3400|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3401|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3402|      0|                    auto ta = typed_array_cast<float>(array_buffer);
 3403|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3403:25): [True: 0, False: 0]
  ------------------
 3404|      0|                    {
 3405|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3405:49): [True: 0, False: 0]
  ------------------
 3406|      0|                        {
 3407|      0|                            ta[i] = binary::byte_swap<float>(ta[i]);
 3408|      0|                        }
 3409|      0|                    }
 3410|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3410:25): [True: 0, False: 0]
  |  Branch (3410:42): [True: 0, False: 0]
  ------------------
 3411|      0|                    {
 3412|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3412:29): [True: 0, False: 0]
  ------------------
 3413|      0|                        {
 3414|      0|                            ec = cbor_errc::bad_extents;
 3415|      0|                            more_ = false;
 3416|      0|                            return;
 3417|      0|                        }
 3418|      0|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3419|      0|                            typed_array_tags::float32, extents_, order_, max_dimensions_, alloc_);
 3420|      0|                        typed_array_stack_.push_back(iter);
 3421|      0|                        iter->next(visitor, *this, ec);
 3422|      0|                    }
 3423|      0|                    else
 3424|      0|                    {
 3425|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3426|      0|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 3427|      0|                        typed_array_stack_.push_back(iter);
 3428|      0|                        iter->next(visitor, *this, ec);
 3429|      0|                    }
 3430|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3431|      0|                    more_ = !cursor_mode_;
 3432|      0|                    break;
 3433|      0|                }
 3434|      0|                case 0x52:
  ------------------
  |  Branch (3434:17): [True: 0, False: 85]
  ------------------
 3435|      0|                case 0x56:
  ------------------
  |  Branch (3435:17): [True: 0, False: 85]
  ------------------
 3436|      0|                {
 3437|      0|                    array_tag_ = typed_array_tags::float64;
 3438|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3439|      0|                    read(array_buffer, ec);
 3440|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3441|      0|                    {
 3442|      0|                        more_ = false;
 3443|      0|                        return;
 3444|      0|                    }
 3445|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3446|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3447|      0|                    auto ta = typed_array_cast<double>(array_buffer);
 3448|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3448:25): [True: 0, False: 0]
  ------------------
 3449|      0|                    {
 3450|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3450:49): [True: 0, False: 0]
  ------------------
 3451|      0|                        {
 3452|      0|                            ta[i] = binary::byte_swap<double>(ta[i]);
 3453|      0|                        }
 3454|      0|                    }
 3455|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3455:25): [True: 0, False: 0]
  |  Branch (3455:42): [True: 0, False: 0]
  ------------------
 3456|      0|                    {
 3457|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3457:29): [True: 0, False: 0]
  ------------------
 3458|      0|                        {
 3459|      0|                            ec = cbor_errc::bad_extents;
 3460|      0|                            more_ = false;
 3461|      0|                            return;
 3462|      0|                        }
 3463|      0|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3464|      0|                            typed_array_tags::float64, extents_, order_, max_dimensions_, alloc_);
 3465|      0|                        typed_array_stack_.push_back(iter);
 3466|      0|                        iter->next(visitor, *this, ec);
 3467|      0|                    }
 3468|      0|                    else
 3469|      0|                    {
 3470|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3471|      0|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 3472|      0|                        typed_array_stack_.push_back(iter);
 3473|      0|                        iter->next(visitor, *this, ec);
 3474|      0|                    }
 3475|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3476|      0|                    more_ = !cursor_mode_;
 3477|      0|                    break;
 3478|      0|                }
 3479|      0|                case 0x53:
  ------------------
  |  Branch (3479:17): [True: 0, False: 85]
  ------------------
 3480|      0|                case 0x57:
  ------------------
  |  Branch (3480:17): [True: 0, False: 85]
  ------------------
 3481|      0|                {
 3482|      0|                    ec = cbor_errc::float128_not_supported;
 3483|      0|                    more_ = !cursor_mode_;
 3484|      0|                    return;
 3485|      0|                }
 3486|      2|                default:
  ------------------
  |  Branch (3486:17): [True: 2, False: 83]
  ------------------
 3487|      2|                {
 3488|      2|                    auto bytes = read.view(ec);
 3489|      2|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 3490|      0|                    {
 3491|      0|                        more_ = false;
 3492|      0|                        return;
 3493|      0|                    }
 3494|      2|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 3495|      2|                    more_ = !cursor_mode_;
 3496|      2|                    break;
 3497|      2|                }
 3498|     85|            }
 3499|     85|            other_tags_[item_tag] = false;
 3500|     85|        }
 3501|      0|        else
 3502|      0|        {
 3503|      0|            auto bytes = read.view(ec);
 3504|      0|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3505|      0|            {
 3506|      0|                return;
 3507|      0|            }
 3508|      0|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 3509|      0|            more_ = !cursor_mode_;
 3510|      0|        }
 3511|     85|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_buffer4viewERNS3_10error_codeE:
  928|      2|        {
  929|      2|            return bytes;
  930|      2|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  918|     83|        {
  919|     83|            c.clear();
  920|     83|            c.reserve(bytes.size());
  921|     83|            for (auto b : bytes)
  ------------------
  |  Branch (921:25): [True: 249, False: 83]
  ------------------
  922|    249|            {
  923|    249|                c.push_back(b);
  924|    249|            }
  925|     83|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26get_typed_array_endiannessEh:
 2899|     83|    {
 2900|     83|        return ((tag & detail::cbor_array_tags_e_mask) >> detail::cbor_array_tags_e_shift) == 0 ? jsoncons::endian::big : jsoncons::endian::little; 
  ------------------
  |  Branch (2900:16): [True: 0, False: 83]
  ------------------
 2901|     83|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_negative_integerEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2246|      4|    {
 2247|      4|        semantic_tag tag = semantic_tag::none;
 2248|      4|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2248:13): [True: 0, False: 4]
  ------------------
 2249|      0|        {
 2250|      0|            if (raw_tag_ == 1)
  ------------------
  |  Branch (2250:17): [True: 0, False: 0]
  ------------------
 2251|      0|            {
 2252|      0|                tag = semantic_tag::epoch_second;
 2253|      0|            }
 2254|      0|            other_tags_[item_tag] = false;
 2255|      0|        }
 2256|       |
 2257|      4|        switch (info)
 2258|      4|        {
 2259|      2|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|      2|    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: 0, False: 4]
  |  |  |  Branch (18:20): [True: 1, False: 3]
  |  |  |  Branch (18:30): [True: 0, False: 4]
  |  |  |  Branch (18:40): [True: 0, False: 4]
  |  |  |  Branch (18:50): [True: 0, False: 4]
  |  |  |  Branch (18:60): [True: 0, False: 4]
  |  |  |  Branch (18:70): [True: 0, False: 4]
  |  |  |  Branch (18:80): [True: 1, False: 3]
  |  |  |  Branch (18:90): [True: 0, False: 4]
  |  |  |  Branch (18:100): [True: 0, False: 4]
  |  |  |  Branch (18:110): [True: 0, False: 4]
  |  |  |  Branch (18:120): [True: 0, False: 4]
  |  |  |  Branch (18:130): [True: 0, False: 4]
  |  |  |  Branch (18:140): [True: 0, False: 4]
  |  |  |  Branch (18:150): [True: 0, False: 4]
  |  |  |  Branch (18:160): [True: 0, False: 4]
  |  |  |  Branch (18:170): [True: 0, False: 4]
  |  |  |  Branch (18:180): [True: 0, False: 4]
  |  |  |  Branch (18:190): [True: 0, False: 4]
  |  |  |  Branch (18:200): [True: 0, False: 4]
  |  |  |  Branch (18:210): [True: 0, False: 4]
  |  |  |  Branch (18:220): [True: 0, False: 4]
  |  |  ------------------
  ------------------
  |  Branch (2259:13): [True: 0, False: 4]
  ------------------
 2260|      2|            {
 2261|      2|                int64_t val = static_cast<int8_t>(- 1 - info);
 2262|      2|                visitor.int64_value(val, tag, *this, ec);
 2263|      2|                more_ = !cursor_mode_;
 2264|      2|                break;
 2265|     36|            }
 2266|      0|            case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (2266:13): [True: 0, False: 4]
  ------------------
 2267|      0|            {
 2268|      0|                uint8_t b;
 2269|      0|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2269:21): [True: 0, False: 0]
  ------------------
 2270|      0|                {
 2271|      0|                    ec = cbor_errc::unexpected_eof;
 2272|      0|                    more_ = false;
 2273|      0|                    return;
 2274|      0|                }
 2275|      0|                int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 2276|      0|                visitor.int64_value(val, tag, *this, ec);
 2277|      0|                more_ = !cursor_mode_;
 2278|      0|                break;
 2279|      0|            }
 2280|      0|            case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (2280:13): [True: 0, False: 4]
  ------------------
 2281|      0|            {
 2282|      0|                uint8_t buf[sizeof(uint16_t)];
 2283|      0|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (2283:21): [True: 0, False: 0]
  ------------------
 2284|      0|                {
 2285|      0|                    ec = cbor_errc::unexpected_eof;
 2286|      0|                    more_ = false;
 2287|      0|                    return;
 2288|      0|                }
 2289|      0|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 2290|      0|                int64_t val = static_cast<int64_t>(-1)- u;
 2291|      0|                visitor.int64_value(val, tag, *this, ec);
 2292|      0|                more_ = !cursor_mode_;
 2293|      0|                break;
 2294|      0|            }
 2295|      1|            case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (2295:13): [True: 1, False: 3]
  ------------------
 2296|      1|            {
 2297|      1|                uint8_t buf[sizeof(uint32_t)];
 2298|      1|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (2298:21): [True: 0, False: 1]
  ------------------
 2299|      0|                {
 2300|      0|                    ec = cbor_errc::unexpected_eof;
 2301|      0|                    more_ = false;
 2302|      0|                    return;
 2303|      0|                }
 2304|      1|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 2305|      1|                int64_t val = static_cast<int64_t>(-1)- u;
 2306|      1|                visitor.int64_value(val, tag, *this, ec);
 2307|      1|                more_ = !cursor_mode_;
 2308|      1|                break;
 2309|      1|            }
 2310|      1|            case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (2310:13): [True: 1, False: 3]
  ------------------
 2311|      1|            {
 2312|      1|                uint8_t buf[sizeof(uint64_t)];
 2313|      1|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (2313:21): [True: 0, False: 1]
  ------------------
 2314|      0|                {
 2315|      0|                    ec = cbor_errc::unexpected_eof;
 2316|      0|                    more_ = false;
 2317|      0|                    return;
 2318|      0|                }
 2319|      1|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 2320|      1|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2320:21): [True: 1, False: 0]
  ------------------
 2321|      1|                {
 2322|       |                    //ec = cbor_errc::invalid_negative_integer;
 2323|       |                    //more_ = false;
 2324|       |                    //return;
 2325|      1|                    bigint b(u);
 2326|      1|                    bigint b2 = -1 - b;
 2327|      1|                    text_buffer_.clear();
 2328|      1|                    b2.append_to_string(text_buffer_);
 2329|      1|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2330|      1|                }
 2331|      0|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2332|      0|                {
 2333|      0|                    visitor.int64_value((std::numeric_limits<int64_t>::min)(), tag, *this, ec);
 2334|      0|                }
 2335|      0|                else
 2336|      0|                {
 2337|      0|                    int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(u);
 2338|      0|                    visitor.int64_value(val, tag, *this, ec);
 2339|      0|                }
 2340|      1|                more_ = !cursor_mode_;
 2341|      1|                break;
 2342|      1|            }
 2343|      0|            default:
  ------------------
  |  Branch (2343:13): [True: 0, False: 4]
  ------------------
 2344|      0|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (2344:22): [True: 0, False: 0]
  ------------------
 2345|      0|                more_ = false;
 2346|      0|                return;
 2347|      4|        }
 2348|      4|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceC2EPS8_:
  938|  80.5k|            : source(source)
  939|  80.5k|        {
  940|  80.5k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_sourceEEEvT_RNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2913|  80.5k|    {
 2914|  80.5k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2914:13): [True: 15, False: 80.5k]
  ------------------
 2915|     15|        {
 2916|     15|            switch (raw_tag_)
 2917|     15|            {
 2918|      0|                case 0x2:
  ------------------
  |  Branch (2918:17): [True: 0, False: 15]
  ------------------
 2919|      0|                {
 2920|      0|                    auto bytes = read.view(ec);
 2921|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2922|      0|                    {
 2923|      0|                        more_ = false;
 2924|      0|                        return;
 2925|      0|                    }
 2926|      0|                    bigint b;
 2927|      0|                    bigint::from_sign_magnitude(false, bytes.data(), bytes.size(), b);
 2928|      0|                    text_buffer_.clear();
 2929|      0|                    b.append_to_string(text_buffer_);
 2930|      0|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2931|      0|                    more_ = !cursor_mode_;
 2932|      0|                    break;
 2933|      0|                }
 2934|      0|                case 0x3:
  ------------------
  |  Branch (2934:17): [True: 0, False: 15]
  ------------------
 2935|      0|                {
 2936|      0|                    auto bytes = read.view(ec);
 2937|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2938|      0|                    {
 2939|      0|                        more_ = false;
 2940|      0|                        return;
 2941|      0|                    }
 2942|      0|                    bigint b;
 2943|      0|                    bigint::from_sign_magnitude(false, bytes.data(), bytes.size(), b);
 2944|      0|                    b = -1 - b;
 2945|      0|                    text_buffer_.clear();
 2946|      0|                    b.append_to_string(text_buffer_);
 2947|      0|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2948|      0|                    more_ = !cursor_mode_;
 2949|      0|                    break;
 2950|      0|                }
 2951|      0|                case 0x15:
  ------------------
  |  Branch (2951:17): [True: 0, False: 15]
  ------------------
 2952|      0|                case 0x16:
  ------------------
  |  Branch (2952:17): [True: 0, False: 15]
  ------------------
 2953|      0|                case 0x17:
  ------------------
  |  Branch (2953:17): [True: 0, False: 15]
  ------------------
 2954|      0|                {
 2955|      0|                    auto bytes = read.view(ec);
 2956|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2957|      0|                    {
 2958|      0|                        more_ = false;
 2959|      0|                        return;
 2960|      0|                    }
 2961|      0|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2961:46): [True: 0, False: 0]
  ------------------
 2962|      0|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2962:27): [True: 0, False: 0]
  ------------------
 2963|      0|                        : semantic_tag::base16;
 2964|      0|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2965|      0|                    more_ = !cursor_mode_;
 2966|      0|                    break;
 2967|      0|                }
 2968|      0|                case 0x40:
  ------------------
  |  Branch (2968:17): [True: 0, False: 15]
  ------------------
 2969|      0|                {
 2970|      0|                    array_tag_ = typed_array_tags::uint8;
 2971|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2972|      0|                    read(array_buffer, ec);
 2973|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2974|      0|                    {
 2975|      0|                        more_ = false;
 2976|      0|                        return;
 2977|      0|                    }
 2978|      0|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2979|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2979:25): [True: 0, False: 0]
  |  Branch (2979:42): [True: 0, False: 0]
  ------------------
 2980|      0|                    {
 2981|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2981:29): [True: 0, False: 0]
  ------------------
 2982|      0|                        {
 2983|      0|                            ec = cbor_errc::bad_extents;
 2984|      0|                            more_ = false;
 2985|      0|                            return;
 2986|      0|                        }
 2987|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2988|      0|                            typed_array_tags::uint8, extents_, order_, max_dimensions_, alloc_);
 2989|      0|                        typed_array_stack_.push_back(iter);
 2990|      0|                        iter->next(visitor, *this, ec);
 2991|      0|                    }
 2992|      0|                    else
 2993|      0|                    {
 2994|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2995|      0|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2996|      0|                        typed_array_stack_.push_back(iter);
 2997|      0|                        iter->next(visitor, *this, ec);
 2998|      0|                    }
 2999|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3000|      0|                    more_ = !cursor_mode_;
 3001|      0|                    break;
 3002|      0|                }
 3003|      0|                case 0x44:
  ------------------
  |  Branch (3003:17): [True: 0, False: 15]
  ------------------
 3004|      0|                {
 3005|      0|                    array_tag_ = typed_array_tags::uint8;
 3006|      0|                    typed_array_tag_ = semantic_tag::clamped;
 3007|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3008|      0|                    read(array_buffer, ec);
 3009|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3010|      0|                    {
 3011|      0|                        more_ = false;
 3012|      0|                        return;
 3013|      0|                    }
 3014|      0|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 3015|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3015:25): [True: 0, False: 0]
  |  Branch (3015:42): [True: 0, False: 0]
  ------------------
 3016|      0|                    {
 3017|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3017:29): [True: 0, False: 0]
  ------------------
 3018|      0|                        {
 3019|      0|                            ec = cbor_errc::bad_extents;
 3020|      0|                            more_ = false;
 3021|      0|                            return;
 3022|      0|                        }
 3023|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3024|      0|                            typed_array_tags::uint8, extents_, order_, max_dimensions_, alloc_);
 3025|      0|                        typed_array_stack_.push_back(iter);
 3026|      0|                        iter->next(visitor, *this, ec);
 3027|      0|                    }
 3028|      0|                    else
 3029|      0|                    {
 3030|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3031|      0|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 3032|      0|                        typed_array_stack_.push_back(iter);
 3033|      0|                        iter->next(visitor, *this, ec);
 3034|      0|                    }
 3035|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3036|      0|                    more_ = !cursor_mode_;
 3037|      0|                    break;
 3038|      0|                }
 3039|      0|                case 0x41:
  ------------------
  |  Branch (3039:17): [True: 0, False: 15]
  ------------------
 3040|      0|                case 0x45:
  ------------------
  |  Branch (3040:17): [True: 0, False: 15]
  ------------------
 3041|      0|                {
 3042|      0|                    array_tag_ = typed_array_tags::uint16;
 3043|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3044|      0|                    read(array_buffer, ec);
 3045|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3046|      0|                    {
 3047|      0|                        more_ = false;
 3048|      0|                        return;
 3049|      0|                    }
 3050|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3051|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3052|      0|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 3053|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3053:25): [True: 0, False: 0]
  ------------------
 3054|      0|                    {
 3055|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3055:49): [True: 0, False: 0]
  ------------------
 3056|      0|                        {
 3057|      0|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 3058|      0|                        }
 3059|      0|                    }
 3060|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3060:25): [True: 0, False: 0]
  |  Branch (3060:42): [True: 0, False: 0]
  ------------------
 3061|      0|                    {
 3062|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3062:29): [True: 0, False: 0]
  ------------------
 3063|      0|                        {
 3064|      0|                            ec = cbor_errc::bad_extents;
 3065|      0|                            more_ = false;
 3066|      0|                            return;
 3067|      0|                        }
 3068|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3069|      0|                            typed_array_tags::uint16, extents_, order_, max_dimensions_, alloc_);
 3070|      0|                        typed_array_stack_.push_back(iter);
 3071|      0|                        iter->next(visitor, *this, ec);
 3072|      0|                    }
 3073|      0|                    else
 3074|      0|                    {
 3075|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3076|      0|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 3077|      0|                        typed_array_stack_.push_back(iter);
 3078|      0|                        iter->next(visitor, *this, ec);
 3079|      0|                    }
 3080|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3081|      0|                    more_ = !cursor_mode_;
 3082|      0|                    break;
 3083|      0|                }
 3084|      0|                case 0x42:
  ------------------
  |  Branch (3084:17): [True: 0, False: 15]
  ------------------
 3085|      0|                case 0x46:
  ------------------
  |  Branch (3085:17): [True: 0, False: 15]
  ------------------
 3086|      0|                {
 3087|      0|                    array_tag_ = typed_array_tags::uint32;
 3088|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3089|      0|                    read(array_buffer, ec);
 3090|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3091|      0|                    {
 3092|      0|                        more_ = false;
 3093|      0|                        return;
 3094|      0|                    }
 3095|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3096|      0|                    jsoncons::endian e = get_typed_array_endianness(tag);
 3097|      0|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 3098|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3098:25): [True: 0, False: 0]
  ------------------
 3099|      0|                    {
 3100|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3100:49): [True: 0, False: 0]
  ------------------
 3101|      0|                        {
 3102|      0|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 3103|      0|                        }
 3104|      0|                    }
 3105|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3105:25): [True: 0, False: 0]
  |  Branch (3105:42): [True: 0, False: 0]
  ------------------
 3106|      0|                    {
 3107|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3107:29): [True: 0, False: 0]
  ------------------
 3108|      0|                        {
 3109|      0|                            ec = cbor_errc::bad_extents;
 3110|      0|                            more_ = false;
 3111|      0|                            return;
 3112|      0|                        }
 3113|      0|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3114|      0|                            typed_array_tags::uint32, extents_, order_, max_dimensions_, alloc_);
 3115|      0|                        typed_array_stack_.push_back(iter);
 3116|      0|                        iter->next(visitor, *this, ec);
 3117|      0|                    }
 3118|      0|                    else
 3119|      0|                    {
 3120|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3121|      0|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 3122|      0|                        typed_array_stack_.push_back(iter);
 3123|      0|                        iter->next(visitor, *this, ec);
 3124|      0|                    }
 3125|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3126|      0|                    more_ = !cursor_mode_;
 3127|      0|                    break;
 3128|      0|                }
 3129|      0|                case 0x43:
  ------------------
  |  Branch (3129:17): [True: 0, False: 15]
  ------------------
 3130|      0|                case 0x47:
  ------------------
  |  Branch (3130:17): [True: 0, False: 15]
  ------------------
 3131|      0|                {
 3132|      0|                    array_tag_ = typed_array_tags::uint64;
 3133|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3134|      0|                    read(array_buffer, ec);
 3135|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3136|      0|                    {
 3137|      0|                        more_ = false;
 3138|      0|                        return;
 3139|      0|                    }
 3140|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3141|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3142|      0|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 3143|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3143:25): [True: 0, False: 0]
  ------------------
 3144|      0|                    {
 3145|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3145:49): [True: 0, False: 0]
  ------------------
 3146|      0|                        {
 3147|      0|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 3148|      0|                        }
 3149|      0|                    }
 3150|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3150:25): [True: 0, False: 0]
  |  Branch (3150:42): [True: 0, False: 0]
  ------------------
 3151|      0|                    {
 3152|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3152:29): [True: 0, False: 0]
  ------------------
 3153|      0|                        {
 3154|      0|                            ec = cbor_errc::bad_extents;
 3155|      0|                            more_ = false;
 3156|      0|                            return;
 3157|      0|                        }
 3158|      0|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3159|      0|                            typed_array_tags::uint64, extents_, order_, max_dimensions_, alloc_);
 3160|      0|                        typed_array_stack_.push_back(iter);
 3161|      0|                        iter->next(visitor, *this, ec);
 3162|      0|                    }
 3163|      0|                    else
 3164|      0|                    {
 3165|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3166|      0|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 3167|      0|                        typed_array_stack_.push_back(iter);
 3168|      0|                        iter->next(visitor, *this, ec);
 3169|      0|                    }
 3170|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3171|      0|                    more_ = !cursor_mode_;
 3172|      0|                    break;
 3173|      0|                }
 3174|      0|                case 0x48:
  ------------------
  |  Branch (3174:17): [True: 0, False: 15]
  ------------------
 3175|      0|                {
 3176|      0|                    array_tag_ = typed_array_tags::int8;
 3177|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3178|      0|                    read(array_buffer, ec);
 3179|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3180|      0|                    {
 3181|      0|                        more_ = false;
 3182|      0|                        return;
 3183|      0|                    }
 3184|      0|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 3185|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3185:25): [True: 0, False: 0]
  |  Branch (3185:42): [True: 0, False: 0]
  ------------------
 3186|      0|                    {
 3187|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3187:29): [True: 0, False: 0]
  ------------------
 3188|      0|                        {
 3189|      0|                            ec = cbor_errc::bad_extents;
 3190|      0|                            more_ = false;
 3191|      0|                            return;
 3192|      0|                        }
 3193|      0|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3194|      0|                            typed_array_tags::int8, extents_, order_, max_dimensions_, alloc_);
 3195|      0|                        typed_array_stack_.push_back(iter);
 3196|      0|                        iter->next(visitor, *this, ec);
 3197|      0|                    }
 3198|      0|                    else
 3199|      0|                    {
 3200|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3201|      0|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 3202|      0|                        typed_array_stack_.push_back(iter);
 3203|      0|                        iter->next(visitor, *this, ec);
 3204|      0|                    }
 3205|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3206|      0|                    more_ = !cursor_mode_;
 3207|      0|                    break;
 3208|      0|                }
 3209|      0|                case 0x49:
  ------------------
  |  Branch (3209:17): [True: 0, False: 15]
  ------------------
 3210|      0|                case 0x4d:
  ------------------
  |  Branch (3210:17): [True: 0, False: 15]
  ------------------
 3211|      0|                {
 3212|      0|                    array_tag_ = typed_array_tags::int16;
 3213|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3214|      0|                    read(array_buffer, ec);
 3215|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3216|      0|                    {
 3217|      0|                        more_ = false;
 3218|      0|                        return;
 3219|      0|                    }
 3220|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3221|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3222|      0|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 3223|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3223:25): [True: 0, False: 0]
  ------------------
 3224|      0|                    {
 3225|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3225:49): [True: 0, False: 0]
  ------------------
 3226|      0|                        {
 3227|      0|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 3228|      0|                        }
 3229|      0|                    }
 3230|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3230:25): [True: 0, False: 0]
  |  Branch (3230:42): [True: 0, False: 0]
  ------------------
 3231|      0|                    {
 3232|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3232:29): [True: 0, False: 0]
  ------------------
 3233|      0|                        {
 3234|      0|                            ec = cbor_errc::bad_extents;
 3235|      0|                            more_ = false;
 3236|      0|                            return;
 3237|      0|                        }
 3238|      0|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3239|      0|                            typed_array_tags::int16, extents_, order_, max_dimensions_, alloc_);
 3240|      0|                        typed_array_stack_.push_back(iter);
 3241|      0|                        iter->next(visitor, *this, ec);
 3242|      0|                    }
 3243|      0|                    else
 3244|      0|                    {
 3245|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3246|      0|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 3247|      0|                        typed_array_stack_.push_back(iter);
 3248|      0|                        iter->next(visitor, *this, ec);
 3249|      0|                    }
 3250|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3251|      0|                    more_ = !cursor_mode_;
 3252|      0|                    break;
 3253|      0|                }
 3254|      0|                case 0x4a:
  ------------------
  |  Branch (3254:17): [True: 0, False: 15]
  ------------------
 3255|      0|                case 0x4e:
  ------------------
  |  Branch (3255:17): [True: 0, False: 15]
  ------------------
 3256|      0|                {
 3257|      0|                    array_tag_ = typed_array_tags::int32;
 3258|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3259|      0|                    read(array_buffer, ec);
 3260|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3261|      0|                    {
 3262|      0|                        more_ = false;
 3263|      0|                        return;
 3264|      0|                    }
 3265|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3266|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3267|      0|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 3268|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3268:25): [True: 0, False: 0]
  ------------------
 3269|      0|                    {
 3270|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3270:49): [True: 0, False: 0]
  ------------------
 3271|      0|                        {
 3272|      0|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 3273|      0|                        }
 3274|      0|                    }
 3275|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3275:25): [True: 0, False: 0]
  |  Branch (3275:42): [True: 0, False: 0]
  ------------------
 3276|      0|                    {
 3277|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3277:29): [True: 0, False: 0]
  ------------------
 3278|      0|                        {
 3279|      0|                            ec = cbor_errc::bad_extents;
 3280|      0|                            more_ = false;
 3281|      0|                            return;
 3282|      0|                        }
 3283|      0|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3284|      0|                            typed_array_tags::int32, extents_, order_, max_dimensions_, alloc_);
 3285|      0|                        typed_array_stack_.push_back(iter);
 3286|      0|                        iter->next(visitor, *this, ec);
 3287|      0|                    }
 3288|      0|                    else
 3289|      0|                    {
 3290|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3291|      0|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 3292|      0|                        typed_array_stack_.push_back(iter);
 3293|      0|                        iter->next(visitor, *this, ec);
 3294|      0|                    }
 3295|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3296|      0|                    more_ = !cursor_mode_;
 3297|      0|                    break;
 3298|      0|                }
 3299|      0|                case 0x4b:
  ------------------
  |  Branch (3299:17): [True: 0, False: 15]
  ------------------
 3300|      0|                case 0x4f:
  ------------------
  |  Branch (3300:17): [True: 0, False: 15]
  ------------------
 3301|      0|                {
 3302|      0|                    array_tag_ = typed_array_tags::int64;
 3303|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3304|      0|                    read(array_buffer, ec);
 3305|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3306|      0|                    {
 3307|      0|                        more_ = false;
 3308|      0|                        return;
 3309|      0|                    }
 3310|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3311|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3312|      0|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 3313|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3313:25): [True: 0, False: 0]
  ------------------
 3314|      0|                    {
 3315|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3315:49): [True: 0, False: 0]
  ------------------
 3316|      0|                        {
 3317|      0|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 3318|      0|                        }
 3319|      0|                    }
 3320|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3320:25): [True: 0, False: 0]
  |  Branch (3320:42): [True: 0, False: 0]
  ------------------
 3321|      0|                    {
 3322|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3322:29): [True: 0, False: 0]
  ------------------
 3323|      0|                        {
 3324|      0|                            ec = cbor_errc::bad_extents;
 3325|      0|                            more_ = false;
 3326|      0|                            return;
 3327|      0|                        }
 3328|      0|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3329|      0|                            typed_array_tags::int64, extents_, order_, max_dimensions_, alloc_);
 3330|      0|                        typed_array_stack_.push_back(iter);
 3331|      0|                        iter->next(visitor, *this, ec);
 3332|      0|                    }
 3333|      0|                    else
 3334|      0|                    {
 3335|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3336|      0|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 3337|      0|                        typed_array_stack_.push_back(iter);
 3338|      0|                        iter->next(visitor, *this, ec);
 3339|      0|                    }
 3340|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3341|      0|                    more_ = !cursor_mode_;
 3342|      0|                    break;
 3343|      0|                }
 3344|      0|                case 0x50:
  ------------------
  |  Branch (3344:17): [True: 0, False: 15]
  ------------------
 3345|      0|                case 0x54:
  ------------------
  |  Branch (3345:17): [True: 0, False: 15]
  ------------------
 3346|      0|                {
 3347|      0|                    array_tag_ = typed_array_tags::half_float;
 3348|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3349|      0|                    read(array_buffer, ec);
 3350|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3351|      0|                    {
 3352|      0|                        more_ = false;
 3353|      0|                        return;
 3354|      0|                    }
 3355|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3356|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3357|      0|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 3358|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3358:25): [True: 0, False: 0]
  ------------------
 3359|      0|                    {
 3360|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3360:49): [True: 0, False: 0]
  ------------------
 3361|      0|                        {
 3362|      0|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 3363|      0|                        }
 3364|      0|                    }
 3365|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3365:25): [True: 0, False: 0]
  |  Branch (3365:42): [True: 0, False: 0]
  ------------------
 3366|      0|                    {
 3367|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3367:29): [True: 0, False: 0]
  ------------------
 3368|      0|                        {
 3369|      0|                            ec = cbor_errc::bad_extents;
 3370|      0|                            more_ = false;
 3371|      0|                            return;
 3372|      0|                        }
 3373|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 3374|      0|                            typed_array_tags::half_float, extents_, order_, max_dimensions_, alloc_);
 3375|      0|                        typed_array_stack_.push_back(iter);
 3376|      0|                        iter->next(visitor, *this, ec);
 3377|      0|                    }
 3378|      0|                    else
 3379|      0|                    {
 3380|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 3381|      0|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 3382|      0|                        typed_array_stack_.push_back(iter);
 3383|      0|                        iter->next(visitor, *this, ec);
 3384|      0|                    }
 3385|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3386|      0|                    more_ = !cursor_mode_;
 3387|      0|                    break;
 3388|      0|                }
 3389|      0|                case 0x51:
  ------------------
  |  Branch (3389:17): [True: 0, False: 15]
  ------------------
 3390|      0|                case 0x55:
  ------------------
  |  Branch (3390:17): [True: 0, False: 15]
  ------------------
 3391|      0|                {
 3392|      0|                    array_tag_ = typed_array_tags::float32;
 3393|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3394|      0|                    read(array_buffer, ec);
 3395|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3396|      0|                    {
 3397|      0|                        more_ = false;
 3398|      0|                        return;
 3399|      0|                    }
 3400|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3401|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3402|      0|                    auto ta = typed_array_cast<float>(array_buffer);
 3403|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3403:25): [True: 0, False: 0]
  ------------------
 3404|      0|                    {
 3405|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3405:49): [True: 0, False: 0]
  ------------------
 3406|      0|                        {
 3407|      0|                            ta[i] = binary::byte_swap<float>(ta[i]);
 3408|      0|                        }
 3409|      0|                    }
 3410|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3410:25): [True: 0, False: 0]
  |  Branch (3410:42): [True: 0, False: 0]
  ------------------
 3411|      0|                    {
 3412|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3412:29): [True: 0, False: 0]
  ------------------
 3413|      0|                        {
 3414|      0|                            ec = cbor_errc::bad_extents;
 3415|      0|                            more_ = false;
 3416|      0|                            return;
 3417|      0|                        }
 3418|      0|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3419|      0|                            typed_array_tags::float32, extents_, order_, max_dimensions_, alloc_);
 3420|      0|                        typed_array_stack_.push_back(iter);
 3421|      0|                        iter->next(visitor, *this, ec);
 3422|      0|                    }
 3423|      0|                    else
 3424|      0|                    {
 3425|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3426|      0|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 3427|      0|                        typed_array_stack_.push_back(iter);
 3428|      0|                        iter->next(visitor, *this, ec);
 3429|      0|                    }
 3430|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3431|      0|                    more_ = !cursor_mode_;
 3432|      0|                    break;
 3433|      0|                }
 3434|      0|                case 0x52:
  ------------------
  |  Branch (3434:17): [True: 0, False: 15]
  ------------------
 3435|      0|                case 0x56:
  ------------------
  |  Branch (3435:17): [True: 0, False: 15]
  ------------------
 3436|      0|                {
 3437|      0|                    array_tag_ = typed_array_tags::float64;
 3438|      0|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3439|      0|                    read(array_buffer, ec);
 3440|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3441|      0|                    {
 3442|      0|                        more_ = false;
 3443|      0|                        return;
 3444|      0|                    }
 3445|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 3446|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3447|      0|                    auto ta = typed_array_cast<double>(array_buffer);
 3448|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3448:25): [True: 0, False: 0]
  ------------------
 3449|      0|                    {
 3450|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3450:49): [True: 0, False: 0]
  ------------------
 3451|      0|                        {
 3452|      0|                            ta[i] = binary::byte_swap<double>(ta[i]);
 3453|      0|                        }
 3454|      0|                    }
 3455|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3455:25): [True: 0, False: 0]
  |  Branch (3455:42): [True: 0, False: 0]
  ------------------
 3456|      0|                    {
 3457|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3457:29): [True: 0, False: 0]
  ------------------
 3458|      0|                        {
 3459|      0|                            ec = cbor_errc::bad_extents;
 3460|      0|                            more_ = false;
 3461|      0|                            return;
 3462|      0|                        }
 3463|      0|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3464|      0|                            typed_array_tags::float64, extents_, order_, max_dimensions_, alloc_);
 3465|      0|                        typed_array_stack_.push_back(iter);
 3466|      0|                        iter->next(visitor, *this, ec);
 3467|      0|                    }
 3468|      0|                    else
 3469|      0|                    {
 3470|      0|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3471|      0|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 3472|      0|                        typed_array_stack_.push_back(iter);
 3473|      0|                        iter->next(visitor, *this, ec);
 3474|      0|                    }
 3475|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3476|      0|                    more_ = !cursor_mode_;
 3477|      0|                    break;
 3478|      0|                }
 3479|      0|                case 0x53:
  ------------------
  |  Branch (3479:17): [True: 0, False: 15]
  ------------------
 3480|      0|                case 0x57:
  ------------------
  |  Branch (3480:17): [True: 0, False: 15]
  ------------------
 3481|      0|                {
 3482|      0|                    ec = cbor_errc::float128_not_supported;
 3483|      0|                    more_ = !cursor_mode_;
 3484|      0|                    return;
 3485|      0|                }
 3486|     15|                default:
  ------------------
  |  Branch (3486:17): [True: 15, False: 0]
  ------------------
 3487|     15|                {
 3488|     15|                    auto bytes = read.view(ec);
 3489|     15|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     15|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 15]
  |  |  ------------------
  ------------------
 3490|      0|                    {
 3491|      0|                        more_ = false;
 3492|      0|                        return;
 3493|      0|                    }
 3494|     15|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 3495|     15|                    more_ = !cursor_mode_;
 3496|     15|                    break;
 3497|     15|                }
 3498|     15|            }
 3499|     15|            other_tags_[item_tag] = false;
 3500|     15|        }
 3501|  80.5k|        else
 3502|  80.5k|        {
 3503|  80.5k|            auto bytes = read.view(ec);
 3504|  80.5k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  80.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 80.5k]
  |  |  ------------------
  ------------------
 3505|      4|            {
 3506|      4|                return;
 3507|      4|            }
 3508|  80.5k|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 3509|  80.5k|            more_ = !cursor_mode_;
 3510|  80.5k|        }
 3511|  80.5k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_source4viewERNS3_10error_codeE:
  948|  80.5k|        {
  949|  80.5k|            return source->read_byte_string_view(ec);
  950|  80.5k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_byte_string_viewERNS3_10error_codeE:
 1883|  80.5k|    {
 1884|  80.5k|        auto c = source_.peek();
 1885|  80.5k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  80.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 80.5k]
  |  |  ------------------
  ------------------
 1886|      0|        {
 1887|      0|            ec = cbor_errc::unexpected_eof;
 1888|      0|            more_ = false;
 1889|      0|            return byte_string_view();
 1890|      0|        }
 1891|  80.5k|        jsoncons::cbor::cbor_major_type major_type = get_major_type(c.value);
 1892|  80.5k|        uint8_t info = get_additional_info(c.value);
 1893|  80.5k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  80.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 80.5k]
  |  |  |  Branch (79:50): [True: 0, False: 80.5k]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1894|      0|        {
 1895|      0|            ec = cbor_errc::reserved_additional_info;
 1896|      0|            more_ = false;
 1897|      0|            return byte_string_view();
 1898|      0|        }
 1899|       |
 1900|  80.5k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::cbor_major_type::byte_string);
  ------------------
  |  |   67|  80.5k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 80.5k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1901|       |
 1902|  80.5k|        source_.ignore(1);
 1903|  80.5k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1903:13): [True: 0, False: 80.5k]
  ------------------
 1904|      0|        {
 1905|      0|            bytes_buffer_.clear();
 1906|      0|            iterate_byte_string_chunks(bytes_buffer_, ec);
 1907|      0|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1908|      0|            {
 1909|      0|                return byte_string_view();
 1910|      0|            }
 1911|      0|            return byte_string_view(bytes_buffer_.data(), bytes_buffer_.size());
 1912|      0|        }
 1913|       |
 1914|  80.5k|        std::size_t length = read_size(info, ec);
 1915|  80.5k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  80.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 80.5k]
  |  |  ------------------
  ------------------
 1916|      0|        {
 1917|      0|            return byte_string_view();
 1918|      0|        }
 1919|  80.5k|        auto data = source_.read_span(length, bytes_buffer_);
 1920|  80.5k|        if (data.size() != length)
  ------------------
  |  Branch (1920:13): [True: 4, False: 80.5k]
  ------------------
 1921|      4|        {
 1922|      4|            ec = cbor_errc::unexpected_eof;
 1923|      4|            more_ = false;
 1924|      4|            return byte_string_view();
 1925|      4|        }
 1926|       |        
 1927|  80.5k|        byte_string_view bytes(data.data(), data.size());
 1928|  80.5k|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1928:13): [True: 80.5k, False: 20]
  ------------------
 1929|  80.5k|            bytes.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1929:13): [True: 80.5k, False: 0]
  ------------------
 1930|  80.5k|        {
 1931|  80.5k|            stringref_map_stack_.back().emplace_back(mapped_string(bytes, alloc_));
 1932|  80.5k|        }
 1933|  80.5k|        return bytes;
 1934|  80.5k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_sizeEhRNS3_10error_codeE:
 1937|  1.24M|    {
 1938|  1.24M|        uint64_t u = read_unsigned_integer(info, ec);
 1939|  1.24M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.24M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.24M]
  |  |  ------------------
  ------------------
 1940|      0|        {
 1941|      0|            return 0;
 1942|      0|        }
 1943|  1.24M|        std::size_t len = static_cast<std::size_t>(u);
 1944|  1.24M|        if (len != u)
  ------------------
  |  Branch (1944:13): [True: 0, False: 1.24M]
  ------------------
 1945|      0|        {
 1946|      0|            ec = cbor_errc::number_too_large;
 1947|      0|            more_ = false;
 1948|      0|        }
 1949|  1.24M|        return len;
 1950|  1.24M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2EOS9_:
  857|   454k|        mapped_string(mapped_string&&) = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS_16byte_string_viewERKS7_:
  846|  80.5k|            : type(jsoncons::cbor::cbor_major_type::byte_string), str(alloc), bytes(bytes.begin(),bytes.end(),alloc)
  847|  80.5k|        {
  848|  80.5k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_text_string_viewEhRNS3_10error_codeE:
 1849|   111k|    {
 1850|   111k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1850:13): [True: 0, False: 111k]
  ------------------
 1851|      0|        {
 1852|      0|            text_buffer_.clear();
 1853|      0|            iterate_text_string_chunks(text_buffer_, ec);
 1854|      0|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1855|      0|            {
 1856|      0|                return string_view_type();
 1857|      0|            }
 1858|      0|            return string_view_type(text_buffer_.data(), text_buffer_.size());
 1859|      0|        }
 1860|       |
 1861|   111k|        std::size_t length = read_size(info, ec);
 1862|   111k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   111k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 111k]
  |  |  ------------------
  ------------------
 1863|      0|        {
 1864|      0|            return string_view_type();
 1865|      0|        }
 1866|   111k|        auto data = source_.read_span(length, text_buffer_);
 1867|   111k|        if (data.size() != length)
  ------------------
  |  Branch (1867:13): [True: 2, False: 111k]
  ------------------
 1868|      2|        {
 1869|      2|            ec = cbor_errc::unexpected_eof;
 1870|      2|            more_ = false;
 1871|      2|            return string_view_type();
 1872|      2|        }
 1873|   111k|        string_view_type sv(reinterpret_cast<const char_type*>(data.data()), data.size());
 1874|   111k|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1874:13): [True: 111k, False: 0]
  ------------------
 1875|   111k|            sv.length() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1875:13): [True: 111k, False: 0]
  ------------------
 1876|   111k|        {
 1877|   111k|            stringref_map_stack_.back().emplace_back(mapped_string(sv,alloc_));
 1878|   111k|        }
 1879|   111k|        return sv;
 1880|   111k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKS7_:
  829|   111k|            : type(jsoncons::cbor::cbor_major_type::text_string), str(sv.data(), sv.size(), alloc), bytes(alloc)
  830|   111k|        {
  831|   111k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE15read_bigdecimalEhRNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 2450|      2|    {
 2451|      2|        std::size_t size = read_unsigned_integer(container_info, ec);
 2452|      2|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2453|      0|        {
 2454|      0|            return;
 2455|      0|        }
 2456|      2|        if (size != 2)
  ------------------
  |  Branch (2456:13): [True: 0, False: 2]
  ------------------
 2457|      0|        {
 2458|      0|            ec = cbor_errc::invalid_bigdecimal;
 2459|      0|            more_ = false;
 2460|      0|            return;
 2461|      0|        }
 2462|       |
 2463|      2|        auto c = source_.peek();
 2464|      2|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2465|      0|        {
 2466|      0|            ec = cbor_errc::unexpected_eof;
 2467|      0|            more_ = false;
 2468|      0|            return;
 2469|      0|        }
 2470|      2|        int64_t exponent = 0;
 2471|      2|        auto major_type = get_major_type(c.value);
 2472|      2|        auto info = get_additional_info(c.value);
 2473|      2|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  |  Branch (79:50): [True: 0, False: 2]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2474|      0|        {
 2475|      0|            ec = cbor_errc::reserved_additional_info;
 2476|      0|            more_ = false;
 2477|      0|            return;
 2478|      0|        }
 2479|       |
 2480|      2|        switch (major_type)
 2481|      2|        {
 2482|      2|            case jsoncons::cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2482:13): [True: 2, False: 0]
  ------------------
 2483|      2|            {
 2484|      2|                source_.ignore(1);
 2485|      2|                auto u = read_unsigned_integer(info, ec);
 2486|      2|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2487|      0|                {
 2488|      0|                    return;
 2489|      0|                }
 2490|      2|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2490:21): [True: 0, False: 2]
  ------------------
 2491|      0|                {
 2492|      0|                    ec = cbor_errc::bigdec_scale_overflow;
 2493|      0|                    more_ = false;
 2494|      0|                    return;
 2495|      0|                }
 2496|      2|                exponent = static_cast<int64_t>(u);
 2497|      2|                break;
 2498|      2|            }
 2499|      0|            case jsoncons::cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2499:13): [True: 0, False: 2]
  ------------------
 2500|      0|            {
 2501|      0|                exponent = read_int64(ec);
 2502|      0|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2503|      0|                {
 2504|      0|                    return;
 2505|      0|                }
 2506|      0|                break;
 2507|      0|            }
 2508|      0|            default:
  ------------------
  |  Branch (2508:13): [True: 0, False: 2]
  ------------------
 2509|      0|            {
 2510|      0|                ec = cbor_errc::invalid_bigdecimal;
 2511|      0|                more_ = false;
 2512|      0|                return;
 2513|      0|            }
 2514|      2|        }
 2515|       |
 2516|      2|        c = source_.peek();
 2517|      2|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2518|      0|        {
 2519|      0|            ec = cbor_errc::unexpected_eof;
 2520|      0|            more_ = false;
 2521|      0|            return;
 2522|      0|        }
 2523|       |
 2524|      2|        major_type = get_major_type(c.value);
 2525|      2|        info = get_additional_info(c.value);
 2526|      2|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  |  Branch (79:50): [True: 0, False: 2]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2527|      0|        {
 2528|      0|            ec = cbor_errc::reserved_additional_info;
 2529|      0|            more_ = false;
 2530|      0|            return;
 2531|      0|        }
 2532|       |
 2533|      2|        bigint unscaled;
 2534|      2|        switch (major_type)
 2535|      2|        {
 2536|      2|            case jsoncons::cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2536:13): [True: 2, False: 0]
  ------------------
 2537|      2|            {
 2538|      2|                source_.ignore(1);
 2539|      2|                uint64_t u = read_unsigned_integer(info, ec);
 2540|      2|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2541|      0|                {
 2542|      0|                    return;
 2543|      0|                }
 2544|      2|                unscaled = bigint(u);
 2545|      2|                break;
 2546|      2|            }
 2547|      0|            case jsoncons::cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2547:13): [True: 0, False: 2]
  ------------------
 2548|      0|            {
 2549|      0|                source_.ignore(1);
 2550|      0|                auto u = read_unsigned_integer(info, ec);
 2551|      0|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2552|      0|                {
 2553|      0|                    return;
 2554|      0|                }
 2555|      0|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2555:21): [True: 0, False: 0]
  ------------------
 2556|      0|                {
 2557|      0|                    unscaled = -1 - bigint(u);
 2558|      0|                }
 2559|      0|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2560|      0|                {
 2561|      0|                    unscaled = bigint((std::numeric_limits<int64_t>::min)());
 2562|      0|                }
 2563|      0|                else
 2564|      0|                {
 2565|      0|                    unscaled = bigint(static_cast<int64_t>(-1) - static_cast<int64_t>(u));
 2566|      0|                }
 2567|      0|                break;
 2568|      0|            }
 2569|      0|            case jsoncons::cbor::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (2569:13): [True: 0, False: 2]
  ------------------
 2570|      0|            {
 2571|      0|                uint8_t b;
 2572|      0|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2572:21): [True: 0, False: 0]
  ------------------
 2573|      0|                {
 2574|      0|                    ec = cbor_errc::unexpected_eof;
 2575|      0|                    more_ = false;
 2576|      0|                    return;
 2577|      0|                }
 2578|      0|                info = get_additional_info(b);
 2579|      0|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2580|      0|                {
 2581|      0|                    ec = cbor_errc::reserved_additional_info;
 2582|      0|                    more_ = false;
 2583|      0|                    return;
 2584|      0|                }
 2585|      0|                c = source_.peek();
 2586|      0|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2587|      0|                {
 2588|      0|                    ec = cbor_errc::unexpected_eof;
 2589|      0|                    more_ = false;
 2590|      0|                    return;
 2591|      0|                }
 2592|       |
 2593|      0|                if (get_major_type(c.value) == jsoncons::cbor::cbor_major_type::byte_string)
  ------------------
  |  Branch (2593:21): [True: 0, False: 0]
  ------------------
 2594|      0|                {
 2595|      0|                    bytes_buffer_.clear();
 2596|      0|                    read_byte_string(bytes_buffer_, ec);
 2597|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2598|      0|                    {
 2599|      0|                        more_ = false;
 2600|      0|                        return;
 2601|      0|                    }
 2602|      0|                    if (info == 2)
  ------------------
  |  Branch (2602:25): [True: 0, False: 0]
  ------------------
 2603|      0|                    {
 2604|      0|                        bigint::from_sign_magnitude(false, bytes_buffer_.data(), bytes_buffer_.size(), unscaled);
 2605|      0|                    }
 2606|      0|                    else if (info == 3)
  ------------------
  |  Branch (2606:30): [True: 0, False: 0]
  ------------------
 2607|      0|                    {
 2608|      0|                        bigint::from_sign_magnitude(false, bytes_buffer_.data(), bytes_buffer_.size(), unscaled);
 2609|      0|                        unscaled = -1 - unscaled;
 2610|      0|                    }
 2611|      0|                }
 2612|      0|                break;
 2613|      0|            }
 2614|      0|            default:
  ------------------
  |  Branch (2614:13): [True: 0, False: 2]
  ------------------
 2615|      0|            {
 2616|      0|                ec = cbor_errc::invalid_bigdecimal;
 2617|      0|                more_ = false;
 2618|      0|                return;
 2619|      0|            }
 2620|      2|        }
 2621|       |
 2622|      2|        bigdec dec(std::move(unscaled), -exponent);
 2623|      2|        append_to_string(dec, result);
 2624|      2|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10read_int64ERNS3_10error_codeE:
 2118|      2|    {
 2119|      2|        int64_t val = 0;
 2120|       |
 2121|      2|        auto ch = source_.peek();
 2122|      2|        if (ch.eof)
  ------------------
  |  Branch (2122:13): [True: 0, False: 2]
  ------------------
 2123|      0|        {
 2124|      0|            ec = cbor_errc::unexpected_eof;
 2125|      0|            more_ = false;
 2126|      0|            return val;
 2127|      0|        }
 2128|       |
 2129|      2|        jsoncons::cbor::cbor_major_type major_type = get_major_type(ch.value);
 2130|      2|        uint8_t info = get_additional_info(ch.value);
 2131|      2|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  |  Branch (79:50): [True: 0, False: 2]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2132|      0|        {
 2133|      0|            ec = cbor_errc::reserved_additional_info;
 2134|      0|            more_ = false;
 2135|      0|            return val;
 2136|      0|        }
 2137|      2|        switch (major_type)
 2138|      2|        {
 2139|      2|            case jsoncons::cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2139:13): [True: 2, False: 0]
  ------------------
 2140|      2|                source_.ignore(1);
 2141|      2|                switch (info)
  ------------------
  |  Branch (2141:25): [True: 2, False: 0]
  ------------------
 2142|      2|                {
 2143|      2|                    case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|      2|    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: 0, False: 2]
  |  |  |  Branch (18:20): [True: 0, False: 2]
  |  |  |  Branch (18:30): [True: 0, False: 2]
  |  |  |  Branch (18:40): [True: 0, False: 2]
  |  |  |  Branch (18:50): [True: 0, False: 2]
  |  |  |  Branch (18:60): [True: 0, False: 2]
  |  |  |  Branch (18:70): [True: 0, False: 2]
  |  |  |  Branch (18:80): [True: 0, False: 2]
  |  |  |  Branch (18:90): [True: 0, False: 2]
  |  |  |  Branch (18:100): [True: 0, False: 2]
  |  |  |  Branch (18:110): [True: 0, False: 2]
  |  |  |  Branch (18:120): [True: 0, False: 2]
  |  |  |  Branch (18:130): [True: 0, False: 2]
  |  |  |  Branch (18:140): [True: 1, False: 1]
  |  |  |  Branch (18:150): [True: 1, False: 1]
  |  |  |  Branch (18:160): [True: 0, False: 2]
  |  |  |  Branch (18:170): [True: 0, False: 2]
  |  |  |  Branch (18:180): [True: 0, False: 2]
  |  |  |  Branch (18:190): [True: 0, False: 2]
  |  |  |  Branch (18:200): [True: 0, False: 2]
  |  |  |  Branch (18:210): [True: 0, False: 2]
  |  |  |  Branch (18:220): [True: 0, False: 2]
  |  |  ------------------
  ------------------
  |  Branch (2143:21): [True: 0, False: 2]
  ------------------
 2144|      2|                    {
 2145|      2|                        val = static_cast<int8_t>(- 1 - info);
 2146|      2|                        break;
 2147|     17|                    }
 2148|      0|                    case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (2148:21): [True: 0, False: 2]
  ------------------
 2149|      0|                        {
 2150|      0|                            uint8_t b;
 2151|      0|                            if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2151:33): [True: 0, False: 0]
  ------------------
 2152|      0|                            {
 2153|      0|                                ec = cbor_errc::unexpected_eof;
 2154|      0|                                more_ = false;
 2155|      0|                                return val;
 2156|      0|                            }
 2157|      0|                            val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 2158|      0|                            break;
 2159|      0|                        }
 2160|       |
 2161|      0|                    case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (2161:21): [True: 0, False: 2]
  ------------------
 2162|      0|                        {
 2163|      0|                            uint8_t buf[sizeof(uint16_t)];
 2164|      0|                            if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (2164:33): [True: 0, False: 0]
  ------------------
 2165|      0|                            {
 2166|      0|                                ec = cbor_errc::unexpected_eof;
 2167|      0|                                more_ = false;
 2168|      0|                                return val;
 2169|      0|                            }
 2170|      0|                            auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 2171|      0|                            val = static_cast<int64_t>(-1)- u;
 2172|      0|                            break;
 2173|      0|                        }
 2174|       |
 2175|      0|                    case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (2175:21): [True: 0, False: 2]
  ------------------
 2176|      0|                        {
 2177|      0|                            uint8_t buf[sizeof(uint32_t)];
 2178|      0|                            if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (2178:33): [True: 0, False: 0]
  ------------------
 2179|      0|                            {
 2180|      0|                                ec = cbor_errc::unexpected_eof;
 2181|      0|                                more_ = false;
 2182|      0|                                return val;
 2183|      0|                            }
 2184|      0|                            auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 2185|      0|                            val = static_cast<int64_t>(-1)- u;
 2186|      0|                            break;
 2187|      0|                        }
 2188|       |
 2189|      0|                    case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (2189:21): [True: 0, False: 2]
  ------------------
 2190|      0|                        {
 2191|      0|                            uint8_t buf[sizeof(uint64_t)];
 2192|      0|                            if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (2192:33): [True: 0, False: 0]
  ------------------
 2193|      0|                            {
 2194|      0|                                ec = cbor_errc::unexpected_eof;
 2195|      0|                                more_ = false;
 2196|      0|                                return val;
 2197|      0|                            }
 2198|      0|                            auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 2199|      0|                            if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2199:33): [True: 0, False: 0]
  ------------------
 2200|      0|                            {
 2201|      0|                                ec = cbor_errc::invalid_bigdecimal;
 2202|      0|                                more_ = false;
 2203|      0|                                return val;
 2204|      0|                            }
 2205|      0|                            if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2206|      0|                            {
 2207|      0|                                val = (std::numeric_limits<int64_t>::min)();
 2208|      0|                            }
 2209|      0|                            else
 2210|      0|                            {
 2211|      0|                                val = static_cast<int64_t>(-1)- static_cast<int64_t>(u);
 2212|      0|                            }
 2213|      0|                            break;
 2214|      0|                        }
 2215|      2|                }
 2216|      2|                break;
 2217|       |
 2218|      2|                case jsoncons::cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2218:17): [True: 0, False: 2]
  ------------------
 2219|      0|                {
 2220|      0|                    source_.ignore(1);
 2221|      0|                    uint64_t u = read_unsigned_integer(info, ec);
 2222|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2223|      0|                    {
 2224|      0|                        return 0;
 2225|      0|                    }
 2226|      0|                    if (u <= static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2226:25): [True: 0, False: 0]
  ------------------
 2227|      0|                    {
 2228|      0|                        val = u;
 2229|      0|                    }
 2230|      0|                    else
 2231|      0|                    {
 2232|       |                        // error;
 2233|      0|                    }
 2234|       |                    
 2235|      0|                    break;
 2236|      0|                }
 2237|      0|                break;
 2238|      0|            default:
  ------------------
  |  Branch (2238:13): [True: 0, False: 2]
  ------------------
 2239|      0|                break;
 2240|      2|        }
 2241|       |
 2242|      2|        return val;
 2243|      2|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13read_bigfloatEhRNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 2627|      2|    {
 2628|      2|        std::size_t size = read_unsigned_integer(container_info, ec);
 2629|      2|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2630|      0|        {
 2631|      0|            return;
 2632|      0|        }
 2633|      2|        if (size != 2)
  ------------------
  |  Branch (2633:13): [True: 0, False: 2]
  ------------------
 2634|      0|        {
 2635|      0|            ec = cbor_errc::invalid_bigfloat;
 2636|      0|            more_ = false;
 2637|      0|            return;
 2638|      0|        }
 2639|       |
 2640|      2|        auto c = source_.peek();
 2641|      2|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2642|      0|        {
 2643|      0|            ec = cbor_errc::unexpected_eof;
 2644|      0|            more_ = false;
 2645|      0|            return;
 2646|      0|        }
 2647|      2|        jsoncons::cbor::cbor_major_type major_type = get_major_type(c.value);
 2648|      2|        uint8_t info = get_additional_info(c.value);
 2649|      2|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  |  Branch (79:50): [True: 0, False: 2]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2650|      0|        {
 2651|      0|            ec = cbor_errc::reserved_additional_info;
 2652|      0|            more_ = false;
 2653|      0|            return;
 2654|      0|        }
 2655|       |
 2656|      2|        int64_t exponent = 0;
 2657|      2|        switch (major_type)
 2658|      2|        {
 2659|      0|            case jsoncons::cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2659:13): [True: 0, False: 2]
  ------------------
 2660|      0|            {
 2661|      0|                source_.ignore(1);
 2662|      0|                auto u = read_unsigned_integer(info, ec);
 2663|      0|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2664|      0|                {
 2665|      0|                    return;
 2666|      0|                }
 2667|      0|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2667:21): [True: 0, False: 0]
  ------------------
 2668|      0|                {
 2669|      0|                    ec = cbor_errc::invalid_bigdecimal;
 2670|      0|                    more_ = false;
 2671|      0|                    return;
 2672|      0|                }
 2673|      0|                exponent = static_cast<int64_t>(u);
 2674|      0|                if (exponent == 0)
  ------------------
  |  Branch (2674:21): [True: 0, False: 0]
  ------------------
 2675|      0|                {
 2676|      0|                    str.append("0.0");
 2677|      0|                    return;
 2678|      0|                }
 2679|      0|                break;
 2680|      0|            }
 2681|      2|            case jsoncons::cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2681:13): [True: 2, False: 0]
  ------------------
 2682|      2|            {
 2683|      2|                exponent = read_int64(ec);
 2684|      2|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2685|      0|                {
 2686|      0|                    return;
 2687|      0|                }
 2688|      2|                if (exponent == 0)
  ------------------
  |  Branch (2688:21): [True: 0, False: 2]
  ------------------
 2689|      0|                {
 2690|      0|                    str.append("0.0");
 2691|      0|                    return;
 2692|      0|                }
 2693|      2|                break;
 2694|      2|            }
 2695|      2|            default:
  ------------------
  |  Branch (2695:13): [True: 0, False: 2]
  ------------------
 2696|      0|            {
 2697|      0|                ec = cbor_errc::invalid_bigfloat;
 2698|      0|                more_ = false;
 2699|      0|                return;
 2700|      2|            }
 2701|      2|        }
 2702|       |
 2703|      2|        c = source_.peek();
 2704|      2|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2705|      0|        {
 2706|      0|            ec = cbor_errc::unexpected_eof;
 2707|      0|            more_ = false;
 2708|      0|            return;
 2709|      0|        }
 2710|      2|        major_type = get_major_type(c.value);
 2711|      2|        info = get_additional_info(c.value);
 2712|      2|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  |  Branch (79:50): [True: 0, False: 2]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2713|      0|        {
 2714|      0|            ec = cbor_errc::reserved_additional_info;
 2715|      0|            more_ = false;
 2716|      0|            return;
 2717|      0|        }
 2718|       |
 2719|      2|        bigint unscaled;
 2720|      2|        switch (major_type)
 2721|      2|        {
 2722|      2|            case jsoncons::cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2722:13): [True: 2, False: 0]
  ------------------
 2723|      2|            {
 2724|      2|                source_.ignore(1);
 2725|      2|                uint64_t u = read_unsigned_integer(info, ec);
 2726|      2|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2727|      0|                {
 2728|      0|                    return;
 2729|      0|                }
 2730|      2|                unscaled = bigint(u);
 2731|       |                //bigdec dec(std::move(unscaled), -exponent);
 2732|       |                //append_to_string(dec, str);
 2733|      2|                break;
 2734|      2|            }
 2735|      0|            case jsoncons::cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2735:13): [True: 0, False: 2]
  ------------------
 2736|      0|            {
 2737|      0|                source_.ignore(1);
 2738|      0|                auto u = read_unsigned_integer(info, ec);
 2739|      0|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2740|      0|                {
 2741|      0|                    return;
 2742|      0|                }
 2743|      0|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2743:21): [True: 0, False: 0]
  ------------------
 2744|      0|                {
 2745|      0|                    unscaled = -1 - bigint(u);
 2746|      0|                }
 2747|      0|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2748|      0|                {
 2749|      0|                    unscaled = bigint((std::numeric_limits<int64_t>::min)());
 2750|      0|                }
 2751|      0|                else
 2752|      0|                {
 2753|      0|                    unscaled = bigint(static_cast<int64_t>(-1) - static_cast<int64_t>(u));
 2754|      0|                }
 2755|       |                //bigdec dec(std::move(unscaled), -exponent);
 2756|       |                //append_to_string(dec, str);
 2757|      0|                break;
 2758|      0|            }
 2759|      0|            case jsoncons::cbor::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (2759:13): [True: 0, False: 2]
  ------------------
 2760|      0|            {
 2761|      0|                uint8_t x;
 2762|      0|                if (source_.read(&x, 1) == 0)
  ------------------
  |  Branch (2762:21): [True: 0, False: 0]
  ------------------
 2763|      0|                {
 2764|      0|                    ec = cbor_errc::unexpected_eof;
 2765|      0|                    more_ = false;
 2766|      0|                    return;
 2767|      0|                }
 2768|      0|                uint8_t tag = get_additional_info(x);
 2769|      0|                if (JSONCONS_UNLIKELY(tag >= 0x1C && tag <= 0x1E))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2770|      0|                {
 2771|      0|                    ec = cbor_errc::reserved_additional_info;
 2772|      0|                    more_ = false;
 2773|      0|                    return;
 2774|      0|                }
 2775|       |
 2776|      0|                c = source_.peek();
 2777|      0|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2778|      0|                {
 2779|      0|                    ec = cbor_errc::unexpected_eof;
 2780|      0|                    more_ = false;
 2781|      0|                    return;
 2782|      0|                }
 2783|       |
 2784|      0|                if (get_major_type(c.value) == jsoncons::cbor::cbor_major_type::byte_string)
  ------------------
  |  Branch (2784:21): [True: 0, False: 0]
  ------------------
 2785|      0|                {
 2786|      0|                    bytes_buffer_.clear();
 2787|      0|                    read_byte_string(bytes_buffer_, ec);
 2788|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2789|      0|                    {
 2790|      0|                        more_ = false;
 2791|      0|                        return;
 2792|      0|                    }
 2793|      0|                    bigint::from_sign_magnitude(false, bytes_buffer_.data(), bytes_buffer_.size(), unscaled);
 2794|      0|                    if (tag == 3)
  ------------------
  |  Branch (2794:25): [True: 0, False: 0]
  ------------------
 2795|      0|                    {
 2796|      0|                        unscaled = -1 - unscaled;
 2797|      0|                    }
 2798|      0|                }
 2799|      0|                break;
 2800|      0|            }
 2801|      0|            default:
  ------------------
  |  Branch (2801:13): [True: 0, False: 2]
  ------------------
 2802|      0|            {
 2803|      0|                ec = cbor_errc::invalid_bigfloat;
 2804|      0|                more_ = false;
 2805|      0|                return;
 2806|      0|            }
 2807|      2|        }
 2808|       |
 2809|      2|        bigdec dec;
 2810|       |
 2811|      2|        from_cbor_bigfloat(std::move(unscaled), exponent, dec, bigfloat_precision_, ec);
 2812|      2|        if (ec)
  ------------------
  |  Branch (2812:13): [True: 0, False: 2]
  ------------------
 2813|      0|        {
 2814|      0|            more_ = false;
 2815|      0|            return;
 2816|      0|        }
 2817|      2|        append_to_string(dec, str);
 2818|      2|    }
_ZN8jsoncons4cbor18from_cbor_bigfloatINSt3__19allocatorImEEEEvNS_12basic_bigintIT_EElRNS_12basic_bigdecIS6_EEmRNS2_10error_codeE:
  660|      2|{
  661|      2|    constexpr uint64_t max_scale =
  662|      2|        static_cast<uint64_t>(
  663|      2|            (std::numeric_limits<int64_t>::max)()
  664|      2|        );
  665|       |
  666|      2|    if (max_decimal_places > max_scale)
  ------------------
  |  Branch (666:9): [True: 0, False: 2]
  ------------------
  667|      0|    {
  668|      0|        ec = cbor_errc::bigfloat_scale_overflow;
  669|      0|        return;
  670|      0|    }
  671|       |
  672|      2|    if (unscaled.is_zero())
  ------------------
  |  Branch (672:9): [True: 0, False: 2]
  ------------------
  673|      0|    {
  674|      0|        value = basic_bigdec<Allocator>{ basic_bigint<Allocator>(0), 0 };
  675|      0|        return;
  676|      0|    }
  677|       |
  678|      2|    const bool negative = unscaled < basic_bigint<Allocator>(0);
  679|       |
  680|      2|    if (negative)
  ------------------
  |  Branch (680:9): [True: 0, False: 2]
  ------------------
  681|      0|    {
  682|      0|        unscaled.set_negative(false);
  683|      0|    }
  684|       |
  685|      2|    if (exponent >= 0) {
  ------------------
  |  Branch (685:9): [True: 0, False: 2]
  ------------------
  686|      0|        from_cbor_bigfloat_positive_rounded(unscaled, exponent, max_decimal_places, value, ec);
  687|      0|        if (negative)
  ------------------
  |  Branch (687:13): [True: 0, False: 0]
  ------------------
  688|      0|        {
  689|      0|            value.set_negative(true);
  690|      0|        }
  691|      0|        return;
  692|      0|    }
  693|       |
  694|       |    // Absolute exponent, safe for INT64_MIN.
  695|      2|    uint64_t k =
  696|      2|        static_cast<uint64_t>(-(exponent + 1)) + 1;
  697|       |
  698|       |    // Cancel powers of 2.
  699|      2|    const uint128 trailing = unscaled.trailing_zero_bits();
  700|       |
  701|      2|    const uint64_t cancel =
  702|      2|        trailing >= static_cast<uint128>(k)
  ------------------
  |  Branch (702:9): [True: 1, False: 1]
  ------------------
  703|      2|            ? k
  704|      2|            : static_cast<uint64_t>(trailing);
  705|       |
  706|      2|    if (cancel != 0)
  ------------------
  |  Branch (706:9): [True: 1, False: 1]
  ------------------
  707|      1|        unscaled >>= (cancel);
  708|       |
  709|      2|    k -= cancel;
  710|       |
  711|       |    // Exact conversion when the scale fits.
  712|      2|    if (k <= max_decimal_places) {
  ------------------
  |  Branch (712:9): [True: 2, False: 0]
  ------------------
  713|      2|        if (k != 0)
  ------------------
  |  Branch (713:13): [True: 1, False: 1]
  ------------------
  714|      1|            unscaled *= jsoncons::powb(basic_bigint<Allocator>(5), k);
  715|       |
  716|      2|        if (negative)
  ------------------
  |  Branch (716:13): [True: 0, False: 2]
  ------------------
  717|      0|            unscaled = -unscaled;
  718|       |
  719|      2|        value = basic_bigdec<Allocator>{
  720|      2|            std::move(unscaled),
  721|      2|            static_cast<int64_t>(k)
  722|      2|        };
  723|      2|        return;
  724|      2|    }
  725|       |
  726|       |    // Round to max_decimal_places.
  727|       |    //
  728|       |    // m / 2^k * 10^scale
  729|       |    // = m * 5^scale / 2^(k-scale)
  730|       |
  731|      0|    const uint64_t scale = max_decimal_places;
  732|      0|    const uint64_t shift = k - scale;
  733|       |
  734|       |    // Conservative early-zero bound:
  735|       |    // 5^scale < 2^(3*scale).
  736|       |    //
  737|       |    // If shift >= bit_length(m) + 3*scale,
  738|       |    // the rounded result must be zero.
  739|      0|    const uint128 bits = unscaled.bit_length();
  740|      0|    const uint128 bound =
  741|      0|        bits + static_cast<uint128>(3) * scale;
  742|       |
  743|      0|    if (static_cast<uint128>(shift) >= bound) {
  ------------------
  |  Branch (743:9): [True: 0, False: 0]
  ------------------
  744|      0|        value = basic_bigdec<Allocator>{
  745|      0|            basic_bigint<Allocator>(0),
  746|      0|            static_cast<int64_t>(scale)
  747|      0|        };
  748|      0|        return;
  749|      0|    }
  750|       |
  751|       |    // Compute scaled positive magnitude.
  752|      0|    unscaled *= jsoncons::powb(basic_bigint<Allocator>(5), scale);
  753|       |
  754|       |    // Round unscaled / 2^shift using HALF_EVEN.
  755|      0|    basic_bigint<Allocator> quotient = unscaled;
  756|      0|    quotient >>= (shift);
  757|       |
  758|      0|    const bool halfBit = unscaled.test_bit(shift - 1);
  759|      0|    const bool lowerBits = unscaled.any_low_bits(shift - 1);
  760|      0|    const bool odd = quotient.test_bit(0);
  761|       |
  762|      0|    if (halfBit && (lowerBits || odd))
  ------------------
  |  Branch (762:9): [True: 0, False: 0]
  |  Branch (762:21): [True: 0, False: 0]
  |  Branch (762:34): [True: 0, False: 0]
  ------------------
  763|      0|        quotient += basic_bigint<Allocator>(1);
  764|       |
  765|      0|    if (negative && !quotient.is_zero())
  ------------------
  |  Branch (765:9): [True: 0, False: 0]
  |  Branch (765:21): [True: 0, False: 0]
  ------------------
  766|      0|        quotient = -quotient;
  767|       |
  768|      0|    value = basic_bigdec<Allocator> {
  769|      0|        std::move(quotient),
  770|      0|        static_cast<int64_t>(scale)
  771|      0|    };
  772|      0|    return;
  773|      0|}
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE19read_mdarray_headerERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 3514|      1|    {
 3515|      1|        uint8_t initial_byte;
 3516|      1|        if (source_.read(&initial_byte, 1) == 0)
  ------------------
  |  Branch (3516:13): [True: 0, False: 1]
  ------------------
 3517|      0|        {
 3518|      0|            ec = cbor_errc::unexpected_eof;
 3519|      0|            more_ = false;
 3520|      0|            return;
 3521|      0|        }
 3522|       |
 3523|      1|        jsoncons::cbor::cbor_major_type major_type = get_major_type(initial_byte);
 3524|      1|        JSONCONS_ASSERT(major_type == jsoncons::cbor::cbor_major_type::array);
  ------------------
  |  |   67|      1|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 1]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 3525|      1|        uint8_t info = get_additional_info(initial_byte);
 3526|      1|        if (info != jsoncons::cbor::detail::additional_info::indefinite_length && info != 2)
  ------------------
  |  Branch (3526:13): [True: 1, False: 0]
  |  Branch (3526:83): [True: 0, False: 1]
  ------------------
 3527|      0|        {
 3528|      0|            ec = cbor_errc::invalid_mdarray_header;
 3529|      0|            more_ = false;
 3530|      0|            return;
 3531|      0|        }
 3532|       |
 3533|      1|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1]
  |  |  |  Branch (79:50): [True: 0, False: 1]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3534|      0|        {
 3535|      0|            ec = cbor_errc::reserved_additional_info;
 3536|      0|            more_ = false;
 3537|      0|            return;
 3538|      0|        }
 3539|       |       
 3540|      1|        read_extents(ec);   
 3541|      1|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 0]
  |  |  ------------------
  ------------------
 3542|      1|        {
 3543|      1|            return;
 3544|      1|        }
 3545|       |
 3546|      0|        read_tags(ec);
 3547|      0|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3548|      0|        {
 3549|      0|            return;
 3550|      0|        }
 3551|      0|        auto c = source_.peek();
 3552|      0|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3553|      0|        {
 3554|      0|            ec = cbor_errc::unexpected_eof;
 3555|      0|            more_ = false;
 3556|      0|            return;
 3557|      0|        }
 3558|      0|        major_type = get_major_type(c.value);
 3559|      0|        info = get_additional_info(c.value);
 3560|      0|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3561|      0|        {
 3562|      0|            ec = cbor_errc::reserved_additional_info;
 3563|      0|            more_ = false;
 3564|      0|            return;
 3565|      0|        }
 3566|      0|        state_stack_.emplace_back(parse_mode::multi_dim, 0);
 3567|      0|        ++state_stack_.back().index;
 3568|       |
 3569|      0|        if (major_type == jsoncons::cbor::cbor_major_type::array && order_ == mdarray_order::row_major) 
  ------------------
  |  Branch (3569:13): [True: 0, False: 0]
  |  Branch (3569:69): [True: 0, False: 0]
  ------------------
 3570|      0|        {
 3571|      0|            source_.ignore(1);
 3572|      0|            begin_classical_array_storage(info, ec);
 3573|      0|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3574|      0|            {
 3575|      0|                return;
 3576|      0|            }
 3577|      0|            auto iter = std::make_shared<cbor_mdarray_row_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, max_dimensions_, alloc_);
 3578|      0|            typed_array_stack_.push_back(iter);
 3579|      0|            if (!iter->done())
  ------------------
  |  Branch (3579:17): [True: 0, False: 0]
  ------------------
 3580|      0|            {
 3581|      0|                iter->next(visitor, *this, ec);
 3582|      0|            }
 3583|      0|        }
 3584|      0|        else if (major_type == jsoncons::cbor::cbor_major_type::array && order_ == mdarray_order::column_major) 
  ------------------
  |  Branch (3584:18): [True: 0, False: 0]
  |  Branch (3584:74): [True: 0, False: 0]
  ------------------
 3585|      0|        {
 3586|      0|            source_.ignore(1);
 3587|      0|            begin_classical_array_storage(info, ec);
 3588|      0|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3589|      0|            {
 3590|      0|                return;
 3591|      0|            }
 3592|      0|            auto iter = std::make_shared<cbor_mdarray_column_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, max_dimensions_, alloc_);
 3593|      0|            typed_array_stack_.push_back(iter);
 3594|      0|            if (!iter->done())
  ------------------
  |  Branch (3594:17): [True: 0, False: 0]
  ------------------
 3595|      0|            {
 3596|      0|                iter->next(visitor, *this, ec);
 3597|      0|            }
 3598|      0|        }
 3599|      0|        else if (major_type == jsoncons::cbor::cbor_major_type::byte_string)
  ------------------
  |  Branch (3599:18): [True: 0, False: 0]
  ------------------
 3600|      0|        {
 3601|      0|            std::size_t typed_array_count = typed_array_stack_.size();
 3602|      0|            read_byte_string_from_source read(this);
 3603|      0|            read_byte_string(read, visitor, ec);
 3604|      0|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3605|      0|            {
 3606|      0|                return;
 3607|      0|            }
 3608|      0|            if (typed_array_stack_.size() == typed_array_count)
  ------------------
  |  Branch (3608:17): [True: 0, False: 0]
  ------------------
 3609|      0|            {
 3610|       |                // Byte string storage must be a typed array
 3611|      0|                ec = cbor_errc::invalid_mdarray;
 3612|      0|                return;
 3613|      0|            }
 3614|      0|        }
 3615|      0|        else
 3616|      0|        {
 3617|      0|            ec = cbor_errc::invalid_mdarray;
 3618|      0|            return;
 3619|      0|        }
 3620|       |        // cursor case
 3621|      0|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12read_extentsERNS3_10error_codeE:
 3624|      1|    {
 3625|      1|        extents_.clear();
 3626|       |
 3627|      1|        auto b = source_.peek();
 3628|      1|        if (JSONCONS_UNLIKELY(b.eof))
  ------------------
  |  |   79|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 3629|      0|        {
 3630|      0|            ec = cbor_errc::unexpected_eof;
 3631|      0|            more_ = false;
 3632|      0|            return;
 3633|      0|        }
 3634|      1|        if (get_major_type(b.value) != jsoncons::cbor::cbor_major_type::array)
  ------------------
  |  Branch (3634:13): [True: 0, False: 1]
  ------------------
 3635|      0|        {
 3636|      0|            ec = cbor_errc::bad_extents;
 3637|      0|            more_ = false;
 3638|      0|            return;
 3639|      0|        }
 3640|      1|        uint8_t info = get_additional_info(b.value);
 3641|      1|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1]
  |  |  |  Branch (79:50): [True: 1, False: 0]
  |  |  |  Branch (79:50): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 3642|      0|        {
 3643|      0|            ec = cbor_errc::reserved_additional_info;
 3644|      0|            more_ = false;
 3645|      0|            return;
 3646|      0|        }
 3647|       |
 3648|      1|        source_.ignore(1);
 3649|      1|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (3649:13): [True: 1, False: 0]
  ------------------
 3650|      1|        {
 3651|      1|            bool done = false;
 3652|  1.04M|            while (!done)
  ------------------
  |  Branch (3652:20): [True: 1.04M, False: 0]
  ------------------
 3653|  1.04M|            {
 3654|  1.04M|                auto initial_byte = source_.peek();
 3655|  1.04M|                if (JSONCONS_UNLIKELY(initial_byte.eof))
  ------------------
  |  |   79|  1.04M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 1.04M]
  |  |  ------------------
  ------------------
 3656|      1|                {
 3657|      1|                    ec = cbor_errc::unexpected_eof;
 3658|      1|                    more_ = false;
 3659|      1|                    return;
 3660|      1|                }
 3661|  1.04M|                if (initial_byte.value == 0xff)
  ------------------
  |  Branch (3661:21): [True: 0, False: 1.04M]
  ------------------
 3662|      0|                {
 3663|      0|                    source_.ignore(1);
 3664|      0|                    done = true;
 3665|      0|                }
 3666|  1.04M|                else
 3667|  1.04M|                {
 3668|  1.04M|                    if (JSONCONS_UNLIKELY(get_major_type(initial_byte.value) != jsoncons::cbor::cbor_major_type::unsigned_integer))
  ------------------
  |  |   79|  1.04M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.04M]
  |  |  ------------------
  ------------------
 3669|      0|                    {
 3670|      0|                        ec = cbor_errc::expected_unsigned_integer;
 3671|      0|                        more_ = false;
 3672|      0|                        return;
 3673|      0|                    }
 3674|  1.04M|                    source_.ignore(1);
 3675|  1.04M|                    std::size_t extent = read_size(get_additional_info(initial_byte.value), ec);
 3676|  1.04M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.04M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.04M]
  |  |  ------------------
  ------------------
 3677|      0|                    {
 3678|      0|                        more_ = false;
 3679|      0|                        return;
 3680|      0|                    }
 3681|  1.04M|                    extents_.push_back(extent);
 3682|  1.04M|                }
 3683|  1.04M|            }
 3684|      1|        }
 3685|      0|        else 
 3686|      0|        {
 3687|      0|            std::size_t size = read_size(info, ec);
 3688|      0|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3689|      0|            {
 3690|      0|                more_ = false;
 3691|      0|                return;
 3692|      0|            }
 3693|       |
 3694|      0|            for (std::size_t i = 0; more_ && i < size; ++i)
  ------------------
  |  Branch (3694:37): [True: 0, False: 0]
  |  Branch (3694:46): [True: 0, False: 0]
  ------------------
 3695|      0|            {
 3696|      0|                uint8_t initial_byte;
 3697|      0|                if (source_.read(&initial_byte, 1) == 0)
  ------------------
  |  Branch (3697:21): [True: 0, False: 0]
  ------------------
 3698|      0|                {
 3699|      0|                    ec = cbor_errc::unexpected_eof;
 3700|      0|                    more_ = false;
 3701|      0|                    return;
 3702|      0|                }
 3703|      0|                if (JSONCONS_UNLIKELY(get_major_type(initial_byte) != jsoncons::cbor::cbor_major_type::unsigned_integer))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3704|      0|                {
 3705|      0|                    ec = cbor_errc::expected_unsigned_integer;
 3706|      0|                    more_ = false;
 3707|      0|                    return;
 3708|      0|                }
 3709|      0|                uint8_t item_info = get_additional_info(initial_byte);
 3710|      0|                if (JSONCONS_UNLIKELY(item_info >= 0x1C && item_info <= 0x1E))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  |  Branch (79:50): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3711|      0|                {
 3712|      0|                    ec = cbor_errc::reserved_additional_info;
 3713|      0|                    more_ = false;
 3714|      0|                    return;
 3715|      0|                }
 3716|      0|                std::size_t extent = read_size(item_info, ec);
 3717|      0|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3718|      0|                {
 3719|      0|                    more_ = false;
 3720|      0|                    return;
 3721|      0|                }
 3722|      0|                extents_.push_back(extent);
 3723|      0|            }
 3724|      0|        }
 3725|      0|        auto r = calculate_mdarray_size(extents_);
 3726|      0|        if (!r || *r == 0)
  ------------------
  |  Branch (3726:13): [True: 0, False: 0]
  |  Branch (3726:19): [True: 0, False: 0]
  ------------------
 3727|      0|        {
 3728|      0|            ec = cbor_errc::bad_extents;
 3729|      0|            more_ = false;
 3730|      0|            return;
 3731|      0|        }
 3732|      0|        mdarray_size_ = *r;
 3733|      0|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1678|     14|    {
 1679|     14|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|     14|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 14]
  |  |  ------------------
  ------------------
 1680|      0|        {
 1681|      0|            ec = cbor_errc::max_nesting_depth_exceeded;
 1682|      0|            more_ = false;
 1683|      0|            return;
 1684|      0|        } 
 1685|     14|        semantic_tag tag = semantic_tag::none;
 1686|     14|        bool pop_stringref_map_stack = false;
 1687|     14|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1687:13): [True: 2, False: 12]
  ------------------
 1688|      2|        {
 1689|      2|            stringref_map_stack_.emplace_back();
 1690|      2|            other_tags_[stringref_namespace_tag] = false;
 1691|      2|            pop_stringref_map_stack = true;
 1692|      2|        }
 1693|     14|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1693:13): [True: 9, False: 5]
  ------------------
 1694|      9|        {
 1695|      9|            state_stack_.emplace_back(parse_mode::indefinite_array,0,pop_stringref_map_stack);
 1696|      9|            visitor.begin_array(tag, *this, ec);
 1697|      9|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      9|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9]
  |  |  ------------------
  ------------------
 1698|      0|            {
 1699|      0|                return;
 1700|      0|            }
 1701|      9|        }
 1702|      5|        else // definite length
 1703|      5|        {
 1704|      5|            std::size_t len = read_size(info, ec);
 1705|      5|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      5|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5]
  |  |  ------------------
  ------------------
 1706|      0|            {
 1707|      0|                return;
 1708|      0|            }
 1709|      5|            state_stack_.emplace_back(parse_mode::array,len,pop_stringref_map_stack);
 1710|      5|            visitor.begin_array(len, tag, *this, ec);
 1711|      5|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      5|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5]
  |  |  ------------------
  ------------------
 1712|      0|            {
 1713|      0|                return;
 1714|      0|            }
 1715|      5|        }
 1716|     14|        more_ = !cursor_mode_;
 1717|     14|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1788|    157|    {
 1789|    157|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|    157|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 157]
  |  |  ------------------
  ------------------
 1790|      0|        {
 1791|      0|            ec = cbor_errc::max_nesting_depth_exceeded;
 1792|      0|            more_ = false;
 1793|      0|            return;
 1794|      0|        } 
 1795|    157|        bool pop_stringref_map_stack = false;
 1796|    157|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1796:13): [True: 0, False: 157]
  ------------------
 1797|      0|        {
 1798|      0|            stringref_map_stack_.emplace_back();
 1799|      0|            other_tags_[stringref_namespace_tag] = false;
 1800|      0|            pop_stringref_map_stack = true;
 1801|      0|        }
 1802|    157|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1802:13): [True: 2, False: 155]
  ------------------
 1803|      2|        {
 1804|      2|            state_stack_.emplace_back(parse_mode::indefinite_map_key,0,pop_stringref_map_stack);
 1805|      2|            visitor.begin_object(semantic_tag::none, *this, ec);
 1806|      2|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 1807|      0|            {
 1808|      0|                return;
 1809|      0|            }
 1810|      2|        }
 1811|    155|        else // definite_length
 1812|    155|        {
 1813|    155|            std::size_t len = read_size(info, ec);
 1814|    155|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    155|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 155]
  |  |  ------------------
  ------------------
 1815|      0|            {
 1816|      0|                return;
 1817|      0|            }
 1818|    155|            state_stack_.emplace_back(parse_mode::map_key,len,pop_stringref_map_stack);
 1819|    155|            visitor.begin_object(len, semantic_tag::none, *this, ec);
 1820|    155|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    155|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 155]
  |  |  ------------------
  ------------------
 1821|      0|            {
 1822|      0|                return;
 1823|      0|            }
 1824|    155|        }
 1825|    157|        more_ = !cursor_mode_;
 1826|    157|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1720|      3|    {
 1721|      3|        --nesting_depth_;
 1722|       |
 1723|      3|        visitor.end_array(*this, ec);
 1724|      3|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 1725|      0|        {
 1726|      0|            return;
 1727|      0|        }
 1728|      3|        more_ = !cursor_mode_;
 1729|      3|        if (level() == mark_level_)
  ------------------
  |  Branch (1729:13): [True: 0, False: 3]
  ------------------
 1730|      0|        {
 1731|      0|            more_ = false;
 1732|      0|        }
 1733|      3|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1733:13): [True: 0, False: 3]
  ------------------
 1734|      0|        {
 1735|      0|            stringref_map_stack_.pop_back();
 1736|      0|        }
 1737|      3|        state_stack_.pop_back();
 1738|      3|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1829|     77|    {
 1830|     77|        --nesting_depth_;
 1831|     77|        visitor.end_object(*this, ec);
 1832|     77|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     77|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 77]
  |  |  ------------------
  ------------------
 1833|      0|        {
 1834|      0|            return;
 1835|      0|        }
 1836|     77|        more_ = !cursor_mode_;
 1837|     77|        if (level() == mark_level_)
  ------------------
  |  Branch (1837:13): [True: 0, False: 77]
  ------------------
 1838|      0|        {
 1839|      0|            more_ = false;
 1840|      0|        }
 1841|     77|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1841:13): [True: 0, False: 77]
  ------------------
 1842|      0|        {
 1843|      0|            stringref_map_stack_.pop_back();
 1844|      0|        }
 1845|     77|        state_stack_.pop_back();
 1846|     77|    }

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

_ZN8jsoncons4cbor20typed_array_iteratorD2Ev:
   43|     83|    virtual ~typed_array_iterator() = default;
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|     83|        : data_(std::move(data), alloc), 
  107|     83|          span_(typed_array_cast<ValueType>(data_)), 
  108|     83|          array_tag_(array_tag), 
  109|     83|          extent_(span_.size()), 
  110|     83|          tag_(tag), 
  111|     83|          func_(Func{})
  112|     83|    {
  113|     83|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|    166|    {
  142|    166|        return done_;
  143|    166|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|    166|    {
  148|    166|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|    166|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 83, False: 83]
  |  |  ------------------
  ------------------
  149|     83|        {
  150|     83|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|     83|            first_ = false;
  152|     83|        }
  153|     83|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|     83|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 0, False: 83]
  |  |  ------------------
  ------------------
  154|      0|        {
  155|      0|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|      0|            ++index_;
  157|      0|        }
  158|     83|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 83, False: 0]
  ------------------
  159|     83|        {
  160|     83|            visitor.end_array(context, ec);
  161|     83|            done_ = true;
  162|     83|        }
  163|    166|    }

