UA_unbase64:
   75|  5.20k|UA_unbase64(const unsigned char *src, size_t len, size_t *out_len) {
   76|       |    /* Empty base64 results in an empty byte-string */
   77|  5.20k|    if(len == 0) {
  ------------------
  |  Branch (77:8): [True: 939, False: 4.26k]
  ------------------
   78|    939|        *out_len = 0;
   79|    939|        return (unsigned char*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|    939|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
   80|    939|    }
   81|       |
   82|       |    /* Allocate the output string. Append four bytes to allow missing padding */
   83|  4.26k|    size_t olen = (len / 4 * 3) + 4;
   84|  4.26k|    unsigned char *out = (unsigned char*)UA_malloc(olen);
  ------------------
  |  |   18|  4.26k|#define UA_malloc(size) UA_mallocSingleton(size)
  ------------------
   85|  4.26k|    if(!out)
  ------------------
  |  Branch (85:8): [True: 2, False: 4.26k]
  ------------------
   86|      2|        return NULL;
   87|       |
   88|       |    /* Iterate over the input */
   89|  4.26k|    size_t pad = 0;
   90|  4.26k|    unsigned char count = 0;
   91|  4.26k|    unsigned char block[4];
   92|  4.26k|    unsigned char *pos = out;
   93|  28.2k|    for(size_t i = 0; i < len; i++) {
  ------------------
  |  Branch (93:23): [True: 24.0k, False: 4.21k]
  ------------------
   94|  24.0k|        if(src[i] & 0x80)
  ------------------
  |  Branch (94:12): [True: 26, False: 24.0k]
  ------------------
   95|     26|            goto error; /* Non-ASCII input */
   96|  24.0k|        unsigned char tmp = dtable[src[i]];
   97|  24.0k|        if(tmp == 0x80)
  ------------------
  |  Branch (97:12): [True: 17, False: 23.9k]
  ------------------
   98|     17|            goto error; /* Not an allowed character */
   99|  23.9k|        if(tmp == 0x7f)
  ------------------
  |  Branch (99:12): [True: 11.2k, False: 12.7k]
  ------------------
  100|  11.2k|            continue; /* Whitespace is ignored to accomodate RFC 2045, used in
  101|       |                       * XML for xs:base64Binary. */
  102|  12.7k|        block[count++] = tmp;
  103|       |
  104|       |        /* Padding */
  105|  12.7k|        if(src[i] == '=') {
  ------------------
  |  Branch (105:12): [True: 216, False: 12.5k]
  ------------------
  106|    216|            if(count < 3) /* Padding can only be the last two bytes of a block */
  ------------------
  |  Branch (106:16): [True: 9, False: 207]
  ------------------
  107|      9|                goto error;
  108|    207|            block[count-1] = 0;
  109|    207|            pad++;
  110|  12.5k|        } else if(pad > 0) {
  ------------------
  |  Branch (110:19): [True: 5, False: 12.5k]
  ------------------
  111|      5|            goto error; /* Padding not terminated correctly */
  112|      5|        }
  113|       |
  114|       |        /* Write three output characters for four characters of input */
  115|  12.7k|        if(count == 4) {
  ------------------
  |  Branch (115:12): [True: 3.15k, False: 9.57k]
  ------------------
  116|  3.15k|            if(pad > 2)
  ------------------
  |  Branch (116:16): [True: 0, False: 3.15k]
  ------------------
  117|      0|                goto error; /* Invalid padding */
  118|  3.15k|            *pos++ = (block[0] << 2) | (block[1] >> 4);
  119|  3.15k|            *pos++ = (block[1] << 4) | (block[2] >> 2);
  120|  3.15k|            *pos++ = (block[2] << 6) | block[3];
  121|  3.15k|            count = 0;
  122|  3.15k|            pos -= pad;
  123|  3.15k|            pad = 0;
  124|  3.15k|        }
  125|  12.7k|    }
  126|       |
  127|       |    /* Input length not a multiple of four */
  128|  4.21k|    if(count > 0)
  ------------------
  |  Branch (128:8): [True: 31, False: 4.17k]
  ------------------
  129|     31|        goto error;
  130|       |
  131|  4.17k|    *out_len = (size_t)(pos - out);
  132|  4.17k|    if(*out_len == 0) {
  ------------------
  |  Branch (132:8): [True: 3.73k, False: 443]
  ------------------
  133|  3.73k|        UA_free(out);
  ------------------
  |  |   19|  3.73k|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
  134|  3.73k|        return (unsigned char*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|  3.73k|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
  135|  3.73k|    }
  136|    443|    return out;
  137|       |
  138|     88| error:
  139|     88|    UA_free(out);
  ------------------
  |  |   19|     88|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
  140|       |    return NULL;
  141|  4.17k|}

cj5_parse:
  306|  8.34k|          cj5_options *options) {
  307|  8.34k|    cj5_result r;
  308|  8.34k|    cj5__parser parser;
  309|  8.34k|    memset(&parser, 0x0, sizeof(parser));
  310|  8.34k|    parser.curr_tok_idx = 0;
  311|  8.34k|    parser.json5 = json5;
  312|  8.34k|    parser.len = len;
  313|  8.34k|    parser.tokens = tokens;
  314|  8.34k|    parser.max_tokens = max_tokens;
  315|       |
  316|  8.34k|    if(options)
  ------------------
  |  Branch (316:8): [True: 8.34k, False: 0]
  ------------------
  317|  8.34k|        parser.stop_early = options->stop_early;
  318|       |
  319|  8.34k|    unsigned short depth = 0; // Nesting depth zero means "outside the root object"
  320|  8.34k|    char nesting[CJ5_MAX_NESTING]; // Contains either '\0', '{' or '[' for the
  321|       |                                   // type of nesting at each depth. '\0'
  322|       |                                   // indicates we are out of the root object.
  323|  8.34k|    char next[CJ5_MAX_NESTING];    // Next content to parse: 'k' (key), ':', 'v'
  324|       |                                   // (value) or ',' (comma).
  325|  8.34k|    next[0] = 'v';  // The root is a "value" (object, array or primitive). If we
  326|       |                    // detect a colon after the first value then everything is
  327|       |                    // wrapped into a "virtual root object" and the parsing is
  328|       |                    // restarted.
  329|  8.34k|    nesting[0] = 0; // Becomes '{' if there is a virtual root object
  330|       |
  331|  8.34k|    cj5_token *token = NULL; // The current token
  332|       |
  333|  9.85k| start_parsing:
  334|  79.8M|    for(; parser.pos < len; parser.pos++) {
  ------------------
  |  Branch (334:11): [True: 79.8M, False: 7.90k]
  ------------------
  335|  79.8M|        char c = json5[parser.pos];
  336|  79.8M|        switch(c) {
  337|   535k|        case '\n': // Skip newline and whitespace
  ------------------
  |  Branch (337:9): [True: 535k, False: 79.3M]
  ------------------
  338|  1.64M|        case '\r':
  ------------------
  |  Branch (338:9): [True: 1.11M, False: 78.7M]
  ------------------
  339|  1.74M|        case '\t':
  ------------------
  |  Branch (339:9): [True: 96.1k, False: 79.7M]
  ------------------
  340|  1.95M|        case ' ':
  ------------------
  |  Branch (340:9): [True: 208k, False: 79.6M]
  ------------------
  341|  1.95M|            break;
  342|       |
  343|    506|        case '#': // Skip comment
  ------------------
  |  Branch (343:9): [True: 506, False: 79.8M]
  ------------------
  344|  4.35k|        case '/':
  ------------------
  |  Branch (344:9): [True: 3.84k, False: 79.8M]
  ------------------
  345|  4.35k|            cj5__skip_comment(&parser);
  346|  4.35k|            if(parser.error != CJ5_ERROR_NONE &&
  ------------------
  |  Branch (346:16): [True: 841, False: 3.50k]
  ------------------
  347|    841|               parser.error != CJ5_ERROR_OVERFLOW)
  ------------------
  |  Branch (347:16): [True: 172, False: 669]
  ------------------
  348|    172|                goto finish;
  349|  4.17k|            break;
  350|       |
  351|   176k|        case '{': // Open an object or array
  ------------------
  |  Branch (351:9): [True: 176k, False: 79.7M]
  ------------------
  352|   247k|        case '[':
  ------------------
  |  Branch (352:9): [True: 71.4k, False: 79.8M]
  ------------------
  353|       |            // Check the nesting depth
  354|   247k|            if(depth + 1 >= CJ5_MAX_NESTING) {
  ------------------
  |  |   53|   247k|#define CJ5_MAX_NESTING 256
  ------------------
  |  Branch (354:16): [True: 1, False: 247k]
  ------------------
  355|      1|                parser.error = CJ5_ERROR_INVALID;
  356|      1|                goto finish;
  357|      1|            }
  358|       |
  359|       |            // Correct next?
  360|   247k|            if(next[depth] != 'v') {
  ------------------
  |  Branch (360:16): [True: 35, False: 247k]
  ------------------
  361|     35|                parser.error = CJ5_ERROR_INVALID;
  362|     35|                goto finish;
  363|     35|            }
  364|       |
  365|   247k|            depth++; // Increase the nesting depth
  366|   247k|            nesting[depth] = c; // Set the nesting type
  367|   247k|            next[depth] = (c == '{') ? 'k' : 'v'; // next is either a key or a value
  ------------------
  |  Branch (367:27): [True: 176k, False: 71.4k]
  ------------------
  368|       |
  369|       |            // Create a token for the object or array
  370|   247k|            token = cj5__alloc_token(&parser);
  371|   247k|            if(token) {
  ------------------
  |  Branch (371:16): [True: 167k, False: 80.4k]
  ------------------
  372|   167k|                token->parent_id = parser.curr_tok_idx;
  373|   167k|                token->type = (c == '{') ? CJ5_TOKEN_OBJECT : CJ5_TOKEN_ARRAY;
  ------------------
  |  Branch (373:31): [True: 115k, False: 52.0k]
  ------------------
  374|   167k|                token->start = parser.pos;
  375|   167k|                token->size = 0;
  376|   167k|                parser.curr_tok_idx = parser.token_count - 1; // The new curr_tok_idx
  377|       |                                                              // is for this token
  378|   167k|            }
  379|   247k|            break;
  380|       |
  381|   174k|        case '}': // Close an object or array
  ------------------
  |  Branch (381:9): [True: 174k, False: 79.7M]
  ------------------
  382|   225k|        case ']':
  ------------------
  |  Branch (382:9): [True: 50.8k, False: 79.8M]
  ------------------
  383|       |            // Check the nesting depth. Note that a "virtual root object" at
  384|       |            // depth zero must not be closed.
  385|   225k|            if(depth == 0) {
  ------------------
  |  Branch (385:16): [True: 18, False: 225k]
  ------------------
  386|     18|                parser.error = CJ5_ERROR_INVALID;
  387|     18|                goto finish;
  388|     18|            }
  389|       |
  390|       |            // Check and adjust the nesting. Note that ']' - '[' == 2 and '}' -
  391|       |            // '{' == 2. Arrays can always be closed. Objects can only close
  392|       |            // when a key or a comma is expected.
  393|   225k|            if(c - nesting[depth] != 2 ||
  ------------------
  |  Branch (393:16): [True: 11, False: 225k]
  ------------------
  394|   225k|               (c == '}' && next[depth] != 'k' && next[depth] != ',')) {
  ------------------
  |  Branch (394:17): [True: 174k, False: 50.8k]
  |  Branch (394:29): [True: 143k, False: 31.0k]
  |  Branch (394:51): [True: 5, False: 143k]
  ------------------
  395|     16|                parser.error = CJ5_ERROR_INVALID;
  396|     16|                goto finish;
  397|     16|            }
  398|       |
  399|   225k|            if(token) {
  ------------------
  |  Branch (399:16): [True: 142k, False: 83.3k]
  ------------------
  400|       |                // Finalize the current token
  401|   142k|                token->end = parser.pos;
  402|       |
  403|       |                // Move to the parent and increase the parent size. Omit this
  404|       |                // when we leave the root (parent the same as the current
  405|       |                // token).
  406|   142k|                if(parser.curr_tok_idx != token->parent_id) {
  ------------------
  |  Branch (406:20): [True: 136k, False: 6.09k]
  ------------------
  407|   136k|                    parser.curr_tok_idx = token->parent_id;
  408|   136k|                    token = &tokens[token->parent_id];
  409|   136k|                    token->size++;
  410|   136k|                }
  411|   142k|            }
  412|       |
  413|       |            // Step one level up
  414|   225k|            depth--;
  415|   225k|            next[depth] = (depth == 0) ? 0 : ','; // zero if we step out the root
  ------------------
  |  Branch (415:27): [True: 6.50k, False: 219k]
  ------------------
  416|       |                                                  // object. then we do not look for
  417|       |                                                  // another element.
  418|       |
  419|       |            // The first element was successfully parsed. Stop early or try to
  420|       |            // parse the full input string?
  421|   225k|            if(depth == 0 && parser.stop_early)
  ------------------
  |  Branch (421:16): [True: 6.50k, False: 219k]
  |  Branch (421:30): [True: 0, False: 6.50k]
  ------------------
  422|      0|                goto finish;
  423|       |
  424|   225k|            break;
  425|       |
  426|  6.14M|        case ':': // Colon (between key and value)
  ------------------
  |  Branch (426:9): [True: 6.14M, False: 73.7M]
  ------------------
  427|  6.14M|            if(next[depth] != ':') {
  ------------------
  |  Branch (427:16): [True: 1.15k, False: 6.14M]
  ------------------
  428|  1.15k|                parser.error = CJ5_ERROR_INVALID;
  429|  1.15k|                goto finish;
  430|  1.15k|            }
  431|  6.14M|            next[depth] = 'v';
  432|  6.14M|            break;
  433|       |
  434|  32.6M|        case ',': // Comma
  ------------------
  |  Branch (434:9): [True: 32.6M, False: 47.2M]
  ------------------
  435|  32.6M|            if(next[depth] != ',') {
  ------------------
  |  Branch (435:16): [True: 22, False: 32.6M]
  ------------------
  436|     22|                parser.error = CJ5_ERROR_INVALID;
  437|     22|                goto finish;
  438|     22|            }
  439|  32.6M|            next[depth] = (nesting[depth] == '{') ? 'k' : 'v';
  ------------------
  |  Branch (439:27): [True: 5.99M, False: 26.6M]
  ------------------
  440|  32.6M|            break;
  441|       |
  442|  38.7M|        default: // Value or key
  ------------------
  |  Branch (442:9): [True: 38.7M, False: 41.1M]
  ------------------
  443|  38.7M|            if(next[depth] == 'v') {
  ------------------
  |  Branch (443:16): [True: 32.5M, False: 6.14M]
  ------------------
  444|  32.5M|                cj5__parse_primitive(&parser); // Parse primitive value
  445|  32.5M|                if(nesting[depth] != 0) {
  ------------------
  |  Branch (445:20): [True: 32.5M, False: 1.51k]
  ------------------
  446|       |                    // Parent is object or array
  447|  32.5M|                    if(token)
  ------------------
  |  Branch (447:24): [True: 31.2M, False: 1.36M]
  ------------------
  448|  31.2M|                        token->size++;
  449|  32.5M|                    next[depth] = ',';
  450|  32.5M|                } else {
  451|       |                    // The current value was the root element. Don't look for
  452|       |                    // any next element.
  453|  1.51k|                    next[depth] = 0;
  454|       |
  455|       |                    // The first element was successfully parsed. Stop early or try to
  456|       |                    // parse the full input string?
  457|  1.51k|                    if(parser.stop_early)
  ------------------
  |  Branch (457:24): [True: 0, False: 1.51k]
  ------------------
  458|      0|                        goto finish;
  459|  1.51k|                }
  460|  32.5M|            } else if(next[depth] == 'k') {
  ------------------
  |  Branch (460:23): [True: 6.14M, False: 232]
  ------------------
  461|  6.14M|                cj5__parse_key(&parser);
  462|  6.14M|                if(token)
  ------------------
  |  Branch (462:20): [True: 5.03M, False: 1.10M]
  ------------------
  463|  5.03M|                    token->size++; // Keys count towards the length
  464|  6.14M|                next[depth] = ':';
  465|  6.14M|            } else {
  466|    232|                parser.error = CJ5_ERROR_INVALID;
  467|    232|            }
  468|       |
  469|  38.7M|            if(parser.error && parser.error != CJ5_ERROR_OVERFLOW)
  ------------------
  |  Branch (469:16): [True: 20.1M, False: 18.5M]
  |  Branch (469:32): [True: 533, False: 20.1M]
  ------------------
  470|    533|                goto finish;
  471|       |
  472|  38.7M|            break;
  473|  79.8M|        }
  474|  79.8M|    }
  475|       |
  476|       |    // Are we back to the initial nesting depth?
  477|  7.90k|    if(depth != 0) {
  ------------------
  |  Branch (477:8): [True: 197, False: 7.70k]
  ------------------
  478|    197|        parser.error = CJ5_ERROR_INCOMPLETE;
  479|    197|        goto finish;
  480|    197|    }
  481|       |
  482|       |    // Close the virtual root object if there is one
  483|  7.70k|    if(nesting[0] == '{' && parser.error != CJ5_ERROR_OVERFLOW) {
  ------------------
  |  Branch (483:8): [True: 1.10k, False: 6.60k]
  |  Branch (483:29): [True: 1.08k, False: 25]
  ------------------
  484|       |        // Check the we end after a complete key-value pair (or dangling comma)
  485|  1.08k|        if(next[0] != 'k' && next[0] != ',')
  ------------------
  |  Branch (485:12): [True: 1.07k, False: 7]
  |  Branch (485:30): [True: 76, False: 997]
  ------------------
  486|     76|            parser.error = CJ5_ERROR_INVALID;
  487|  1.08k|        tokens[0].end = parser.pos - 1;
  488|  1.08k|    }
  489|       |
  490|  9.85k| finish:
  491|       |    // If parsing failed at the initial nesting depth, create a virtual root object
  492|       |    // and restart parsing.
  493|  9.85k|    if(parser.error != CJ5_ERROR_NONE &&
  ------------------
  |  Branch (493:8): [True: 2.76k, False: 7.08k]
  ------------------
  494|  2.76k|       parser.error != CJ5_ERROR_OVERFLOW &&
  ------------------
  |  Branch (494:8): [True: 2.22k, False: 546]
  ------------------
  495|  2.22k|       depth == 0 && nesting[0] != '{') {
  ------------------
  |  Branch (495:8): [True: 1.90k, False: 311]
  |  Branch (495:22): [True: 1.50k, False: 403]
  ------------------
  496|  1.50k|        parser.token_count = 0;
  497|  1.50k|        token = cj5__alloc_token(&parser);
  498|  1.50k|        if(token) {
  ------------------
  |  Branch (498:12): [True: 1.50k, False: 0]
  ------------------
  499|  1.50k|            token->parent_id = 0;
  500|  1.50k|            token->type = CJ5_TOKEN_OBJECT;
  501|  1.50k|            token->start = 0;
  502|  1.50k|            token->size = 0;
  503|       |
  504|  1.50k|            nesting[0] = '{';
  505|  1.50k|            next[0] = 'k';
  506|       |
  507|  1.50k|            parser.curr_tok_idx = 0;
  508|  1.50k|            parser.pos = 0;
  509|  1.50k|            parser.error = CJ5_ERROR_NONE;
  510|  1.50k|            goto start_parsing;
  511|  1.50k|        }
  512|  1.50k|    }
  513|       |
  514|  8.34k|    memset(&r, 0x0, sizeof(r));
  515|  8.34k|    r.error = parser.error;
  516|  8.34k|    r.error_pos = parser.pos;
  517|  8.34k|    r.num_tokens = parser.token_count; // How many tokens (would) have been
  518|       |                                       // consumed by the parser?
  519|       |
  520|       |    // Not a single token was parsed -> return an error
  521|  8.34k|    if(r.num_tokens == 0)
  ------------------
  |  Branch (521:8): [True: 28, False: 8.31k]
  ------------------
  522|     28|        r.error = CJ5_ERROR_INCOMPLETE;
  523|       |
  524|       |    // Set the tokens and original string only if successfully parsed
  525|  8.34k|    if(r.error == CJ5_ERROR_NONE) {
  ------------------
  |  Branch (525:8): [True: 7.05k, False: 1.28k]
  ------------------
  526|  7.05k|        r.tokens = tokens;
  527|  7.05k|        r.json5 = json5;
  528|  7.05k|    }
  529|       |
  530|  8.34k|    return r;
  531|  9.85k|}
cj5_get_str:
  629|  78.7k|            char *buf, unsigned int *buflen) {
  630|  78.7k|    const cj5_token *token = &r->tokens[tok_index];
  631|  78.7k|    if(token->type != CJ5_TOKEN_STRING) {
  ------------------
  |  Branch (631:8): [True: 0, False: 78.7k]
  ------------------
  632|      0|        buf[0] = 0;
  633|      0|        if(buflen)
  ------------------
  |  Branch (633:12): [True: 0, False: 0]
  ------------------
  634|      0|            *buflen = 0;
  635|      0|        return CJ5_ERROR_INVALID;
  636|      0|    }
  637|       |
  638|  78.7k|    const char *pos = &r->json5[token->start];
  639|  78.7k|    const char *end = &r->json5[token->end + 1];
  640|  78.7k|    unsigned int outpos = 0;
  641|  78.7k|    cj5_error_code error = CJ5_ERROR_NONE;
  642|  19.9M|    for(; pos < end; pos++) {
  ------------------
  |  Branch (642:11): [True: 19.8M, False: 78.5k]
  ------------------
  643|  19.8M|        uint8_t c = (uint8_t)*pos;
  644|       |        // Unprintable ascii characters must be escaped
  645|  19.8M|        if(c < ' ' || c == 127) {
  ------------------
  |  Branch (645:12): [True: 66, False: 19.8M]
  |  Branch (645:23): [True: 3, False: 19.8M]
  ------------------
  646|     69|            error = CJ5_ERROR_INVALID;
  647|     69|            goto done;
  648|     69|        }
  649|       |
  650|       |        // Unescaped Ascii character or utf8 byte
  651|  19.8M|        if(c != '\\') {
  ------------------
  |  Branch (651:12): [True: 19.8M, False: 12.7k]
  ------------------
  652|  19.8M|            buf[outpos++] = (char)c;
  653|  19.8M|            continue;
  654|  19.8M|        }
  655|       |
  656|       |        // End of input before the escaped character
  657|  12.7k|        if(pos + 1 >= end) {
  ------------------
  |  Branch (657:12): [True: 0, False: 12.7k]
  ------------------
  658|      0|            error = CJ5_ERROR_INCOMPLETE;
  659|      0|            goto done;
  660|      0|        }
  661|       |
  662|       |        // Process escaped character
  663|  12.7k|        pos++;
  664|  12.7k|        c = (uint8_t)*pos;
  665|  12.7k|        switch(c) {
  666|    237|        case 'b': buf[outpos++] = '\b'; break;
  ------------------
  |  Branch (666:9): [True: 237, False: 12.5k]
  ------------------
  667|    351|        case 'f': buf[outpos++] = '\f'; break;
  ------------------
  |  Branch (667:9): [True: 351, False: 12.3k]
  ------------------
  668|    194|        case 'r': buf[outpos++] = '\r'; break;
  ------------------
  |  Branch (668:9): [True: 194, False: 12.5k]
  ------------------
  669|    413|        case 'n': buf[outpos++] = '\n'; break;
  ------------------
  |  Branch (669:9): [True: 413, False: 12.3k]
  ------------------
  670|    688|        case 't': buf[outpos++] = '\t'; break;
  ------------------
  |  Branch (670:9): [True: 688, False: 12.0k]
  ------------------
  671|  6.57k|        default:  buf[outpos++] = (char)c; break;
  ------------------
  |  Branch (671:9): [True: 6.57k, False: 6.17k]
  ------------------
  672|  4.28k|        case 'u': {
  ------------------
  |  Branch (672:9): [True: 4.28k, False: 8.46k]
  ------------------
  673|       |            // Parse a unicode code point
  674|  4.28k|            if(pos + 4 >= end) {
  ------------------
  |  Branch (674:16): [True: 3, False: 4.28k]
  ------------------
  675|      3|                error = CJ5_ERROR_INCOMPLETE;
  676|      3|                goto done;
  677|      3|            }
  678|  4.28k|            pos++;
  679|  4.28k|            uint32_t utf;
  680|  4.28k|            error = parse_codepoint(pos, &utf);
  681|  4.28k|            if(error != CJ5_ERROR_NONE)
  ------------------
  |  Branch (681:16): [True: 20, False: 4.26k]
  ------------------
  682|     20|                goto done;
  683|  4.26k|            pos += 3;
  684|       |
  685|       |            // Parse a surrogate pair
  686|  4.26k|            if(0xd800 <= utf && utf <= 0xdfff) {
  ------------------
  |  Branch (686:16): [True: 1.97k, False: 2.29k]
  |  Branch (686:33): [True: 1.51k, False: 455]
  ------------------
  687|  1.51k|                if(pos + 6 >= end) {
  ------------------
  |  Branch (687:20): [True: 16, False: 1.49k]
  ------------------
  688|     16|                    error = CJ5_ERROR_INVALID;
  689|     16|                    goto done;
  690|     16|                }
  691|  1.49k|                if(pos[1] != '\\' && pos[2] != 'u') {
  ------------------
  |  Branch (691:20): [True: 522, False: 977]
  |  Branch (691:38): [True: 12, False: 510]
  ------------------
  692|     12|                    error = CJ5_ERROR_INVALID;
  693|     12|                    goto done;
  694|     12|                }
  695|  1.48k|                pos += 3;
  696|  1.48k|                uint32_t utf2;
  697|  1.48k|                error = parse_codepoint(pos, &utf2);
  698|  1.48k|                if(error != CJ5_ERROR_NONE)
  ------------------
  |  Branch (698:20): [True: 18, False: 1.46k]
  ------------------
  699|     18|                    goto done;
  700|  1.46k|                pos += 3;
  701|       |                // High or low surrogate pair
  702|  1.46k|                utf = (utf <= 0xdbff) ?
  ------------------
  |  Branch (702:23): [True: 1.10k, False: 369]
  ------------------
  703|  1.10k|                    (utf << 10) + utf2 + SURROGATE_OFFSET :
  704|  1.46k|                    (utf2 << 10) + utf + SURROGATE_OFFSET;
  705|  1.46k|            }
  706|       |
  707|       |            // Write the utf8 bytes of the code point
  708|  4.22k|            unsigned len = utf8_from_codepoint((unsigned char*)buf + outpos, utf);
  709|  4.22k|            if(len == 0) {
  ------------------
  |  Branch (709:16): [True: 38, False: 4.18k]
  ------------------
  710|     38|                error = CJ5_ERROR_INVALID; // Not a utf8 string
  711|     38|                goto done;
  712|     38|            }
  713|  4.18k|            outpos += len;
  714|  4.18k|            break;
  715|  4.22k|        }
  716|  12.7k|        }
  717|  12.7k|    }
  718|       |
  719|  78.7k| done:
  720|       |    // Always leave buf as a valid, NUL-terminated string, even when decoding
  721|       |    // fails midway. Callers still must check the returned error code.
  722|  78.7k|    buf[outpos] = 0;
  723|       |
  724|       |    // Set the output length
  725|  78.7k|    if(buflen)
  ------------------
  |  Branch (725:8): [True: 78.7k, False: 0]
  ------------------
  726|  78.7k|        *buflen = outpos;
  727|  78.7k|    return error;
  728|  78.7k|}
cj5.c:cj5__skip_comment:
  261|  4.35k|cj5__skip_comment(cj5__parser* parser) {
  262|  4.35k|    const char* json5 = parser->json5;
  263|       |
  264|       |    // Single-line comment
  265|  4.35k|    if(json5[parser->pos] == '#') {
  ------------------
  |  Branch (265:8): [True: 506, False: 3.84k]
  ------------------
  266|    822|    skip_line:
  267|  2.35M|        while(parser->pos < parser->len) {
  ------------------
  |  Branch (267:15): [True: 2.35M, False: 62]
  ------------------
  268|  2.35M|            if(json5[parser->pos] == '\n') {
  ------------------
  |  Branch (268:16): [True: 760, False: 2.35M]
  ------------------
  269|    760|                parser->pos--; // Reparse the newline in the main parse loop
  270|    760|                return;
  271|    760|            }
  272|  2.35M|            parser->pos++;
  273|  2.35M|        }
  274|     62|        return;
  275|    822|    }
  276|       |
  277|       |    // Comment begins with '/' but not enough space for another character
  278|  3.84k|    if(parser->pos + 1 >= parser->len) {
  ------------------
  |  Branch (278:8): [True: 32, False: 3.81k]
  ------------------
  279|     32|        parser->error = CJ5_ERROR_INVALID;
  280|     32|        return;
  281|     32|    }
  282|  3.81k|    parser->pos++;
  283|       |
  284|       |    // Comment begins with '//' -> single-line comment
  285|  3.81k|    if(json5[parser->pos] == '/')
  ------------------
  |  Branch (285:8): [True: 316, False: 3.49k]
  ------------------
  286|    316|        goto skip_line;
  287|       |
  288|       |    // Multi-line comments begin with '/*' and end with '*/'
  289|  3.49k|    if(json5[parser->pos] == '*') {
  ------------------
  |  Branch (289:8): [True: 3.45k, False: 40]
  ------------------
  290|  3.45k|        parser->pos++;
  291|  1.34M|        for(; parser->pos + 1 < parser->len; parser->pos++) {
  ------------------
  |  Branch (291:15): [True: 1.34M, False: 100]
  ------------------
  292|  1.34M|            if(json5[parser->pos] == '*' && json5[parser->pos + 1] == '/') {
  ------------------
  |  Branch (292:16): [True: 8.19k, False: 1.33M]
  |  Branch (292:45): [True: 3.35k, False: 4.83k]
  ------------------
  293|  3.35k|                parser->pos++;
  294|  3.35k|                return;
  295|  3.35k|            }
  296|  1.34M|        }
  297|  3.45k|    }
  298|       |
  299|       |    // Unknown comment type or the multi-line comment is not terminated
  300|    140|    parser->error = CJ5_ERROR_INCOMPLETE;
  301|    140|}
cj5.c:cj5__alloc_token:
   89|  38.9M|cj5__alloc_token(cj5__parser *parser) {
   90|  38.9M|    cj5_token* token = NULL;
   91|  38.9M|    if(parser->token_count < parser->max_tokens) {
  ------------------
  |  Branch (91:8): [True: 18.6M, False: 20.2M]
  ------------------
   92|  18.6M|        token = &parser->tokens[parser->token_count];
   93|  18.6M|        memset(token, 0x0, sizeof(cj5_token));
   94|  20.2M|    } else {
   95|  20.2M|        parser->error = CJ5_ERROR_OVERFLOW;
   96|  20.2M|    }
   97|       |
   98|       |    // Always increase the index. So we know eventually how many token would be
   99|       |    // required (if there are not enough).
  100|  38.9M|    parser->token_count++;
  101|  38.9M|    return token;
  102|  38.9M|}
cj5.c:cj5__parse_primitive:
  153|  32.5M|cj5__parse_primitive(cj5__parser* parser) {
  154|  32.5M|    const char* json5 = parser->json5;
  155|  32.5M|    unsigned int len = parser->len;
  156|  32.5M|    unsigned int start = parser->pos;
  157|       |
  158|       |    // String value
  159|  32.5M|    if(json5[start] == '\"' ||
  ------------------
  |  Branch (159:8): [True: 1.90M, False: 30.6M]
  ------------------
  160|  30.6M|       json5[start] == '\'') {
  ------------------
  |  Branch (160:8): [True: 822, False: 30.6M]
  ------------------
  161|  1.90M|        cj5__parse_string(parser);
  162|  1.90M|        return;
  163|  1.90M|    }
  164|       |
  165|       |    // Fast comparison of bool, and null.
  166|       |    // Make the comparison case-insensitive.
  167|  30.6M|    uint32_t fourcc = 0;
  168|  30.6M|    if(start + 3 < len) {
  ------------------
  |  Branch (168:8): [True: 30.6M, False: 669]
  ------------------
  169|  30.6M|        fourcc += (unsigned char)json5[start] | 32U;
  170|  30.6M|        fourcc += ((unsigned char)json5[start+1] | 32U) << 8;
  171|  30.6M|        fourcc += ((unsigned char)json5[start+2] | 32U) << 16;
  172|  30.6M|        fourcc += ((unsigned char)json5[start+3] | 32U) << 24;
  173|  30.6M|    }
  174|       |    
  175|  30.6M|    cj5_token_type type;
  176|  30.6M|    if(fourcc == CJ5__NULL_FOURCC) {
  ------------------
  |  Branch (176:8): [True: 9.95k, False: 30.6M]
  ------------------
  177|  9.95k|        type = CJ5_TOKEN_NULL;
  178|  9.95k|        parser->pos += 3;
  179|  30.6M|    } else if(fourcc == CJ5__TRUE_FOURCC) {
  ------------------
  |  Branch (179:15): [True: 386, False: 30.6M]
  ------------------
  180|    386|        type = CJ5_TOKEN_BOOL;
  181|    386|        parser->pos += 3;
  182|  30.6M|    } else if(fourcc == CJ5__FALSE_FOURCC) {
  ------------------
  |  Branch (182:15): [True: 386, False: 30.6M]
  ------------------
  183|       |        // "false" has five characters
  184|    386|        type = CJ5_TOKEN_BOOL;
  185|    386|        if(start + 4 >= len || (json5[start+4] | 32) != 'e') {
  ------------------
  |  Branch (185:12): [True: 1, False: 385]
  |  Branch (185:32): [True: 18, False: 367]
  ------------------
  186|     19|            parser->error = CJ5_ERROR_INVALID;
  187|     19|            return;
  188|     19|        }
  189|    367|        parser->pos += 4;
  190|  30.6M|    } else {
  191|       |        // Numbers are checked for basic compatibility.
  192|       |        // But they are fully parsed only in the cj5_get_XXX functions.
  193|  30.6M|        type = CJ5_TOKEN_NUMBER;
  194|  77.0M|        for(; parser->pos < len; parser->pos++) {
  ------------------
  |  Branch (194:15): [True: 77.0M, False: 1.07k]
  ------------------
  195|  77.0M|            if(!cj5__isnum(json5[parser->pos]) &&
  ------------------
  |  |   86|   154M|#define cj5__isnum(ch)       cj5__isrange(ch, '0', '9')
  ------------------
  |  Branch (195:16): [True: 39.7M, False: 37.3M]
  ------------------
  196|  39.7M|               !(json5[parser->pos] == '.') &&
  ------------------
  |  Branch (196:16): [True: 39.6M, False: 2.62k]
  ------------------
  197|  39.6M|               !cj5__islowerchar(json5[parser->pos]) && 
  ------------------
  |  |   85|   116M|#define cj5__islowerchar(ch) cj5__isrange(ch, 'a', 'z')
  ------------------
  |  Branch (197:16): [True: 35.3M, False: 4.31M]
  ------------------
  198|  35.3M|               !cj5__isupperchar(json5[parser->pos]) &&
  ------------------
  |  |   84|   112M|#define cj5__isupperchar(ch) cj5__isrange(ch, 'A', 'Z')
  ------------------
  |  Branch (198:16): [True: 31.2M, False: 4.15M]
  ------------------
  199|  31.2M|               !(json5[parser->pos] == '+') && !(json5[parser->pos] == '-')) {
  ------------------
  |  Branch (199:16): [True: 31.2M, False: 1.08k]
  |  Branch (199:48): [True: 30.6M, False: 581k]
  ------------------
  200|  30.6M|                break;
  201|  30.6M|            }
  202|  77.0M|        }
  203|  30.6M|        parser->pos--; // Point to the last character that is still inside the
  204|       |                       // primitive value
  205|  30.6M|    }
  206|       |
  207|  30.6M|    cj5_token *token = cj5__alloc_token(parser);
  208|  30.6M|    if(token) {
  ------------------
  |  Branch (208:8): [True: 14.4M, False: 16.2M]
  ------------------
  209|  14.4M|        token->type = type;
  210|  14.4M|        token->start = start;
  211|  14.4M|        token->end = parser->pos;
  212|  14.4M|        token->size = parser->pos - start + 1;
  213|  14.4M|        token->parent_id = parser->curr_tok_idx;
  214|  14.4M|    }
  215|  30.6M|}
cj5.c:cj5__parse_string:
  105|  4.50M|cj5__parse_string(cj5__parser *parser) {
  106|  4.50M|    const char *json5 = parser->json5;
  107|  4.50M|    unsigned int len = parser->len;
  108|  4.50M|    unsigned int start = parser->pos;
  109|  4.50M|    char str_open = json5[start];
  110|       |
  111|  4.50M|    parser->pos++;
  112|  58.6M|    for(; parser->pos < len; parser->pos++) {
  ------------------
  |  Branch (112:11): [True: 58.6M, False: 151]
  ------------------
  113|  58.6M|        char c = json5[parser->pos];
  114|       |
  115|       |        // End of string
  116|  58.6M|        if(str_open == c) {
  ------------------
  |  Branch (116:12): [True: 4.50M, False: 54.1M]
  ------------------
  117|  4.50M|            cj5_token *token = cj5__alloc_token(parser);
  118|  4.50M|            if(token) {
  ------------------
  |  Branch (118:16): [True: 2.27M, False: 2.23M]
  ------------------
  119|  2.27M|                token->type = CJ5_TOKEN_STRING;
  120|  2.27M|                token->start = start + 1;
  121|  2.27M|                token->end = parser->pos - 1;
  122|  2.27M|                token->size = token->end - token->start + 1;
  123|  2.27M|                token->parent_id = parser->curr_tok_idx;
  124|  2.27M|            } 
  125|  4.50M|            return;
  126|  4.50M|        }
  127|       |
  128|       |        // Unescaped newlines are forbidden
  129|  54.1M|        if(c == '\n') {
  ------------------
  |  Branch (129:12): [True: 4, False: 54.1M]
  ------------------
  130|      4|            parser->error = CJ5_ERROR_INVALID;
  131|      4|            return;
  132|      4|        }
  133|       |
  134|       |        // Skip escape character
  135|  54.1M|        if(c == '\\') {
  ------------------
  |  Branch (135:12): [True: 400k, False: 53.7M]
  ------------------
  136|   400k|            if(parser->pos + 1 >= len) {
  ------------------
  |  Branch (136:16): [True: 3, False: 400k]
  ------------------
  137|      3|                parser->error = CJ5_ERROR_INCOMPLETE;
  138|      3|                return;
  139|      3|            }
  140|   400k|            parser->pos++;
  141|   400k|        }
  142|  54.1M|    }
  143|       |
  144|       |    // The file has ended before the string terminates
  145|    151|    parser->error = CJ5_ERROR_INCOMPLETE;
  146|    151|}
cj5.c:cj5__isrange:
   80|   176M|cj5__isrange(char ch, char from, char to) {
   81|   176M|    return (uint8_t)(ch - from) <= (uint8_t)(to - from);
   82|   176M|}
cj5.c:cj5__parse_key:
  218|  6.14M|cj5__parse_key(cj5__parser* parser) {
  219|  6.14M|    const char* json5 = parser->json5;
  220|  6.14M|    unsigned int start = parser->pos;
  221|  6.14M|    cj5_token* token;
  222|       |
  223|       |    // Key is a a normal string
  224|  6.14M|    if(json5[start] == '\"' || json5[start] == '\'') {
  ------------------
  |  Branch (224:8): [True: 2.59M, False: 3.54M]
  |  Branch (224:32): [True: 3.20k, False: 3.54M]
  ------------------
  225|  2.60M|        cj5__parse_string(parser);
  226|  2.60M|        return;
  227|  2.60M|    }
  228|       |
  229|       |    // An unquoted key. Must start with a-ZA-Z_$. Can contain numbers later on.
  230|  3.54M|    unsigned int len = parser->len;
  231|  11.3M|    for(; parser->pos < len; parser->pos++) {
  ------------------
  |  Branch (231:11): [True: 11.3M, False: 73]
  ------------------
  232|  11.3M|        if(cj5__islowerchar(json5[parser->pos]) ||
  ------------------
  |  |   85|  22.6M|#define cj5__islowerchar(ch) cj5__isrange(ch, 'a', 'z')
  |  |  ------------------
  |  |  |  Branch (85:30): [True: 2.75M, False: 8.55M]
  |  |  ------------------
  ------------------
  233|  8.55M|           cj5__isupperchar(json5[parser->pos]) ||
  ------------------
  |  |   84|  19.8M|#define cj5__isupperchar(ch) cj5__isrange(ch, 'A', 'Z')
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 4.54M, False: 4.01M]
  |  |  ------------------
  ------------------
  234|  4.01M|           json5[parser->pos] == '_' || json5[parser->pos] == '$')
  ------------------
  |  Branch (234:12): [True: 1.49k, False: 4.00M]
  |  Branch (234:41): [True: 2.97k, False: 4.00M]
  ------------------
  235|  7.30M|            continue;
  236|  4.00M|        if(cj5__isnum(json5[parser->pos]) && parser->pos != start)
  ------------------
  |  |   86|  8.01M|#define cj5__isnum(ch)       cj5__isrange(ch, '0', '9')
  |  |  ------------------
  |  |  |  Branch (86:30): [True: 464k, False: 3.54M]
  |  |  ------------------
  ------------------
  |  Branch (236:46): [True: 464k, False: 10]
  ------------------
  237|   464k|            continue;
  238|  3.54M|        break;
  239|  4.00M|    }
  240|       |
  241|       |    // An empty key is not allowed
  242|  3.54M|    if(parser->pos <= start) {
  ------------------
  |  Branch (242:8): [True: 124, False: 3.54M]
  ------------------
  243|    124|        parser->error = CJ5_ERROR_INVALID;
  244|    124|        return;
  245|    124|    }
  246|       |
  247|       |    // Move pos to the last character within the unquoted key
  248|  3.54M|    parser->pos--;
  249|       |
  250|  3.54M|    token = cj5__alloc_token(parser);
  251|  3.54M|    if(token) {
  ------------------
  |  Branch (251:8): [True: 1.82M, False: 1.71M]
  ------------------
  252|  1.82M|        token->type = CJ5_TOKEN_STRING;
  253|  1.82M|        token->start = start;
  254|  1.82M|        token->end = parser->pos;
  255|  1.82M|        token->size = parser->pos - start + 1;
  256|  1.82M|        token->parent_id = parser->curr_tok_idx;
  257|  1.82M|    }
  258|  3.54M|}
cj5.c:parse_codepoint:
  608|  5.77k|parse_codepoint(const char *pos, uint32_t *out_utf) {
  609|  5.77k|    uint32_t utf = 0;
  610|  28.7k|    for(unsigned int i = 0; i < 4; i++) {
  ------------------
  |  Branch (610:29): [True: 23.0k, False: 5.73k]
  ------------------
  611|  23.0k|        char byte = pos[i];
  612|  23.0k|        if(cj5__isnum(byte)) {
  ------------------
  |  |   86|  23.0k|#define cj5__isnum(ch)       cj5__isrange(ch, '0', '9')
  |  |  ------------------
  |  |  |  Branch (86:30): [True: 6.59k, False: 16.4k]
  |  |  ------------------
  ------------------
  613|  6.59k|            byte = (char)(byte - '0');
  614|  16.4k|        } else if(cj5__isrange(byte, 'a', 'f')) {
  ------------------
  |  Branch (614:19): [True: 12.1k, False: 4.28k]
  ------------------
  615|  12.1k|            byte = (char)(byte - ('a' - 10));
  616|  12.1k|        } else if(cj5__isrange(byte, 'A', 'F')) {
  ------------------
  |  Branch (616:19): [True: 4.25k, False: 38]
  ------------------
  617|  4.25k|            byte = (char)(byte - ('A' - 10));
  618|  4.25k|        } else {
  619|     38|            return CJ5_ERROR_INVALID;
  620|     38|        }
  621|  22.9k|        utf = (utf << 4) | ((uint8_t)byte & 0xF);
  622|  22.9k|    }
  623|  5.73k|    *out_utf = utf;
  624|  5.73k|    return CJ5_ERROR_NONE;
  625|  5.77k|}

musl_tm_to_secs:
  149|    102|musl_tm_to_secs(const struct musl_tm *tm) {
  150|    102|    int is_leap;
  151|    102|    long long year = tm->tm_year;
  152|    102|    int month = tm->tm_mon;
  153|    102|    if (month >= 12 || month < 0) {
  ------------------
  |  Branch (153:9): [True: 0, False: 102]
  |  Branch (153:24): [True: 0, False: 102]
  ------------------
  154|      0|        int adj = month / 12;
  155|      0|        month %= 12;
  156|      0|        if (month < 0) {
  ------------------
  |  Branch (156:13): [True: 0, False: 0]
  ------------------
  157|      0|            adj--;
  158|      0|            month += 12;
  159|      0|        }
  160|      0|        year += adj;
  161|      0|    }
  162|    102|    long long t = musl_year_to_secs(year, &is_leap);
  163|    102|    t += musl_month_to_secs(month, is_leap);
  164|    102|    t += 86400LL * (tm->tm_mday-1);
  165|    102|    t += 3600LL * tm->tm_hour;
  166|    102|    t += 60LL * tm->tm_min;
  167|    102|    t += tm->tm_sec;
  168|    102|    return t;
  169|    102|}
libc_time.c:musl_year_to_secs:
  101|    102|musl_year_to_secs(const long long year, int *is_leap) {
  102|    102|    if (year-2ULL <= 136) {
  ------------------
  |  Branch (102:9): [True: 8, False: 94]
  ------------------
  103|      8|        int y = (int)year;
  104|      8|        int leaps = (y-68)>>2;
  105|      8|        if (!((y-68)&3)) {
  ------------------
  |  Branch (105:13): [True: 2, False: 6]
  ------------------
  106|      2|            leaps--;
  107|      2|            if (is_leap) *is_leap = 1;
  ------------------
  |  Branch (107:17): [True: 2, False: 0]
  ------------------
  108|      6|        } else if (is_leap) *is_leap = 0;
  ------------------
  |  Branch (108:20): [True: 6, False: 0]
  ------------------
  109|      8|        return 31536000*(y-70) + 86400*leaps;
  110|      8|    }
  111|       |
  112|     94|    int cycles, centuries, leaps, rem, dummy;
  113|       |
  114|     94|    if (!is_leap) is_leap = &dummy;
  ------------------
  |  Branch (114:9): [True: 0, False: 94]
  ------------------
  115|     94|    cycles = (int)((year-100) / 400);
  116|     94|    rem = (int)((year-100) % 400);
  117|     94|    if (rem < 0) {
  ------------------
  |  Branch (117:9): [True: 56, False: 38]
  ------------------
  118|     56|        cycles--;
  119|     56|        rem += 400;
  120|     56|    }
  121|     94|    if (!rem) {
  ------------------
  |  Branch (121:9): [True: 2, False: 92]
  ------------------
  122|      2|        *is_leap = 1;
  123|      2|        centuries = 0;
  124|      2|        leaps = 0;
  125|     92|    } else {
  126|     92|        if (rem >= 200) {
  ------------------
  |  Branch (126:13): [True: 34, False: 58]
  ------------------
  127|     34|            if (rem >= 300) centuries = 3, rem -= 300;
  ------------------
  |  Branch (127:17): [True: 19, False: 15]
  ------------------
  128|     15|            else centuries = 2, rem -= 200;
  129|     58|        } else {
  130|     58|            if (rem >= 100) centuries = 1, rem -= 100;
  ------------------
  |  Branch (130:17): [True: 19, False: 39]
  ------------------
  131|     39|            else centuries = 0;
  132|     58|        }
  133|     92|        if (!rem) {
  ------------------
  |  Branch (133:13): [True: 3, False: 89]
  ------------------
  134|      3|            *is_leap = 0;
  135|      3|            leaps = 0;
  136|     89|        } else {
  137|     89|            leaps = rem / 4;
  138|     89|            rem %= 4;
  139|     89|            *is_leap = !rem;
  140|     89|        }
  141|     92|    }
  142|       |
  143|     94|    leaps += 97*cycles + 24*centuries - *is_leap;
  144|       |
  145|     94|    return (year-100) * 31536000LL + leaps * 86400LL + 946684800 + 86400;
  146|    102|}
libc_time.c:musl_month_to_secs:
   93|    102|musl_month_to_secs(int month, int is_leap) {
   94|    102|    int t = secs_through_month[month];
   95|    102|    if (is_leap && month >= 2)
  ------------------
  |  Branch (95:9): [True: 23, False: 79]
  |  Branch (95:20): [True: 12, False: 11]
  ------------------
   96|     12|        t+=86400;
   97|    102|    return t;
   98|    102|}

parseUInt64:
   30|  3.88M|parseUInt64(const char *str, size_t size, uint64_t *result) {
   31|  3.88M|    size_t i = 0;
   32|  3.88M|    uint64_t n = 0, prev = 0;
   33|       |
   34|       |    /* Hex */
   35|  3.88M|    if(size > 2 && str[0] == '0' && (str[1] | 32) == 'x') {
  ------------------
  |  Branch (35:8): [True: 143k, False: 3.73M]
  |  Branch (35:20): [True: 136k, False: 7.20k]
  |  Branch (35:37): [True: 6.46k, False: 129k]
  ------------------
   36|  6.46k|        i = 2;
   37|   174k|        for(; i < size; i++) {
  ------------------
  |  Branch (37:15): [True: 168k, False: 5.73k]
  ------------------
   38|   168k|            uint8_t c = (uint8_t)str[i] | 32;
   39|   168k|            if(c >= '0' && c <= '9')
  ------------------
  |  Branch (39:16): [True: 168k, False: 201]
  |  Branch (39:28): [True: 159k, False: 8.98k]
  ------------------
   40|   159k|                c = (uint8_t)(c - '0');
   41|  9.18k|            else if(c >= 'a' && c <='f')
  ------------------
  |  Branch (41:21): [True: 8.97k, False: 208]
  |  Branch (41:33): [True: 8.46k, False: 514]
  ------------------
   42|  8.46k|                c = (uint8_t)(c - 'a' + 10);
   43|    722|            else if(c >= 'A' && c <='F')
  ------------------
  |  Branch (43:21): [True: 515, False: 207]
  |  Branch (43:33): [True: 0, False: 515]
  ------------------
   44|      0|                c = (uint8_t)(c - 'A' + 10);
   45|    722|            else
   46|    722|                break;
   47|   168k|            n = (n << 4) | (c & 0xF);
   48|   168k|            if(n < prev) /* Check for overflow */
  ------------------
  |  Branch (48:16): [True: 6, False: 168k]
  ------------------
   49|      6|                return 0;
   50|   168k|            prev = n;
   51|   168k|        }
   52|  6.45k|        *result = n;
   53|  6.45k|        return (i > 2) ? i : 0; /* 2 -> No digit was parsed */
  ------------------
  |  Branch (53:16): [True: 6.42k, False: 29]
  ------------------
   54|  6.46k|    }
   55|       |
   56|       |    /* Decimal */
   57|  12.2M|    for(; i < size; i++) {
  ------------------
  |  Branch (57:11): [True: 8.41M, False: 3.86M]
  ------------------
   58|  8.41M|        if(str[i] < '0' || str[i] > '9')
  ------------------
  |  Branch (58:12): [True: 8.91k, False: 8.40M]
  |  Branch (58:28): [True: 1.81k, False: 8.40M]
  ------------------
   59|  10.7k|            break;
   60|       |        /* Fast multiplication: n*10 == (n*8) + (n*2) */
   61|  8.40M|        n = (n << 3) + (n << 1) + (uint8_t)(str[i] - '0');
   62|  8.40M|        if(n < prev) /* Check for overflow */
  ------------------
  |  Branch (62:12): [True: 10, False: 8.40M]
  ------------------
   63|     10|            return 0;
   64|  8.40M|        prev = n;
   65|  8.40M|    }
   66|  3.87M|    *result = n;
   67|  3.87M|    return i;
   68|  3.87M|}
parseInt64:
   71|  1.07M|parseInt64(const char *str, size_t size, int64_t *result) {
   72|       |    /* Negative value? */
   73|  1.07M|    size_t i = 0;
   74|  1.07M|    bool neg = false;
   75|  1.07M|    if(*str == '-' || *str == '+') {
  ------------------
  |  Branch (75:8): [True: 1.32k, False: 1.07M]
  |  Branch (75:23): [True: 292, False: 1.07M]
  ------------------
   76|  1.61k|        neg = (*str == '-');
   77|  1.61k|        i++;
   78|  1.61k|    }
   79|       |
   80|       |    /* Parse as unsigned */
   81|  1.07M|    uint64_t n = 0;
   82|  1.07M|    size_t len = parseUInt64(&str[i], size - i, &n);
   83|  1.07M|    if(len == 0)
  ------------------
  |  Branch (83:8): [True: 126, False: 1.07M]
  ------------------
   84|    126|        return 0;
   85|       |
   86|       |    /* Check for overflow, adjust and return */
   87|  1.07M|    if(!neg) {
  ------------------
  |  Branch (87:8): [True: 1.07M, False: 1.31k]
  ------------------
   88|  1.07M|        if(n > 9223372036854775807UL)
  ------------------
  |  Branch (88:12): [True: 48, False: 1.07M]
  ------------------
   89|     48|            return 0;
   90|  1.07M|        *result = (int64_t)n;
   91|  1.07M|    } else {
   92|       |        /* n is unsigned, so 9223372036854775808UL == 2^63 fits without
   93|       |         * overflow. (int64_t)n would also fit for n in [0, 2^63], but
   94|       |         * the negation -(int64_t)(2^63) is undefined because the result
   95|       |         * (which is +2^63) cannot be represented. Use the unsigned
   96|       |         * representation and reinterpret as int64_t instead. */
   97|  1.31k|        if(n > 9223372036854775808UL)
  ------------------
  |  Branch (97:12): [True: 1, False: 1.31k]
  ------------------
   98|      1|            return 0;
   99|  1.31k|        *result = (n == 9223372036854775808UL)
  ------------------
  |  Branch (99:19): [True: 198, False: 1.11k]
  ------------------
  100|  1.31k|            ? (int64_t)(-9223372036854775807LL - 1)
  101|  1.31k|            : -(int64_t)n;
  102|  1.31k|    }
  103|  1.07M|    return len + i;
  104|  1.07M|}
parseDouble:
  106|   652k|size_t parseDouble(const char *str, size_t size, double *result) {
  107|   652k|    char buf[2000];
  108|   652k|    if(size >= 2000)
  ------------------
  |  Branch (108:8): [True: 1, False: 652k]
  ------------------
  109|      1|        return 0;
  110|   652k|    memcpy(buf, str, size);
  111|   652k|    buf[size] = 0;
  112|   652k|    errno = 0;
  113|   652k|    char *endptr;
  114|   652k|    *result = strtod(buf, &endptr);
  115|   652k|    if(errno != 0 && errno != ERANGE)
  ------------------
  |  Branch (115:8): [True: 201, False: 652k]
  |  Branch (115:22): [True: 0, False: 201]
  ------------------
  116|      0|        return 0;
  117|   652k|    return (uintptr_t)endptr - (uintptr_t)buf;
  118|   652k|}

cj5.c:utf8_from_codepoint:
   39|  4.22k|utf8_from_codepoint(unsigned char *str, unsigned codepoint) {
   40|  4.22k|    if(UTF_LIKELY(codepoint <= 0x7F)) { /* Plain ASCII */
  ------------------
  |  |   24|  4.22k|# define UTF_LIKELY(x) __builtin_expect((x), 1)
  |  |  ------------------
  |  |  |  Branch (24:24): [True: 343, False: 3.87k]
  |  |  ------------------
  ------------------
   41|    343|        str[0] = (unsigned char)codepoint;
   42|    343|        return 1;
   43|    343|    }
   44|  3.87k|    if(UTF_LIKELY(codepoint <= 0x07FF)) { /* 2-byte unicode */
  ------------------
  |  |   24|  3.87k|# define UTF_LIKELY(x) __builtin_expect((x), 1)
  |  |  ------------------
  |  |  |  Branch (24:24): [True: 697, False: 3.18k]
  |  |  ------------------
  ------------------
   45|    697|        str[0] = (unsigned char)(((codepoint >> 6) & 0x1F) | 0xC0);
   46|    697|        str[1] = (unsigned char)(((codepoint >> 0) & 0x3F) | 0x80);
   47|    697|        return 2;
   48|    697|    }
   49|  3.18k|    if(UTF_LIKELY(codepoint <= 0xFFFF)) { /* 3-byte unicode */
  ------------------
  |  |   24|  3.18k|# define UTF_LIKELY(x) __builtin_expect((x), 1)
  |  |  ------------------
  |  |  |  Branch (24:24): [True: 1.71k, False: 1.46k]
  |  |  ------------------
  ------------------
   50|  1.71k|        str[0] = (unsigned char)(((codepoint >> 12) & 0x0F) | 0xE0);
   51|  1.71k|        str[1] = (unsigned char)(((codepoint >>  6) & 0x3F) | 0x80);
   52|  1.71k|        str[2] = (unsigned char)(((codepoint >>  0) & 0x3F) | 0x80);
   53|  1.71k|        return 3;
   54|  1.71k|    }
   55|  1.46k|    if(UTF_LIKELY(codepoint <= 0x10FFFF)) { /* 4-byte unicode */
  ------------------
  |  |   24|  1.46k|# define UTF_LIKELY(x) __builtin_expect((x), 1)
  |  |  ------------------
  |  |  |  Branch (24:24): [True: 1.42k, False: 38]
  |  |  ------------------
  ------------------
   56|  1.42k|        str[0] = (unsigned char)(((codepoint >> 18) & 0x07) | 0xF0);
   57|  1.42k|        str[1] = (unsigned char)(((codepoint >> 12) & 0x3F) | 0x80);
   58|  1.42k|        str[2] = (unsigned char)(((codepoint >>  6) & 0x3F) | 0x80);
   59|  1.42k|        str[3] = (unsigned char)(((codepoint >>  0) & 0x3F) | 0x80);
   60|  1.42k|        return 4;
   61|  1.42k|    }
   62|     38|    return 0; /* Not a unicode codepoint */
   63|  1.46k|}

findEncodingMetaData:
  277|  5.16k|                     UA_UInt16 dsWriterId) {
  278|  5.16k|    if(!eo)
  ------------------
  |  Branch (278:8): [True: 0, False: 5.16k]
  ------------------
  279|      0|        return NULL;
  280|  5.16k|    for(size_t i = 0; i < eo->metaDataSize; i++) {
  ------------------
  |  Branch (280:23): [True: 0, False: 5.16k]
  ------------------
  281|      0|        if(eo->metaData[i].dataSetWriterId == dsWriterId)
  ------------------
  |  Branch (281:12): [True: 0, False: 0]
  ------------------
  282|      0|            return &eo->metaData[i];
  283|      0|    }
  284|  5.16k|    return NULL;
  285|  5.16k|}
UA_NetworkMessage_clear:
 1052|  7.05k|UA_NetworkMessage_clear(UA_NetworkMessage* p) {
 1053|  7.05k|    if(p->promotedFieldsEnabled) {
  ------------------
  |  Branch (1053:8): [True: 0, False: 7.05k]
  ------------------
 1054|      0|        UA_Array_delete(p->promotedFields, p->promotedFieldsSize,
 1055|      0|                        &UA_TYPES[UA_TYPES_VARIANT]);
  ------------------
  |  |  803|      0|#define UA_TYPES_VARIANT 23
  ------------------
 1056|      0|    }
 1057|       |
 1058|  7.05k|    if(p->networkMessageType == UA_NETWORKMESSAGE_DATASET) {
  ------------------
  |  Branch (1058:8): [True: 7.05k, False: 0]
  ------------------
 1059|  7.05k|        if(p->payload.dataSetMessages) {
  ------------------
  |  Branch (1059:12): [True: 6.51k, False: 542]
  ------------------
 1060|  13.1k|            for(size_t i = 0; i < p->messageCount; i++)
  ------------------
  |  Branch (1060:31): [True: 6.64k, False: 6.51k]
  ------------------
 1061|  6.64k|                UA_DataSetMessage_clear(&p->payload.dataSetMessages[i]);
 1062|  6.51k|            UA_free(p->payload.dataSetMessages);
  ------------------
  |  |   19|  6.51k|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 1063|  6.51k|        }
 1064|  7.05k|    }
 1065|       |
 1066|  7.05k|    UA_ByteString_clear(&p->securityFooter);
 1067|  7.05k|    UA_String_clear(&p->messageId);
 1068|       |
 1069|  7.05k|    if(p->publisherIdEnabled &&
  ------------------
  |  Branch (1069:8): [True: 4, False: 7.05k]
  ------------------
 1070|      4|       p->publisherId.idType == UA_PUBLISHERIDTYPE_STRING)
  ------------------
  |  Branch (1070:8): [True: 1, False: 3]
  ------------------
 1071|      1|       UA_String_clear(&p->publisherId.id.string);
 1072|       |
 1073|  7.05k|    memset(p, 0, sizeof(UA_NetworkMessage));
 1074|  7.05k|}
UA_DataSetMessage_clear:
 1916|  6.64k|UA_DataSetMessage_clear(UA_DataSetMessage* p) {
 1917|  6.64k|    if(p->header.dataSetMessageType == UA_DATASETMESSAGE_DATAKEYFRAME) {
  ------------------
  |  Branch (1917:8): [True: 6.64k, False: 0]
  ------------------
 1918|  6.64k|        if(p->data.keyFrameFields)
  ------------------
  |  Branch (1918:12): [True: 5.16k, False: 1.48k]
  ------------------
 1919|  5.16k|            UA_Array_delete(p->data.keyFrameFields, p->fieldCount,
 1920|  5.16k|                            &UA_TYPES[UA_TYPES_DATAVALUE]);
  ------------------
  |  |  769|  5.16k|#define UA_TYPES_DATAVALUE 22
  ------------------
 1921|  6.64k|    } else if(p->header.dataSetMessageType == UA_DATASETMESSAGE_DATADELTAFRAME) {
  ------------------
  |  Branch (1921:15): [True: 0, False: 0]
  ------------------
 1922|      0|        if(p->data.deltaFrameFields) {
  ------------------
  |  Branch (1922:12): [True: 0, False: 0]
  ------------------
 1923|      0|            for(UA_UInt16 i = 0; i < p->fieldCount; i++)
  ------------------
  |  Branch (1923:34): [True: 0, False: 0]
  ------------------
 1924|      0|                UA_DataValue_clear(&p->data.deltaFrameFields[i].value);
 1925|      0|            UA_free(p->data.deltaFrameFields);
  ------------------
  |  |   19|      0|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 1926|      0|        }
 1927|      0|    }
 1928|       |
 1929|  6.64k|    memset(p, 0, sizeof(UA_DataSetMessage));
 1930|  6.64k|}

UA_NetworkMessage_decodeJson:
  543|  7.81k|                             const UA_DecodeJsonOptions *jo) {
  544|       |    /* Set up the context */
  545|  7.81k|    cj5_token tokens[UA_JSON_MAXTOKENCOUNT];
  546|  7.81k|    PubSubDecodeJsonCtx ctx;
  547|  7.81k|    memset(&ctx, 0, sizeof(PubSubDecodeJsonCtx));
  548|  7.81k|    ctx.ctx.tokens = tokens;
  549|  7.81k|    if(eo)
  ------------------
  |  Branch (549:8): [True: 0, False: 7.81k]
  ------------------
  550|      0|        ctx.eo = *eo;
  551|  7.81k|    if(jo) {
  ------------------
  |  Branch (551:8): [True: 0, False: 7.81k]
  ------------------
  552|      0|        ctx.ctx.namespaceMapping = jo->namespaceMapping;
  553|      0|        ctx.ctx.serverUrisSize = jo->serverUrisSize;
  554|      0|        ctx.ctx.serverUris = jo->serverUris;
  555|      0|        ctx.ctx.customTypes = jo->customTypes;
  556|      0|    }
  557|       |
  558|  7.81k|    status ret = tokenize(&ctx.ctx, src, UA_JSON_MAXTOKENCOUNT, NULL);
  ------------------
  |  |   21|  7.81k|#define UA_JSON_MAXTOKENCOUNT 256
  ------------------
  559|  7.81k|    if(ret != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  7.81k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (559:8): [True: 756, False: 7.05k]
  ------------------
  560|    756|        goto cleanup;
  561|       |
  562|  7.05k|    ret = NetworkMessage_decodeJsonInternal(&ctx, dst);
  563|  7.05k|    if(ret != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  7.05k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (563:8): [True: 7.04k, False: 8]
  ------------------
  564|  7.04k|        UA_NetworkMessage_clear(dst);
  565|       |
  566|  7.81k| cleanup:
  567|       |    /* Free token array on the heap */
  568|  7.81k|    if(ctx.ctx.tokens != tokens)
  ------------------
  |  Branch (568:8): [True: 546, False: 7.26k]
  ------------------
  569|    546|        UA_free((void*)(uintptr_t)ctx.ctx.tokens);
  ------------------
  |  |   19|    546|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
  570|  7.81k|    return ret;
  571|  7.05k|}
ua_pubsub_networkmessage_json.c:NetworkMessage_decodeJsonInternal:
  461|  7.05k|                                  UA_NetworkMessage *dst) {
  462|  7.05k|    memset(dst, 0, sizeof(UA_NetworkMessage));
  463|  7.05k|    dst->chunkMessage = false;
  464|  7.05k|    dst->groupHeaderEnabled = false;
  465|  7.05k|    dst->payloadHeaderEnabled = false;
  466|  7.05k|    dst->picosecondsEnabled = false;
  467|  7.05k|    dst->promotedFieldsEnabled = false;
  468|       |
  469|       |    /* The NetworkMessage must be a JSON object */
  470|  7.05k|    if(currentTokenType(&ctx->ctx) != CJ5_TOKEN_OBJECT)
  ------------------
  |  Branch (470:8): [True: 100, False: 6.95k]
  ------------------
  471|    100|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    100|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  472|       |
  473|       |    /* Is Messages an Array? How big? */
  474|  6.95k|    size_t searchResultMessages = 0;
  475|  6.95k|    status found = lookAheadForKey(&ctx->ctx, UA_DECODEKEY_MESSAGES, &searchResultMessages);
  476|  6.95k|    if(found != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  6.95k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (476:8): [True: 156, False: 6.80k]
  ------------------
  477|    156|        return UA_STATUSCODE_BADNOTIMPLEMENTED;
  ------------------
  |  |  239|    156|#define UA_STATUSCODE_BADNOTIMPLEMENTED ((UA_StatusCode) 0x80400000)
  ------------------
  478|  6.80k|    const cj5_token *bodyToken = &ctx->ctx.tokens[searchResultMessages];
  479|  6.80k|    size_t messageCount = 1;
  480|  6.80k|    if(bodyToken->type == CJ5_TOKEN_ARRAY)
  ------------------
  |  Branch (480:8): [True: 2.49k, False: 4.30k]
  ------------------
  481|  2.49k|        messageCount = (size_t)bodyToken->size;
  482|       |
  483|       |    /* Too many DataSetMessages */
  484|  6.80k|    if(messageCount > UA_NETWORKMESSAGE_MAXMESSAGECOUNT)
  ------------------
  |  |  136|  6.80k|#define UA_NETWORKMESSAGE_MAXMESSAGECOUNT 32
  ------------------
  |  Branch (484:8): [True: 15, False: 6.78k]
  ------------------
  485|     15|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     15|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  486|       |
  487|       |    /* MessageType */
  488|  6.78k|    UA_Boolean isUaData = true;
  489|  6.78k|    size_t searchResultMessageType = 0;
  490|  6.78k|    found = lookAheadForKey(&ctx->ctx, UA_DECODEKEY_MESSAGETYPE, &searchResultMessageType);
  491|  6.78k|    if(found != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  6.78k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (491:8): [True: 54, False: 6.73k]
  ------------------
  492|     54|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     54|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  493|  6.73k|    size_t size = getTokenLength(&ctx->ctx.tokens[searchResultMessageType]);
  494|  6.73k|    const char* msgType = &ctx->ctx.json5[ctx->ctx.tokens[searchResultMessageType].start];
  495|  6.73k|    if(size == 7) { //ua-data
  ------------------
  |  Branch (495:8): [True: 6.59k, False: 141]
  ------------------
  496|  6.59k|        if(strncmp(msgType, "ua-data", size) != 0)
  ------------------
  |  Branch (496:12): [True: 62, False: 6.52k]
  ------------------
  497|     62|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     62|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  498|  6.52k|        isUaData = true;
  499|  6.52k|    } else if(size == 11) { //ua-metadata
  ------------------
  |  Branch (499:15): [True: 98, False: 43]
  ------------------
  500|     98|        if(strncmp(msgType, "ua-metadata", size) != 0)
  ------------------
  |  Branch (500:12): [True: 97, False: 1]
  ------------------
  501|     97|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     97|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  502|      1|        isUaData = false;
  503|     43|    } else {
  504|     43|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     43|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  505|     43|    }
  506|       |
  507|       |    //TODO: MetaData
  508|  6.52k|    if(!isUaData)
  ------------------
  |  Branch (508:8): [True: 1, False: 6.52k]
  ------------------
  509|      1|        return UA_STATUSCODE_BADNOTIMPLEMENTED;
  ------------------
  |  |  239|      1|#define UA_STATUSCODE_BADNOTIMPLEMENTED ((UA_StatusCode) 0x80400000)
  ------------------
  510|       |
  511|  6.52k|    dst->payload.dataSetMessages = (UA_DataSetMessage*)
  512|  6.52k|        UA_calloc(messageCount, sizeof(UA_DataSetMessage));
  ------------------
  |  |   20|  6.52k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
  513|  6.52k|    if(!dst->payload.dataSetMessages)
  ------------------
  |  Branch (513:8): [True: 14, False: 6.51k]
  ------------------
  514|     14|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|     14|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  515|  6.51k|    dst->messageCount = (UA_Byte)messageCount;
  516|       |
  517|       |    /* Network Message */
  518|  6.51k|    UA_String messageType;
  519|  6.51k|    DecodeEntry entries[5] = {
  520|  6.51k|        {UA_DECODEKEY_MESSAGEID, &dst->messageId, NULL, false, &UA_TYPES[UA_TYPES_STRING]},
  ------------------
  |  |  395|  6.51k|#define UA_TYPES_STRING 11
  ------------------
  521|  6.51k|        {UA_DECODEKEY_MESSAGETYPE, &messageType, NULL, false, NULL},
  522|  6.51k|        {UA_DECODEKEY_PUBLISHERID, &dst->publisherId, decodePublisherIdJsonInternal, false, NULL},
  523|  6.51k|        {UA_DECODEKEY_DATASETCLASSID, &dst->dataSetClassId, NULL, false, &UA_TYPES[UA_TYPES_GUID]},
  ------------------
  |  |  463|  6.51k|#define UA_TYPES_GUID 13
  ------------------
  524|  6.51k|        {UA_DECODEKEY_MESSAGES, dst, DatasetMessage_Array_decodeJsonInternal, false, NULL}
  525|  6.51k|    };
  526|       |
  527|  6.51k|    status ret = decodeFields(&ctx->ctx, entries, 5);
  528|  6.51k|    if(ret != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  6.51k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (528:8): [True: 6.50k, False: 8]
  ------------------
  529|  6.50k|        return ret;
  530|       |
  531|      8|    dst->messageIdEnabled = entries[0].found;
  532|      8|    dst->publisherIdEnabled = entries[2].found;
  533|      8|    dst->dataSetClassIdEnabled = entries[3].found;
  534|      8|    dst->payloadHeaderEnabled = true;
  535|       |
  536|      8|    return ret;
  537|  6.51k|}
ua_pubsub_networkmessage_json.c:decodePublisherIdJsonInternal:
  444|    197|                              const UA_DataType *type) {
  445|    197|    UA_PublisherId *p = (UA_PublisherId*)dst;
  446|    197|    if(currentTokenType(ctx) == CJ5_TOKEN_NUMBER) {
  ------------------
  |  Branch (446:8): [True: 168, False: 29]
  ------------------
  447|       |        /* Store in biggest possible integer. The problem is that with a UInt64
  448|       |         * is that a string is expected for it in JSON. Therefore, the maximum
  449|       |         * value is set to UInt32. */
  450|    168|        p->idType = UA_PUBLISHERIDTYPE_UINT32;
  451|    168|        return decodeJsonJumpTable[UA_DATATYPEKIND_UINT32](ctx, &p->id.uint32, NULL);
  452|    168|    } else if(currentTokenType(ctx) == CJ5_TOKEN_STRING) {
  ------------------
  |  Branch (452:15): [True: 25, False: 4]
  ------------------
  453|     25|        p->idType = UA_PUBLISHERIDTYPE_STRING;
  454|     25|        return decodeJsonJumpTable[UA_DATATYPEKIND_STRING](ctx, &p->id.string, NULL);
  455|     25|    }
  456|      4|    return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      4|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  457|    197|}
ua_pubsub_networkmessage_json.c:DatasetMessage_Array_decodeJsonInternal:
  413|  6.15k|                                        const UA_DataType *_) {
  414|  6.15k|    PubSubDecodeJsonCtx *ctx = (PubSubDecodeJsonCtx*)ctx_;
  415|       |
  416|       |    /* Array or object */
  417|  6.15k|    size_t length = 1;
  418|  6.15k|    if(currentTokenType(&ctx->ctx) == CJ5_TOKEN_ARRAY) {
  ------------------
  |  Branch (418:8): [True: 2.44k, False: 3.70k]
  ------------------
  419|  2.44k|        length = (size_t)ctx->ctx.tokens[ctx->ctx.index].size;
  420|       |
  421|       |        /* Go to the first array member */
  422|  2.44k|        ctx->ctx.index++;
  423|       |
  424|       |        /* Return early for empty arrays */
  425|  2.44k|        if(length == 0)
  ------------------
  |  Branch (425:12): [True: 10, False: 2.43k]
  ------------------
  426|     10|            return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|     10|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  427|  3.70k|    } else if(currentTokenType(&ctx->ctx) != CJ5_TOKEN_OBJECT) {
  ------------------
  |  Branch (427:15): [True: 286, False: 3.42k]
  ------------------
  428|    286|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    286|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  429|    286|    }
  430|       |
  431|       |    /* Decode array members */
  432|  5.85k|    UA_NetworkMessage *nm = (UA_NetworkMessage*)dst;
  433|  5.85k|    for(size_t i = 0; i < length; ++i) {
  ------------------
  |  Branch (433:23): [True: 5.85k, False: 1]
  ------------------
  434|  5.85k|        status ret = DatasetMessage_Payload_decodeJsonInternal(ctx, nm, i);
  435|  5.85k|        if(ret != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  5.85k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (435:12): [True: 5.85k, False: 1]
  ------------------
  436|  5.85k|            return ret;
  437|  5.85k|    }
  438|       |
  439|      1|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      1|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  440|  5.85k|}
ua_pubsub_networkmessage_json.c:DatasetMessage_Payload_decodeJsonInternal:
  372|  5.85k|                                          size_t dsmIndex) {
  373|  5.85k|    UA_DataSetMessage *dsm = &nm->payload.dataSetMessages[dsmIndex];
  374|  5.85k|    UA_ConfigurationVersionDataType cvd;
  375|  5.85k|    struct PayloadData pd;
  376|  5.85k|    pd.nm = nm;
  377|  5.85k|    pd.dsmIndex = dsmIndex;
  378|       |
  379|  5.85k|    DecodeEntry entries[7] = {
  380|  5.85k|        {UA_DECODEKEY_DATASETWRITERID, &nm->dataSetWriterIds[dsmIndex], NULL, false, &UA_TYPES[UA_TYPES_UINT16]},
  ------------------
  |  |  157|  5.85k|#define UA_TYPES_UINT16 4
  ------------------
  381|  5.85k|        {UA_DECODEKEY_SEQUENCENUMBER, &dsm->header.dataSetMessageSequenceNr, NULL, false, &UA_TYPES[UA_TYPES_UINT16]},
  ------------------
  |  |  157|  5.85k|#define UA_TYPES_UINT16 4
  ------------------
  382|  5.85k|        {UA_DECODEKEY_METADATAVERSION, &cvd, &MetaDataVersion_decodeJsonInternal, false, NULL},
  383|  5.85k|        {UA_DECODEKEY_TIMESTAMP, &dsm->header.timestamp, NULL, false, &UA_TYPES[UA_TYPES_DATETIME]},
  ------------------
  |  |  429|  5.85k|#define UA_TYPES_DATETIME 12
  ------------------
  384|  5.85k|        {UA_DECODEKEY_DSM_STATUS, &dsm->header.status, NULL, false, &UA_TYPES[UA_TYPES_UINT16]},
  ------------------
  |  |  157|  5.85k|#define UA_TYPES_UINT16 4
  ------------------
  385|  5.85k|        {UA_DECODEKEY_MESSAGETYPE, NULL, NULL, false, NULL},
  386|  5.85k|        {UA_DECODEKEY_PAYLOAD, &pd, DataSetPayload_decodeJsonInternal, false, NULL}
  387|  5.85k|    };
  388|  5.85k|    status ret = decodeFields(&ctx->ctx, entries, 7);
  389|       |
  390|       |    /* Error or no DatasetWriterId found or no payload found */
  391|  5.85k|    if(ret != UA_STATUSCODE_GOOD || !entries[0].found || !entries[6].found)
  ------------------
  |  |   17|  11.7k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (391:8): [True: 4.03k, False: 1.82k]
  |  Branch (391:37): [True: 1.81k, False: 5]
  |  Branch (391:58): [True: 4, False: 1]
  ------------------
  392|  5.85k|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|  5.85k|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  393|       |
  394|       |    /* TODO: Check FieldEncoding1 and FieldEncoding2 to determine the field encoding */
  395|      1|    dsm->header.fieldEncoding = UA_FIELDENCODING_DATAVALUE;
  396|      1|    dsm->header.dataSetMessageSequenceNrEnabled = entries[1].found;
  397|      1|    dsm->header.configVersionMajorVersion = cvd.majorVersion;
  398|      1|    dsm->header.configVersionMinorVersion = cvd.minorVersion;
  399|      1|    dsm->header.configVersionMajorVersionEnabled = entries[2].found;
  400|      1|    dsm->header.configVersionMinorVersionEnabled = entries[2].found;
  401|      1|    dsm->header.timestampEnabled = entries[3].found;
  402|      1|    dsm->header.statusEnabled = entries[4].found;
  403|       |
  404|      1|    dsm->header.dataSetMessageType = UA_DATASETMESSAGE_DATAKEYFRAME;
  405|      1|    dsm->header.picoSecondsIncluded = false;
  406|      1|    dsm->header.dataSetMessageValid = true;
  407|      1|    dsm->header.fieldEncoding = UA_FIELDENCODING_VARIANT;
  408|      1|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      1|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  409|  5.85k|}
ua_pubsub_networkmessage_json.c:MetaDataVersion_decodeJsonInternal:
  289|      3|MetaDataVersion_decodeJsonInternal(ParseCtx *ctx, void* cvd, const UA_DataType *_) {
  290|      3|    return decodeJsonJumpTable[UA_DATATYPEKIND_STRUCTURE]
  291|      3|        (ctx, cvd, &UA_TYPES[UA_TYPES_CONFIGURATIONVERSIONDATATYPE]);
  ------------------
  |  | 2146|      3|#define UA_TYPES_CONFIGURATIONVERSIONDATATYPE 57
  ------------------
  292|      3|}
ua_pubsub_networkmessage_json.c:DataSetPayload_decodeJsonInternal:
  312|  5.17k|DataSetPayload_decodeJsonInternal(ParseCtx *ctx_, void *data, const UA_DataType *_) {
  313|  5.17k|    PubSubDecodeJsonCtx *ctx = (PubSubDecodeJsonCtx*)ctx_;
  314|  5.17k|    struct PayloadData *pd = (struct PayloadData*)data;
  315|  5.17k|    UA_NetworkMessage *nm = pd->nm;
  316|  5.17k|    UA_DataSetMessage *dsm = &nm->payload.dataSetMessages[pd->dsmIndex];
  317|       |
  318|  5.17k|    dsm->header.dataSetMessageValid = true;
  319|       |
  320|  5.17k|    if(currentTokenType(&ctx->ctx) == CJ5_TOKEN_NULL) {
  ------------------
  |  Branch (320:8): [True: 1, False: 5.17k]
  ------------------
  321|      1|        ctx->ctx.index++;
  322|      1|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      1|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  323|      1|    }
  324|       |
  325|  5.17k|    if(currentTokenType(&ctx->ctx) != CJ5_TOKEN_OBJECT)
  ------------------
  |  Branch (325:8): [True: 4, False: 5.17k]
  ------------------
  326|      4|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      4|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  327|       |
  328|       |    /* The number of key-value pairs */
  329|  5.17k|    UA_assert(ctx->ctx.tokens[ctx->ctx.index].size % 2 == 0);
  ------------------
  |  |  400|  5.17k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (329:5): [True: 5.17k, False: 0]
  ------------------
  330|  5.17k|    size_t length = (size_t)(ctx->ctx.tokens[ctx->ctx.index].size) / 2;
  331|       |
  332|  5.17k|    if(length > UA_UINT16_MAX)
  ------------------
  |  |   92|  5.17k|#define UA_UINT16_MAX 65535
  ------------------
  |  Branch (332:8): [True: 1, False: 5.17k]
  ------------------
  333|      1|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      1|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  334|       |
  335|  5.17k|    dsm->data.keyFrameFields = (UA_DataValue *)
  336|  5.17k|        UA_Array_new(length, &UA_TYPES[UA_TYPES_DATAVALUE]);
  ------------------
  |  |  769|  5.17k|#define UA_TYPES_DATAVALUE 22
  ------------------
  337|  5.17k|    if(!dsm->data.keyFrameFields)
  ------------------
  |  Branch (337:8): [True: 7, False: 5.16k]
  ------------------
  338|      7|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      7|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  339|  5.16k|    dsm->fieldCount = (UA_UInt16)length;
  340|       |
  341|  5.16k|    dsm->header.fieldEncoding = UA_FIELDENCODING_DATAVALUE;
  342|       |
  343|  5.16k|    const UA_DataSetMessage_EncodingMetaData *emd =
  344|  5.16k|            findEncodingMetaData(&ctx->eo, nm->dataSetWriterIds[pd->dsmIndex]);
  345|       |
  346|       |    /* Iterate over the key/value pairs in the object. Keys are stored in fieldnames. */
  347|  5.16k|    ctx->ctx.index++; /* Go to the first key */
  348|  5.16k|    status ret = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  5.16k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  349|  23.5k|    for(size_t i = 0; i < length; ++i) {
  ------------------
  |  Branch (349:23): [True: 21.8k, False: 1.63k]
  ------------------
  350|  21.8k|        UA_assert(currentTokenType(&ctx->ctx) == CJ5_TOKEN_STRING);
  ------------------
  |  |  400|  21.8k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (350:9): [True: 21.8k, False: 0]
  ------------------
  351|  21.8k|        UA_String fieldName = UA_STRING_NULL;
  352|  21.8k|        ret = decodeJsonJumpTable[UA_DATATYPEKIND_STRING](&ctx->ctx, &fieldName, NULL);
  353|  21.8k|        UA_CHECK_STATUS(ret, return ret);
  ------------------
  |  |  179|  21.8k|    UA_CHECK(isGood(STATUSCODE), EVAL_ON_ERROR)
  |  |  ------------------
  |  |  |  |  172|  21.8k|    do {                                                                                 \
  |  |  |  |  173|  21.8k|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  |  580|  21.8k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (580:25): [True: 1, False: 21.8k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  174|      1|            EVAL_ON_ERROR;                                                               \
  |  |  |  |  175|      1|        }                                                                                \
  |  |  |  |  176|  21.8k|    } while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (176:13): [Folded, False: 21.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  354|       |
  355|  21.8k|        size_t index = decodingFieldIndex(emd, fieldName, i);
  356|  21.8k|        if(index >= length) {
  ------------------
  |  Branch (356:12): [True: 0, False: 21.8k]
  ------------------
  357|      0|            UA_String_clear(&fieldName);
  358|      0|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  359|      0|        }
  360|  21.8k|        UA_DataValue_clear(&dsm->data.keyFrameFields[index]);
  361|  21.8k|        UA_String_clear(&fieldName);
  362|  21.8k|        ret = decodeJsonJumpTable[UA_DATATYPEKIND_DATAVALUE]
  363|  21.8k|            (&ctx->ctx, &dsm->data.keyFrameFields[index], NULL);
  364|  21.8k|        UA_CHECK_STATUS(ret, return ret);
  ------------------
  |  |  179|  21.8k|    UA_CHECK(isGood(STATUSCODE), EVAL_ON_ERROR)
  |  |  ------------------
  |  |  |  |  172|  21.8k|    do {                                                                                 \
  |  |  |  |  173|  21.8k|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  |  580|  21.8k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (580:25): [True: 3.53k, False: 18.3k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  174|  3.53k|            EVAL_ON_ERROR;                                                               \
  |  |  |  |  175|  3.53k|        }                                                                                \
  |  |  |  |  176|  21.8k|    } while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (176:13): [Folded, False: 18.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  365|  21.8k|    }
  366|       |
  367|  1.63k|    return ret;
  368|  5.16k|}
ua_pubsub_networkmessage_json.c:decodingFieldIndex:
  296|  21.8k|                   UA_String name, size_t origIndex) {
  297|  21.8k|    if(!emd)
  ------------------
  |  Branch (297:8): [True: 21.8k, False: 0]
  ------------------
  298|  21.8k|        return origIndex;
  299|      0|    for(size_t i = 0; i < emd->fieldsSize; i++) {
  ------------------
  |  Branch (299:23): [True: 0, False: 0]
  ------------------
  300|      0|        if(UA_String_equal(&name, &emd->fields[i].name))
  ------------------
  |  Branch (300:12): [True: 0, False: 0]
  ------------------
  301|      0|            return i;
  302|      0|    }
  303|      0|    return origIndex;
  304|      0|}

UA_findDataTypeWithCustom:
   66|  24.1k|                          const UA_DataTypeArray *customTypes) {
   67|       |    /* Always look in built-in types first (may contain data types from all
   68|       |     * namespaces).
   69|       |     *
   70|       |     * TODO: The standard-defined types are ordered. See if binary search is
   71|       |     * more efficient. */
   72|  4.80M|    for(size_t i = 0; i < UA_TYPES_COUNT; ++i) {
  ------------------
  |  |   17|  4.80M|#define UA_TYPES_COUNT 388
  ------------------
  |  Branch (72:23): [True: 4.79M, False: 11.2k]
  ------------------
   73|  4.79M|        if(nodeIdOrder(&UA_TYPES[i].typeId, typeId, NULL) == UA_ORDER_EQ)
  ------------------
  |  Branch (73:12): [True: 12.9k, False: 4.78M]
  ------------------
   74|  12.9k|            return &UA_TYPES[i];
   75|  4.79M|    }
   76|       |
   77|       |    /* Search in the customTypes */
   78|  11.2k|    while(customTypes) {
  ------------------
  |  Branch (78:11): [True: 0, False: 11.2k]
  ------------------
   79|      0|        for(size_t i = 0; i < customTypes->typesSize; ++i) {
  ------------------
  |  Branch (79:27): [True: 0, False: 0]
  ------------------
   80|      0|            if(nodeIdOrder(&customTypes->types[i].typeId, typeId, NULL) == UA_ORDER_EQ)
  ------------------
  |  Branch (80:16): [True: 0, False: 0]
  ------------------
   81|      0|                return &customTypes->types[i];
   82|      0|        }
   83|      0|        customTypes = customTypes->next;
   84|      0|    }
   85|       |
   86|  11.2k|    return NULL;
   87|  11.2k|}
UA_DateTime_fromStruct:
  510|    102|UA_DateTime_fromStruct(UA_DateTimeStruct ts) {
  511|       |    /* Seconds since the Unix epoch */
  512|    102|    struct musl_tm tm;
  513|    102|    memset(&tm, 0, sizeof(struct musl_tm));
  514|    102|    tm.tm_year = ts.year - 1900;
  515|    102|    tm.tm_mon = ts.month - 1;
  516|    102|    tm.tm_mday = ts.day;
  517|    102|    tm.tm_hour = ts.hour;
  518|    102|    tm.tm_min = ts.min;
  519|    102|    tm.tm_sec = ts.sec;
  520|    102|    long long sec_epoch = musl_tm_to_secs(&tm);
  521|       |
  522|    102|    UA_DateTime t = UA_DATETIME_UNIX_EPOCH;
  ------------------
  |  |  328|    102|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  286|    102|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|    102|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  284|    102|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  523|    102|    t += sec_epoch * UA_DATETIME_SEC;
  ------------------
  |  |  286|    102|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    102|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    102|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  524|    102|    t += ts.milliSec * UA_DATETIME_MSEC;
  ------------------
  |  |  285|    102|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    102|#define UA_DATETIME_USEC 10LL
  |  |  ------------------
  ------------------
  525|    102|    t += ts.microSec * UA_DATETIME_USEC;
  ------------------
  |  |  284|    102|#define UA_DATETIME_USEC 10LL
  ------------------
  526|    102|    t += ts.nanoSec / 100;
  527|    102|    return t;
  528|    102|}
UA_ByteString_allocBuffer:
  757|  10.9k|UA_ByteString_allocBuffer(UA_ByteString *bs, size_t length) {
  758|  10.9k|    UA_ByteString_init(bs);
  759|  10.9k|    if(length == 0) {
  ------------------
  |  Branch (759:8): [True: 0, False: 10.9k]
  ------------------
  760|      0|        bs->data = (u8*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|      0|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
  761|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  762|      0|    }
  763|  10.9k|    bs->data = (u8*)UA_calloc(1,length);
  ------------------
  |  |   20|  10.9k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
  764|  10.9k|    if(UA_UNLIKELY(!bs->data))
  ------------------
  |  |  580|  10.9k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  ------------------
  |  |  |  Branch (580:25): [True: 3, False: 10.9k]
  |  |  ------------------
  ------------------
  765|      3|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      3|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  766|  10.9k|    bs->length = length;
  767|  10.9k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  10.9k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  768|  10.9k|}
UA_new:
 1921|  27.2k|UA_new(const UA_DataType *type) {
 1922|  27.2k|    void *p = UA_calloc(1, type->memSize);
  ------------------
  |  |   20|  27.2k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
 1923|  27.2k|    return p;
 1924|  27.2k|}
UA_copy:
 2097|  37.7k|UA_copy(const void *src, void *dst, const UA_DataType *type) {
 2098|  37.7k|    memset(dst, 0, type->memSize); /* init */
 2099|  37.7k|    UA_StatusCode retval = copyJumpTable[type->typeKind](src, dst, type);
 2100|  37.7k|    if(retval != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  37.7k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2100:8): [True: 5, False: 37.7k]
  ------------------
 2101|      5|        UA_clear(dst, type);
 2102|  37.7k|    return retval;
 2103|  37.7k|}
UA_clear:
 2200|  1.36M|UA_clear(void *p, const UA_DataType *type) {
 2201|  1.36M|    clearJumpTable[type->typeKind](p, type);
 2202|  1.36M|    memset(p, 0, type->memSize); /* init */
 2203|  1.36M|}
UA_delete:
 2206|  8.97k|UA_delete(void *p, const UA_DataType *type) {
 2207|  8.97k|    clearJumpTable[type->typeKind](p, type);
 2208|  8.97k|    UA_free(p);
  ------------------
  |  |   19|  8.97k|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 2209|  8.97k|}
UA_Array_new:
 2688|  5.17k|UA_Array_new(size_t size, const UA_DataType *type) {
 2689|  5.17k|    if(size > UA_INT32_MAX)
  ------------------
  |  |  101|  5.17k|#define UA_INT32_MAX 2147483647L
  ------------------
  |  Branch (2689:8): [True: 0, False: 5.17k]
  ------------------
 2690|      0|        return NULL;
 2691|  5.17k|    if(size == 0)
  ------------------
  |  Branch (2691:8): [True: 4, False: 5.16k]
  ------------------
 2692|      4|        return UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|      4|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
 2693|  5.16k|    return UA_calloc(size, type->memSize);
  ------------------
  |  |   20|  5.16k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
 2694|  5.17k|}
UA_Array_copy:
 2698|  37.7k|              void **dst, const UA_DataType *type) {
 2699|  37.7k|    if(size == 0) {
  ------------------
  |  Branch (2699:8): [True: 5.80k, False: 31.9k]
  ------------------
 2700|  5.80k|        if(src == NULL)
  ------------------
  |  Branch (2700:12): [True: 0, False: 5.80k]
  ------------------
 2701|      0|            *dst = NULL;
 2702|  5.80k|        else
 2703|  5.80k|            *dst= UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|  5.80k|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
 2704|  5.80k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  5.80k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2705|  5.80k|    }
 2706|       |
 2707|       |    /* Check the array consistency -- defensive programming in case the user
 2708|       |     * manually created an inconsistent array */
 2709|  31.9k|    if(UA_UNLIKELY(!type || !src))
  ------------------
  |  |  580|  63.8k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  ------------------
  |  |  |  Branch (580:25): [True: 0, False: 31.9k]
  |  |  |  Branch (580:43): [True: 0, False: 31.9k]
  |  |  |  Branch (580:43): [True: 0, False: 31.9k]
  |  |  ------------------
  ------------------
 2710|      0|        return UA_STATUSCODE_BADINTERNALERROR;
  ------------------
  |  |   29|      0|#define UA_STATUSCODE_BADINTERNALERROR ((UA_StatusCode) 0x80020000)
  ------------------
 2711|       |
 2712|       |    /* calloc, so we don't have to check retval in every iteration of copying */
 2713|  31.9k|    *dst = UA_calloc(size, type->memSize);
  ------------------
  |  |   20|  31.9k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
 2714|  31.9k|    if(!*dst)
  ------------------
  |  Branch (2714:8): [True: 5, False: 31.9k]
  ------------------
 2715|      5|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      5|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2716|       |
 2717|  31.9k|    if(type->pointerFree) {
  ------------------
  |  Branch (2717:8): [True: 31.9k, False: 0]
  ------------------
 2718|  31.9k|        memcpy(*dst, src, type->memSize * size);
 2719|  31.9k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  31.9k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2720|  31.9k|    }
 2721|       |
 2722|      0|    uintptr_t ptrs = (uintptr_t)src;
 2723|      0|    uintptr_t ptrd = (uintptr_t)*dst;
 2724|      0|    UA_StatusCode retval = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2725|      0|    for(size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (2725:23): [True: 0, False: 0]
  ------------------
 2726|      0|        retval |= UA_copy((void*)ptrs, (void*)ptrd, type);
 2727|      0|        ptrs += type->memSize;
 2728|      0|        ptrd += type->memSize;
 2729|      0|    }
 2730|      0|    if(retval != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2730:8): [True: 0, False: 0]
  ------------------
 2731|      0|        UA_Array_delete(*dst, size, type);
 2732|       |        *dst = NULL;
 2733|      0|    }
 2734|      0|    return retval;
 2735|  31.9k|}
UA_Array_delete:
 2826|   209k|UA_Array_delete(void *p, size_t size, const UA_DataType *type) {
 2827|   209k|    if(!type->pointerFree) {
  ------------------
  |  Branch (2827:8): [True: 29.4k, False: 179k]
  ------------------
 2828|  29.4k|        uintptr_t ptr = (uintptr_t)p;
 2829|  1.25M|        for(size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (2829:27): [True: 1.22M, False: 29.4k]
  ------------------
 2830|  1.22M|            UA_clear((void*)ptr, type);
 2831|  1.22M|            ptr += type->memSize;
 2832|  1.22M|        }
 2833|  29.4k|    }
 2834|   209k|    UA_free((void*)((uintptr_t)p & ~(uintptr_t)UA_EMPTY_ARRAY_SENTINEL));
  ------------------
  |  |   19|   209k|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 2835|   209k|}
ua_types.c:Variant_clear:
 1379|  1.18M|Variant_clear(void *p, const UA_DataType *_) {
 1380|  1.18M|    UA_Variant *v = (UA_Variant *)p;
 1381|       |
 1382|       |    /* The content is "borrowed" */
 1383|  1.18M|    if(v->storageType == UA_VARIANT_DATA_NODELETE)
  ------------------
  |  Branch (1383:8): [True: 0, False: 1.18M]
  ------------------
 1384|      0|        return;
 1385|       |
 1386|       |    /* Delete the value */
 1387|  1.18M|    if(v->type && v->data > UA_EMPTY_ARRAY_SENTINEL) {
  ------------------
  |  |  756|  30.2k|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
  |  Branch (1387:8): [True: 30.2k, False: 1.15M]
  |  Branch (1387:19): [True: 27.3k, False: 2.84k]
  ------------------
 1388|  27.3k|        if(v->arrayLength == 0)
  ------------------
  |  Branch (1388:12): [True: 18.2k, False: 9.14k]
  ------------------
 1389|  18.2k|            v->arrayLength = 1;
 1390|  27.3k|        UA_Array_delete(v->data, v->arrayLength, v->type);
 1391|  27.3k|        v->data = NULL;
 1392|  27.3k|    }
 1393|       |
 1394|       |    /* Delete the array dimensions */
 1395|  1.18M|    if((void*)v->arrayDimensions > UA_EMPTY_ARRAY_SENTINEL)
  ------------------
  |  |  756|  1.18M|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
  |  Branch (1395:8): [True: 66, False: 1.18M]
  ------------------
 1396|     66|        UA_free(v->arrayDimensions);
  ------------------
  |  |   19|     66|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 1397|  1.18M|}
ua_types.c:DataValue_clear:
 1851|  1.17M|DataValue_clear(void *p, const UA_DataType *_) {
 1852|  1.17M|    UA_DataValue *dv = (UA_DataValue *)p;
 1853|       |    Variant_clear(&dv->value, NULL);
 1854|  1.17M|}
ua_types.c:String_copy:
  281|  37.7k|String_copy(const void *src, void *dst, const UA_DataType *_) {
  282|  37.7k|    const UA_String *srcS = (const UA_String*)src;
  283|  37.7k|    UA_String *dstS = (UA_String *)dst;
  284|  37.7k|    UA_StatusCode res =
  285|  37.7k|        UA_Array_copy(srcS->data, srcS->length, (void**)&dstS->data,
  286|  37.7k|                      &UA_TYPES[UA_TYPES_BYTE]);
  ------------------
  |  |   89|  37.7k|#define UA_TYPES_BYTE 2
  ------------------
  287|  37.7k|    if(res == UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  37.7k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (287:8): [True: 37.7k, False: 5]
  ------------------
  288|  37.7k|        dstS->length = srcS->length;
  289|  37.7k|    return res;
  290|  37.7k|}
ua_types.c:nopClear:
 2162|  11.6k|static void nopClear(void *p, const UA_DataType *type) { }
ua_types.c:String_clear:
  293|   172k|String_clear(void *p, const UA_DataType *_) {
  294|   172k|    UA_String *s = (UA_String*)p;
  295|   172k|    UA_Array_delete(s->data, s->length, &UA_TYPES[UA_TYPES_BYTE]);
  ------------------
  |  |   89|   172k|#define UA_TYPES_BYTE 2
  ------------------
  296|   172k|}
ua_types.c:NodeId_clear:
  772|  44.8k|NodeId_clear(void *p, const UA_DataType *_) {
  773|  44.8k|    UA_NodeId *id = (UA_NodeId*)p;
  774|  44.8k|    switch(id->identifierType) {
  775|  12.4k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (775:5): [True: 12.4k, False: 32.3k]
  ------------------
  776|  13.5k|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (776:5): [True: 1.07k, False: 43.7k]
  ------------------
  777|  13.5k|        String_clear(&id->identifier.string, NULL);
  778|  13.5k|        break;
  779|  31.2k|    default: break;
  ------------------
  |  Branch (779:5): [True: 31.2k, False: 13.5k]
  ------------------
  780|  44.8k|    }
  781|  44.8k|}
ua_types.c:ExpandedNodeId_clear:
 1073|  4.37k|ExpandedNodeId_clear(void *p, const UA_DataType *_) {
 1074|  4.37k|    UA_ExpandedNodeId *id = (UA_ExpandedNodeId*)p;
 1075|  4.37k|    NodeId_clear(&id->nodeId, NULL);
 1076|       |    String_clear(&id->namespaceUri, NULL);
 1077|  4.37k|}
ua_types.c:QualifiedName_clear:
  397|  24.6k|QualifiedName_clear(void *p, const UA_DataType *_) {
  398|  24.6k|    UA_QualifiedName *qn = (UA_QualifiedName*)p;
  399|       |    String_clear(&qn->name, NULL);
  400|  24.6k|}
ua_types.c:LocalizedText_clear:
 1834|  2.23k|LocalizedText_clear(void *p, const UA_DataType *_) {
 1835|  2.23k|    UA_LocalizedText *lt = (UA_LocalizedText *)p;
 1836|  2.23k|    String_clear(&lt->locale, NULL);
 1837|       |    String_clear(&lt->text, NULL);
 1838|  2.23k|}
ua_types.c:ExtensionObject_clear:
 1246|  29.9k|ExtensionObject_clear(void *p, const UA_DataType *_) {
 1247|  29.9k|    UA_ExtensionObject *eo = (UA_ExtensionObject *)p;
 1248|  29.9k|    switch(eo->encoding) {
 1249|  5.41k|    case UA_EXTENSIONOBJECT_ENCODED_NOBODY:
  ------------------
  |  Branch (1249:5): [True: 5.41k, False: 24.4k]
  ------------------
 1250|  5.74k|    case UA_EXTENSIONOBJECT_ENCODED_BYTESTRING:
  ------------------
  |  Branch (1250:5): [True: 333, False: 29.5k]
  ------------------
 1251|  9.98k|    case UA_EXTENSIONOBJECT_ENCODED_XML:
  ------------------
  |  Branch (1251:5): [True: 4.24k, False: 25.6k]
  ------------------
 1252|  20.9k|    case UA_EXTENSIONOBJECT_ENCODED_JSON:
  ------------------
  |  Branch (1252:5): [True: 10.9k, False: 18.9k]
  ------------------
 1253|  20.9k|        NodeId_clear(&eo->content.encoded.typeId, NULL);
 1254|  20.9k|        String_clear(&eo->content.encoded.body, NULL);
 1255|  20.9k|        break;
 1256|  8.97k|    case UA_EXTENSIONOBJECT_DECODED:
  ------------------
  |  Branch (1256:5): [True: 8.97k, False: 20.9k]
  ------------------
 1257|  8.97k|        if(eo->content.decoded.data)
  ------------------
  |  Branch (1257:12): [True: 8.97k, False: 0]
  ------------------
 1258|  8.97k|            UA_delete(eo->content.decoded.data, eo->content.decoded.type);
 1259|  8.97k|        break;
 1260|      0|    default:
  ------------------
  |  Branch (1260:5): [True: 0, False: 29.9k]
  ------------------
 1261|      0|        break;
 1262|  29.9k|    }
 1263|  29.9k|}
ua_types.c:DiagnosticInfo_clear:
 1881|  1.24k|DiagnosticInfo_clear(void *p, const UA_DataType *_) {
 1882|  1.24k|    UA_DiagnosticInfo *di = (UA_DiagnosticInfo *)p;
 1883|       |
 1884|  1.24k|    String_clear(&di->additionalInfo, NULL);
 1885|  1.24k|    if(di->hasInnerDiagnosticInfo && di->innerDiagnosticInfo) {
  ------------------
  |  Branch (1885:8): [True: 0, False: 1.24k]
  |  Branch (1885:38): [True: 0, False: 0]
  ------------------
 1886|      0|        DiagnosticInfo_clear(di->innerDiagnosticInfo, NULL);
 1887|      0|        UA_free(di->innerDiagnosticInfo);
  ------------------
  |  |   19|      0|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 1888|      0|    }
 1889|  1.24k|}
ua_types.c:clearStructure:
 2106|  2.77k|clearStructure(void *p, const UA_DataType *type) {
 2107|  2.77k|    uintptr_t ptr = (uintptr_t)p;
 2108|  16.0k|    for(size_t i = 0; i < type->membersSize; ++i) {
  ------------------
  |  Branch (2108:23): [True: 13.2k, False: 2.77k]
  ------------------
 2109|  13.2k|        const UA_DataTypeMember *m = &type->members[i];
 2110|  13.2k|        const UA_DataType *mt = m->memberType;
 2111|  13.2k|        ptr += m->padding;
 2112|  13.2k|        if(!m->isOptional) {
  ------------------
  |  Branch (2112:12): [True: 13.2k, False: 0]
  ------------------
 2113|  13.2k|            if(!m->isArray) {
  ------------------
  |  Branch (2113:16): [True: 10.9k, False: 2.29k]
  ------------------
 2114|  10.9k|                clearJumpTable[mt->typeKind]((void*)ptr, mt);
 2115|  10.9k|                ptr += mt->memSize;
 2116|  10.9k|            } else {
 2117|  2.29k|                size_t length = *(size_t*)ptr;
 2118|  2.29k|                ptr += sizeof(size_t);
 2119|  2.29k|                UA_Array_delete(*(void**)ptr, length, mt);
 2120|  2.29k|                ptr += sizeof(void*);
 2121|  2.29k|            }
 2122|  13.2k|        } else { /* field is optional */
 2123|      0|            if(!m->isArray) {
  ------------------
  |  Branch (2123:16): [True: 0, False: 0]
  ------------------
 2124|       |                /* optional scalar field is contained */
 2125|      0|                if((*(void *const *)ptr != NULL))
  ------------------
  |  Branch (2125:20): [True: 0, False: 0]
  ------------------
 2126|      0|                    UA_Array_delete(*(void **)ptr, 1, mt);
 2127|      0|                ptr += sizeof(void *);
 2128|      0|            } else {
 2129|       |                /* optional array field is contained */
 2130|      0|                if((*(void *const *)(ptr + sizeof(size_t)) != NULL)) {
  ------------------
  |  Branch (2130:20): [True: 0, False: 0]
  ------------------
 2131|      0|                    size_t length = *(size_t *)ptr;
 2132|      0|                    ptr += sizeof(size_t);
 2133|      0|                    UA_Array_delete(*(void **)ptr, length, mt);
 2134|      0|                    ptr += sizeof(void *);
 2135|      0|                } else { /* optional array field not contained */
 2136|      0|                    ptr += sizeof(size_t);
 2137|      0|                    ptr += sizeof(void *);
 2138|      0|                }
 2139|      0|            }
 2140|      0|        }
 2141|  13.2k|    }
 2142|  2.77k|}
ua_types.c:nodeIdOrder:
 2292|  4.79M|nodeIdOrder(const void *p1_, const void *p2_, const UA_DataType *_) {
 2293|  4.79M|    const UA_NodeId *p1 = (const UA_NodeId*)p1_;
 2294|  4.79M|    const UA_NodeId *p2 = (const UA_NodeId*)p2_;
 2295|       |    /* Compare namespaceIndex */
 2296|  4.79M|    if(p1->namespaceIndex != p2->namespaceIndex)
  ------------------
  |  Branch (2296:8): [True: 129k, False: 4.66M]
  ------------------
 2297|   129k|        return (p1->namespaceIndex < p2->namespaceIndex) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2297:16): [True: 129k, False: 0]
  ------------------
 2298|       |
 2299|       |    /* Compare identifierType */
 2300|  4.66M|    if(p1->identifierType != p2->identifierType)
  ------------------
  |  Branch (2300:8): [True: 2.13M, False: 2.52M]
  ------------------
 2301|  2.13M|        return (p1->identifierType < p2->identifierType) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2301:16): [True: 2.13M, False: 0]
  ------------------
 2302|       |
 2303|       |    /* Compare the identifier */
 2304|  2.52M|    switch(p1->identifierType) {
 2305|  2.52M|    case UA_NODEIDTYPE_NUMERIC:
  ------------------
  |  Branch (2305:5): [True: 2.52M, False: 0]
  ------------------
 2306|  2.52M|    default:
  ------------------
  |  Branch (2306:5): [True: 0, False: 2.52M]
  ------------------
 2307|  2.52M|        if(p1->identifier.numeric != p2->identifier.numeric)
  ------------------
  |  Branch (2307:12): [True: 2.51M, False: 12.9k]
  ------------------
 2308|  2.51M|            return (p1->identifier.numeric < p2->identifier.numeric) ?
  ------------------
  |  Branch (2308:20): [True: 273k, False: 2.24M]
  ------------------
 2309|  2.24M|                UA_ORDER_LESS : UA_ORDER_MORE;
 2310|  12.9k|        return UA_ORDER_EQ;
 2311|      0|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (2311:5): [True: 0, False: 2.52M]
  ------------------
 2312|      0|        return guidOrder(&p1->identifier.guid, &p2->identifier.guid, NULL);
 2313|      0|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (2313:5): [True: 0, False: 2.52M]
  ------------------
 2314|      0|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (2314:5): [True: 0, False: 2.52M]
  ------------------
 2315|       |        return stringOrder(&p1->identifier.string, &p2->identifier.string, NULL);
 2316|  2.52M|    }
 2317|  2.52M|}

lookAheadForKey:
 1789|   132k|lookAheadForKey(ParseCtx *ctx, const char *key, size_t *resultIndex) {
 1790|       |    /* The current index must point to the beginning of an object.
 1791|       |     * This has to be ensured by the caller. */
 1792|   132k|    UA_assert(currentTokenType(ctx) == CJ5_TOKEN_OBJECT);
  ------------------
  |  |  400|   132k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (1792:5): [True: 132k, False: 0]
  ------------------
 1793|       |
 1794|   132k|    status ret = UA_STATUSCODE_BADNOTFOUND;
  ------------------
  |  |  233|   132k|#define UA_STATUSCODE_BADNOTFOUND ((UA_StatusCode) 0x803E0000)
  ------------------
 1795|   132k|    size_t oldIndex = ctx->index; /* Save index for later restore */
 1796|   132k|    unsigned int end = ctx->tokens[ctx->index].end;
 1797|   132k|    ctx->index++; /* Move to the first key */
 1798|  1.24M|    while(ctx->index < ctx->tokensSize &&
  ------------------
  |  Branch (1798:11): [True: 1.24M, False: 5.18k]
  ------------------
 1799|  1.24M|          ctx->tokens[ctx->index].start < end) {
  ------------------
  |  Branch (1799:11): [True: 1.20M, False: 34.8k]
  ------------------
 1800|       |        /* Key must be a string */
 1801|  1.20M|        UA_assert(currentTokenType(ctx) == CJ5_TOKEN_STRING);
  ------------------
  |  |  400|  1.20M|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (1801:9): [True: 1.20M, False: 0]
  ------------------
 1802|       |
 1803|       |        /* Move index to the value */
 1804|  1.20M|        ctx->index++;
 1805|       |
 1806|       |        /* Value for the key must exist */
 1807|  1.20M|        UA_assert(ctx->index < ctx->tokensSize);
  ------------------
  |  |  400|  1.20M|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (1807:9): [True: 1.20M, False: 0]
  ------------------
 1808|       |
 1809|       |        /* Compare the key (previous index) */
 1810|  1.20M|        if(jsoneq(ctx->json5, &ctx->tokens[ctx->index-1], key) == 0) {
  ------------------
  |  Branch (1810:12): [True: 91.9k, False: 1.11M]
  ------------------
 1811|  91.9k|            *resultIndex = ctx->index; /* Point result to the current index */
 1812|  91.9k|            ret = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  91.9k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1813|  91.9k|            break;
 1814|  91.9k|        }
 1815|       |
 1816|  1.11M|        skipObject(ctx); /* Jump over the value (can also be an array or object) */
 1817|  1.11M|    }
 1818|   132k|    ctx->index = oldIndex; /* Restore the old index */
 1819|   132k|    return ret;
 1820|   132k|}
decodeFields:
 2503|  35.2k|decodeFields(ParseCtx *ctx, DecodeEntry *entries, size_t entryCount) {
 2504|  35.2k|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|  35.2k|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|  35.2k|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 35.2k]
  |  |  ------------------
  |  | 1287|  35.2k|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|  35.2k|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 35.2k]
  |  |  ------------------
  ------------------
 2505|  35.2k|    CHECK_NULL_SKIP; /* null is treated like an empty object */
  ------------------
  |  | 1310|  35.2k|#define CHECK_NULL_SKIP do {                         \
  |  | 1311|  35.2k|    if(currentTokenType(ctx) == CJ5_TOKEN_NULL) {    \
  |  |  ------------------
  |  |  |  Branch (1311:8): [True: 330, False: 34.9k]
  |  |  ------------------
  |  | 1312|    330|        ctx->index++;                                \
  |  | 1313|    330|        return UA_STATUSCODE_GOOD;                   \
  |  |  ------------------
  |  |  |  |   17|    330|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  |  |  ------------------
  |  | 1314|  34.9k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1314:14): [Folded, False: 34.9k]
  |  |  ------------------
  ------------------
 2506|       |
 2507|  34.9k|    if(ctx->depth >= UA_JSON_ENCODING_MAX_RECURSION)
  ------------------
  |  |   22|  34.9k|#define UA_JSON_ENCODING_MAX_RECURSION 100
  ------------------
  |  Branch (2507:8): [True: 1, False: 34.8k]
  ------------------
 2508|      1|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      1|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2509|       |
 2510|       |    /* Keys and values are counted separately */
 2511|  34.8k|    CHECK_OBJECT;
  ------------------
  |  | 1305|  34.8k|#define CHECK_OBJECT do {                                \
  |  | 1306|  34.8k|    if(currentTokenType(ctx) != CJ5_TOKEN_OBJECT) {      \
  |  |  ------------------
  |  |  |  Branch (1306:8): [True: 23, False: 34.8k]
  |  |  ------------------
  |  | 1307|     23|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     23|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1308|  34.8k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1308:14): [Folded, False: 34.8k]
  |  |  ------------------
  ------------------
 2512|  34.8k|    UA_assert(ctx->tokens[ctx->index].size % 2 == 0);
  ------------------
  |  |  400|  34.8k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (2512:5): [True: 34.8k, False: 0]
  ------------------
 2513|  34.8k|    size_t keyCount = (size_t)(ctx->tokens[ctx->index].size) / 2;
 2514|       |
 2515|  34.8k|    ctx->index++; /* Go to first key - or jump after the empty object */
 2516|  34.8k|    ctx->depth++;
 2517|       |
 2518|  34.8k|    status ret = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  34.8k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2519|  76.3k|    for(size_t key = 0; key < keyCount; key++) {
  ------------------
  |  Branch (2519:25): [True: 52.1k, False: 24.2k]
  ------------------
 2520|       |        /* Key must be a string */
 2521|  52.1k|        UA_assert(ctx->index < ctx->tokensSize);
  ------------------
  |  |  400|  52.1k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (2521:9): [True: 52.1k, False: 0]
  ------------------
 2522|  52.1k|        UA_assert(currentTokenType(ctx) == CJ5_TOKEN_STRING);
  ------------------
  |  |  400|  52.1k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (2522:9): [True: 52.1k, False: 0]
  ------------------
 2523|       |
 2524|       |        /* Search for the decoding entry matching the key. Start at the key
 2525|       |         * index to speed-up the case where they key-order is the same as the
 2526|       |         * entry-order. */
 2527|  52.1k|        DecodeEntry *entry = NULL;
 2528|   136k|        for(size_t i = key; i < key + entryCount; i++) {
  ------------------
  |  Branch (2528:29): [True: 135k, False: 262]
  ------------------
 2529|   135k|            size_t ii = i;
 2530|   139k|            while(ii >= entryCount)
  ------------------
  |  Branch (2530:19): [True: 3.16k, False: 135k]
  ------------------
 2531|  3.16k|                ii -= entryCount;
 2532|       |
 2533|       |            /* Compare the key */
 2534|   135k|            if(jsoneq(ctx->json5, &ctx->tokens[ctx->index],
  ------------------
  |  Branch (2534:16): [True: 84.0k, False: 51.8k]
  ------------------
 2535|   135k|                      entries[ii].fieldName) != 0)
 2536|  84.0k|                continue;
 2537|       |
 2538|       |            /* Key was already used -> duplicate, abort */
 2539|  51.8k|            if(entries[ii].found) {
  ------------------
  |  Branch (2539:16): [True: 5, False: 51.8k]
  ------------------
 2540|      5|                ctx->depth--;
 2541|      5|                return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      5|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2542|      5|            }
 2543|       |
 2544|       |            /* Found the key */
 2545|  51.8k|            entries[ii].found = true;
 2546|  51.8k|            entry = &entries[ii];
 2547|  51.8k|            break;
 2548|  51.8k|        }
 2549|       |
 2550|       |        /* The key is unknown */
 2551|  52.1k|        if(!entry) {
  ------------------
  |  Branch (2551:12): [True: 262, False: 51.8k]
  ------------------
 2552|    262|            ret = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    262|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2553|    262|            break;
 2554|    262|        }
 2555|       |
 2556|       |        /* Go from key to value */
 2557|  51.8k|        ctx->index++;
 2558|  51.8k|        UA_assert(ctx->index < ctx->tokensSize);
  ------------------
  |  |  400|  51.8k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (2558:9): [True: 51.8k, False: 0]
  ------------------
 2559|       |
 2560|       |        /* An entry that was expected but shall not be decoded.
 2561|       |         * Jump over the value. */
 2562|  51.8k|        if(!entry->function && !entry->type) {
  ------------------
  |  Branch (2562:12): [True: 40.2k, False: 11.6k]
  |  Branch (2562:32): [True: 38.7k, False: 1.46k]
  ------------------
 2563|  38.7k|            skipObject(ctx);
 2564|  38.7k|            continue;
 2565|  38.7k|        }
 2566|       |
 2567|       |        /* A null-value is only valid for nullable fields. */
 2568|  13.1k|        if(currentTokenType(ctx) == CJ5_TOKEN_NULL && !entry->function) {
  ------------------
  |  Branch (2568:12): [True: 167, False: 12.9k]
  |  Branch (2568:55): [True: 50, False: 117]
  ------------------
 2569|     50|            if(!entry->type || !isJsonNullable(entry->type)) {
  ------------------
  |  Branch (2569:16): [True: 0, False: 50]
  |  Branch (2569:32): [True: 6, False: 44]
  ------------------
 2570|      6|                ctx->depth--;
 2571|      6|                return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      6|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2572|      6|            }
 2573|     44|            ctx->index++; /* skip null value */
 2574|     44|            continue;
 2575|     50|        }
 2576|       |
 2577|       |        /* Decode. This also moves to the next key or right after the object for
 2578|       |         * the last value. */
 2579|  13.0k|        decodeJsonSignature decodeFunc = (entry->function) ?
  ------------------
  |  Branch (2579:42): [True: 11.6k, False: 1.41k]
  ------------------
 2580|  11.6k|            entry->function : decodeJsonJumpTable[entry->type->typeKind];
 2581|  13.0k|        ret = decodeFunc(ctx, entry->fieldPointer, entry->type);
 2582|  13.0k|        if(ret != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  13.0k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2582:12): [True: 10.3k, False: 2.68k]
  ------------------
 2583|  10.3k|            break;
 2584|  13.0k|    }
 2585|       |
 2586|  34.8k|    ctx->depth--;
 2587|  34.8k|    return ret;
 2588|  34.8k|}
tokenize:
 2913|  8.34k|         size_t *decodedLength) {
 2914|       |    /* Tokenize */
 2915|  8.34k|    cj5_options options;
 2916|  8.34k|    options.stop_early = (decodedLength != NULL);
 2917|  8.34k|    cj5_result r = cj5_parse((char*)src->data, (unsigned int)src->length,
 2918|  8.34k|                             ctx->tokens, (unsigned int)tokensSize, &options);
 2919|       |
 2920|       |    /* Handle overflow error by allocating the number of tokens the parser would
 2921|       |     * have needed */
 2922|  8.34k|    if(r.error == CJ5_ERROR_OVERFLOW &&
  ------------------
  |  Branch (2922:8): [True: 546, False: 7.79k]
  ------------------
 2923|    546|       tokensSize != r.num_tokens) {
  ------------------
  |  Branch (2923:8): [True: 546, False: 0]
  ------------------
 2924|    546|        ctx->tokens = (cj5_token*)
 2925|    546|            UA_malloc(sizeof(cj5_token) * r.num_tokens);
  ------------------
  |  |   18|    546|#define UA_malloc(size) UA_mallocSingleton(size)
  ------------------
 2926|    546|        if(!ctx->tokens)
  ------------------
  |  Branch (2926:12): [True: 14, False: 532]
  ------------------
 2927|     14|            return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|     14|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2928|    532|        return tokenize(ctx, src, r.num_tokens, decodedLength);
 2929|    546|    }
 2930|       |
 2931|       |    /* Cannot recover from other errors */
 2932|  7.79k|    if(r.error != CJ5_ERROR_NONE)
  ------------------
  |  Branch (2932:8): [True: 742, False: 7.05k]
  ------------------
 2933|    742|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    742|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2934|       |
 2935|  7.05k|    if(decodedLength)
  ------------------
  |  Branch (2935:8): [True: 0, False: 7.05k]
  ------------------
 2936|      0|        *decodedLength = ctx->tokens[0].end + 1;
 2937|       |
 2938|       |    /* Set up the context */
 2939|  7.05k|    ctx->json5 = (char*)src->data;
 2940|  7.05k|    ctx->depth = 0;
 2941|  7.05k|    ctx->tokensSize = r.num_tokens;
 2942|  7.05k|    ctx->index = 0;
 2943|  7.05k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  7.05k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2944|  7.79k|}
ua_types_encoding_json.c:variantDimensionsValid:
  787|  2.18k|                       const UA_UInt32 *dimensions) {
  788|  2.18k|    if(dimensionsSize == 0 || !dimensions)
  ------------------
  |  Branch (788:8): [True: 3, False: 2.18k]
  |  Branch (788:31): [True: 0, False: 2.18k]
  ------------------
  789|      3|        return false;
  790|       |
  791|  2.18k|    size_t total = 1;
  792|  4.48k|    for(size_t i = 0; i < dimensionsSize; i++) {
  ------------------
  |  Branch (792:23): [True: 2.32k, False: 2.16k]
  ------------------
  793|  2.32k|        UA_UInt32 dimension = dimensions[i];
  794|  2.32k|        if(dimension == 0 || total > SIZE_MAX / dimension)
  ------------------
  |  Branch (794:12): [True: 14, False: 2.30k]
  |  Branch (794:30): [True: 1, False: 2.30k]
  ------------------
  795|     15|            return false;
  796|  2.30k|        total *= dimension;
  797|  2.30k|    }
  798|  2.16k|    return total == arrayLength;
  799|  2.18k|}
ua_types_encoding_json.c:jsoneq:
 1341|  1.50M|jsoneq(const char *json, const cj5_token *tok, const char *searchKey) {
 1342|       |    /* TODO: necessary?
 1343|       |       if(json == NULL
 1344|       |            || tok == NULL
 1345|       |            || searchKey == NULL) {
 1346|       |        return -1;
 1347|       |    } */
 1348|       |
 1349|  1.50M|    size_t len = getTokenLength(tok);
 1350|  1.50M|    if(tok->type == CJ5_TOKEN_STRING &&
  ------------------
  |  Branch (1350:8): [True: 1.50M, False: 0]
  ------------------
 1351|  1.50M|       strlen(searchKey) ==  len &&
  ------------------
  |  Branch (1351:8): [True: 198k, False: 1.30M]
  ------------------
 1352|   198k|       strncmp(json + tok->start, (const char*)searchKey, len) == 0)
  ------------------
  |  Branch (1352:8): [True: 189k, False: 9.03k]
  ------------------
 1353|   189k|        return 0;
 1354|       |
 1355|  1.31M|    return -1;
 1356|  1.50M|}
ua_types_encoding_json.c:skipObject:
 1325|  1.27M|skipObject(ParseCtx *ctx) {
 1326|  1.27M|    unsigned int end = ctx->tokens[ctx->index].end;
 1327|  61.8M|    do {
 1328|  61.8M|        ctx->index++;
 1329|  61.8M|    } while(ctx->index < ctx->tokensSize &&
  ------------------
  |  Branch (1329:13): [True: 61.8M, False: 11.5k]
  ------------------
 1330|  61.8M|            ctx->tokens[ctx->index].start < end);
  ------------------
  |  Branch (1330:13): [True: 60.5M, False: 1.26M]
  ------------------
 1331|  1.27M|}
ua_types_encoding_json.c:DiagnosticInfo_decodeJson:
 2458|    760|DECODE_JSON(DiagnosticInfo) {
 2459|    760|    UA_DiagnosticInfo *dst = (UA_DiagnosticInfo*)p;
 2460|    760|    CHECK_NULL_SKIP; /* Treat a null value as an empty DiagnosticInfo */
  ------------------
  |  | 1310|    760|#define CHECK_NULL_SKIP do {                         \
  |  | 1311|    760|    if(currentTokenType(ctx) == CJ5_TOKEN_NULL) {    \
  |  |  ------------------
  |  |  |  Branch (1311:8): [True: 385, False: 375]
  |  |  ------------------
  |  | 1312|    385|        ctx->index++;                                \
  |  | 1313|    385|        return UA_STATUSCODE_GOOD;                   \
  |  |  ------------------
  |  |  |  |   17|    385|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  |  |  ------------------
  |  | 1314|    385|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1314:14): [Folded, False: 375]
  |  |  ------------------
  ------------------
 2461|    375|    CHECK_OBJECT;
  ------------------
  |  | 1305|    375|#define CHECK_OBJECT do {                                \
  |  | 1306|    375|    if(currentTokenType(ctx) != CJ5_TOKEN_OBJECT) {      \
  |  |  ------------------
  |  |  |  Branch (1306:8): [True: 2, False: 373]
  |  |  ------------------
  |  | 1307|      2|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|      2|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1308|    373|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1308:14): [Folded, False: 373]
  |  |  ------------------
  ------------------
 2462|       |
 2463|    373|    DecodeEntry entries[7] = {
 2464|    373|        {UA_JSONKEY_SYMBOLICID, &dst->symbolicId, NULL,
 2465|    373|         false, &UA_TYPES[UA_TYPES_INT32]},
  ------------------
  |  |  191|    373|#define UA_TYPES_INT32 5
  ------------------
 2466|    373|        {UA_JSONKEY_NAMESPACEURI, &dst->namespaceUri, NULL,
 2467|    373|         false, &UA_TYPES[UA_TYPES_INT32]},
  ------------------
  |  |  191|    373|#define UA_TYPES_INT32 5
  ------------------
 2468|    373|        {UA_JSONKEY_LOCALIZEDTEXT, &dst->localizedText, NULL,
 2469|    373|         false, &UA_TYPES[UA_TYPES_INT32]},
  ------------------
  |  |  191|    373|#define UA_TYPES_INT32 5
  ------------------
 2470|    373|        {UA_JSONKEY_LOCALE, &dst->locale, NULL,
 2471|    373|         false, &UA_TYPES[UA_TYPES_INT32]},
  ------------------
  |  |  191|    373|#define UA_TYPES_INT32 5
  ------------------
 2472|    373|        {UA_JSONKEY_ADDITIONALINFO, &dst->additionalInfo, NULL,
 2473|    373|         false, &UA_TYPES[UA_TYPES_STRING]},
  ------------------
  |  |  395|    373|#define UA_TYPES_STRING 11
  ------------------
 2474|    373|        {UA_JSONKEY_INNERSTATUSCODE, &dst->innerStatusCode, NULL,
 2475|    373|         false, &UA_TYPES[UA_TYPES_STATUSCODE]},
  ------------------
  |  |  633|    373|#define UA_TYPES_STATUSCODE 18
  ------------------
 2476|    373|        {UA_JSONKEY_INNERDIAGNOSTICINFO, &dst->innerDiagnosticInfo,
 2477|    373|         DiagnosticInfoInner_decodeJson, false, NULL}
 2478|    373|    };
 2479|    373|    status ret = decodeFields(ctx, entries, 7);
 2480|       |
 2481|    373|    dst->hasSymbolicId = entries[0].found;
 2482|    373|    dst->hasNamespaceUri = entries[1].found;
 2483|    373|    dst->hasLocalizedText = entries[2].found;
 2484|    373|    dst->hasLocale = entries[3].found;
 2485|    373|    dst->hasAdditionalInfo = entries[4].found;
 2486|    373|    dst->hasInnerStatusCode = entries[5].found;
 2487|    373|    dst->hasInnerDiagnosticInfo = entries[6].found;
 2488|    373|    return ret;
 2489|    375|}
ua_types_encoding_json.c:isJsonNullable:
  240|  3.22k|isJsonNullable(const UA_DataType *type) {
  241|  3.22k|    return (type->typeKind >= UA_DATATYPEKIND_STRING &&
  ------------------
  |  Branch (241:13): [True: 3.17k, False: 53]
  ------------------
  242|  3.17k|            type->typeKind <= UA_DATATYPEKIND_DIAGNOSTICINFO &&
  ------------------
  |  Branch (242:13): [True: 3.16k, False: 2]
  ------------------
  243|  3.16k|            type->typeKind != UA_DATATYPEKIND_STATUSCODE);
  ------------------
  |  Branch (243:13): [True: 3.16k, False: 3]
  ------------------
  244|  3.22k|}
ua_types_encoding_json.c:Boolean_decodeJson:
 1406|    189|DECODE_JSON(Boolean) {
 1407|    189|    UA_Boolean *dst = (UA_Boolean*)p;
 1408|    189|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|    189|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|    189|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 189]
  |  |  ------------------
  |  | 1287|    189|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|    189|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 189]
  |  |  ------------------
  ------------------
 1409|    189|    CHECK_BOOL;
  ------------------
  |  | 1295|    189|#define CHECK_BOOL do {                                \
  |  | 1296|    189|    if(currentTokenType(ctx) != CJ5_TOKEN_BOOL) {      \
  |  |  ------------------
  |  |  |  Branch (1296:8): [True: 48, False: 141]
  |  |  ------------------
  |  | 1297|     48|        return UA_STATUSCODE_BADDECODINGERROR;         \
  |  |  ------------------
  |  |  |  |   44|     48|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1298|    141|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1298:14): [Folded, False: 141]
  |  |  ------------------
  ------------------
 1410|    141|    GET_TOKEN;
  ------------------
  |  | 1281|    141|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|    141|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|    141|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 141]
  |  |  ------------------
  ------------------
 1411|       |
 1412|    141|    if(tokenSize == 4 &&
  ------------------
  |  Branch (1412:8): [True: 75, False: 66]
  ------------------
 1413|     75|       (tokenData[0] | 32) == 't' && (tokenData[1] | 32) == 'r' &&
  ------------------
  |  Branch (1413:8): [True: 75, False: 0]
  |  Branch (1413:38): [True: 75, False: 0]
  ------------------
 1414|     75|       (tokenData[2] | 32) == 'u' && (tokenData[3] | 32) == 'e') {
  ------------------
  |  Branch (1414:8): [True: 75, False: 0]
  |  Branch (1414:38): [True: 75, False: 0]
  ------------------
 1415|     75|        *dst = true;
 1416|     75|    } else if(tokenSize == 5 &&
  ------------------
  |  Branch (1416:15): [True: 66, False: 0]
  ------------------
 1417|     66|              (tokenData[0] | 32) == 'f' && (tokenData[1] | 32) == 'a' &&
  ------------------
  |  Branch (1417:15): [True: 66, False: 0]
  |  Branch (1417:45): [True: 66, False: 0]
  ------------------
 1418|     66|              (tokenData[2] | 32) == 'l' && (tokenData[3] | 32) == 's' &&
  ------------------
  |  Branch (1418:15): [True: 66, False: 0]
  |  Branch (1418:45): [True: 66, False: 0]
  ------------------
 1419|     66|              (tokenData[4] | 32) == 'e') {
  ------------------
  |  Branch (1419:15): [True: 66, False: 0]
  ------------------
 1420|     66|        *dst = false;
 1421|     66|    } else {
 1422|      0|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1423|      0|    }
 1424|       |
 1425|    141|    ctx->index++;
 1426|    141|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    141|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1427|    141|}
ua_types_encoding_json.c:SByte_decodeJson:
 1514|   576k|DECODE_JSON(SByte) {
 1515|   576k|    UA_SByte *dst = (UA_SByte*)p;
 1516|   576k|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|   576k|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|   576k|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 576k]
  |  |  ------------------
  |  | 1287|   576k|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|   576k|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 576k]
  |  |  ------------------
  ------------------
 1517|   576k|    CHECK_NUMBER;
  ------------------
  |  | 1290|   576k|#define CHECK_NUMBER do {                                \
  |  | 1291|   576k|    if(currentTokenType(ctx) != CJ5_TOKEN_NUMBER) {      \
  |  |  ------------------
  |  |  |  Branch (1291:8): [True: 13, False: 576k]
  |  |  ------------------
  |  | 1292|     13|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     13|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1293|   576k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1293:14): [Folded, False: 576k]
  |  |  ------------------
  ------------------
 1518|   576k|    GET_TOKEN;
  ------------------
  |  | 1281|   576k|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|   576k|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|   576k|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 576k]
  |  |  ------------------
  ------------------
 1519|   576k|    UA_Int64 out = 0;
 1520|   576k|    UA_StatusCode s = parseSignedInteger(tokenData, tokenSize, &out);
 1521|   576k|    if(s != UA_STATUSCODE_GOOD || out < UA_SBYTE_MIN || out > UA_SBYTE_MAX)
  ------------------
  |  |   17|  1.15M|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
                  if(s != UA_STATUSCODE_GOOD || out < UA_SBYTE_MIN || out > UA_SBYTE_MAX)
  ------------------
  |  |   64|  1.15M|#define UA_SBYTE_MIN (-128)
  ------------------
                  if(s != UA_STATUSCODE_GOOD || out < UA_SBYTE_MIN || out > UA_SBYTE_MAX)
  ------------------
  |  |   65|   576k|#define UA_SBYTE_MAX 127
  ------------------
  |  Branch (1521:8): [True: 63, False: 576k]
  |  Branch (1521:35): [True: 119, False: 576k]
  |  Branch (1521:57): [True: 57, False: 576k]
  ------------------
 1522|    239|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    239|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1523|   576k|    *dst = (UA_SByte)out;
 1524|   576k|    ctx->index++;
 1525|   576k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|   576k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1526|   576k|}
ua_types_encoding_json.c:parseSignedInteger:
 1446|  1.07M|parseSignedInteger(const char *tokenData, size_t tokenSize, UA_Int64 *dst) {
 1447|  1.07M|    size_t len = parseInt64(tokenData, tokenSize, dst);
 1448|  1.07M|    if(len == 0)
  ------------------
  |  Branch (1448:8): [True: 143, False: 1.07M]
  ------------------
 1449|    143|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    143|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1450|       |
 1451|       |    /* There must only be whitespace between the end of the parsed number and
 1452|       |     * the end of the token */
 1453|  1.53M|    for(size_t i = len; i < tokenSize; i++) {
  ------------------
  |  Branch (1453:25): [True: 464k, False: 1.07M]
  ------------------
 1454|   464k|        if(tokenData[i] != ' ' && tokenData[i] -'\t' >= 5)
  ------------------
  |  Branch (1454:12): [True: 293k, False: 171k]
  |  Branch (1454:35): [True: 122, False: 293k]
  ------------------
 1455|    122|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    122|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1456|   464k|    }
 1457|       |
 1458|  1.07M|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  1.07M|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1459|  1.07M|}
ua_types_encoding_json.c:Byte_decodeJson:
 1461|   525k|DECODE_JSON(Byte) {
 1462|   525k|    UA_Byte *dst = (UA_Byte*)p;
 1463|   525k|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|   525k|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|   525k|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 525k]
  |  |  ------------------
  |  | 1287|   525k|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|   525k|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 525k]
  |  |  ------------------
  ------------------
 1464|   525k|    CHECK_NUMBER;
  ------------------
  |  | 1290|   525k|#define CHECK_NUMBER do {                                \
  |  | 1291|   525k|    if(currentTokenType(ctx) != CJ5_TOKEN_NUMBER) {      \
  |  |  ------------------
  |  |  |  Branch (1291:8): [True: 8, False: 525k]
  |  |  ------------------
  |  | 1292|      8|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|      8|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1293|   525k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1293:14): [Folded, False: 525k]
  |  |  ------------------
  ------------------
 1465|   525k|    GET_TOKEN;
  ------------------
  |  | 1281|   525k|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|   525k|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|   525k|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 525k]
  |  |  ------------------
  ------------------
 1466|   525k|    UA_UInt64 out = 0;
 1467|   525k|    UA_StatusCode s = parseUnsignedInteger(tokenData, tokenSize, &out);
 1468|   525k|    if(s != UA_STATUSCODE_GOOD || out > UA_BYTE_MAX)
  ------------------
  |  |   17|  1.05M|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
                  if(s != UA_STATUSCODE_GOOD || out > UA_BYTE_MAX)
  ------------------
  |  |   74|   525k|#define UA_BYTE_MAX 255
  ------------------
  |  Branch (1468:8): [True: 31, False: 525k]
  |  Branch (1468:35): [True: 111, False: 525k]
  ------------------
 1469|    142|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    142|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1470|   525k|    *dst = (UA_Byte)out;
 1471|   525k|    ctx->index++;
 1472|   525k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|   525k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1473|   525k|}
ua_types_encoding_json.c:parseUnsignedInteger:
 1430|  2.76M|parseUnsignedInteger(const char *tokenData, size_t tokenSize, UA_UInt64 *dst) {
 1431|  2.76M|    size_t len = parseUInt64(tokenData, tokenSize, dst);
 1432|  2.76M|    if(len == 0)
  ------------------
  |  Branch (1432:8): [True: 84, False: 2.76M]
  ------------------
 1433|     84|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     84|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1434|       |
 1435|       |    /* There must only be whitespace between the end of the parsed number and
 1436|       |     * the end of the token */
 1437|  3.03M|    for(size_t i = len; i < tokenSize; i++) {
  ------------------
  |  Branch (1437:25): [True: 264k, False: 2.76M]
  ------------------
 1438|   264k|        if(tokenData[i] != ' ' && tokenData[i] -'\t' >= 5)
  ------------------
  |  Branch (1438:12): [True: 19.3k, False: 245k]
  |  Branch (1438:35): [True: 139, False: 19.2k]
  ------------------
 1439|    139|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    139|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1440|   264k|    }
 1441|       |
 1442|  2.76M|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  2.76M|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1443|  2.76M|}
ua_types_encoding_json.c:Int16_decodeJson:
 1528|  3.50k|DECODE_JSON(Int16) {
 1529|  3.50k|    UA_Int16 *dst = (UA_Int16*)p;
 1530|  3.50k|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|  3.50k|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|  3.50k|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 3.50k]
  |  |  ------------------
  |  | 1287|  3.50k|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|  3.50k|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 3.50k]
  |  |  ------------------
  ------------------
 1531|  3.50k|    CHECK_NUMBER;
  ------------------
  |  | 1290|  3.50k|#define CHECK_NUMBER do {                                \
  |  | 1291|  3.50k|    if(currentTokenType(ctx) != CJ5_TOKEN_NUMBER) {      \
  |  |  ------------------
  |  |  |  Branch (1291:8): [True: 12, False: 3.48k]
  |  |  ------------------
  |  | 1292|     12|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     12|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1293|  3.48k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1293:14): [Folded, False: 3.48k]
  |  |  ------------------
  ------------------
 1532|  3.48k|    GET_TOKEN;
  ------------------
  |  | 1281|  3.48k|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|  3.48k|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|  3.48k|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 3.48k]
  |  |  ------------------
  ------------------
 1533|  3.48k|    UA_Int64 out = 0;
 1534|  3.48k|    UA_StatusCode s = parseSignedInteger(tokenData, tokenSize, &out);
 1535|  3.48k|    if(s != UA_STATUSCODE_GOOD || out < UA_INT16_MIN || out > UA_INT16_MAX)
  ------------------
  |  |   17|  6.97k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
                  if(s != UA_STATUSCODE_GOOD || out < UA_INT16_MIN || out > UA_INT16_MAX)
  ------------------
  |  |   82|  6.95k|#define UA_INT16_MIN (-32768)
  ------------------
                  if(s != UA_STATUSCODE_GOOD || out < UA_INT16_MIN || out > UA_INT16_MAX)
  ------------------
  |  |   83|  3.36k|#define UA_INT16_MAX 32767
  ------------------
  |  Branch (1535:8): [True: 25, False: 3.46k]
  |  Branch (1535:35): [True: 98, False: 3.36k]
  |  Branch (1535:57): [True: 18, False: 3.34k]
  ------------------
 1536|    141|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    141|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1537|  3.34k|    *dst = (UA_Int16)out;
 1538|  3.34k|    ctx->index++;
 1539|  3.34k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  3.34k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1540|  3.48k|}
ua_types_encoding_json.c:UInt16_decodeJson:
 1475|   638k|DECODE_JSON(UInt16) {
 1476|   638k|    UA_UInt16 *dst = (UA_UInt16*)p;
 1477|   638k|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|   638k|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|   638k|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 638k]
  |  |  ------------------
  |  | 1287|   638k|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|   638k|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 638k]
  |  |  ------------------
  ------------------
 1478|   638k|    CHECK_NUMBER;
  ------------------
  |  | 1290|   638k|#define CHECK_NUMBER do {                                \
  |  | 1291|   638k|    if(currentTokenType(ctx) != CJ5_TOKEN_NUMBER) {      \
  |  |  ------------------
  |  |  |  Branch (1291:8): [True: 13, False: 638k]
  |  |  ------------------
  |  | 1292|     13|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     13|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1293|   638k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1293:14): [Folded, False: 638k]
  |  |  ------------------
  ------------------
 1479|   638k|    GET_TOKEN;
  ------------------
  |  | 1281|   638k|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|   638k|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|   638k|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 638k]
  |  |  ------------------
  ------------------
 1480|   638k|    UA_UInt64 out = 0;
 1481|   638k|    UA_StatusCode s = parseUnsignedInteger(tokenData, tokenSize, &out);
 1482|   638k|    if(s != UA_STATUSCODE_GOOD || out > UA_UINT16_MAX)
  ------------------
  |  |   17|  1.27M|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
                  if(s != UA_STATUSCODE_GOOD || out > UA_UINT16_MAX)
  ------------------
  |  |   92|   638k|#define UA_UINT16_MAX 65535
  ------------------
  |  Branch (1482:8): [True: 62, False: 638k]
  |  Branch (1482:35): [True: 232, False: 637k]
  ------------------
 1483|    294|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    294|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1484|   637k|    *dst = (UA_UInt16)out;
 1485|   637k|    ctx->index++;
 1486|   637k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|   637k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1487|   638k|}
ua_types_encoding_json.c:Int32_decodeJson:
 1542|  21.1k|DECODE_JSON(Int32) {
 1543|  21.1k|    UA_Int32 *dst = (UA_Int32*)p;
 1544|  21.1k|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|  21.1k|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|  21.1k|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 21.1k]
  |  |  ------------------
  |  | 1287|  21.1k|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|  21.1k|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 21.1k]
  |  |  ------------------
  ------------------
 1545|  21.1k|    CHECK_NUMBER;
  ------------------
  |  | 1290|  21.1k|#define CHECK_NUMBER do {                                \
  |  | 1291|  21.1k|    if(currentTokenType(ctx) != CJ5_TOKEN_NUMBER) {      \
  |  |  ------------------
  |  |  |  Branch (1291:8): [True: 19, False: 21.0k]
  |  |  ------------------
  |  | 1292|     19|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     19|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1293|  21.0k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1293:14): [Folded, False: 21.0k]
  |  |  ------------------
  ------------------
 1546|  21.0k|    GET_TOKEN;
  ------------------
  |  | 1281|  21.0k|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|  21.0k|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|  21.0k|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 21.0k]
  |  |  ------------------
  ------------------
 1547|  21.0k|    UA_Int64 out = 0;
 1548|  21.0k|    UA_StatusCode s = parseSignedInteger(tokenData, tokenSize, &out);
 1549|  21.0k|    if(s != UA_STATUSCODE_GOOD || out < UA_INT32_MIN || out > UA_INT32_MAX)
  ------------------
  |  |   17|  42.1k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
                  if(s != UA_STATUSCODE_GOOD || out < UA_INT32_MIN || out > UA_INT32_MAX)
  ------------------
  |  |  100|  42.1k|#define UA_INT32_MIN ((int32_t)-2147483648LL)
  ------------------
                  if(s != UA_STATUSCODE_GOOD || out < UA_INT32_MIN || out > UA_INT32_MAX)
  ------------------
  |  |  101|  20.8k|#define UA_INT32_MAX 2147483647L
  ------------------
  |  Branch (1549:8): [True: 67, False: 21.0k]
  |  Branch (1549:35): [True: 128, False: 20.8k]
  |  Branch (1549:57): [True: 7, False: 20.8k]
  ------------------
 1550|    202|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    202|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1551|  20.8k|    *dst = (UA_Int32)out;
 1552|  20.8k|    ctx->index++;
 1553|  20.8k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  20.8k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1554|  21.0k|}
ua_types_encoding_json.c:UInt32_decodeJson:
 1489|  1.39M|DECODE_JSON(UInt32) {
 1490|  1.39M|    UA_UInt32 *dst = (UA_UInt32*)p;
 1491|  1.39M|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|  1.39M|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|  1.39M|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 1.39M]
  |  |  ------------------
  |  | 1287|  1.39M|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|  1.39M|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 1.39M]
  |  |  ------------------
  ------------------
 1492|  1.39M|    CHECK_NUMBER;
  ------------------
  |  | 1290|  1.39M|#define CHECK_NUMBER do {                                \
  |  | 1291|  1.39M|    if(currentTokenType(ctx) != CJ5_TOKEN_NUMBER) {      \
  |  |  ------------------
  |  |  |  Branch (1291:8): [True: 33, False: 1.39M]
  |  |  ------------------
  |  | 1292|     33|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     33|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1293|  1.39M|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1293:14): [Folded, False: 1.39M]
  |  |  ------------------
  ------------------
 1493|  1.39M|    GET_TOKEN;
  ------------------
  |  | 1281|  1.39M|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|  1.39M|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|  1.39M|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 1.39M]
  |  |  ------------------
  ------------------
 1494|  1.39M|    UA_UInt64 out = 0;
 1495|  1.39M|    UA_StatusCode s = parseUnsignedInteger(tokenData, tokenSize, &out);
 1496|  1.39M|    if(s != UA_STATUSCODE_GOOD || out > UA_UINT32_MAX)
  ------------------
  |  |   17|  2.79M|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
                  if(s != UA_STATUSCODE_GOOD || out > UA_UINT32_MAX)
  ------------------
  |  |  110|  1.39M|#define UA_UINT32_MAX 4294967295UL
  ------------------
  |  Branch (1496:8): [True: 69, False: 1.39M]
  |  Branch (1496:35): [True: 76, False: 1.39M]
  ------------------
 1497|    145|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    145|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1498|  1.39M|    *dst = (UA_UInt32)out;
 1499|  1.39M|    ctx->index++;
 1500|  1.39M|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  1.39M|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1501|  1.39M|}
ua_types_encoding_json.c:Int64_decodeJson:
 1556|   473k|DECODE_JSON(Int64) {
 1557|   473k|    UA_Int64 *dst = (UA_Int64*)p;
 1558|   473k|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|   473k|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|   473k|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 473k]
  |  |  ------------------
  |  | 1287|   473k|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|   473k|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 473k]
  |  |  ------------------
  ------------------
 1559|   473k|    GET_TOKEN;
  ------------------
  |  | 1281|   473k|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|   473k|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|   473k|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 473k]
  |  |  ------------------
  ------------------
 1560|   473k|    UA_StatusCode s = parseSignedInteger(tokenData, tokenSize, dst);
 1561|   473k|    if(s != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|   473k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1561:8): [True: 110, False: 473k]
  ------------------
 1562|    110|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    110|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1563|   473k|    ctx->index++;
 1564|   473k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|   473k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1565|   473k|}
ua_types_encoding_json.c:UInt64_decodeJson:
 1503|   206k|DECODE_JSON(UInt64) {
 1504|   206k|    UA_UInt64 *dst = (UA_UInt64*)p;
 1505|   206k|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|   206k|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|   206k|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 206k]
  |  |  ------------------
  |  | 1287|   206k|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|   206k|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 206k]
  |  |  ------------------
  ------------------
 1506|   206k|    GET_TOKEN;
  ------------------
  |  | 1281|   206k|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|   206k|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|   206k|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 206k]
  |  |  ------------------
  ------------------
 1507|   206k|    UA_StatusCode s = parseUnsignedInteger(tokenData, tokenSize, dst);
 1508|   206k|    if(s != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|   206k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1508:8): [True: 61, False: 206k]
  ------------------
 1509|     61|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     61|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1510|   206k|    ctx->index++;
 1511|   206k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|   206k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1512|   206k|}
ua_types_encoding_json.c:Float_decodeJson:
 1628|   513k|DECODE_JSON(Float) {
 1629|   513k|    UA_Float *dst = (UA_Float*)p;
 1630|   513k|    UA_Double v = 0.0;
 1631|       |    UA_StatusCode res = Double_decodeJson(ctx, &v, NULL);
 1632|   513k|    *dst = (UA_Float)v;
 1633|   513k|    return res;
 1634|   513k|}
ua_types_encoding_json.c:Double_decodeJson:
 1568|   653k|DECODE_JSON(Double) {
 1569|   653k|    UA_Double *dst = (UA_Double*)p;
 1570|   653k|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|   653k|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|   653k|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 653k]
  |  |  ------------------
  |  | 1287|   653k|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|   653k|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 653k]
  |  |  ------------------
  ------------------
 1571|   653k|    GET_TOKEN;
  ------------------
  |  | 1281|   653k|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|   653k|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|   653k|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 653k]
  |  |  ------------------
  ------------------
 1572|       |
 1573|       |    /* https://www.exploringbinary.com/maximum-number-of-decimal-digits-in-binary-floating-point-numbers/
 1574|       |     * Maximum digit counts for select IEEE floating-point formats: 1074
 1575|       |     * Sanity check.
 1576|       |     */
 1577|   653k|    if(tokenSize > 2000)
  ------------------
  |  Branch (1577:8): [True: 1, False: 653k]
  ------------------
 1578|      1|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      1|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1579|       |
 1580|   653k|    cj5_token_type tokenType = currentTokenType(ctx);
 1581|       |
 1582|       |    /* It could be a String with Nan, Infinity */
 1583|   653k|    if(tokenType == CJ5_TOKEN_STRING) {
  ------------------
  |  Branch (1583:8): [True: 976, False: 652k]
  ------------------
 1584|    976|        ctx->index++;
 1585|       |
 1586|    976|        if(tokenSize == 8 && memcmp(tokenData, "Infinity", 8) == 0) {
  ------------------
  |  Branch (1586:12): [True: 228, False: 748]
  |  Branch (1586:30): [True: 195, False: 33]
  ------------------
 1587|    195|            *dst = INFINITY;
 1588|    195|            return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    195|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1589|    195|        }
 1590|       |
 1591|    781|        if(tokenSize == 9 && memcmp(tokenData, "-Infinity", 9) == 0) {
  ------------------
  |  Branch (1591:12): [True: 256, False: 525]
  |  Branch (1591:30): [True: 231, False: 25]
  ------------------
 1592|       |            /* workaround an MSVC 2013 issue */
 1593|    231|            *dst = -INFINITY;
 1594|    231|            return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    231|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1595|    231|        }
 1596|       |
 1597|    550|        if(tokenSize == 3 && memcmp(tokenData, "NaN", 3) == 0) {
  ------------------
  |  Branch (1597:12): [True: 224, False: 326]
  |  Branch (1597:30): [True: 200, False: 24]
  ------------------
 1598|    200|            *dst = NAN;
 1599|    200|            return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    200|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1600|    200|        }
 1601|       |
 1602|    350|        if(tokenSize == 4 && memcmp(tokenData, "-NaN", 4) == 0) {
  ------------------
  |  Branch (1602:12): [True: 226, False: 124]
  |  Branch (1602:30): [True: 208, False: 18]
  ------------------
 1603|    208|            *dst = NAN;
 1604|    208|            return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    208|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1605|    208|        }
 1606|       |
 1607|    142|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    142|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1608|    350|    }
 1609|       |
 1610|   652k|    if(tokenType != CJ5_TOKEN_NUMBER)
  ------------------
  |  Branch (1610:8): [True: 5, False: 652k]
  ------------------
 1611|      5|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      5|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1612|       |
 1613|   652k|    size_t len = parseDouble(tokenData, tokenSize, dst);
 1614|   652k|    if(len == 0)
  ------------------
  |  Branch (1614:8): [True: 2, False: 652k]
  ------------------
 1615|      2|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      2|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1616|       |
 1617|       |    /* There must only be whitespace between the end of the parsed number and
 1618|       |     * the end of the token */
 1619|   652k|    for(size_t i = len; i < tokenSize; i++) {
  ------------------
  |  Branch (1619:25): [True: 32, False: 652k]
  ------------------
 1620|     32|        if(tokenData[i] != ' ' && tokenData[i] -'\t' >= 5)
  ------------------
  |  Branch (1620:12): [True: 32, False: 0]
  |  Branch (1620:35): [True: 32, False: 0]
  ------------------
 1621|     32|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     32|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1622|     32|    }
 1623|       |
 1624|   652k|    ctx->index++;
 1625|   652k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|   652k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1626|   652k|}
ua_types_encoding_json.c:String_decodeJson:
 1646|  83.0k|DECODE_JSON(String) {
 1647|  83.0k|    UA_String *dst = (UA_String*)p;
 1648|  83.0k|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|  83.0k|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|  83.0k|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 83.0k]
  |  |  ------------------
  |  | 1287|  83.0k|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|  83.0k|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 83.0k]
  |  |  ------------------
  ------------------
 1649|  83.0k|    CHECK_NULL_SKIP;
  ------------------
  |  | 1310|  83.0k|#define CHECK_NULL_SKIP do {                         \
  |  | 1311|  83.0k|    if(currentTokenType(ctx) == CJ5_TOKEN_NULL) {    \
  |  |  ------------------
  |  |  |  Branch (1311:8): [True: 656, False: 82.3k]
  |  |  ------------------
  |  | 1312|    656|        ctx->index++;                                \
  |  | 1313|    656|        return UA_STATUSCODE_GOOD;                   \
  |  |  ------------------
  |  |  |  |   17|    656|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  |  |  ------------------
  |  | 1314|  82.3k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1314:14): [Folded, False: 82.3k]
  |  |  ------------------
  ------------------
 1650|  82.3k|    CHECK_STRING;
  ------------------
  |  | 1300|  82.3k|#define CHECK_STRING do {                                \
  |  | 1301|  82.3k|    if(currentTokenType(ctx) != CJ5_TOKEN_STRING) {      \
  |  |  ------------------
  |  |  |  Branch (1301:8): [True: 801, False: 81.5k]
  |  |  ------------------
  |  | 1302|    801|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|    801|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1303|  81.5k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1303:14): [Folded, False: 81.5k]
  |  |  ------------------
  ------------------
 1651|  81.5k|    GET_TOKEN;
  ------------------
  |  | 1281|  81.5k|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|  81.5k|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|  81.5k|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 81.5k]
  |  |  ------------------
  ------------------
 1652|  81.5k|    (void)tokenData;
 1653|       |
 1654|       |    /* Empty string? */
 1655|  81.5k|    if(tokenSize == 0) {
  ------------------
  |  Branch (1655:8): [True: 2.82k, False: 78.7k]
  ------------------
 1656|  2.82k|        dst->data = (UA_Byte*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|  2.82k|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
 1657|  2.82k|        dst->length = 0;
 1658|  2.82k|        ctx->index++;
 1659|  2.82k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  2.82k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1660|  2.82k|    }
 1661|       |
 1662|       |    /* The decoded utf8 is at most of the same length as the source string */
 1663|  78.7k|    char *outBuf = (char*)UA_malloc(tokenSize+1);
  ------------------
  |  |   18|  78.7k|#define UA_malloc(size) UA_mallocSingleton(size)
  ------------------
 1664|  78.7k|    if(!outBuf)
  ------------------
  |  Branch (1664:8): [True: 15, False: 78.7k]
  ------------------
 1665|     15|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|     15|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 1666|       |
 1667|       |    /* Decode the string */
 1668|  78.7k|    cj5_result r;
 1669|  78.7k|    r.tokens = ctx->tokens;
 1670|  78.7k|    r.num_tokens = (unsigned int)ctx->tokensSize;
 1671|  78.7k|    r.json5 = ctx->json5;
 1672|  78.7k|    unsigned int len = 0;
 1673|  78.7k|    cj5_error_code err = cj5_get_str(&r, (unsigned int)ctx->index, outBuf, &len);
 1674|  78.7k|    if(err != CJ5_ERROR_NONE) {
  ------------------
  |  Branch (1674:8): [True: 176, False: 78.5k]
  ------------------
 1675|    176|        UA_free(outBuf);
  ------------------
  |  |   19|    176|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 1676|    176|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    176|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1677|    176|    }
 1678|       |
 1679|       |    /* Set the output */
 1680|  78.5k|    dst->length = len;
 1681|  78.5k|    if(dst->length > 0) {
  ------------------
  |  Branch (1681:8): [True: 78.5k, False: 0]
  ------------------
 1682|  78.5k|        dst->data = (UA_Byte*)outBuf;
 1683|  78.5k|    } else {
 1684|      0|        dst->data = (UA_Byte*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|      0|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
 1685|      0|        UA_free(outBuf);
  ------------------
  |  |   19|      0|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 1686|      0|    }
 1687|       |
 1688|  78.5k|    ctx->index++;
 1689|  78.5k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  78.5k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1690|  78.7k|}
ua_types_encoding_json.c:DateTime_decodeJson:
 1845|    700|DECODE_JSON(DateTime) {
 1846|    700|    UA_DateTime *dst = (UA_DateTime*)p;
 1847|    700|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|    700|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|    700|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 700]
  |  |  ------------------
  |  | 1287|    700|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|    700|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 700]
  |  |  ------------------
  ------------------
 1848|    700|    CHECK_NULL_SKIP;
  ------------------
  |  | 1310|    700|#define CHECK_NULL_SKIP do {                         \
  |  | 1311|    700|    if(currentTokenType(ctx) == CJ5_TOKEN_NULL) {    \
  |  |  ------------------
  |  |  |  Branch (1311:8): [True: 434, False: 266]
  |  |  ------------------
  |  | 1312|    434|        ctx->index++;                                \
  |  | 1313|    434|        return UA_STATUSCODE_GOOD;                   \
  |  |  ------------------
  |  |  |  |   17|    434|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  |  |  ------------------
  |  | 1314|    434|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1314:14): [Folded, False: 266]
  |  |  ------------------
  ------------------
 1849|    266|    CHECK_STRING;
  ------------------
  |  | 1300|    266|#define CHECK_STRING do {                                \
  |  | 1301|    266|    if(currentTokenType(ctx) != CJ5_TOKEN_STRING) {      \
  |  |  ------------------
  |  |  |  Branch (1301:8): [True: 11, False: 255]
  |  |  ------------------
  |  | 1302|     11|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     11|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1303|    255|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1303:14): [Folded, False: 255]
  |  |  ------------------
  ------------------
 1850|    255|    GET_TOKEN;
  ------------------
  |  | 1281|    255|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|    255|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|    255|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 255]
  |  |  ------------------
  ------------------
 1851|       |
 1852|       |    /* YYYY-MM-DDTHH:MM:SS[.fffffff]Z */
 1853|    255|    if(tokenSize < 20 || tokenData[tokenSize-1] != 'Z' ||
  ------------------
  |  Branch (1853:8): [True: 14, False: 241]
  |  Branch (1853:26): [True: 14, False: 227]
  ------------------
 1854|    227|       tokenData[4] != '-' || tokenData[7] != '-' ||
  ------------------
  |  Branch (1854:8): [True: 14, False: 213]
  |  Branch (1854:31): [True: 11, False: 202]
  ------------------
 1855|    202|       tokenData[10] != 'T' || tokenData[13] != ':' ||
  ------------------
  |  Branch (1855:8): [True: 2, False: 200]
  |  Branch (1855:32): [True: 11, False: 189]
  ------------------
 1856|    189|       tokenData[16] != ':')
  ------------------
  |  Branch (1856:8): [True: 9, False: 180]
  ------------------
 1857|     75|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     75|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1858|       |
 1859|    180|    const size_t positions[6] = {0, 5, 8, 11, 14, 17};
 1860|    180|    UA_UInt16 values[6];
 1861|  1.20k|    for(size_t i = 0; i < 6; i++) {
  ------------------
  |  Branch (1861:23): [True: 1.03k, False: 170]
  ------------------
 1862|  1.03k|        UA_UInt64 value = 0;
 1863|  1.03k|        size_t digits = (i == 0) ? 4 : 2;
  ------------------
  |  Branch (1863:25): [True: 180, False: 858]
  ------------------
 1864|  1.03k|        if(parseUInt64(&tokenData[positions[i]], digits, &value) != digits)
  ------------------
  |  Branch (1864:12): [True: 10, False: 1.02k]
  ------------------
 1865|     10|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     10|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1866|  1.02k|        values[i] = (UA_UInt16)value;
 1867|  1.02k|    }
 1868|       |
 1869|    170|    UA_UInt16 daysInMonth = 31;
 1870|    170|    switch(values[1]) {
 1871|     37|    case 2:
  ------------------
  |  Branch (1871:5): [True: 37, False: 133]
  ------------------
 1872|     37|        daysInMonth = (UA_UInt16)
 1873|     37|            (((values[0] % 4 == 0 && values[0] % 100 != 0) ||
  ------------------
  |  Branch (1873:16): [True: 14, False: 23]
  |  Branch (1873:38): [True: 13, False: 1]
  ------------------
 1874|     24|              values[0] % 400 == 0) ? 29 : 28);
  ------------------
  |  Branch (1874:15): [True: 1, False: 23]
  ------------------
 1875|     37|        break;
 1876|     32|    case 4: case 6: case 9: case 11:
  ------------------
  |  Branch (1876:5): [True: 3, False: 167]
  |  Branch (1876:13): [True: 20, False: 150]
  |  Branch (1876:21): [True: 4, False: 166]
  |  Branch (1876:29): [True: 5, False: 165]
  ------------------
 1877|     32|        daysInMonth = 30;
 1878|     32|        break;
 1879|    101|    default:
  ------------------
  |  Branch (1879:5): [True: 101, False: 69]
  ------------------
 1880|    101|        break;
 1881|    170|    }
 1882|    170|    if(values[0] < 1 || values[1] < 1 || values[1] > 12 ||
  ------------------
  |  Branch (1882:8): [True: 1, False: 169]
  |  Branch (1882:25): [True: 1, False: 168]
  |  Branch (1882:42): [True: 4, False: 164]
  ------------------
 1883|    164|       values[2] < 1 || values[2] > daysInMonth || values[3] > 23 ||
  ------------------
  |  Branch (1883:8): [True: 1, False: 163]
  |  Branch (1883:25): [True: 3, False: 160]
  |  Branch (1883:52): [True: 1, False: 159]
  ------------------
 1884|    159|       values[4] > 59 || values[5] > 59)
  ------------------
  |  Branch (1884:8): [True: 2, False: 157]
  |  Branch (1884:26): [True: 4, False: 153]
  ------------------
 1885|     17|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     17|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1886|       |
 1887|    153|    size_t pos = 19;
 1888|    153|    UA_UInt32 fraction = 0;
 1889|    153|    size_t fractionDigits = 0;
 1890|    153|    if(pos < tokenSize - 1 &&
  ------------------
  |  Branch (1890:8): [True: 87, False: 66]
  ------------------
 1891|     87|       (tokenData[pos] == '.' || tokenData[pos] == ',')) {
  ------------------
  |  Branch (1891:9): [True: 10, False: 77]
  |  Branch (1891:34): [True: 67, False: 10]
  ------------------
 1892|     77|        pos++;
 1893|  1.34M|        while(pos < tokenSize - 1 && tokenData[pos] >= '0' &&
  ------------------
  |  Branch (1893:15): [True: 1.34M, False: 39]
  |  Branch (1893:38): [True: 1.34M, False: 20]
  ------------------
 1894|  1.34M|              tokenData[pos] <= '9') {
  ------------------
  |  Branch (1894:15): [True: 1.34M, False: 18]
  ------------------
 1895|  1.34M|            if(fractionDigits < 7)
  ------------------
  |  Branch (1895:16): [True: 369, False: 1.34M]
  ------------------
 1896|    369|                fraction = fraction * 10 + (UA_UInt32)(tokenData[pos] - '0');
 1897|  1.34M|            fractionDigits++;
 1898|  1.34M|            pos++;
 1899|  1.34M|        }
 1900|     77|        if(fractionDigits == 0)
  ------------------
  |  Branch (1900:12): [True: 13, False: 64]
  ------------------
 1901|     13|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     13|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1902|    143|        while(fractionDigits < 7) {
  ------------------
  |  Branch (1902:15): [True: 79, False: 64]
  ------------------
 1903|     79|            fraction *= 10;
 1904|     79|            fractionDigits++;
 1905|     79|        }
 1906|     64|    }
 1907|    140|    if(pos != tokenSize - 1)
  ------------------
  |  Branch (1907:8): [True: 37, False: 103]
  ------------------
 1908|     37|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     37|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1909|       |
 1910|       |    /* The minimum JSON DateTime is the null value. */
 1911|    103|    if(values[0] == 1 && values[1] == 1 && values[2] == 1 &&
  ------------------
  |  Branch (1911:8): [True: 28, False: 75]
  |  Branch (1911:26): [True: 25, False: 3]
  |  Branch (1911:44): [True: 22, False: 3]
  ------------------
 1912|     22|       values[3] == 0 && values[4] == 0 && values[5] == 0 && fraction == 0) {
  ------------------
  |  Branch (1912:8): [True: 18, False: 4]
  |  Branch (1912:26): [True: 17, False: 1]
  |  Branch (1912:44): [True: 13, False: 4]
  |  Branch (1912:62): [True: 1, False: 12]
  ------------------
 1913|      1|        *dst = 0;
 1914|    102|    } else {
 1915|    102|        UA_DateTimeStruct date;
 1916|    102|        memset(&date, 0, sizeof(date));
 1917|    102|        date.year = (UA_Int16)values[0];
 1918|    102|        date.month = values[1];
 1919|    102|        date.day = values[2];
 1920|    102|        date.hour = values[3];
 1921|    102|        date.min = values[4];
 1922|    102|        date.sec = values[5];
 1923|    102|        date.milliSec = (UA_UInt16)(fraction / 10000);
 1924|    102|        date.microSec = (UA_UInt16)((fraction % 10000) / 10);
 1925|    102|        date.nanoSec = (UA_UInt16)((fraction % 10) * 100);
 1926|    102|        *dst = UA_DateTime_fromStruct(date);
 1927|    102|    }
 1928|       |
 1929|    103|    ctx->index++;
 1930|    103|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    103|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1931|    140|}
ua_types_encoding_json.c:Guid_decodeJson:
 1636|     76|DECODE_JSON(Guid) {
 1637|     76|    UA_Guid *dst = (UA_Guid*)p;
 1638|     76|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|     76|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|     76|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 76]
  |  |  ------------------
  |  | 1287|     76|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|     76|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 76]
  |  |  ------------------
  ------------------
 1639|     76|    CHECK_STRING;
  ------------------
  |  | 1300|     76|#define CHECK_STRING do {                                \
  |  | 1301|     76|    if(currentTokenType(ctx) != CJ5_TOKEN_STRING) {      \
  |  |  ------------------
  |  |  |  Branch (1301:8): [True: 17, False: 59]
  |  |  ------------------
  |  | 1302|     17|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     17|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1303|     59|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1303:14): [Folded, False: 59]
  |  |  ------------------
  ------------------
 1640|     59|    GET_TOKEN;
  ------------------
  |  | 1281|     59|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|     59|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|     59|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 59]
  |  |  ------------------
  ------------------
 1641|     59|    UA_String str = {tokenSize, (UA_Byte*)(uintptr_t)tokenData};
 1642|     59|    ctx->index++;
 1643|     59|    return UA_Guid_parse(dst, str);
 1644|     76|}
ua_types_encoding_json.c:ByteString_decodeJson:
 1741|  9.46k|DECODE_JSON(ByteString) {
 1742|  9.46k|    UA_ByteString *dst = (UA_ByteString*)p;
 1743|  9.46k|    CHECK_TOKEN_BOUNDS;
  ------------------
  |  | 1285|  9.46k|#define CHECK_TOKEN_BOUNDS do {                   \
  |  | 1286|  9.46k|    if(ctx->index >= ctx->tokensSize)             \
  |  |  ------------------
  |  |  |  Branch (1286:8): [True: 0, False: 9.46k]
  |  |  ------------------
  |  | 1287|  9.46k|        return UA_STATUSCODE_BADDECODINGERROR;    \
  |  |  ------------------
  |  |  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1288|  9.46k|    } while(0)
  |  |  ------------------
  |  |  |  Branch (1288:13): [Folded, False: 9.46k]
  |  |  ------------------
  ------------------
 1744|  9.46k|    CHECK_NULL_SKIP;
  ------------------
  |  | 1310|  9.46k|#define CHECK_NULL_SKIP do {                         \
  |  | 1311|  9.46k|    if(currentTokenType(ctx) == CJ5_TOKEN_NULL) {    \
  |  |  ------------------
  |  |  |  Branch (1311:8): [True: 394, False: 9.06k]
  |  |  ------------------
  |  | 1312|    394|        ctx->index++;                                \
  |  | 1313|    394|        return UA_STATUSCODE_GOOD;                   \
  |  |  ------------------
  |  |  |  |   17|    394|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  |  |  ------------------
  |  | 1314|  9.06k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1314:14): [Folded, False: 9.06k]
  |  |  ------------------
  ------------------
 1745|  9.06k|    CHECK_STRING;
  ------------------
  |  | 1300|  9.06k|#define CHECK_STRING do {                                \
  |  | 1301|  9.06k|    if(currentTokenType(ctx) != CJ5_TOKEN_STRING) {      \
  |  |  ------------------
  |  |  |  Branch (1301:8): [True: 14, False: 9.05k]
  |  |  ------------------
  |  | 1302|     14|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     14|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1303|  9.05k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1303:14): [Folded, False: 9.05k]
  |  |  ------------------
  ------------------
 1746|  9.05k|    GET_TOKEN;
  ------------------
  |  | 1281|  9.05k|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|  9.05k|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|  9.05k|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 9.05k]
  |  |  ------------------
  ------------------
 1747|       |
 1748|       |    /* Empty bytestring? */
 1749|  9.05k|    if(tokenSize == 0) {
  ------------------
  |  Branch (1749:8): [True: 4.92k, False: 4.12k]
  ------------------
 1750|  4.92k|        dst->data = (UA_Byte*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|  4.92k|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
 1751|  4.92k|        dst->length = 0;
 1752|  4.92k|    } else {
 1753|  4.12k|        size_t flen = 0;
 1754|  4.12k|        unsigned char* unB64 =
 1755|  4.12k|            UA_unbase64((const unsigned char*)tokenData, tokenSize, &flen);
 1756|  4.12k|        if(unB64 == 0)
  ------------------
  |  Branch (1756:12): [True: 65, False: 4.06k]
  ------------------
 1757|     65|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     65|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1758|  4.06k|        dst->data = (u8*)unB64;
 1759|  4.06k|        dst->length = flen;
 1760|  4.06k|    }
 1761|       |
 1762|  8.99k|    ctx->index++;
 1763|  8.99k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  8.99k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1764|  9.05k|}
ua_types_encoding_json.c:NodeId_decodeJson:
 1822|  31.9k|DECODE_JSON(NodeId) {
 1823|  31.9k|    UA_NodeId *dst = (UA_NodeId*)p;
 1824|  31.9k|    UA_String str;
 1825|  31.9k|    UA_String_init(&str);
 1826|  31.9k|    status res = String_decodeJson(ctx, &str, NULL);
 1827|  31.9k|    if(res == UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  31.9k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1827:8): [True: 31.0k, False: 847]
  ------------------
 1828|  31.0k|        res = UA_NodeId_parseEx(dst, str, ctx->namespaceMapping);
 1829|  31.9k|    UA_String_clear(&str);
 1830|  31.9k|    return res;
 1831|  31.9k|}
ua_types_encoding_json.c:ExpandedNodeId_decodeJson:
 1833|  3.57k|DECODE_JSON(ExpandedNodeId) {
 1834|  3.57k|    UA_ExpandedNodeId *dst = (UA_ExpandedNodeId*)p;
 1835|  3.57k|    UA_String str;
 1836|  3.57k|    UA_String_init(&str);
 1837|  3.57k|    status res = String_decodeJson(ctx, &str, NULL);
 1838|  3.57k|    if(res == UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  3.57k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1838:8): [True: 3.56k, False: 12]
  ------------------
 1839|  3.56k|        res = UA_ExpandedNodeId_parseEx(dst, str, ctx->namespaceMapping,
 1840|  3.56k|                                        ctx->serverUrisSize, ctx->serverUris);
 1841|  3.57k|    UA_String_clear(&str);
 1842|  3.57k|    return res;
 1843|  3.57k|}
ua_types_encoding_json.c:StatusCode_decodeJson:
 1933|    276|DECODE_JSON(StatusCode) {
 1934|    276|    UA_StatusCode *dst = (UA_StatusCode*)p;
 1935|    276|    CHECK_OBJECT;
  ------------------
  |  | 1305|    276|#define CHECK_OBJECT do {                                \
  |  | 1306|    276|    if(currentTokenType(ctx) != CJ5_TOKEN_OBJECT) {      \
  |  |  ------------------
  |  |  |  Branch (1306:8): [True: 10, False: 266]
  |  |  ------------------
  |  | 1307|     10|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     10|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1308|    266|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1308:14): [Folded, False: 266]
  |  |  ------------------
  ------------------
 1936|    266|    DecodeEntry entries[2] = {
 1937|    266|        {UA_JSONKEY_CODE, dst, NULL, false, &UA_TYPES[UA_TYPES_UINT32]},
  ------------------
  |  |  225|    266|#define UA_TYPES_UINT32 6
  ------------------
 1938|    266|        {UA_JSONKEY_SYMBOL, NULL, NULL, false, NULL}
 1939|    266|    };
 1940|    266|    return decodeFields(ctx, entries, 2);
 1941|    276|}
ua_types_encoding_json.c:QualifiedName_decodeJson:
 1776|  24.3k|DECODE_JSON(QualifiedName) {
 1777|  24.3k|    UA_QualifiedName *dst = (UA_QualifiedName*)p;
 1778|  24.3k|    CHECK_NULL_SKIP;
  ------------------
  |  | 1310|  24.3k|#define CHECK_NULL_SKIP do {                         \
  |  | 1311|  24.3k|    if(currentTokenType(ctx) == CJ5_TOKEN_NULL) {    \
  |  |  ------------------
  |  |  |  Branch (1311:8): [True: 66, False: 24.2k]
  |  |  ------------------
  |  | 1312|     66|        ctx->index++;                                \
  |  | 1313|     66|        return UA_STATUSCODE_GOOD;                   \
  |  |  ------------------
  |  |  |  |   17|     66|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  |  |  ------------------
  |  | 1314|  24.2k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1314:14): [Folded, False: 24.2k]
  |  |  ------------------
  ------------------
 1779|  24.2k|    UA_String str;
 1780|  24.2k|    UA_String_init(&str);
 1781|  24.2k|    status res = String_decodeJson(ctx, &str, NULL);
 1782|  24.2k|    if(res == UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  24.2k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1782:8): [True: 24.2k, False: 19]
  ------------------
 1783|  24.2k|        res = UA_QualifiedName_parseEx(dst, str, ctx->namespaceMapping);
 1784|  24.2k|    UA_String_clear(&str);
 1785|  24.2k|    return res;
 1786|  24.3k|}
ua_types_encoding_json.c:LocalizedText_decodeJson:
 1766|  1.42k|DECODE_JSON(LocalizedText) {
 1767|  1.42k|    UA_LocalizedText *dst = (UA_LocalizedText*)p;
 1768|  1.42k|    CHECK_OBJECT;
  ------------------
  |  | 1305|  1.42k|#define CHECK_OBJECT do {                                \
  |  | 1306|  1.42k|    if(currentTokenType(ctx) != CJ5_TOKEN_OBJECT) {      \
  |  |  ------------------
  |  |  |  Branch (1306:8): [True: 9, False: 1.41k]
  |  |  ------------------
  |  | 1307|      9|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|      9|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1308|  1.41k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1308:14): [Folded, False: 1.41k]
  |  |  ------------------
  ------------------
 1769|  1.41k|    DecodeEntry entries[2] = {
 1770|  1.41k|        {UA_JSONKEY_LOCALE, &dst->locale, NULL, false, &UA_TYPES[UA_TYPES_STRING]},
  ------------------
  |  |  395|  1.41k|#define UA_TYPES_STRING 11
  ------------------
 1771|  1.41k|        {UA_JSONKEY_TEXT, &dst->text, NULL, false, &UA_TYPES[UA_TYPES_STRING]}
  ------------------
  |  |  395|  1.41k|#define UA_TYPES_STRING 11
  ------------------
 1772|  1.41k|    };
 1773|  1.41k|    return decodeFields(ctx, entries, 2);
 1774|  1.42k|}
ua_types_encoding_json.c:ExtensionObject_decodeJson:
 2295|  27.6k|DECODE_JSON(ExtensionObject) {
 2296|  27.6k|    UA_ExtensionObject *dst = (UA_ExtensionObject*)p;
 2297|  27.6k|    CHECK_NULL_SKIP; /* Treat a null value as an empty DataValue */
  ------------------
  |  | 1310|  27.6k|#define CHECK_NULL_SKIP do {                         \
  |  | 1311|  27.6k|    if(currentTokenType(ctx) == CJ5_TOKEN_NULL) {    \
  |  |  ------------------
  |  |  |  Branch (1311:8): [True: 0, False: 27.6k]
  |  |  ------------------
  |  | 1312|      0|        ctx->index++;                                \
  |  | 1313|      0|        return UA_STATUSCODE_GOOD;                   \
  |  |  ------------------
  |  |  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  |  |  ------------------
  |  | 1314|  27.6k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1314:14): [Folded, False: 27.6k]
  |  |  ------------------
  ------------------
 2298|  27.6k|    CHECK_OBJECT;
  ------------------
  |  | 1305|  27.6k|#define CHECK_OBJECT do {                                \
  |  | 1306|  27.6k|    if(currentTokenType(ctx) != CJ5_TOKEN_OBJECT) {      \
  |  |  ------------------
  |  |  |  Branch (1306:8): [True: 69, False: 27.6k]
  |  |  ------------------
  |  | 1307|     69|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     69|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1308|  27.6k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1308:14): [Folded, False: 27.6k]
  |  |  ------------------
  ------------------
 2299|       |
 2300|       |    /* Empty object -> Null ExtensionObject */
 2301|  27.6k|    if(ctx->tokens[ctx->index].size == 0) {
  ------------------
  |  Branch (2301:8): [True: 2.03k, False: 25.5k]
  ------------------
 2302|  2.03k|        ctx->index++; /* Skip the empty ExtensionObject */
 2303|  2.03k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  2.03k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2304|  2.03k|    }
 2305|       |
 2306|       |    /* Scan the object once for metadata and duplicate keys. */
 2307|  25.5k|    size_t beginIndex = ctx->index;
 2308|  25.5k|    JsonFieldIndex fields[3] = {
 2309|  25.5k|        {UA_JSONKEY_TYPEID, SIZE_MAX},
 2310|  25.5k|        {UA_JSONKEY_ENCODING, SIZE_MAX},
 2311|  25.5k|        {UA_JSONKEY_BODY, SIZE_MAX}
 2312|  25.5k|    };
 2313|  25.5k|    status ret = scanObjectFields(ctx, fields, 3);
 2314|  25.5k|    if(ret != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  25.5k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2314:8): [True: 61, False: 25.5k]
  ------------------
 2315|     61|        return ret;
 2316|       |
 2317|       |    /* Decode the optional non-JSON encoding. */
 2318|  25.5k|    UA_UInt64 encoding = 0;
 2319|  25.5k|    size_t encIndex = fields[1].valueIndex;
 2320|  25.5k|    if(encIndex != SIZE_MAX) {
  ------------------
  |  Branch (2320:8): [True: 6.87k, False: 18.6k]
  ------------------
 2321|  6.87k|        const char *extObjEncoding = &ctx->json5[ctx->tokens[encIndex].start];
 2322|  6.87k|        size_t len = parseUInt64(extObjEncoding,
 2323|  6.87k|                                 getTokenLength(&ctx->tokens[encIndex]),
 2324|  6.87k|                                 &encoding);
 2325|  6.87k|        if(len == 0 || encoding > 2)
  ------------------
  |  Branch (2325:12): [True: 3, False: 6.87k]
  |  Branch (2325:24): [True: 125, False: 6.74k]
  ------------------
 2326|    128|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    128|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2327|  6.87k|    }
 2328|       |
 2329|       |    /* Decode the type NodeId. */
 2330|  25.4k|    size_t typeIdIndex = fields[0].valueIndex;
 2331|  25.4k|    if(typeIdIndex == SIZE_MAX)
  ------------------
  |  Branch (2331:8): [True: 217, False: 25.1k]
  ------------------
 2332|    217|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    217|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2333|       |
 2334|  25.1k|    UA_NodeId typeId;
 2335|  25.1k|    UA_NodeId_init(&typeId);
 2336|  25.1k|    ParseCtx decodeCtx = *ctx;
 2337|  25.1k|    decodeCtx.index = typeIdIndex;
 2338|  25.1k|    ret = NodeId_decodeJson(&decodeCtx, &typeId, &UA_TYPES[UA_TYPES_NODEID]);
  ------------------
  |  |  565|  25.1k|#define UA_TYPES_NODEID 16
  ------------------
 2339|  25.1k|    if(ret != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|  25.1k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2339:8): [True: 206, False: 24.9k]
  ------------------
 2340|    206|        UA_NodeId_clear(&typeId); /* We don't have the global cleanup */
 2341|    206|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    206|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2342|    206|    }
 2343|       |
 2344|  24.9k|    size_t bodyIndex = fields[2].valueIndex;
 2345|       |
 2346|       |    /* Binary and XML bodies stay encoded even if the datatype is known. */
 2347|  24.9k|    if(encoding != 0) {
  ------------------
  |  Branch (2347:8): [True: 4.57k, False: 20.4k]
  ------------------
 2348|  4.57k|        dst->encoding = (encoding == 1) ?
  ------------------
  |  Branch (2348:25): [True: 333, False: 4.24k]
  ------------------
 2349|    333|            UA_EXTENSIONOBJECT_ENCODED_BYTESTRING :
 2350|  4.57k|            UA_EXTENSIONOBJECT_ENCODED_XML;
 2351|  4.57k|        dst->content.encoded.typeId = typeId;
 2352|  4.57k|        if(bodyIndex == SIZE_MAX)
  ------------------
  |  Branch (2352:12): [True: 13, False: 4.56k]
  ------------------
 2353|     13|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     13|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2354|  4.56k|        decodeCtx.index = bodyIndex;
 2355|  4.56k|        return ByteString_decodeJson(&decodeCtx,
 2356|  4.56k|                                     &dst->content.encoded.body, NULL);
 2357|  4.57k|    }
 2358|       |
 2359|       |    /* Lookup the JSON datatype. */
 2360|  20.4k|    type = UA_findDataTypeWithCustom(&typeId, ctx->customTypes);
 2361|  20.4k|    if(!type) {
  ------------------
  |  Branch (2361:8): [True: 10.9k, False: 9.46k]
  ------------------
 2362|  10.9k|        dst->encoding = UA_EXTENSIONOBJECT_ENCODED_JSON;
 2363|  10.9k|        dst->content.encoded.typeId = typeId;
 2364|  10.9k|        decodeCtx.index = beginIndex;
 2365|  10.9k|        return tokenToByteString(&decodeCtx, &dst->content.encoded.body);
 2366|  10.9k|    }
 2367|       |
 2368|       |    /* No need to keep the TypeId */
 2369|  9.46k|    UA_NodeId_clear(&typeId);
 2370|       |
 2371|       |    /* Disallow directly nested ExtensionObjects */
 2372|  9.46k|    if(type == &UA_TYPES[UA_TYPES_EXTENSIONOBJECT])
  ------------------
  |  |  735|  9.46k|#define UA_TYPES_EXTENSIONOBJECT 21
  ------------------
  |  Branch (2372:8): [True: 2, False: 9.46k]
  ------------------
 2373|      2|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      2|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2374|       |
 2375|       |    /* Allocate memory for the decoded data */
 2376|  9.46k|    dst->content.decoded.data = UA_new(type);
 2377|  9.46k|    if(!dst->content.decoded.data)
  ------------------
  |  Branch (2377:8): [True: 1, False: 9.46k]
  ------------------
 2378|      1|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      1|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2379|  9.46k|    dst->content.decoded.type = type;
 2380|  9.46k|    dst->encoding = UA_EXTENSIONOBJECT_DECODED;
 2381|       |
 2382|  9.46k|    decodeJsonSignature decodeType = decodeJsonJumpTable[type->typeKind];
 2383|  9.46k|    if(bodyIndex != SIZE_MAX) {
  ------------------
  |  Branch (2383:8): [True: 8.72k, False: 740]
  ------------------
 2384|  8.72k|        decodeCtx.index = bodyIndex;
 2385|  8.72k|        return decodeType(&decodeCtx, dst->content.decoded.data, type);
 2386|  8.72k|    }
 2387|       |
 2388|       |    /* Only JSON structures without an explicit encoding can be in-situ. */
 2389|    740|    if(encoding != 0)
  ------------------
  |  Branch (2389:8): [True: 0, False: 740]
  ------------------
 2390|      0|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2391|       |
 2392|    740|    decodeCtx.index = beginIndex;
 2393|    740|    if(type->typeKind == UA_DATATYPEKIND_STRUCTURE ||
  ------------------
  |  Branch (2393:8): [True: 609, False: 131]
  ------------------
 2394|    131|       type->typeKind == UA_DATATYPEKIND_OPTSTRUCT)
  ------------------
  |  Branch (2394:8): [True: 0, False: 131]
  ------------------
 2395|    609|        return decodeJsonStructureExtensionObject(
 2396|    609|            &decodeCtx, dst->content.decoded.data, type);
 2397|    131|    if(type->typeKind == UA_DATATYPEKIND_UNION)
  ------------------
  |  Branch (2397:8): [True: 0, False: 131]
  ------------------
 2398|      0|        return decodeJsonUnionExtensionObject(
 2399|      0|            &decodeCtx, dst->content.decoded.data, type);
 2400|    131|    return decodeType(&decodeCtx, dst->content.decoded.data, type);
 2401|    131|}
ua_types_encoding_json.c:scanObjectFields:
 1369|  25.5k|scanObjectFields(ParseCtx *ctx, JsonFieldIndex *fields, size_t fieldsSize) {
 1370|  25.5k|    UA_assert(currentTokenType(ctx) == CJ5_TOKEN_OBJECT);
  ------------------
  |  |  400|  25.5k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (1370:5): [True: 25.5k, False: 0]
  ------------------
 1371|  25.5k|    size_t keyCount = (size_t)ctx->tokens[ctx->index].size / 2;
 1372|  25.5k|    UA_STACKARRAY(size_t, keys, keyCount);
  ------------------
  |  |  376|  25.5k|#  define UA_STACKARRAY(TYPE, NAME, SIZE) TYPE NAME[SIZE]
  ------------------
 1373|  25.5k|    ctx->index++;
 1374|       |
 1375|  99.6k|    for(size_t i = 0; i < keyCount; i++) {
  ------------------
  |  Branch (1375:23): [True: 74.1k, False: 25.5k]
  ------------------
 1376|  74.1k|        UA_assert(currentTokenType(ctx) == CJ5_TOKEN_STRING);
  ------------------
  |  |  400|  74.1k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (1376:9): [True: 74.1k, False: 0]
  ------------------
 1377|  74.1k|        const cj5_token *key = &ctx->tokens[ctx->index];
 1378|  74.1k|        size_t keyLength = getTokenLength(key);
 1379|       |
 1380|       |        /* Duplicate names are invalid, including unknown in-situ Structure
 1381|       |         * fields of an ExtensionObject. */
 1382|   166k|        for(size_t j = 0; j < i; j++) {
  ------------------
  |  Branch (1382:27): [True: 91.9k, False: 74.0k]
  ------------------
 1383|  91.9k|            const cj5_token *previous = &ctx->tokens[keys[j]];
 1384|  91.9k|            if(keyLength == getTokenLength(previous) &&
  ------------------
  |  Branch (1384:16): [True: 4.22k, False: 87.7k]
  ------------------
 1385|  4.22k|               memcmp(&ctx->json5[key->start], &ctx->json5[previous->start],
  ------------------
  |  Branch (1385:16): [True: 61, False: 4.16k]
  ------------------
 1386|  4.22k|                      keyLength) == 0)
 1387|     61|                return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     61|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1388|  91.9k|        }
 1389|  74.0k|        keys[i] = ctx->index;
 1390|       |
 1391|       |        /* Record the value position of interesting fields. */
 1392|  74.0k|        ctx->index++;
 1393|  74.0k|        UA_assert(ctx->index < ctx->tokensSize);
  ------------------
  |  |  400|  74.0k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (1393:9): [True: 74.0k, False: 0]
  ------------------
 1394|   192k|        for(size_t j = 0; j < fieldsSize; j++) {
  ------------------
  |  Branch (1394:27): [True: 164k, False: 28.0k]
  ------------------
 1395|   164k|            if(jsoneq(ctx->json5, key, fields[j].fieldName) == 0) {
  ------------------
  |  Branch (1395:16): [True: 46.0k, False: 118k]
  ------------------
 1396|  46.0k|                fields[j].valueIndex = ctx->index;
 1397|  46.0k|                break;
 1398|  46.0k|            }
 1399|   164k|        }
 1400|       |
 1401|  74.0k|        skipObject(ctx);
 1402|  74.0k|    }
 1403|  25.5k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  25.5k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1404|  25.5k|}
ua_types_encoding_json.c:tokenToByteString:
 2285|  10.9k|tokenToByteString(ParseCtx *ctx, UA_ByteString *p) {
 2286|  10.9k|    GET_TOKEN;
  ------------------
  |  | 1281|  10.9k|    size_t tokenSize = getTokenLength(&ctx->tokens[ctx->index]);        \
  |  | 1282|  10.9k|    const char* tokenData = &ctx->json5[ctx->tokens[ctx->index].start]; \
  |  | 1283|  10.9k|    do {} while(0)
  |  |  ------------------
  |  |  |  Branch (1283:17): [Folded, False: 10.9k]
  |  |  ------------------
  ------------------
 2287|  10.9k|    UA_StatusCode res = UA_ByteString_allocBuffer(p, tokenSize);
 2288|  10.9k|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  10.9k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2288:8): [True: 3, False: 10.9k]
  ------------------
 2289|      3|        return res;
 2290|  10.9k|    memcpy(p->data, tokenData, tokenSize);
 2291|  10.9k|    skipObject(ctx);
 2292|  10.9k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  10.9k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2293|  10.9k|}
ua_types_encoding_json.c:decodeJsonStructureExtensionObject:
 2776|    733|                                   const UA_DataType *type) {
 2777|       |    return decodeJsonStructureInternal(ctx, dst, type, true);
 2778|    733|}
ua_types_encoding_json.c:decodeJsonStructureInternal:
 2682|  1.52k|                            UA_Boolean extensionObject) {
 2683|  1.52k|    uintptr_t ptr = (uintptr_t)dst;
 2684|  1.52k|    status ret = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  1.52k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2685|  1.52k|    const UA_Boolean optional = (type->typeKind == UA_DATATYPEKIND_OPTSTRUCT);
 2686|  1.52k|    size_t offset = (extensionObject ? 1 : 0) + (optional ? 1 : 0);
  ------------------
  |  Branch (2686:22): [True: 733, False: 792]
  |  Branch (2686:50): [True: 0, False: 1.52k]
  ------------------
 2687|  1.52k|    size_t membersSize = type->membersSize + offset;
 2688|  1.52k|    UA_STACKARRAY(DecodeEntry, entries, membersSize);
  ------------------
  |  |  376|  1.52k|#  define UA_STACKARRAY(TYPE, NAME, SIZE) TYPE NAME[SIZE]
  ------------------
 2689|  1.52k|    memset(entries, 0, sizeof(DecodeEntry) * membersSize);
 2690|  1.52k|    size_t entryIndex = 0;
 2691|  1.52k|    if(extensionObject) {
  ------------------
  |  Branch (2691:8): [True: 733, False: 792]
  ------------------
 2692|    733|        entries[entryIndex++] =
 2693|    733|            (DecodeEntry){UA_JSONKEY_TYPEID, NULL, NULL, false, NULL};
 2694|    733|    }
 2695|  1.52k|    UA_UInt32 encodingMask = 0;
 2696|  1.52k|    size_t encodingMaskIndex = SIZE_MAX;
 2697|  1.52k|    if(optional) {
  ------------------
  |  Branch (2697:8): [True: 0, False: 1.52k]
  ------------------
 2698|      0|        encodingMaskIndex = entryIndex;
 2699|      0|        entries[entryIndex++] =
 2700|      0|            (DecodeEntry){UA_JSONKEY_ENCODINGMASK, &encodingMask, NULL, false,
 2701|      0|                          &UA_TYPES[UA_TYPES_UINT32]};
  ------------------
  |  |  225|      0|#define UA_TYPES_UINT32 6
  ------------------
 2702|      0|    }
 2703|  9.51k|    for(size_t i = 0; i < type->membersSize; ++i, ++entryIndex) {
  ------------------
  |  Branch (2703:23): [True: 7.99k, False: 1.52k]
  ------------------
 2704|  7.99k|        const UA_DataTypeMember *m = &type->members[i];
 2705|  7.99k|        const UA_DataType *mt = m->memberType;
 2706|  7.99k|        entries[entryIndex].type = mt;
 2707|  7.99k|        entries[entryIndex].fieldName = m->memberName;
 2708|  7.99k|        if(!m->isArray) {
  ------------------
  |  Branch (2708:12): [True: 6.33k, False: 1.66k]
  ------------------
 2709|  6.33k|            ptr += m->padding;
 2710|  6.33k|            entries[entryIndex].fieldPointer = (void*)ptr;
 2711|  6.33k|            if(m->isOptional)
  ------------------
  |  Branch (2711:16): [True: 0, False: 6.33k]
  ------------------
 2712|      0|                entries[entryIndex].function = OptionalScalar_decodeJson;
 2713|  6.33k|            ptr += m->isOptional ? sizeof(void*) : mt->memSize;
  ------------------
  |  Branch (2713:20): [True: 0, False: 6.33k]
  ------------------
 2714|  6.33k|        } else {
 2715|  1.66k|            ptr += m->padding;
 2716|  1.66k|            ptr += sizeof(size_t);
 2717|  1.66k|            entries[entryIndex].fieldPointer = (void*)ptr;
 2718|  1.66k|            entries[entryIndex].function = m->isOptional ?
  ------------------
  |  Branch (2718:44): [True: 0, False: 1.66k]
  ------------------
 2719|  1.66k|                OptionalArray_decodeJson : Array_decodeJson;
 2720|  1.66k|            ptr += sizeof(void*);
 2721|  1.66k|        }
 2722|  7.99k|    }
 2723|       |
 2724|  1.52k|    ret = decodeFields(ctx, entries, membersSize);
 2725|       |
 2726|       |    /* Compact JSON uses EncodingMask. Materialize optional fields whose bit is
 2727|       |     * set even when their default value was omitted from the object. */
 2728|  1.52k|    if(ret == UA_STATUSCODE_GOOD && optional &&
  ------------------
  |  |   17|  3.05k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2728:8): [True: 1.49k, False: 34]
  |  Branch (2728:37): [True: 0, False: 1.49k]
  ------------------
 2729|      0|       entries[encodingMaskIndex].found) {
  ------------------
  |  Branch (2729:8): [True: 0, False: 0]
  ------------------
 2730|      0|        size_t optionalIndex = 0;
 2731|      0|        entryIndex = offset;
 2732|      0|        for(size_t i = 0; i < type->membersSize; i++, entryIndex++) {
  ------------------
  |  Branch (2732:27): [True: 0, False: 0]
  ------------------
 2733|      0|            const UA_DataTypeMember *m = &type->members[i];
 2734|      0|            if(!m->isOptional)
  ------------------
  |  Branch (2734:16): [True: 0, False: 0]
  ------------------
 2735|      0|                continue;
 2736|      0|            if(optionalIndex >= 32) {
  ------------------
  |  Branch (2736:16): [True: 0, False: 0]
  ------------------
 2737|      0|                ret = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2738|      0|                break;
 2739|      0|            }
 2740|      0|            UA_Boolean inMask =
 2741|      0|                (encodingMask & ((UA_UInt32)1 << optionalIndex)) != 0;
 2742|      0|            if(entries[entryIndex].found != inMask) {
  ------------------
  |  Branch (2742:16): [True: 0, False: 0]
  ------------------
 2743|      0|                if(entries[entryIndex].found) {
  ------------------
  |  Branch (2743:20): [True: 0, False: 0]
  ------------------
 2744|      0|                    ret = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2745|      0|                    break;
 2746|      0|                }
 2747|      0|                if(m->isArray) {
  ------------------
  |  Branch (2747:20): [True: 0, False: 0]
  ------------------
 2748|      0|                    *(void**)entries[entryIndex].fieldPointer =
 2749|      0|                        UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|      0|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
 2750|      0|                } else {
 2751|      0|                    void *value = UA_calloc(1, m->memberType->memSize);
  ------------------
  |  |   20|      0|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
 2752|      0|                    if(!value) {
  ------------------
  |  Branch (2752:24): [True: 0, False: 0]
  ------------------
 2753|      0|                        ret = UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2754|      0|                        break;
 2755|      0|                    }
 2756|      0|                    *(void**)entries[entryIndex].fieldPointer = value;
 2757|      0|                }
 2758|      0|            }
 2759|      0|            optionalIndex++;
 2760|      0|        }
 2761|      0|        if(optionalIndex < 32 &&
  ------------------
  |  Branch (2761:12): [True: 0, False: 0]
  ------------------
 2762|      0|           (encodingMask >> optionalIndex) != 0)
  ------------------
  |  Branch (2762:12): [True: 0, False: 0]
  ------------------
 2763|      0|            ret = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2764|      0|    }
 2765|       |
 2766|  1.52k|    return ret;
 2767|  1.52k|}
ua_types_encoding_json.c:Array_decodeJson:
 2591|  13.7k|Array_decodeJson(ParseCtx *ctx, void *dst_, const UA_DataType *type) {
 2592|  13.7k|    void **dst = (void**)dst_;
 2593|       |
 2594|       |    /* Save the length of the array */
 2595|  13.7k|    size_t *size_ptr = (size_t*) dst - 1;
 2596|       |
 2597|       |    /* A null JSON array represents a null OPC UA array. */
 2598|  13.7k|    if(currentTokenType(ctx) == CJ5_TOKEN_NULL) {
  ------------------
  |  Branch (2598:8): [True: 115, False: 13.6k]
  ------------------
 2599|    115|        *size_ptr = 0;
 2600|    115|        *dst = NULL;
 2601|    115|        ctx->index++;
 2602|    115|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    115|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2603|    115|    }
 2604|       |
 2605|  13.6k|    if(currentTokenType(ctx) != CJ5_TOKEN_ARRAY)
  ------------------
  |  Branch (2605:8): [True: 16, False: 13.6k]
  ------------------
 2606|     16|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     16|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2607|       |
 2608|  13.6k|    size_t length = (size_t)ctx->tokens[ctx->index].size;
 2609|       |
 2610|  13.6k|    ctx->index++; /* Go to first array member or to the first element after
 2611|       |                   * the array (if empty) */
 2612|       |
 2613|       |    /* Return early for empty arrays */
 2614|  13.6k|    if(length == 0) {
  ------------------
  |  Branch (2614:8): [True: 542, False: 13.1k]
  ------------------
 2615|    542|        *size_ptr = length;
 2616|    542|        *dst = UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|    542|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
 2617|    542|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    542|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2618|    542|    }
 2619|       |
 2620|       |    /* Allocate memory */
 2621|  13.1k|    *dst = UA_calloc(length, type->memSize);
  ------------------
  |  |   20|  13.1k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
 2622|  13.1k|    if(*dst == NULL)
  ------------------
  |  Branch (2622:8): [True: 6, False: 13.1k]
  ------------------
 2623|      6|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      6|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2624|       |
 2625|       |    /* Decode array members */
 2626|  13.1k|    decodeJsonSignature decodeFunc = decodeJsonJumpTable[type->typeKind];
 2627|  13.1k|    uintptr_t ptr = (uintptr_t)*dst;
 2628|  4.56M|    for(size_t i = 0; i < length; ++i) {
  ------------------
  |  Branch (2628:23): [True: 4.55M, False: 10.8k]
  ------------------
 2629|  4.55M|        if(ctx->tokens[ctx->index].type == CJ5_TOKEN_NULL) {
  ------------------
  |  Branch (2629:12): [True: 733, False: 4.55M]
  ------------------
 2630|    733|            if(!isJsonNullable(type)) {
  ------------------
  |  Branch (2630:16): [True: 5, False: 728]
  ------------------
 2631|      5|                UA_Array_delete(*dst, i, type);
 2632|      5|                *dst = NULL;
 2633|      5|                return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      5|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2634|      5|            }
 2635|    728|            ptr += type->memSize;
 2636|    728|            ctx->index++;
 2637|    728|            continue;
 2638|    733|        }
 2639|       |
 2640|  4.55M|        status ret = decodeFunc(ctx, (void*)ptr, type);
 2641|  4.55M|        ptr += type->memSize;
 2642|  4.55M|        if(ret != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|  4.55M|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2642:12): [True: 2.29k, False: 4.54M]
  ------------------
 2643|  2.29k|            UA_Array_delete(*dst, i+1, type);
 2644|  2.29k|            *dst = NULL;
 2645|  2.29k|            return ret;
 2646|  2.29k|        }
 2647|  4.55M|    }
 2648|       |
 2649|  10.8k|    *size_ptr = length; /* All good, set the size */
 2650|  10.8k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  10.8k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2651|  13.1k|}
ua_types_encoding_json.c:DataValue_decodeJson:
 2245|  22.6k|DECODE_JSON(DataValue) {
 2246|  22.6k|    UA_DataValue *dst = (UA_DataValue*)p;
 2247|  22.6k|    CHECK_NULL_SKIP; /* Treat a null value as an empty DataValue */
  ------------------
  |  | 1310|  22.6k|#define CHECK_NULL_SKIP do {                         \
  |  | 1311|  22.6k|    if(currentTokenType(ctx) == CJ5_TOKEN_NULL) {    \
  |  |  ------------------
  |  |  |  Branch (1311:8): [True: 427, False: 22.1k]
  |  |  ------------------
  |  | 1312|    427|        ctx->index++;                                \
  |  | 1313|    427|        return UA_STATUSCODE_GOOD;                   \
  |  |  ------------------
  |  |  |  |   17|    427|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  |  |  ------------------
  |  | 1314|  22.1k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1314:14): [Folded, False: 22.1k]
  |  |  ------------------
  ------------------
 2248|  22.1k|    CHECK_OBJECT;
  ------------------
  |  | 1305|  22.1k|#define CHECK_OBJECT do {                                \
  |  | 1306|  22.1k|    if(currentTokenType(ctx) != CJ5_TOKEN_OBJECT) {      \
  |  |  ------------------
  |  |  |  Branch (1306:8): [True: 56, False: 22.1k]
  |  |  ------------------
  |  | 1307|     56|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     56|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1308|  22.1k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1308:14): [Folded, False: 22.1k]
  |  |  ------------------
  ------------------
 2249|       |
 2250|       |    /* Decode the Variant in-situ */
 2251|  22.1k|    size_t beginIndex = ctx->index;
 2252|  22.1k|    status ret = decodeJSONVariant(ctx, &dst->value, true);
 2253|  22.1k|    ctx->index = beginIndex;
 2254|  22.1k|    dst->hasValue = (dst->value.type != NULL);
 2255|  22.1k|    if(ret != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  22.1k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2255:8): [True: 3.65k, False: 18.4k]
  ------------------
 2256|  3.65k|        return ret;
 2257|       |
 2258|       |    /* Decode the other members (skip the Variant members) */
 2259|  18.4k|    DecodeEntry entries[8] = {
 2260|  18.4k|        {UA_JSONKEY_TYPE, NULL, NULL, false, NULL},
 2261|  18.4k|        {UA_JSONKEY_VALUE, NULL, NULL, false, NULL},
 2262|  18.4k|        {UA_JSONKEY_DIMENSIONS, NULL, NULL, false, NULL},
 2263|  18.4k|        {UA_JSONKEY_STATUS, &dst->status, NULL, false, &UA_TYPES[UA_TYPES_STATUSCODE]},
  ------------------
  |  |  633|  18.4k|#define UA_TYPES_STATUSCODE 18
  ------------------
 2264|  18.4k|        {UA_JSONKEY_SOURCETIMESTAMP, &dst->sourceTimestamp, NULL,
 2265|  18.4k|         false, &UA_TYPES[UA_TYPES_DATETIME]},
  ------------------
  |  |  429|  18.4k|#define UA_TYPES_DATETIME 12
  ------------------
 2266|  18.4k|        {UA_JSONKEY_SOURCEPICOSECONDS, &dst->sourcePicoseconds, NULL,
 2267|  18.4k|         false, &UA_TYPES[UA_TYPES_UINT16]},
  ------------------
  |  |  157|  18.4k|#define UA_TYPES_UINT16 4
  ------------------
 2268|  18.4k|        {UA_JSONKEY_SERVERTIMESTAMP, &dst->serverTimestamp, NULL,
 2269|  18.4k|         false, &UA_TYPES[UA_TYPES_DATETIME]},
  ------------------
  |  |  429|  18.4k|#define UA_TYPES_DATETIME 12
  ------------------
 2270|  18.4k|        {UA_JSONKEY_SERVERPICOSECONDS, &dst->serverPicoseconds, NULL,
 2271|  18.4k|         false, &UA_TYPES[UA_TYPES_UINT16]}
  ------------------
  |  |  157|  18.4k|#define UA_TYPES_UINT16 4
  ------------------
 2272|  18.4k|    };
 2273|       |
 2274|  18.4k|    ret = decodeFields(ctx, entries, 8);
 2275|  18.4k|    dst->hasStatus = entries[3].found;
 2276|  18.4k|    dst->hasSourceTimestamp = entries[4].found;
 2277|  18.4k|    dst->hasSourcePicoseconds = entries[5].found;
 2278|  18.4k|    dst->hasServerTimestamp = entries[6].found;
 2279|  18.4k|    dst->hasServerPicoseconds = entries[7].found;
 2280|  18.4k|    return ret;
 2281|  22.1k|}
ua_types_encoding_json.c:decodeJSONVariant:
 2102|  34.6k|                  UA_Boolean insideDataValue) {
 2103|       |    /* Empty variant == null */
 2104|  34.6k|    if(ctx->tokens[ctx->index].size == 0) {
  ------------------
  |  Branch (2104:8): [True: 3.69k, False: 30.9k]
  ------------------
 2105|  3.69k|        ctx->index++;
 2106|  3.69k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  3.69k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2107|  3.69k|    }
 2108|       |
 2109|       |    /* Search the value field */
 2110|  30.9k|    size_t valueIndex = 0;
 2111|  30.9k|    lookAheadForKey(ctx, UA_JSONKEY_VALUE, &valueIndex);
 2112|       |
 2113|       |    /* Search for the dimensions field */
 2114|  30.9k|    size_t dimIndex = 0;
 2115|  30.9k|    lookAheadForKey(ctx, UA_JSONKEY_DIMENSIONS, &dimIndex);
 2116|       |
 2117|       |    /* Parse the type kind */
 2118|  30.9k|    size_t typeIndex = 0;
 2119|  30.9k|    lookAheadForKey(ctx, UA_JSONKEY_TYPE, &typeIndex);
 2120|  30.9k|    if(typeIndex == 0 || ctx->tokens[typeIndex].type != CJ5_TOKEN_NUMBER)
  ------------------
  |  Branch (2120:8): [True: 70, False: 30.9k]
  |  Branch (2120:26): [True: 4, False: 30.8k]
  ------------------
 2121|     74|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     74|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2122|  30.8k|    UA_UInt64 typeKind = 0;
 2123|  30.8k|    size_t len = parseUInt64(&ctx->json5[ctx->tokens[typeIndex].start],
 2124|  30.8k|                             getTokenLength(&ctx->tokens[typeIndex]), &typeKind);
 2125|  30.8k|    if(len == 0)
  ------------------
  |  Branch (2125:8): [True: 4, False: 30.8k]
  ------------------
 2126|      4|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      4|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2127|       |
 2128|       |    /* Shift to get the datatype index. The type must be a builtin data type.
 2129|       |     * All not-builtin types are wrapped in an ExtensionObject. */
 2130|  30.8k|    typeKind--;
 2131|  30.8k|    if(typeKind > UA_DATATYPEKIND_DIAGNOSTICINFO)
  ------------------
  |  Branch (2131:8): [True: 130, False: 30.7k]
  ------------------
 2132|    130|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    130|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2133|  30.7k|    const UA_DataType *type = &UA_TYPES[typeKind];
 2134|       |
 2135|       |    /* These combinations are excluded by the Variant definition. */
 2136|  30.7k|    if(type->typeKind == UA_DATATYPEKIND_DIAGNOSTICINFO ||
  ------------------
  |  Branch (2136:8): [True: 2, False: 30.7k]
  ------------------
 2137|  30.7k|       (insideDataValue && type->typeKind == UA_DATATYPEKIND_DATAVALUE))
  ------------------
  |  Branch (2137:9): [True: 19.3k, False: 11.3k]
  |  Branch (2137:28): [True: 2, False: 19.3k]
  ------------------
 2138|      4|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      4|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2139|       |
 2140|       |    /* Value is an array? */
 2141|  30.7k|    UA_Boolean isArray =
 2142|  30.7k|        (valueIndex > 0 && ctx->tokens[valueIndex].type == CJ5_TOKEN_ARRAY);
  ------------------
  |  Branch (2142:10): [True: 28.5k, False: 2.18k]
  |  Branch (2142:28): [True: 11.9k, False: 16.5k]
  ------------------
 2143|  30.7k|    if(type->typeKind == UA_DATATYPEKIND_VARIANT && !isArray)
  ------------------
  |  Branch (2143:8): [True: 1.76k, False: 28.9k]
  |  Branch (2143:53): [True: 3, False: 1.76k]
  ------------------
 2144|      3|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      3|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2145|       |
 2146|       |    /* Adjust the depth and set the value index as current */
 2147|  30.7k|    if(ctx->depth >= UA_JSON_ENCODING_MAX_RECURSION)
  ------------------
  |  |   22|  30.7k|#define UA_JSON_ENCODING_MAX_RECURSION 100
  ------------------
  |  Branch (2147:8): [True: 1, False: 30.7k]
  ------------------
 2148|      1|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      1|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2149|  30.7k|    size_t beginIndex = ctx->index;
 2150|  30.7k|    ctx->index = valueIndex;
 2151|  30.7k|    ctx->depth++;
 2152|       |
 2153|       |    /* Decode the value */
 2154|  30.7k|    status res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  30.7k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2155|  30.7k|    if(!isArray) {
  ------------------
  |  Branch (2155:8): [True: 18.7k, False: 11.9k]
  ------------------
 2156|       |        /* Scalar with dimensions -> error */
 2157|  18.7k|        if(dimIndex > 0) {
  ------------------
  |  Branch (2157:12): [True: 18, False: 18.7k]
  ------------------
 2158|     18|            res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     18|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2159|     18|            goto out;
 2160|     18|        }
 2161|       |
 2162|       |        /* Missing values are only valid for nullable types. */
 2163|  18.7k|        if(valueIndex == 0 && !isJsonNullable(type)) {
  ------------------
  |  Branch (2163:12): [True: 2.16k, False: 16.5k]
  |  Branch (2163:31): [True: 43, False: 2.12k]
  ------------------
 2164|     43|            res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     43|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2165|     43|            goto out;
 2166|     43|        }
 2167|       |
 2168|       |        /* JSON null is only valid for nullable types. */
 2169|  18.7k|        if(valueIndex > 0 && ctx->tokens[valueIndex].type == CJ5_TOKEN_NULL &&
  ------------------
  |  Branch (2169:12): [True: 16.5k, False: 2.12k]
  |  Branch (2169:30): [True: 275, False: 16.3k]
  ------------------
 2170|    275|           !isJsonNullable(type)) {
  ------------------
  |  Branch (2170:12): [True: 4, False: 271]
  ------------------
 2171|      4|            res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      4|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2172|      4|            goto out;
 2173|      4|        }
 2174|       |
 2175|       |        /* Decode a value wrapped in an ExtensionObject */
 2176|  18.7k|        if(valueIndex > 0 && type->typeKind == UA_DATATYPEKIND_EXTENSIONOBJECT) {
  ------------------
  |  Branch (2176:12): [True: 16.5k, False: 2.12k]
  |  Branch (2176:30): [True: 1.76k, False: 14.8k]
  ------------------
 2177|  1.76k|            res = Variant_decodeJsonUnwrapExtensionObject(ctx, dst, NULL);
 2178|  1.76k|            goto out;
 2179|  1.76k|        }
 2180|       |
 2181|       |        /* Allocate memory for the value */
 2182|  16.9k|        dst->data = UA_new(type);
 2183|  16.9k|        if(!dst->data) {
  ------------------
  |  Branch (2183:12): [True: 1, False: 16.9k]
  ------------------
 2184|      1|            res = UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      1|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2185|      1|            goto out;
 2186|      1|        }
 2187|  16.9k|        dst->type = type;
 2188|       |
 2189|       |        /* Decode the value */
 2190|  16.9k|        if(valueIndex > 0 && ctx->tokens[valueIndex].type != CJ5_TOKEN_NULL)
  ------------------
  |  Branch (2190:12): [True: 14.8k, False: 2.12k]
  |  Branch (2190:30): [True: 14.6k, False: 205]
  ------------------
 2191|  14.6k|            res = decodeJsonJumpTable[type->typeKind](ctx, dst->data, type);
 2192|  16.9k|    } else {
 2193|       |        /* Decode an array. Try to unwrap ExtensionObjects in the array. The
 2194|       |         * members must all have the same type. */
 2195|  11.9k|        const UA_DataType *unwrapType = NULL;
 2196|  11.9k|        if(type == &UA_TYPES[UA_TYPES_EXTENSIONOBJECT])
  ------------------
  |  |  735|  11.9k|#define UA_TYPES_EXTENSIONOBJECT 21
  ------------------
  |  Branch (2196:12): [True: 7.69k, False: 4.29k]
  ------------------
 2197|  7.69k|            unwrapType = getArrayUnwrapType(ctx);
 2198|  11.9k|        if(unwrapType) {
  ------------------
  |  Branch (2198:12): [True: 604, False: 11.3k]
  ------------------
 2199|    604|            dst->type = unwrapType;
 2200|    604|            res = Array_decodeJsonUnwrapExtensionObject(ctx, &dst->data, unwrapType);
 2201|  11.3k|        } else {
 2202|  11.3k|            dst->type = type;
 2203|  11.3k|            res = Array_decodeJson(ctx, &dst->data, type);
 2204|  11.3k|        }
 2205|       |
 2206|       |        /* Decode array dimensions */
 2207|  11.9k|        if(dimIndex > 0) {
  ------------------
  |  Branch (2207:12): [True: 2.27k, False: 9.71k]
  ------------------
 2208|  2.27k|            ctx->index = dimIndex;
 2209|  2.27k|            res |= Array_decodeJson(ctx, (void**)&dst->arrayDimensions,
 2210|  2.27k|                                    &UA_TYPES[UA_TYPES_UINT32]);
  ------------------
  |  |  225|  2.27k|#define UA_TYPES_UINT32 6
  ------------------
 2211|       |
 2212|       |            /* Help clang-analyzer */
 2213|  2.27k|            UA_assert(dst->arrayDimensionsSize == 0 || dst->arrayDimensions);
  ------------------
  |  |  400|  2.27k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (2213:13): [True: 81, False: 2.19k]
  |  Branch (2213:13): [True: 2.19k, False: 0]
  ------------------
 2214|       |
 2215|       |            /* Validate the dimensions */
 2216|  2.27k|            if(res == UA_STATUSCODE_GOOD &&
  ------------------
  |  |   17|  4.55k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2216:16): [True: 2.18k, False: 92]
  ------------------
 2217|  2.18k|               !variantDimensionsValid(dst->arrayLength,
  ------------------
  |  Branch (2217:16): [True: 143, False: 2.04k]
  ------------------
 2218|  2.18k|                                       dst->arrayDimensionsSize,
 2219|  2.18k|                                       dst->arrayDimensions))
 2220|    143|                res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    143|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 2221|       |
 2222|       |            /* Only keep >= 2 dimensions */
 2223|  2.27k|            if(dst->arrayDimensionsSize == 1) {
  ------------------
  |  Branch (2223:16): [True: 2.13k, False: 147]
  ------------------
 2224|  2.13k|                UA_free(dst->arrayDimensions);
  ------------------
  |  |   19|  2.13k|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 2225|  2.13k|                dst->arrayDimensions = NULL;
 2226|  2.13k|                dst->arrayDimensionsSize = 0;
 2227|  2.13k|            }
 2228|  2.27k|        }
 2229|  11.9k|    }
 2230|       |
 2231|  30.7k| out:
 2232|  30.7k|    ctx->index = beginIndex;
 2233|  30.7k|    skipObject(ctx);
 2234|  30.7k|    ctx->depth--;
 2235|  30.7k|    return res;
 2236|  30.7k|}
ua_types_encoding_json.c:Variant_decodeJsonUnwrapExtensionObject:
 2405|  1.76k|                                        const UA_DataType *type) {
 2406|  1.76k|    (void) type;
 2407|  1.76k|    UA_Variant *dst = (UA_Variant*)p;
 2408|       |
 2409|       |    /* ExtensionObject with null body */
 2410|  1.76k|    if(currentTokenType(ctx) == CJ5_TOKEN_NULL) {
  ------------------
  |  Branch (2410:8): [True: 66, False: 1.69k]
  ------------------
 2411|     66|        dst->data = UA_ExtensionObject_new();
 2412|     66|        dst->type = &UA_TYPES[UA_TYPES_EXTENSIONOBJECT];
  ------------------
  |  |  735|     66|#define UA_TYPES_EXTENSIONOBJECT 21
  ------------------
 2413|     66|        ctx->index++;
 2414|     66|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|     66|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2415|     66|    }
 2416|       |
 2417|       |    /* Decode the ExtensionObject */
 2418|  1.69k|    UA_ExtensionObject eo;
 2419|  1.69k|    UA_ExtensionObject_init(&eo);
 2420|  1.69k|    UA_StatusCode ret = ExtensionObject_decodeJson(ctx, &eo, NULL);
 2421|  1.69k|    if(ret != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|  1.69k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2421:8): [True: 468, False: 1.23k]
  ------------------
 2422|    468|        UA_ExtensionObject_clear(&eo); /* We don't have the global cleanup */
 2423|    468|        return ret;
 2424|    468|    }
 2425|       |
 2426|       |    /* The content is still encoded, cannot unwrap */
 2427|  1.23k|    if(eo.encoding != UA_EXTENSIONOBJECT_DECODED)
  ------------------
  |  Branch (2427:8): [True: 354, False: 876]
  ------------------
 2428|    354|        goto use_eo;
 2429|       |
 2430|       |    /* The content is a builtin type that could have been directly encoded in
 2431|       |     * the Variant, there was no need to wrap in an ExtensionObject. But this
 2432|       |     * means for us, that somebody made an extra effort to explicitly get an
 2433|       |     * ExtensionObject. So we keep it. As an added advantage we will generate
 2434|       |     * the same JSON again when encoding again. */
 2435|    876|    if(eo.content.decoded.type->typeKind <= UA_DATATYPEKIND_DIAGNOSTICINFO)
  ------------------
  |  Branch (2435:8): [True: 394, False: 482]
  ------------------
 2436|    394|        goto use_eo;
 2437|       |
 2438|       |    /* Unwrap the ExtensionObject */
 2439|    482|    dst->data = eo.content.decoded.data;
 2440|    482|    dst->type = eo.content.decoded.type;
 2441|    482|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    482|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2442|       |
 2443|    748| use_eo:
 2444|       |    /* Don't unwrap */
 2445|    748|    dst->data = UA_new(&UA_TYPES[UA_TYPES_EXTENSIONOBJECT]);
  ------------------
  |  |  735|    748|#define UA_TYPES_EXTENSIONOBJECT 21
  ------------------
 2446|    748|    if(!dst->data) {
  ------------------
  |  Branch (2446:8): [True: 1, False: 747]
  ------------------
 2447|      1|        UA_ExtensionObject_clear(&eo);
 2448|      1|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      1|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2449|      1|    }
 2450|    747|    dst->type = &UA_TYPES[UA_TYPES_EXTENSIONOBJECT];
  ------------------
  |  |  735|    747|#define UA_TYPES_EXTENSIONOBJECT 21
  ------------------
 2451|    747|    *(UA_ExtensionObject*)dst->data = eo;
 2452|    747|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    747|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2453|    748|}
ua_types_encoding_json.c:getArrayUnwrapType:
 1978|  7.69k|getArrayUnwrapType(ParseCtx *ctx) {
 1979|  7.69k|    UA_assert(ctx->tokens[ctx->index].type == CJ5_TOKEN_ARRAY);
  ------------------
  |  |  400|  7.69k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (1979:5): [True: 7.69k, False: 0]
  ------------------
 1980|       |
 1981|       |    /* Return early for empty arrays */
 1982|  7.69k|    size_t length = (size_t)ctx->tokens[ctx->index].size;
 1983|  7.69k|    if(length == 0)
  ------------------
  |  Branch (1983:8): [True: 247, False: 7.44k]
  ------------------
 1984|    247|        return NULL;
 1985|       |
 1986|       |    /* Save the original index and go to the first array member */
 1987|  7.44k|    size_t oldIndex = ctx->index;
 1988|  7.44k|    ctx->index++;
 1989|       |
 1990|       |    /* Lookup the type for the first array member */
 1991|  7.44k|    UA_NodeId typeId;
 1992|  7.44k|    UA_NodeId_init(&typeId);
 1993|  7.44k|    const UA_DataType *typeOfBody = getExtensionObjectType(ctx);
 1994|  7.44k|    if(!typeOfBody) {
  ------------------
  |  Branch (1994:8): [True: 3.98k, False: 3.45k]
  ------------------
 1995|  3.98k|        ctx->index = oldIndex; /* Restore the index */
 1996|  3.98k|        return NULL;
 1997|  3.98k|    }
 1998|       |
 1999|       |    /* Get the TypeId encoding for faster comparison below.
 2000|       |     * Cannot fail as getExtensionObjectType already looked this up. */
 2001|  3.45k|    size_t typeIdIndex = 0;
 2002|  3.45k|    UA_StatusCode ret = lookAheadForKey(ctx, UA_JSONKEY_TYPEID, &typeIdIndex);
 2003|  3.45k|    (void)ret;
 2004|  3.45k|    UA_assert(ret == UA_STATUSCODE_GOOD);
  ------------------
  |  |  400|  3.45k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (2004:5): [True: 3.45k, False: 0]
  ------------------
 2005|  3.45k|    const char* typeIdData = &ctx->json5[ctx->tokens[typeIdIndex].start];
 2006|  3.45k|    size_t typeIdSize = getTokenLength(&ctx->tokens[typeIdIndex]);
 2007|       |
 2008|       |    /* Loop over all members and check whether they can be unwrapped. Don't skip
 2009|       |     * the first member. We still haven't checked the encoding type. */
 2010|  7.96k|    for(size_t i = 0; i < length; i++) {
  ------------------
  |  Branch (2010:23): [True: 7.35k, False: 604]
  ------------------
 2011|       |        /* Array element must be an object */
 2012|  7.35k|        if(currentTokenType(ctx) != CJ5_TOKEN_OBJECT) {
  ------------------
  |  Branch (2012:12): [True: 25, False: 7.33k]
  ------------------
 2013|     25|            ctx->index = oldIndex; /* Restore the index */
 2014|     25|            return NULL;
 2015|     25|        }
 2016|       |
 2017|       |        /* Check for non-JSON encoding */
 2018|  7.33k|        size_t encIndex = 0;
 2019|  7.33k|        ret = lookAheadForKey(ctx, UA_JSONKEY_ENCODING, &encIndex);
 2020|  7.33k|        if(ret == UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|  7.33k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2020:12): [True: 12, False: 7.31k]
  ------------------
 2021|     12|            ctx->index = oldIndex; /* Restore the index */
 2022|     12|            return NULL;
 2023|     12|        }
 2024|       |
 2025|       |        /* Get the type NodeId index */
 2026|  7.31k|        size_t memberTypeIdIndex = 0;
 2027|  7.31k|        ret = lookAheadForKey(ctx, UA_JSONKEY_TYPEID, &memberTypeIdIndex);
 2028|  7.31k|        if(ret != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|  7.31k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2028:12): [True: 133, False: 7.18k]
  ------------------
 2029|    133|            ctx->index = oldIndex; /* Restore the index */
 2030|    133|            return NULL;
 2031|    133|        }
 2032|       |
 2033|       |        /* Is it the same type? Compare raw NodeId string */
 2034|  7.18k|        const char* memberTypeIdData = &ctx->json5[ctx->tokens[memberTypeIdIndex].start];
 2035|  7.18k|        size_t memberTypeIdSize = getTokenLength(&ctx->tokens[memberTypeIdIndex]);
 2036|  7.18k|        if(typeIdSize != memberTypeIdSize ||
  ------------------
  |  Branch (2036:12): [True: 2.42k, False: 4.76k]
  ------------------
 2037|  4.76k|           memcmp(typeIdData, memberTypeIdData, typeIdSize) != 0) {
  ------------------
  |  Branch (2037:12): [True: 260, False: 4.50k]
  ------------------
 2038|  2.68k|            ctx->index = oldIndex; /* Restore the index */
 2039|  2.68k|            return NULL;
 2040|  2.68k|        }
 2041|       |
 2042|       |        /* Skip to the next array member */
 2043|  4.50k|        skipObject(ctx);
 2044|  4.50k|    }
 2045|       |
 2046|    604|    ctx->index = oldIndex; /* Restore the index */
 2047|    604|    return typeOfBody;
 2048|  3.45k|}
ua_types_encoding_json.c:getExtensionObjectType:
 1946|  7.44k|getExtensionObjectType(ParseCtx *ctx) {
 1947|  7.44k|    if(currentTokenType(ctx) != CJ5_TOKEN_OBJECT)
  ------------------
  |  Branch (1947:8): [True: 204, False: 7.24k]
  ------------------
 1948|    204|        return NULL;
 1949|       |
 1950|       |    /* Get the type NodeId index */
 1951|  7.24k|    size_t typeIdIndex = 0;
 1952|  7.24k|    UA_StatusCode ret = lookAheadForKey(ctx, UA_JSONKEY_TYPEID, &typeIdIndex);
 1953|  7.24k|    if(ret != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  7.24k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1953:8): [True: 1.28k, False: 5.95k]
  ------------------
 1954|  1.28k|        return NULL;
 1955|       |
 1956|  5.95k|    size_t oldIndex = ctx->index;
 1957|  5.95k|    ctx->index = (UA_UInt16)typeIdIndex;
 1958|       |
 1959|       |    /* Decode the type NodeId */
 1960|  5.95k|    UA_NodeId typeId;
 1961|  5.95k|    UA_NodeId_init(&typeId);
 1962|  5.95k|    ret = NodeId_decodeJson(ctx, &typeId, &UA_TYPES[UA_TYPES_NODEID]);
  ------------------
  |  |  565|  5.95k|#define UA_TYPES_NODEID 16
  ------------------
 1963|  5.95k|    ctx->index = oldIndex;
 1964|  5.95k|    if(ret != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|  5.95k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1964:8): [True: 2.21k, False: 3.74k]
  ------------------
 1965|  2.21k|        UA_NodeId_clear(&typeId); /* We don't have the global cleanup */
 1966|  2.21k|        return NULL;
 1967|  2.21k|    }
 1968|       |
 1969|       |    /* Lookup an return */
 1970|  3.74k|    const UA_DataType *type = UA_findDataTypeWithCustom(&typeId, ctx->customTypes);
 1971|  3.74k|    UA_NodeId_clear(&typeId);
 1972|  3.74k|    return type;
 1973|  5.95k|}
ua_types_encoding_json.c:Array_decodeJsonUnwrapExtensionObject:
 2052|    604|                                      const UA_DataType *type) {
 2053|    604|    size_t *size_ptr = (size_t*) dst - 1; /* Save the length pointer of the array */
 2054|    604|    size_t length = (size_t)ctx->tokens[ctx->index].size;
 2055|       |
 2056|       |    /* Known from the previous unwrapping-check */
 2057|    604|    UA_assert(currentTokenType(ctx) == CJ5_TOKEN_ARRAY);
  ------------------
  |  |  400|    604|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (2057:5): [True: 604, False: 0]
  ------------------
 2058|    604|    UA_assert(length > 0);
  ------------------
  |  |  400|    604|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (2058:5): [True: 604, False: 0]
  ------------------
 2059|       |
 2060|    604|    ctx->index++; /* Go to first array member */
 2061|       |
 2062|       |    /* Allocate memory */
 2063|    604|    *dst = UA_calloc(length, type->memSize);
  ------------------
  |  |   20|    604|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
 2064|    604|    if(*dst == NULL)
  ------------------
  |  Branch (2064:8): [True: 1, False: 603]
  ------------------
 2065|      1|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      1|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2066|       |
 2067|       |    /* Decode array members */
 2068|    603|    status ret = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    603|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2069|    603|    uintptr_t ptr = (uintptr_t)*dst;
 2070|  1.46k|    for(size_t i = 0; i < length; i++) {
  ------------------
  |  Branch (2070:23): [True: 923, False: 540]
  ------------------
 2071|    923|        UA_assert(ctx->tokens[ctx->index].type == CJ5_TOKEN_OBJECT);
  ------------------
  |  |  400|    923|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (2071:9): [True: 923, False: 0]
  ------------------
 2072|    923|        if(type->typeKind == UA_DATATYPEKIND_STRUCTURE ||
  ------------------
  |  Branch (2072:12): [True: 124, False: 799]
  ------------------
 2073|    799|           type->typeKind == UA_DATATYPEKIND_OPTSTRUCT) {
  ------------------
  |  Branch (2073:12): [True: 0, False: 799]
  ------------------
 2074|       |            /* Decode structure in-situ in the ExtensionObject */
 2075|    124|            ret = decodeJsonStructureExtensionObject(ctx, (void*)ptr, type);
 2076|    799|        } else if(type->typeKind == UA_DATATYPEKIND_UNION) {
  ------------------
  |  Branch (2076:19): [True: 0, False: 799]
  ------------------
 2077|       |            /* Decode union in-situ in the ExtensionObject */
 2078|      0|            ret = decodeJsonUnionExtensionObject(ctx, (void*)ptr, type);
 2079|    799|        } else {
 2080|       |            /* Get the body field and decode it */
 2081|    799|            DecodeEntry entries[3] = {
 2082|    799|                {UA_JSONKEY_TYPEID, NULL, NULL, false, NULL},
 2083|    799|                {UA_JSONKEY_BODY, (void*)ptr, NULL, false, type},
 2084|    799|                {UA_JSONKEY_ENCODING, NULL, NULL, false, NULL}
 2085|    799|            };
 2086|    799|            ret = decodeFields(ctx, entries, 3);
 2087|    799|        }
 2088|    923|        if(ret != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|    923|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2088:12): [True: 63, False: 860]
  ------------------
 2089|     63|            UA_Array_delete(*dst, i+1, type);
 2090|     63|            *dst = NULL;
 2091|     63|            return ret;
 2092|     63|        }
 2093|    860|        ptr += type->memSize;
 2094|    860|    }
 2095|       |
 2096|    540|    *size_ptr = length; /* All good, set the size */
 2097|    540|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    540|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2098|    603|}
ua_types_encoding_json.c:Variant_decodeJson:
 2238|  12.7k|DECODE_JSON(Variant) {
 2239|  12.7k|    UA_Variant *dst = (UA_Variant*)p;
 2240|  12.7k|    CHECK_NULL_SKIP; /* Treat null as an empty variant */
  ------------------
  |  | 1310|  12.7k|#define CHECK_NULL_SKIP do {                         \
  |  | 1311|  12.7k|    if(currentTokenType(ctx) == CJ5_TOKEN_NULL) {    \
  |  |  ------------------
  |  |  |  Branch (1311:8): [True: 205, False: 12.5k]
  |  |  ------------------
  |  | 1312|    205|        ctx->index++;                                \
  |  | 1313|    205|        return UA_STATUSCODE_GOOD;                   \
  |  |  ------------------
  |  |  |  |   17|    205|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  |  |  ------------------
  |  | 1314|  12.5k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1314:14): [Folded, False: 12.5k]
  |  |  ------------------
  ------------------
 2241|  12.5k|    CHECK_OBJECT;
  ------------------
  |  | 1305|  12.5k|#define CHECK_OBJECT do {                                \
  |  | 1306|  12.5k|    if(currentTokenType(ctx) != CJ5_TOKEN_OBJECT) {      \
  |  |  ------------------
  |  |  |  Branch (1306:8): [True: 12, False: 12.5k]
  |  |  ------------------
  |  | 1307|     12|        return UA_STATUSCODE_BADDECODINGERROR;           \
  |  |  ------------------
  |  |  |  |   44|     12|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  |  |  ------------------
  |  | 1308|  12.5k|    }} while(0)
  |  |  ------------------
  |  |  |  Branch (1308:14): [Folded, False: 12.5k]
  |  |  ------------------
  ------------------
 2242|  12.5k|    return decodeJSONVariant(ctx, dst, false);
 2243|  12.5k|}
ua_types_encoding_json.c:Enum_decodeJson:
 1696|    649|DECODE_JSON(Enum) {
 1697|    649|    if(currentTokenType(ctx) == CJ5_TOKEN_NUMBER)
  ------------------
  |  Branch (1697:8): [True: 419, False: 230]
  ------------------
 1698|    419|        return Int32_decodeJson(ctx, p, type);
 1699|    230|    if(currentTokenType(ctx) != CJ5_TOKEN_STRING)
  ------------------
  |  Branch (1699:8): [True: 11, False: 219]
  ------------------
 1700|     11|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     11|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1701|       |
 1702|    219|    UA_String encoded = UA_STRING_NULL;
 1703|    219|    status ret = String_decodeJson(ctx, &encoded, &UA_TYPES[UA_TYPES_STRING]);
  ------------------
  |  |  395|    219|#define UA_TYPES_STRING 11
  ------------------
 1704|    219|    if(ret != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    219|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1704:8): [True: 4, False: 215]
  ------------------
 1705|      4|        return ret;
 1706|       |
 1707|       |    /* Use the suffix after the final underscore, if present. Enumeration
 1708|       |     * names can themselves contain underscores. */
 1709|    215|    size_t numberStart = 0;
 1710|  2.78M|    for(size_t i = encoded.length; i > 0; i--) {
  ------------------
  |  Branch (1710:36): [True: 2.78M, False: 156]
  ------------------
 1711|  2.78M|        if(encoded.data[i - 1] != '_')
  ------------------
  |  Branch (1711:12): [True: 2.78M, False: 59]
  ------------------
 1712|  2.78M|            continue;
 1713|     59|        if(i == 1 || i == encoded.length) {
  ------------------
  |  Branch (1713:12): [True: 2, False: 57]
  |  Branch (1713:22): [True: 1, False: 56]
  ------------------
 1714|      3|            ret = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      3|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1715|      3|            goto cleanup;
 1716|      3|        }
 1717|     56|        numberStart = i;
 1718|     56|        break;
 1719|     59|    }
 1720|       |
 1721|    212|    size_t numberLength = encoded.length - numberStart;
 1722|    212|    if(numberLength == 0) {
  ------------------
  |  Branch (1722:8): [True: 1, False: 211]
  ------------------
 1723|      1|        ret = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      1|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1724|      1|        goto cleanup;
 1725|      1|    }
 1726|       |
 1727|    211|    UA_Int64 value = 0;
 1728|    211|    size_t parsed = parseInt64((const char*)&encoded.data[numberStart],
 1729|    211|                               numberLength, &value);
 1730|    211|    if(parsed != numberLength || value < UA_INT32_MIN || value > UA_INT32_MAX) {
  ------------------
  |  |  100|    358|#define UA_INT32_MIN ((int32_t)-2147483648LL)
  ------------------
                  if(parsed != numberLength || value < UA_INT32_MIN || value > UA_INT32_MAX) {
  ------------------
  |  |  101|     93|#define UA_INT32_MAX 2147483647L
  ------------------
  |  Branch (1730:8): [True: 64, False: 147]
  |  Branch (1730:34): [True: 54, False: 93]
  |  Branch (1730:58): [True: 3, False: 90]
  ------------------
 1731|    121|        ret = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    121|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1732|    121|        goto cleanup;
 1733|    121|    }
 1734|     90|    *(UA_Int32*)p = (UA_Int32)value;
 1735|       |
 1736|    215| cleanup:
 1737|    215|    UA_String_clear(&encoded);
 1738|    215|    return ret;
 1739|     90|}
ua_types_encoding_json.c:decodeJsonStructure:
 2770|    792|decodeJsonStructure(ParseCtx *ctx, void *dst, const UA_DataType *type) {
 2771|       |    return decodeJsonStructureInternal(ctx, dst, type, false);
 2772|    792|}

ua_types_encoding_json.c:currentTokenType:
  104|  5.77M|cj5_token_type currentTokenType(const ParseCtx *ctx) {
  105|  5.77M|    return ctx->tokens[ctx->index].type;
  106|  5.77M|}
ua_types_encoding_json.c:getTokenLength:
  109|  6.31M|size_t getTokenLength(const cj5_token *t) {
  110|  6.31M|    return (size_t)(1u + t->end - t->start);
  111|  6.31M|}
ua_pubsub_networkmessage_json.c:currentTokenType:
  104|  49.3k|cj5_token_type currentTokenType(const ParseCtx *ctx) {
  105|  49.3k|    return ctx->tokens[ctx->index].type;
  106|  49.3k|}
ua_pubsub_networkmessage_json.c:getTokenLength:
  109|  6.73k|size_t getTokenLength(const cj5_token *t) {
  110|  6.73k|    return (size_t)(1u + t->end - t->start);
  111|  6.73k|}

UA_Guid_parse:
   86|     59|UA_Guid_parse(UA_Guid *guid, const UA_String str) {
   87|     59|    UA_StatusCode res = parse_guid(guid, str.data, str.data + str.length);
   88|     59|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|     59|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (88:8): [True: 53, False: 6]
  ------------------
   89|     53|        *guid = UA_GUID_NULL;
   90|     59|    return res;
   91|     59|}
UA_NodeId_parseEx:
  323|  31.0k|                  const UA_NamespaceMapping *nsMapping) {
  324|  31.0k|    UA_StatusCode res =
  325|  31.0k|        parse_nodeid(id, str.data, str.data+str.length, UA_ESCAPING_NONE, nsMapping);
  326|  31.0k|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  31.0k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (326:8): [True: 1.72k, False: 29.3k]
  ------------------
  327|  1.72k|        UA_NodeId_clear(id);
  328|  31.0k|    return res;
  329|  31.0k|}
UA_ExpandedNodeId_parseEx:
  671|  3.56k|                          size_t serverUrisSize, const UA_String *serverUris) {
  672|  3.56k|    UA_StatusCode res =
  673|  3.56k|        parse_expandednodeid(id, str.data, str.data + str.length, UA_ESCAPING_NONE,
  674|  3.56k|                             nsMapping, serverUrisSize, serverUris);
  675|  3.56k|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  3.56k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (675:8): [True: 500, False: 3.06k]
  ------------------
  676|    500|        UA_ExpandedNodeId_clear(id);
  677|  3.56k|    return res;
  678|  3.56k|}
UA_QualifiedName_parseEx:
  831|  24.2k|                         const UA_NamespaceMapping *nsMapping) {
  832|  24.2k|    const u8 *pos = str.data;
  833|  24.2k|    const u8 *end = str.data + str.length;
  834|  24.2k|    UA_StatusCode res = parse_qn(qn, pos, end, UA_ESCAPING_NONE, nsMapping, 0);
  835|  24.2k|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  24.2k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (835:8): [True: 1, False: 24.2k]
  ------------------
  836|      1|        UA_QualifiedName_clear(qn);
  837|  24.2k|    return res;
  838|  24.2k|}
ua_types_lex.c:parse_guid:
   50|     86|parse_guid(UA_Guid *guid, const UA_Byte *s, const UA_Byte *e) {
   51|     86|    size_t len = (size_t)(e - s);
   52|     86|    if(len != 36 || s[8] != '-' || s[13] != '-' || s[23] != '-')
  ------------------
  |  Branch (52:8): [True: 25, False: 61]
  |  Branch (52:21): [True: 9, False: 52]
  |  Branch (52:36): [True: 4, False: 48]
  |  Branch (52:52): [True: 3, False: 45]
  ------------------
   53|     41|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     41|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   54|       |
   55|     45|    UA_UInt32 tmp;
   56|     45|    if(UA_readNumberWithBase(s, 8, &tmp, 16) != 8)
  ------------------
  |  Branch (56:8): [True: 9, False: 36]
  ------------------
   57|      9|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      9|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   58|     36|    guid->data1 = tmp;
   59|       |
   60|     36|    if(UA_readNumberWithBase(&s[9], 4, &tmp, 16) != 4)
  ------------------
  |  Branch (60:8): [True: 5, False: 31]
  ------------------
   61|      5|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      5|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   62|     31|    guid->data2 = (UA_UInt16)tmp;
   63|       |
   64|     31|    if(UA_readNumberWithBase(&s[14], 4, &tmp, 16) != 4)
  ------------------
  |  Branch (64:8): [True: 4, False: 27]
  ------------------
   65|      4|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      4|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   66|     27|    guid->data3 = (UA_UInt16)tmp;
   67|       |
   68|     27|    if(UA_readNumberWithBase(&s[19], 2, &tmp, 16) != 2)
  ------------------
  |  Branch (68:8): [True: 4, False: 23]
  ------------------
   69|      4|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      4|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   70|     23|    guid->data4[0] = (UA_Byte)tmp;
   71|       |
   72|     23|    if(UA_readNumberWithBase(&s[21], 2, &tmp, 16) != 2)
  ------------------
  |  Branch (72:8): [True: 4, False: 19]
  ------------------
   73|      4|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      4|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   74|     19|    guid->data4[1] = (UA_Byte)tmp;
   75|       |
   76|     94|    for(size_t pos = 2, spos = 24; pos < 8; pos++, spos += 2) {
  ------------------
  |  Branch (76:36): [True: 86, False: 8]
  ------------------
   77|     86|        if(UA_readNumberWithBase(&s[spos], 2, &tmp, 16) != 2)
  ------------------
  |  Branch (77:12): [True: 11, False: 75]
  ------------------
   78|     11|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     11|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   79|     75|        guid->data4[pos] = (UA_Byte)tmp;
   80|     75|    }
   81|       |
   82|      8|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      8|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
   83|     19|}
ua_types_lex.c:parse_nodeid:
  148|  31.0k|             UA_Escaping idEsc, const UA_NamespaceMapping *nsMapping) {
  149|  31.0k|    *id = UA_NODEID_NULL; /* Reset the NodeId */
  150|  31.0k|    LexContext context;
  151|  31.0k|    memset(&context, 0, sizeof(LexContext));
  152|  31.0k|    UA_Byte *begin = (UA_Byte*)(uintptr_t)pos;
  153|  31.0k|    const u8 *ns = NULL, *nsu = NULL, *body = NULL;
  154|       |
  155|       |    
  156|  31.0k|{
  157|  31.0k|	u8 yych;
  158|  31.0k|	yych = YYPEEK();
  ------------------
  |  |   33|  31.0k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  31.0k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  30.3k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 30.3k, False: 717]
  |  |  ------------------
  ------------------
  159|  31.0k|	switch (yych) {
  160|    526|		case 'b':
  ------------------
  |  Branch (160:3): [True: 526, False: 30.5k]
  ------------------
  161|    556|		case 'g':
  ------------------
  |  Branch (161:3): [True: 30, False: 31.0k]
  ------------------
  162|  18.9k|		case 'i':
  ------------------
  |  Branch (162:3): [True: 18.3k, False: 12.7k]
  ------------------
  163|  28.0k|		case 's':
  ------------------
  |  Branch (163:3): [True: 9.16k, False: 21.9k]
  ------------------
  164|  28.0k|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|  28.0k|#define YYSTAGN(t) t = NULL
  ------------------
  165|  28.0k|			YYSTAGN(context.yyt2);
  ------------------
  |  |   39|  28.0k|#define YYSTAGN(t) t = NULL
  ------------------
  166|  28.0k|			goto yy3;
  167|  1.63k|		case 'n': goto yy4;
  ------------------
  |  Branch (167:3): [True: 1.63k, False: 29.4k]
  ------------------
  168|  1.38k|		default: goto yy1;
  ------------------
  |  Branch (168:3): [True: 1.38k, False: 29.7k]
  ------------------
  169|  31.0k|	}
  170|  1.38k|yy1:
  171|  1.38k|	YYSKIP();
  ------------------
  |  |   35|  1.38k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.38k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  172|  1.63k|yy2:
  173|  1.63k|	{ (void)pos; return UA_STATUSCODE_BADDECODINGERROR; }
  ------------------
  |  |   44|  1.63k|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  174|  28.0k|yy3:
  175|  28.0k|	YYSKIP();
  ------------------
  |  |   35|  28.0k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  28.0k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  176|  28.0k|	yych = YYPEEK();
  ------------------
  |  |   33|  28.0k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  28.0k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  28.0k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 28.0k, False: 14]
  |  |  ------------------
  ------------------
  177|  28.0k|	switch (yych) {
  178|  28.0k|		case '=': goto yy5;
  ------------------
  |  Branch (178:3): [True: 28.0k, False: 25]
  ------------------
  179|     25|		default: goto yy2;
  ------------------
  |  Branch (179:3): [True: 25, False: 28.0k]
  ------------------
  180|  28.0k|	}
  181|  1.63k|yy4:
  182|  1.63k|	YYSKIP();
  ------------------
  |  |   35|  1.63k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.63k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  183|  1.63k|	YYBACKUP();
  ------------------
  |  |   36|  1.63k|#define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   32|  1.63k|#define YYMARKER context.marker
  |  |  ------------------
  |  |               #define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|  1.63k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  184|  1.63k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.63k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.63k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.62k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.62k, False: 3]
  |  |  ------------------
  ------------------
  185|  1.63k|	switch (yych) {
  186|  1.61k|		case 's': goto yy6;
  ------------------
  |  Branch (186:3): [True: 1.61k, False: 18]
  ------------------
  187|     18|		default: goto yy2;
  ------------------
  |  Branch (187:3): [True: 18, False: 1.61k]
  ------------------
  188|  1.63k|	}
  189|  29.4k|yy5:
  190|  29.4k|	YYSKIP();
  ------------------
  |  |   35|  29.4k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  29.4k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  191|  29.4k|	nsu = context.yyt2;
  192|  29.4k|	ns = context.yyt1;
  193|  29.4k|	YYSTAGP(body);
  ------------------
  |  |   38|  29.4k|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|  29.4k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  194|  29.4k|	YYSHIFTSTAG(body, -2);
  ------------------
  |  |   40|  29.4k|#define YYSHIFTSTAG(t, shift) t += shift
  ------------------
  195|  29.4k|	{ goto match; }
  196|  1.61k|yy6:
  197|  1.61k|	YYSKIP();
  ------------------
  |  |   35|  1.61k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.61k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  198|  1.61k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.61k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.61k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.60k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.60k, False: 5]
  |  |  ------------------
  ------------------
  199|  1.61k|	switch (yych) {
  200|    711|		case '=': goto yy8;
  ------------------
  |  Branch (200:3): [True: 711, False: 901]
  ------------------
  201|    896|		case 'u': goto yy9;
  ------------------
  |  Branch (201:3): [True: 896, False: 716]
  ------------------
  202|      5|		default: goto yy7;
  ------------------
  |  Branch (202:3): [True: 5, False: 1.60k]
  ------------------
  203|  1.61k|	}
  204|    211|yy7:
  205|    211|	YYRESTORE();
  ------------------
  |  |   37|    211|#define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   31|    211|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   32|    211|#define YYMARKER context.marker
  |  |  ------------------
  ------------------
  206|    211|	goto yy2;
  207|    711|yy8:
  208|    711|	YYSKIP();
  ------------------
  |  |   35|    711|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    711|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  209|    711|	yych = YYPEEK();
  ------------------
  |  |   33|    711|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    711|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    708|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 708, False: 3]
  |  |  ------------------
  ------------------
  210|    711|	switch (yych) {
  211|    238|		case '0':
  ------------------
  |  Branch (211:3): [True: 238, False: 473]
  ------------------
  212|    355|		case '1':
  ------------------
  |  Branch (212:3): [True: 117, False: 594]
  ------------------
  213|    438|		case '2':
  ------------------
  |  Branch (213:3): [True: 83, False: 628]
  ------------------
  214|    461|		case '3':
  ------------------
  |  Branch (214:3): [True: 23, False: 688]
  ------------------
  215|    488|		case '4':
  ------------------
  |  Branch (215:3): [True: 27, False: 684]
  ------------------
  216|    543|		case '5':
  ------------------
  |  Branch (216:3): [True: 55, False: 656]
  ------------------
  217|    621|		case '6':
  ------------------
  |  Branch (217:3): [True: 78, False: 633]
  ------------------
  218|    651|		case '7':
  ------------------
  |  Branch (218:3): [True: 30, False: 681]
  ------------------
  219|    690|		case '8':
  ------------------
  |  Branch (219:3): [True: 39, False: 672]
  ------------------
  220|    700|		case '9':
  ------------------
  |  Branch (220:3): [True: 10, False: 701]
  ------------------
  221|    700|			YYSTAGP(context.yyt1);
  ------------------
  |  |   38|    700|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    700|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  222|    700|			goto yy10;
  223|     11|		default: goto yy7;
  ------------------
  |  Branch (223:3): [True: 11, False: 700]
  ------------------
  224|    711|	}
  225|    896|yy9:
  226|    896|	YYSKIP();
  ------------------
  |  |   35|    896|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    896|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  227|    896|	yych = YYPEEK();
  ------------------
  |  |   33|    896|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    896|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    892|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 892, False: 4]
  |  |  ------------------
  ------------------
  228|    896|	switch (yych) {
  229|    877|		case '=': goto yy11;
  ------------------
  |  Branch (229:3): [True: 877, False: 19]
  ------------------
  230|     19|		default: goto yy7;
  ------------------
  |  Branch (230:3): [True: 19, False: 877]
  ------------------
  231|    896|	}
  232|  3.83k|yy10:
  233|  3.83k|	YYSKIP();
  ------------------
  |  |   35|  3.83k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  3.83k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  234|  3.83k|	yych = YYPEEK();
  ------------------
  |  |   33|  3.83k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  3.83k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  3.73k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 3.73k, False: 105]
  |  |  ------------------
  ------------------
  235|  3.83k|	switch (yych) {
  236|    555|		case '0':
  ------------------
  |  Branch (236:3): [True: 555, False: 3.28k]
  ------------------
  237|    844|		case '1':
  ------------------
  |  Branch (237:3): [True: 289, False: 3.54k]
  ------------------
  238|  1.13k|		case '2':
  ------------------
  |  Branch (238:3): [True: 287, False: 3.55k]
  ------------------
  239|  1.43k|		case '3':
  ------------------
  |  Branch (239:3): [True: 305, False: 3.53k]
  ------------------
  240|  1.67k|		case '4':
  ------------------
  |  Branch (240:3): [True: 238, False: 3.60k]
  ------------------
  241|  1.89k|		case '5':
  ------------------
  |  Branch (241:3): [True: 223, False: 3.61k]
  ------------------
  242|  2.19k|		case '6':
  ------------------
  |  Branch (242:3): [True: 298, False: 3.54k]
  ------------------
  243|  2.45k|		case '7':
  ------------------
  |  Branch (243:3): [True: 257, False: 3.58k]
  ------------------
  244|  2.80k|		case '8':
  ------------------
  |  Branch (244:3): [True: 350, False: 3.48k]
  ------------------
  245|  3.13k|		case '9': goto yy10;
  ------------------
  |  Branch (245:3): [True: 336, False: 3.50k]
  ------------------
  246|    595|		case ';':
  ------------------
  |  Branch (246:3): [True: 595, False: 3.24k]
  ------------------
  247|    595|			YYSTAGN(context.yyt2);
  ------------------
  |  |   39|    595|#define YYSTAGN(t) t = NULL
  ------------------
  248|    595|			goto yy12;
  249|    105|		default: goto yy7;
  ------------------
  |  Branch (249:3): [True: 105, False: 3.73k]
  ------------------
  250|  3.83k|	}
  251|    877|yy11:
  252|    877|	YYSKIP();
  ------------------
  |  |   35|    877|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    877|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  253|    877|	yych = YYPEEK();
  ------------------
  |  |   33|    877|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    877|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    873|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 873, False: 4]
  |  |  ------------------
  ------------------
  254|    877|	switch (yych) {
  255|      4|		case 0x00: goto yy7;
  ------------------
  |  Branch (255:3): [True: 4, False: 873]
  ------------------
  256|    518|		case ';':
  ------------------
  |  Branch (256:3): [True: 518, False: 359]
  ------------------
  257|    518|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|    518|#define YYSTAGN(t) t = NULL
  ------------------
  258|    518|			YYSTAGP(context.yyt2);
  ------------------
  |  |   38|    518|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    518|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  259|    518|			goto yy12;
  260|    355|		default:
  ------------------
  |  Branch (260:3): [True: 355, False: 522]
  ------------------
  261|    355|			YYSTAGP(context.yyt2);
  ------------------
  |  |   38|    355|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    355|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  262|    355|			goto yy13;
  263|    877|	}
  264|  1.45k|yy12:
  265|  1.45k|	YYSKIP();
  ------------------
  |  |   35|  1.45k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.45k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  266|  1.45k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.45k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.45k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.43k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.43k, False: 17]
  |  |  ------------------
  ------------------
  267|  1.45k|	switch (yych) {
  268|    197|		case 'b':
  ------------------
  |  Branch (268:3): [True: 197, False: 1.25k]
  ------------------
  269|    398|		case 'g':
  ------------------
  |  Branch (269:3): [True: 201, False: 1.25k]
  ------------------
  270|    602|		case 'i':
  ------------------
  |  Branch (270:3): [True: 204, False: 1.25k]
  ------------------
  271|  1.43k|		case 's': goto yy14;
  ------------------
  |  Branch (271:3): [True: 835, False: 620]
  ------------------
  272|     18|		default: goto yy7;
  ------------------
  |  Branch (272:3): [True: 18, False: 1.43k]
  ------------------
  273|  1.45k|	}
  274|  1.83k|yy13:
  275|  1.83k|	YYSKIP();
  ------------------
  |  |   35|  1.83k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.83k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  276|  1.83k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.83k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.83k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.81k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.81k, False: 13]
  |  |  ------------------
  ------------------
  277|  1.83k|	switch (yych) {
  278|     13|		case 0x00: goto yy7;
  ------------------
  |  Branch (278:3): [True: 13, False: 1.81k]
  ------------------
  279|    342|		case ';':
  ------------------
  |  Branch (279:3): [True: 342, False: 1.48k]
  ------------------
  280|    342|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|    342|#define YYSTAGN(t) t = NULL
  ------------------
  281|    342|			goto yy12;
  282|  1.47k|		default: goto yy13;
  ------------------
  |  Branch (282:3): [True: 1.47k, False: 355]
  ------------------
  283|  1.83k|	}
  284|  1.43k|yy14:
  285|  1.43k|	YYSKIP();
  ------------------
  |  |   35|  1.43k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.43k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  286|  1.43k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.43k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.43k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.41k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.41k, False: 27]
  |  |  ------------------
  ------------------
  287|  1.43k|	switch (yych) {
  288|  1.40k|		case '=': goto yy5;
  ------------------
  |  Branch (288:3): [True: 1.40k, False: 36]
  ------------------
  289|     36|		default: goto yy7;
  ------------------
  |  Branch (289:3): [True: 36, False: 1.40k]
  ------------------
  290|  1.43k|	}
  291|  1.43k|}
  292|       |
  293|       |
  294|  29.4k| match:
  295|  29.4k|    if(nsu) {
  ------------------
  |  Branch (295:8): [True: 823, False: 28.6k]
  ------------------
  296|       |        /* NamespaceUri */
  297|    823|        UA_String nsUri = {(size_t)(body - 1 - nsu), (UA_Byte*)(uintptr_t)nsu};
  298|    823|        UA_StatusCode res = escapedUri2Index(nsUri, &id->namespaceIndex, nsMapping);
  299|    823|        if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|    823|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (299:12): [True: 823, False: 0]
  ------------------
  300|       |            /* Return the entire NodeId string s=... */
  301|    823|            UA_String total = {(size_t)((const UA_Byte*)end - begin), begin};
  302|    823|            id->identifierType = UA_NODEIDTYPE_STRING;
  303|    823|            return UA_String_copy(&total, &id->identifier.string);
  304|    823|        }
  305|  28.6k|    } else if(ns) {
  ------------------
  |  Branch (305:15): [True: 578, False: 28.0k]
  ------------------
  306|       |        /* NamespaceIndex */
  307|    578|        UA_UInt32 tmp;
  308|    578|        size_t len = (size_t)(body - 1 - ns);
  309|    578|        if(UA_readNumber((const UA_Byte*)ns, len, &tmp) != len)
  ------------------
  |  Branch (309:12): [True: 0, False: 578]
  ------------------
  310|      0|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  311|    578|        id->namespaceIndex = (UA_UInt16)tmp;
  312|    578|        if(nsMapping)
  ------------------
  |  Branch (312:12): [True: 0, False: 578]
  ------------------
  313|      0|            id->namespaceIndex =
  314|      0|                UA_NamespaceMapping_remote2Local(nsMapping, id->namespaceIndex);
  315|    578|    }
  316|       |
  317|       |    /* From the current position until the end */
  318|  28.6k|    return parse_nodeid_body(id, body, end, idEsc);
  319|  29.4k|}
ua_types_lex.c:escapedUri2Index:
   95|  1.74k|                 const UA_NamespaceMapping *nsMapping) {
   96|  1.74k|    if(!nsMapping)
  ------------------
  |  Branch (96:8): [True: 1.74k, False: 0]
  ------------------
   97|  1.74k|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|  1.74k|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   98|      0|    UA_String tmp = uri; 
   99|      0|    status res = UA_String_unescape(&uri, true, UA_ESCAPING_PERCENT);
  100|      0|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (100:8): [True: 0, False: 0]
  ------------------
  101|      0|        return res;
  102|      0|    res = UA_NamespaceMapping_uri2Index(nsMapping, uri, nsIndex);
  103|      0|    if(tmp.data != uri.data)
  ------------------
  |  Branch (103:8): [True: 0, False: 0]
  ------------------
  104|      0|        UA_String_clear(&uri);
  105|      0|    return res;
  106|      0|}
ua_types_lex.c:parse_nodeid_body:
  109|  30.7k|parse_nodeid_body(UA_NodeId *id, const u8 *body, const u8 *end, UA_Escaping esc) {
  110|  30.7k|    UA_StatusCode res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  30.7k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  111|  30.7k|    UA_String str = {(size_t)(end - (body+2)), (UA_Byte*)(uintptr_t)body + 2};
  112|  30.7k|    switch(*body) {
  113|  18.9k|    case 'i':
  ------------------
  |  Branch (113:5): [True: 18.9k, False: 11.7k]
  ------------------
  114|  18.9k|        id->identifierType = UA_NODEIDTYPE_NUMERIC;
  115|  18.9k|        if(UA_readNumber(str.data, str.length, &id->identifier.numeric) != str.length)
  ------------------
  |  Branch (115:12): [True: 59, False: 18.8k]
  ------------------
  116|     59|            res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     59|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  117|  18.9k|        break;
  118|  10.6k|    case 's':
  ------------------
  |  Branch (118:5): [True: 10.6k, False: 20.0k]
  ------------------
  119|  10.6k|        id->identifierType = UA_NODEIDTYPE_STRING;
  120|  10.6k|        res |= UA_String_copy(&str, &id->identifier.string);
  121|  10.6k|        res |= UA_String_unescape(&id->identifier.string, false, esc);
  122|  10.6k|        break;
  123|     27|    case 'g':
  ------------------
  |  Branch (123:5): [True: 27, False: 30.6k]
  ------------------
  124|     27|        id->identifierType = UA_NODEIDTYPE_GUID;
  125|     27|        res = parse_guid(&id->identifier.guid, str.data, end);
  126|     27|        break;
  127|  1.07k|    case 'b':
  ------------------
  |  Branch (127:5): [True: 1.07k, False: 29.6k]
  ------------------
  128|       |        /* For percent-escaping, base64url bytestring encoding is used. That
  129|       |         * doesn't need to be escaped here. The and-escaping is not applied to
  130|       |         * the NodeId identifier part. */
  131|  1.07k|        id->identifierType = UA_NODEIDTYPE_BYTESTRING;
  132|  1.07k|        id->identifier.byteString.data =
  133|  1.07k|            UA_unbase64(str.data, str.length, &id->identifier.byteString.length);
  134|  1.07k|        if(!id->identifier.byteString.data) {
  ------------------
  |  Branch (134:12): [True: 25, False: 1.05k]
  ------------------
  135|     25|            UA_assert(id->identifier.byteString.length == 0);
  ------------------
  |  |  400|     25|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (135:13): [True: 25, False: 0]
  ------------------
  136|     25|            res = UA_STATUSCODE_BADDECODINGERROR; /* Returned on error by UA_unbase64 */
  ------------------
  |  |   44|     25|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  137|     25|        }
  138|  1.07k|        break;
  139|  1.07k|    default:
  ------------------
  |  Branch (139:5): [True: 0, False: 30.7k]
  ------------------
  140|      0|        res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  141|      0|        break;
  142|  30.7k|    }
  143|  30.7k|    return res;
  144|  30.7k|}
ua_types_lex.c:parse_expandednodeid:
  339|  3.56k|                     size_t serverUrisSize, const UA_String *serverUris) {
  340|  3.56k|    *id = UA_EXPANDEDNODEID_NULL; /* Reset the NodeId */
  341|  3.56k|    LexContext context;
  342|  3.56k|    memset(&context, 0, sizeof(LexContext));
  343|  3.56k|    const u8 *svr = NULL, *sve = NULL, *svu = NULL,
  344|  3.56k|        *nsu = NULL, *ns = NULL, *body = NULL, *begin = pos;
  345|       |
  346|       |    
  347|  3.56k|{
  348|  3.56k|	u8 yych;
  349|  3.56k|	yych = YYPEEK();
  ------------------
  |  |   33|  3.56k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  3.56k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  3.55k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 3.55k, False: 5]
  |  |  ------------------
  ------------------
  350|  3.56k|	switch (yych) {
  351|    220|		case 'b':
  ------------------
  |  Branch (351:3): [True: 220, False: 3.34k]
  ------------------
  352|    225|		case 'g':
  ------------------
  |  Branch (352:3): [True: 5, False: 3.55k]
  ------------------
  353|    450|		case 'i':
  ------------------
  |  Branch (353:3): [True: 225, False: 3.33k]
  ------------------
  354|    450|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|    450|#define YYSTAGN(t) t = NULL
  ------------------
  355|    450|			YYSTAGN(context.yyt2);
  ------------------
  |  |   39|    450|#define YYSTAGN(t) t = NULL
  ------------------
  356|    450|			YYSTAGN(context.yyt3);
  ------------------
  |  |   39|    450|#define YYSTAGN(t) t = NULL
  ------------------
  357|    450|			YYSTAGN(context.yyt4);
  ------------------
  |  |   39|    450|#define YYSTAGN(t) t = NULL
  ------------------
  358|    450|			YYSTAGN(context.yyt5);
  ------------------
  |  |   39|    450|#define YYSTAGN(t) t = NULL
  ------------------
  359|    450|			goto yy18;
  360|  1.18k|		case 'n':
  ------------------
  |  Branch (360:3): [True: 1.18k, False: 2.38k]
  ------------------
  361|  1.18k|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|  1.18k|#define YYSTAGN(t) t = NULL
  ------------------
  362|  1.18k|			YYSTAGN(context.yyt2);
  ------------------
  |  |   39|  1.18k|#define YYSTAGN(t) t = NULL
  ------------------
  363|  1.18k|			YYSTAGN(context.yyt5);
  ------------------
  |  |   39|  1.18k|#define YYSTAGN(t) t = NULL
  ------------------
  364|  1.18k|			goto yy19;
  365|  1.92k|		case 's':
  ------------------
  |  Branch (365:3): [True: 1.92k, False: 1.63k]
  ------------------
  366|  1.92k|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|  1.92k|#define YYSTAGN(t) t = NULL
  ------------------
  367|  1.92k|			YYSTAGN(context.yyt2);
  ------------------
  |  |   39|  1.92k|#define YYSTAGN(t) t = NULL
  ------------------
  368|  1.92k|			YYSTAGN(context.yyt3);
  ------------------
  |  |   39|  1.92k|#define YYSTAGN(t) t = NULL
  ------------------
  369|  1.92k|			YYSTAGN(context.yyt4);
  ------------------
  |  |   39|  1.92k|#define YYSTAGN(t) t = NULL
  ------------------
  370|  1.92k|			YYSTAGN(context.yyt5);
  ------------------
  |  |   39|  1.92k|#define YYSTAGN(t) t = NULL
  ------------------
  371|  1.92k|			goto yy20;
  372|      6|		default: goto yy16;
  ------------------
  |  Branch (372:3): [True: 6, False: 3.55k]
  ------------------
  373|  3.56k|	}
  374|      6|yy16:
  375|      6|	YYSKIP();
  ------------------
  |  |   35|      6|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|      6|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  376|    472|yy17:
  377|    472|	{ (void)pos; return UA_STATUSCODE_BADDECODINGERROR; }
  ------------------
  |  |   44|    472|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  378|    450|yy18:
  379|    450|	YYSKIP();
  ------------------
  |  |   35|    450|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    450|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  380|    450|	yych = YYPEEK();
  ------------------
  |  |   33|    450|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    450|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    440|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 440, False: 10]
  |  |  ------------------
  ------------------
  381|    450|	switch (yych) {
  382|    423|		case '=': goto yy21;
  ------------------
  |  Branch (382:3): [True: 423, False: 27]
  ------------------
  383|     27|		default: goto yy17;
  ------------------
  |  Branch (383:3): [True: 27, False: 423]
  ------------------
  384|    450|	}
  385|  1.18k|yy19:
  386|  1.18k|	YYSKIP();
  ------------------
  |  |   35|  1.18k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.18k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  387|  1.18k|	YYBACKUP();
  ------------------
  |  |   36|  1.18k|#define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   32|  1.18k|#define YYMARKER context.marker
  |  |  ------------------
  |  |               #define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|  1.18k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  388|  1.18k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.18k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.18k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.18k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.18k, False: 1]
  |  |  ------------------
  ------------------
  389|  1.18k|	switch (yych) {
  390|  1.16k|		case 's': goto yy22;
  ------------------
  |  Branch (390:3): [True: 1.16k, False: 14]
  ------------------
  391|     14|		default: goto yy17;
  ------------------
  |  Branch (391:3): [True: 14, False: 1.16k]
  ------------------
  392|  1.18k|	}
  393|  1.92k|yy20:
  394|  1.92k|	YYSKIP();
  ------------------
  |  |   35|  1.92k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.92k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  395|  1.92k|	YYBACKUP();
  ------------------
  |  |   36|  1.92k|#define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   32|  1.92k|#define YYMARKER context.marker
  |  |  ------------------
  |  |               #define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|  1.92k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  396|  1.92k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.92k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.92k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.92k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.92k, False: 2]
  |  |  ------------------
  ------------------
  397|  1.92k|	switch (yych) {
  398|    206|		case '=': goto yy21;
  ------------------
  |  Branch (398:3): [True: 206, False: 1.71k]
  ------------------
  399|  1.71k|		case 'v': goto yy24;
  ------------------
  |  Branch (399:3): [True: 1.71k, False: 208]
  ------------------
  400|      2|		default: goto yy17;
  ------------------
  |  Branch (400:3): [True: 2, False: 1.92k]
  ------------------
  401|  1.92k|	}
  402|  3.09k|yy21:
  403|  3.09k|	YYSKIP();
  ------------------
  |  |   35|  3.09k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  3.09k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  404|  3.09k|	svr = context.yyt5;
  405|  3.09k|	svu = context.yyt1;
  406|  3.09k|	sve = context.yyt2;
  407|  3.09k|	ns = context.yyt3;
  408|  3.09k|	nsu = context.yyt4;
  409|  3.09k|	YYSTAGP(body);
  ------------------
  |  |   38|  3.09k|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|  3.09k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  410|  3.09k|	YYSHIFTSTAG(body, -2);
  ------------------
  |  |   40|  3.09k|#define YYSHIFTSTAG(t, shift) t += shift
  ------------------
  411|  3.09k|	{ goto match; }
  412|  1.63k|yy22:
  413|  1.63k|	YYSKIP();
  ------------------
  |  |   35|  1.63k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.63k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  414|  1.63k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.63k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.63k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.62k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.62k, False: 7]
  |  |  ------------------
  ------------------
  415|  1.63k|	switch (yych) {
  416|    395|		case '=': goto yy25;
  ------------------
  |  Branch (416:3): [True: 395, False: 1.23k]
  ------------------
  417|  1.22k|		case 'u': goto yy26;
  ------------------
  |  Branch (417:3): [True: 1.22k, False: 404]
  ------------------
  418|      9|		default: goto yy23;
  ------------------
  |  Branch (418:3): [True: 9, False: 1.62k]
  ------------------
  419|  1.63k|	}
  420|    423|yy23:
  421|    423|	YYRESTORE();
  ------------------
  |  |   37|    423|#define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   31|    423|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   32|    423|#define YYMARKER context.marker
  |  |  ------------------
  ------------------
  422|    423|	goto yy17;
  423|  1.71k|yy24:
  424|  1.71k|	YYSKIP();
  ------------------
  |  |   35|  1.71k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.71k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  425|  1.71k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.71k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.71k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.71k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.71k, False: 1]
  |  |  ------------------
  ------------------
  426|  1.71k|	switch (yych) {
  427|    608|		case 'r': goto yy27;
  ------------------
  |  Branch (427:3): [True: 608, False: 1.10k]
  ------------------
  428|  1.10k|		case 'u': goto yy28;
  ------------------
  |  Branch (428:3): [True: 1.10k, False: 611]
  ------------------
  429|      3|		default: goto yy23;
  ------------------
  |  Branch (429:3): [True: 3, False: 1.71k]
  ------------------
  430|  1.71k|	}
  431|    395|yy25:
  432|    395|	YYSKIP();
  ------------------
  |  |   35|    395|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    395|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  433|    395|	yych = YYPEEK();
  ------------------
  |  |   33|    395|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    395|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    394|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 394, False: 1]
  |  |  ------------------
  ------------------
  434|    395|	switch (yych) {
  435|    153|		case '0':
  ------------------
  |  Branch (435:3): [True: 153, False: 242]
  ------------------
  436|    190|		case '1':
  ------------------
  |  Branch (436:3): [True: 37, False: 358]
  ------------------
  437|    209|		case '2':
  ------------------
  |  Branch (437:3): [True: 19, False: 376]
  ------------------
  438|    238|		case '3':
  ------------------
  |  Branch (438:3): [True: 29, False: 366]
  ------------------
  439|    258|		case '4':
  ------------------
  |  Branch (439:3): [True: 20, False: 375]
  ------------------
  440|    276|		case '5':
  ------------------
  |  Branch (440:3): [True: 18, False: 377]
  ------------------
  441|    367|		case '6':
  ------------------
  |  Branch (441:3): [True: 91, False: 304]
  ------------------
  442|    377|		case '7':
  ------------------
  |  Branch (442:3): [True: 10, False: 385]
  ------------------
  443|    386|		case '8':
  ------------------
  |  Branch (443:3): [True: 9, False: 386]
  ------------------
  444|    390|		case '9':
  ------------------
  |  Branch (444:3): [True: 4, False: 391]
  ------------------
  445|    390|			YYSTAGP(context.yyt3);
  ------------------
  |  |   38|    390|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    390|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  446|    390|			goto yy29;
  447|      5|		default: goto yy23;
  ------------------
  |  Branch (447:3): [True: 5, False: 390]
  ------------------
  448|    395|	}
  449|  1.22k|yy26:
  450|  1.22k|	YYSKIP();
  ------------------
  |  |   35|  1.22k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.22k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  451|  1.22k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.22k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.22k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.22k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.22k, False: 1]
  |  |  ------------------
  ------------------
  452|  1.22k|	switch (yych) {
  453|  1.21k|		case '=': goto yy30;
  ------------------
  |  Branch (453:3): [True: 1.21k, False: 12]
  ------------------
  454|     12|		default: goto yy23;
  ------------------
  |  Branch (454:3): [True: 12, False: 1.21k]
  ------------------
  455|  1.22k|	}
  456|    608|yy27:
  457|    608|	YYSKIP();
  ------------------
  |  |   35|    608|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    608|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  458|    608|	yych = YYPEEK();
  ------------------
  |  |   33|    608|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    608|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    607|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 607, False: 1]
  |  |  ------------------
  ------------------
  459|    608|	switch (yych) {
  460|    601|		case '=': goto yy31;
  ------------------
  |  Branch (460:3): [True: 601, False: 7]
  ------------------
  461|      7|		default: goto yy23;
  ------------------
  |  Branch (461:3): [True: 7, False: 601]
  ------------------
  462|    608|	}
  463|  1.10k|yy28:
  464|  1.10k|	YYSKIP();
  ------------------
  |  |   35|  1.10k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.10k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  465|  1.10k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.10k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.10k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.10k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.10k, False: 1]
  |  |  ------------------
  ------------------
  466|  1.10k|	switch (yych) {
  467|  1.08k|		case '=': goto yy32;
  ------------------
  |  Branch (467:3): [True: 1.08k, False: 19]
  ------------------
  468|     19|		default: goto yy23;
  ------------------
  |  Branch (468:3): [True: 19, False: 1.08k]
  ------------------
  469|  1.10k|	}
  470|  11.7k|yy29:
  471|  11.7k|	YYSKIP();
  ------------------
  |  |   35|  11.7k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  11.7k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  472|  11.7k|	yych = YYPEEK();
  ------------------
  |  |   33|  11.7k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  11.7k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  11.6k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 11.6k, False: 86]
  |  |  ------------------
  ------------------
  473|  11.7k|	switch (yych) {
  474|  8.57k|		case '0':
  ------------------
  |  Branch (474:3): [True: 8.57k, False: 3.14k]
  ------------------
  475|  8.82k|		case '1':
  ------------------
  |  Branch (475:3): [True: 245, False: 11.4k]
  ------------------
  476|  9.06k|		case '2':
  ------------------
  |  Branch (476:3): [True: 243, False: 11.4k]
  ------------------
  477|  9.42k|		case '3':
  ------------------
  |  Branch (477:3): [True: 361, False: 11.3k]
  ------------------
  478|  9.73k|		case '4':
  ------------------
  |  Branch (478:3): [True: 312, False: 11.4k]
  ------------------
  479|  9.97k|		case '5':
  ------------------
  |  Branch (479:3): [True: 237, False: 11.4k]
  ------------------
  480|  10.2k|		case '6':
  ------------------
  |  Branch (480:3): [True: 291, False: 11.4k]
  ------------------
  481|  10.5k|		case '7':
  ------------------
  |  Branch (481:3): [True: 276, False: 11.4k]
  ------------------
  482|  10.8k|		case '8':
  ------------------
  |  Branch (482:3): [True: 281, False: 11.4k]
  ------------------
  483|  11.3k|		case '9': goto yy29;
  ------------------
  |  Branch (483:3): [True: 513, False: 11.2k]
  ------------------
  484|    291|		case ';':
  ------------------
  |  Branch (484:3): [True: 291, False: 11.4k]
  ------------------
  485|    291|			YYSTAGN(context.yyt4);
  ------------------
  |  |   39|    291|#define YYSTAGN(t) t = NULL
  ------------------
  486|    291|			goto yy33;
  487|     99|		default: goto yy23;
  ------------------
  |  Branch (487:3): [True: 99, False: 11.6k]
  ------------------
  488|  11.7k|	}
  489|  1.21k|yy30:
  490|  1.21k|	YYSKIP();
  ------------------
  |  |   35|  1.21k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.21k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  491|  1.21k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.21k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.21k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.21k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.21k, False: 1]
  |  |  ------------------
  ------------------
  492|  1.21k|	switch (yych) {
  493|      1|		case 0x00: goto yy23;
  ------------------
  |  Branch (493:3): [True: 1, False: 1.21k]
  ------------------
  494|    522|		case ';':
  ------------------
  |  Branch (494:3): [True: 522, False: 694]
  ------------------
  495|    522|			YYSTAGN(context.yyt3);
  ------------------
  |  |   39|    522|#define YYSTAGN(t) t = NULL
  ------------------
  496|    522|			YYSTAGP(context.yyt4);
  ------------------
  |  |   38|    522|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    522|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  497|    522|			goto yy33;
  498|    693|		default:
  ------------------
  |  Branch (498:3): [True: 693, False: 523]
  ------------------
  499|    693|			YYSTAGP(context.yyt4);
  ------------------
  |  |   38|    693|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    693|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  500|    693|			goto yy34;
  501|  1.21k|	}
  502|    601|yy31:
  503|    601|	YYSKIP();
  ------------------
  |  |   35|    601|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    601|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  504|    601|	yych = YYPEEK();
  ------------------
  |  |   33|    601|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    601|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    600|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 600, False: 1]
  |  |  ------------------
  ------------------
  505|    601|	switch (yych) {
  506|    306|		case '0':
  ------------------
  |  Branch (506:3): [True: 306, False: 295]
  ------------------
  507|    363|		case '1':
  ------------------
  |  Branch (507:3): [True: 57, False: 544]
  ------------------
  508|    387|		case '2':
  ------------------
  |  Branch (508:3): [True: 24, False: 577]
  ------------------
  509|    422|		case '3':
  ------------------
  |  Branch (509:3): [True: 35, False: 566]
  ------------------
  510|    436|		case '4':
  ------------------
  |  Branch (510:3): [True: 14, False: 587]
  ------------------
  511|    518|		case '5':
  ------------------
  |  Branch (511:3): [True: 82, False: 519]
  ------------------
  512|    543|		case '6':
  ------------------
  |  Branch (512:3): [True: 25, False: 576]
  ------------------
  513|    572|		case '7':
  ------------------
  |  Branch (513:3): [True: 29, False: 572]
  ------------------
  514|    584|		case '8':
  ------------------
  |  Branch (514:3): [True: 12, False: 589]
  ------------------
  515|    585|		case '9':
  ------------------
  |  Branch (515:3): [True: 1, False: 600]
  ------------------
  516|    585|			YYSTAGP(context.yyt5);
  ------------------
  |  |   38|    585|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    585|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  517|    585|			goto yy35;
  518|     16|		default: goto yy23;
  ------------------
  |  Branch (518:3): [True: 16, False: 585]
  ------------------
  519|    601|	}
  520|  1.08k|yy32:
  521|  1.08k|	YYSKIP();
  ------------------
  |  |   35|  1.08k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.08k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  522|  1.08k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.08k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.08k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.08k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.08k, False: 1]
  |  |  ------------------
  ------------------
  523|  1.08k|	switch (yych) {
  524|      1|		case 0x00: goto yy23;
  ------------------
  |  Branch (524:3): [True: 1, False: 1.08k]
  ------------------
  525|    634|		case ';':
  ------------------
  |  Branch (525:3): [True: 634, False: 453]
  ------------------
  526|    634|			YYSTAGP(context.yyt1);
  ------------------
  |  |   38|    634|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    634|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  527|    634|			YYSTAGP(context.yyt2);
  ------------------
  |  |   38|    634|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    634|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  528|    634|			YYSTAGN(context.yyt5);
  ------------------
  |  |   39|    634|#define YYSTAGN(t) t = NULL
  ------------------
  529|    634|			goto yy37;
  530|    452|		default:
  ------------------
  |  Branch (530:3): [True: 452, False: 635]
  ------------------
  531|    452|			YYSTAGP(context.yyt1);
  ------------------
  |  |   38|    452|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    452|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  532|    452|			goto yy36;
  533|  1.08k|	}
  534|  1.49k|yy33:
  535|  1.49k|	YYSKIP();
  ------------------
  |  |   35|  1.49k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.49k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  536|  1.49k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.49k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.49k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.48k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.48k, False: 12]
  |  |  ------------------
  ------------------
  537|  1.49k|	switch (yych) {
  538|    214|		case 'b':
  ------------------
  |  Branch (538:3): [True: 214, False: 1.28k]
  ------------------
  539|    436|		case 'g':
  ------------------
  |  Branch (539:3): [True: 222, False: 1.27k]
  ------------------
  540|    817|		case 'i':
  ------------------
  |  Branch (540:3): [True: 381, False: 1.11k]
  ------------------
  541|  1.48k|		case 's': goto yy38;
  ------------------
  |  Branch (541:3): [True: 665, False: 832]
  ------------------
  542|     15|		default: goto yy23;
  ------------------
  |  Branch (542:3): [True: 15, False: 1.48k]
  ------------------
  543|  1.49k|	}
  544|  1.50k|yy34:
  545|  1.50k|	YYSKIP();
  ------------------
  |  |   35|  1.50k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.50k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  546|  1.50k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.50k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.50k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.49k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.49k, False: 9]
  |  |  ------------------
  ------------------
  547|  1.50k|	switch (yych) {
  548|      9|		case 0x00: goto yy23;
  ------------------
  |  Branch (548:3): [True: 9, False: 1.49k]
  ------------------
  549|    684|		case ';':
  ------------------
  |  Branch (549:3): [True: 684, False: 821]
  ------------------
  550|    684|			YYSTAGN(context.yyt3);
  ------------------
  |  |   39|    684|#define YYSTAGN(t) t = NULL
  ------------------
  551|    684|			goto yy33;
  552|    812|		default: goto yy34;
  ------------------
  |  Branch (552:3): [True: 812, False: 693]
  ------------------
  553|  1.50k|	}
  554|  52.7k|yy35:
  555|  52.7k|	YYSKIP();
  ------------------
  |  |   35|  52.7k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  52.7k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  556|  52.7k|	yych = YYPEEK();
  ------------------
  |  |   33|  52.7k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  52.7k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  52.6k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 52.6k, False: 85]
  |  |  ------------------
  ------------------
  557|  52.7k|	switch (yych) {
  558|  48.8k|		case '0':
  ------------------
  |  Branch (558:3): [True: 48.8k, False: 3.92k]
  ------------------
  559|  49.1k|		case '1':
  ------------------
  |  Branch (559:3): [True: 329, False: 52.4k]
  ------------------
  560|  49.5k|		case '2':
  ------------------
  |  Branch (560:3): [True: 361, False: 52.4k]
  ------------------
  561|  49.8k|		case '3':
  ------------------
  |  Branch (561:3): [True: 338, False: 52.4k]
  ------------------
  562|  50.1k|		case '4':
  ------------------
  |  Branch (562:3): [True: 269, False: 52.4k]
  ------------------
  563|  50.7k|		case '5':
  ------------------
  |  Branch (563:3): [True: 605, False: 52.1k]
  ------------------
  564|  51.0k|		case '6':
  ------------------
  |  Branch (564:3): [True: 290, False: 52.4k]
  ------------------
  565|  51.4k|		case '7':
  ------------------
  |  Branch (565:3): [True: 449, False: 52.3k]
  ------------------
  566|  51.7k|		case '8':
  ------------------
  |  Branch (566:3): [True: 278, False: 52.4k]
  ------------------
  567|  52.1k|		case '9': goto yy35;
  ------------------
  |  Branch (567:3): [True: 420, False: 52.3k]
  ------------------
  568|    471|		case ';':
  ------------------
  |  Branch (568:3): [True: 471, False: 52.2k]
  ------------------
  569|    471|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|    471|#define YYSTAGN(t) t = NULL
  ------------------
  570|    471|			YYSTAGP(context.yyt2);
  ------------------
  |  |   38|    471|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    471|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  571|    471|			goto yy37;
  572|    114|		default: goto yy23;
  ------------------
  |  Branch (572:3): [True: 114, False: 52.6k]
  ------------------
  573|  52.7k|	}
  574|  4.62M|yy36:
  575|  4.62M|	YYSKIP();
  ------------------
  |  |   35|  4.62M|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  4.62M|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  576|  4.62M|	yych = YYPEEK();
  ------------------
  |  |   33|  4.62M|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  4.62M|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  4.62M|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 4.62M, False: 32]
  |  |  ------------------
  ------------------
  577|  4.62M|	switch (yych) {
  578|     32|		case 0x00: goto yy23;
  ------------------
  |  Branch (578:3): [True: 32, False: 4.62M]
  ------------------
  579|    420|		case ';':
  ------------------
  |  Branch (579:3): [True: 420, False: 4.62M]
  ------------------
  580|    420|			YYSTAGP(context.yyt2);
  ------------------
  |  |   38|    420|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    420|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  581|    420|			YYSTAGN(context.yyt5);
  ------------------
  |  |   39|    420|#define YYSTAGN(t) t = NULL
  ------------------
  582|    420|			goto yy37;
  583|  4.62M|		default: goto yy36;
  ------------------
  |  Branch (583:3): [True: 4.62M, False: 452]
  ------------------
  584|  4.62M|	}
  585|  1.52k|yy37:
  586|  1.52k|	YYSKIP();
  ------------------
  |  |   35|  1.52k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.52k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  587|  1.52k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.52k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.52k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.51k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.51k, False: 13]
  |  |  ------------------
  ------------------
  588|  1.52k|	switch (yych) {
  589|    196|		case 'b':
  ------------------
  |  Branch (589:3): [True: 196, False: 1.32k]
  ------------------
  590|    445|		case 'g':
  ------------------
  |  Branch (590:3): [True: 249, False: 1.27k]
  ------------------
  591|    652|		case 'i':
  ------------------
  |  Branch (591:3): [True: 207, False: 1.31k]
  ------------------
  592|  1.03k|		case 's':
  ------------------
  |  Branch (592:3): [True: 384, False: 1.14k]
  ------------------
  593|  1.03k|			YYSTAGN(context.yyt3);
  ------------------
  |  |   39|  1.03k|#define YYSTAGN(t) t = NULL
  ------------------
  594|  1.03k|			YYSTAGN(context.yyt4);
  ------------------
  |  |   39|  1.03k|#define YYSTAGN(t) t = NULL
  ------------------
  595|  1.03k|			goto yy38;
  596|    475|		case 'n': goto yy39;
  ------------------
  |  Branch (596:3): [True: 475, False: 1.05k]
  ------------------
  597|     14|		default: goto yy23;
  ------------------
  |  Branch (597:3): [True: 14, False: 1.51k]
  ------------------
  598|  1.52k|	}
  599|  2.51k|yy38:
  600|  2.51k|	YYSKIP();
  ------------------
  |  |   35|  2.51k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  2.51k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  601|  2.51k|	yych = YYPEEK();
  ------------------
  |  |   33|  2.51k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  2.51k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  2.47k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 2.47k, False: 44]
  |  |  ------------------
  ------------------
  602|  2.51k|	switch (yych) {
  603|  2.46k|		case '=': goto yy21;
  ------------------
  |  Branch (603:3): [True: 2.46k, False: 56]
  ------------------
  604|     56|		default: goto yy23;
  ------------------
  |  Branch (604:3): [True: 56, False: 2.46k]
  ------------------
  605|  2.51k|	}
  606|    475|yy39:
  607|    475|	YYSKIP();
  ------------------
  |  |   35|    475|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    475|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  608|    475|	yych = YYPEEK();
  ------------------
  |  |   33|    475|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    475|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    474|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 474, False: 1]
  |  |  ------------------
  ------------------
  609|    475|	switch (yych) {
  610|    464|		case 's': goto yy22;
  ------------------
  |  Branch (610:3): [True: 464, False: 11]
  ------------------
  611|     11|		default: goto yy23;
  ------------------
  |  Branch (611:3): [True: 11, False: 464]
  ------------------
  612|    475|	}
  613|    475|}
  614|       |
  615|       |
  616|  3.09k| match:
  617|  3.09k|    if(svu) {
  ------------------
  |  Branch (617:8): [True: 1.00k, False: 2.08k]
  ------------------
  618|       |        /* ServerUri */
  619|  1.00k|        UA_String serverUri = {(size_t)(sve - svu), (UA_Byte*)(uintptr_t)svu};
  620|  1.00k|        size_t i = 0;
  621|  1.00k|        for(; i < serverUrisSize; i++) {
  ------------------
  |  Branch (621:15): [True: 0, False: 1.00k]
  ------------------
  622|      0|            if(UA_String_equal(&serverUri, &serverUris[i]))
  ------------------
  |  Branch (622:16): [True: 0, False: 0]
  ------------------
  623|      0|                break;
  624|      0|        }
  625|  1.00k|        if(i == serverUrisSize) {
  ------------------
  |  Branch (625:12): [True: 1.00k, False: 0]
  ------------------
  626|       |            /* The ServerUri cannot be mapped. Return the entire input as a
  627|       |             * string NodeId. */
  628|  1.00k|            UA_String total = {(size_t)(end - begin), (UA_Byte*)(uintptr_t)begin};
  629|  1.00k|            id->nodeId.identifierType = UA_NODEIDTYPE_STRING;
  630|  1.00k|            return UA_String_copy(&total, &id->nodeId.identifier.string);
  631|  1.00k|        }
  632|      0|        id->serverIndex = (UA_UInt32)i;
  633|  2.08k|    } else if(svr) {
  ------------------
  |  Branch (633:15): [True: 456, False: 1.63k]
  ------------------
  634|       |        /* ServerIndex */
  635|    456|        size_t len = (size_t)(sve - svr);
  636|    456|        if(UA_readNumber((const UA_Byte*)svr, len, &id->serverIndex) != len)
  ------------------
  |  Branch (636:12): [True: 0, False: 456]
  ------------------
  637|      0|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  638|    456|    }
  639|       |
  640|  2.08k|    if(nsu) {
  ------------------
  |  Branch (640:8): [True: 964, False: 1.12k]
  ------------------
  641|       |        /* NamespaceUri */
  642|    964|        UA_String nsuri = {(size_t)(body - 1 - nsu), (UA_Byte*)(uintptr_t)nsu};
  643|    964|        UA_StatusCode res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    964|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  644|       |        /* Try to map the NamespaceUri to its NamespaceIndex for ServerIndex == 0.
  645|       |         * If this fails, keep the full NamespaceUri. */
  646|    964|        if(id->serverIndex == 0)
  ------------------
  |  Branch (646:12): [True: 724, False: 240]
  ------------------
  647|    724|            res = escapedUri2Index(nsuri, &id->nodeId.namespaceIndex, nsMapping);
  648|    964|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    964|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (648:12): [True: 964, False: 0]
  ------------------
  649|    964|            res = UA_String_copy(&nsuri, &id->namespaceUri); /* Keep the Uri without mapping */
  650|    964|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    964|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (650:12): [True: 0, False: 964]
  ------------------
  651|      0|            return res;
  652|  1.12k|    } else if(ns) {
  ------------------
  |  Branch (652:15): [True: 280, False: 845]
  ------------------
  653|       |        /* NamespaceIndex */
  654|    280|        UA_UInt32 tmp;
  655|    280|        size_t len = (size_t)(body - 1 - ns);
  656|    280|        if(UA_readNumber((const UA_Byte*)ns, len, &tmp) != len)
  ------------------
  |  Branch (656:12): [True: 0, False: 280]
  ------------------
  657|      0|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  658|    280|        id->nodeId.namespaceIndex = (UA_UInt16)tmp;
  659|    280|        if(nsMapping)
  ------------------
  |  Branch (659:12): [True: 0, False: 280]
  ------------------
  660|      0|            id->nodeId.namespaceIndex =
  661|      0|                UA_NamespaceMapping_remote2Local(nsMapping, id->nodeId.namespaceIndex);
  662|    280|    }
  663|       |
  664|       |    /* From the current position until the end */
  665|  2.08k|    return parse_nodeid_body(&id->nodeId, body, end, idEsc);
  666|  2.08k|}
ua_types_lex.c:parse_qn:
  707|  24.2k|         UA_UInt16 defaultNamespaceIndex) {
  708|  24.2k|    size_t len;
  709|  24.2k|    UA_UInt32 tmp;
  710|  24.2k|    UA_String str;
  711|  24.2k|    UA_StatusCode res;
  712|       |
  713|  24.2k|    LexContext context;
  714|  24.2k|    memset(&context, 0, sizeof(LexContext));
  715|       |
  716|  24.2k|    const u8 *begin = pos;
  717|  24.2k|    UA_QualifiedName_init(qn);
  718|  24.2k|    qn->namespaceIndex = defaultNamespaceIndex;
  719|       |
  720|       |    
  721|  24.2k|{
  722|  24.2k|	u8 yych;
  723|  24.2k|	yych = YYPEEK();
  ------------------
  |  |   33|  24.2k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  24.2k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  22.2k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 22.2k, False: 1.97k]
  |  |  ------------------
  ------------------
  724|  24.2k|	switch (yych) {
  725|  1.97k|		case 0x00:
  ------------------
  |  Branch (725:3): [True: 1.97k, False: 22.2k]
  ------------------
  726|  2.18k|		case ';': goto yy41;
  ------------------
  |  Branch (726:3): [True: 208, False: 24.0k]
  ------------------
  727|    448|		case '0':
  ------------------
  |  Branch (727:3): [True: 448, False: 23.8k]
  ------------------
  728|    960|		case '1':
  ------------------
  |  Branch (728:3): [True: 512, False: 23.7k]
  ------------------
  729|  2.39k|		case '2':
  ------------------
  |  Branch (729:3): [True: 1.43k, False: 22.8k]
  ------------------
  730|  2.66k|		case '3':
  ------------------
  |  Branch (730:3): [True: 265, False: 23.9k]
  ------------------
  731|  6.03k|		case '4':
  ------------------
  |  Branch (731:3): [True: 3.37k, False: 20.8k]
  ------------------
  732|  7.18k|		case '5':
  ------------------
  |  Branch (732:3): [True: 1.14k, False: 23.1k]
  ------------------
  733|  17.5k|		case '6':
  ------------------
  |  Branch (733:3): [True: 10.4k, False: 13.8k]
  ------------------
  734|  18.4k|		case '7':
  ------------------
  |  Branch (734:3): [True: 854, False: 23.4k]
  ------------------
  735|  19.6k|		case '8':
  ------------------
  |  Branch (735:3): [True: 1.19k, False: 23.0k]
  ------------------
  736|  20.0k|		case '9': goto yy44;
  ------------------
  |  Branch (736:3): [True: 362, False: 23.9k]
  ------------------
  737|  2.07k|		default: goto yy43;
  ------------------
  |  Branch (737:3): [True: 2.07k, False: 22.1k]
  ------------------
  738|  24.2k|	}
  739|  2.18k|yy41:
  740|  2.18k|	YYSKIP();
  ------------------
  |  |   35|  2.18k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  2.18k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  741|  23.6k|yy42:
  742|  23.6k|	{ pos = begin; goto match_name; }
  743|  2.07k|yy43:
  744|  2.07k|	YYSKIP();
  ------------------
  |  |   35|  2.07k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  2.07k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  745|  2.07k|	YYBACKUP();
  ------------------
  |  |   36|  2.07k|#define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   32|  2.07k|#define YYMARKER context.marker
  |  |  ------------------
  |  |               #define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|  2.07k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  746|  2.07k|	yych = YYPEEK();
  ------------------
  |  |   33|  2.07k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  2.07k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.56k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.56k, False: 507]
  |  |  ------------------
  ------------------
  747|  2.07k|	if (yych <= 0x00) goto yy42;
  ------------------
  |  Branch (747:6): [True: 507, False: 1.56k]
  ------------------
  748|  1.56k|	goto yy46;
  749|  20.0k|yy44:
  750|  20.0k|	YYSKIP();
  ------------------
  |  |   35|  20.0k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  20.0k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  751|  20.0k|	YYBACKUP();
  ------------------
  |  |   36|  20.0k|#define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   32|  20.0k|#define YYMARKER context.marker
  |  |  ------------------
  |  |               #define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|  20.0k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  752|  20.0k|	yych = YYPEEK();
  ------------------
  |  |   33|  20.0k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  20.0k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  2.19k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 2.19k, False: 17.8k]
  |  |  ------------------
  ------------------
  753|  20.0k|	switch (yych) {
  754|    164|		case '0':
  ------------------
  |  Branch (754:3): [True: 164, False: 19.8k]
  ------------------
  755|    453|		case '1':
  ------------------
  |  Branch (755:3): [True: 289, False: 19.7k]
  ------------------
  756|    503|		case '2':
  ------------------
  |  Branch (756:3): [True: 50, False: 19.9k]
  ------------------
  757|    528|		case '3':
  ------------------
  |  Branch (757:3): [True: 25, False: 19.9k]
  ------------------
  758|    684|		case '4':
  ------------------
  |  Branch (758:3): [True: 156, False: 19.8k]
  ------------------
  759|    788|		case '5':
  ------------------
  |  Branch (759:3): [True: 104, False: 19.9k]
  ------------------
  760|    853|		case '6':
  ------------------
  |  Branch (760:3): [True: 65, False: 19.9k]
  ------------------
  761|    920|		case '7':
  ------------------
  |  Branch (761:3): [True: 67, False: 19.9k]
  ------------------
  762|  1.09k|		case '8':
  ------------------
  |  Branch (762:3): [True: 178, False: 19.8k]
  ------------------
  763|  1.15k|		case '9':
  ------------------
  |  Branch (763:3): [True: 57, False: 19.9k]
  ------------------
  764|  1.38k|		case ':': goto yy50;
  ------------------
  |  Branch (764:3): [True: 230, False: 19.7k]
  ------------------
  765|  18.6k|		default: goto yy42;
  ------------------
  |  Branch (765:3): [True: 18.6k, False: 1.38k]
  ------------------
  766|  20.0k|	}
  767|   168k|yy45:
  768|   168k|	YYSKIP();
  ------------------
  |  |   35|   168k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|   168k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  769|   168k|	yych = YYPEEK();
  ------------------
  |  |   33|   168k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|   168k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|   166k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 166k, False: 1.36k]
  |  |  ------------------
  ------------------
  770|   169k|yy46:
  771|   169k|	switch (yych) {
  772|  1.36k|		case 0x00: goto yy47;
  ------------------
  |  Branch (772:3): [True: 1.36k, False: 168k]
  ------------------
  773|    201|		case ';': goto yy48;
  ------------------
  |  Branch (773:3): [True: 201, False: 169k]
  ------------------
  774|   168k|		default: goto yy45;
  ------------------
  |  Branch (774:3): [True: 168k, False: 1.56k]
  ------------------
  775|   169k|	}
  776|  2.34k|yy47:
  777|  2.34k|	YYRESTORE();
  ------------------
  |  |   37|  2.34k|#define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   31|  2.34k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   32|  2.34k|#define YYMARKER context.marker
  |  |  ------------------
  ------------------
  778|  2.34k|	goto yy42;
  779|    201|yy48:
  780|    201|	YYSKIP();
  ------------------
  |  |   35|    201|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    201|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  781|    201|	{ goto match_uri; }
  782|   110k|yy49:
  783|   110k|	YYSKIP();
  ------------------
  |  |   35|   110k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|   110k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  784|   110k|	yych = YYPEEK();
  ------------------
  |  |   33|   110k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|   110k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|   110k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 110k, False: 745]
  |  |  ------------------
  ------------------
  785|   112k|yy50:
  786|   112k|	switch (yych) {
  787|  72.9k|		case '0':
  ------------------
  |  Branch (787:3): [True: 72.9k, False: 39.4k]
  ------------------
  788|  90.0k|		case '1':
  ------------------
  |  Branch (788:3): [True: 17.1k, False: 95.2k]
  ------------------
  789|   104k|		case '2':
  ------------------
  |  Branch (789:3): [True: 14.3k, False: 98.0k]
  ------------------
  790|   104k|		case '3':
  ------------------
  |  Branch (790:3): [True: 269, False: 112k]
  ------------------
  791|   105k|		case '4':
  ------------------
  |  Branch (791:3): [True: 399, False: 111k]
  ------------------
  792|   108k|		case '5':
  ------------------
  |  Branch (792:3): [True: 3.92k, False: 108k]
  ------------------
  793|   109k|		case '6':
  ------------------
  |  Branch (793:3): [True: 408, False: 111k]
  ------------------
  794|   109k|		case '7':
  ------------------
  |  Branch (794:3): [True: 318, False: 112k]
  ------------------
  795|   110k|		case '8':
  ------------------
  |  Branch (795:3): [True: 819, False: 111k]
  ------------------
  796|   110k|		case '9': goto yy49;
  ------------------
  |  Branch (796:3): [True: 463, False: 111k]
  ------------------
  797|    403|		case ':': goto yy51;
  ------------------
  |  Branch (797:3): [True: 403, False: 111k]
  ------------------
  798|    982|		default: goto yy47;
  ------------------
  |  Branch (798:3): [True: 982, False: 111k]
  ------------------
  799|   112k|	}
  800|    403|yy51:
  801|    403|	YYSKIP();
  ------------------
  |  |   35|    403|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    403|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  802|    403|	{ goto match_index; }
  803|   112k|}
  804|       |
  805|       |
  806|    403| match_index:
  807|    403|    len = (size_t)(pos - 1 - begin);
  808|    403|    if(UA_readNumber((const UA_Byte*)begin, len, &tmp) != len)
  ------------------
  |  Branch (808:8): [True: 0, False: 403]
  ------------------
  809|      0|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  810|    403|    qn->namespaceIndex = (UA_UInt16)tmp;
  811|    403|    goto match_name;
  812|       |
  813|    201| match_uri:
  814|    201|    str.length = (size_t)(pos - 1 - begin);
  815|    201|    str.data = (UA_Byte*)(uintptr_t)begin;
  816|    201|    res = escapedUri2Index(str, &qn->namespaceIndex, nsMapping);
  817|    201|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    201|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (817:8): [True: 201, False: 0]
  ------------------
  818|    201|        pos = begin; /* Use the entire string for the name */
  819|       |
  820|  24.2k| match_name:
  821|  24.2k|    str.length = (size_t)(end - pos);
  822|  24.2k|    str.data = (UA_Byte*)(uintptr_t)pos;
  823|  24.2k|    res = UA_String_copy(&str, &qn->name);
  824|  24.2k|    if(UA_LIKELY(res == UA_STATUSCODE_GOOD))
  ------------------
  |  |  579|  24.2k|# define UA_LIKELY(x) __builtin_expect((x), 1)
  |  |  ------------------
  |  |  |  Branch (579:23): [True: 24.2k, False: 1]
  |  |  ------------------
  ------------------
  825|  24.2k|        res = UA_String_unescape(&qn->name, false, escName);
  826|  24.2k|    return res;
  827|    201|}

UA_readNumberWithBase:
  111|  20.9k|UA_readNumberWithBase(const UA_Byte *buf, size_t buflen, UA_UInt32 *number, UA_Byte base) {
  112|  20.9k|    UA_assert(buf);
  ------------------
  |  |  400|  20.9k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (112:5): [True: 20.9k, False: 0]
  ------------------
  113|  20.9k|    UA_assert(number);
  ------------------
  |  |  400|  20.9k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (113:5): [True: 20.9k, False: 0]
  ------------------
  114|  20.9k|    u32 n = 0;
  115|  20.9k|    size_t progress = 0;
  116|       |    /* read numbers until the end or a non-number character appears */
  117|  2.72M|    while(progress < buflen) {
  ------------------
  |  Branch (117:11): [True: 2.70M, False: 20.8k]
  ------------------
  118|  2.70M|        u8 c = buf[progress];
  119|  2.70M|        if(c >= '0' && c <= '9' && c <= '0' + (base-1))
  ------------------
  |  Branch (119:12): [True: 2.70M, False: 30]
  |  Branch (119:24): [True: 2.70M, False: 719]
  |  Branch (119:36): [True: 2.70M, False: 0]
  ------------------
  120|  2.70M|           n = (n * base) + c - '0';
  121|    749|        else if(base > 9 && c >= 'a' && c <= 'z' && c <= 'a' + (base-11))
  ------------------
  |  Branch (121:17): [True: 749, False: 0]
  |  Branch (121:29): [True: 420, False: 329]
  |  Branch (121:41): [True: 396, False: 24]
  |  Branch (121:53): [True: 379, False: 17]
  ------------------
  122|    379|           n = (n * base) + c-'a' + 10;
  123|    370|        else if(base > 9 && c >= 'A' && c <= 'Z' && c <= 'A' + (base-11))
  ------------------
  |  Branch (123:17): [True: 370, False: 0]
  |  Branch (123:29): [True: 329, False: 41]
  |  Branch (123:41): [True: 286, False: 43]
  |  Branch (123:53): [True: 274, False: 12]
  ------------------
  124|    274|           n = (n * base) + c-'A' + 10;
  125|     96|        else
  126|     96|           break;
  127|  2.70M|        ++progress;
  128|  2.70M|    }
  129|  20.9k|    *number = n;
  130|  20.9k|    return progress;
  131|  20.9k|}
UA_readNumber:
  134|  20.6k|UA_readNumber(const UA_Byte *buf, size_t buflen, UA_UInt32 *number) {
  135|  20.6k|    return UA_readNumberWithBase(buf, buflen, number, 10);
  136|  20.6k|}
UA_String_unescape:
  803|  34.9k|UA_String_unescape(UA_String *str, UA_Boolean copyEscape, UA_Escaping esc) {
  804|  34.9k|    if(esc == UA_ESCAPING_NONE)
  ------------------
  |  Branch (804:8): [True: 34.9k, False: 0]
  ------------------
  805|  34.9k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  34.9k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  806|       |
  807|       |    /* Does the string need escaping? */
  808|      0|    UA_String tmp;
  809|      0|    status res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  810|      0|    u8 *pos = str->data;
  811|      0|    u8 *end = str->data + str->length;
  812|      0|    u8 escape_char = (esc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (812:23): [True: 0, False: 0]
  ------------------
  813|      0|                      esc == UA_ESCAPING_PERCENT_EXTENDED) ? '%' : '&';
  ------------------
  |  Branch (813:23): [True: 0, False: 0]
  ------------------
  814|      0|    for(; pos < end; pos++) {
  ------------------
  |  Branch (814:11): [True: 0, False: 0]
  ------------------
  815|      0|        if(*pos == escape_char)
  ------------------
  |  Branch (815:12): [True: 0, False: 0]
  ------------------
  816|      0|            goto escape;
  817|      0|    }
  818|       |
  819|      0|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  820|       |
  821|      0| escape:
  822|      0|    if(copyEscape) {
  ------------------
  |  Branch (822:8): [True: 0, False: 0]
  ------------------
  823|      0|        res = UA_String_copy(str, &tmp);
  824|      0|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (824:12): [True: 0, False: 0]
  ------------------
  825|      0|            return res;
  826|      0|        pos = tmp.data;
  827|      0|        end = tmp.data + tmp.length;
  828|      0|    }
  829|       |
  830|      0|    u8 byte = 0;
  831|      0|    u8 *writepos = pos;
  832|       |
  833|      0|    res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  834|      0|    if(esc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (834:8): [True: 0, False: 0]
  ------------------
  835|      0|       esc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (835:8): [True: 0, False: 0]
  ------------------
  836|       |        /* Percent-Escaping */
  837|      0|        for(; pos < end; pos++) {
  ------------------
  |  Branch (837:15): [True: 0, False: 0]
  ------------------
  838|      0|            if(*pos == '%') {
  ------------------
  |  Branch (838:16): [True: 0, False: 0]
  ------------------
  839|      0|                if(pos + 2 >= end || !isHex(pos[1]) || !isHex(pos[2]))
  ------------------
  |  Branch (839:20): [True: 0, False: 0]
  |  Branch (839:38): [True: 0, False: 0]
  |  Branch (839:56): [True: 0, False: 0]
  ------------------
  840|      0|                    goto out;
  841|      0|                if(pos[1] >= 'a')
  ------------------
  |  Branch (841:20): [True: 0, False: 0]
  ------------------
  842|      0|                    byte = pos[1] - ('a' - 10);
  843|      0|                else if(pos[1] >= 'A')
  ------------------
  |  Branch (843:25): [True: 0, False: 0]
  ------------------
  844|      0|                    byte = pos[1] - ('A' - 10);
  845|      0|                else
  846|      0|                    byte = pos[1] - '0';
  847|      0|                byte <<= 4;
  848|       |
  849|      0|                if(pos[2] >= 'a')
  ------------------
  |  Branch (849:20): [True: 0, False: 0]
  ------------------
  850|      0|                    byte += (u8)(pos[2] - ('a' - 10));
  851|      0|                else if(pos[2] >= 'A')
  ------------------
  |  Branch (851:25): [True: 0, False: 0]
  ------------------
  852|      0|                    byte += (u8)(pos[2] - ('A' - 10));
  853|      0|                else
  854|      0|                    byte += (u8)(pos[2] - '0');
  855|       |
  856|      0|                pos += 2;
  857|      0|                *writepos++ = byte;
  858|      0|                continue;
  859|      0|            }
  860|      0|            *writepos++ = *pos;
  861|      0|        }
  862|      0|    } else {
  863|       |        /* And-Escaping */
  864|      0|        for(; pos < end; pos++) {
  ------------------
  |  Branch (864:15): [True: 0, False: 0]
  ------------------
  865|      0|            if(*pos == '&') {
  ------------------
  |  Branch (865:16): [True: 0, False: 0]
  ------------------
  866|      0|                pos++;
  867|      0|                if(pos == end)
  ------------------
  |  Branch (867:20): [True: 0, False: 0]
  ------------------
  868|      0|                    goto out;
  869|      0|            }
  870|      0|            *writepos++ = *pos;
  871|      0|        }
  872|      0|    }
  873|      0|    res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  874|       |
  875|      0| out:
  876|      0|    if(copyEscape) {
  ------------------
  |  Branch (876:8): [True: 0, False: 0]
  ------------------
  877|      0|        tmp.length = (size_t)(writepos - tmp.data);
  878|      0|        if(tmp.length == 0)
  ------------------
  |  Branch (878:12): [True: 0, False: 0]
  ------------------
  879|      0|            UA_String_clear(&tmp);
  880|      0|        if(res == UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (880:12): [True: 0, False: 0]
  ------------------
  881|      0|            *str = tmp;
  882|      0|        else
  883|      0|            UA_String_clear(&tmp);
  884|      0|    } else if(res == UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (884:15): [True: 0, False: 0]
  ------------------
  885|      0|        str->length = (size_t)(writepos - str->data);
  886|      0|    }
  887|      0|    return res;
  888|      0|}

ua_pubsub_networkmessage_json.c:isTrue:
  167|  43.7k|isTrue(uint8_t expr) {
  168|  43.7k|    return expr;
  169|  43.7k|}
ua_pubsub_networkmessage_json.c:isGood:
  157|  43.7k|isGood(UA_StatusCode code) {
  158|  43.7k|    return code == UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  43.7k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  159|  43.7k|}

UA_memoryManager_setLimitFromLast4Bytes:
  161|  7.81k|int UA_memoryManager_setLimitFromLast4Bytes(const uint8_t *data, size_t size) {
  162|  7.81k|    UA_mallocSingleton = UA_memoryManager_malloc;
  163|  7.81k|    UA_freeSingleton = UA_memoryManager_free;
  164|  7.81k|    UA_callocSingleton = UA_memoryManager_calloc;
  165|  7.81k|    UA_reallocSingleton = UA_memoryManager_realloc;
  166|  7.81k|    if(size <4)
  ------------------
  |  Branch (166:8): [True: 0, False: 7.81k]
  ------------------
  167|      0|        return 0;
  168|       |    // just cast the last 4 bytes to uint32
  169|  7.81k|    uint32_t limit;
  170|  7.81k|    memcpy(&limit, &data[size-4], sizeof(uint32_t));
  171|  7.81k|    memoryLimit = limit;
  172|  7.81k|    return 1;
  173|  7.81k|}
custom_memory_manager.c:UA_memoryManager_malloc:
  114|  83.5k|static void *UA_memoryManager_malloc(size_t size) {
  115|  83.5k|    if(totalMemorySize + size > memoryLimit)
  ------------------
  |  Branch (115:8): [True: 31, False: 83.5k]
  ------------------
  116|     31|        return NULL;
  117|  83.5k|    void *addr = malloc(size);
  118|  83.5k|    if(!addr)
  ------------------
  |  Branch (118:8): [True: 0, False: 83.5k]
  ------------------
  119|      0|        return NULL;
  120|  83.5k|    addToMap(size, addr);
  121|  83.5k|    return addr;
  122|  83.5k|}
custom_memory_manager.c:addToMap:
   52|   178k|static int addToMap(size_t size, void *addr) {
   53|   178k|    struct UA_mm_entry *newEntry = (struct UA_mm_entry*)malloc(sizeof(struct UA_mm_entry));
   54|   178k|    if(!newEntry) {
  ------------------
  |  Branch (54:8): [True: 0, False: 178k]
  ------------------
   55|       |        //printf("MemoryManager: Could not allocate memory");
   56|      0|        return 0;
   57|      0|    }
   58|   178k|    newEntry->size = size;
   59|   178k|    newEntry->address = addr;
   60|   178k|    newEntry->next = NULL;
   61|   178k|    pthread_mutex_lock(&mutex);
   62|   178k|    newEntry->prev = address_map_last;
   63|   178k|    if(address_map_last)
  ------------------
  |  Branch (63:8): [True: 178k, False: 300]
  ------------------
   64|   178k|        address_map_last->next = newEntry;
   65|   178k|    address_map_last = newEntry;
   66|   178k|    totalMemorySize += size;
   67|   178k|    if(address_map_first == NULL)
  ------------------
  |  Branch (67:8): [True: 300, False: 178k]
  ------------------
   68|    300|        address_map_first = newEntry;
   69|   178k|    pthread_mutex_unlock(&mutex);
   70|       |    //printf("Total size (malloc): %lld And new address: %p Entry %p\n", totalMemorySize, addr, (void*)newEntry);
   71|       |
   72|   178k|    return 1;
   73|   178k|}
custom_memory_manager.c:UA_memoryManager_free:
  146|   231k|static void UA_memoryManager_free(void* ptr) {
  147|   231k|    removeFromMap(ptr);
  148|   231k|    free(ptr);
  149|   231k|}
custom_memory_manager.c:removeFromMap:
   82|   231k|static int removeFromMap(void *addr) {
   83|   231k|    if(addr == NULL)
  ------------------
  |  Branch (83:8): [True: 52.5k, False: 178k]
  ------------------
   84|  52.5k|        return 1;
   85|       |
   86|   178k|    pthread_mutex_lock(&mutex);
   87|       |
   88|   178k|    struct UA_mm_entry *e = address_map_last;
   89|       |
   90|  67.6M|    while (e) {
  ------------------
  |  Branch (90:12): [True: 67.6M, False: 0]
  ------------------
   91|  67.6M|        if(e->address == addr) {
  ------------------
  |  Branch (91:12): [True: 178k, False: 67.4M]
  ------------------
   92|   178k|            if(e == address_map_first)
  ------------------
  |  Branch (92:16): [True: 330, False: 178k]
  ------------------
   93|    330|                address_map_first = e->next;
   94|   178k|            if(e == address_map_last)
  ------------------
  |  Branch (94:16): [True: 72.2k, False: 106k]
  ------------------
   95|  72.2k|                address_map_last = e->prev;
   96|   178k|            if(e->prev)
  ------------------
  |  Branch (96:16): [True: 178k, False: 330]
  ------------------
   97|   178k|                e->prev->next = e->next;
   98|   178k|            if(e->next)
  ------------------
  |  Branch (98:16): [True: 106k, False: 72.2k]
  ------------------
   99|   106k|                e->next->prev = e->prev;
  100|   178k|            totalMemorySize -= e->size;
  101|       |
  102|       |            //printf("Total size (free): %lld after addr %p and deleting %p\n", totalMemorySize, addr, (void*)e);
  103|   178k|            free(e);
  104|   178k|            pthread_mutex_unlock(&mutex);
  105|   178k|            return 1;
  106|   178k|        }
  107|  67.4M|        e = e->prev;
  108|  67.4M|    }
  109|      0|    pthread_mutex_unlock(&mutex);
  110|       |    //printf("MemoryManager: Entry with address %p not found", addr);
  111|      0|    return 0;
  112|   178k|}
custom_memory_manager.c:UA_memoryManager_calloc:
  124|  95.4k|static void *UA_memoryManager_calloc(size_t num, size_t size) {
  125|  95.4k|    if(totalMemorySize + (size * num) > memoryLimit)
  ------------------
  |  Branch (125:8): [True: 39, False: 95.4k]
  ------------------
  126|     39|        return NULL;
  127|  95.4k|    void *addr = calloc(num, size);
  128|  95.4k|    if(!addr)
  ------------------
  |  Branch (128:8): [True: 0, False: 95.4k]
  ------------------
  129|      0|        return NULL;
  130|  95.4k|    addToMap(size*num, addr);
  131|  95.4k|    return addr;
  132|  95.4k|}

LLVMFuzzerTestOneInput:
   13|  7.81k|LLVMFuzzerTestOneInput(uint8_t *data, size_t size) {
   14|  7.81k|    if(size < 4)
  ------------------
  |  Branch (14:8): [True: 2, False: 7.81k]
  ------------------
   15|      2|        return 0;
   16|       |
   17|       |    /* Set memory limit from last 4 bytes to test OOM handling */
   18|  7.81k|    if(!UA_memoryManager_setLimitFromLast4Bytes(data, size))
  ------------------
  |  Branch (18:8): [True: 0, False: 7.81k]
  ------------------
   19|      0|        return 0;
   20|  7.81k|    size -= 4;
   21|       |
   22|       |    /* Create ByteString from fuzz input */
   23|  7.81k|    UA_ByteString buf;
   24|  7.81k|    buf.data = (UA_Byte*)(void*)data;
   25|  7.81k|    buf.length = size;
   26|       |
   27|       |    /* Decode the NetworkMessage from JSON */
   28|  7.81k|    UA_NetworkMessage nm;
   29|  7.81k|    memset(&nm, 0, sizeof(UA_NetworkMessage));
   30|       |
   31|  7.81k|    UA_StatusCode rv = UA_NetworkMessage_decodeJson(&buf, &nm, NULL, NULL);
   32|  7.81k|    if(rv == UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|  7.81k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (32:8): [True: 8, False: 7.80k]
  ------------------
   33|      8|        UA_NetworkMessage_clear(&nm);
   34|      8|    }
   35|       |
   36|  7.81k|    return 0;
   37|  7.81k|}

ua_types.c:UA_ByteString_init:
  244|  10.9k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_String_copy:
  244|  37.7k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_clear:
  244|  1.72k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_ExpandedNodeId_clear:
  244|    500|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_QualifiedName_clear:
  244|      1|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_QualifiedName_init:
  244|  24.2k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_encoding_json.c:UA_String_clear:
  244|  60.0k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_encoding_json.c:UA_ExtensionObject_init:
  244|  1.69k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_encoding_json.c:UA_String_init:
  244|  59.7k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_encoding_json.c:UA_NodeId_init:
  244|  38.5k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_encoding_json.c:UA_NodeId_clear:
  244|  15.6k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_encoding_json.c:UA_ExtensionObject_new:
  244|     66|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_encoding_json.c:UA_ExtensionObject_clear:
  244|    469|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_pubsub_networkmessage_json.c:UA_String_clear:
  244|  21.8k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_pubsub_networkmessage_json.c:UA_DataValue_clear:
  244|  21.8k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_pubsub_networkmessage_binary.c:UA_ByteString_clear:
  244|  7.05k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_pubsub_networkmessage_binary.c:UA_String_clear:
  244|  7.05k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl

