UA_base64_buf:
   36|    948|UA_base64_buf(const unsigned char *src, size_t len, unsigned char *out) {
   37|    948|    const unsigned char *end = src + len;
   38|    948|    const unsigned char *in = src;
   39|    948|    unsigned char *pos = out;
   40|  1.21k|    while(end - in >= 3) {
  ------------------
  |  Branch (40:11): [True: 269, False: 948]
  ------------------
   41|    269|        *pos++ = base64_table[in[0] >> 2];
   42|    269|        *pos++ = base64_table[((in[0] & 0x03) << 4) | (in[1] >> 4)];
   43|    269|        *pos++ = base64_table[((in[1] & 0x0f) << 2) | (in[2] >> 6)];
   44|    269|        *pos++ = base64_table[in[2] & 0x3f];
   45|    269|        in += 3;
   46|    269|    }
   47|       |
   48|    948|    if(end - in) {
  ------------------
  |  Branch (48:8): [True: 389, False: 559]
  ------------------
   49|    389|        *pos++ = base64_table[in[0] >> 2];
   50|    389|        if(end - in == 1) {
  ------------------
  |  Branch (50:12): [True: 194, False: 195]
  ------------------
   51|    194|            *pos++ = base64_table[(in[0] & 0x03) << 4];
   52|    194|            *pos++ = '=';
   53|    195|        } else {
   54|    195|            *pos++ = base64_table[((in[0] & 0x03) << 4) | (in[1] >> 4)];
   55|    195|            *pos++ = base64_table[(in[1] & 0x0f) << 2];
   56|    195|        }
   57|    389|        *pos++ = '=';
   58|    389|    }
   59|       |
   60|    948|    return (size_t)(pos - out);
   61|    948|}
UA_unbase64:
   75|  1.65k|UA_unbase64(const unsigned char *src, size_t len, size_t *out_len) {
   76|       |    /* Empty base64 results in an empty byte-string */
   77|  1.65k|    if(len == 0) {
  ------------------
  |  Branch (77:8): [True: 879, False: 773]
  ------------------
   78|    879|        *out_len = 0;
   79|    879|        return (unsigned char*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|    879|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
   80|    879|    }
   81|       |
   82|       |    /* Allocate the output string. Append four bytes to allow missing padding */
   83|    773|    size_t olen = (len / 4 * 3) + 4;
   84|    773|    unsigned char *out = (unsigned char*)UA_malloc(olen);
  ------------------
  |  |   18|    773|#define UA_malloc(size) UA_mallocSingleton(size)
  ------------------
   85|    773|    if(!out)
  ------------------
  |  Branch (85:8): [True: 0, False: 773]
  ------------------
   86|      0|        return NULL;
   87|       |
   88|       |    /* Iterate over the input */
   89|    773|    size_t pad = 0;
   90|    773|    unsigned char count = 0;
   91|    773|    unsigned char block[4];
   92|    773|    unsigned char *pos = out;
   93|  6.12k|    for(size_t i = 0; i < len; i++) {
  ------------------
  |  Branch (93:23): [True: 5.39k, False: 731]
  ------------------
   94|  5.39k|        if(src[i] & 0x80)
  ------------------
  |  Branch (94:12): [True: 24, False: 5.37k]
  ------------------
   95|     24|            goto error; /* Non-ASCII input */
   96|  5.37k|        unsigned char tmp = dtable[src[i]];
   97|  5.37k|        if(tmp == 0x80)
  ------------------
  |  Branch (97:12): [True: 13, False: 5.36k]
  ------------------
   98|     13|            goto error; /* Not an allowed character */
   99|  5.36k|        if(tmp == 0x7f)
  ------------------
  |  Branch (99:12): [True: 550, False: 4.81k]
  ------------------
  100|    550|            continue; /* Whitespace is ignored to accomodate RFC 2045, used in
  101|       |                       * XML for xs:base64Binary. */
  102|  4.81k|        block[count++] = tmp;
  103|       |
  104|       |        /* Padding */
  105|  4.81k|        if(src[i] == '=') {
  ------------------
  |  Branch (105:12): [True: 847, False: 3.96k]
  ------------------
  106|    847|            if(count < 3) /* Padding can only be the last two bytes of a block */
  ------------------
  |  Branch (106:16): [True: 4, False: 843]
  ------------------
  107|      4|                goto error;
  108|    843|            block[count-1] = 0;
  109|    843|            pad++;
  110|  3.96k|        } else if(pad > 0) {
  ------------------
  |  Branch (110:19): [True: 1, False: 3.96k]
  ------------------
  111|      1|            goto error; /* Padding not terminated correctly */
  112|      1|        }
  113|       |
  114|       |        /* Write three output characters for four characters of input */
  115|  4.80k|        if(count == 4) {
  ------------------
  |  Branch (115:12): [True: 1.18k, False: 3.61k]
  ------------------
  116|  1.18k|            if(pad > 2)
  ------------------
  |  Branch (116:16): [True: 0, False: 1.18k]
  ------------------
  117|      0|                goto error; /* Invalid padding */
  118|  1.18k|            *pos++ = (block[0] << 2) | (block[1] >> 4);
  119|  1.18k|            *pos++ = (block[1] << 4) | (block[2] >> 2);
  120|  1.18k|            *pos++ = (block[2] << 6) | block[3];
  121|  1.18k|            count = 0;
  122|  1.18k|            pos -= pad;
  123|  1.18k|            pad = 0;
  124|  1.18k|        }
  125|  4.80k|    }
  126|       |
  127|       |    /* Input length not a multiple of four */
  128|    731|    if(count > 0)
  ------------------
  |  Branch (128:8): [True: 21, False: 710]
  ------------------
  129|     21|        goto error;
  130|       |
  131|    710|    *out_len = (size_t)(pos - out);
  132|    710|    if(*out_len == 0) {
  ------------------
  |  Branch (132:8): [True: 201, False: 509]
  ------------------
  133|    201|        UA_free(out);
  ------------------
  |  |   19|    201|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
  134|    201|        return (unsigned char*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|    201|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
  135|    201|    }
  136|    509|    return out;
  137|       |
  138|     63| error:
  139|     63|    UA_free(out);
  ------------------
  |  |   19|     63|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
  140|       |    return NULL;
  141|    710|}

itoaUnsigned:
   42|  1.67k|UA_UInt16 itoaUnsigned(UA_UInt64 value, char* buffer, UA_Byte base) {
   43|       |    /* consider absolute value of number */
   44|  1.67k|    UA_UInt64 n = value;
   45|       |
   46|  1.67k|    UA_UInt16 i = 0;
   47|  4.63k|    while (n) {
  ------------------
  |  Branch (47:12): [True: 2.95k, False: 1.67k]
  ------------------
   48|  2.95k|        UA_UInt64 r = n % base;
   49|       |
   50|  2.95k|        if (r >= 10)
  ------------------
  |  Branch (50:13): [True: 0, False: 2.95k]
  ------------------
   51|      0|            buffer[i++] = (char)(65 + (r - 10));
   52|  2.95k|        else
   53|  2.95k|            buffer[i++] = (char)(48 + r);
   54|       |
   55|  2.95k|        n = n / base;
   56|  2.95k|    }
   57|       |    /* if number is 0 */
   58|  1.67k|    if (i == 0)
  ------------------
  |  Branch (58:9): [True: 393, False: 1.28k]
  ------------------
   59|    393|        buffer[i++] = '0';
   60|       |
   61|  1.67k|    buffer[i] = '\0'; /* null terminate string */
   62|  1.67k|    i--;
   63|       |    /* reverse the string */
   64|  1.67k|    reverse(buffer, 0, i);
   65|  1.67k|    i++;
   66|  1.67k|    return i;
   67|  1.67k|}
itoa.c:reverse:
   34|  1.67k|static char* reverse(char *buffer, UA_UInt16 i, UA_UInt16 j) {
   35|  2.67k|    while (i < j)
  ------------------
  |  Branch (35:12): [True: 992, False: 1.67k]
  ------------------
   36|    992|        swap(&buffer[i++], &buffer[j--]);
   37|       |
   38|  1.67k|    return buffer;
   39|  1.67k|}
itoa.c:swap:
   27|    992|static void swap(char *x, char *y) {
   28|    992|    char t = *x;
   29|    992|    *x = *y;
   30|    992|    *y = t;
   31|    992|}

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

parseUInt64:
   30|  4.12k|parseUInt64(const char *str, size_t size, uint64_t *result) {
   31|  4.12k|    size_t i = 0;
   32|  4.12k|    uint64_t n = 0, prev = 0;
   33|       |
   34|       |    /* Hex */
   35|  4.12k|    if(size > 2 && str[0] == '0' && (str[1] | 32) == 'x') {
  ------------------
  |  Branch (35:8): [True: 719, False: 3.40k]
  |  Branch (35:20): [True: 71, False: 648]
  |  Branch (35:37): [True: 20, False: 51]
  ------------------
   36|     20|        i = 2;
   37|     56|        for(; i < size; i++) {
  ------------------
  |  Branch (37:15): [True: 49, False: 7]
  ------------------
   38|     49|            uint8_t c = (uint8_t)str[i] | 32;
   39|     49|            if(c >= '0' && c <= '9')
  ------------------
  |  Branch (39:16): [True: 45, False: 4]
  |  Branch (39:28): [True: 17, False: 28]
  ------------------
   40|     17|                c = (uint8_t)(c - '0');
   41|     32|            else if(c >= 'a' && c <='f')
  ------------------
  |  Branch (41:21): [True: 28, False: 4]
  |  Branch (41:33): [True: 19, False: 9]
  ------------------
   42|     19|                c = (uint8_t)(c - 'a' + 10);
   43|     13|            else if(c >= 'A' && c <='F')
  ------------------
  |  Branch (43:21): [True: 9, False: 4]
  |  Branch (43:33): [True: 0, False: 9]
  ------------------
   44|      0|                c = (uint8_t)(c - 'A' + 10);
   45|     13|            else
   46|     13|                break;
   47|     36|            n = (n << 4) | (c & 0xF);
   48|     36|            if(n < prev) /* Check for overflow */
  ------------------
  |  Branch (48:16): [True: 0, False: 36]
  ------------------
   49|      0|                return 0;
   50|     36|            prev = n;
   51|     36|        }
   52|     20|        *result = n;
   53|     20|        return (i > 2) ? i : 0; /* 2 -> No digit was parsed */
  ------------------
  |  Branch (53:16): [True: 17, False: 3]
  ------------------
   54|     20|    }
   55|       |
   56|       |    /* Decimal */
   57|  12.0k|    for(; i < size; i++) {
  ------------------
  |  Branch (57:11): [True: 8.91k, False: 3.14k]
  ------------------
   58|  8.91k|        if(str[i] < '0' || str[i] > '9')
  ------------------
  |  Branch (58:12): [True: 808, False: 8.10k]
  |  Branch (58:28): [True: 153, False: 7.95k]
  ------------------
   59|    961|            break;
   60|       |        /* Fast multiplication: n*10 == (n*8) + (n*2) */
   61|  7.95k|        n = (n << 3) + (n << 1) + (uint8_t)(str[i] - '0');
   62|  7.95k|        if(n < prev) /* Check for overflow */
  ------------------
  |  Branch (62:12): [True: 0, False: 7.95k]
  ------------------
   63|      0|            return 0;
   64|  7.95k|        prev = n;
   65|  7.95k|    }
   66|  4.10k|    *result = n;
   67|  4.10k|    return i;
   68|  4.10k|}
parseInt64:
   71|    719|parseInt64(const char *str, size_t size, int64_t *result) {
   72|       |    /* Negative value? */
   73|    719|    size_t i = 0;
   74|    719|    bool neg = false;
   75|    719|    if(*str == '-' || *str == '+') {
  ------------------
  |  Branch (75:8): [True: 8, False: 711]
  |  Branch (75:23): [True: 1, False: 710]
  ------------------
   76|      9|        neg = (*str == '-');
   77|      9|        i++;
   78|      9|    }
   79|       |
   80|       |    /* Parse as unsigned */
   81|    719|    uint64_t n = 0;
   82|    719|    size_t len = parseUInt64(&str[i], size - i, &n);
   83|    719|    if(len == 0)
  ------------------
  |  Branch (83:8): [True: 20, False: 699]
  ------------------
   84|     20|        return 0;
   85|       |
   86|       |    /* Check for overflow, adjust and return */
   87|    699|    if(!neg) {
  ------------------
  |  Branch (87:8): [True: 691, False: 8]
  ------------------
   88|    691|        if(n > 9223372036854775807UL)
  ------------------
  |  Branch (88:12): [True: 0, False: 691]
  ------------------
   89|      0|            return 0;
   90|    691|        *result = (int64_t)n;
   91|    691|    } 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|      8|        if(n > 9223372036854775808UL)
  ------------------
  |  Branch (97:12): [True: 0, False: 8]
  ------------------
   98|      0|            return 0;
   99|      8|        *result = (n == 9223372036854775808UL)
  ------------------
  |  Branch (99:19): [True: 0, False: 8]
  ------------------
  100|      8|            ? (int64_t)(-9223372036854775807LL - 1)
  101|      8|            : -(int64_t)n;
  102|      8|    }
  103|    699|    return len + i;
  104|    699|}

UA_STRING:
  223|  15.1k|UA_STRING(char *chars) {
  224|  15.1k|    UA_String s = {0, NULL};
  225|  15.1k|    if(!chars)
  ------------------
  |  Branch (225:8): [True: 0, False: 15.1k]
  ------------------
  226|      0|        return s;
  227|  15.1k|    s.length = strlen(chars);
  228|  15.1k|    s.data = (UA_Byte*)chars;
  229|  15.1k|    return s;
  230|  15.1k|}
UA_String_append:
  302|  15.1k|UA_String_append(UA_String *s, const UA_String s2) {
  303|  15.1k|    if(s2.length == 0)
  ------------------
  |  Branch (303:8): [True: 0, False: 15.1k]
  ------------------
  304|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  305|  15.1k|    UA_Byte *buf = (UA_Byte*)
  306|  15.1k|        UA_realloc((void*)((uintptr_t)s->data & ~(uintptr_t)UA_EMPTY_ARRAY_SENTINEL),
  ------------------
  |  |   21|  15.1k|#define UA_realloc(ptr, size) UA_reallocSingleton(ptr, size)
  ------------------
  307|  15.1k|                   s->length + s2.length);
  308|  15.1k|    if(!buf)
  ------------------
  |  Branch (308:8): [True: 0, False: 15.1k]
  ------------------
  309|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  310|  15.1k|    memcpy(buf + s->length, s2.data, s2.length);
  311|  15.1k|    s->data = buf;
  312|  15.1k|    s->length += s2.length;
  313|  15.1k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  15.1k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  314|  15.1k|}
UA_DateTime_parse:
  536|    736|UA_DateTime_parse(UA_DateTime *dst, const UA_String str) {
  537|    736|    if(str.length == 0)
  ------------------
  |  Branch (537:8): [True: 0, False: 736]
  ------------------
  538|      0|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  539|       |
  540|    736|    struct musl_tm dts;
  541|    736|    memset(&dts, 0, sizeof(dts));
  542|       |
  543|       |    /* Parse the year. The ISO standard asks for four digits. But we accept up
  544|       |     * to five with an optional plus or minus in front due to the range of the
  545|       |     * DateTime 64bit integer. But in that case we require the year and the
  546|       |     * month to be separated by a '-'. Otherwise we cannot know where the month
  547|       |     * starts. */
  548|    736|    size_t pos = 0;
  549|    736|    if(str.data[0] == '-' || str.data[0] == '+')
  ------------------
  |  Branch (549:8): [True: 14, False: 722]
  |  Branch (549:30): [True: 7, False: 715]
  ------------------
  550|     21|        pos++;
  551|    736|    UA_Int64 year = 0;
  552|    736|    UA_CHECK(str.length - pos > 5, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    736|    do {                                                                                 \
  |  |  173|    736|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    736|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 17, False: 719]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     17|            EVAL_ON_ERROR;                                                               \
  |  |  175|     17|        }                                                                                \
  |  |  176|    736|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 719]
  |  |  ------------------
  ------------------
  553|    719|    size_t len = parseInt64((char*)&str.data[pos], 5, &year);
  554|    719|    pos += len;
  555|    719|    UA_CHECK(len > 0 && pos < str.length, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    719|    do {                                                                                 \
  |  |  173|    719|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|  1.41k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 20, False: 699]
  |  |  |  |  |  Branch (579:43): [True: 699, False: 20]
  |  |  |  |  |  Branch (579:43): [True: 699, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     20|            EVAL_ON_ERROR;                                                               \
  |  |  175|     20|        }                                                                                \
  |  |  176|    719|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 699]
  |  |  ------------------
  ------------------
  556|    699|    UA_CHECK(len == 4 || str.data[pos] == '-', return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    699|    do {                                                                                 \
  |  |  173|    699|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|  1.26k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 42, False: 657]
  |  |  |  |  |  Branch (579:43): [True: 134, False: 565]
  |  |  |  |  |  Branch (579:43): [True: 523, False: 42]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     42|            EVAL_ON_ERROR;                                                               \
  |  |  175|     42|        }                                                                                \
  |  |  176|    699|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 657]
  |  |  ------------------
  ------------------
  557|    657|    if(str.data[0] == '-')
  ------------------
  |  Branch (557:8): [True: 10, False: 647]
  ------------------
  558|     10|        year = -year;
  559|    657|    dts.tm_year = (UA_Int16)year - 1900;
  560|    657|    if(str.data[pos] == '-')
  ------------------
  |  Branch (560:8): [True: 645, False: 12]
  ------------------
  561|    645|        pos++;
  562|       |
  563|       |    /* Parse the month */
  564|    657|    UA_UInt64 month = 0;
  565|    657|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    657|    do {                                                                                 \
  |  |  173|    657|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    657|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 14, False: 643]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     14|            EVAL_ON_ERROR;                                                               \
  |  |  175|     14|        }                                                                                \
  |  |  176|    657|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 643]
  |  |  ------------------
  ------------------
  566|    643|    len = parseUInt64((char*)&str.data[pos], 2, &month);
  567|    643|    pos += len;
  568|    643|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    643|    do {                                                                                 \
  |  |  173|    643|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    643|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 3, False: 640]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      3|            EVAL_ON_ERROR;                                                               \
  |  |  175|      3|        }                                                                                \
  |  |  176|    643|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 640]
  |  |  ------------------
  ------------------
  569|    640|    dts.tm_mon = (UA_UInt16)month - 1;
  570|    640|    if(str.data[pos] == '-')
  ------------------
  |  Branch (570:8): [True: 1, False: 639]
  ------------------
  571|      1|        pos++;
  572|       |
  573|       |    /* Parse the day and check the T between date and time */
  574|    640|    UA_UInt64 day = 0;
  575|    640|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    640|    do {                                                                                 \
  |  |  173|    640|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    640|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 10, False: 630]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     10|            EVAL_ON_ERROR;                                                               \
  |  |  175|     10|        }                                                                                \
  |  |  176|    640|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 630]
  |  |  ------------------
  ------------------
  576|    630|    len = parseUInt64((char*)&str.data[pos], 2, &day);
  577|    630|    pos += len;
  578|    630|    UA_CHECK(len == 2 || str.data[pos] != 'T',
  ------------------
  |  |  172|    630|    do {                                                                                 \
  |  |  173|    630|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|  1.08k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 1, False: 629]
  |  |  |  |  |  Branch (579:43): [True: 171, False: 459]
  |  |  |  |  |  Branch (579:43): [True: 458, False: 1]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      1|            EVAL_ON_ERROR;                                                               \
  |  |  175|      1|        }                                                                                \
  |  |  176|    630|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 629]
  |  |  ------------------
  ------------------
  579|    630|             return UA_STATUSCODE_BADDECODINGERROR);
  580|    629|    dts.tm_mday = (UA_UInt16)day;
  581|    629|    pos++;
  582|       |
  583|       |    /* Parse the hour */
  584|    629|    UA_UInt64 hour = 0;
  585|    629|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    629|    do {                                                                                 \
  |  |  173|    629|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    629|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 10, False: 619]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     10|            EVAL_ON_ERROR;                                                               \
  |  |  175|     10|        }                                                                                \
  |  |  176|    629|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 619]
  |  |  ------------------
  ------------------
  586|    619|    len = parseUInt64((char*)&str.data[pos], 2, &hour);
  587|    619|    pos += len;
  588|    619|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    619|    do {                                                                                 \
  |  |  173|    619|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    619|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 8, False: 611]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      8|            EVAL_ON_ERROR;                                                               \
  |  |  175|      8|        }                                                                                \
  |  |  176|    619|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 611]
  |  |  ------------------
  ------------------
  589|    611|    dts.tm_hour = (UA_UInt16)hour;
  590|    611|    if(str.data[pos] == ':')
  ------------------
  |  Branch (590:8): [True: 1, False: 610]
  ------------------
  591|      1|        pos++;
  592|       |
  593|       |    /* Parse the minute */
  594|    611|    UA_UInt64 min = 0;
  595|    611|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    611|    do {                                                                                 \
  |  |  173|    611|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    611|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 11, False: 600]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     11|            EVAL_ON_ERROR;                                                               \
  |  |  175|     11|        }                                                                                \
  |  |  176|    611|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 600]
  |  |  ------------------
  ------------------
  596|    600|    len = parseUInt64((char*)&str.data[pos], 2, &min);
  597|    600|    pos += len;
  598|    600|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    600|    do {                                                                                 \
  |  |  173|    600|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    600|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 2, False: 598]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      2|            EVAL_ON_ERROR;                                                               \
  |  |  175|      2|        }                                                                                \
  |  |  176|    600|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 598]
  |  |  ------------------
  ------------------
  599|    598|    dts.tm_min = (UA_UInt16)min;
  600|    598|    if(str.data[pos] == ':')
  ------------------
  |  Branch (600:8): [True: 1, False: 597]
  ------------------
  601|      1|        pos++;
  602|       |
  603|       |    /* Parse the second */
  604|    598|    UA_UInt64 sec = 0;
  605|    598|    UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    598|    do {                                                                                 \
  |  |  173|    598|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    598|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 4, False: 594]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      4|            EVAL_ON_ERROR;                                                               \
  |  |  175|      4|        }                                                                                \
  |  |  176|    598|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 594]
  |  |  ------------------
  ------------------
  606|    594|    len = parseUInt64((char*)&str.data[pos], 2, &sec);
  607|    594|    pos += len;
  608|    594|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    594|    do {                                                                                 \
  |  |  173|    594|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    594|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 5, False: 589]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      5|            EVAL_ON_ERROR;                                                               \
  |  |  175|      5|        }                                                                                \
  |  |  176|    594|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 589]
  |  |  ------------------
  ------------------
  609|    589|    dts.tm_sec = (UA_UInt16)sec;
  610|       |
  611|       |    /* Compute the seconds since the Unix epoch */
  612|    589|    long long sinceunix = musl_tm_to_secs(&dts);
  613|       |
  614|       |    /* Are we within the range that can be represented? */
  615|    589|    long long sinceunix_min =
  616|    589|        (long long)(UA_INT64_MIN / UA_DATETIME_SEC) -
  ------------------
  |  |  120|    589|#define UA_INT64_MIN ((int64_t)-UA_INT64_MAX-1LL)
  |  |  ------------------
  |  |  |  |  119|    589|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  |  |  ------------------
  ------------------
                      (long long)(UA_INT64_MIN / UA_DATETIME_SEC) -
  ------------------
  |  |  286|    589|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    589|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    589|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  617|    589|        (long long)(UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC) -
  ------------------
  |  |  328|    589|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  286|    589|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|    589|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  284|    589|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (long long)(UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC) -
  ------------------
  |  |  286|    589|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    589|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    589|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  618|    589|        (long long)1; /* manual correction due to rounding */
  619|    589|    long long sinceunix_max = (long long)
  620|    589|        ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  119|    589|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  ------------------
                      ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  328|    589|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  286|    589|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|    589|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  284|    589|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  286|    589|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    589|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    589|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  621|    589|    if(sinceunix < sinceunix_min || sinceunix > sinceunix_max)
  ------------------
  |  Branch (621:8): [True: 39, False: 550]
  |  Branch (621:37): [True: 4, False: 546]
  ------------------
  622|     43|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     43|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  623|       |
  624|       |    /* Convert to DateTime. Add or subtract one extra second here to prevent
  625|       |     * underflow/overflow. This is reverted once the fractional part has been
  626|       |     * added. */
  627|    546|    sinceunix -= (sinceunix > 0) ? 1 : -1;
  ------------------
  |  Branch (627:18): [True: 176, False: 370]
  ------------------
  628|    546|    UA_DateTime dt = (UA_DateTime)
  629|    546|        (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  328|    546|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  286|    546|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|    546|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  284|    546|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  286|    546|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    546|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    546|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  286|    546|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    546|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    546|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  630|       |
  631|       |    /* Parse the fraction of the second if defined */
  632|    546|    UA_CHECK(pos < str.length, goto finish);
  ------------------
  |  |  172|    546|    do {                                                                                 \
  |  |  173|    546|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    546|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 231, False: 315]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|    231|            EVAL_ON_ERROR;                                                               \
  |  |  175|    231|        }                                                                                \
  |  |  176|    546|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 315]
  |  |  ------------------
  ------------------
  633|    315|    if(str.data[pos] == ',' || str.data[pos] == '.') {
  ------------------
  |  Branch (633:8): [True: 43, False: 272]
  |  Branch (633:32): [True: 107, False: 165]
  ------------------
  634|    150|        pos++;
  635|    150|        double frac = 0.0;
  636|    150|        double denom = 0.1;
  637|  1.09M|        while(pos < str.length && str.data[pos] >= '0' && str.data[pos] <= '9') {
  ------------------
  |  Branch (637:15): [True: 1.09M, False: 69]
  |  Branch (637:35): [True: 1.09M, False: 56]
  |  Branch (637:59): [True: 1.09M, False: 25]
  ------------------
  638|  1.09M|            frac += denom * (str.data[pos] - '0');
  639|  1.09M|            denom *= 0.1;
  640|  1.09M|            pos++;
  641|  1.09M|        }
  642|    150|        frac += 0.00000005; /* Correct rounding when converting to integer */
  643|    150|        dt += (UA_DateTime)(frac * UA_DATETIME_SEC);
  ------------------
  |  |  286|    150|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    150|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    150|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  644|    150|    }
  645|       |
  646|       |    /* Time zone handling */
  647|    315|    UA_CHECK(pos < str.length, goto finish);
  ------------------
  |  |  172|    315|    do {                                                                                 \
  |  |  173|    315|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    315|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 69, False: 246]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     69|            EVAL_ON_ERROR;                                                               \
  |  |  175|     69|        }                                                                                \
  |  |  176|    315|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 246]
  |  |  ------------------
  ------------------
  648|    246|    if(str.data[pos] == 'Z') {
  ------------------
  |  Branch (648:8): [True: 6, False: 240]
  ------------------
  649|      6|        pos++;
  650|    240|    } else if(str.data[pos] == '+' || str.data[pos] == '-') {
  ------------------
  |  Branch (650:15): [True: 70, False: 170]
  |  Branch (650:39): [True: 100, False: 70]
  ------------------
  651|    170|        UA_UInt64 tzHour = 0, tzMin = 0;
  652|    170|        UA_Int64 offsetSeconds = 0;
  653|    170|        UA_Byte tzSign = str.data[pos++];
  654|       |
  655|    170|        UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    170|    do {                                                                                 \
  |  |  173|    170|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    170|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 3, False: 167]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      3|            EVAL_ON_ERROR;                                                               \
  |  |  175|      3|        }                                                                                \
  |  |  176|    170|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 167]
  |  |  ------------------
  ------------------
  656|    167|        len = parseUInt64((char*)&str.data[pos], 2, &tzHour);
  657|    167|        pos += len;
  658|    167|        UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    167|    do {                                                                                 \
  |  |  173|    167|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    167|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 2, False: 165]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      2|            EVAL_ON_ERROR;                                                               \
  |  |  175|      2|        }                                                                                \
  |  |  176|    167|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 165]
  |  |  ------------------
  ------------------
  659|       |
  660|    165|        UA_CHECK(str.length > pos, goto finish); /* Allow missing tz minutes */
  ------------------
  |  |  172|    165|    do {                                                                                 \
  |  |  173|    165|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    165|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 1, False: 164]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      1|            EVAL_ON_ERROR;                                                               \
  |  |  175|      1|        }                                                                                \
  |  |  176|    165|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 164]
  |  |  ------------------
  ------------------
  661|    164|        if(str.data[pos] == ':')
  ------------------
  |  Branch (661:12): [True: 1, False: 163]
  ------------------
  662|      1|            pos++;
  663|       |
  664|    164|        UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    164|    do {                                                                                 \
  |  |  173|    164|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    164|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 8, False: 156]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      8|            EVAL_ON_ERROR;                                                               \
  |  |  175|      8|        }                                                                                \
  |  |  176|    164|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 156]
  |  |  ------------------
  ------------------
  665|    156|        len = parseUInt64((char*)&str.data[pos], 2, &tzMin);
  666|    156|        pos += len;
  667|    156|        UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    156|    do {                                                                                 \
  |  |  173|    156|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    156|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 34, False: 122]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     34|            EVAL_ON_ERROR;                                                               \
  |  |  175|     34|        }                                                                                \
  |  |  176|    156|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 122]
  |  |  ------------------
  ------------------
  668|       |
  669|    122|        offsetSeconds = (tzHour * 3600) + (tzMin * 60);
  670|    122|        if(tzSign == '-')
  ------------------
  |  Branch (670:12): [True: 68, False: 54]
  ------------------
  671|     68|            offsetSeconds = -offsetSeconds;
  672|    122|        dt -= (UA_DateTime)(offsetSeconds * UA_DATETIME_SEC);
  ------------------
  |  |  286|    122|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    122|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    122|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  673|    122|    } else {
  674|     70|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     70|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  675|     70|    }
  676|       |
  677|    429| finish:
  678|       |    /* Remove the underflow/overflow protection (see above) */
  679|    429|    if(sinceunix > 0) {
  ------------------
  |  Branch (679:8): [True: 156, False: 273]
  ------------------
  680|    156|        if(dt > UA_INT64_MAX - UA_DATETIME_SEC)
  ------------------
  |  |  119|    156|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  ------------------
                      if(dt > UA_INT64_MAX - UA_DATETIME_SEC)
  ------------------
  |  |  286|    156|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    156|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    156|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (680:12): [True: 2, False: 154]
  ------------------
  681|      2|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      2|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  682|    154|        dt += UA_DATETIME_SEC;
  ------------------
  |  |  286|    154|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    154|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    154|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  683|    273|    } else {
  684|    273|        if(dt < UA_INT64_MIN + UA_DATETIME_SEC)
  ------------------
  |  |  120|    273|#define UA_INT64_MIN ((int64_t)-UA_INT64_MAX-1LL)
  |  |  ------------------
  |  |  |  |  119|    273|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  |  |  ------------------
  ------------------
                      if(dt < UA_INT64_MIN + UA_DATETIME_SEC)
  ------------------
  |  |  286|    273|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    273|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    273|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (684:12): [True: 19, False: 254]
  ------------------
  685|     19|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     19|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  686|    254|        dt -= UA_DATETIME_SEC;
  ------------------
  |  |  286|    254|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    254|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    254|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  687|    254|    }
  688|       |
  689|       |    /* We must be at the end of the string */
  690|    408|    if(pos != str.length)
  ------------------
  |  Branch (690:8): [True: 93, False: 315]
  ------------------
  691|     93|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     93|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  692|       |
  693|    315|    *dst = dt;
  694|    315|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    315|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  695|    408|}
UA_Guid_to_hex:
  714|    647|UA_Guid_to_hex(const UA_Guid *guid, u8* out, UA_Boolean lower) {
  715|    647|    const u8 *hexmap = (lower) ? hexmapLower : hexmapUpper;
  ------------------
  |  Branch (715:24): [True: 647, False: 0]
  ------------------
  716|    647|    size_t i = 0, j = 28;
  717|  5.82k|    for(; i<8;i++,j-=4)         /* pos 0-7, 4byte, (a) */
  ------------------
  |  Branch (717:11): [True: 5.17k, False: 647]
  ------------------
  718|  5.17k|        out[i] = hexmap[(guid->data1 >> j) & 0x0Fu];
  719|    647|    out[i++] = '-';             /* pos 8 */
  720|  3.23k|    for(j=12; i<13;i++,j-=4)    /* pos 9-12, 2byte, (b) */
  ------------------
  |  Branch (720:15): [True: 2.58k, False: 647]
  ------------------
  721|  2.58k|        out[i] = hexmap[(uint16_t)(guid->data2 >> j) & 0x0Fu];
  722|    647|    out[i++] = '-';             /* pos 13 */
  723|  3.23k|    for(j=12; i<18;i++,j-=4)    /* pos 14-17, 2byte (c) */
  ------------------
  |  Branch (723:15): [True: 2.58k, False: 647]
  ------------------
  724|  2.58k|        out[i] = hexmap[(uint16_t)(guid->data3 >> j) & 0x0Fu];
  725|    647|    out[i++] = '-';              /* pos 18 */
  726|  1.94k|    for(j=0;i<23;i+=2,j++) {     /* pos 19-22, 2byte (d) */
  ------------------
  |  Branch (726:13): [True: 1.29k, False: 647]
  ------------------
  727|  1.29k|        out[i] = hexmap[(guid->data4[j] & 0xF0u) >> 4u];
  728|  1.29k|        out[i+1] = hexmap[guid->data4[j] & 0x0Fu];
  729|  1.29k|    }
  730|    647|    out[i++] = '-';              /* pos 23 */
  731|  4.52k|    for(j=2; i<36;i+=2,j++) {    /* pos 24-35, 6byte (e) */
  ------------------
  |  Branch (731:14): [True: 3.88k, False: 647]
  ------------------
  732|  3.88k|        out[i] = hexmap[(guid->data4[j] & 0xF0u) >> 4u];
  733|  3.88k|        out[i+1] = hexmap[guid->data4[j] & 0x0Fu];
  734|  3.88k|    }
  735|    647|}
UA_ByteString_allocBuffer:
  762|  4.30k|UA_ByteString_allocBuffer(UA_ByteString *bs, size_t length) {
  763|  4.30k|    UA_ByteString_init(bs);
  764|  4.30k|    if(length == 0) {
  ------------------
  |  Branch (764:8): [True: 0, False: 4.30k]
  ------------------
  765|      0|        bs->data = (u8*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|      0|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
  766|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  767|      0|    }
  768|  4.30k|    bs->data = (u8*)UA_calloc(1,length);
  ------------------
  |  |   20|  4.30k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
  769|  4.30k|    if(UA_UNLIKELY(!bs->data))
  ------------------
  |  |  579|  4.30k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  ------------------
  |  |  |  Branch (579:25): [True: 0, False: 4.30k]
  |  |  ------------------
  ------------------
  770|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  771|  4.30k|    bs->length = length;
  772|  4.30k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  4.30k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  773|  4.30k|}
UA_NODEID_NUMERIC:
  835|  8.21k|UA_NODEID_NUMERIC(UA_UInt16 nsIndex, UA_UInt32 identifier) {
  836|  8.21k|    UA_NodeId id;
  837|  8.21k|    memset(&id, 0, sizeof(UA_NodeId));
  838|  8.21k|    id.namespaceIndex = nsIndex;
  839|  8.21k|    id.identifierType = UA_NODEIDTYPE_NUMERIC;
  840|  8.21k|    id.identifier.numeric = identifier;
  841|  8.21k|    return id;
  842|  8.21k|}
nodeId_printEscape:
 1029|  4.50k|                   const UA_NamespaceMapping *nsMapping, UA_Escaping idEsc) {
 1030|       |    /* Try to map the NamespaceIndex to the Uri */
 1031|  4.50k|    UA_String nsUri = UA_STRING_NULL;
 1032|  4.50k|    if(id->namespaceIndex > 0 && nsMapping)
  ------------------
  |  Branch (1032:8): [True: 696, False: 3.81k]
  |  Branch (1032:34): [True: 0, False: 696]
  ------------------
 1033|      0|        UA_NamespaceMapping_index2Uri(nsMapping, id->namespaceIndex, &nsUri);
 1034|       |
 1035|       |    /* Compute the string length and print numerical identifiers. */
 1036|  4.50k|    u8 nsStr[7];
 1037|  4.50k|    u8 numIdStr[12];
 1038|  4.50k|    size_t idLen = nodeIdSize(id, nsStr, numIdStr, nsUri, idEsc);
 1039|  4.50k|    if(idLen == 0)
  ------------------
  |  Branch (1039:8): [True: 0, False: 4.50k]
  ------------------
 1040|      0|        return UA_STATUSCODE_BADINTERNALERROR;
  ------------------
  |  |   29|      0|#define UA_STATUSCODE_BADINTERNALERROR ((UA_StatusCode) 0x80020000)
  ------------------
 1041|       |
 1042|       |    /* Allocate memory if required */
 1043|  4.50k|    if(output->length == 0) {
  ------------------
  |  Branch (1043:8): [True: 743, False: 3.76k]
  ------------------
 1044|    743|        UA_StatusCode res = UA_ByteString_allocBuffer((UA_ByteString*)output, idLen);
 1045|    743|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    743|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1045:12): [True: 0, False: 743]
  ------------------
 1046|      0|            return res;
 1047|  3.76k|    } else {
 1048|  3.76k|        if(output->length < idLen)
  ------------------
  |  Branch (1048:12): [True: 743, False: 3.02k]
  ------------------
 1049|    743|            return UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED;
  ------------------
  |  |   47|    743|#define UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED ((UA_StatusCode) 0x80080000)
  ------------------
 1050|  3.02k|        output->length = idLen;
 1051|  3.02k|    }
 1052|       |
 1053|       |    /* Print the NodeId */
 1054|  3.76k|    u8 *pos = printNodeIdBody(id, nsUri, nsStr, numIdStr, output->data, nsMapping, idEsc);
 1055|  3.76k|    output->length = (size_t)(pos - output->data);
 1056|  3.76k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  3.76k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1057|  4.50k|}
UA_NodeId_printEx:
 1061|  4.50k|                  const UA_NamespaceMapping *nsMapping) {
 1062|  4.50k|    return nodeId_printEscape(id, output, nsMapping, UA_ESCAPING_NONE);
 1063|  4.50k|}
UA_NodeId_print:
 1066|  4.50k|UA_NodeId_print(const UA_NodeId *id, UA_String *output) {
 1067|       |    return UA_NodeId_printEx(id, output, NULL);
 1068|  4.50k|}
UA_copy:
 2104|  18.2k|UA_copy(const void *src, void *dst, const UA_DataType *type) {
 2105|  18.2k|    memset(dst, 0, type->memSize); /* init */
 2106|  18.2k|    UA_StatusCode retval = copyJumpTable[type->typeKind](src, dst, type);
 2107|  18.2k|    if(retval != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  18.2k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2107:8): [True: 0, False: 18.2k]
  ------------------
 2108|      0|        UA_clear(dst, type);
 2109|  18.2k|    return retval;
 2110|  18.2k|}
UA_clear:
 2207|  26.7k|UA_clear(void *p, const UA_DataType *type) {
 2208|  26.7k|    clearJumpTable[type->typeKind](p, type);
 2209|  26.7k|    memset(p, 0, type->memSize); /* init */
 2210|  26.7k|}
UA_order:
 2681|  27.9k|UA_Order UA_order(const void *p1, const void *p2, const UA_DataType *type) {
 2682|  27.9k|    return orderJumpTable[type->typeKind](p1, p2, type);
 2683|  27.9k|}
UA_Array_copy:
 2707|  18.2k|              void **dst, const UA_DataType *type) {
 2708|  18.2k|    if(size == 0) {
  ------------------
  |  Branch (2708:8): [True: 10.7k, False: 7.53k]
  ------------------
 2709|  10.7k|        if(src == NULL)
  ------------------
  |  Branch (2709:12): [True: 0, False: 10.7k]
  ------------------
 2710|      0|            *dst = NULL;
 2711|  10.7k|        else
 2712|  10.7k|            *dst= UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|  10.7k|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
 2713|  10.7k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  10.7k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2714|  10.7k|    }
 2715|       |
 2716|       |    /* Check the array consistency -- defensive programming in case the user
 2717|       |     * manually created an inconsistent array */
 2718|  7.53k|    if(UA_UNLIKELY(!type || !src))
  ------------------
  |  |  579|  15.0k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  ------------------
  |  |  |  Branch (579:25): [True: 0, False: 7.53k]
  |  |  |  Branch (579:43): [True: 0, False: 7.53k]
  |  |  |  Branch (579:43): [True: 0, False: 7.53k]
  |  |  ------------------
  ------------------
 2719|      0|        return UA_STATUSCODE_BADINTERNALERROR;
  ------------------
  |  |   29|      0|#define UA_STATUSCODE_BADINTERNALERROR ((UA_StatusCode) 0x80020000)
  ------------------
 2720|       |
 2721|  7.53k|    if(size > SIZE_MAX / type->memSize)
  ------------------
  |  Branch (2721:8): [True: 0, False: 7.53k]
  ------------------
 2722|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2723|  7.53k|    size_t byteSize = size * type->memSize;
 2724|       |
 2725|       |    /* calloc, so we don't have to check retval in every iteration of copying */
 2726|  7.53k|    *dst = UA_calloc(size, type->memSize);
  ------------------
  |  |   20|  7.53k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
 2727|  7.53k|    if(!*dst)
  ------------------
  |  Branch (2727:8): [True: 0, False: 7.53k]
  ------------------
 2728|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2729|       |
 2730|  7.53k|    if(type->pointerFree) {
  ------------------
  |  Branch (2730:8): [True: 7.53k, False: 0]
  ------------------
 2731|  7.53k|        memcpy(*dst, src, byteSize);
 2732|  7.53k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  7.53k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2733|  7.53k|    }
 2734|       |
 2735|      0|    uintptr_t ptrs = (uintptr_t)src;
 2736|      0|    uintptr_t ptrd = (uintptr_t)*dst;
 2737|      0|    UA_StatusCode retval = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2738|      0|    for(size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (2738:23): [True: 0, False: 0]
  ------------------
 2739|      0|        retval |= UA_copy((void*)ptrs, (void*)ptrd, type);
 2740|      0|        ptrs += type->memSize;
 2741|      0|        ptrd += type->memSize;
 2742|      0|    }
 2743|      0|    if(retval != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2743:8): [True: 0, False: 0]
  ------------------
 2744|      0|        UA_Array_delete(*dst, size, type);
 2745|       |        *dst = NULL;
 2746|      0|    }
 2747|      0|    return retval;
 2748|  7.53k|}
UA_Array_delete:
 2850|  34.0k|UA_Array_delete(void *p, size_t size, const UA_DataType *type) {
 2851|  34.0k|    if(!type->pointerFree) {
  ------------------
  |  Branch (2851:8): [True: 2.80k, False: 31.2k]
  ------------------
 2852|  2.80k|        uintptr_t ptr = (uintptr_t)p;
 2853|  18.1k|        for(size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (2853:27): [True: 15.3k, False: 2.80k]
  ------------------
 2854|  15.3k|            UA_clear((void*)ptr, type);
 2855|  15.3k|            ptr += type->memSize;
 2856|  15.3k|        }
 2857|  2.80k|    }
 2858|  34.0k|    UA_free((void*)((uintptr_t)p & ~(uintptr_t)UA_EMPTY_ARRAY_SENTINEL));
  ------------------
  |  |   19|  34.0k|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 2859|  34.0k|}
ua_types.c:nodeIdSize:
  928|  4.50k|           UA_Escaping idEsc) {
  929|       |    /* Namespace length */
  930|  4.50k|    size_t len = 0;
  931|  4.50k|    if(nsUri.data != NULL) {
  ------------------
  |  Branch (931:8): [True: 0, False: 4.50k]
  ------------------
  932|      0|        len += 5; /* nsu=; */
  933|      0|        len += UA_String_escapedSize(nsUri, UA_ESCAPING_PERCENT);
  934|  4.50k|    } else if(id->namespaceIndex > 0) {
  ------------------
  |  Branch (934:15): [True: 696, False: 3.81k]
  ------------------
  935|    696|        len += 4; /* ns=; */
  936|    696|        size_t nsStrSize = itoaUnsigned(id->namespaceIndex, (char*)nsStr, 10);
  937|    696|        nsStr[nsStrSize] = 0;
  938|    696|        len += nsStrSize;
  939|    696|    }
  940|       |
  941|  4.50k|    len += 2; /* ?= */
  942|       |
  943|  4.50k|    switch (id->identifierType) {
  944|    567|    case UA_NODEIDTYPE_NUMERIC: {
  ------------------
  |  Branch (944:5): [True: 567, False: 3.94k]
  ------------------
  945|    567|        size_t numIdStrSize = itoaUnsigned(id->identifier.numeric, (char*)numIdStr, 10);
  946|    567|        numIdStr[numIdStrSize] = 0;
  947|    567|        len += numIdStrSize;
  948|    567|        break;
  949|      0|    }
  950|  2.34k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (950:5): [True: 2.34k, False: 2.16k]
  ------------------
  951|  2.34k|        len += UA_String_escapedSize(id->identifier.string, idEsc);
  952|  2.34k|        break;
  953|    647|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (953:5): [True: 647, False: 3.86k]
  ------------------
  954|    647|        len += 36;
  955|    647|        break;
  956|    949|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (956:5): [True: 949, False: 3.55k]
  ------------------
  957|    949|        len += 4 * ((id->identifier.byteString.length + 2) / 3);
  958|    949|        break;
  959|      0|    default:
  ------------------
  |  Branch (959:5): [True: 0, False: 4.50k]
  ------------------
  960|      0|        len = 0;
  961|  4.50k|    }
  962|  4.50k|    return len;
  963|  4.50k|}
ua_types.c:printNodeIdBody:
  967|  3.76k|                const UA_NamespaceMapping *nsMapping, UA_Escaping idEsc) {
  968|  3.76k|    size_t len;
  969|       |
  970|       |    /* Encode the namespace */
  971|  3.76k|    if(nsUri.data != NULL) {
  ------------------
  |  Branch (971:8): [True: 0, False: 3.76k]
  ------------------
  972|      0|        memcpy(pos, "nsu=", 4);
  973|      0|        pos += 4;
  974|      0|        pos += UA_String_escapeInsert(pos, nsUri, UA_ESCAPING_PERCENT);
  975|      0|        *pos++ = ';';
  976|  3.76k|    } else if(id->namespaceIndex > 0) {
  ------------------
  |  Branch (976:15): [True: 486, False: 3.27k]
  ------------------
  977|    486|        memcpy(pos, "ns=", 3);
  978|    486|        pos += 3;
  979|    486|        len = strlen((char*)nsStr);
  980|    486|        memcpy(pos, nsStr, len);
  981|    486|        pos += len;
  982|    486|        *pos++ = ';';
  983|    486|    }
  984|       |
  985|       |    /* Encode the identifier */
  986|  3.76k|    switch(id->identifierType) {
  ------------------
  |  Branch (986:12): [True: 3.76k, False: 0]
  ------------------
  987|    567|    case UA_NODEIDTYPE_NUMERIC:
  ------------------
  |  Branch (987:5): [True: 567, False: 3.19k]
  ------------------
  988|    567|        memcpy(pos, "i=", 2);
  989|    567|        pos += 2;
  990|    567|        len = strlen((char*)numIdStr);
  991|    567|        memcpy(pos, numIdStr, len);
  992|    567|        pos += len;
  993|    567|        break;
  994|  1.60k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (994:5): [True: 1.60k, False: 2.16k]
  ------------------
  995|  1.60k|        memcpy(pos, "s=", 2);
  996|  1.60k|        pos += 2;
  997|  1.60k|        pos += UA_String_escapeInsert(pos, id->identifier.string, idEsc);
  998|  1.60k|        break;
  999|    647|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (999:5): [True: 647, False: 3.11k]
  ------------------
 1000|    647|        memcpy(pos, "g=", 2);
 1001|    647|        pos += 2;
 1002|    647|        UA_Guid_to_hex(&id->identifier.guid, pos, true);
 1003|    647|        pos += 36;
 1004|    647|        break;
 1005|    948|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (1005:5): [True: 948, False: 2.81k]
  ------------------
 1006|    948|        memcpy(pos, "b=", 2);
 1007|    948|        pos += 2;
 1008|       |        /* Use base64url encoding for percent-escaping.
 1009|       |         * Replace +/ with -_ and remove the padding. */
 1010|    948|        u8 *bpos = pos;
 1011|    948|        pos += UA_base64_buf(id->identifier.byteString.data,
 1012|    948|                             id->identifier.byteString.length, pos);
 1013|    948|        if(idEsc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (1013:12): [True: 0, False: 948]
  ------------------
 1014|    948|           idEsc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (1014:12): [True: 0, False: 948]
  ------------------
 1015|      0|            while(pos > bpos && pos[-1] == '=')
  ------------------
  |  Branch (1015:19): [True: 0, False: 0]
  |  Branch (1015:33): [True: 0, False: 0]
  ------------------
 1016|      0|                pos--;
 1017|      0|            for(; bpos < pos; bpos++) {
  ------------------
  |  Branch (1017:19): [True: 0, False: 0]
  ------------------
 1018|      0|                if(*bpos == '+') *bpos = '-';
  ------------------
  |  Branch (1018:20): [True: 0, False: 0]
  ------------------
 1019|      0|                else if(*bpos == '/') *bpos = '_';
  ------------------
  |  Branch (1019:25): [True: 0, False: 0]
  ------------------
 1020|      0|            }
 1021|      0|        }
 1022|    948|        break;
 1023|  3.76k|    }
 1024|  3.76k|    return pos;
 1025|  3.76k|}
ua_types.c:String_copy:
  284|  18.2k|String_copy(const void *src, void *dst, const UA_DataType *_) {
  285|  18.2k|    const UA_String *srcS = (const UA_String*)src;
  286|  18.2k|    UA_String *dstS = (UA_String *)dst;
  287|  18.2k|    UA_StatusCode res =
  288|  18.2k|        UA_Array_copy(srcS->data, srcS->length, (void**)&dstS->data,
  289|  18.2k|                      &UA_TYPES[UA_TYPES_BYTE]);
  ------------------
  |  |   96|  18.2k|#define UA_TYPES_BYTE 2
  ------------------
  290|  18.2k|    if(res == UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  18.2k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (290:8): [True: 18.2k, False: 0]
  ------------------
  291|  18.2k|        dstS->length = srcS->length;
  292|  18.2k|    return res;
  293|  18.2k|}
ua_types.c:nopClear:
 2169|  31.0k|static void nopClear(void *p, const UA_DataType *type) { }
ua_types.c:String_clear:
  296|  31.2k|String_clear(void *p, const UA_DataType *_) {
  297|  31.2k|    UA_String *s = (UA_String*)p;
  298|  31.2k|    UA_Array_delete(s->data, s->length, &UA_TYPES[UA_TYPES_BYTE]);
  ------------------
  |  |   96|  31.2k|#define UA_TYPES_BYTE 2
  ------------------
  299|  31.2k|}
ua_types.c:NodeId_clear:
  777|  17.7k|NodeId_clear(void *p, const UA_DataType *_) {
  778|  17.7k|    UA_NodeId *id = (UA_NodeId*)p;
  779|  17.7k|    switch(id->identifierType) {
  780|  2.94k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (780:5): [True: 2.94k, False: 14.7k]
  ------------------
  781|  4.59k|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (781:5): [True: 1.65k, False: 16.0k]
  ------------------
  782|  4.59k|        String_clear(&id->identifier.string, NULL);
  783|  4.59k|        break;
  784|  13.1k|    default: break;
  ------------------
  |  Branch (784:5): [True: 13.1k, False: 4.59k]
  ------------------
  785|  17.7k|    }
  786|  17.7k|}
ua_types.c:ExpandedNodeId_clear:
 1078|    899|ExpandedNodeId_clear(void *p, const UA_DataType *_) {
 1079|    899|    UA_ExpandedNodeId *id = (UA_ExpandedNodeId*)p;
 1080|    899|    NodeId_clear(&id->nodeId, NULL);
 1081|       |    String_clear(&id->namespaceUri, NULL);
 1082|    899|}
ua_types.c:QualifiedName_clear:
  402|  17.7k|QualifiedName_clear(void *p, const UA_DataType *_) {
  403|  17.7k|    UA_QualifiedName *qn = (UA_QualifiedName*)p;
  404|       |    String_clear(&qn->name, NULL);
  405|  17.7k|}
ua_types.c:clearStructure:
 2113|  18.7k|clearStructure(void *p, const UA_DataType *type) {
 2114|  18.7k|    uintptr_t ptr = (uintptr_t)p;
 2115|  87.9k|    for(size_t i = 0; i < type->membersSize; ++i) {
  ------------------
  |  Branch (2115:23): [True: 69.2k, False: 18.7k]
  ------------------
 2116|  69.2k|        const UA_DataTypeMember *m = &type->members[i];
 2117|  69.2k|        const UA_DataType *mt = m->memberType;
 2118|  69.2k|        ptr += m->padding;
 2119|  69.2k|        if(!m->isOptional) {
  ------------------
  |  Branch (2119:12): [True: 69.2k, False: 0]
  ------------------
 2120|  69.2k|            if(!m->isArray) {
  ------------------
  |  Branch (2120:16): [True: 66.4k, False: 2.80k]
  ------------------
 2121|  66.4k|                clearJumpTable[mt->typeKind]((void*)ptr, mt);
 2122|  66.4k|                ptr += mt->memSize;
 2123|  66.4k|            } else {
 2124|  2.80k|                size_t length = *(size_t*)ptr;
 2125|  2.80k|                ptr += sizeof(size_t);
 2126|  2.80k|                UA_Array_delete(*(void**)ptr, length, mt);
 2127|  2.80k|                ptr += sizeof(void*);
 2128|  2.80k|            }
 2129|  69.2k|        } else { /* field is optional */
 2130|      0|            if(!m->isArray) {
  ------------------
  |  Branch (2130:16): [True: 0, False: 0]
  ------------------
 2131|       |                /* optional scalar field is contained */
 2132|      0|                if((*(void *const *)ptr != NULL))
  ------------------
  |  Branch (2132:20): [True: 0, False: 0]
  ------------------
 2133|      0|                    UA_Array_delete(*(void **)ptr, 1, mt);
 2134|      0|                ptr += sizeof(void *);
 2135|      0|            } else {
 2136|       |                /* optional array field is contained */
 2137|      0|                if((*(void *const *)(ptr + sizeof(size_t)) != NULL)) {
  ------------------
  |  Branch (2137:20): [True: 0, False: 0]
  ------------------
 2138|      0|                    size_t length = *(size_t *)ptr;
 2139|      0|                    ptr += sizeof(size_t);
 2140|      0|                    UA_Array_delete(*(void **)ptr, length, mt);
 2141|      0|                    ptr += sizeof(void *);
 2142|      0|                } else { /* optional array field not contained */
 2143|      0|                    ptr += sizeof(size_t);
 2144|      0|                    ptr += sizeof(void *);
 2145|      0|                }
 2146|      0|            }
 2147|      0|        }
 2148|  69.2k|    }
 2149|  18.7k|}
ua_types.c:nodeIdOrder:
 2299|  16.6k|nodeIdOrder(const void *p1_, const void *p2_, const UA_DataType *_) {
 2300|  16.6k|    const UA_NodeId *p1 = (const UA_NodeId*)p1_;
 2301|  16.6k|    const UA_NodeId *p2 = (const UA_NodeId*)p2_;
 2302|       |    /* Compare namespaceIndex */
 2303|  16.6k|    if(p1->namespaceIndex != p2->namespaceIndex)
  ------------------
  |  Branch (2303:8): [True: 987, False: 15.6k]
  ------------------
 2304|    987|        return (p1->namespaceIndex < p2->namespaceIndex) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2304:16): [True: 972, False: 15]
  ------------------
 2305|       |
 2306|       |    /* Compare identifierType */
 2307|  15.6k|    if(p1->identifierType != p2->identifierType)
  ------------------
  |  Branch (2307:8): [True: 5.42k, False: 10.2k]
  ------------------
 2308|  5.42k|        return (p1->identifierType < p2->identifierType) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2308:16): [True: 5.42k, False: 4]
  ------------------
 2309|       |
 2310|       |    /* Compare the identifier */
 2311|  10.2k|    switch(p1->identifierType) {
 2312|  10.2k|    case UA_NODEIDTYPE_NUMERIC:
  ------------------
  |  Branch (2312:5): [True: 10.2k, False: 0]
  ------------------
 2313|  10.2k|    default:
  ------------------
  |  Branch (2313:5): [True: 0, False: 10.2k]
  ------------------
 2314|  10.2k|        if(p1->identifier.numeric != p2->identifier.numeric)
  ------------------
  |  Branch (2314:12): [True: 4.21k, False: 6.02k]
  ------------------
 2315|  4.21k|            return (p1->identifier.numeric < p2->identifier.numeric) ?
  ------------------
  |  Branch (2315:20): [True: 2.64k, False: 1.56k]
  ------------------
 2316|  2.64k|                UA_ORDER_LESS : UA_ORDER_MORE;
 2317|  6.02k|        return UA_ORDER_EQ;
 2318|      0|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (2318:5): [True: 0, False: 10.2k]
  ------------------
 2319|      0|        return guidOrder(&p1->identifier.guid, &p2->identifier.guid, NULL);
 2320|      0|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (2320:5): [True: 0, False: 10.2k]
  ------------------
 2321|      0|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (2321:5): [True: 0, False: 10.2k]
  ------------------
 2322|       |        return stringOrder(&p1->identifier.string, &p2->identifier.string, NULL);
 2323|  10.2k|    }
 2324|  10.2k|}
ua_types.c:stringOrder:
 2282|  11.2k|stringOrder(const void *p1_, const void *p2_, const UA_DataType *type) {
 2283|  11.2k|    const UA_String *p1 = (const UA_String*)p1_;
 2284|  11.2k|    const UA_String *p2 = (const UA_String*)p2_;
 2285|  11.2k|    if(p1->length != p2->length)
  ------------------
  |  Branch (2285:8): [True: 10.1k, False: 1.09k]
  ------------------
 2286|  10.1k|        return (p1->length < p2->length) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2286:16): [True: 7.84k, False: 2.33k]
  ------------------
 2287|       |    /* For zero-length arrays, every pointer not NULL is considered a
 2288|       |     * UA_EMPTY_ARRAY_SENTINEL. */
 2289|  1.09k|    if(p1->data == p2->data) return UA_ORDER_EQ;
  ------------------
  |  Branch (2289:8): [True: 0, False: 1.09k]
  ------------------
 2290|  1.09k|    if(p1->data == NULL) return UA_ORDER_LESS;
  ------------------
  |  Branch (2290:8): [True: 0, False: 1.09k]
  ------------------
 2291|  1.09k|    if(p2->data == NULL) return UA_ORDER_MORE;
  ------------------
  |  Branch (2291:8): [True: 0, False: 1.09k]
  ------------------
 2292|  1.09k|    int cmp = memcmp((const char*)p1->data, (const char*)p2->data, p1->length);
 2293|  1.09k|    if(cmp != 0)
  ------------------
  |  Branch (2293:8): [True: 441, False: 656]
  ------------------
 2294|    441|        return (cmp < 0) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2294:16): [True: 190, False: 251]
  ------------------
 2295|    656|    return UA_ORDER_EQ;
 2296|  1.09k|}

UA_Guid_parse:
   86|     60|UA_Guid_parse(UA_Guid *guid, const UA_String str) {
   87|     60|    UA_StatusCode res = parse_guid(guid, str.data, str.data + str.length);
   88|     60|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|     60|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (88:8): [True: 57, False: 3]
  ------------------
   89|     57|        *guid = UA_GUID_NULL;
   90|     60|    return res;
   91|     60|}
UA_NodeId_parseEx:
  323|    158|                  const UA_NamespaceMapping *nsMapping) {
  324|    158|    UA_StatusCode res =
  325|    158|        parse_nodeid(id, str.data, str.data+str.length, UA_ESCAPING_NONE, nsMapping);
  326|    158|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    158|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (326:8): [True: 153, False: 5]
  ------------------
  327|    153|        UA_NodeId_clear(id);
  328|    158|    return res;
  329|    158|}
UA_NodeId_parse:
  332|    158|UA_NodeId_parse(UA_NodeId *id, const UA_String str) {
  333|       |    return UA_NodeId_parseEx(id, str, NULL);
  334|    158|}
UA_ExpandedNodeId_parseEx:
  671|    488|                          size_t serverUrisSize, const UA_String *serverUris) {
  672|    488|    UA_StatusCode res =
  673|    488|        parse_expandednodeid(id, str.data, str.data + str.length, UA_ESCAPING_NONE,
  674|    488|                             nsMapping, serverUrisSize, serverUris);
  675|    488|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    488|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (675:8): [True: 411, False: 77]
  ------------------
  676|    411|        UA_ExpandedNodeId_clear(id);
  677|    488|    return res;
  678|    488|}
UA_ExpandedNodeId_parse:
  681|    488|UA_ExpandedNodeId_parse(UA_ExpandedNodeId *id, const UA_String str) {
  682|    488|    return UA_ExpandedNodeId_parseEx(id, str, NULL, 0, NULL);
  683|    488|}
UA_QualifiedName_parseEx:
  834|    151|                         const UA_NamespaceMapping *nsMapping) {
  835|    151|    const u8 *pos = str.data;
  836|    151|    const u8 *end = str.data + str.length;
  837|    151|    UA_StatusCode res = parse_qn(qn, pos, end, UA_ESCAPING_NONE, nsMapping, 0);
  838|    151|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    151|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (838:8): [True: 0, False: 151]
  ------------------
  839|      0|        UA_QualifiedName_clear(qn);
  840|    151|    return res;
  841|    151|}
UA_QualifiedName_parse:
  844|    151|UA_QualifiedName_parse(UA_QualifiedName *qn, const UA_String str) {
  845|       |    return UA_QualifiedName_parseEx(qn, str, NULL);
  846|    151|}
UA_RelativePath_parse:
  994|    985|UA_RelativePath_parse(UA_RelativePath *rp, const UA_String str) {
  995|    985|    const u8 *pos = str.data;
  996|    985|    const u8 *end = pos + str.length;
  997|    985|    UA_StatusCode res = parse_relativepath(rp, &pos, end, NULL, UA_ESCAPING_AND, 0);
  998|    985|    if(pos != end)
  ------------------
  |  Branch (998:8): [True: 62, False: 923]
  ------------------
  999|     62|        res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     62|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1000|    985|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    985|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1000:8): [True: 236, False: 749]
  ------------------
 1001|    236|        UA_RelativePath_clear(rp);
 1002|    985|    return res;
 1003|    985|}
sao_parseWithDefaultNsIdx:
 1230|    558|                          const UA_String str, UA_UInt16 defaultNsIndex) {
 1231|       |    /* Parse an AttributeOperand and convert */
 1232|    558|    UA_AttributeOperand ao;
 1233|    558|    const UA_NodeId hierarchRefs = UA_NS0ID(HIERARCHICALREFERENCES);
  ------------------
  |  |  458|    558|#define UA_NS0ID(ID) UA_NODEID_NUMERIC(0, UA_NS0ID_##ID)
  |  |  ------------------
  |  |  |  |   46|    558|#define UA_NS0ID_HIERARCHICALREFERENCES 33 /* ReferenceType */
  |  |  ------------------
  ------------------
 1234|    558|    UA_StatusCode res =
 1235|    558|        parseAttributeOperand(&ao, str, UA_NS0ID(BASEEVENTTYPE), defaultNsIndex);
  ------------------
  |  |  458|    558|#define UA_NS0ID(ID) UA_NODEID_NUMERIC(0, UA_NS0ID_##ID)
  |  |  ------------------
  |  |  |  |  771|    558|#define UA_NS0ID_BASEEVENTTYPE 2041 /* ObjectType */
  |  |  ------------------
  ------------------
 1236|    558|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    558|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1236:8): [True: 424, False: 134]
  ------------------
 1237|    424|        return res;
 1238|       |
 1239|       |    /* Initialize the sao and copy over */
 1240|    134|    UA_SimpleAttributeOperand_init(sao);
 1241|    134|    sao->attributeId = ao.attributeId;
 1242|    134|    sao->indexRange = ao.indexRange;
 1243|    134|    UA_String_init(&ao.indexRange);
 1244|    134|    sao->typeDefinitionId = ao.nodeId;
 1245|    134|    UA_NodeId_init(&ao.nodeId);
 1246|       |
 1247|    134|    if(ao.browsePath.elementsSize > 0) {
  ------------------
  |  Branch (1247:8): [True: 115, False: 19]
  ------------------
 1248|    115|        sao->browsePath = (UA_QualifiedName *)
 1249|    115|            UA_calloc(ao.browsePath.elementsSize, sizeof(UA_QualifiedName));
  ------------------
  |  |   20|    115|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
 1250|    115|        if(!sao->browsePath) {
  ------------------
  |  Branch (1250:12): [True: 0, False: 115]
  ------------------
 1251|      0|            res = UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 1252|      0|            goto cleanup;
 1253|      0|        }
 1254|    115|        sao->browsePathSize = ao.browsePath.elementsSize;
 1255|    115|    }
 1256|       |
 1257|  1.54k|    for(size_t i = 0; i < ao.browsePath.elementsSize; i++) {
  ------------------
  |  Branch (1257:23): [True: 1.45k, False: 88]
  ------------------
 1258|  1.45k|        UA_RelativePathElement *e = &ao.browsePath.elements[i];
 1259|       |
 1260|       |        /* Must use hierarchical references (/) */
 1261|  1.45k|        if(!UA_NodeId_equal(&e->referenceTypeId, &hierarchRefs)) {
  ------------------
  |  Branch (1261:12): [True: 44, False: 1.41k]
  ------------------
 1262|     44|            res = UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|     44|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 1263|     44|            goto cleanup;
 1264|     44|        }
 1265|       |
 1266|       |        /* Includes subtypes and not inverse */
 1267|  1.41k|        if(!e->includeSubtypes || e->isInverse) {
  ------------------
  |  Branch (1267:12): [True: 1, False: 1.41k]
  |  Branch (1267:35): [True: 1, False: 1.40k]
  ------------------
 1268|      2|            res = UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      2|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 1269|      2|            goto cleanup;
 1270|      2|        }
 1271|       |
 1272|  1.40k|        sao->browsePath[i] = e->targetName;
 1273|  1.40k|        UA_QualifiedName_init(&e->targetName);
 1274|  1.40k|    }
 1275|       |
 1276|    134| cleanup:
 1277|    134|    UA_AttributeOperand_clear(&ao);
 1278|    134|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    134|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1278:8): [True: 46, False: 88]
  ------------------
 1279|     46|        UA_SimpleAttributeOperand_clear(sao);
 1280|    134|    return res;
 1281|    134|}
UA_SimpleAttributeOperand_parse:
 1285|    558|                                const UA_String str) {
 1286|    558|    return sao_parseWithDefaultNsIdx(sao, str, 0);
 1287|    558|}
UA_ReadValueId_parse:
 1290|    427|UA_ReadValueId_parse(UA_ReadValueId *rvi, const UA_String str) {
 1291|       |    /* Parse an AttributeOperand and convert */
 1292|    427|    UA_AttributeOperand ao;
 1293|    427|    UA_StatusCode res = parseAttributeOperand(&ao, str, UA_NODEID_NULL, 0);
 1294|    427|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    427|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1294:8): [True: 376, False: 51]
  ------------------
 1295|    376|        return res;
 1296|       |
 1297|     51|    if(ao.browsePath.elementsSize > 0) {
  ------------------
  |  Branch (1297:8): [True: 41, False: 10]
  ------------------
 1298|     41|        UA_AttributeOperand_clear(&ao);
 1299|     41|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     41|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1300|     41|    }
 1301|       |
 1302|     10|    UA_ReadValueId_init(rvi);
 1303|     10|    rvi->nodeId = ao.nodeId;
 1304|     10|    rvi->attributeId = ao.attributeId;
 1305|     10|    rvi->indexRange = ao.indexRange;
 1306|     10|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|     10|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1307|     51|}
ua_types_lex.c:parse_guid:
   50|    970|parse_guid(UA_Guid *guid, const UA_Byte *s, const UA_Byte *e) {
   51|    970|    size_t len = (size_t)(e - s);
   52|    970|    if(len != 36 || s[8] != '-' || s[13] != '-' || s[23] != '-')
  ------------------
  |  Branch (52:8): [True: 37, False: 933]
  |  Branch (52:21): [True: 5, False: 928]
  |  Branch (52:36): [True: 1, False: 927]
  |  Branch (52:52): [True: 9, False: 918]
  ------------------
   53|     52|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     52|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   54|       |
   55|    918|    UA_UInt32 tmp;
   56|    918|    if(UA_readNumberWithBase(s, 8, &tmp, 16) != 8)
  ------------------
  |  Branch (56:8): [True: 5, False: 913]
  ------------------
   57|      5|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      5|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   58|    913|    guid->data1 = tmp;
   59|       |
   60|    913|    if(UA_readNumberWithBase(&s[9], 4, &tmp, 16) != 4)
  ------------------
  |  Branch (60:8): [True: 3, False: 910]
  ------------------
   61|      3|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      3|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   62|    910|    guid->data2 = (UA_UInt16)tmp;
   63|       |
   64|    910|    if(UA_readNumberWithBase(&s[14], 4, &tmp, 16) != 4)
  ------------------
  |  Branch (64:8): [True: 3, False: 907]
  ------------------
   65|      3|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      3|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   66|    907|    guid->data3 = (UA_UInt16)tmp;
   67|       |
   68|    907|    if(UA_readNumberWithBase(&s[19], 2, &tmp, 16) != 2)
  ------------------
  |  Branch (68:8): [True: 1, False: 906]
  ------------------
   69|      1|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      1|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   70|    906|    guid->data4[0] = (UA_Byte)tmp;
   71|       |
   72|    906|    if(UA_readNumberWithBase(&s[21], 2, &tmp, 16) != 2)
  ------------------
  |  Branch (72:8): [True: 2, False: 904]
  ------------------
   73|      2|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      2|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   74|    904|    guid->data4[1] = (UA_Byte)tmp;
   75|       |
   76|  6.30k|    for(size_t pos = 2, spos = 24; pos < 8; pos++, spos += 2) {
  ------------------
  |  Branch (76:36): [True: 5.40k, False: 897]
  ------------------
   77|  5.40k|        if(UA_readNumberWithBase(&s[spos], 2, &tmp, 16) != 2)
  ------------------
  |  Branch (77:12): [True: 7, False: 5.40k]
  ------------------
   78|      7|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      7|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
   79|  5.40k|        guid->data4[pos] = (UA_Byte)tmp;
   80|  5.40k|    }
   81|       |
   82|    897|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    897|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
   83|    904|}
ua_types_lex.c:parse_nodeid:
  148|  8.41k|             UA_Escaping idEsc, const UA_NamespaceMapping *nsMapping) {
  149|  8.41k|    *id = UA_NODEID_NULL; /* Reset the NodeId */
  150|  8.41k|    LexContext context;
  151|  8.41k|    memset(&context, 0, sizeof(LexContext));
  152|  8.41k|    UA_Byte *begin = (UA_Byte*)(uintptr_t)pos;
  153|  8.41k|    const u8 *ns = NULL, *nsu = NULL, *body = NULL;
  154|       |
  155|       |    
  156|  8.41k|{
  157|  8.41k|	u8 yych;
  158|  8.41k|	yych = YYPEEK();
  ------------------
  |  |   33|  8.41k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  8.41k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  8.35k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 8.35k, False: 60]
  |  |  ------------------
  ------------------
  159|  8.41k|	switch (yych) {
  160|  1.50k|		case 'b':
  ------------------
  |  Branch (160:3): [True: 1.50k, False: 6.91k]
  ------------------
  161|  2.41k|		case 'g':
  ------------------
  |  Branch (161:3): [True: 908, False: 7.50k]
  ------------------
  162|  4.15k|		case 'i':
  ------------------
  |  Branch (162:3): [True: 1.74k, False: 6.66k]
  ------------------
  163|  5.75k|		case 's':
  ------------------
  |  Branch (163:3): [True: 1.59k, False: 6.82k]
  ------------------
  164|  5.75k|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|  5.75k|#define YYSTAGN(t) t = NULL
  ------------------
  165|  5.75k|			YYSTAGN(context.yyt2);
  ------------------
  |  |   39|  5.75k|#define YYSTAGN(t) t = NULL
  ------------------
  166|  5.75k|			goto yy3;
  167|  1.69k|		case 'n': goto yy4;
  ------------------
  |  Branch (167:3): [True: 1.69k, False: 6.72k]
  ------------------
  168|    967|		default: goto yy1;
  ------------------
  |  Branch (168:3): [True: 967, False: 7.45k]
  ------------------
  169|  8.41k|	}
  170|    967|yy1:
  171|    967|	YYSKIP();
  ------------------
  |  |   35|    967|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    967|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  172|  1.20k|yy2:
  173|  1.20k|	{ (void)pos; return UA_STATUSCODE_BADDECODINGERROR; }
  ------------------
  |  |   44|  1.20k|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  174|  5.75k|yy3:
  175|  5.75k|	YYSKIP();
  ------------------
  |  |   35|  5.75k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  5.75k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  176|  5.75k|	yych = YYPEEK();
  ------------------
  |  |   33|  5.75k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  5.75k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  5.73k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 5.73k, False: 25]
  |  |  ------------------
  ------------------
  177|  5.75k|	switch (yych) {
  178|  5.71k|		case '=': goto yy5;
  ------------------
  |  Branch (178:3): [True: 5.71k, False: 43]
  ------------------
  179|     43|		default: goto yy2;
  ------------------
  |  Branch (179:3): [True: 43, False: 5.71k]
  ------------------
  180|  5.75k|	}
  181|  1.69k|yy4:
  182|  1.69k|	YYSKIP();
  ------------------
  |  |   35|  1.69k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.69k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  183|  1.69k|	YYBACKUP();
  ------------------
  |  |   36|  1.69k|#define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   32|  1.69k|#define YYMARKER context.marker
  |  |  ------------------
  |  |               #define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|  1.69k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  184|  1.69k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.69k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.69k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.69k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.69k, False: 1]
  |  |  ------------------
  ------------------
  185|  1.69k|	switch (yych) {
  186|  1.67k|		case 's': goto yy6;
  ------------------
  |  Branch (186:3): [True: 1.67k, False: 17]
  ------------------
  187|     17|		default: goto yy2;
  ------------------
  |  Branch (187:3): [True: 17, False: 1.67k]
  ------------------
  188|  1.69k|	}
  189|  7.21k|yy5:
  190|  7.21k|	YYSKIP();
  ------------------
  |  |   35|  7.21k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  7.21k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  191|  7.21k|	nsu = context.yyt2;
  192|  7.21k|	ns = context.yyt1;
  193|  7.21k|	YYSTAGP(body);
  ------------------
  |  |   38|  7.21k|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|  7.21k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  194|  7.21k|	YYSHIFTSTAG(body, -2);
  ------------------
  |  |   40|  7.21k|#define YYSHIFTSTAG(t, shift) t += shift
  ------------------
  195|  7.21k|	{ goto match; }
  196|  1.67k|yy6:
  197|  1.67k|	YYSKIP();
  ------------------
  |  |   35|  1.67k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.67k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  198|  1.67k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.67k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.67k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.67k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.67k, False: 2]
  |  |  ------------------
  ------------------
  199|  1.67k|	switch (yych) {
  200|    761|		case '=': goto yy8;
  ------------------
  |  Branch (200:3): [True: 761, False: 917]
  ------------------
  201|    913|		case 'u': goto yy9;
  ------------------
  |  Branch (201:3): [True: 913, False: 765]
  ------------------
  202|      4|		default: goto yy7;
  ------------------
  |  Branch (202:3): [True: 4, False: 1.67k]
  ------------------
  203|  1.67k|	}
  204|    177|yy7:
  205|    177|	YYRESTORE();
  ------------------
  |  |   37|    177|#define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   31|    177|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   32|    177|#define YYMARKER context.marker
  |  |  ------------------
  ------------------
  206|    177|	goto yy2;
  207|    761|yy8:
  208|    761|	YYSKIP();
  ------------------
  |  |   35|    761|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    761|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  209|    761|	yych = YYPEEK();
  ------------------
  |  |   33|    761|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    761|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    759|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 759, False: 2]
  |  |  ------------------
  ------------------
  210|    761|	switch (yych) {
  211|     92|		case '0':
  ------------------
  |  Branch (211:3): [True: 92, False: 669]
  ------------------
  212|    349|		case '1':
  ------------------
  |  Branch (212:3): [True: 257, False: 504]
  ------------------
  213|    408|		case '2':
  ------------------
  |  Branch (213:3): [True: 59, False: 702]
  ------------------
  214|    471|		case '3':
  ------------------
  |  Branch (214:3): [True: 63, False: 698]
  ------------------
  215|    538|		case '4':
  ------------------
  |  Branch (215:3): [True: 67, False: 694]
  ------------------
  216|    561|		case '5':
  ------------------
  |  Branch (216:3): [True: 23, False: 738]
  ------------------
  217|    581|		case '6':
  ------------------
  |  Branch (217:3): [True: 20, False: 741]
  ------------------
  218|    599|		case '7':
  ------------------
  |  Branch (218:3): [True: 18, False: 743]
  ------------------
  219|    714|		case '8':
  ------------------
  |  Branch (219:3): [True: 115, False: 646]
  ------------------
  220|    752|		case '9':
  ------------------
  |  Branch (220:3): [True: 38, False: 723]
  ------------------
  221|    752|			YYSTAGP(context.yyt1);
  ------------------
  |  |   38|    752|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    752|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  222|    752|			goto yy10;
  223|      9|		default: goto yy7;
  ------------------
  |  Branch (223:3): [True: 9, False: 752]
  ------------------
  224|    761|	}
  225|    913|yy9:
  226|    913|	YYSKIP();
  ------------------
  |  |   35|    913|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    913|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  227|    913|	yych = YYPEEK();
  ------------------
  |  |   33|    913|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    913|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    911|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 911, False: 2]
  |  |  ------------------
  ------------------
  228|    913|	switch (yych) {
  229|    901|		case '=': goto yy11;
  ------------------
  |  Branch (229:3): [True: 901, False: 12]
  ------------------
  230|     12|		default: goto yy7;
  ------------------
  |  Branch (230:3): [True: 12, False: 901]
  ------------------
  231|    913|	}
  232|  14.7k|yy10:
  233|  14.7k|	YYSKIP();
  ------------------
  |  |   35|  14.7k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  14.7k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  234|  14.7k|	yych = YYPEEK();
  ------------------
  |  |   33|  14.7k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  14.7k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  14.6k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 14.6k, False: 84]
  |  |  ------------------
  ------------------
  235|  14.7k|	switch (yych) {
  236|  2.64k|		case '0':
  ------------------
  |  Branch (236:3): [True: 2.64k, False: 12.0k]
  ------------------
  237|  11.5k|		case '1':
  ------------------
  |  Branch (237:3): [True: 8.93k, False: 5.78k]
  ------------------
  238|  11.8k|		case '2':
  ------------------
  |  Branch (238:3): [True: 308, False: 14.4k]
  ------------------
  239|  12.1k|		case '3':
  ------------------
  |  Branch (239:3): [True: 285, False: 14.4k]
  ------------------
  240|  12.4k|		case '4':
  ------------------
  |  Branch (240:3): [True: 259, False: 14.4k]
  ------------------
  241|  12.7k|		case '5':
  ------------------
  |  Branch (241:3): [True: 329, False: 14.3k]
  ------------------
  242|  12.9k|		case '6':
  ------------------
  |  Branch (242:3): [True: 232, False: 14.4k]
  ------------------
  243|  13.2k|		case '7':
  ------------------
  |  Branch (243:3): [True: 300, False: 14.4k]
  ------------------
  244|  13.6k|		case '8':
  ------------------
  |  Branch (244:3): [True: 357, False: 14.3k]
  ------------------
  245|  13.9k|		case '9': goto yy10;
  ------------------
  |  Branch (245:3): [True: 317, False: 14.3k]
  ------------------
  246|    665|		case ';':
  ------------------
  |  Branch (246:3): [True: 665, False: 14.0k]
  ------------------
  247|    665|			YYSTAGN(context.yyt2);
  ------------------
  |  |   39|    665|#define YYSTAGN(t) t = NULL
  ------------------
  248|    665|			goto yy12;
  249|     87|		default: goto yy7;
  ------------------
  |  Branch (249:3): [True: 87, False: 14.6k]
  ------------------
  250|  14.7k|	}
  251|    901|yy11:
  252|    901|	YYSKIP();
  ------------------
  |  |   35|    901|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    901|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  253|    901|	yych = YYPEEK();
  ------------------
  |  |   33|    901|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    901|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    899|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 899, False: 2]
  |  |  ------------------
  ------------------
  254|    901|	switch (yych) {
  255|      2|		case 0x00: goto yy7;
  ------------------
  |  Branch (255:3): [True: 2, False: 899]
  ------------------
  256|    579|		case ';':
  ------------------
  |  Branch (256:3): [True: 579, False: 322]
  ------------------
  257|    579|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|    579|#define YYSTAGN(t) t = NULL
  ------------------
  258|    579|			YYSTAGP(context.yyt2);
  ------------------
  |  |   38|    579|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    579|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  259|    579|			goto yy12;
  260|    320|		default:
  ------------------
  |  Branch (260:3): [True: 320, False: 581]
  ------------------
  261|    320|			YYSTAGP(context.yyt2);
  ------------------
  |  |   38|    320|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    320|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  262|    320|			goto yy13;
  263|    901|	}
  264|  1.55k|yy12:
  265|  1.55k|	YYSKIP();
  ------------------
  |  |   35|  1.55k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.55k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  266|  1.55k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.55k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.55k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.53k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.53k, False: 18]
  |  |  ------------------
  ------------------
  267|  1.55k|	switch (yych) {
  268|    523|		case 'b':
  ------------------
  |  Branch (268:3): [True: 523, False: 1.03k]
  ------------------
  269|    764|		case 'g':
  ------------------
  |  Branch (269:3): [True: 241, False: 1.31k]
  ------------------
  270|  1.02k|		case 'i':
  ------------------
  |  Branch (270:3): [True: 260, False: 1.29k]
  ------------------
  271|  1.53k|		case 's': goto yy14;
  ------------------
  |  Branch (271:3): [True: 513, False: 1.04k]
  ------------------
  272|     18|		default: goto yy7;
  ------------------
  |  Branch (272:3): [True: 18, False: 1.53k]
  ------------------
  273|  1.55k|	}
  274|    630|yy13:
  275|    630|	YYSKIP();
  ------------------
  |  |   35|    630|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    630|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  276|    630|	yych = YYPEEK();
  ------------------
  |  |   33|    630|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    630|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    621|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 621, False: 9]
  |  |  ------------------
  ------------------
  277|    630|	switch (yych) {
  278|      9|		case 0x00: goto yy7;
  ------------------
  |  Branch (278:3): [True: 9, False: 621]
  ------------------
  279|    311|		case ';':
  ------------------
  |  Branch (279:3): [True: 311, False: 319]
  ------------------
  280|    311|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|    311|#define YYSTAGN(t) t = NULL
  ------------------
  281|    311|			goto yy12;
  282|    310|		default: goto yy13;
  ------------------
  |  Branch (282:3): [True: 310, False: 320]
  ------------------
  283|    630|	}
  284|  1.53k|yy14:
  285|  1.53k|	YYSKIP();
  ------------------
  |  |   35|  1.53k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.53k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  286|  1.53k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.53k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.53k|#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: 26]
  |  |  ------------------
  ------------------
  287|  1.53k|	switch (yych) {
  288|  1.50k|		case '=': goto yy5;
  ------------------
  |  Branch (288:3): [True: 1.50k, False: 36]
  ------------------
  289|     36|		default: goto yy7;
  ------------------
  |  Branch (289:3): [True: 36, False: 1.50k]
  ------------------
  290|  1.53k|	}
  291|  1.53k|}
  292|       |
  293|       |
  294|  7.21k| match:
  295|  7.21k|    if(nsu) {
  ------------------
  |  Branch (295:8): [True: 851, False: 6.36k]
  ------------------
  296|       |        /* NamespaceUri */
  297|    851|        UA_String nsUri = {(size_t)(body - 1 - nsu), (UA_Byte*)(uintptr_t)nsu};
  298|    851|        UA_StatusCode res = escapedUri2Index(nsUri, &id->namespaceIndex, nsMapping);
  299|    851|        if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|    851|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (299:12): [True: 851, False: 0]
  ------------------
  300|       |            /* Return the entire NodeId string s=... */
  301|    851|            UA_String total = {(size_t)((const UA_Byte*)end - begin), begin};
  302|    851|            id->identifierType = UA_NODEIDTYPE_STRING;
  303|    851|            return UA_String_copy(&total, &id->identifier.string);
  304|    851|        }
  305|  6.36k|    } else if(ns) {
  ------------------
  |  Branch (305:15): [True: 650, False: 5.71k]
  ------------------
  306|       |        /* NamespaceIndex */
  307|    650|        UA_UInt32 tmp;
  308|    650|        size_t len = (size_t)(body - 1 - ns);
  309|    650|        if(UA_readNumber((const UA_Byte*)ns, len, &tmp) != len)
  ------------------
  |  Branch (309:12): [True: 0, False: 650]
  ------------------
  310|      0|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  311|    650|        id->namespaceIndex = (UA_UInt16)tmp;
  312|    650|        if(nsMapping)
  ------------------
  |  Branch (312:12): [True: 0, False: 650]
  ------------------
  313|      0|            id->namespaceIndex =
  314|      0|                UA_NamespaceMapping_remote2Local(nsMapping, id->namespaceIndex);
  315|    650|    }
  316|       |
  317|       |    /* From the current position until the end */
  318|  6.36k|    return parse_nodeid_body(id, body, end, idEsc);
  319|  7.21k|}
ua_types_lex.c:escapedUri2Index:
   95|  1.09k|                 const UA_NamespaceMapping *nsMapping) {
   96|  1.09k|    if(!nsMapping)
  ------------------
  |  Branch (96:8): [True: 1.09k, False: 0]
  ------------------
   97|  1.09k|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|  1.09k|#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|  6.47k|parse_nodeid_body(UA_NodeId *id, const u8 *body, const u8 *end, UA_Escaping esc) {
  110|  6.47k|    UA_StatusCode res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  6.47k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  111|  6.47k|    UA_String str = {(size_t)(end - (body+2)), (UA_Byte*)(uintptr_t)body + 2};
  112|  6.47k|    switch(*body) {
  113|  1.82k|    case 'i':
  ------------------
  |  Branch (113:5): [True: 1.82k, False: 4.64k]
  ------------------
  114|  1.82k|        id->identifierType = UA_NODEIDTYPE_NUMERIC;
  115|  1.82k|        if(UA_readNumber(str.data, str.length, &id->identifier.numeric) != str.length)
  ------------------
  |  Branch (115:12): [True: 60, False: 1.76k]
  ------------------
  116|     60|            res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     60|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  117|  1.82k|        break;
  118|  2.08k|    case 's':
  ------------------
  |  Branch (118:5): [True: 2.08k, False: 4.39k]
  ------------------
  119|  2.08k|        id->identifierType = UA_NODEIDTYPE_STRING;
  120|  2.08k|        res |= UA_String_copy(&str, &id->identifier.string);
  121|  2.08k|        res |= UA_String_unescape(&id->identifier.string, false, esc);
  122|  2.08k|        break;
  123|    910|    case 'g':
  ------------------
  |  Branch (123:5): [True: 910, False: 5.56k]
  ------------------
  124|    910|        id->identifierType = UA_NODEIDTYPE_GUID;
  125|    910|        res = parse_guid(&id->identifier.guid, str.data, end);
  126|    910|        break;
  127|  1.65k|    case 'b':
  ------------------
  |  Branch (127:5): [True: 1.65k, False: 4.82k]
  ------------------
  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.65k|        id->identifierType = UA_NODEIDTYPE_BYTESTRING;
  132|  1.65k|        id->identifier.byteString.data =
  133|  1.65k|            UA_unbase64(str.data, str.length, &id->identifier.byteString.length);
  134|  1.65k|        if(!id->identifier.byteString.data) {
  ------------------
  |  Branch (134:12): [True: 63, False: 1.58k]
  ------------------
  135|     63|            UA_assert(id->identifier.byteString.length == 0);
  ------------------
  |  |  399|     63|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (135:13): [True: 63, False: 0]
  ------------------
  136|     63|            res = UA_STATUSCODE_BADDECODINGERROR; /* Returned on error by UA_unbase64 */
  ------------------
  |  |   44|     63|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  137|     63|        }
  138|  1.65k|        break;
  139|  1.65k|    default:
  ------------------
  |  Branch (139:5): [True: 0, False: 6.47k]
  ------------------
  140|      0|        res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  141|      0|        break;
  142|  6.47k|    }
  143|  6.47k|    return res;
  144|  6.47k|}
ua_types_lex.c:parse_expandednodeid:
  339|    488|                     size_t serverUrisSize, const UA_String *serverUris) {
  340|    488|    *id = UA_EXPANDEDNODEID_NULL; /* Reset the NodeId */
  341|    488|    LexContext context;
  342|    488|    memset(&context, 0, sizeof(LexContext));
  343|    488|    const u8 *svr = NULL, *sve = NULL, *svu = NULL,
  344|    488|        *nsu = NULL, *ns = NULL, *body = NULL, *begin = pos;
  345|       |
  346|       |    
  347|    488|{
  348|    488|	u8 yych;
  349|    488|	yych = YYPEEK();
  ------------------
  |  |   33|    488|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    488|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    488|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 488, False: 0]
  |  |  ------------------
  ------------------
  350|    488|	switch (yych) {
  351|     35|		case 'b':
  ------------------
  |  Branch (351:3): [True: 35, False: 453]
  ------------------
  352|     44|		case 'g':
  ------------------
  |  Branch (352:3): [True: 9, False: 479]
  ------------------
  353|     70|		case 'i':
  ------------------
  |  Branch (353:3): [True: 26, False: 462]
  ------------------
  354|     70|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|     70|#define YYSTAGN(t) t = NULL
  ------------------
  355|     70|			YYSTAGN(context.yyt2);
  ------------------
  |  |   39|     70|#define YYSTAGN(t) t = NULL
  ------------------
  356|     70|			YYSTAGN(context.yyt3);
  ------------------
  |  |   39|     70|#define YYSTAGN(t) t = NULL
  ------------------
  357|     70|			YYSTAGN(context.yyt4);
  ------------------
  |  |   39|     70|#define YYSTAGN(t) t = NULL
  ------------------
  358|     70|			YYSTAGN(context.yyt5);
  ------------------
  |  |   39|     70|#define YYSTAGN(t) t = NULL
  ------------------
  359|     70|			goto yy18;
  360|    113|		case 'n':
  ------------------
  |  Branch (360:3): [True: 113, False: 375]
  ------------------
  361|    113|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|    113|#define YYSTAGN(t) t = NULL
  ------------------
  362|    113|			YYSTAGN(context.yyt2);
  ------------------
  |  |   39|    113|#define YYSTAGN(t) t = NULL
  ------------------
  363|    113|			YYSTAGN(context.yyt5);
  ------------------
  |  |   39|    113|#define YYSTAGN(t) t = NULL
  ------------------
  364|    113|			goto yy19;
  365|    301|		case 's':
  ------------------
  |  Branch (365:3): [True: 301, False: 187]
  ------------------
  366|    301|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|    301|#define YYSTAGN(t) t = NULL
  ------------------
  367|    301|			YYSTAGN(context.yyt2);
  ------------------
  |  |   39|    301|#define YYSTAGN(t) t = NULL
  ------------------
  368|    301|			YYSTAGN(context.yyt3);
  ------------------
  |  |   39|    301|#define YYSTAGN(t) t = NULL
  ------------------
  369|    301|			YYSTAGN(context.yyt4);
  ------------------
  |  |   39|    301|#define YYSTAGN(t) t = NULL
  ------------------
  370|    301|			YYSTAGN(context.yyt5);
  ------------------
  |  |   39|    301|#define YYSTAGN(t) t = NULL
  ------------------
  371|    301|			goto yy20;
  372|      4|		default: goto yy16;
  ------------------
  |  Branch (372:3): [True: 4, False: 484]
  ------------------
  373|    488|	}
  374|      4|yy16:
  375|      4|	YYSKIP();
  ------------------
  |  |   35|      4|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|      4|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  376|    369|yy17:
  377|    369|	{ (void)pos; return UA_STATUSCODE_BADDECODINGERROR; }
  ------------------
  |  |   44|    369|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  378|     70|yy18:
  379|     70|	YYSKIP();
  ------------------
  |  |   35|     70|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|     70|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  380|     70|	yych = YYPEEK();
  ------------------
  |  |   33|     70|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     70|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     67|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 67, False: 3]
  |  |  ------------------
  ------------------
  381|     70|	switch (yych) {
  382|     49|		case '=': goto yy21;
  ------------------
  |  Branch (382:3): [True: 49, False: 21]
  ------------------
  383|     21|		default: goto yy17;
  ------------------
  |  Branch (383:3): [True: 21, False: 49]
  ------------------
  384|     70|	}
  385|    113|yy19:
  386|    113|	YYSKIP();
  ------------------
  |  |   35|    113|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    113|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  387|    113|	YYBACKUP();
  ------------------
  |  |   36|    113|#define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   32|    113|#define YYMARKER context.marker
  |  |  ------------------
  |  |               #define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    113|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  388|    113|	yych = YYPEEK();
  ------------------
  |  |   33|    113|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    113|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    112|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 112, False: 1]
  |  |  ------------------
  ------------------
  389|    113|	switch (yych) {
  390|    111|		case 's': goto yy22;
  ------------------
  |  Branch (390:3): [True: 111, False: 2]
  ------------------
  391|      2|		default: goto yy17;
  ------------------
  |  Branch (391:3): [True: 2, False: 111]
  ------------------
  392|    113|	}
  393|    301|yy20:
  394|    301|	YYSKIP();
  ------------------
  |  |   35|    301|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    301|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  395|    301|	YYBACKUP();
  ------------------
  |  |   36|    301|#define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   32|    301|#define YYMARKER context.marker
  |  |  ------------------
  |  |               #define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    301|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  396|    301|	yych = YYPEEK();
  ------------------
  |  |   33|    301|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    301|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    300|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 300, False: 1]
  |  |  ------------------
  ------------------
  397|    301|	switch (yych) {
  398|      1|		case '=': goto yy21;
  ------------------
  |  Branch (398:3): [True: 1, False: 300]
  ------------------
  399|    299|		case 'v': goto yy24;
  ------------------
  |  Branch (399:3): [True: 299, False: 2]
  ------------------
  400|      1|		default: goto yy17;
  ------------------
  |  Branch (400:3): [True: 1, False: 300]
  ------------------
  401|    301|	}
  402|    119|yy21:
  403|    119|	YYSKIP();
  ------------------
  |  |   35|    119|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    119|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  404|    119|	svr = context.yyt5;
  405|    119|	svu = context.yyt1;
  406|    119|	sve = context.yyt2;
  407|    119|	ns = context.yyt3;
  408|    119|	nsu = context.yyt4;
  409|    119|	YYSTAGP(body);
  ------------------
  |  |   38|    119|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    119|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  410|    119|	YYSHIFTSTAG(body, -2);
  ------------------
  |  |   40|    119|#define YYSHIFTSTAG(t, shift) t += shift
  ------------------
  411|    119|	{ goto match; }
  412|    177|yy22:
  413|    177|	YYSKIP();
  ------------------
  |  |   35|    177|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    177|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  414|    177|	yych = YYPEEK();
  ------------------
  |  |   33|    177|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    177|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    175|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 175, False: 2]
  |  |  ------------------
  ------------------
  415|    177|	switch (yych) {
  416|     87|		case '=': goto yy25;
  ------------------
  |  Branch (416:3): [True: 87, False: 90]
  ------------------
  417|     88|		case 'u': goto yy26;
  ------------------
  |  Branch (417:3): [True: 88, False: 89]
  ------------------
  418|      2|		default: goto yy23;
  ------------------
  |  Branch (418:3): [True: 2, False: 175]
  ------------------
  419|    177|	}
  420|    341|yy23:
  421|    341|	YYRESTORE();
  ------------------
  |  |   37|    341|#define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   31|    341|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   32|    341|#define YYMARKER context.marker
  |  |  ------------------
  ------------------
  422|    341|	goto yy17;
  423|    299|yy24:
  424|    299|	YYSKIP();
  ------------------
  |  |   35|    299|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    299|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  425|    299|	yych = YYPEEK();
  ------------------
  |  |   33|    299|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    299|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    298|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 298, False: 1]
  |  |  ------------------
  ------------------
  426|    299|	switch (yych) {
  427|    216|		case 'r': goto yy27;
  ------------------
  |  Branch (427:3): [True: 216, False: 83]
  ------------------
  428|     81|		case 'u': goto yy28;
  ------------------
  |  Branch (428:3): [True: 81, False: 218]
  ------------------
  429|      2|		default: goto yy23;
  ------------------
  |  Branch (429:3): [True: 2, False: 297]
  ------------------
  430|    299|	}
  431|     87|yy25:
  432|     87|	YYSKIP();
  ------------------
  |  |   35|     87|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|     87|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  433|     87|	yych = YYPEEK();
  ------------------
  |  |   33|     87|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     87|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     86|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 86, False: 1]
  |  |  ------------------
  ------------------
  434|     87|	switch (yych) {
  435|     16|		case '0':
  ------------------
  |  Branch (435:3): [True: 16, False: 71]
  ------------------
  436|     25|		case '1':
  ------------------
  |  Branch (436:3): [True: 9, False: 78]
  ------------------
  437|     32|		case '2':
  ------------------
  |  Branch (437:3): [True: 7, False: 80]
  ------------------
  438|     37|		case '3':
  ------------------
  |  Branch (438:3): [True: 5, False: 82]
  ------------------
  439|     45|		case '4':
  ------------------
  |  Branch (439:3): [True: 8, False: 79]
  ------------------
  440|     52|		case '5':
  ------------------
  |  Branch (440:3): [True: 7, False: 80]
  ------------------
  441|     64|		case '6':
  ------------------
  |  Branch (441:3): [True: 12, False: 75]
  ------------------
  442|     68|		case '7':
  ------------------
  |  Branch (442:3): [True: 4, False: 83]
  ------------------
  443|     75|		case '8':
  ------------------
  |  Branch (443:3): [True: 7, False: 80]
  ------------------
  444|     85|		case '9':
  ------------------
  |  Branch (444:3): [True: 10, False: 77]
  ------------------
  445|     85|			YYSTAGP(context.yyt3);
  ------------------
  |  |   38|     85|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|     85|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  446|     85|			goto yy29;
  447|      2|		default: goto yy23;
  ------------------
  |  Branch (447:3): [True: 2, False: 85]
  ------------------
  448|     87|	}
  449|     88|yy26:
  450|     88|	YYSKIP();
  ------------------
  |  |   35|     88|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|     88|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  451|     88|	yych = YYPEEK();
  ------------------
  |  |   33|     88|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     88|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     87|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 87, False: 1]
  |  |  ------------------
  ------------------
  452|     88|	switch (yych) {
  453|     80|		case '=': goto yy30;
  ------------------
  |  Branch (453:3): [True: 80, False: 8]
  ------------------
  454|      8|		default: goto yy23;
  ------------------
  |  Branch (454:3): [True: 8, False: 80]
  ------------------
  455|     88|	}
  456|    216|yy27:
  457|    216|	YYSKIP();
  ------------------
  |  |   35|    216|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    216|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  458|    216|	yych = YYPEEK();
  ------------------
  |  |   33|    216|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    216|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    215|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 215, False: 1]
  |  |  ------------------
  ------------------
  459|    216|	switch (yych) {
  460|    203|		case '=': goto yy31;
  ------------------
  |  Branch (460:3): [True: 203, False: 13]
  ------------------
  461|     13|		default: goto yy23;
  ------------------
  |  Branch (461:3): [True: 13, False: 203]
  ------------------
  462|    216|	}
  463|     81|yy28:
  464|     81|	YYSKIP();
  ------------------
  |  |   35|     81|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|     81|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  465|     81|	yych = YYPEEK();
  ------------------
  |  |   33|     81|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     81|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     80|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 80, False: 1]
  |  |  ------------------
  ------------------
  466|     81|	switch (yych) {
  467|     74|		case '=': goto yy32;
  ------------------
  |  Branch (467:3): [True: 74, False: 7]
  ------------------
  468|      7|		default: goto yy23;
  ------------------
  |  Branch (468:3): [True: 7, False: 74]
  ------------------
  469|     81|	}
  470|  2.02k|yy29:
  471|  2.02k|	YYSKIP();
  ------------------
  |  |   35|  2.02k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  2.02k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  472|  2.02k|	yych = YYPEEK();
  ------------------
  |  |   33|  2.02k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  2.02k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.94k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.94k, False: 81]
  |  |  ------------------
  ------------------
  473|  2.02k|	switch (yych) {
  474|    194|		case '0':
  ------------------
  |  Branch (474:3): [True: 194, False: 1.83k]
  ------------------
  475|    388|		case '1':
  ------------------
  |  Branch (475:3): [True: 194, False: 1.83k]
  ------------------
  476|    582|		case '2':
  ------------------
  |  Branch (476:3): [True: 194, False: 1.83k]
  ------------------
  477|    776|		case '3':
  ------------------
  |  Branch (477:3): [True: 194, False: 1.83k]
  ------------------
  478|    970|		case '4':
  ------------------
  |  Branch (478:3): [True: 194, False: 1.83k]
  ------------------
  479|  1.16k|		case '5':
  ------------------
  |  Branch (479:3): [True: 194, False: 1.83k]
  ------------------
  480|  1.35k|		case '6':
  ------------------
  |  Branch (480:3): [True: 194, False: 1.83k]
  ------------------
  481|  1.55k|		case '7':
  ------------------
  |  Branch (481:3): [True: 194, False: 1.83k]
  ------------------
  482|  1.74k|		case '8':
  ------------------
  |  Branch (482:3): [True: 194, False: 1.83k]
  ------------------
  483|  1.94k|		case '9': goto yy29;
  ------------------
  |  Branch (483:3): [True: 194, False: 1.83k]
  ------------------
  484|      4|		case ';':
  ------------------
  |  Branch (484:3): [True: 4, False: 2.02k]
  ------------------
  485|      4|			YYSTAGN(context.yyt4);
  ------------------
  |  |   39|      4|#define YYSTAGN(t) t = NULL
  ------------------
  486|      4|			goto yy33;
  487|     81|		default: goto yy23;
  ------------------
  |  Branch (487:3): [True: 81, False: 1.94k]
  ------------------
  488|  2.02k|	}
  489|     80|yy30:
  490|     80|	YYSKIP();
  ------------------
  |  |   35|     80|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|     80|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  491|     80|	yych = YYPEEK();
  ------------------
  |  |   33|     80|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     80|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     79|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 79, False: 1]
  |  |  ------------------
  ------------------
  492|     80|	switch (yych) {
  493|      1|		case 0x00: goto yy23;
  ------------------
  |  Branch (493:3): [True: 1, False: 79]
  ------------------
  494|     65|		case ';':
  ------------------
  |  Branch (494:3): [True: 65, False: 15]
  ------------------
  495|     65|			YYSTAGN(context.yyt3);
  ------------------
  |  |   39|     65|#define YYSTAGN(t) t = NULL
  ------------------
  496|     65|			YYSTAGP(context.yyt4);
  ------------------
  |  |   38|     65|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|     65|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  497|     65|			goto yy33;
  498|     14|		default:
  ------------------
  |  Branch (498:3): [True: 14, False: 66]
  ------------------
  499|     14|			YYSTAGP(context.yyt4);
  ------------------
  |  |   38|     14|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|     14|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  500|     14|			goto yy34;
  501|     80|	}
  502|    203|yy31:
  503|    203|	YYSKIP();
  ------------------
  |  |   35|    203|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    203|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  504|    203|	yych = YYPEEK();
  ------------------
  |  |   33|    203|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    203|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    202|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 202, False: 1]
  |  |  ------------------
  ------------------
  505|    203|	switch (yych) {
  506|     23|		case '0':
  ------------------
  |  Branch (506:3): [True: 23, False: 180]
  ------------------
  507|     32|		case '1':
  ------------------
  |  Branch (507:3): [True: 9, False: 194]
  ------------------
  508|     49|		case '2':
  ------------------
  |  Branch (508:3): [True: 17, False: 186]
  ------------------
  509|     67|		case '3':
  ------------------
  |  Branch (509:3): [True: 18, False: 185]
  ------------------
  510|    119|		case '4':
  ------------------
  |  Branch (510:3): [True: 52, False: 151]
  ------------------
  511|    127|		case '5':
  ------------------
  |  Branch (511:3): [True: 8, False: 195]
  ------------------
  512|    140|		case '6':
  ------------------
  |  Branch (512:3): [True: 13, False: 190]
  ------------------
  513|    150|		case '7':
  ------------------
  |  Branch (513:3): [True: 10, False: 193]
  ------------------
  514|    172|		case '8':
  ------------------
  |  Branch (514:3): [True: 22, False: 181]
  ------------------
  515|    185|		case '9':
  ------------------
  |  Branch (515:3): [True: 13, False: 190]
  ------------------
  516|    185|			YYSTAGP(context.yyt5);
  ------------------
  |  |   38|    185|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    185|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  517|    185|			goto yy35;
  518|     18|		default: goto yy23;
  ------------------
  |  Branch (518:3): [True: 18, False: 185]
  ------------------
  519|    203|	}
  520|     74|yy32:
  521|     74|	YYSKIP();
  ------------------
  |  |   35|     74|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|     74|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  522|     74|	yych = YYPEEK();
  ------------------
  |  |   33|     74|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     74|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     73|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 73, False: 1]
  |  |  ------------------
  ------------------
  523|     74|	switch (yych) {
  524|      4|		case 0x00: goto yy23;
  ------------------
  |  Branch (524:3): [True: 4, False: 70]
  ------------------
  525|     24|		case ';':
  ------------------
  |  Branch (525:3): [True: 24, False: 50]
  ------------------
  526|     24|			YYSTAGP(context.yyt1);
  ------------------
  |  |   38|     24|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|     24|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  527|     24|			YYSTAGP(context.yyt2);
  ------------------
  |  |   38|     24|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|     24|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  528|     24|			YYSTAGN(context.yyt5);
  ------------------
  |  |   39|     24|#define YYSTAGN(t) t = NULL
  ------------------
  529|     24|			goto yy37;
  530|     46|		default:
  ------------------
  |  Branch (530:3): [True: 46, False: 28]
  ------------------
  531|     46|			YYSTAGP(context.yyt1);
  ------------------
  |  |   38|     46|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|     46|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  532|     46|			goto yy36;
  533|     74|	}
  534|     73|yy33:
  535|     73|	YYSKIP();
  ------------------
  |  |   35|     73|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|     73|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  536|     73|	yych = YYPEEK();
  ------------------
  |  |   33|     73|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     73|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     70|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 70, False: 3]
  |  |  ------------------
  ------------------
  537|     73|	switch (yych) {
  538|      2|		case 'b':
  ------------------
  |  Branch (538:3): [True: 2, False: 71]
  ------------------
  539|      4|		case 'g':
  ------------------
  |  Branch (539:3): [True: 2, False: 71]
  ------------------
  540|      5|		case 'i':
  ------------------
  |  Branch (540:3): [True: 1, False: 72]
  ------------------
  541|     70|		case 's': goto yy38;
  ------------------
  |  Branch (541:3): [True: 65, False: 8]
  ------------------
  542|      3|		default: goto yy23;
  ------------------
  |  Branch (542:3): [True: 3, False: 70]
  ------------------
  543|     73|	}
  544|    598|yy34:
  545|    598|	YYSKIP();
  ------------------
  |  |   35|    598|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    598|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  546|    598|	yych = YYPEEK();
  ------------------
  |  |   33|    598|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    598|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    589|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 589, False: 9]
  |  |  ------------------
  ------------------
  547|    598|	switch (yych) {
  548|     10|		case 0x00: goto yy23;
  ------------------
  |  Branch (548:3): [True: 10, False: 588]
  ------------------
  549|      4|		case ';':
  ------------------
  |  Branch (549:3): [True: 4, False: 594]
  ------------------
  550|      4|			YYSTAGN(context.yyt3);
  ------------------
  |  |   39|      4|#define YYSTAGN(t) t = NULL
  ------------------
  551|      4|			goto yy33;
  552|    584|		default: goto yy34;
  ------------------
  |  Branch (552:3): [True: 584, False: 14]
  ------------------
  553|    598|	}
  554|  3.28k|yy35:
  555|  3.28k|	YYSKIP();
  ------------------
  |  |   35|  3.28k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  3.28k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  556|  3.28k|	yych = YYPEEK();
  ------------------
  |  |   33|  3.28k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  3.28k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  3.19k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 3.19k, False: 84]
  |  |  ------------------
  ------------------
  557|  3.28k|	switch (yych) {
  558|    409|		case '0':
  ------------------
  |  Branch (558:3): [True: 409, False: 2.87k]
  ------------------
  559|    699|		case '1':
  ------------------
  |  Branch (559:3): [True: 290, False: 2.99k]
  ------------------
  560|    992|		case '2':
  ------------------
  |  Branch (560:3): [True: 293, False: 2.99k]
  ------------------
  561|  1.26k|		case '3':
  ------------------
  |  Branch (561:3): [True: 269, False: 3.01k]
  ------------------
  562|  1.69k|		case '4':
  ------------------
  |  Branch (562:3): [True: 432, False: 2.85k]
  ------------------
  563|  1.93k|		case '5':
  ------------------
  |  Branch (563:3): [True: 238, False: 3.04k]
  ------------------
  564|  2.27k|		case '6':
  ------------------
  |  Branch (564:3): [True: 343, False: 2.94k]
  ------------------
  565|  2.53k|		case '7':
  ------------------
  |  Branch (565:3): [True: 256, False: 3.02k]
  ------------------
  566|  2.79k|		case '8':
  ------------------
  |  Branch (566:3): [True: 265, False: 3.01k]
  ------------------
  567|  3.09k|		case '9': goto yy35;
  ------------------
  |  Branch (567:3): [True: 303, False: 2.98k]
  ------------------
  568|     68|		case ';':
  ------------------
  |  Branch (568:3): [True: 68, False: 3.21k]
  ------------------
  569|     68|			YYSTAGN(context.yyt1);
  ------------------
  |  |   39|     68|#define YYSTAGN(t) t = NULL
  ------------------
  570|     68|			YYSTAGP(context.yyt2);
  ------------------
  |  |   38|     68|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|     68|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  571|     68|			goto yy37;
  572|    117|		default: goto yy23;
  ------------------
  |  Branch (572:3): [True: 117, False: 3.16k]
  ------------------
  573|  3.28k|	}
  574|  2.63k|yy36:
  575|  2.63k|	YYSKIP();
  ------------------
  |  |   35|  2.63k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  2.63k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  576|  2.63k|	yych = YYPEEK();
  ------------------
  |  |   33|  2.63k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  2.63k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  2.62k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 2.62k, False: 10]
  |  |  ------------------
  ------------------
  577|  2.63k|	switch (yych) {
  578|     37|		case 0x00: goto yy23;
  ------------------
  |  Branch (578:3): [True: 37, False: 2.59k]
  ------------------
  579|      9|		case ';':
  ------------------
  |  Branch (579:3): [True: 9, False: 2.62k]
  ------------------
  580|      9|			YYSTAGP(context.yyt2);
  ------------------
  |  |   38|      9|#define YYSTAGP(t) t = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|      9|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  581|      9|			YYSTAGN(context.yyt5);
  ------------------
  |  |   39|      9|#define YYSTAGN(t) t = NULL
  ------------------
  582|      9|			goto yy37;
  583|  2.58k|		default: goto yy36;
  ------------------
  |  Branch (583:3): [True: 2.58k, False: 46]
  ------------------
  584|  2.63k|	}
  585|    101|yy37:
  586|    101|	YYSKIP();
  ------------------
  |  |   35|    101|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    101|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  587|    101|	yych = YYPEEK();
  ------------------
  |  |   33|    101|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    101|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     98|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 98, False: 3]
  |  |  ------------------
  ------------------
  588|    101|	switch (yych) {
  589|      3|		case 'b':
  ------------------
  |  Branch (589:3): [True: 3, False: 98]
  ------------------
  590|      7|		case 'g':
  ------------------
  |  Branch (590:3): [True: 4, False: 97]
  ------------------
  591|     13|		case 'i':
  ------------------
  |  Branch (591:3): [True: 6, False: 95]
  ------------------
  592|     19|		case 's':
  ------------------
  |  Branch (592:3): [True: 6, False: 95]
  ------------------
  593|     19|			YYSTAGN(context.yyt3);
  ------------------
  |  |   39|     19|#define YYSTAGN(t) t = NULL
  ------------------
  594|     19|			YYSTAGN(context.yyt4);
  ------------------
  |  |   39|     19|#define YYSTAGN(t) t = NULL
  ------------------
  595|     19|			goto yy38;
  596|     78|		case 'n': goto yy39;
  ------------------
  |  Branch (596:3): [True: 78, False: 23]
  ------------------
  597|      4|		default: goto yy23;
  ------------------
  |  Branch (597:3): [True: 4, False: 97]
  ------------------
  598|    101|	}
  599|     89|yy38:
  600|     89|	YYSKIP();
  ------------------
  |  |   35|     89|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|     89|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  601|     89|	yych = YYPEEK();
  ------------------
  |  |   33|     89|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     89|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     81|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 81, False: 8]
  |  |  ------------------
  ------------------
  602|     89|	switch (yych) {
  603|     69|		case '=': goto yy21;
  ------------------
  |  Branch (603:3): [True: 69, False: 20]
  ------------------
  604|     20|		default: goto yy23;
  ------------------
  |  Branch (604:3): [True: 20, False: 69]
  ------------------
  605|     89|	}
  606|     78|yy39:
  607|     78|	YYSKIP();
  ------------------
  |  |   35|     78|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|     78|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  608|     78|	yych = YYPEEK();
  ------------------
  |  |   33|     78|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     78|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     77|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 77, False: 1]
  |  |  ------------------
  ------------------
  609|     78|	switch (yych) {
  610|     66|		case 's': goto yy22;
  ------------------
  |  Branch (610:3): [True: 66, False: 12]
  ------------------
  611|     12|		default: goto yy23;
  ------------------
  |  Branch (611:3): [True: 12, False: 66]
  ------------------
  612|     78|	}
  613|     78|}
  614|       |
  615|       |
  616|    119| match:
  617|    119|    if(svu) {
  ------------------
  |  Branch (617:8): [True: 6, False: 113]
  ------------------
  618|       |        /* ServerUri */
  619|      6|        UA_String serverUri = {(size_t)(sve - svu), (UA_Byte*)(uintptr_t)svu};
  620|      6|        size_t i = 0;
  621|      6|        for(; i < serverUrisSize; i++) {
  ------------------
  |  Branch (621:15): [True: 0, False: 6]
  ------------------
  622|      0|            if(UA_String_equal(&serverUri, &serverUris[i]))
  ------------------
  |  Branch (622:16): [True: 0, False: 0]
  ------------------
  623|      0|                break;
  624|      0|        }
  625|      6|        if(i == serverUrisSize) {
  ------------------
  |  Branch (625:12): [True: 6, False: 0]
  ------------------
  626|       |            /* The ServerUri cannot be mapped. Return the entire input as a
  627|       |             * string NodeId. */
  628|      6|            UA_String total = {(size_t)(end - begin), (UA_Byte*)(uintptr_t)begin};
  629|      6|            id->nodeId.identifierType = UA_NODEIDTYPE_STRING;
  630|      6|            return UA_String_copy(&total, &id->nodeId.identifier.string);
  631|      6|        }
  632|      0|        id->serverIndex = (UA_UInt32)i;
  633|    113|    } else if(svr) {
  ------------------
  |  Branch (633:15): [True: 61, False: 52]
  ------------------
  634|       |        /* ServerIndex */
  635|     61|        size_t len = (size_t)(sve - svr);
  636|     61|        if(UA_readNumber((const UA_Byte*)svr, len, &id->serverIndex) != len)
  ------------------
  |  Branch (636:12): [True: 0, False: 61]
  ------------------
  637|      0|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  638|     61|    }
  639|       |
  640|    113|    if(nsu) {
  ------------------
  |  Branch (640:8): [True: 61, False: 52]
  ------------------
  641|       |        /* NamespaceUri */
  642|     61|        UA_String nsuri = {(size_t)(body - 1 - nsu), (UA_Byte*)(uintptr_t)nsu};
  643|     61|        UA_StatusCode res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     61|#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|     61|        if(id->serverIndex == 0)
  ------------------
  |  Branch (646:12): [True: 1, False: 60]
  ------------------
  647|      1|            res = escapedUri2Index(nsuri, &id->nodeId.namespaceIndex, nsMapping);
  648|     61|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|     61|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (648:12): [True: 61, False: 0]
  ------------------
  649|     61|            res = UA_String_copy(&nsuri, &id->namespaceUri); /* Keep the Uri without mapping */
  650|     61|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|     61|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (650:12): [True: 0, False: 61]
  ------------------
  651|      0|            return res;
  652|     61|    } else if(ns) {
  ------------------
  |  Branch (652:15): [True: 1, False: 51]
  ------------------
  653|       |        /* NamespaceIndex */
  654|      1|        UA_UInt32 tmp;
  655|      1|        size_t len = (size_t)(body - 1 - ns);
  656|      1|        if(UA_readNumber((const UA_Byte*)ns, len, &tmp) != len)
  ------------------
  |  Branch (656:12): [True: 0, False: 1]
  ------------------
  657|      0|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  658|      1|        id->nodeId.namespaceIndex = (UA_UInt16)tmp;
  659|      1|        if(nsMapping)
  ------------------
  |  Branch (659:12): [True: 0, False: 1]
  ------------------
  660|      0|            id->nodeId.namespaceIndex =
  661|      0|                UA_NamespaceMapping_remote2Local(nsMapping, id->nodeId.namespaceIndex);
  662|      1|    }
  663|       |
  664|       |    /* From the current position until the end */
  665|    113|    return parse_nodeid_body(&id->nodeId, body, end, idEsc);
  666|    113|}
ua_types_lex.c:parse_qn:
  707|  15.2k|         UA_UInt16 defaultNamespaceIndex) {
  708|  15.2k|    size_t len;
  709|  15.2k|    UA_UInt32 tmp;
  710|  15.2k|    UA_String str;
  711|  15.2k|    UA_StatusCode res;
  712|       |
  713|  15.2k|    LexContext context;
  714|  15.2k|    memset(&context, 0, sizeof(LexContext));
  715|       |
  716|  15.2k|    const u8 *begin = pos;
  717|  15.2k|    UA_QualifiedName_init(qn);
  718|  15.2k|    qn->namespaceIndex = defaultNamespaceIndex;
  719|       |
  720|       |    
  721|  15.2k|{
  722|  15.2k|	u8 yych;
  723|  15.2k|	yych = YYPEEK();
  ------------------
  |  |   33|  15.2k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  15.2k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  5.87k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 5.87k, False: 9.33k]
  |  |  ------------------
  ------------------
  724|  15.2k|	switch (yych) {
  725|  9.39k|		case 0x00:
  ------------------
  |  Branch (725:3): [True: 9.39k, False: 5.81k]
  ------------------
  726|  9.59k|		case ';': goto yy41;
  ------------------
  |  Branch (726:3): [True: 199, False: 15.0k]
  ------------------
  727|    254|		case '0':
  ------------------
  |  Branch (727:3): [True: 254, False: 14.9k]
  ------------------
  728|    504|		case '1':
  ------------------
  |  Branch (728:3): [True: 250, False: 14.9k]
  ------------------
  729|    784|		case '2':
  ------------------
  |  Branch (729:3): [True: 280, False: 14.9k]
  ------------------
  730|  1.13k|		case '3':
  ------------------
  |  Branch (730:3): [True: 352, False: 14.8k]
  ------------------
  731|  1.59k|		case '4':
  ------------------
  |  Branch (731:3): [True: 462, False: 14.7k]
  ------------------
  732|  1.85k|		case '5':
  ------------------
  |  Branch (732:3): [True: 254, False: 14.9k]
  ------------------
  733|  2.11k|		case '6':
  ------------------
  |  Branch (733:3): [True: 267, False: 14.9k]
  ------------------
  734|  2.36k|		case '7':
  ------------------
  |  Branch (734:3): [True: 249, False: 14.9k]
  ------------------
  735|  2.63k|		case '8':
  ------------------
  |  Branch (735:3): [True: 270, False: 14.9k]
  ------------------
  736|  2.86k|		case '9': goto yy44;
  ------------------
  |  Branch (736:3): [True: 229, False: 14.9k]
  ------------------
  737|  2.75k|		default: goto yy43;
  ------------------
  |  Branch (737:3): [True: 2.75k, False: 12.4k]
  ------------------
  738|  15.2k|	}
  739|  9.59k|yy41:
  740|  9.59k|	YYSKIP();
  ------------------
  |  |   35|  9.59k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  9.59k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  741|  14.5k|yy42:
  742|  14.5k|	{ pos = begin; goto match_name; }
  743|  2.75k|yy43:
  744|  2.75k|	YYSKIP();
  ------------------
  |  |   35|  2.75k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  2.75k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  745|  2.75k|	YYBACKUP();
  ------------------
  |  |   36|  2.75k|#define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   32|  2.75k|#define YYMARKER context.marker
  |  |  ------------------
  |  |               #define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|  2.75k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  746|  2.75k|	yych = YYPEEK();
  ------------------
  |  |   33|  2.75k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  2.75k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.95k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.95k, False: 795]
  |  |  ------------------
  ------------------
  747|  2.75k|	if (yych <= 0x00) goto yy42;
  ------------------
  |  Branch (747:6): [True: 941, False: 1.81k]
  ------------------
  748|  1.81k|	goto yy46;
  749|  2.86k|yy44:
  750|  2.86k|	YYSKIP();
  ------------------
  |  |   35|  2.86k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  2.86k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  751|  2.86k|	YYBACKUP();
  ------------------
  |  |   36|  2.86k|#define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   32|  2.86k|#define YYMARKER context.marker
  |  |  ------------------
  |  |               #define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|  2.86k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  752|  2.86k|	yych = YYPEEK();
  ------------------
  |  |   33|  2.86k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  2.86k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    839|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 839, False: 2.02k]
  |  |  ------------------
  ------------------
  753|  2.86k|	switch (yych) {
  754|     52|		case '0':
  ------------------
  |  Branch (754:3): [True: 52, False: 2.81k]
  ------------------
  755|     91|		case '1':
  ------------------
  |  Branch (755:3): [True: 39, False: 2.82k]
  ------------------
  756|    187|		case '2':
  ------------------
  |  Branch (756:3): [True: 96, False: 2.77k]
  ------------------
  757|    274|		case '3':
  ------------------
  |  Branch (757:3): [True: 87, False: 2.78k]
  ------------------
  758|    403|		case '4':
  ------------------
  |  Branch (758:3): [True: 129, False: 2.73k]
  ------------------
  759|    452|		case '5':
  ------------------
  |  Branch (759:3): [True: 49, False: 2.81k]
  ------------------
  760|    489|		case '6':
  ------------------
  |  Branch (760:3): [True: 37, False: 2.83k]
  ------------------
  761|    544|		case '7':
  ------------------
  |  Branch (761:3): [True: 55, False: 2.81k]
  ------------------
  762|    585|		case '8':
  ------------------
  |  Branch (762:3): [True: 41, False: 2.82k]
  ------------------
  763|    614|		case '9':
  ------------------
  |  Branch (763:3): [True: 29, False: 2.83k]
  ------------------
  764|    823|		case ':': goto yy50;
  ------------------
  |  Branch (764:3): [True: 209, False: 2.65k]
  ------------------
  765|  2.04k|		default: goto yy42;
  ------------------
  |  Branch (765:3): [True: 2.04k, False: 823]
  ------------------
  766|  2.86k|	}
  767|   213k|yy45:
  768|   213k|	YYSKIP();
  ------------------
  |  |   35|   213k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|   213k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  769|   213k|	yych = YYPEEK();
  ------------------
  |  |   33|   213k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|   213k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|   212k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 212k, False: 1.43k]
  |  |  ------------------
  ------------------
  770|   215k|yy46:
  771|   215k|	switch (yych) {
  772|  1.57k|		case 0x00: goto yy47;
  ------------------
  |  Branch (772:3): [True: 1.57k, False: 213k]
  ------------------
  773|    241|		case ';': goto yy48;
  ------------------
  |  Branch (773:3): [True: 241, False: 215k]
  ------------------
  774|   213k|		default: goto yy45;
  ------------------
  |  Branch (774:3): [True: 213k, False: 1.81k]
  ------------------
  775|   215k|	}
  776|  1.93k|yy47:
  777|  1.93k|	YYRESTORE();
  ------------------
  |  |   37|  1.93k|#define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   31|  1.93k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   32|  1.93k|#define YYMARKER context.marker
  |  |  ------------------
  ------------------
  778|  1.93k|	goto yy42;
  779|    241|yy48:
  780|    241|	YYSKIP();
  ------------------
  |  |   35|    241|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    241|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  781|    241|	{ goto match_uri; }
  782|  1.05M|yy49:
  783|  1.05M|	YYSKIP();
  ------------------
  |  |   35|  1.05M|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.05M|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  784|  1.05M|	yych = YYPEEK();
  ------------------
  |  |   33|  1.05M|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.05M|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.05M|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.05M, False: 335]
  |  |  ------------------
  ------------------
  785|  1.05M|yy50:
  786|  1.05M|	switch (yych) {
  787|   911k|		case '0':
  ------------------
  |  Branch (787:3): [True: 911k, False: 139k]
  ------------------
  788|  1.03M|		case '1':
  ------------------
  |  Branch (788:3): [True: 124k, False: 927k]
  ------------------
  789|  1.03M|		case '2':
  ------------------
  |  Branch (789:3): [True: 2.03k, False: 1.04M]
  ------------------
  790|  1.04M|		case '3':
  ------------------
  |  Branch (790:3): [True: 1.87k, False: 1.04M]
  ------------------
  791|  1.04M|		case '4':
  ------------------
  |  Branch (791:3): [True: 1.47k, False: 1.05M]
  ------------------
  792|  1.04M|		case '5':
  ------------------
  |  Branch (792:3): [True: 2.21k, False: 1.04M]
  ------------------
  793|  1.04M|		case '6':
  ------------------
  |  Branch (793:3): [True: 913, False: 1.05M]
  ------------------
  794|  1.04M|		case '7':
  ------------------
  |  Branch (794:3): [True: 1.99k, False: 1.04M]
  ------------------
  795|  1.04M|		case '8':
  ------------------
  |  Branch (795:3): [True: 2.98k, False: 1.04M]
  ------------------
  796|  1.05M|		case '9': goto yy49;
  ------------------
  |  Branch (796:3): [True: 1.41k, False: 1.05M]
  ------------------
  797|    458|		case ':': goto yy51;
  ------------------
  |  Branch (797:3): [True: 458, False: 1.05M]
  ------------------
  798|    365|		default: goto yy47;
  ------------------
  |  Branch (798:3): [True: 365, False: 1.05M]
  ------------------
  799|  1.05M|	}
  800|    458|yy51:
  801|    458|	YYSKIP();
  ------------------
  |  |   35|    458|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    458|#define YYCURSOR pos
  |  |  ------------------
  ------------------
  802|    458|	{ goto match_index; }
  803|  1.05M|}
  804|       |
  805|       |
  806|    458| match_index:
  807|    458|    len = (size_t)(pos - 1 - begin);
  808|    458|    if(UA_readNumber((const UA_Byte*)begin, len, &tmp) != len)
  ------------------
  |  Branch (808:8): [True: 0, False: 458]
  ------------------
  809|      0|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  810|    458|    qn->namespaceIndex = (UA_UInt16)tmp;
  811|    458|    if(nsMapping)
  ------------------
  |  Branch (811:8): [True: 0, False: 458]
  ------------------
  812|      0|        qn->namespaceIndex =
  813|      0|            UA_NamespaceMapping_remote2Local(nsMapping, qn->namespaceIndex);
  814|    458|    goto match_name;
  815|       |
  816|    241| match_uri:
  817|    241|    str.length = (size_t)(pos - 1 - begin);
  818|    241|    str.data = (UA_Byte*)(uintptr_t)begin;
  819|    241|    res = escapedUri2Index(str, &qn->namespaceIndex, nsMapping);
  820|    241|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    241|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (820:8): [True: 241, False: 0]
  ------------------
  821|    241|        pos = begin; /* Use the entire string for the name */
  822|       |
  823|  15.2k| match_name:
  824|  15.2k|    str.length = (size_t)(end - pos);
  825|  15.2k|    str.data = (UA_Byte*)(uintptr_t)pos;
  826|  15.2k|    res = UA_String_copy(&str, &qn->name);
  827|  15.2k|    if(UA_LIKELY(res == UA_STATUSCODE_GOOD))
  ------------------
  |  |  578|  15.2k|# define UA_LIKELY(x) __builtin_expect((x), 1)
  |  |  ------------------
  |  |  |  Branch (578:23): [True: 15.2k, False: 0]
  |  |  ------------------
  ------------------
  828|  15.2k|        res = UA_String_unescape(&qn->name, false, escName);
  829|  15.2k|    return res;
  830|    241|}
ua_types_lex.c:parse_relativepath:
  982|  1.89k|                   UA_UInt16 defaultNamespaceIndex) {
  983|  1.89k|    UA_RelativePath_init(rp);
  984|  1.89k|    UA_Boolean done = false;
  985|  1.89k|    UA_StatusCode res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  1.89k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  986|  15.7k|    do {
  987|  15.7k|        res = parse_relativepathElement(rp, ppos, end, server, esc,
  988|  15.7k|                                        defaultNamespaceIndex, &done);
  989|  15.7k|    } while(!done);
  ------------------
  |  Branch (989:13): [True: 13.9k, False: 1.89k]
  ------------------
  990|  1.89k|    return res;
  991|  1.89k|}
ua_types_lex.c:parse_relativepathElement:
  852|  15.7k|                          UA_UInt16 defaultTargetNamespaceIndex, UA_Boolean *done) {
  853|  15.7k|    const u8 *pos = *ppos;
  854|  15.7k|    if(pos == end) {
  ------------------
  |  Branch (854:8): [True: 927, False: 14.8k]
  ------------------
  855|    927|        *done = true;
  856|    927|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    927|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  857|    927|    }
  858|       |
  859|       |    /* Create the element on the stack.
  860|       |     * Moved into the rp upon successful parsing. */
  861|  14.8k|    UA_RelativePathElement current;
  862|  14.8k|    UA_RelativePathElement_init(&current);
  863|  14.8k|    current.includeSubtypes = true; /* Follow subtypes by default */
  864|       |
  865|       |    /* Which ReferenceType? */
  866|  14.8k|    const u8 *begin;
  867|  14.8k|    UA_StatusCode res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  14.8k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  868|  14.8k|    switch(*pos) {
  869|  4.50k|    case '/':
  ------------------
  |  Branch (869:5): [True: 4.50k, False: 10.3k]
  ------------------
  870|  4.50k|        current.referenceTypeId = UA_NODEID_NUMERIC(0, UA_NS0ID_HIERARCHICALREFERENCES);
  ------------------
  |  |   46|  4.50k|#define UA_NS0ID_HIERARCHICALREFERENCES 33 /* ReferenceType */
  ------------------
  871|  4.50k|        goto reftype_target;
  872|  1.93k|    case '.':
  ------------------
  |  Branch (872:5): [True: 1.93k, False: 12.9k]
  ------------------
  873|       |        /* Recognize the dot only for the and-escaping. The dot is not escaped
  874|       |         * for percent-escaping and commonly used as part of the browse-name. */
  875|  1.93k|        if(esc != UA_ESCAPING_AND) {
  ------------------
  |  Branch (875:12): [True: 1, False: 1.93k]
  ------------------
  876|      1|            *done = true;
  877|      1|            goto out;
  878|      1|        }
  879|  1.93k|        current.referenceTypeId = UA_NODEID_NUMERIC(0, UA_NS0ID_AGGREGATES);
  ------------------
  |  |   55|  1.93k|#define UA_NS0ID_AGGREGATES 44 /* ReferenceType */
  ------------------
  880|  1.93k|        goto reftype_target;
  881|  8.06k|    case '<':
  ------------------
  |  Branch (881:5): [True: 8.06k, False: 6.80k]
  ------------------
  882|  8.06k|        break;
  883|    368|    default:
  ------------------
  |  Branch (883:5): [True: 368, False: 14.5k]
  ------------------
  884|    368|        *done = true;
  885|    368|        goto out;
  886|  14.8k|    }
  887|       |
  888|       |    /* ReferenceType with modifiers wrapped in angle brackets */
  889|  8.06k|    begin = ++pos;
  890|  14.2M|    for(; pos < end; pos++) {
  ------------------
  |  Branch (890:11): [True: 14.2M, False: 539]
  ------------------
  891|  14.2M|        if((esc == UA_ESCAPING_AND || esc == UA_ESCAPING_AND_EXTENDED) && *pos == '&') {
  ------------------
  |  Branch (891:13): [True: 6.96M, False: 7.31M]
  |  Branch (891:39): [True: 0, False: 7.31M]
  |  Branch (891:75): [True: 2.69k, False: 6.96M]
  ------------------
  892|  2.69k|            pos++;
  893|  2.69k|            continue;
  894|  2.69k|        }
  895|  14.2M|        if((esc == UA_ESCAPING_PERCENT || esc == UA_ESCAPING_PERCENT_EXTENDED) && *pos == '%') {
  ------------------
  |  Branch (895:13): [True: 0, False: 14.2M]
  |  Branch (895:43): [True: 7.31M, False: 6.96M]
  |  Branch (895:83): [True: 3.61k, False: 7.31M]
  ------------------
  896|  3.61k|            pos += 2;
  897|  3.61k|            continue;
  898|  3.61k|        }
  899|  14.2M|        if(*pos == '>')
  ------------------
  |  Branch (899:12): [True: 7.52k, False: 14.2M]
  ------------------
  900|  7.52k|            break;
  901|  14.2M|    }
  902|  8.06k|    if(pos > end) {
  ------------------
  |  Branch (902:8): [True: 16, False: 8.04k]
  ------------------
  903|     16|        res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     16|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  904|     16|        goto out;
  905|     16|    }
  906|       |
  907|       |    /* Process modifiers */
  908|  9.54k|    for(; begin < pos; begin++) {
  ------------------
  |  Branch (908:11): [True: 9.48k, False: 60]
  ------------------
  909|  9.48k|        if(*begin == '#')
  ------------------
  |  Branch (909:12): [True: 717, False: 8.76k]
  ------------------
  910|    717|            current.includeSubtypes = false;
  911|  8.76k|        else if(*begin == '!')
  ------------------
  |  Branch (911:17): [True: 782, False: 7.98k]
  ------------------
  912|    782|            current.isInverse = true;
  913|  7.98k|        else
  914|  7.98k|            break;
  915|  9.48k|    }
  916|       |
  917|       |    /* Try to parse a NodeId for the ReferenceType (non-standard!) */
  918|  8.04k|    res = parse_nodeid(&current.referenceTypeId, begin, pos, esc, NULL);
  919|  8.04k|    if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|  8.04k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (919:8): [True: 1.14k, False: 6.90k]
  ------------------
  920|       |        /* Parse the the ReferenceType from its BrowseName (default) */
  921|  1.14k|        UA_QualifiedName refqn;
  922|  1.14k|        res = parse_qn(&refqn, begin, pos, esc, NULL, defaultTargetNamespaceIndex);
  923|  1.14k|        res |= lookupRefType(server, &refqn, &current.referenceTypeId);
  924|  1.14k|        UA_QualifiedName_clear(&refqn);
  925|  1.14k|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  1.14k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (925:12): [True: 485, False: 656]
  ------------------
  926|    485|            goto out;
  927|  1.14k|    }
  928|       |
  929|  13.9k| reftype_target:
  930|       |    /* Move pos to the end of the TargetName based on the escaping */
  931|  13.9k|    begin = ++pos;
  932|  17.8k|    while(pos < end && *pos >= '0' && *pos <= '9')
  ------------------
  |  Branch (932:11): [True: 17.1k, False: 756]
  |  Branch (932:24): [True: 11.4k, False: 5.69k]
  |  Branch (932:39): [True: 3.87k, False: 7.55k]
  ------------------
  933|  3.87k|        pos++;
  934|  13.9k|    if(pos < end && *pos == ':')
  ------------------
  |  Branch (934:8): [True: 13.2k, False: 756]
  |  Branch (934:21): [True: 611, False: 12.6k]
  ------------------
  935|    611|        pos++;
  936|  85.9k|    for(; pos < end; pos++) {
  ------------------
  |  Branch (936:11): [True: 84.9k, False: 1.00k]
  ------------------
  937|  84.9k|        if((esc == UA_ESCAPING_AND || esc == UA_ESCAPING_AND_EXTENDED) && *pos == '&') {
  ------------------
  |  Branch (937:13): [True: 81.4k, False: 3.48k]
  |  Branch (937:39): [True: 0, False: 3.48k]
  |  Branch (937:75): [True: 1.21k, False: 80.2k]
  ------------------
  938|  1.21k|            pos++;
  939|  1.21k|            continue;
  940|  1.21k|        }
  941|  83.7k|        if((esc == UA_ESCAPING_PERCENT || esc == UA_ESCAPING_PERCENT_EXTENDED) && *pos == '%') {
  ------------------
  |  Branch (941:13): [True: 0, False: 83.7k]
  |  Branch (941:43): [True: 3.48k, False: 80.2k]
  |  Branch (941:83): [True: 423, False: 3.06k]
  ------------------
  942|    423|            pos += 2;
  943|    423|            continue;
  944|    423|        }
  945|  83.3k|        if(esc == UA_ESCAPING_PERCENT || esc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (945:12): [True: 0, False: 83.3k]
  |  Branch (945:42): [True: 3.06k, False: 80.2k]
  ------------------
  946|  3.06k|            if(isReservedPercentExtended(*pos))
  ------------------
  |  Branch (946:16): [True: 2.78k, False: 282]
  ------------------
  947|  2.78k|                break;
  948|  80.2k|        } else {
  949|  80.2k|            if(isReservedAnd(*pos))
  ------------------
  |  Branch (949:16): [True: 10.2k, False: 70.0k]
  ------------------
  950|  10.2k|                break;
  951|  80.2k|        }
  952|  83.3k|    }
  953|  13.9k|    if(pos > end) {
  ------------------
  |  Branch (953:8): [True: 79, False: 13.9k]
  ------------------
  954|     79|        res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     79|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  955|     79|        goto out;
  956|     79|    }
  957|       |
  958|       |    /* Parse the TargetName */
  959|  13.9k|    res = parse_qn(&current.targetName, begin, pos, esc,
  960|  13.9k|                   NULL, defaultTargetNamespaceIndex);
  961|  13.9k|    if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|  13.9k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (961:8): [True: 15, False: 13.9k]
  ------------------
  962|     15|        UA_RelativePathElement_clear(&current);
  963|     15|        goto out;
  964|     15|    }
  965|       |
  966|       |    /* Add current to the rp */
  967|  13.9k|    res |= relativepath_addelem(rp, &current);
  968|       |
  969|  14.8k| out:
  970|  14.8k|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  14.8k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (970:8): [True: 599, False: 14.2k]
  ------------------
  971|    599|        UA_RelativePathElement_clear(&current);
  972|       |
  973|       |    /* Return the status */
  974|  14.8k|    *ppos = pos;
  975|  14.8k|    *done |= (res != UA_STATUSCODE_GOOD);
  ------------------
  |  |   17|  14.8k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  976|  14.8k|    return res;
  977|  13.9k|}
ua_types_lex.c:relativepath_addelem:
  686|  13.9k|relativepath_addelem(UA_RelativePath *rp, UA_RelativePathElement *el) {
  687|       |    /* Check for unrealistic path lengths */
  688|  13.9k|    if(rp->elementsSize >= UA_MAXPATHLENGTH)
  ------------------
  |  |   29|  13.9k|#define UA_MAXPATHLENGTH 128 /* Maximum relative path depth */
  ------------------
  |  Branch (688:8): [True: 4, False: 13.9k]
  ------------------
  689|      4|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      4|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  690|       |
  691|       |    /* Allocate memory */
  692|  13.9k|    UA_RelativePathElement *newArray = (UA_RelativePathElement*)
  693|  13.9k|        UA_realloc(rp->elements, sizeof(UA_RelativePathElement) * (rp->elementsSize + 1));
  ------------------
  |  |   21|  13.9k|#define UA_realloc(ptr, size) UA_reallocSingleton(ptr, size)
  ------------------
  694|  13.9k|    if(!newArray)
  ------------------
  |  Branch (694:8): [True: 0, False: 13.9k]
  ------------------
  695|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  696|  13.9k|    rp->elements = newArray;
  697|       |
  698|       |    /* Move to the target */
  699|  13.9k|    rp->elements[rp->elementsSize] = *el;
  700|  13.9k|    rp->elementsSize++;
  701|  13.9k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  13.9k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  702|  13.9k|}
ua_types_lex.c:parseAttributeOperand:
 1025|    985|                      UA_NodeId defaultId, UA_UInt16 defaultNamespaceIndex) {
 1026|       |    /* Initialize and set the default values */
 1027|    985|    UA_AttributeOperand_init(ao);
 1028|    985|    ao->nodeId = defaultId;
 1029|    985|    ao->attributeId = UA_ATTRIBUTEID_VALUE;
 1030|       |
 1031|       |    /* Nothing to parse */
 1032|    985|    if(str.length == 0)
  ------------------
  |  Branch (1032:8): [True: 0, False: 985]
  ------------------
 1033|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1034|       |
 1035|    985|    const u8 *pos = str.data;
 1036|    985|    const u8 *end = pos + str.length;
 1037|    985|    UA_StatusCode res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    985|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1038|       |
 1039|       |    /* Initial NodeId before the BrowsePath */
 1040|    985|    LexContext context;
 1041|    985|    memset(&context, 0, sizeof(LexContext));
 1042|       |    
 1043|    985|{
 1044|    985|	u8 yych;
 1045|    985|	yych = YYPEEK();
  ------------------
  |  |   33|    985|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    985|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    985|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 985, False: 0]
  |  |  ------------------
  ------------------
 1046|    985|	switch (yych) {
 1047|     80|		case 'b':
  ------------------
  |  Branch (1047:3): [True: 80, False: 905]
  ------------------
 1048|     84|		case 'g':
  ------------------
  |  Branch (1048:3): [True: 4, False: 981]
  ------------------
 1049|    126|		case 'i':
  ------------------
  |  Branch (1049:3): [True: 42, False: 943]
  ------------------
 1050|    168|		case 's': goto yy55;
  ------------------
  |  Branch (1050:3): [True: 42, False: 943]
  ------------------
 1051|    234|		case 'n': goto yy56;
  ------------------
  |  Branch (1051:3): [True: 234, False: 751]
  ------------------
 1052|    583|		default: goto yy53;
  ------------------
  |  Branch (1052:3): [True: 583, False: 402]
  ------------------
 1053|    985|	}
 1054|    583|yy53:
 1055|    583|	YYSKIP();
  ------------------
  |  |   35|    583|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    583|#define YYCURSOR pos
  |  |  ------------------
  ------------------
 1056|    762|yy54:
 1057|    762|	{ pos = str.data; goto parse_path; }
 1058|    168|yy55:
 1059|    168|	YYSKIP();
  ------------------
  |  |   35|    168|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    168|#define YYCURSOR pos
  |  |  ------------------
  ------------------
 1060|    168|	yych = YYPEEK();
  ------------------
  |  |   33|    168|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    168|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    164|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 164, False: 4]
  |  |  ------------------
  ------------------
 1061|    168|	switch (yych) {
 1062|    158|		case '=': goto yy57;
  ------------------
  |  Branch (1062:3): [True: 158, False: 10]
  ------------------
 1063|     10|		default: goto yy54;
  ------------------
  |  Branch (1063:3): [True: 10, False: 158]
  ------------------
 1064|    168|	}
 1065|    234|yy56:
 1066|    234|	YYSKIP();
  ------------------
  |  |   35|    234|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    234|#define YYCURSOR pos
  |  |  ------------------
  ------------------
 1067|    234|	YYBACKUP();
  ------------------
  |  |   36|    234|#define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   32|    234|#define YYMARKER context.marker
  |  |  ------------------
  |  |               #define YYBACKUP() YYMARKER = YYCURSOR
  |  |  ------------------
  |  |  |  |   31|    234|#define YYCURSOR pos
  |  |  ------------------
  ------------------
 1068|    234|	yych = YYPEEK();
  ------------------
  |  |   33|    234|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    234|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    233|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 233, False: 1]
  |  |  ------------------
  ------------------
 1069|    234|	switch (yych) {
 1070|    223|		case 's': goto yy58;
  ------------------
  |  Branch (1070:3): [True: 223, False: 11]
  ------------------
 1071|     11|		default: goto yy54;
  ------------------
  |  Branch (1071:3): [True: 11, False: 223]
  ------------------
 1072|    234|	}
 1073|    223|yy57:
 1074|    223|	YYSKIP();
  ------------------
  |  |   35|    223|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    223|#define YYCURSOR pos
  |  |  ------------------
  ------------------
 1075|    223|	{
 1076|       |        // Find the end position of the NodeId body and parse
 1077|  3.12k|        for(; pos < end; pos++) {
  ------------------
  |  Branch (1077:15): [True: 3.03k, False: 92]
  ------------------
 1078|  3.03k|            if(*pos == '%') {
  ------------------
  |  Branch (1078:16): [True: 201, False: 2.83k]
  ------------------
 1079|    201|                pos += 2;
 1080|    201|                continue;
 1081|    201|            }
 1082|  2.83k|            if(isReservedPercentExtended(*pos))
  ------------------
  |  Branch (1082:16): [True: 131, False: 2.70k]
  ------------------
 1083|    131|                break;
 1084|  2.83k|        }
 1085|    223|        if(pos > end) {
  ------------------
  |  Branch (1085:12): [True: 8, False: 215]
  ------------------
 1086|      8|            res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      8|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1087|      8|            goto cleanup;
 1088|      8|        }
 1089|    215|        res = parse_nodeid(&ao->nodeId, str.data, pos, UA_ESCAPING_PERCENT, NULL);
 1090|    215|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    215|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1090:12): [True: 67, False: 148]
  ------------------
 1091|     67|            goto cleanup;
 1092|    148|        goto parse_path;
 1093|    215|    }
 1094|    223|yy58:
 1095|    223|	YYSKIP();
  ------------------
  |  |   35|    223|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    223|#define YYCURSOR pos
  |  |  ------------------
  ------------------
 1096|    223|	yych = YYPEEK();
  ------------------
  |  |   33|    223|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    223|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    222|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 222, False: 1]
  |  |  ------------------
  ------------------
 1097|    223|	switch (yych) {
 1098|    141|		case '=': goto yy60;
  ------------------
  |  Branch (1098:3): [True: 141, False: 82]
  ------------------
 1099|     80|		case 'u': goto yy61;
  ------------------
  |  Branch (1099:3): [True: 80, False: 143]
  ------------------
 1100|      2|		default: goto yy59;
  ------------------
  |  Branch (1100:3): [True: 2, False: 221]
  ------------------
 1101|    223|	}
 1102|    158|yy59:
 1103|    158|	YYRESTORE();
  ------------------
  |  |   37|    158|#define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   31|    158|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYRESTORE() YYCURSOR = YYMARKER
  |  |  ------------------
  |  |  |  |   32|    158|#define YYMARKER context.marker
  |  |  ------------------
  ------------------
 1104|    158|	goto yy54;
 1105|    141|yy60:
 1106|    141|	YYSKIP();
  ------------------
  |  |   35|    141|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|    141|#define YYCURSOR pos
  |  |  ------------------
  ------------------
 1107|    141|	yych = YYPEEK();
  ------------------
  |  |   33|    141|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    141|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|    140|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 140, False: 1]
  |  |  ------------------
  ------------------
 1108|    141|	switch (yych) {
 1109|     28|		case '0':
  ------------------
  |  Branch (1109:3): [True: 28, False: 113]
  ------------------
 1110|     41|		case '1':
  ------------------
  |  Branch (1110:3): [True: 13, False: 128]
  ------------------
 1111|     54|		case '2':
  ------------------
  |  Branch (1111:3): [True: 13, False: 128]
  ------------------
 1112|     67|		case '3':
  ------------------
  |  Branch (1112:3): [True: 13, False: 128]
  ------------------
 1113|     97|		case '4':
  ------------------
  |  Branch (1113:3): [True: 30, False: 111]
  ------------------
 1114|    103|		case '5':
  ------------------
  |  Branch (1114:3): [True: 6, False: 135]
  ------------------
 1115|    107|		case '6':
  ------------------
  |  Branch (1115:3): [True: 4, False: 137]
  ------------------
 1116|    116|		case '7':
  ------------------
  |  Branch (1116:3): [True: 9, False: 132]
  ------------------
 1117|    122|		case '8':
  ------------------
  |  Branch (1117:3): [True: 6, False: 135]
  ------------------
 1118|    128|		case '9': goto yy62;
  ------------------
  |  Branch (1118:3): [True: 6, False: 135]
  ------------------
 1119|     13|		default: goto yy59;
  ------------------
  |  Branch (1119:3): [True: 13, False: 128]
  ------------------
 1120|    141|	}
 1121|     80|yy61:
 1122|     80|	YYSKIP();
  ------------------
  |  |   35|     80|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|     80|#define YYCURSOR pos
  |  |  ------------------
  ------------------
 1123|     80|	yych = YYPEEK();
  ------------------
  |  |   33|     80|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     80|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     79|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 79, False: 1]
  |  |  ------------------
  ------------------
 1124|     80|	switch (yych) {
 1125|     74|		case '=': goto yy63;
  ------------------
  |  Branch (1125:3): [True: 74, False: 6]
  ------------------
 1126|      6|		default: goto yy59;
  ------------------
  |  Branch (1126:3): [True: 6, False: 74]
  ------------------
 1127|     80|	}
 1128|  2.82k|yy62:
 1129|  2.82k|	YYSKIP();
  ------------------
  |  |   35|  2.82k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  2.82k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
 1130|  2.82k|	yych = YYPEEK();
  ------------------
  |  |   33|  2.82k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  2.82k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  2.74k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 2.74k, False: 84]
  |  |  ------------------
  ------------------
 1131|  2.82k|	switch (yych) {
 1132|    695|		case '0':
  ------------------
  |  Branch (1132:3): [True: 695, False: 2.13k]
  ------------------
 1133|    910|		case '1':
  ------------------
  |  Branch (1133:3): [True: 215, False: 2.61k]
  ------------------
 1134|  1.10k|		case '2':
  ------------------
  |  Branch (1134:3): [True: 194, False: 2.63k]
  ------------------
 1135|  1.30k|		case '3':
  ------------------
  |  Branch (1135:3): [True: 203, False: 2.62k]
  ------------------
 1136|  1.55k|		case '4':
  ------------------
  |  Branch (1136:3): [True: 248, False: 2.57k]
  ------------------
 1137|  1.77k|		case '5':
  ------------------
  |  Branch (1137:3): [True: 219, False: 2.60k]
  ------------------
 1138|  1.98k|		case '6':
  ------------------
  |  Branch (1138:3): [True: 213, False: 2.61k]
  ------------------
 1139|  2.26k|		case '7':
  ------------------
  |  Branch (1139:3): [True: 274, False: 2.55k]
  ------------------
 1140|  2.46k|		case '8':
  ------------------
  |  Branch (1140:3): [True: 207, False: 2.61k]
  ------------------
 1141|  2.69k|		case '9': goto yy62;
  ------------------
  |  Branch (1141:3): [True: 229, False: 2.59k]
  ------------------
 1142|     24|		case ';': goto yy64;
  ------------------
  |  Branch (1142:3): [True: 24, False: 2.80k]
  ------------------
 1143|    104|		default: goto yy59;
  ------------------
  |  Branch (1143:3): [True: 104, False: 2.72k]
  ------------------
 1144|  2.82k|	}
 1145|  1.47k|yy63:
 1146|  1.47k|	YYSKIP();
  ------------------
  |  |   35|  1.47k|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|  1.47k|#define YYCURSOR pos
  |  |  ------------------
  ------------------
 1147|  1.47k|	yych = YYPEEK();
  ------------------
  |  |   33|  1.47k|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.47k|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|  1.46k|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 1.46k, False: 9]
  |  |  ------------------
  ------------------
 1148|  1.47k|	switch (yych) {
 1149|     13|		case 0x00: goto yy59;
  ------------------
  |  Branch (1149:3): [True: 13, False: 1.46k]
  ------------------
 1150|     61|		case ';': goto yy64;
  ------------------
  |  Branch (1150:3): [True: 61, False: 1.41k]
  ------------------
 1151|  1.40k|		default: goto yy63;
  ------------------
  |  Branch (1151:3): [True: 1.40k, False: 74]
  ------------------
 1152|  1.47k|	}
 1153|     85|yy64:
 1154|     85|	YYSKIP();
  ------------------
  |  |   35|     85|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|     85|#define YYCURSOR pos
  |  |  ------------------
  ------------------
 1155|     85|	yych = YYPEEK();
  ------------------
  |  |   33|     85|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     85|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     83|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 83, False: 2]
  |  |  ------------------
  ------------------
 1156|     85|	switch (yych) {
 1157|     13|		case 'b':
  ------------------
  |  Branch (1157:3): [True: 13, False: 72]
  ------------------
 1158|     44|		case 'g':
  ------------------
  |  Branch (1158:3): [True: 31, False: 54]
  ------------------
 1159|     72|		case 'i':
  ------------------
  |  Branch (1159:3): [True: 28, False: 57]
  ------------------
 1160|     82|		case 's': goto yy65;
  ------------------
  |  Branch (1160:3): [True: 10, False: 75]
  ------------------
 1161|      3|		default: goto yy59;
  ------------------
  |  Branch (1161:3): [True: 3, False: 82]
  ------------------
 1162|     85|	}
 1163|     82|yy65:
 1164|     82|	YYSKIP();
  ------------------
  |  |   35|     82|#define YYSKIP() ++YYCURSOR;
  |  |  ------------------
  |  |  |  |   31|     82|#define YYCURSOR pos
  |  |  ------------------
  ------------------
 1165|     82|	yych = YYPEEK();
  ------------------
  |  |   33|     82|#define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     82|#define YYCURSOR pos
  |  |  ------------------
  |  |               #define YYPEEK() (YYCURSOR < end) ? *YYCURSOR : 0 /* The lexer sees a stream of
  |  |  ------------------
  |  |  |  |   31|     78|#define YYCURSOR pos
  |  |  ------------------
  |  |  |  Branch (33:18): [True: 78, False: 4]
  |  |  ------------------
  ------------------
 1166|     82|	switch (yych) {
 1167|     65|		case '=': goto yy57;
  ------------------
  |  Branch (1167:3): [True: 65, False: 17]
  ------------------
 1168|     17|		default: goto yy59;
  ------------------
  |  Branch (1168:3): [True: 17, False: 65]
  ------------------
 1169|     82|	}
 1170|     82|}
 1171|       |
 1172|       |
 1173|       |    /* Parse the BrowsePath */
 1174|    910| parse_path:
 1175|    910|    res = parse_relativepath(&ao->browsePath, &pos, end, NULL,
 1176|    910|                             UA_ESCAPING_PERCENT_EXTENDED, defaultNamespaceIndex);
 1177|    910|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    910|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1177:8): [True: 368, False: 542]
  ------------------
 1178|    368|        goto cleanup;
 1179|       |
 1180|       |    /* Parse the AttributeId */
 1181|    542|    if(pos < end && *pos == '#') {
  ------------------
  |  Branch (1181:8): [True: 364, False: 178]
  |  Branch (1181:21): [True: 79, False: 285]
  ------------------
 1182|     79|        const u8 *attr_pos = ++pos;
 1183|   601k|        while(pos < end && ((*pos >= 'a' && *pos <= 'z') ||
  ------------------
  |  Branch (1183:15): [True: 601k, False: 51]
  |  Branch (1183:30): [True: 61.7k, False: 539k]
  |  Branch (1183:45): [True: 61.7k, False: 14]
  ------------------
 1184|   601k|                            (*pos >= 'A' && *pos <= 'Z'))) {
  ------------------
  |  Branch (1184:30): [True: 539k, False: 9]
  |  Branch (1184:45): [True: 539k, False: 19]
  ------------------
 1185|   601k|            pos++;
 1186|   601k|        }
 1187|     79|        UA_String attrString = {(size_t)(pos - attr_pos), (UA_Byte*)(uintptr_t)attr_pos};
 1188|     79|        ao->attributeId = UA_AttributeId_fromName(attrString);
 1189|     79|        if(ao->attributeId == UA_ATTRIBUTEID_INVALID) {
  ------------------
  |  Branch (1189:12): [True: 77, False: 2]
  ------------------
 1190|     77|            res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     77|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1191|     77|            goto cleanup;
 1192|     77|        }
 1193|     79|    }
 1194|       |
 1195|       |    /* Parse the IndexRange */
 1196|    465|    if(pos < end && *pos == '[') {
  ------------------
  |  Branch (1196:8): [True: 285, False: 180]
  |  Branch (1196:21): [True: 41, False: 244]
  ------------------
 1197|     41|        const u8 *range_pos = ++pos;
 1198|  1.53M|        while(pos < end && *pos != ']') {
  ------------------
  |  Branch (1198:15): [True: 1.53M, False: 20]
  |  Branch (1198:28): [True: 1.53M, False: 21]
  ------------------
 1199|  1.53M|            pos++;
 1200|  1.53M|        }
 1201|     41|        if(pos == end) {
  ------------------
  |  Branch (1201:12): [True: 20, False: 21]
  ------------------
 1202|     20|            res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     20|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1203|     20|            goto cleanup;
 1204|     20|        }
 1205|     21|        UA_String rangeString = {(size_t)(pos - range_pos), (UA_Byte*)(uintptr_t)range_pos};
 1206|     21|        if(rangeString.length > 0)
  ------------------
  |  Branch (1206:12): [True: 20, False: 1]
  ------------------
 1207|     20|            res = UA_String_copy(&rangeString, &ao->indexRange);
 1208|     21|        pos++;
 1209|     21|    }
 1210|       |
 1211|       |    /* Check that we have parsed the entire string */
 1212|    445|    if(pos != end)
  ------------------
  |  Branch (1212:8): [True: 260, False: 185]
  ------------------
 1213|    260|        res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    260|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
 1214|       |
 1215|       |
 1216|    985| cleanup:
 1217|    985|    if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    985|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1217:8): [True: 800, False: 185]
  ------------------
 1218|    800|        UA_AttributeOperand_clear(ao);
 1219|    985|    return res;
 1220|    445|}

UA_AttributeId_fromName:
   56|     79|UA_AttributeId_fromName(const UA_String name) {
   57|  2.24k|    for(size_t i = 0; i < 28; i++) {
  ------------------
  |  Branch (57:23): [True: 2.17k, False: 77]
  ------------------
   58|  2.17k|        if(strlen(attributeIdNames[i]) != name.length)
  ------------------
  |  Branch (58:12): [True: 2.15k, False: 21]
  ------------------
   59|  2.15k|            continue;
   60|     40|        for(size_t j = 0; j < name.length; j++) {
  ------------------
  |  Branch (60:27): [True: 38, False: 2]
  ------------------
   61|     38|            if((attributeIdNames[i][j] | 32) != (name.data[j] | 32))
  ------------------
  |  Branch (61:16): [True: 19, False: 19]
  ------------------
   62|     19|                goto next;
   63|     38|        }
   64|      2|        return (UA_AttributeId)i;
   65|     19|    next:
   66|     19|        continue;
   67|     21|    }
   68|     77|    return UA_ATTRIBUTEID_INVALID;
   69|     79|}
UA_readNumberWithBase:
  111|  12.9k|UA_readNumberWithBase(const UA_Byte *buf, size_t buflen, UA_UInt32 *number, UA_Byte base) {
  112|  12.9k|    UA_assert(buf);
  ------------------
  |  |  399|  12.9k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (112:5): [True: 12.9k, False: 0]
  ------------------
  113|  12.9k|    UA_assert(number);
  ------------------
  |  |  399|  12.9k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (113:5): [True: 12.9k, False: 0]
  ------------------
  114|  12.9k|    u32 n = 0;
  115|  12.9k|    size_t progress = 0;
  116|       |    /* read numbers until the end or a non-number character appears */
  117|  1.14M|    while(progress < buflen) {
  ------------------
  |  Branch (117:11): [True: 1.12M, False: 12.8k]
  ------------------
  118|  1.12M|        u8 c = buf[progress];
  119|  1.12M|        if(c >= '0' && c <= '9' && c <= '0' + (base-1))
  ------------------
  |  Branch (119:12): [True: 1.12M, False: 29]
  |  Branch (119:24): [True: 1.11M, False: 17.3k]
  |  Branch (119:36): [True: 1.11M, False: 0]
  ------------------
  120|  1.11M|           n = (n * base) + c - '0';
  121|  17.4k|        else if(base > 9 && c >= 'a' && c <= 'z' && c <= 'a' + (base-11))
  ------------------
  |  Branch (121:17): [True: 17.4k, False: 0]
  |  Branch (121:29): [True: 3.13k, False: 14.2k]
  |  Branch (121:41): [True: 3.10k, False: 25]
  |  Branch (121:53): [True: 3.10k, False: 9]
  ------------------
  122|  3.10k|           n = (n * base) + c-'a' + 10;
  123|  14.3k|        else if(base > 9 && c >= 'A' && c <= 'Z' && c <= 'A' + (base-11))
  ------------------
  |  Branch (123:17): [True: 14.3k, False: 0]
  |  Branch (123:29): [True: 14.2k, False: 36]
  |  Branch (123:41): [True: 14.2k, False: 37]
  |  Branch (123:53): [True: 14.2k, False: 8]
  ------------------
  124|  14.2k|           n = (n * base) + c-'A' + 10;
  125|     81|        else
  126|     81|           break;
  127|  1.12M|        ++progress;
  128|  1.12M|    }
  129|  12.9k|    *number = n;
  130|  12.9k|    return progress;
  131|  12.9k|}
UA_readNumber:
  134|  2.99k|UA_readNumber(const UA_Byte *buf, size_t buflen, UA_UInt32 *number) {
  135|  2.99k|    return UA_readNumberWithBase(buf, buflen, number, 10);
  136|  2.99k|}
lookupRefType:
  727|  1.14k|lookupRefType(UA_Server *server, UA_QualifiedName *qn, UA_NodeId *outRefTypeId) {
  728|       |    /* Check well-known ReferenceTypes first */
  729|  1.14k|    if(qn->namespaceIndex == 0) {
  ------------------
  |  Branch (729:8): [True: 1.12k, False: 16]
  ------------------
  730|  11.7k|        for(size_t i = 0; i < KNOWNREFTYPES; i++) {
  ------------------
  |  |  705|  11.7k|#define KNOWNREFTYPES 17
  ------------------
  |  Branch (730:27): [True: 11.2k, False: 469]
  ------------------
  731|  11.2k|            if(UA_String_equal(&qn->name, &knownRefTypes[i].browseName)) {
  ------------------
  |  Branch (731:16): [True: 656, False: 10.6k]
  ------------------
  732|    656|                *outRefTypeId = UA_NODEID_NUMERIC(0, knownRefTypes[i].identifier);
  733|    656|                return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    656|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  734|    656|            }
  735|  11.2k|        }
  736|  1.12k|    }
  737|       |
  738|       |    /* Browse the information model. Return the first results if the browse name
  739|       |     * in the hierarchy is ambiguous. */
  740|    485|    if(server) {
  ------------------
  |  Branch (740:8): [True: 0, False: 485]
  ------------------
  741|      0|        UA_BrowseDescription bd;
  742|      0|        UA_BrowseDescription_init(&bd);
  743|      0|        bd.nodeId = UA_NODEID_NUMERIC(0, UA_NS0ID_REFERENCES);
  ------------------
  |  |   44|      0|#define UA_NS0ID_REFERENCES 31 /* ReferenceType */
  ------------------
  744|      0|        bd.browseDirection = UA_BROWSEDIRECTION_FORWARD;
  745|      0|        bd.referenceTypeId = UA_NODEID_NUMERIC(0, UA_NS0ID_HASSUBTYPE);
  ------------------
  |  |   56|      0|#define UA_NS0ID_HASSUBTYPE 45 /* ReferenceType */
  ------------------
  746|      0|        bd.nodeClassMask = UA_NODECLASS_REFERENCETYPE;
  747|       |
  748|      0|        size_t resultsSize = 0;
  749|      0|        UA_ExpandedNodeId *results = NULL;
  750|      0|        UA_StatusCode res =
  751|      0|            UA_Server_browseRecursive(server, &bd, &resultsSize, &results);
  752|      0|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (752:12): [True: 0, False: 0]
  ------------------
  753|      0|            return res;
  754|      0|        for(size_t i = 0; i < resultsSize; i++) {
  ------------------
  |  Branch (754:27): [True: 0, False: 0]
  ------------------
  755|      0|            UA_QualifiedName bn;
  756|      0|            UA_Server_readBrowseName(server, results[i].nodeId, &bn);
  757|      0|            if(UA_QualifiedName_equal(qn, &bn)) {
  ------------------
  |  Branch (757:16): [True: 0, False: 0]
  ------------------
  758|      0|                UA_QualifiedName_clear(&bn);
  759|      0|                *outRefTypeId = results[i].nodeId;
  760|      0|                UA_NodeId_clear(&results[i].nodeId);
  761|      0|                UA_Array_delete(results, resultsSize, &UA_TYPES[UA_TYPES_NODEID]);
  ------------------
  |  |  572|      0|#define UA_TYPES_NODEID 16
  ------------------
  762|      0|                return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  763|      0|            }
  764|      0|            UA_QualifiedName_clear(&bn);
  765|      0|        }
  766|       |
  767|      0|        UA_Array_delete(results, resultsSize, &UA_TYPES[UA_TYPES_NODEID]);
  ------------------
  |  |  572|      0|#define UA_TYPES_NODEID 16
  ------------------
  768|      0|    }
  769|       |
  770|    485|    return UA_STATUSCODE_BADNOTFOUND;
  ------------------
  |  |  233|    485|#define UA_STATUSCODE_BADNOTFOUND ((UA_StatusCode) 0x803E0000)
  ------------------
  771|    485|}
getRefTypeBrowseName:
  774|  5.39k|getRefTypeBrowseName(const UA_NodeId *refTypeId, UA_String *outBN) {
  775|       |    /* Canonical name known? */
  776|  5.39k|    if(refTypeId->namespaceIndex == 0 &&
  ------------------
  |  Branch (776:8): [True: 4.70k, False: 696]
  ------------------
  777|  4.70k|       refTypeId->identifierType == UA_NODEIDTYPE_NUMERIC) {
  ------------------
  |  Branch (777:8): [True: 1.45k, False: 3.24k]
  ------------------
  778|  14.0k|        for(size_t i = 0; i < KNOWNREFTYPES; i++) {
  ------------------
  |  |  705|  14.0k|#define KNOWNREFTYPES 17
  ------------------
  |  Branch (778:27): [True: 13.5k, False: 567]
  ------------------
  779|  13.5k|            if(refTypeId->identifier.numeric != knownRefTypes[i].identifier)
  ------------------
  |  Branch (779:16): [True: 12.6k, False: 891]
  ------------------
  780|  12.6k|                continue;
  781|    891|            memcpy(outBN->data, knownRefTypes[i].browseName.data, knownRefTypes[i].browseName.length);
  782|    891|            outBN->length = knownRefTypes[i].browseName.length;
  783|    891|            return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    891|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  784|  13.5k|        }
  785|  1.45k|    }
  786|       |
  787|       |    /* Print the NodeId */
  788|  4.50k|    return UA_NodeId_print(refTypeId, outBN);
  789|  5.39k|}
UA_String_unescape:
  803|  17.2k|UA_String_unescape(UA_String *str, UA_Boolean copyEscape, UA_Escaping esc) {
  804|  17.2k|    if(esc == UA_ESCAPING_NONE)
  ------------------
  |  Branch (804:8): [True: 213, False: 17.0k]
  ------------------
  805|    213|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    213|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  806|       |
  807|       |    /* Does the string need escaping? */
  808|  17.0k|    UA_String tmp;
  809|  17.0k|    status res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  17.0k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  810|  17.0k|    u8 *pos = str->data;
  811|  17.0k|    u8 *end = str->data + str->length;
  812|  17.0k|    u8 escape_char = (esc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (812:23): [True: 34, False: 17.0k]
  ------------------
  813|  17.0k|                      esc == UA_ESCAPING_PERCENT_EXTENDED) ? '%' : '&';
  ------------------
  |  Branch (813:23): [True: 3.57k, False: 13.4k]
  ------------------
  814|  1.21M|    for(; pos < end; pos++) {
  ------------------
  |  Branch (814:11): [True: 1.19M, False: 16.2k]
  ------------------
  815|  1.19M|        if(*pos == escape_char)
  ------------------
  |  Branch (815:12): [True: 834, False: 1.19M]
  ------------------
  816|    834|            goto escape;
  817|  1.19M|    }
  818|       |
  819|  16.2k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  16.2k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  820|       |
  821|    834| escape:
  822|    834|    if(copyEscape) {
  ------------------
  |  Branch (822:8): [True: 0, False: 834]
  ------------------
  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|    834|    u8 byte = 0;
  831|    834|    u8 *writepos = pos;
  832|       |
  833|    834|    res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    834|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  834|    834|    if(esc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (834:8): [True: 1, False: 833]
  ------------------
  835|    833|       esc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (835:8): [True: 430, False: 403]
  ------------------
  836|       |        /* Percent-Escaping */
  837|   716k|        for(; pos < end; pos++) {
  ------------------
  |  Branch (837:15): [True: 716k, False: 229]
  ------------------
  838|   716k|            if(*pos == '%') {
  ------------------
  |  Branch (838:16): [True: 3.04k, False: 713k]
  ------------------
  839|  3.04k|                if(pos + 2 >= end || !isHex(pos[1]) || !isHex(pos[2]))
  ------------------
  |  Branch (839:20): [True: 0, False: 3.04k]
  |  Branch (839:38): [True: 98, False: 2.94k]
  |  Branch (839:56): [True: 104, False: 2.84k]
  ------------------
  840|    202|                    goto out;
  841|  2.84k|                if(pos[1] >= 'a')
  ------------------
  |  Branch (841:20): [True: 1.81k, False: 1.02k]
  ------------------
  842|  1.81k|                    byte = pos[1] - ('a' - 10);
  843|  1.02k|                else if(pos[1] >= 'A')
  ------------------
  |  Branch (843:25): [True: 425, False: 599]
  ------------------
  844|    425|                    byte = pos[1] - ('A' - 10);
  845|    599|                else
  846|    599|                    byte = pos[1] - '0';
  847|  2.84k|                byte <<= 4;
  848|       |
  849|  2.84k|                if(pos[2] >= 'a')
  ------------------
  |  Branch (849:20): [True: 560, False: 2.28k]
  ------------------
  850|    560|                    byte += (u8)(pos[2] - ('a' - 10));
  851|  2.28k|                else if(pos[2] >= 'A')
  ------------------
  |  Branch (851:25): [True: 1.61k, False: 669]
  ------------------
  852|  1.61k|                    byte += (u8)(pos[2] - ('A' - 10));
  853|    669|                else
  854|    669|                    byte += (u8)(pos[2] - '0');
  855|       |
  856|  2.84k|                pos += 2;
  857|  2.84k|                *writepos++ = byte;
  858|  2.84k|                continue;
  859|  3.04k|            }
  860|   713k|            *writepos++ = *pos;
  861|   713k|        }
  862|    431|    } else {
  863|       |        /* And-Escaping */
  864|  1.83M|        for(; pos < end; pos++) {
  ------------------
  |  Branch (864:15): [True: 1.83M, False: 403]
  ------------------
  865|  1.83M|            if(*pos == '&') {
  ------------------
  |  Branch (865:16): [True: 3.03k, False: 1.83M]
  ------------------
  866|  3.03k|                pos++;
  867|  3.03k|                if(pos == end)
  ------------------
  |  Branch (867:20): [True: 0, False: 3.03k]
  ------------------
  868|      0|                    goto out;
  869|  3.03k|            }
  870|  1.83M|            *writepos++ = *pos;
  871|  1.83M|        }
  872|    403|    }
  873|    632|    res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    632|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  874|       |
  875|    834| out:
  876|    834|    if(copyEscape) {
  ------------------
  |  Branch (876:8): [True: 0, False: 834]
  ------------------
  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|    834|    } else if(res == UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|    834|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (884:15): [True: 632, False: 202]
  ------------------
  885|    632|        str->length = (size_t)(writepos - str->data);
  886|    632|    }
  887|    834|    return res;
  888|    632|}
UA_String_escapedSize:
  894|  15.7k|UA_String_escapedSize(const UA_String s, UA_Escaping esc) {
  895|       |    /* Find out the overhead from escaping */
  896|  15.7k|    size_t overhead = 0;
  897|  20.0M|    for(size_t j = 0; j < s.length; j++) {
  ------------------
  |  Branch (897:23): [True: 20.0M, False: 15.7k]
  ------------------
  898|  20.0M|        if(esc == UA_ESCAPING_AND_EXTENDED)
  ------------------
  |  Branch (898:12): [True: 0, False: 20.0M]
  ------------------
  899|      0|            overhead += isReservedAndExtended(s.data[j]);
  900|  20.0M|        else if(esc == UA_ESCAPING_AND)
  ------------------
  |  Branch (900:17): [True: 6.76M, False: 13.3M]
  ------------------
  901|  6.76M|            overhead += isReservedAnd(s.data[j]);
  902|  13.3M|        else if(esc == UA_ESCAPING_PERCENT)
  ------------------
  |  Branch (902:17): [True: 0, False: 13.3M]
  ------------------
  903|      0|            overhead += (isReservedPercent(s.data[j]) ? 2 : 0);
  ------------------
  |  Branch (903:26): [True: 0, False: 0]
  ------------------
  904|  13.3M|        else /* if(esc == UA_ESCAPING_PERCENT_EXTENDED) */
  905|  13.3M|            overhead += (isReservedPercentExtended(s.data[j]) ? 2 : 0);
  ------------------
  |  Branch (905:26): [True: 10.1M, False: 3.17M]
  ------------------
  906|  20.0M|    }
  907|       |
  908|  15.7k|    return s.length + overhead;
  909|  15.7k|}
UA_String_escapeInsert:
  912|  15.0k|UA_String_escapeInsert(u8 *pos, const UA_String s2, UA_Escaping esc) {
  913|  15.0k|    u8 *begin = pos;
  914|       |
  915|  15.0k|    if(esc == UA_ESCAPING_NONE) {
  ------------------
  |  Branch (915:8): [True: 1.60k, False: 13.3k]
  ------------------
  916|  6.65M|        for(size_t j = 0; j < s2.length; j++)
  ------------------
  |  Branch (916:27): [True: 6.65M, False: 1.60k]
  ------------------
  917|  6.65M|            *pos++ = s2.data[j];
  918|  13.3k|    } else if(esc == UA_ESCAPING_PERCENT || esc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (918:15): [True: 0, False: 13.3k]
  |  Branch (918:45): [True: 0, False: 13.3k]
  ------------------
  919|      0|        for(size_t j = 0; j < s2.length; j++) {
  ------------------
  |  Branch (919:27): [True: 0, False: 0]
  ------------------
  920|      0|            UA_Boolean reserved = (esc == UA_ESCAPING_PERCENT_EXTENDED) ?
  ------------------
  |  Branch (920:35): [True: 0, False: 0]
  ------------------
  921|      0|                isReservedPercentExtended(s2.data[j]) : isReservedPercent(s2.data[j]);
  922|      0|            if(UA_LIKELY(!reserved)) {
  ------------------
  |  |  578|      0|# define UA_LIKELY(x) __builtin_expect((x), 1)
  |  |  ------------------
  |  |  |  Branch (578:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  923|      0|                *pos++ = s2.data[j];
  924|      0|            } else {
  925|      0|                *pos++ = '%';
  926|      0|                *pos++ = hexchars[s2.data[j] >> 4];
  927|      0|                *pos++ = hexchars[s2.data[j] & 0x0f];
  928|      0|            }
  929|      0|        }
  930|  13.3k|    } else {
  931|  6.77M|        for(size_t j = 0; j < s2.length; j++) {
  ------------------
  |  Branch (931:27): [True: 6.76M, False: 13.3k]
  ------------------
  932|  6.76M|            UA_Boolean reserved = (esc == UA_ESCAPING_AND_EXTENDED) ?
  ------------------
  |  Branch (932:35): [True: 0, False: 6.76M]
  ------------------
  933|  6.76M|                isReservedAndExtended(s2.data[j]) : isReservedAnd(s2.data[j]);
  934|  6.76M|            if(reserved)
  ------------------
  |  Branch (934:16): [True: 156k, False: 6.60M]
  ------------------
  935|   156k|                *pos++ = '&';
  936|  6.76M|            *pos++ = s2.data[j];
  937|  6.76M|        }
  938|  13.3k|    }
  939|       |
  940|  15.0k|    return (size_t)(pos - begin);
  941|  15.0k|}
UA_String_escapeAppend:
  944|  13.3k|UA_String_escapeAppend(UA_String *s, const UA_String s2, UA_Escaping esc) {
  945|  13.3k|    if(esc == UA_ESCAPING_NONE)
  ------------------
  |  Branch (945:8): [True: 0, False: 13.3k]
  ------------------
  946|      0|        return UA_String_append(s, s2);
  947|       |
  948|       |    /* Allocate memory for the additional escaped string */
  949|  13.3k|    size_t escapedLength = UA_String_escapedSize(s2, esc);
  950|  13.3k|    UA_Byte *buf = (UA_Byte*)
  951|  13.3k|        UA_realloc((void*)((uintptr_t)s->data & ~(uintptr_t)UA_EMPTY_ARRAY_SENTINEL),
  ------------------
  |  |   21|  13.3k|#define UA_realloc(ptr, size) UA_reallocSingleton(ptr, size)
  ------------------
  952|  13.3k|                   s->length + s2.length + escapedLength);
  953|  13.3k|    if(!buf)
  ------------------
  |  Branch (953:8): [True: 0, False: 13.3k]
  ------------------
  954|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  955|       |
  956|       |    /* Escape and insert at the end */
  957|  13.3k|    s->data = buf;
  958|  13.3k|    UA_String_escapeInsert(s->data + s->length, s2, esc);
  959|  13.3k|    s->length += escapedLength;
  960|  13.3k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  13.3k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  961|  13.3k|}
UA_RelativePath_print:
 1059|    749|UA_RelativePath_print(const UA_RelativePath *rp, UA_String *out) {
 1060|    749|    return printRelativePath(rp, out, UA_ESCAPING_AND);
 1061|    749|}
ua_util.c:isHex:
  796|  5.98k|isHex(u8 c) {
  797|  5.98k|    return ((c >= 'a' && c <= 'f') ||
  ------------------
  |  Branch (797:14): [True: 2.49k, False: 3.49k]
  |  Branch (797:26): [True: 2.41k, False: 78]
  ------------------
  798|  3.57k|            (c >= 'A' && c <= 'F') ||
  ------------------
  |  Branch (798:14): [True: 2.16k, False: 1.40k]
  |  Branch (798:26): [True: 2.06k, False: 103]
  ------------------
  799|  1.50k|            (c >= '0' && c <= '9'));
  ------------------
  |  Branch (799:14): [True: 1.43k, False: 75]
  |  Branch (799:26): [True: 1.30k, False: 127]
  ------------------
  800|  5.98k|}
ua_util.c:printRelativePath:
 1001|    749|printRelativePath(const UA_RelativePath *rp, UA_String *out, UA_Escaping esc) {
 1002|    749|    UA_String tmp = UA_STRING_NULL;
 1003|    749|    UA_StatusCode res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    749|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1004|  9.49k|    for(size_t i = 0; i < rp->elementsSize && res == UA_STATUSCODE_GOOD; i++) {
  ------------------
  |  |   17|  8.74k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1004:23): [True: 8.74k, False: 749]
  |  Branch (1004:47): [True: 8.74k, False: 0]
  ------------------
 1005|       |        /* Print the reference type */
 1006|  8.74k|        UA_RelativePathElement *elm = &rp->elements[i];
 1007|  8.74k|        if(UA_NodeId_equal(&hierarchicalRefs, &elm->referenceTypeId) &&
  ------------------
  |  Branch (1007:12): [True: 2.55k, False: 6.18k]
  ------------------
 1008|  2.55k|           !elm->isInverse && elm->includeSubtypes) {
  ------------------
  |  Branch (1008:12): [True: 2.36k, False: 194]
  |  Branch (1008:31): [True: 2.29k, False: 66]
  ------------------
 1009|  2.29k|            res |= UA_String_append(&tmp, UA_STRING("/"));
 1010|  6.44k|        } else if(esc == UA_ESCAPING_AND &&
  ------------------
  |  Branch (1010:19): [True: 6.44k, False: 0]
  ------------------
 1011|  6.44k|                  UA_NodeId_equal(&aggregatesRefs, &elm->referenceTypeId) &&
  ------------------
  |  Branch (1011:19): [True: 2.05k, False: 4.39k]
  ------------------
 1012|  2.05k|                  !elm->isInverse && elm->includeSubtypes) {
  ------------------
  |  Branch (1012:19): [True: 1.85k, False: 194]
  |  Branch (1012:38): [True: 1.79k, False: 66]
  ------------------
 1013|  1.79k|            res |= UA_String_append(&tmp, UA_STRING("."));
 1014|  4.65k|        } else {
 1015|  4.65k|            res |= UA_String_append(&tmp, UA_STRING("<"));
 1016|  4.65k|            if(!elm->includeSubtypes)
  ------------------
  |  Branch (1016:16): [True: 337, False: 4.31k]
  ------------------
 1017|    337|                res |= UA_String_append(&tmp, UA_STRING("#"));
 1018|  4.65k|            if(elm->isInverse)
  ------------------
  |  Branch (1018:16): [True: 582, False: 4.07k]
  ------------------
 1019|    582|                res |= UA_String_append(&tmp, UA_STRING("!"));
 1020|  4.65k|            if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  4.65k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1020:16): [True: 0, False: 4.65k]
  ------------------
 1021|      0|                break;
 1022|       |
 1023|  4.65k|            UA_Byte bnBuf[512];
 1024|  4.65k|            UA_String bnBufStr = {512, bnBuf};
 1025|  4.65k|            res = getRefTypeBrowseName(&elm->referenceTypeId, &bnBufStr);
 1026|  4.65k|            if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|  4.65k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1026:16): [True: 743, False: 3.91k]
  ------------------
 1027|    743|                UA_String_init(&bnBufStr);
 1028|    743|                res = getRefTypeBrowseName(&elm->referenceTypeId, &bnBufStr);
 1029|    743|                if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    743|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1029:20): [True: 0, False: 743]
  ------------------
 1030|      0|                    break;
 1031|    743|            }
 1032|  4.65k|            res |= UA_String_escapeAppend(&tmp, bnBufStr, esc);
 1033|  4.65k|            res |= UA_String_append(&tmp, UA_STRING(">"));
 1034|  4.65k|            if(bnBufStr.data != bnBuf)
  ------------------
  |  Branch (1034:16): [True: 743, False: 3.91k]
  ------------------
 1035|    743|                UA_String_clear(&bnBufStr);
 1036|  4.65k|        }
 1037|       |
 1038|       |        /* Print the qualified name */
 1039|  8.74k|        UA_QualifiedName *qn = &elm->targetName;
 1040|  8.74k|        if(qn->namespaceIndex > 0) {
  ------------------
  |  Branch (1040:12): [True: 416, False: 8.32k]
  ------------------
 1041|    416|            char nsStr[8]; /* Enough for a uint16 */
 1042|    416|            itoaUnsigned(qn->namespaceIndex, nsStr, 10);
 1043|    416|            res |= UA_String_append(&tmp, UA_STRING(nsStr));
 1044|    416|            res |= UA_String_append(&tmp, UA_STRING(":"));
 1045|    416|        }
 1046|  8.74k|        res |= UA_String_escapeAppend(&tmp, qn->name, esc);
 1047|  8.74k|    }
 1048|       |
 1049|       |    /* Encoding failed, clean up */
 1050|    749|    if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|    749|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1050:8): [True: 0, False: 749]
  ------------------
 1051|      0|        UA_String_clear(&tmp);
 1052|      0|        return res;
 1053|      0|    }
 1054|       |
 1055|    749|    return moveTmpToOut(&tmp, out);
 1056|    749|}
ua_util.c:moveTmpToOut:
  964|    749|moveTmpToOut(UA_String *tmp, UA_String *out) {
  965|       |    /* Output has zero length */
  966|    749|    if(tmp->length == 0) {
  ------------------
  |  Branch (966:8): [True: 0, False: 749]
  ------------------
  967|      0|        UA_assert(tmp->data == NULL);
  ------------------
  |  |  399|      0|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (967:9): [True: 0, False: 0]
  ------------------
  968|      0|        if(out->data == NULL)
  ------------------
  |  Branch (968:12): [True: 0, False: 0]
  ------------------
  969|      0|            out->data = (UA_Byte*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|      0|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
  970|      0|        out->length = 0;
  971|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  972|      0|    }
  973|       |
  974|       |    /* No output buffer provided, return the tmp buffer */
  975|    749|    if(out->length == 0) {
  ------------------
  |  Branch (975:8): [True: 749, False: 0]
  ------------------
  976|    749|        *out = *tmp;
  977|    749|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    749|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  978|    749|    }
  979|       |
  980|       |    /* The provided buffer is too short */
  981|      0|    if(out->length < tmp->length) {
  ------------------
  |  Branch (981:8): [True: 0, False: 0]
  ------------------
  982|      0|        UA_String_clear(tmp);
  983|      0|        return UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED;
  ------------------
  |  |   47|      0|#define UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED ((UA_StatusCode) 0x80080000)
  ------------------
  984|      0|    }
  985|       |
  986|       |    /* Copy output to the provided buffer */
  987|      0|    memcpy(out->data, tmp->data, tmp->length);
  988|      0|    out->length = tmp->length;
  989|      0|    UA_String_clear(tmp);
  990|      0|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  991|      0|}

ua_types.c:isTrue:
  167|  10.0k|isTrue(uint8_t expr) {
  168|  10.0k|    return expr;
  169|  10.0k|}
ua_util.c:isReservedAnd:
   83|  13.5M|isReservedAnd(u8 c) {
   84|  13.5M|    return (c == '/' || c == '.' || c == '<' || c == '>' ||
  ------------------
  |  Branch (84:13): [True: 92.1k, False: 13.4M]
  |  Branch (84:25): [True: 131k, False: 13.3M]
  |  Branch (84:37): [True: 14.3k, False: 13.2M]
  |  Branch (84:49): [True: 840, False: 13.2M]
  ------------------
   85|  13.2M|            c == ':' || c == '#' || c == '!' || c == '&');
  ------------------
  |  Branch (85:13): [True: 60.7k, False: 13.2M]
  |  Branch (85:25): [True: 2.66k, False: 13.2M]
  |  Branch (85:37): [True: 5.14k, False: 13.2M]
  |  Branch (85:49): [True: 5.05k, False: 13.2M]
  ------------------
   86|  13.5M|}
ua_util.c:isReservedPercent:
   95|  13.3M|isReservedPercent(u8 c) {
   96|  13.3M|    return (c == ';'  || c == '%' || c <= ' ' || c == 127);
  ------------------
  |  Branch (96:13): [True: 1.52k, False: 13.3M]
  |  Branch (96:26): [True: 7.08k, False: 13.2M]
  |  Branch (96:38): [True: 6.99M, False: 6.30M]
  |  Branch (96:50): [True: 2.77M, False: 3.52M]
  ------------------
   97|  13.3M|}
ua_util.c:isReservedPercentExtended:
  100|  13.3M|isReservedPercentExtended(u8 c) {
  101|  13.3M|    return (isReservedPercent(c) || c == ':' || c == '#' || c == '[' || c == ']' ||
  ------------------
  |  Branch (101:13): [True: 9.77M, False: 3.52M]
  |  Branch (101:37): [True: 59.5k, False: 3.46M]
  |  Branch (101:49): [True: 2.43k, False: 3.46M]
  |  Branch (101:61): [True: 2.72k, False: 3.46M]
  |  Branch (101:73): [True: 1.65k, False: 3.46M]
  ------------------
  102|  3.46M|            c == '&' || c == '(' || c == ')' || c == ',' || c == '<' || c == '>' ||
  ------------------
  |  Branch (102:13): [True: 3.78k, False: 3.45M]
  |  Branch (102:25): [True: 6.74k, False: 3.44M]
  |  Branch (102:37): [True: 13.0k, False: 3.43M]
  |  Branch (102:49): [True: 782, False: 3.43M]
  |  Branch (102:61): [True: 14.1k, False: 3.42M]
  |  Branch (102:73): [True: 312, False: 3.42M]
  ------------------
  103|  3.42M|            c == '`' || c == '/' || c == '\\' || c == '"' || c == '\'' );
  ------------------
  |  Branch (103:13): [True: 4.49k, False: 3.41M]
  |  Branch (103:25): [True: 91.6k, False: 3.32M]
  |  Branch (103:37): [True: 1.64k, False: 3.32M]
  |  Branch (103:50): [True: 81.4k, False: 3.24M]
  |  Branch (103:62): [True: 67.8k, False: 3.17M]
  ------------------
  104|  13.3M|}
ua_types_lex.c:isReservedPercentExtended:
  100|  5.89k|isReservedPercentExtended(u8 c) {
  101|  5.89k|    return (isReservedPercent(c) || c == ':' || c == '#' || c == '[' || c == ']' ||
  ------------------
  |  Branch (101:13): [True: 24, False: 5.87k]
  |  Branch (101:37): [True: 2, False: 5.87k]
  |  Branch (101:49): [True: 5, False: 5.86k]
  |  Branch (101:61): [True: 4, False: 5.86k]
  |  Branch (101:73): [True: 2, False: 5.85k]
  ------------------
  102|  5.85k|            c == '&' || c == '(' || c == ')' || c == ',' || c == '<' || c == '>' ||
  ------------------
  |  Branch (102:13): [True: 4, False: 5.85k]
  |  Branch (102:25): [True: 2, False: 5.85k]
  |  Branch (102:37): [True: 2, False: 5.85k]
  |  Branch (102:49): [True: 2, False: 5.84k]
  |  Branch (102:61): [True: 1.06k, False: 4.78k]
  |  Branch (102:73): [True: 3, False: 4.78k]
  ------------------
  103|  4.78k|            c == '`' || c == '/' || c == '\\' || c == '"' || c == '\'' );
  ------------------
  |  Branch (103:13): [True: 2, False: 4.77k]
  |  Branch (103:25): [True: 1.78k, False: 2.99k]
  |  Branch (103:37): [True: 2, False: 2.98k]
  |  Branch (103:50): [True: 2, False: 2.98k]
  |  Branch (103:62): [True: 2, False: 2.98k]
  ------------------
  104|  5.89k|}
ua_types_lex.c:isReservedPercent:
   95|  5.89k|isReservedPercent(u8 c) {
   96|  5.89k|    return (c == ';'  || c == '%' || c <= ' ' || c == 127);
  ------------------
  |  Branch (96:13): [True: 3, False: 5.89k]
  |  Branch (96:26): [True: 0, False: 5.89k]
  |  Branch (96:38): [True: 19, False: 5.87k]
  |  Branch (96:50): [True: 2, False: 5.87k]
  ------------------
   97|  5.89k|}
ua_types_lex.c:isReservedAnd:
   83|  80.2k|isReservedAnd(u8 c) {
   84|  80.2k|    return (c == '/' || c == '.' || c == '<' || c == '>' ||
  ------------------
  |  Branch (84:13): [True: 2.43k, False: 77.8k]
  |  Branch (84:25): [True: 1.79k, False: 76.0k]
  |  Branch (84:37): [True: 5.98k, False: 70.0k]
  |  Branch (84:49): [True: 1, False: 70.0k]
  ------------------
   85|  70.0k|            c == ':' || c == '#' || c == '!' || c == '&');
  ------------------
  |  Branch (85:13): [True: 1, False: 70.0k]
  |  Branch (85:25): [True: 1, False: 70.0k]
  |  Branch (85:37): [True: 1, False: 70.0k]
  |  Branch (85:49): [True: 0, False: 70.0k]
  ------------------
   86|  80.2k|}

LLVMFuzzerTestOneInput:
   14|  3.56k|LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
   15|  3.56k|    if(size <= 1)
  ------------------
  |  Branch (15:8): [True: 1, False: 3.56k]
  ------------------
   16|      1|        return 0;
   17|       |
   18|       |    /* Use the first byte as a selector to choose which parsing function to fuzz */
   19|  3.56k|    uint8_t selector = data[0];
   20|  3.56k|    const uint8_t *payload = data + 1;
   21|  3.56k|    size_t payload_size = size - 1;
   22|       |
   23|  3.56k|    UA_String str;
   24|  3.56k|    UA_StatusCode retval = UA_ByteString_allocBuffer(&str, payload_size);
   25|  3.56k|    if(retval != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  3.56k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (25:8): [True: 0, False: 3.56k]
  ------------------
   26|      0|        return 0;
   27|  3.56k|    memcpy(str.data, payload, payload_size);
   28|       |
   29|  3.56k|    switch(selector % 8) {
   30|    158|    case 0: {
  ------------------
  |  Branch (30:5): [True: 158, False: 3.40k]
  ------------------
   31|    158|        UA_NodeId id;
   32|    158|        UA_NodeId_init(&id);
   33|    158|        UA_NodeId_parse(&id, str);
   34|    158|        UA_NodeId_clear(&id);
   35|    158|        break;
   36|      0|    }
   37|    736|    case 1: {
  ------------------
  |  Branch (37:5): [True: 736, False: 2.82k]
  ------------------
   38|    736|        UA_DateTime dt;
   39|    736|        UA_DateTime_parse(&dt, str);
   40|    736|        break;
   41|      0|    }
   42|     60|    case 2: {
  ------------------
  |  Branch (42:5): [True: 60, False: 3.50k]
  ------------------
   43|     60|        UA_Guid guid;
   44|     60|        UA_Guid_init(&guid);
   45|     60|        UA_Guid_parse(&guid, str);
   46|     60|        break;
   47|      0|    }
   48|    488|    case 3: {
  ------------------
  |  Branch (48:5): [True: 488, False: 3.07k]
  ------------------
   49|    488|        UA_ExpandedNodeId enid;
   50|    488|        UA_ExpandedNodeId_init(&enid);
   51|    488|        UA_ExpandedNodeId_parse(&enid, str);
   52|    488|        UA_ExpandedNodeId_clear(&enid);
   53|    488|        break;
   54|      0|    }
   55|    151|    case 4: {
  ------------------
  |  Branch (55:5): [True: 151, False: 3.41k]
  ------------------
   56|    151|        UA_QualifiedName qn;
   57|    151|        UA_QualifiedName_init(&qn);
   58|    151|        UA_QualifiedName_parse(&qn, str);
   59|    151|        UA_QualifiedName_clear(&qn);
   60|    151|        break;
   61|      0|    }
   62|    985|    case 5: {
  ------------------
  |  Branch (62:5): [True: 985, False: 2.57k]
  ------------------
   63|    985|        UA_RelativePath rp;
   64|    985|        UA_RelativePath_init(&rp);
   65|    985|        UA_StatusCode ret = UA_RelativePath_parse(&rp, str);
   66|    985|        if(ret == UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|    985|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (66:12): [True: 749, False: 236]
  ------------------
   67|    749|            UA_String printed = UA_STRING_NULL;
   68|    749|            UA_RelativePath_print(&rp, &printed);
   69|    749|            UA_String_clear(&printed);
   70|    749|        }
   71|    985|        UA_RelativePath_clear(&rp);
   72|    985|        break;
   73|      0|    }
   74|    558|    case 6: {
  ------------------
  |  Branch (74:5): [True: 558, False: 3.00k]
  ------------------
   75|    558|        UA_SimpleAttributeOperand sao;
   76|    558|        UA_SimpleAttributeOperand_init(&sao);
   77|    558|        UA_SimpleAttributeOperand_parse(&sao, str);
   78|    558|        UA_SimpleAttributeOperand_clear(&sao);
   79|    558|        break;
   80|      0|    }
   81|    427|    case 7: {
  ------------------
  |  Branch (81:5): [True: 427, False: 3.13k]
  ------------------
   82|    427|        UA_ReadValueId rvi;
   83|    427|        UA_ReadValueId_init(&rvi);
   84|    427|        UA_ReadValueId_parse(&rvi, str);
   85|    427|        UA_ReadValueId_clear(&rvi);
   86|    427|        break;
   87|      0|    }
   88|      0|    default: break;
  ------------------
  |  Branch (88:5): [True: 0, False: 3.56k]
  ------------------
   89|  3.56k|    }
   90|       |
   91|  3.56k|    UA_String_clear(&str);
   92|  3.56k|    return 0;
   93|  3.56k|}

fuzz_parse_string.cc:_ZL14UA_NodeId_initP9UA_NodeId:
  243|    158|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL15UA_NodeId_clearP9UA_NodeId:
  243|    158|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL12UA_Guid_initP7UA_Guid:
  243|     60|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL22UA_ExpandedNodeId_initP17UA_ExpandedNodeId:
  243|    488|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL23UA_ExpandedNodeId_clearP17UA_ExpandedNodeId:
  243|    488|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL21UA_QualifiedName_initP16UA_QualifiedName:
  243|    151|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL22UA_QualifiedName_clearP16UA_QualifiedName:
  243|    151|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL20UA_RelativePath_initP15UA_RelativePath:
  243|    985|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL15UA_String_clearP9UA_String:
  243|  4.31k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL21UA_RelativePath_clearP15UA_RelativePath:
  243|    985|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL30UA_SimpleAttributeOperand_initP25UA_SimpleAttributeOperand:
  243|    558|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL31UA_SimpleAttributeOperand_clearP25UA_SimpleAttributeOperand:
  243|    558|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL19UA_ReadValueId_initP14UA_ReadValueId:
  243|    427|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL20UA_ReadValueId_clearP14UA_ReadValueId:
  243|    427|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types.c:UA_ByteString_init:
  243|  4.30k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_String_init:
  243|    743|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_String_equal:
  243|  11.2k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_String_clear:
  243|    743|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_NodeId_equal:
  243|  15.1k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_String_copy:
  243|  18.2k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_clear:
  243|    153|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_ExpandedNodeId_clear:
  243|    411|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_QualifiedName_clear:
  243|  1.14k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePath_init:
  243|  1.89k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePathElement_init:
  243|  14.8k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePathElement_clear:
  243|    614|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePath_clear:
  243|    236|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_AttributeOperand_init:
  243|    985|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_SimpleAttributeOperand_init:
  243|    134|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_String_init:
  243|    134|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_init:
  243|    134|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_equal:
  243|  1.45k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_QualifiedName_init:
  243|  16.6k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_AttributeOperand_clear:
  243|    975|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_SimpleAttributeOperand_clear:
  243|     46|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_ReadValueId_init:
  243|     10|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl

