UA_base64_buf:
   36|    951|UA_base64_buf(const unsigned char *src, size_t len, unsigned char *out) {
   37|    951|    const unsigned char *end = src + len;
   38|    951|    const unsigned char *in = src;
   39|    951|    unsigned char *pos = out;
   40|  43.4k|    while(end - in >= 3) {
  ------------------
  |  Branch (40:11): [True: 42.4k, False: 951]
  ------------------
   41|  42.4k|        *pos++ = base64_table[in[0] >> 2];
   42|  42.4k|        *pos++ = base64_table[((in[0] & 0x03) << 4) | (in[1] >> 4)];
   43|  42.4k|        *pos++ = base64_table[((in[1] & 0x0f) << 2) | (in[2] >> 6)];
   44|  42.4k|        *pos++ = base64_table[in[2] & 0x3f];
   45|  42.4k|        in += 3;
   46|  42.4k|    }
   47|       |
   48|    951|    if(end - in) {
  ------------------
  |  Branch (48:8): [True: 388, False: 563]
  ------------------
   49|    388|        *pos++ = base64_table[in[0] >> 2];
   50|    388|        if(end - in == 1) {
  ------------------
  |  Branch (50:12): [True: 194, False: 194]
  ------------------
   51|    194|            *pos++ = base64_table[(in[0] & 0x03) << 4];
   52|    194|            *pos++ = '=';
   53|    194|        } else {
   54|    194|            *pos++ = base64_table[((in[0] & 0x03) << 4) | (in[1] >> 4)];
   55|    194|            *pos++ = base64_table[(in[1] & 0x0f) << 2];
   56|    194|        }
   57|    388|        *pos++ = '=';
   58|    388|    }
   59|       |
   60|    951|    return (size_t)(pos - out);
   61|    951|}
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: 860, False: 794]
  ------------------
   78|    860|        *out_len = 0;
   79|    860|        return (unsigned char*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|    860|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
   80|    860|    }
   81|       |
   82|       |    /* Allocate the output string. Append four bytes to allow missing padding */
   83|    794|    size_t olen = (len / 4 * 3) + 4;
   84|    794|    unsigned char *out = (unsigned char*)UA_malloc(olen);
  ------------------
  |  |   18|    794|#define UA_malloc(size) UA_mallocSingleton(size)
  ------------------
   85|    794|    if(!out)
  ------------------
  |  Branch (85:8): [True: 0, False: 794]
  ------------------
   86|      0|        return NULL;
   87|       |
   88|       |    /* Iterate over the input */
   89|    794|    size_t pad = 0;
   90|    794|    unsigned char count = 0;
   91|    794|    unsigned char block[4];
   92|    794|    unsigned char *pos = out;
   93|   174k|    for(size_t i = 0; i < len; i++) {
  ------------------
  |  Branch (93:23): [True: 174k, False: 744]
  ------------------
   94|   174k|        if(src[i] & 0x80)
  ------------------
  |  Branch (94:12): [True: 20, False: 174k]
  ------------------
   95|     20|            goto error; /* Non-ASCII input */
   96|   174k|        unsigned char tmp = dtable[src[i]];
   97|   174k|        if(tmp == 0x80)
  ------------------
  |  Branch (97:12): [True: 26, False: 174k]
  ------------------
   98|     26|            goto error; /* Not an allowed character */
   99|   174k|        if(tmp == 0x7f)
  ------------------
  |  Branch (99:12): [True: 427, False: 173k]
  ------------------
  100|    427|            continue; /* Whitespace is ignored to accomodate RFC 2045, used in
  101|       |                       * XML for xs:base64Binary. */
  102|   173k|        block[count++] = tmp;
  103|       |
  104|       |        /* Padding */
  105|   173k|        if(src[i] == '=') {
  ------------------
  |  Branch (105:12): [True: 827, False: 172k]
  ------------------
  106|    827|            if(count < 3) /* Padding can only be the last two bytes of a block */
  ------------------
  |  Branch (106:16): [True: 3, False: 824]
  ------------------
  107|      3|                goto error;
  108|    824|            block[count-1] = 0;
  109|    824|            pad++;
  110|   172k|        } else if(pad > 0) {
  ------------------
  |  Branch (110:19): [True: 1, False: 172k]
  ------------------
  111|      1|            goto error; /* Padding not terminated correctly */
  112|      1|        }
  113|       |
  114|       |        /* Write three output characters for four characters of input */
  115|   173k|        if(count == 4) {
  ------------------
  |  Branch (115:12): [True: 43.4k, False: 130k]
  ------------------
  116|  43.4k|            if(pad > 2)
  ------------------
  |  Branch (116:16): [True: 0, False: 43.4k]
  ------------------
  117|      0|                goto error; /* Invalid padding */
  118|  43.4k|            *pos++ = (block[0] << 2) | (block[1] >> 4);
  119|  43.4k|            *pos++ = (block[1] << 4) | (block[2] >> 2);
  120|  43.4k|            *pos++ = (block[2] << 6) | block[3];
  121|  43.4k|            count = 0;
  122|  43.4k|            pos -= pad;
  123|  43.4k|            pad = 0;
  124|  43.4k|        }
  125|   173k|    }
  126|       |
  127|       |    /* Input length not a multiple of four */
  128|    744|    if(count > 0)
  ------------------
  |  Branch (128:8): [True: 19, False: 725]
  ------------------
  129|     19|        goto error;
  130|       |
  131|    725|    *out_len = (size_t)(pos - out);
  132|    725|    if(*out_len == 0) {
  ------------------
  |  Branch (132:8): [True: 202, False: 523]
  ------------------
  133|    202|        UA_free(out);
  ------------------
  |  |   19|    202|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
  134|    202|        return (unsigned char*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|    202|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
  135|    202|    }
  136|    523|    return out;
  137|       |
  138|     69| error:
  139|     69|    UA_free(out);
  ------------------
  |  |   19|     69|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
  140|       |    return NULL;
  141|    725|}

itoaUnsigned:
   42|  1.69k|UA_UInt16 itoaUnsigned(UA_UInt64 value, char* buffer, UA_Byte base) {
   43|       |    /* consider absolute value of number */
   44|  1.69k|    UA_UInt64 n = value;
   45|       |
   46|  1.69k|    UA_UInt16 i = 0;
   47|  4.65k|    while (n) {
  ------------------
  |  Branch (47:12): [True: 2.95k, False: 1.69k]
  ------------------
   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.69k|    if (i == 0)
  ------------------
  |  Branch (58:9): [True: 410, False: 1.28k]
  ------------------
   59|    410|        buffer[i++] = '0';
   60|       |
   61|  1.69k|    buffer[i] = '\0'; /* null terminate string */
   62|  1.69k|    i--;
   63|       |    /* reverse the string */
   64|  1.69k|    reverse(buffer, 0, i);
   65|  1.69k|    i++;
   66|  1.69k|    return i;
   67|  1.69k|}
itoa.c:reverse:
   34|  1.69k|static char* reverse(char *buffer, UA_UInt16 i, UA_UInt16 j) {
   35|  2.68k|    while (i < j)
  ------------------
  |  Branch (35:12): [True: 989, False: 1.69k]
  ------------------
   36|    989|        swap(&buffer[i++], &buffer[j--]);
   37|       |
   38|  1.69k|    return buffer;
   39|  1.69k|}
itoa.c:swap:
   27|    989|static void swap(char *x, char *y) {
   28|    989|    char t = *x;
   29|    989|    *x = *y;
   30|    989|    *y = t;
   31|    989|}

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

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

UA_STRING:
  223|  14.8k|UA_STRING(char *chars) {
  224|  14.8k|    UA_String s = {0, NULL};
  225|  14.8k|    if(!chars)
  ------------------
  |  Branch (225:8): [True: 0, False: 14.8k]
  ------------------
  226|      0|        return s;
  227|  14.8k|    s.length = strlen(chars);
  228|  14.8k|    s.data = (UA_Byte*)chars;
  229|  14.8k|    return s;
  230|  14.8k|}
UA_String_append:
  302|  14.8k|UA_String_append(UA_String *s, const UA_String s2) {
  303|  14.8k|    if(s2.length == 0)
  ------------------
  |  Branch (303:8): [True: 0, False: 14.8k]
  ------------------
  304|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  305|  14.8k|    UA_Byte *buf = (UA_Byte*)
  306|  14.8k|        UA_realloc((void*)((uintptr_t)s->data & ~(uintptr_t)UA_EMPTY_ARRAY_SENTINEL),
  ------------------
  |  |   21|  14.8k|#define UA_realloc(ptr, size) UA_reallocSingleton(ptr, size)
  ------------------
  307|  14.8k|                   s->length + s2.length);
  308|  14.8k|    if(!buf)
  ------------------
  |  Branch (308:8): [True: 0, False: 14.8k]
  ------------------
  309|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  310|  14.8k|    memcpy(buf + s->length, s2.data, s2.length);
  311|  14.8k|    s->data = buf;
  312|  14.8k|    s->length += s2.length;
  313|  14.8k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  14.8k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  314|  14.8k|}
UA_DateTime_parse:
  536|    777|UA_DateTime_parse(UA_DateTime *dst, const UA_String str) {
  537|    777|    if(str.length == 0)
  ------------------
  |  Branch (537:8): [True: 0, False: 777]
  ------------------
  538|      0|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  539|       |
  540|    777|    struct musl_tm dts;
  541|    777|    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|    777|    size_t pos = 0;
  549|    777|    if(str.data[0] == '-' || str.data[0] == '+')
  ------------------
  |  Branch (549:8): [True: 15, False: 762]
  |  Branch (549:30): [True: 12, False: 750]
  ------------------
  550|     27|        pos++;
  551|    777|    UA_Int64 year = 0;
  552|    777|    UA_CHECK(str.length - pos > 5, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    777|    do {                                                                                 \
  |  |  173|    777|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    777|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 17, False: 760]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     17|            EVAL_ON_ERROR;                                                               \
  |  |  175|     17|        }                                                                                \
  |  |  176|    777|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 760]
  |  |  ------------------
  ------------------
  553|    760|    size_t len = parseInt64((char*)&str.data[pos], 5, &year);
  554|    760|    pos += len;
  555|    760|    UA_CHECK(len > 0 && pos < str.length, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    760|    do {                                                                                 \
  |  |  173|    760|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|  1.49k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 29, False: 731]
  |  |  |  |  |  Branch (579:43): [True: 731, False: 29]
  |  |  |  |  |  Branch (579:43): [True: 731, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     29|            EVAL_ON_ERROR;                                                               \
  |  |  175|     29|        }                                                                                \
  |  |  176|    760|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 731]
  |  |  ------------------
  ------------------
  556|    731|    UA_CHECK(len == 4 || str.data[pos] == '-', return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    731|    do {                                                                                 \
  |  |  173|    731|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|  1.33k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 36, False: 695]
  |  |  |  |  |  Branch (579:43): [True: 132, False: 599]
  |  |  |  |  |  Branch (579:43): [True: 563, False: 36]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     36|            EVAL_ON_ERROR;                                                               \
  |  |  175|     36|        }                                                                                \
  |  |  176|    731|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 695]
  |  |  ------------------
  ------------------
  557|    695|    if(str.data[0] == '-')
  ------------------
  |  Branch (557:8): [True: 11, False: 684]
  ------------------
  558|     11|        year = -year;
  559|    695|    dts.tm_year = (UA_Int16)year - 1900;
  560|    695|    if(str.data[pos] == '-')
  ------------------
  |  Branch (560:8): [True: 688, False: 7]
  ------------------
  561|    688|        pos++;
  562|       |
  563|       |    /* Parse the month */
  564|    695|    UA_UInt64 month = 0;
  565|    695|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    695|    do {                                                                                 \
  |  |  173|    695|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    695|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 10, False: 685]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     10|            EVAL_ON_ERROR;                                                               \
  |  |  175|     10|        }                                                                                \
  |  |  176|    695|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 685]
  |  |  ------------------
  ------------------
  566|    685|    len = parseUInt64((char*)&str.data[pos], 2, &month);
  567|    685|    pos += len;
  568|    685|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    685|    do {                                                                                 \
  |  |  173|    685|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    685|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 3, False: 682]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      3|            EVAL_ON_ERROR;                                                               \
  |  |  175|      3|        }                                                                                \
  |  |  176|    685|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 682]
  |  |  ------------------
  ------------------
  569|    682|    dts.tm_mon = (UA_UInt16)month - 1;
  570|    682|    if(str.data[pos] == '-')
  ------------------
  |  Branch (570:8): [True: 4, False: 678]
  ------------------
  571|      4|        pos++;
  572|       |
  573|       |    /* Parse the day and check the T between date and time */
  574|    682|    UA_UInt64 day = 0;
  575|    682|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    682|    do {                                                                                 \
  |  |  173|    682|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    682|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 11, False: 671]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     11|            EVAL_ON_ERROR;                                                               \
  |  |  175|     11|        }                                                                                \
  |  |  176|    682|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 671]
  |  |  ------------------
  ------------------
  576|    671|    len = parseUInt64((char*)&str.data[pos], 2, &day);
  577|    671|    pos += len;
  578|    671|    UA_CHECK(len == 2 || str.data[pos] != 'T',
  ------------------
  |  |  172|    671|    do {                                                                                 \
  |  |  173|    671|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|  1.16k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 1, False: 670]
  |  |  |  |  |  Branch (579:43): [True: 175, False: 496]
  |  |  |  |  |  Branch (579:43): [True: 495, False: 1]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      1|            EVAL_ON_ERROR;                                                               \
  |  |  175|      1|        }                                                                                \
  |  |  176|    671|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 670]
  |  |  ------------------
  ------------------
  579|    671|             return UA_STATUSCODE_BADDECODINGERROR);
  580|    670|    dts.tm_mday = (UA_UInt16)day;
  581|    670|    pos++;
  582|       |
  583|       |    /* Parse the hour */
  584|    670|    UA_UInt64 hour = 0;
  585|    670|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    670|    do {                                                                                 \
  |  |  173|    670|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    670|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 13, False: 657]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     13|            EVAL_ON_ERROR;                                                               \
  |  |  175|     13|        }                                                                                \
  |  |  176|    670|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 657]
  |  |  ------------------
  ------------------
  586|    657|    len = parseUInt64((char*)&str.data[pos], 2, &hour);
  587|    657|    pos += len;
  588|    657|    UA_CHECK(len == 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: 8, False: 649]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      8|            EVAL_ON_ERROR;                                                               \
  |  |  175|      8|        }                                                                                \
  |  |  176|    657|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 649]
  |  |  ------------------
  ------------------
  589|    649|    dts.tm_hour = (UA_UInt16)hour;
  590|    649|    if(str.data[pos] == ':')
  ------------------
  |  Branch (590:8): [True: 1, False: 648]
  ------------------
  591|      1|        pos++;
  592|       |
  593|       |    /* Parse the minute */
  594|    649|    UA_UInt64 min = 0;
  595|    649|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    649|    do {                                                                                 \
  |  |  173|    649|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    649|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 10, False: 639]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     10|            EVAL_ON_ERROR;                                                               \
  |  |  175|     10|        }                                                                                \
  |  |  176|    649|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 639]
  |  |  ------------------
  ------------------
  596|    639|    len = parseUInt64((char*)&str.data[pos], 2, &min);
  597|    639|    pos += len;
  598|    639|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    639|    do {                                                                                 \
  |  |  173|    639|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    639|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 2, False: 637]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      2|            EVAL_ON_ERROR;                                                               \
  |  |  175|      2|        }                                                                                \
  |  |  176|    639|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 637]
  |  |  ------------------
  ------------------
  599|    637|    dts.tm_min = (UA_UInt16)min;
  600|    637|    if(str.data[pos] == ':')
  ------------------
  |  Branch (600:8): [True: 1, False: 636]
  ------------------
  601|      1|        pos++;
  602|       |
  603|       |    /* Parse the second */
  604|    637|    UA_UInt64 sec = 0;
  605|    637|    UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    637|    do {                                                                                 \
  |  |  173|    637|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    637|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 9, False: 628]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      9|            EVAL_ON_ERROR;                                                               \
  |  |  175|      9|        }                                                                                \
  |  |  176|    637|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 628]
  |  |  ------------------
  ------------------
  606|    628|    len = parseUInt64((char*)&str.data[pos], 2, &sec);
  607|    628|    pos += len;
  608|    628|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    628|    do {                                                                                 \
  |  |  173|    628|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    628|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 2, False: 626]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      2|            EVAL_ON_ERROR;                                                               \
  |  |  175|      2|        }                                                                                \
  |  |  176|    628|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 626]
  |  |  ------------------
  ------------------
  609|    626|    dts.tm_sec = (UA_UInt16)sec;
  610|       |
  611|       |    /* Compute the seconds since the Unix epoch */
  612|    626|    long long sinceunix = musl_tm_to_secs(&dts);
  613|       |
  614|       |    /* Are we within the range that can be represented? */
  615|    626|    long long sinceunix_min =
  616|    626|        (long long)(UA_INT64_MIN / UA_DATETIME_SEC) -
  ------------------
  |  |  120|    626|#define UA_INT64_MIN ((int64_t)-UA_INT64_MAX-1LL)
  |  |  ------------------
  |  |  |  |  119|    626|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  |  |  ------------------
  ------------------
                      (long long)(UA_INT64_MIN / UA_DATETIME_SEC) -
  ------------------
  |  |  286|    626|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    626|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    626|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  617|    626|        (long long)(UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC) -
  ------------------
  |  |  328|    626|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  286|    626|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|    626|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  284|    626|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (long long)(UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC) -
  ------------------
  |  |  286|    626|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    626|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    626|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  618|    626|        (long long)1; /* manual correction due to rounding */
  619|    626|    long long sinceunix_max = (long long)
  620|    626|        ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  119|    626|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  ------------------
                      ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  328|    626|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  286|    626|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|    626|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  284|    626|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  286|    626|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    626|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    626|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  621|    626|    if(sinceunix < sinceunix_min || sinceunix > sinceunix_max)
  ------------------
  |  Branch (621:8): [True: 35, False: 591]
  |  Branch (621:37): [True: 3, False: 588]
  ------------------
  622|     38|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     38|#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|    588|    sinceunix -= (sinceunix > 0) ? 1 : -1;
  ------------------
  |  Branch (627:18): [True: 183, False: 405]
  ------------------
  628|    588|    UA_DateTime dt = (UA_DateTime)
  629|    588|        (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  328|    588|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  286|    588|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  285|    588|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  284|    588|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  286|    588|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    588|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    588|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  286|    588|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    588|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    588|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  630|       |
  631|       |    /* Parse the fraction of the second if defined */
  632|    588|    UA_CHECK(pos < str.length, goto finish);
  ------------------
  |  |  172|    588|    do {                                                                                 \
  |  |  173|    588|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    588|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 261, False: 327]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|    261|            EVAL_ON_ERROR;                                                               \
  |  |  175|    261|        }                                                                                \
  |  |  176|    588|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 327]
  |  |  ------------------
  ------------------
  633|    327|    if(str.data[pos] == ',' || str.data[pos] == '.') {
  ------------------
  |  Branch (633:8): [True: 55, False: 272]
  |  Branch (633:32): [True: 110, False: 162]
  ------------------
  634|    165|        pos++;
  635|    165|        double frac = 0.0;
  636|    165|        double denom = 0.1;
  637|  1.08M|        while(pos < str.length && str.data[pos] >= '0' && str.data[pos] <= '9') {
  ------------------
  |  Branch (637:15): [True: 1.08M, False: 81]
  |  Branch (637:35): [True: 1.08M, False: 58]
  |  Branch (637:59): [True: 1.08M, False: 26]
  ------------------
  638|  1.08M|            frac += denom * (str.data[pos] - '0');
  639|  1.08M|            denom *= 0.1;
  640|  1.08M|            pos++;
  641|  1.08M|        }
  642|    165|        frac += 0.00000005; /* Correct rounding when converting to integer */
  643|    165|        dt += (UA_DateTime)(frac * UA_DATETIME_SEC);
  ------------------
  |  |  286|    165|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    165|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    165|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  644|    165|    }
  645|       |
  646|       |    /* Time zone handling */
  647|    327|    UA_CHECK(pos < str.length, goto finish);
  ------------------
  |  |  172|    327|    do {                                                                                 \
  |  |  173|    327|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    327|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 81, False: 246]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     81|            EVAL_ON_ERROR;                                                               \
  |  |  175|     81|        }                                                                                \
  |  |  176|    327|    } 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: 68, False: 172]
  |  Branch (650:39): [True: 102, 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: 2, False: 168]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      2|            EVAL_ON_ERROR;                                                               \
  |  |  175|      2|        }                                                                                \
  |  |  176|    170|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 168]
  |  |  ------------------
  ------------------
  656|    168|        len = parseUInt64((char*)&str.data[pos], 2, &tzHour);
  657|    168|        pos += len;
  658|    168|        UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    168|    do {                                                                                 \
  |  |  173|    168|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    168|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 4, False: 164]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      4|            EVAL_ON_ERROR;                                                               \
  |  |  175|      4|        }                                                                                \
  |  |  176|    168|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 164]
  |  |  ------------------
  ------------------
  659|       |
  660|    164|        UA_CHECK(str.length > pos, goto finish); /* Allow missing tz minutes */
  ------------------
  |  |  172|    164|    do {                                                                                 \
  |  |  173|    164|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    164|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 1, False: 163]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      1|            EVAL_ON_ERROR;                                                               \
  |  |  175|      1|        }                                                                                \
  |  |  176|    164|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 163]
  |  |  ------------------
  ------------------
  661|    163|        if(str.data[pos] == ':')
  ------------------
  |  Branch (661:12): [True: 1, False: 162]
  ------------------
  662|      1|            pos++;
  663|       |
  664|    163|        UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    163|    do {                                                                                 \
  |  |  173|    163|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    163|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 10, False: 153]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     10|            EVAL_ON_ERROR;                                                               \
  |  |  175|     10|        }                                                                                \
  |  |  176|    163|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 153]
  |  |  ------------------
  ------------------
  665|    153|        len = parseUInt64((char*)&str.data[pos], 2, &tzMin);
  666|    153|        pos += len;
  667|    153|        UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    153|    do {                                                                                 \
  |  |  173|    153|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    153|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 24, False: 129]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     24|            EVAL_ON_ERROR;                                                               \
  |  |  175|     24|        }                                                                                \
  |  |  176|    153|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 129]
  |  |  ------------------
  ------------------
  668|       |
  669|    129|        offsetSeconds = (tzHour * 3600) + (tzMin * 60);
  670|    129|        if(tzSign == '-')
  ------------------
  |  Branch (670:12): [True: 75, False: 54]
  ------------------
  671|     75|            offsetSeconds = -offsetSeconds;
  672|    129|        dt -= (UA_DateTime)(offsetSeconds * UA_DATETIME_SEC);
  ------------------
  |  |  286|    129|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    129|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    129|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  673|    129|    } else {
  674|     70|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     70|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  675|     70|    }
  676|       |
  677|    478| finish:
  678|       |    /* Remove the underflow/overflow protection (see above) */
  679|    478|    if(sinceunix > 0) {
  ------------------
  |  Branch (679:8): [True: 169, False: 309]
  ------------------
  680|    169|        if(dt > UA_INT64_MAX - UA_DATETIME_SEC)
  ------------------
  |  |  119|    169|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  ------------------
                      if(dt > UA_INT64_MAX - UA_DATETIME_SEC)
  ------------------
  |  |  286|    169|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    169|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    169|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (680:12): [True: 3, False: 166]
  ------------------
  681|      3|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      3|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  682|    166|        dt += UA_DATETIME_SEC;
  ------------------
  |  |  286|    166|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    166|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    166|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  683|    309|    } else {
  684|    309|        if(dt < UA_INT64_MIN + UA_DATETIME_SEC)
  ------------------
  |  |  120|    309|#define UA_INT64_MIN ((int64_t)-UA_INT64_MAX-1LL)
  |  |  ------------------
  |  |  |  |  119|    309|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  |  |  ------------------
  ------------------
                      if(dt < UA_INT64_MIN + UA_DATETIME_SEC)
  ------------------
  |  |  286|    309|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    309|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    309|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (684:12): [True: 24, False: 285]
  ------------------
  685|     24|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     24|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  686|    285|        dt -= UA_DATETIME_SEC;
  ------------------
  |  |  286|    285|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  285|    285|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    285|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  687|    285|    }
  688|       |
  689|       |    /* We must be at the end of the string */
  690|    451|    if(pos != str.length)
  ------------------
  |  Branch (690:8): [True: 101, False: 350]
  ------------------
  691|    101|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    101|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  692|       |
  693|    350|    *dst = dt;
  694|    350|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    350|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  695|    451|}
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.29k|UA_ByteString_allocBuffer(UA_ByteString *bs, size_t length) {
  763|  4.29k|    UA_ByteString_init(bs);
  764|  4.29k|    if(length == 0) {
  ------------------
  |  Branch (764:8): [True: 0, False: 4.29k]
  ------------------
  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.29k|    bs->data = (u8*)UA_calloc(1,length);
  ------------------
  |  |   20|  4.29k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
  769|  4.29k|    if(UA_UNLIKELY(!bs->data))
  ------------------
  |  |  579|  4.29k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  ------------------
  |  |  |  Branch (579:25): [True: 0, False: 4.29k]
  |  |  ------------------
  ------------------
  770|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  771|  4.29k|    bs->length = length;
  772|  4.29k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  4.29k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  773|  4.29k|}
UA_NODEID_NUMERIC:
  835|  8.04k|UA_NODEID_NUMERIC(UA_UInt16 nsIndex, UA_UInt32 identifier) {
  836|  8.04k|    UA_NodeId id;
  837|  8.04k|    memset(&id, 0, sizeof(UA_NodeId));
  838|  8.04k|    id.namespaceIndex = nsIndex;
  839|  8.04k|    id.identifierType = UA_NODEIDTYPE_NUMERIC;
  840|  8.04k|    id.identifier.numeric = identifier;
  841|  8.04k|    return id;
  842|  8.04k|}
nodeId_printEscape:
 1029|  4.34k|                   const UA_NamespaceMapping *nsMapping, UA_Escaping idEsc) {
 1030|       |    /* Try to map the NamespaceIndex to the Uri */
 1031|  4.34k|    UA_String nsUri = UA_STRING_NULL;
 1032|  4.34k|    if(id->namespaceIndex > 0 && nsMapping)
  ------------------
  |  Branch (1032:8): [True: 702, False: 3.64k]
  |  Branch (1032:34): [True: 0, False: 702]
  ------------------
 1033|      0|        UA_NamespaceMapping_index2Uri(nsMapping, id->namespaceIndex, &nsUri);
 1034|       |
 1035|       |    /* Compute the string length and print numerical identifiers. */
 1036|  4.34k|    u8 nsStr[7];
 1037|  4.34k|    u8 numIdStr[12];
 1038|  4.34k|    size_t idLen = nodeIdSize(id, nsStr, numIdStr, nsUri, idEsc);
 1039|  4.34k|    if(idLen == 0)
  ------------------
  |  Branch (1039:8): [True: 0, False: 4.34k]
  ------------------
 1040|      0|        return UA_STATUSCODE_BADINTERNALERROR;
  ------------------
  |  |   29|      0|#define UA_STATUSCODE_BADINTERNALERROR ((UA_StatusCode) 0x80020000)
  ------------------
 1041|       |
 1042|       |    /* Allocate memory if required */
 1043|  4.34k|    if(output->length == 0) {
  ------------------
  |  Branch (1043:8): [True: 670, False: 3.67k]
  ------------------
 1044|    670|        UA_StatusCode res = UA_ByteString_allocBuffer((UA_ByteString*)output, idLen);
 1045|    670|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    670|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1045:12): [True: 0, False: 670]
  ------------------
 1046|      0|            return res;
 1047|  3.67k|    } else {
 1048|  3.67k|        if(output->length < idLen)
  ------------------
  |  Branch (1048:12): [True: 670, False: 3.00k]
  ------------------
 1049|    670|            return UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED;
  ------------------
  |  |   47|    670|#define UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED ((UA_StatusCode) 0x80080000)
  ------------------
 1050|  3.00k|        output->length = idLen;
 1051|  3.00k|    }
 1052|       |
 1053|       |    /* Print the NodeId */
 1054|  3.67k|    u8 *pos = printNodeIdBody(id, nsUri, nsStr, numIdStr, output->data, nsMapping, idEsc);
 1055|  3.67k|    output->length = (size_t)(pos - output->data);
 1056|  3.67k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  3.67k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1057|  4.34k|}
UA_NodeId_printEx:
 1061|  4.34k|                  const UA_NamespaceMapping *nsMapping) {
 1062|  4.34k|    return nodeId_printEscape(id, output, nsMapping, UA_ESCAPING_NONE);
 1063|  4.34k|}
UA_NodeId_print:
 1066|  4.34k|UA_NodeId_print(const UA_NodeId *id, UA_String *output) {
 1067|       |    return UA_NodeId_printEx(id, output, NULL);
 1068|  4.34k|}
UA_copy:
 2102|  17.4k|UA_copy(const void *src, void *dst, const UA_DataType *type) {
 2103|  17.4k|    memset(dst, 0, type->memSize); /* init */
 2104|  17.4k|    UA_StatusCode retval = copyJumpTable[type->typeKind](src, dst, type);
 2105|  17.4k|    if(retval != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  17.4k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2105:8): [True: 0, False: 17.4k]
  ------------------
 2106|      0|        UA_clear(dst, type);
 2107|  17.4k|    return retval;
 2108|  17.4k|}
UA_clear:
 2205|  26.2k|UA_clear(void *p, const UA_DataType *type) {
 2206|  26.2k|    clearJumpTable[type->typeKind](p, type);
 2207|  26.2k|    memset(p, 0, type->memSize); /* init */
 2208|  26.2k|}
UA_order:
 2679|  27.2k|UA_Order UA_order(const void *p1, const void *p2, const UA_DataType *type) {
 2680|  27.2k|    return orderJumpTable[type->typeKind](p1, p2, type);
 2681|  27.2k|}
UA_Array_copy:
 2705|  17.4k|              void **dst, const UA_DataType *type) {
 2706|  17.4k|    if(size == 0) {
  ------------------
  |  Branch (2706:8): [True: 10.0k, False: 7.43k]
  ------------------
 2707|  10.0k|        if(src == NULL)
  ------------------
  |  Branch (2707:12): [True: 0, False: 10.0k]
  ------------------
 2708|      0|            *dst = NULL;
 2709|  10.0k|        else
 2710|  10.0k|            *dst= UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  756|  10.0k|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
 2711|  10.0k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  10.0k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2712|  10.0k|    }
 2713|       |
 2714|       |    /* Check the array consistency -- defensive programming in case the user
 2715|       |     * manually created an inconsistent array */
 2716|  7.43k|    if(UA_UNLIKELY(!type || !src))
  ------------------
  |  |  579|  14.8k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  ------------------
  |  |  |  Branch (579:25): [True: 0, False: 7.43k]
  |  |  |  Branch (579:43): [True: 0, False: 7.43k]
  |  |  |  Branch (579:43): [True: 0, False: 7.43k]
  |  |  ------------------
  ------------------
 2717|      0|        return UA_STATUSCODE_BADINTERNALERROR;
  ------------------
  |  |   29|      0|#define UA_STATUSCODE_BADINTERNALERROR ((UA_StatusCode) 0x80020000)
  ------------------
 2718|       |
 2719|  7.43k|    if(size > SIZE_MAX / type->memSize)
  ------------------
  |  Branch (2719:8): [True: 0, False: 7.43k]
  ------------------
 2720|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2721|  7.43k|    size_t byteSize = size * type->memSize;
 2722|       |
 2723|       |    /* calloc, so we don't have to check retval in every iteration of copying */
 2724|  7.43k|    *dst = UA_calloc(size, type->memSize);
  ------------------
  |  |   20|  7.43k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
 2725|  7.43k|    if(!*dst)
  ------------------
  |  Branch (2725:8): [True: 0, False: 7.43k]
  ------------------
 2726|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2727|       |
 2728|  7.43k|    if(type->pointerFree) {
  ------------------
  |  Branch (2728:8): [True: 7.43k, False: 0]
  ------------------
 2729|  7.43k|        memcpy(*dst, src, byteSize);
 2730|  7.43k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  7.43k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2731|  7.43k|    }
 2732|       |
 2733|      0|    uintptr_t ptrs = (uintptr_t)src;
 2734|      0|    uintptr_t ptrd = (uintptr_t)*dst;
 2735|      0|    UA_StatusCode retval = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2736|      0|    for(size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (2736:23): [True: 0, False: 0]
  ------------------
 2737|      0|        retval |= UA_copy((void*)ptrs, (void*)ptrd, type);
 2738|      0|        ptrs += type->memSize;
 2739|      0|        ptrd += type->memSize;
 2740|      0|    }
 2741|      0|    if(retval != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2741:8): [True: 0, False: 0]
  ------------------
 2742|      0|        UA_Array_delete(*dst, size, type);
 2743|       |        *dst = NULL;
 2744|      0|    }
 2745|      0|    return retval;
 2746|  7.43k|}
UA_Array_delete:
 2848|  33.2k|UA_Array_delete(void *p, size_t size, const UA_DataType *type) {
 2849|  33.2k|    if(!type->pointerFree) {
  ------------------
  |  Branch (2849:8): [True: 2.78k, False: 30.4k]
  ------------------
 2850|  2.78k|        uintptr_t ptr = (uintptr_t)p;
 2851|  17.6k|        for(size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (2851:27): [True: 14.8k, False: 2.78k]
  ------------------
 2852|  14.8k|            UA_clear((void*)ptr, type);
 2853|  14.8k|            ptr += type->memSize;
 2854|  14.8k|        }
 2855|  2.78k|    }
 2856|  33.2k|    UA_free((void*)((uintptr_t)p & ~(uintptr_t)UA_EMPTY_ARRAY_SENTINEL));
  ------------------
  |  |   19|  33.2k|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 2857|  33.2k|}
ua_types.c:nodeIdSize:
  928|  4.34k|           UA_Escaping idEsc) {
  929|       |    /* Namespace length */
  930|  4.34k|    size_t len = 0;
  931|  4.34k|    if(nsUri.data != NULL) {
  ------------------
  |  Branch (931:8): [True: 0, False: 4.34k]
  ------------------
  932|      0|        len += 5; /* nsu=; */
  933|      0|        len += UA_String_escapedSize(nsUri, UA_ESCAPING_PERCENT);
  934|  4.34k|    } else if(id->namespaceIndex > 0) {
  ------------------
  |  Branch (934:15): [True: 702, False: 3.64k]
  ------------------
  935|    702|        len += 4; /* ns=; */
  936|    702|        size_t nsStrSize = itoaUnsigned(id->namespaceIndex, (char*)nsStr, 10);
  937|    702|        nsStr[nsStrSize] = 0;
  938|    702|        len += nsStrSize;
  939|    702|    }
  940|       |
  941|  4.34k|    len += 2; /* ?= */
  942|       |
  943|  4.34k|    switch (id->identifierType) {
  944|    578|    case UA_NODEIDTYPE_NUMERIC: {
  ------------------
  |  Branch (944:5): [True: 578, False: 3.77k]
  ------------------
  945|    578|        size_t numIdStrSize = itoaUnsigned(id->identifier.numeric, (char*)numIdStr, 10);
  946|    578|        numIdStr[numIdStrSize] = 0;
  947|    578|        len += numIdStrSize;
  948|    578|        break;
  949|      0|    }
  950|  2.16k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (950:5): [True: 2.16k, False: 2.18k]
  ------------------
  951|  2.16k|        len += UA_String_escapedSize(id->identifier.string, idEsc);
  952|  2.16k|        break;
  953|    647|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (953:5): [True: 647, False: 3.70k]
  ------------------
  954|    647|        len += 36;
  955|    647|        break;
  956|    955|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (956:5): [True: 955, False: 3.39k]
  ------------------
  957|    955|        len += 4 * ((id->identifier.byteString.length + 2) / 3);
  958|    955|        break;
  959|      0|    default:
  ------------------
  |  Branch (959:5): [True: 0, False: 4.34k]
  ------------------
  960|      0|        len = 0;
  961|  4.34k|    }
  962|  4.34k|    return len;
  963|  4.34k|}
ua_types.c:printNodeIdBody:
  967|  3.67k|                const UA_NamespaceMapping *nsMapping, UA_Escaping idEsc) {
  968|  3.67k|    size_t len;
  969|       |
  970|       |    /* Encode the namespace */
  971|  3.67k|    if(nsUri.data != NULL) {
  ------------------
  |  Branch (971:8): [True: 0, False: 3.67k]
  ------------------
  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.67k|    } else if(id->namespaceIndex > 0) {
  ------------------
  |  Branch (976:15): [True: 488, False: 3.19k]
  ------------------
  977|    488|        memcpy(pos, "ns=", 3);
  978|    488|        pos += 3;
  979|    488|        len = strlen((char*)nsStr);
  980|    488|        memcpy(pos, nsStr, len);
  981|    488|        pos += len;
  982|    488|        *pos++ = ';';
  983|    488|    }
  984|       |
  985|       |    /* Encode the identifier */
  986|  3.67k|    switch(id->identifierType) {
  ------------------
  |  Branch (986:12): [True: 3.67k, False: 0]
  ------------------
  987|    578|    case UA_NODEIDTYPE_NUMERIC:
  ------------------
  |  Branch (987:5): [True: 578, False: 3.10k]
  ------------------
  988|    578|        memcpy(pos, "i=", 2);
  989|    578|        pos += 2;
  990|    578|        len = strlen((char*)numIdStr);
  991|    578|        memcpy(pos, numIdStr, len);
  992|    578|        pos += len;
  993|    578|        break;
  994|  1.50k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (994:5): [True: 1.50k, False: 2.17k]
  ------------------
  995|  1.50k|        memcpy(pos, "s=", 2);
  996|  1.50k|        pos += 2;
  997|  1.50k|        pos += UA_String_escapeInsert(pos, id->identifier.string, idEsc);
  998|  1.50k|        break;
  999|    647|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (999:5): [True: 647, False: 3.03k]
  ------------------
 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|    951|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (1005:5): [True: 951, False: 2.72k]
  ------------------
 1006|    951|        memcpy(pos, "b=", 2);
 1007|    951|        pos += 2;
 1008|       |        /* Use base64url encoding for percent-escaping.
 1009|       |         * Replace +/ with -_ and remove the padding. */
 1010|    951|        u8 *bpos = pos;
 1011|    951|        pos += UA_base64_buf(id->identifier.byteString.data,
 1012|    951|                             id->identifier.byteString.length, pos);
 1013|    951|        if(idEsc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (1013:12): [True: 0, False: 951]
  ------------------
 1014|    951|           idEsc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (1014:12): [True: 0, False: 951]
  ------------------
 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|    951|        break;
 1023|  3.67k|    }
 1024|  3.67k|    return pos;
 1025|  3.67k|}
ua_types.c:String_copy:
  284|  17.4k|String_copy(const void *src, void *dst, const UA_DataType *_) {
  285|  17.4k|    const UA_String *srcS = (const UA_String*)src;
  286|  17.4k|    UA_String *dstS = (UA_String *)dst;
  287|  17.4k|    UA_StatusCode res =
  288|  17.4k|        UA_Array_copy(srcS->data, srcS->length, (void**)&dstS->data,
  289|  17.4k|                      &UA_TYPES[UA_TYPES_BYTE]);
  ------------------
  |  |   96|  17.4k|#define UA_TYPES_BYTE 2
  ------------------
  290|  17.4k|    if(res == UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  17.4k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (290:8): [True: 17.4k, False: 0]
  ------------------
  291|  17.4k|        dstS->length = srcS->length;
  292|  17.4k|    return res;
  293|  17.4k|}
ua_types.c:nopClear:
 2167|  30.1k|static void nopClear(void *p, const UA_DataType *type) { }
ua_types.c:String_clear:
  296|  30.4k|String_clear(void *p, const UA_DataType *_) {
  297|  30.4k|    UA_String *s = (UA_String*)p;
  298|  30.4k|    UA_Array_delete(s->data, s->length, &UA_TYPES[UA_TYPES_BYTE]);
  ------------------
  |  |   96|  30.4k|#define UA_TYPES_BYTE 2
  ------------------
  299|  30.4k|}
ua_types.c:NodeId_clear:
  777|  17.3k|NodeId_clear(void *p, const UA_DataType *_) {
  778|  17.3k|    UA_NodeId *id = (UA_NodeId*)p;
  779|  17.3k|    switch(id->identifierType) {
  780|  2.65k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (780:5): [True: 2.65k, False: 14.6k]
  ------------------
  781|  4.30k|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (781:5): [True: 1.65k, False: 15.6k]
  ------------------
  782|  4.30k|        String_clear(&id->identifier.string, NULL);
  783|  4.30k|        break;
  784|  12.9k|    default: break;
  ------------------
  |  Branch (784:5): [True: 12.9k, False: 4.30k]
  ------------------
  785|  17.3k|    }
  786|  17.3k|}
ua_types.c:ExpandedNodeId_clear:
 1078|    949|ExpandedNodeId_clear(void *p, const UA_DataType *_) {
 1079|    949|    UA_ExpandedNodeId *id = (UA_ExpandedNodeId*)p;
 1080|    949|    NodeId_clear(&id->nodeId, NULL);
 1081|       |    String_clear(&id->namespaceUri, NULL);
 1082|    949|}
ua_types.c:QualifiedName_clear:
  402|  17.1k|QualifiedName_clear(void *p, const UA_DataType *_) {
  403|  17.1k|    UA_QualifiedName *qn = (UA_QualifiedName*)p;
  404|       |    String_clear(&qn->name, NULL);
  405|  17.1k|}
ua_types.c:clearStructure:
 2111|  18.2k|clearStructure(void *p, const UA_DataType *type) {
 2112|  18.2k|    uintptr_t ptr = (uintptr_t)p;
 2113|  85.5k|    for(size_t i = 0; i < type->membersSize; ++i) {
  ------------------
  |  Branch (2113:23): [True: 67.3k, False: 18.2k]
  ------------------
 2114|  67.3k|        const UA_DataTypeMember *m = &type->members[i];
 2115|  67.3k|        const UA_DataType *mt = m->memberType;
 2116|  67.3k|        ptr += m->padding;
 2117|  67.3k|        if(!m->isOptional) {
  ------------------
  |  Branch (2117:12): [True: 67.3k, False: 0]
  ------------------
 2118|  67.3k|            if(!m->isArray) {
  ------------------
  |  Branch (2118:16): [True: 64.5k, False: 2.78k]
  ------------------
 2119|  64.5k|                clearJumpTable[mt->typeKind]((void*)ptr, mt);
 2120|  64.5k|                ptr += mt->memSize;
 2121|  64.5k|            } else {
 2122|  2.78k|                size_t length = *(size_t*)ptr;
 2123|  2.78k|                ptr += sizeof(size_t);
 2124|  2.78k|                UA_Array_delete(*(void**)ptr, length, mt);
 2125|  2.78k|                ptr += sizeof(void*);
 2126|  2.78k|            }
 2127|  67.3k|        } else { /* field is optional */
 2128|      0|            if(!m->isArray) {
  ------------------
  |  Branch (2128:16): [True: 0, False: 0]
  ------------------
 2129|       |                /* optional scalar field is contained */
 2130|      0|                if((*(void *const *)ptr != NULL))
  ------------------
  |  Branch (2130:20): [True: 0, False: 0]
  ------------------
 2131|      0|                    UA_Array_delete(*(void **)ptr, 1, mt);
 2132|      0|                ptr += sizeof(void *);
 2133|      0|            } else {
 2134|       |                /* optional array field is contained */
 2135|      0|                if((*(void *const *)(ptr + sizeof(size_t)) != NULL)) {
  ------------------
  |  Branch (2135:20): [True: 0, False: 0]
  ------------------
 2136|      0|                    size_t length = *(size_t *)ptr;
 2137|      0|                    ptr += sizeof(size_t);
 2138|      0|                    UA_Array_delete(*(void **)ptr, length, mt);
 2139|      0|                    ptr += sizeof(void *);
 2140|      0|                } else { /* optional array field not contained */
 2141|      0|                    ptr += sizeof(size_t);
 2142|      0|                    ptr += sizeof(void *);
 2143|      0|                }
 2144|      0|            }
 2145|      0|        }
 2146|  67.3k|    }
 2147|  18.2k|}
ua_types.c:nodeIdOrder:
 2297|  16.0k|nodeIdOrder(const void *p1_, const void *p2_, const UA_DataType *_) {
 2298|  16.0k|    const UA_NodeId *p1 = (const UA_NodeId*)p1_;
 2299|  16.0k|    const UA_NodeId *p2 = (const UA_NodeId*)p2_;
 2300|       |    /* Compare namespaceIndex */
 2301|  16.0k|    if(p1->namespaceIndex != p2->namespaceIndex)
  ------------------
  |  Branch (2301:8): [True: 992, False: 15.0k]
  ------------------
 2302|    992|        return (p1->namespaceIndex < p2->namespaceIndex) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2302:16): [True: 976, False: 16]
  ------------------
 2303|       |
 2304|       |    /* Compare identifierType */
 2305|  15.0k|    if(p1->identifierType != p2->identifierType)
  ------------------
  |  Branch (2305:8): [True: 5.23k, False: 9.84k]
  ------------------
 2306|  5.23k|        return (p1->identifierType < p2->identifierType) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2306:16): [True: 5.23k, False: 3]
  ------------------
 2307|       |
 2308|       |    /* Compare the identifier */
 2309|  9.84k|    switch(p1->identifierType) {
 2310|  9.84k|    case UA_NODEIDTYPE_NUMERIC:
  ------------------
  |  Branch (2310:5): [True: 9.84k, False: 0]
  ------------------
 2311|  9.84k|    default:
  ------------------
  |  Branch (2311:5): [True: 0, False: 9.84k]
  ------------------
 2312|  9.84k|        if(p1->identifier.numeric != p2->identifier.numeric)
  ------------------
  |  Branch (2312:12): [True: 4.03k, False: 5.80k]
  ------------------
 2313|  4.03k|            return (p1->identifier.numeric < p2->identifier.numeric) ?
  ------------------
  |  Branch (2313:20): [True: 2.48k, False: 1.55k]
  ------------------
 2314|  2.48k|                UA_ORDER_LESS : UA_ORDER_MORE;
 2315|  5.80k|        return UA_ORDER_EQ;
 2316|      0|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (2316:5): [True: 0, False: 9.84k]
  ------------------
 2317|      0|        return guidOrder(&p1->identifier.guid, &p2->identifier.guid, NULL);
 2318|      0|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (2318:5): [True: 0, False: 9.84k]
  ------------------
 2319|      0|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (2319:5): [True: 0, False: 9.84k]
  ------------------
 2320|       |        return stringOrder(&p1->identifier.string, &p2->identifier.string, NULL);
 2321|  9.84k|    }
 2322|  9.84k|}
ua_types.c:stringOrder:
 2280|  11.2k|stringOrder(const void *p1_, const void *p2_, const UA_DataType *type) {
 2281|  11.2k|    const UA_String *p1 = (const UA_String*)p1_;
 2282|  11.2k|    const UA_String *p2 = (const UA_String*)p2_;
 2283|  11.2k|    if(p1->length != p2->length)
  ------------------
  |  Branch (2283:8): [True: 10.1k, False: 1.09k]
  ------------------
 2284|  10.1k|        return (p1->length < p2->length) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2284:16): [True: 7.89k, False: 2.23k]
  ------------------
 2285|       |    /* For zero-length arrays, every pointer not NULL is considered a
 2286|       |     * UA_EMPTY_ARRAY_SENTINEL. */
 2287|  1.09k|    if(p1->data == p2->data) return UA_ORDER_EQ;
  ------------------
  |  Branch (2287:8): [True: 0, False: 1.09k]
  ------------------
 2288|  1.09k|    if(p1->data == NULL) return UA_ORDER_LESS;
  ------------------
  |  Branch (2288:8): [True: 0, False: 1.09k]
  ------------------
 2289|  1.09k|    if(p2->data == NULL) return UA_ORDER_MORE;
  ------------------
  |  Branch (2289:8): [True: 0, False: 1.09k]
  ------------------
 2290|  1.09k|    int cmp = memcmp((const char*)p1->data, (const char*)p2->data, p1->length);
 2291|  1.09k|    if(cmp != 0)
  ------------------
  |  Branch (2291:8): [True: 439, False: 656]
  ------------------
 2292|    439|        return (cmp < 0) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2292:16): [True: 203, False: 236]
  ------------------
 2293|    656|    return UA_ORDER_EQ;
 2294|  1.09k|}

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

UA_AttributeId_fromName:
   56|     83|UA_AttributeId_fromName(const UA_String name) {
   57|  2.36k|    for(size_t i = 0; i < 28; i++) {
  ------------------
  |  Branch (57:23): [True: 2.28k, False: 81]
  ------------------
   58|  2.28k|        if(strlen(attributeIdNames[i]) != name.length)
  ------------------
  |  Branch (58:12): [True: 2.25k, False: 26]
  ------------------
   59|  2.25k|            continue;
   60|     47|        for(size_t j = 0; j < name.length; j++) {
  ------------------
  |  Branch (60:27): [True: 45, False: 2]
  ------------------
   61|     45|            if((attributeIdNames[i][j] | 32) != (name.data[j] | 32))
  ------------------
  |  Branch (61:16): [True: 24, False: 21]
  ------------------
   62|     24|                goto next;
   63|     45|        }
   64|      2|        return (UA_AttributeId)i;
   65|     24|    next:
   66|     24|        continue;
   67|     26|    }
   68|     81|    return UA_ATTRIBUTEID_INVALID;
   69|     83|}
UA_readNumberWithBase:
  111|  12.6k|UA_readNumberWithBase(const UA_Byte *buf, size_t buflen, UA_UInt32 *number, UA_Byte base) {
  112|  12.6k|    UA_assert(buf);
  ------------------
  |  |  399|  12.6k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (112:5): [True: 12.6k, False: 0]
  ------------------
  113|  12.6k|    UA_assert(number);
  ------------------
  |  |  399|  12.6k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (113:5): [True: 12.6k, False: 0]
  ------------------
  114|  12.6k|    u32 n = 0;
  115|  12.6k|    size_t progress = 0;
  116|       |    /* read numbers until the end or a non-number character appears */
  117|  1.13M|    while(progress < buflen) {
  ------------------
  |  Branch (117:11): [True: 1.12M, False: 12.5k]
  ------------------
  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: 26]
  |  Branch (119:24): [True: 1.10M, False: 16.8k]
  |  Branch (119:36): [True: 1.10M, False: 0]
  ------------------
  120|  1.10M|           n = (n * base) + c - '0';
  121|  16.9k|        else if(base > 9 && c >= 'a' && c <= 'z' && c <= 'a' + (base-11))
  ------------------
  |  Branch (121:17): [True: 16.9k, False: 0]
  |  Branch (121:29): [True: 2.86k, False: 14.0k]
  |  Branch (121:41): [True: 2.84k, False: 26]
  |  Branch (121:53): [True: 2.83k, False: 8]
  ------------------
  122|  2.83k|           n = (n * base) + c-'a' + 10;
  123|  14.0k|        else if(base > 9 && c >= 'A' && c <= 'Z' && c <= 'A' + (base-11))
  ------------------
  |  Branch (123:17): [True: 14.0k, False: 0]
  |  Branch (123:29): [True: 14.0k, False: 35]
  |  Branch (123:41): [True: 14.0k, False: 36]
  |  Branch (123:53): [True: 13.9k, False: 8]
  ------------------
  124|  13.9k|           n = (n * base) + c-'A' + 10;
  125|     79|        else
  126|     79|           break;
  127|  1.12M|        ++progress;
  128|  1.12M|    }
  129|  12.6k|    *number = n;
  130|  12.6k|    return progress;
  131|  12.6k|}
UA_readNumber:
  134|  2.98k|UA_readNumber(const UA_Byte *buf, size_t buflen, UA_UInt32 *number) {
  135|  2.98k|    return UA_readNumberWithBase(buf, buflen, number, 10);
  136|  2.98k|}
lookupRefType:
  727|  1.13k|lookupRefType(UA_Server *server, UA_QualifiedName *qn, UA_NodeId *outRefTypeId) {
  728|       |    /* Check well-known ReferenceTypes first */
  729|  1.13k|    if(qn->namespaceIndex == 0) {
  ------------------
  |  Branch (729:8): [True: 1.12k, False: 16]
  ------------------
  730|  11.6k|        for(size_t i = 0; i < KNOWNREFTYPES; i++) {
  ------------------
  |  |  705|  11.6k|#define KNOWNREFTYPES 17
  ------------------
  |  Branch (730:27): [True: 11.2k, False: 466]
  ------------------
  731|  11.2k|            if(UA_String_equal(&qn->name, &knownRefTypes[i].browseName)) {
  ------------------
  |  Branch (731:16): [True: 656, False: 10.5k]
  ------------------
  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|    482|    if(server) {
  ------------------
  |  Branch (740:8): [True: 0, False: 482]
  ------------------
  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|    482|    return UA_STATUSCODE_BADNOTFOUND;
  ------------------
  |  |  233|    482|#define UA_STATUSCODE_BADNOTFOUND ((UA_StatusCode) 0x803E0000)
  ------------------
  771|    482|}
getRefTypeBrowseName:
  774|  5.22k|getRefTypeBrowseName(const UA_NodeId *refTypeId, UA_String *outBN) {
  775|       |    /* Canonical name known? */
  776|  5.22k|    if(refTypeId->namespaceIndex == 0 &&
  ------------------
  |  Branch (776:8): [True: 4.51k, False: 702]
  ------------------
  777|  4.51k|       refTypeId->identifierType == UA_NODEIDTYPE_NUMERIC) {
  ------------------
  |  Branch (777:8): [True: 1.44k, False: 3.07k]
  ------------------
  778|  14.1k|        for(size_t i = 0; i < KNOWNREFTYPES; i++) {
  ------------------
  |  |  705|  14.1k|#define KNOWNREFTYPES 17
  ------------------
  |  Branch (778:27): [True: 13.5k, False: 574]
  ------------------
  779|  13.5k|            if(refTypeId->identifier.numeric != knownRefTypes[i].identifier)
  ------------------
  |  Branch (779:16): [True: 12.7k, False: 871]
  ------------------
  780|  12.7k|                continue;
  781|    871|            memcpy(outBN->data, knownRefTypes[i].browseName.data, knownRefTypes[i].browseName.length);
  782|    871|            outBN->length = knownRefTypes[i].browseName.length;
  783|    871|            return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    871|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  784|  13.5k|        }
  785|  1.44k|    }
  786|       |
  787|       |    /* Print the NodeId */
  788|  4.34k|    return UA_NodeId_print(refTypeId, outBN);
  789|  5.22k|}
UA_String_unescape:
  803|  16.5k|UA_String_unescape(UA_String *str, UA_Boolean copyEscape, UA_Escaping esc) {
  804|  16.5k|    if(esc == UA_ESCAPING_NONE)
  ------------------
  |  Branch (804:8): [True: 211, False: 16.3k]
  ------------------
  805|    211|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    211|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  806|       |
  807|       |    /* Does the string need escaping? */
  808|  16.3k|    UA_String tmp;
  809|  16.3k|    status res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  16.3k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  810|  16.3k|    u8 *pos = str->data;
  811|  16.3k|    u8 *end = str->data + str->length;
  812|  16.3k|    u8 escape_char = (esc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (812:23): [True: 30, False: 16.3k]
  ------------------
  813|  16.3k|                      esc == UA_ESCAPING_PERCENT_EXTENDED) ? '%' : '&';
  ------------------
  |  Branch (813:23): [True: 3.12k, False: 13.1k]
  ------------------
  814|  1.02M|    for(; pos < end; pos++) {
  ------------------
  |  Branch (814:11): [True: 1.01M, False: 15.4k]
  ------------------
  815|  1.01M|        if(*pos == escape_char)
  ------------------
  |  Branch (815:12): [True: 851, False: 1.00M]
  ------------------
  816|    851|            goto escape;
  817|  1.01M|    }
  818|       |
  819|  15.4k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  15.4k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  820|       |
  821|    851| escape:
  822|    851|    if(copyEscape) {
  ------------------
  |  Branch (822:8): [True: 0, False: 851]
  ------------------
  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|    851|    u8 byte = 0;
  831|    851|    u8 *writepos = pos;
  832|       |
  833|    851|    res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    851|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  834|    851|    if(esc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (834:8): [True: 1, False: 850]
  ------------------
  835|    850|       esc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (835:8): [True: 426, False: 424]
  ------------------
  836|       |        /* Percent-Escaping */
  837|  1.00M|        for(; pos < end; pos++) {
  ------------------
  |  Branch (837:15): [True: 1.00M, False: 228]
  ------------------
  838|  1.00M|            if(*pos == '%') {
  ------------------
  |  Branch (838:16): [True: 3.81k, False: 1.00M]
  ------------------
  839|  3.81k|                if(pos + 2 >= end || !isHex(pos[1]) || !isHex(pos[2]))
  ------------------
  |  Branch (839:20): [True: 0, False: 3.81k]
  |  Branch (839:38): [True: 98, False: 3.71k]
  |  Branch (839:56): [True: 101, False: 3.61k]
  ------------------
  840|    199|                    goto out;
  841|  3.61k|                if(pos[1] >= 'a')
  ------------------
  |  Branch (841:20): [True: 2.52k, False: 1.08k]
  ------------------
  842|  2.52k|                    byte = pos[1] - ('a' - 10);
  843|  1.08k|                else if(pos[1] >= 'A')
  ------------------
  |  Branch (843:25): [True: 503, False: 586]
  ------------------
  844|    503|                    byte = pos[1] - ('A' - 10);
  845|    586|                else
  846|    586|                    byte = pos[1] - '0';
  847|  3.61k|                byte <<= 4;
  848|       |
  849|  3.61k|                if(pos[2] >= 'a')
  ------------------
  |  Branch (849:20): [True: 637, False: 2.97k]
  ------------------
  850|    637|                    byte += (u8)(pos[2] - ('a' - 10));
  851|  2.97k|                else if(pos[2] >= 'A')
  ------------------
  |  Branch (851:25): [True: 2.26k, False: 715]
  ------------------
  852|  2.26k|                    byte += (u8)(pos[2] - ('A' - 10));
  853|    715|                else
  854|    715|                    byte += (u8)(pos[2] - '0');
  855|       |
  856|  3.61k|                pos += 2;
  857|  3.61k|                *writepos++ = byte;
  858|  3.61k|                continue;
  859|  3.81k|            }
  860|  1.00M|            *writepos++ = *pos;
  861|  1.00M|        }
  862|    427|    } else {
  863|       |        /* And-Escaping */
  864|  1.88M|        for(; pos < end; pos++) {
  ------------------
  |  Branch (864:15): [True: 1.88M, False: 424]
  ------------------
  865|  1.88M|            if(*pos == '&') {
  ------------------
  |  Branch (865:16): [True: 13.8k, False: 1.87M]
  ------------------
  866|  13.8k|                pos++;
  867|  13.8k|                if(pos == end)
  ------------------
  |  Branch (867:20): [True: 0, False: 13.8k]
  ------------------
  868|      0|                    goto out;
  869|  13.8k|            }
  870|  1.88M|            *writepos++ = *pos;
  871|  1.88M|        }
  872|    424|    }
  873|    652|    res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    652|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  874|       |
  875|    851| out:
  876|    851|    if(copyEscape) {
  ------------------
  |  Branch (876:8): [True: 0, False: 851]
  ------------------
  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|    851|    } else if(res == UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|    851|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (884:15): [True: 652, False: 199]
  ------------------
  885|    652|        str->length = (size_t)(writepos - str->data);
  886|    652|    }
  887|    851|    return res;
  888|    652|}
UA_String_escapedSize:
  894|  15.2k|UA_String_escapedSize(const UA_String s, UA_Escaping esc) {
  895|       |    /* Find out the overhead from escaping */
  896|  15.2k|    size_t overhead = 0;
  897|  20.2M|    for(size_t j = 0; j < s.length; j++) {
  ------------------
  |  Branch (897:23): [True: 20.2M, False: 15.2k]
  ------------------
  898|  20.2M|        if(esc == UA_ESCAPING_AND_EXTENDED)
  ------------------
  |  Branch (898:12): [True: 0, False: 20.2M]
  ------------------
  899|      0|            overhead += isReservedAndExtended(s.data[j]);
  900|  20.2M|        else if(esc == UA_ESCAPING_AND)
  ------------------
  |  Branch (900:17): [True: 6.94M, False: 13.3M]
  ------------------
  901|  6.94M|            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.20M]
  ------------------
  906|  20.2M|    }
  907|       |
  908|  15.2k|    return s.length + overhead;
  909|  15.2k|}
UA_String_escapeInsert:
  912|  14.5k|UA_String_escapeInsert(u8 *pos, const UA_String s2, UA_Escaping esc) {
  913|  14.5k|    u8 *begin = pos;
  914|       |
  915|  14.5k|    if(esc == UA_ESCAPING_NONE) {
  ------------------
  |  Branch (915:8): [True: 1.50k, False: 13.0k]
  ------------------
  916|  6.66M|        for(size_t j = 0; j < s2.length; j++)
  ------------------
  |  Branch (916:27): [True: 6.66M, False: 1.50k]
  ------------------
  917|  6.66M|            *pos++ = s2.data[j];
  918|  13.0k|    } else if(esc == UA_ESCAPING_PERCENT || esc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (918:15): [True: 0, False: 13.0k]
  |  Branch (918:45): [True: 0, False: 13.0k]
  ------------------
  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.0k|    } else {
  931|  6.95M|        for(size_t j = 0; j < s2.length; j++) {
  ------------------
  |  Branch (931:27): [True: 6.94M, False: 13.0k]
  ------------------
  932|  6.94M|            UA_Boolean reserved = (esc == UA_ESCAPING_AND_EXTENDED) ?
  ------------------
  |  Branch (932:35): [True: 0, False: 6.94M]
  ------------------
  933|  6.94M|                isReservedAndExtended(s2.data[j]) : isReservedAnd(s2.data[j]);
  934|  6.94M|            if(reserved)
  ------------------
  |  Branch (934:16): [True: 157k, False: 6.78M]
  ------------------
  935|   157k|                *pos++ = '&';
  936|  6.94M|            *pos++ = s2.data[j];
  937|  6.94M|        }
  938|  13.0k|    }
  939|       |
  940|  14.5k|    return (size_t)(pos - begin);
  941|  14.5k|}
UA_String_escapeAppend:
  944|  13.0k|UA_String_escapeAppend(UA_String *s, const UA_String s2, UA_Escaping esc) {
  945|  13.0k|    if(esc == UA_ESCAPING_NONE)
  ------------------
  |  Branch (945:8): [True: 0, False: 13.0k]
  ------------------
  946|      0|        return UA_String_append(s, s2);
  947|       |
  948|       |    /* Allocate memory for the additional escaped string */
  949|  13.0k|    size_t escapedLength = UA_String_escapedSize(s2, esc);
  950|  13.0k|    UA_Byte *buf = (UA_Byte*)
  951|  13.0k|        UA_realloc((void*)((uintptr_t)s->data & ~(uintptr_t)UA_EMPTY_ARRAY_SENTINEL),
  ------------------
  |  |   21|  13.0k|#define UA_realloc(ptr, size) UA_reallocSingleton(ptr, size)
  ------------------
  952|  13.0k|                   s->length + s2.length + escapedLength);
  953|  13.0k|    if(!buf)
  ------------------
  |  Branch (953:8): [True: 0, False: 13.0k]
  ------------------
  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.0k|    s->data = buf;
  958|  13.0k|    UA_String_escapeInsert(s->data + s->length, s2, esc);
  959|  13.0k|    s->length += escapedLength;
  960|  13.0k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  13.0k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  961|  13.0k|}
UA_RelativePath_print:
 1059|    752|UA_RelativePath_print(const UA_RelativePath *rp, UA_String *out) {
 1060|    752|    return printRelativePath(rp, out, UA_ESCAPING_AND);
 1061|    752|}
ua_util.c:isHex:
  796|  7.53k|isHex(u8 c) {
  797|  7.53k|    return ((c >= 'a' && c <= 'f') ||
  ------------------
  |  Branch (797:14): [True: 3.27k, False: 4.25k]
  |  Branch (797:26): [True: 3.20k, False: 74]
  ------------------
  798|  4.33k|            (c >= 'A' && c <= 'F') ||
  ------------------
  |  Branch (798:14): [True: 2.89k, False: 1.44k]
  |  Branch (798:26): [True: 2.79k, False: 92]
  ------------------
  799|  1.53k|            (c >= '0' && c <= '9'));
  ------------------
  |  Branch (799:14): [True: 1.44k, False: 86]
  |  Branch (799:26): [True: 1.33k, False: 113]
  ------------------
  800|  7.53k|}
ua_util.c:printRelativePath:
 1001|    752|printRelativePath(const UA_RelativePath *rp, UA_String *out, UA_Escaping esc) {
 1002|    752|    UA_String tmp = UA_STRING_NULL;
 1003|    752|    UA_StatusCode res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    752|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1004|  9.28k|    for(size_t i = 0; i < rp->elementsSize && res == UA_STATUSCODE_GOOD; i++) {
  ------------------
  |  |   17|  8.53k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1004:23): [True: 8.53k, False: 752]
  |  Branch (1004:47): [True: 8.53k, False: 0]
  ------------------
 1005|       |        /* Print the reference type */
 1006|  8.53k|        UA_RelativePathElement *elm = &rp->elements[i];
 1007|  8.53k|        if(UA_NodeId_equal(&hierarchicalRefs, &elm->referenceTypeId) &&
  ------------------
  |  Branch (1007:12): [True: 2.60k, False: 5.93k]
  ------------------
 1008|  2.60k|           !elm->isInverse && elm->includeSubtypes) {
  ------------------
  |  Branch (1008:12): [True: 2.40k, False: 194]
  |  Branch (1008:31): [True: 2.34k, False: 66]
  ------------------
 1009|  2.34k|            res |= UA_String_append(&tmp, UA_STRING("/"));
 1010|  6.19k|        } else if(esc == UA_ESCAPING_AND &&
  ------------------
  |  Branch (1010:19): [True: 6.19k, False: 0]
  ------------------
 1011|  6.19k|                  UA_NodeId_equal(&aggregatesRefs, &elm->referenceTypeId) &&
  ------------------
  |  Branch (1011:19): [True: 1.90k, False: 4.29k]
  ------------------
 1012|  1.90k|                  !elm->isInverse && elm->includeSubtypes) {
  ------------------
  |  Branch (1012:19): [True: 1.70k, False: 194]
  |  Branch (1012:38): [True: 1.64k, False: 66]
  ------------------
 1013|  1.64k|            res |= UA_String_append(&tmp, UA_STRING("."));
 1014|  4.55k|        } else {
 1015|  4.55k|            res |= UA_String_append(&tmp, UA_STRING("<"));
 1016|  4.55k|            if(!elm->includeSubtypes)
  ------------------
  |  Branch (1016:16): [True: 336, False: 4.21k]
  ------------------
 1017|    336|                res |= UA_String_append(&tmp, UA_STRING("#"));
 1018|  4.55k|            if(elm->isInverse)
  ------------------
  |  Branch (1018:16): [True: 582, False: 3.96k]
  ------------------
 1019|    582|                res |= UA_String_append(&tmp, UA_STRING("!"));
 1020|  4.55k|            if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  4.55k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1020:16): [True: 0, False: 4.55k]
  ------------------
 1021|      0|                break;
 1022|       |
 1023|  4.55k|            UA_Byte bnBuf[512];
 1024|  4.55k|            UA_String bnBufStr = {512, bnBuf};
 1025|  4.55k|            res = getRefTypeBrowseName(&elm->referenceTypeId, &bnBufStr);
 1026|  4.55k|            if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|  4.55k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1026:16): [True: 670, False: 3.88k]
  ------------------
 1027|    670|                UA_String_init(&bnBufStr);
 1028|    670|                res = getRefTypeBrowseName(&elm->referenceTypeId, &bnBufStr);
 1029|    670|                if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    670|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1029:20): [True: 0, False: 670]
  ------------------
 1030|      0|                    break;
 1031|    670|            }
 1032|  4.55k|            res |= UA_String_escapeAppend(&tmp, bnBufStr, esc);
 1033|  4.55k|            res |= UA_String_append(&tmp, UA_STRING(">"));
 1034|  4.55k|            if(bnBufStr.data != bnBuf)
  ------------------
  |  Branch (1034:16): [True: 670, False: 3.88k]
  ------------------
 1035|    670|                UA_String_clear(&bnBufStr);
 1036|  4.55k|        }
 1037|       |
 1038|       |        /* Print the qualified name */
 1039|  8.53k|        UA_QualifiedName *qn = &elm->targetName;
 1040|  8.53k|        if(qn->namespaceIndex > 0) {
  ------------------
  |  Branch (1040:12): [True: 416, False: 8.11k]
  ------------------
 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.53k|        res |= UA_String_escapeAppend(&tmp, qn->name, esc);
 1047|  8.53k|    }
 1048|       |
 1049|       |    /* Encoding failed, clean up */
 1050|    752|    if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|    752|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1050:8): [True: 0, False: 752]
  ------------------
 1051|      0|        UA_String_clear(&tmp);
 1052|      0|        return res;
 1053|      0|    }
 1054|       |
 1055|    752|    return moveTmpToOut(&tmp, out);
 1056|    752|}
ua_util.c:moveTmpToOut:
  964|    752|moveTmpToOut(UA_String *tmp, UA_String *out) {
  965|       |    /* Output has zero length */
  966|    752|    if(tmp->length == 0) {
  ------------------
  |  Branch (966:8): [True: 0, False: 752]
  ------------------
  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|    752|    if(out->length == 0) {
  ------------------
  |  Branch (975:8): [True: 752, False: 0]
  ------------------
  976|    752|        *out = *tmp;
  977|    752|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    752|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  978|    752|    }
  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.6k|isTrue(uint8_t expr) {
  168|  10.6k|    return expr;
  169|  10.6k|}
ua_util.c:isReservedAnd:
   83|  13.8M|isReservedAnd(u8 c) {
   84|  13.8M|    return (c == '/' || c == '.' || c == '<' || c == '>' ||
  ------------------
  |  Branch (84:13): [True: 89.5k, False: 13.7M]
  |  Branch (84:25): [True: 134k, False: 13.6M]
  |  Branch (84:37): [True: 12.0k, False: 13.6M]
  |  Branch (84:49): [True: 778, False: 13.6M]
  ------------------
   85|  13.6M|            c == ':' || c == '#' || c == '!' || c == '&');
  ------------------
  |  Branch (85:13): [True: 49.5k, False: 13.5M]
  |  Branch (85:25): [True: 3.26k, False: 13.5M]
  |  Branch (85:37): [True: 6.90k, False: 13.5M]
  |  Branch (85:49): [True: 18.2k, False: 13.5M]
  ------------------
   86|  13.8M|}
ua_util.c:isReservedPercent:
   95|  13.3M|isReservedPercent(u8 c) {
   96|  13.3M|    return (c == ';'  || c == '%' || c <= ' ' || c == 127);
  ------------------
  |  Branch (96:13): [True: 1.12k, False: 13.3M]
  |  Branch (96:26): [True: 8.10k, False: 13.3M]
  |  Branch (96:38): [True: 6.95M, False: 6.35M]
  |  Branch (96:50): [True: 2.81M, False: 3.53M]
  ------------------
   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.53M]
  |  Branch (101:37): [True: 48.8k, False: 3.48M]
  |  Branch (101:49): [True: 3.03k, False: 3.48M]
  |  Branch (101:61): [True: 2.74k, False: 3.48M]
  |  Branch (101:73): [True: 1.80k, False: 3.48M]
  ------------------
  102|  3.48M|            c == '&' || c == '(' || c == ')' || c == ',' || c == '<' || c == '>' ||
  ------------------
  |  Branch (102:13): [True: 16.6k, False: 3.46M]
  |  Branch (102:25): [True: 6.58k, False: 3.45M]
  |  Branch (102:37): [True: 772, False: 3.45M]
  |  Branch (102:49): [True: 972, False: 3.45M]
  |  Branch (102:61): [True: 11.8k, False: 3.44M]
  |  Branch (102:73): [True: 250, False: 3.44M]
  ------------------
  103|  3.44M|            c == '`' || c == '/' || c == '\\' || c == '"' || c == '\'' );
  ------------------
  |  Branch (103:13): [True: 4.47k, False: 3.43M]
  |  Branch (103:25): [True: 89.0k, False: 3.34M]
  |  Branch (103:37): [True: 2.72k, False: 3.34M]
  |  Branch (103:50): [True: 69.5k, False: 3.27M]
  |  Branch (103:62): [True: 67.7k, False: 3.20M]
  ------------------
  104|  13.3M|}
ua_types_lex.c:isReservedPercentExtended:
  100|  7.35k|isReservedPercentExtended(u8 c) {
  101|  7.35k|    return (isReservedPercent(c) || c == ':' || c == '#' || c == '[' || c == ']' ||
  ------------------
  |  Branch (101:13): [True: 26, False: 7.33k]
  |  Branch (101:37): [True: 2, False: 7.33k]
  |  Branch (101:49): [True: 2, False: 7.32k]
  |  Branch (101:61): [True: 2, False: 7.32k]
  |  Branch (101:73): [True: 2, False: 7.32k]
  ------------------
  102|  7.32k|            c == '&' || c == '(' || c == ')' || c == ',' || c == '<' || c == '>' ||
  ------------------
  |  Branch (102:13): [True: 4, False: 7.32k]
  |  Branch (102:25): [True: 2, False: 7.31k]
  |  Branch (102:37): [True: 2, False: 7.31k]
  |  Branch (102:49): [True: 2, False: 7.31k]
  |  Branch (102:61): [True: 845, False: 6.47k]
  |  Branch (102:73): [True: 2, False: 6.46k]
  ------------------
  103|  6.46k|            c == '`' || c == '/' || c == '\\' || c == '"' || c == '\'' );
  ------------------
  |  Branch (103:13): [True: 3, False: 6.46k]
  |  Branch (103:25): [True: 1.75k, False: 4.71k]
  |  Branch (103:37): [True: 2, False: 4.71k]
  |  Branch (103:50): [True: 2, False: 4.71k]
  |  Branch (103:62): [True: 2, False: 4.70k]
  ------------------
  104|  7.35k|}
ua_types_lex.c:isReservedPercent:
   95|  7.35k|isReservedPercent(u8 c) {
   96|  7.35k|    return (c == ';'  || c == '%' || c <= ' ' || c == 127);
  ------------------
  |  Branch (96:13): [True: 3, False: 7.35k]
  |  Branch (96:26): [True: 0, False: 7.35k]
  |  Branch (96:38): [True: 21, False: 7.33k]
  |  Branch (96:50): [True: 2, False: 7.33k]
  ------------------
   97|  7.35k|}
ua_types_lex.c:isReservedAnd:
   83|  80.8k|isReservedAnd(u8 c) {
   84|  80.8k|    return (c == '/' || c == '.' || c == '<' || c == '>' ||
  ------------------
  |  Branch (84:13): [True: 2.46k, False: 78.3k]
  |  Branch (84:25): [True: 1.65k, False: 76.6k]
  |  Branch (84:37): [True: 5.88k, False: 70.7k]
  |  Branch (84:49): [True: 1, False: 70.7k]
  ------------------
   85|  70.7k|            c == ':' || c == '#' || c == '!' || c == '&');
  ------------------
  |  Branch (85:13): [True: 1, False: 70.7k]
  |  Branch (85:25): [True: 1, False: 70.7k]
  |  Branch (85:37): [True: 1, False: 70.7k]
  |  Branch (85:49): [True: 0, False: 70.7k]
  ------------------
   86|  80.8k|}

LLVMFuzzerTestOneInput:
   14|  3.62k|LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
   15|  3.62k|    if(size <= 1)
  ------------------
  |  Branch (15:8): [True: 1, False: 3.62k]
  ------------------
   16|      1|        return 0;
   17|       |
   18|       |    /* Use the first byte as a selector to choose which parsing function to fuzz */
   19|  3.62k|    uint8_t selector = data[0];
   20|  3.62k|    const uint8_t *payload = data + 1;
   21|  3.62k|    size_t payload_size = size - 1;
   22|       |
   23|  3.62k|    UA_String str;
   24|  3.62k|    UA_StatusCode retval = UA_ByteString_allocBuffer(&str, payload_size);
   25|  3.62k|    if(retval != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  3.62k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (25:8): [True: 0, False: 3.62k]
  ------------------
   26|      0|        return 0;
   27|  3.62k|    memcpy(str.data, payload, payload_size);
   28|       |
   29|  3.62k|    switch(selector % 8) {
   30|    156|    case 0: {
  ------------------
  |  Branch (30:5): [True: 156, False: 3.47k]
  ------------------
   31|    156|        UA_NodeId id;
   32|    156|        UA_NodeId_init(&id);
   33|    156|        UA_NodeId_parse(&id, str);
   34|    156|        UA_NodeId_clear(&id);
   35|    156|        break;
   36|      0|    }
   37|    777|    case 1: {
  ------------------
  |  Branch (37:5): [True: 777, False: 2.85k]
  ------------------
   38|    777|        UA_DateTime dt;
   39|    777|        UA_DateTime_parse(&dt, str);
   40|    777|        break;
   41|      0|    }
   42|     63|    case 2: {
  ------------------
  |  Branch (42:5): [True: 63, False: 3.56k]
  ------------------
   43|     63|        UA_Guid guid;
   44|     63|        UA_Guid_init(&guid);
   45|     63|        UA_Guid_parse(&guid, str);
   46|     63|        break;
   47|      0|    }
   48|    514|    case 3: {
  ------------------
  |  Branch (48:5): [True: 514, False: 3.11k]
  ------------------
   49|    514|        UA_ExpandedNodeId enid;
   50|    514|        UA_ExpandedNodeId_init(&enid);
   51|    514|        UA_ExpandedNodeId_parse(&enid, str);
   52|    514|        UA_ExpandedNodeId_clear(&enid);
   53|    514|        break;
   54|      0|    }
   55|    154|    case 4: {
  ------------------
  |  Branch (55:5): [True: 154, False: 3.47k]
  ------------------
   56|    154|        UA_QualifiedName qn;
   57|    154|        UA_QualifiedName_init(&qn);
   58|    154|        UA_QualifiedName_parse(&qn, str);
   59|    154|        UA_QualifiedName_clear(&qn);
   60|    154|        break;
   61|      0|    }
   62|    992|    case 5: {
  ------------------
  |  Branch (62:5): [True: 992, False: 2.63k]
  ------------------
   63|    992|        UA_RelativePath rp;
   64|    992|        UA_RelativePath_init(&rp);
   65|    992|        UA_StatusCode ret = UA_RelativePath_parse(&rp, str);
   66|    992|        if(ret == UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|    992|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (66:12): [True: 752, False: 240]
  ------------------
   67|    752|            UA_String printed = UA_STRING_NULL;
   68|    752|            UA_RelativePath_print(&rp, &printed);
   69|    752|            UA_String_clear(&printed);
   70|    752|        }
   71|    992|        UA_RelativePath_clear(&rp);
   72|    992|        break;
   73|      0|    }
   74|    544|    case 6: {
  ------------------
  |  Branch (74:5): [True: 544, False: 3.08k]
  ------------------
   75|    544|        UA_SimpleAttributeOperand sao;
   76|    544|        UA_SimpleAttributeOperand_init(&sao);
   77|    544|        UA_SimpleAttributeOperand_parse(&sao, str);
   78|    544|        UA_SimpleAttributeOperand_clear(&sao);
   79|    544|        break;
   80|      0|    }
   81|    427|    case 7: {
  ------------------
  |  Branch (81:5): [True: 427, False: 3.20k]
  ------------------
   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.62k]
  ------------------
   89|  3.62k|    }
   90|       |
   91|  3.62k|    UA_String_clear(&str);
   92|  3.62k|    return 0;
   93|  3.62k|}

fuzz_parse_string.cc:_ZL14UA_NodeId_initP9UA_NodeId:
  243|    156|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL15UA_NodeId_clearP9UA_NodeId:
  243|    156|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL12UA_Guid_initP7UA_Guid:
  243|     63|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL22UA_ExpandedNodeId_initP17UA_ExpandedNodeId:
  243|    514|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL23UA_ExpandedNodeId_clearP17UA_ExpandedNodeId:
  243|    514|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL21UA_QualifiedName_initP16UA_QualifiedName:
  243|    154|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL22UA_QualifiedName_clearP16UA_QualifiedName:
  243|    154|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL20UA_RelativePath_initP15UA_RelativePath:
  243|    992|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL15UA_String_clearP9UA_String:
  243|  4.37k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL21UA_RelativePath_clearP15UA_RelativePath:
  243|    992|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL30UA_SimpleAttributeOperand_initP25UA_SimpleAttributeOperand:
  243|    544|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL31UA_SimpleAttributeOperand_clearP25UA_SimpleAttributeOperand:
  243|    544|# 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.29k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_String_init:
  243|    670|# 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|    670|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_NodeId_equal:
  243|  14.7k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_String_copy:
  243|  17.4k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_clear:
  243|    154|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_ExpandedNodeId_clear:
  243|    435|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_QualifiedName_clear:
  243|  1.13k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePath_init:
  243|  1.88k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePathElement_init:
  243|  14.4k|# 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|    240|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_AttributeOperand_init:
  243|    971|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_SimpleAttributeOperand_init:
  243|    119|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_String_init:
  243|    119|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_init:
  243|    119|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_equal:
  243|  1.34k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_QualifiedName_init:
  243|  16.0k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_AttributeOperand_clear:
  243|    963|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_SimpleAttributeOperand_clear:
  243|     47|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_ReadValueId_init:
  243|      8|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl

