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

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

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

parseUInt64:
   30|  4.99k|parseUInt64(const char *str, size_t size, uint64_t *result) {
   31|  4.99k|    size_t i = 0;
   32|  4.99k|    uint64_t n = 0, prev = 0;
   33|       |
   34|       |    /* Hex */
   35|  4.99k|    if(size > 2 && str[0] == '0' && (str[1] | 32) == 'x') {
  ------------------
  |  Branch (35:8): [True: 893, False: 4.09k]
  |  Branch (35:20): [True: 89, False: 804]
  |  Branch (35:37): [True: 31, False: 58]
  ------------------
   36|     31|        i = 2;
   37|     92|        for(; i < size; i++) {
  ------------------
  |  Branch (37:15): [True: 80, False: 12]
  ------------------
   38|     80|            uint8_t c = (uint8_t)str[i] | 32;
   39|     80|            if(c >= '0' && c <= '9')
  ------------------
  |  Branch (39:16): [True: 76, False: 4]
  |  Branch (39:28): [True: 32, False: 44]
  ------------------
   40|     32|                c = (uint8_t)(c - '0');
   41|     48|            else if(c >= 'a' && c <='f')
  ------------------
  |  Branch (41:21): [True: 40, False: 8]
  |  Branch (41:33): [True: 29, False: 11]
  ------------------
   42|     29|                c = (uint8_t)(c - 'a' + 10);
   43|     19|            else if(c >= 'A' && c <='F')
  ------------------
  |  Branch (43:21): [True: 12, False: 7]
  |  Branch (43:33): [True: 0, False: 12]
  ------------------
   44|      0|                c = (uint8_t)(c - 'A' + 10);
   45|     19|            else
   46|     19|                break;
   47|     61|            n = (n << 4) | (c & 0xF);
   48|     61|            if(n < prev) /* Check for overflow */
  ------------------
  |  Branch (48:16): [True: 0, False: 61]
  ------------------
   49|      0|                return 0;
   50|     61|            prev = n;
   51|     61|        }
   52|     31|        *result = n;
   53|     31|        return (i > 2) ? i : 0; /* 2 -> No digit was parsed */
  ------------------
  |  Branch (53:16): [True: 27, False: 4]
  ------------------
   54|     31|    }
   55|       |
   56|       |    /* Decimal */
   57|  14.4k|    for(; i < size; i++) {
  ------------------
  |  Branch (57:11): [True: 10.6k, False: 3.72k]
  ------------------
   58|  10.6k|        if(str[i] < '0' || str[i] > '9')
  ------------------
  |  Branch (58:12): [True: 1.03k, False: 9.66k]
  |  Branch (58:28): [True: 205, False: 9.45k]
  ------------------
   59|  1.23k|            break;
   60|       |        /* Fast multiplication: n*10 == (n*8) + (n*2) */
   61|  9.45k|        n = (n << 3) + (n << 1) + (uint8_t)(str[i] - '0');
   62|  9.45k|        if(n < prev) /* Check for overflow */
  ------------------
  |  Branch (62:12): [True: 0, False: 9.45k]
  ------------------
   63|      0|            return 0;
   64|  9.45k|        prev = n;
   65|  9.45k|    }
   66|  4.95k|    *result = n;
   67|  4.95k|    return i;
   68|  4.95k|}
parseInt64:
   71|    893|parseInt64(const char *str, size_t size, int64_t *result) {
   72|       |    /* Negative value? */
   73|    893|    size_t i = 0;
   74|    893|    bool neg = false;
   75|    893|    if(*str == '-' || *str == '+') {
  ------------------
  |  Branch (75:8): [True: 19, False: 874]
  |  Branch (75:23): [True: 1, False: 873]
  ------------------
   76|     20|        neg = (*str == '-');
   77|     20|        i++;
   78|     20|    }
   79|       |
   80|       |    /* Parse as unsigned */
   81|    893|    uint64_t n = 0;
   82|    893|    size_t len = parseUInt64(&str[i], size - i, &n);
   83|    893|    if(len == 0)
  ------------------
  |  Branch (83:8): [True: 28, False: 865]
  ------------------
   84|     28|        return 0;
   85|       |
   86|       |    /* Check for overflow, adjust and return */
   87|    865|    if(!neg) {
  ------------------
  |  Branch (87:8): [True: 846, False: 19]
  ------------------
   88|    846|        if(n > 9223372036854775807UL)
  ------------------
  |  Branch (88:12): [True: 0, False: 846]
  ------------------
   89|      0|            return 0;
   90|    846|        *result = (int64_t)n;
   91|    846|    } else {
   92|     19|        if(n > 9223372036854775808UL)
  ------------------
  |  Branch (92:12): [True: 0, False: 19]
  ------------------
   93|      0|            return 0;
   94|     19|        *result = -(int64_t)n;
   95|     19|    }
   96|    865|    return len + i;
   97|    865|}

UA_STRING:
  220|  13.5k|UA_STRING(char *chars) {
  221|  13.5k|    UA_String s = {0, NULL};
  222|  13.5k|    if(!chars)
  ------------------
  |  Branch (222:8): [True: 0, False: 13.5k]
  ------------------
  223|      0|        return s;
  224|  13.5k|    s.length = strlen(chars);
  225|  13.5k|    s.data = (UA_Byte*)chars;
  226|  13.5k|    return s;
  227|  13.5k|}
UA_String_append:
  299|  13.5k|UA_String_append(UA_String *s, const UA_String s2) {
  300|  13.5k|    if(s2.length == 0)
  ------------------
  |  Branch (300:8): [True: 0, False: 13.5k]
  ------------------
  301|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  302|  13.5k|    UA_Byte *buf = (UA_Byte*)UA_realloc(s->data, s->length + s2.length);
  ------------------
  |  |   21|  13.5k|#define UA_realloc(ptr, size) UA_reallocSingleton(ptr, size)
  ------------------
  303|  13.5k|    if(!buf)
  ------------------
  |  Branch (303:8): [True: 0, False: 13.5k]
  ------------------
  304|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   31|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  305|  13.5k|    memcpy(buf + s->length, s2.data, s2.length);
  306|  13.5k|    s->data = buf;
  307|  13.5k|    s->length += s2.length;
  308|  13.5k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|  13.5k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  309|  13.5k|}
UA_DateTime_parse:
  537|    914|UA_DateTime_parse(UA_DateTime *dst, const UA_String str) {
  538|    914|    if(str.length == 0)
  ------------------
  |  Branch (538:8): [True: 0, False: 914]
  ------------------
  539|      0|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  540|       |
  541|    914|    struct musl_tm dts;
  542|    914|    memset(&dts, 0, sizeof(dts));
  543|       |
  544|       |    /* Parse the year. The ISO standard asks for four digits. But we accept up
  545|       |     * to five with an optional plus or minus in front due to the range of the
  546|       |     * DateTime 64bit integer. But in that case we require the year and the
  547|       |     * month to be separated by a '-'. Otherwise we cannot know where the month
  548|       |     * starts. */
  549|    914|    size_t pos = 0;
  550|    914|    if(str.data[0] == '-' || str.data[0] == '+')
  ------------------
  |  Branch (550:8): [True: 26, False: 888]
  |  Branch (550:30): [True: 8, False: 880]
  ------------------
  551|     34|        pos++;
  552|    914|    UA_Int64 year = 0;
  553|    914|    UA_CHECK(str.length - pos > 5, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    914|    do {                                                                                 \
  |  |  173|    914|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    914|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 21, False: 893]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     21|            EVAL_ON_ERROR;                                                               \
  |  |  175|     21|        }                                                                                \
  |  |  176|    914|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 893]
  |  |  ------------------
  ------------------
  554|    893|    size_t len = parseInt64((char*)&str.data[pos], 5, &year);
  555|    893|    pos += len;
  556|    893|    UA_CHECK(len > 0 && pos < str.length, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    893|    do {                                                                                 \
  |  |  173|    893|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|  1.75k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 28, False: 865]
  |  |  |  |  |  Branch (575:43): [True: 865, False: 28]
  |  |  |  |  |  Branch (575:43): [True: 865, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     28|            EVAL_ON_ERROR;                                                               \
  |  |  175|     28|        }                                                                                \
  |  |  176|    893|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 865]
  |  |  ------------------
  ------------------
  557|    865|    UA_CHECK(len == 4 || str.data[pos] == '-', return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    865|    do {                                                                                 \
  |  |  173|    865|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|  1.55k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 63, False: 802]
  |  |  |  |  |  Branch (575:43): [True: 173, False: 692]
  |  |  |  |  |  Branch (575:43): [True: 629, False: 63]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     63|            EVAL_ON_ERROR;                                                               \
  |  |  175|     63|        }                                                                                \
  |  |  176|    865|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 802]
  |  |  ------------------
  ------------------
  558|    802|    if(str.data[0] == '-')
  ------------------
  |  Branch (558:8): [True: 15, False: 787]
  ------------------
  559|     15|        year = -year;
  560|    802|    dts.tm_year = (UA_Int16)year - 1900;
  561|    802|    if(str.data[pos] == '-')
  ------------------
  |  Branch (561:8): [True: 778, False: 24]
  ------------------
  562|    778|        pos++;
  563|       |
  564|       |    /* Parse the month */
  565|    802|    UA_UInt64 month = 0;
  566|    802|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    802|    do {                                                                                 \
  |  |  173|    802|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    802|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 23, False: 779]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     23|            EVAL_ON_ERROR;                                                               \
  |  |  175|     23|        }                                                                                \
  |  |  176|    802|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 779]
  |  |  ------------------
  ------------------
  567|    779|    len = parseUInt64((char*)&str.data[pos], 2, &month);
  568|    779|    pos += len;
  569|    779|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    779|    do {                                                                                 \
  |  |  173|    779|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    779|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 2, False: 777]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      2|            EVAL_ON_ERROR;                                                               \
  |  |  175|      2|        }                                                                                \
  |  |  176|    779|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 777]
  |  |  ------------------
  ------------------
  570|    777|    dts.tm_mon = (UA_UInt16)month - 1;
  571|    777|    if(str.data[pos] == '-')
  ------------------
  |  Branch (571:8): [True: 13, False: 764]
  ------------------
  572|     13|        pos++;
  573|       |
  574|       |    /* Parse the day and check the T between date and time */
  575|    777|    UA_UInt64 day = 0;
  576|    777|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    777|    do {                                                                                 \
  |  |  173|    777|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    777|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 16, False: 761]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     16|            EVAL_ON_ERROR;                                                               \
  |  |  175|     16|        }                                                                                \
  |  |  176|    777|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 761]
  |  |  ------------------
  ------------------
  577|    761|    len = parseUInt64((char*)&str.data[pos], 2, &day);
  578|    761|    pos += len;
  579|    761|    UA_CHECK(len == 2 || str.data[pos] != 'T',
  ------------------
  |  |  172|    761|    do {                                                                                 \
  |  |  173|    761|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|  1.35k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 1, False: 760]
  |  |  |  |  |  Branch (575:43): [True: 169, False: 592]
  |  |  |  |  |  Branch (575:43): [True: 591, False: 1]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      1|            EVAL_ON_ERROR;                                                               \
  |  |  175|      1|        }                                                                                \
  |  |  176|    761|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 760]
  |  |  ------------------
  ------------------
  580|    761|             return UA_STATUSCODE_BADDECODINGERROR);
  581|    760|    dts.tm_mday = (UA_UInt16)day;
  582|    760|    pos++;
  583|       |
  584|       |    /* Parse the hour */
  585|    760|    UA_UInt64 hour = 0;
  586|    760|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    760|    do {                                                                                 \
  |  |  173|    760|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    760|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 11, False: 749]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     11|            EVAL_ON_ERROR;                                                               \
  |  |  175|     11|        }                                                                                \
  |  |  176|    760|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 749]
  |  |  ------------------
  ------------------
  587|    749|    len = parseUInt64((char*)&str.data[pos], 2, &hour);
  588|    749|    pos += len;
  589|    749|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    749|    do {                                                                                 \
  |  |  173|    749|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    749|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 4, False: 745]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      4|            EVAL_ON_ERROR;                                                               \
  |  |  175|      4|        }                                                                                \
  |  |  176|    749|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 745]
  |  |  ------------------
  ------------------
  590|    745|    dts.tm_hour = (UA_UInt16)hour;
  591|    745|    if(str.data[pos] == ':')
  ------------------
  |  Branch (591:8): [True: 1, False: 744]
  ------------------
  592|      1|        pos++;
  593|       |
  594|       |    /* Parse the minute */
  595|    745|    UA_UInt64 min = 0;
  596|    745|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    745|    do {                                                                                 \
  |  |  173|    745|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    745|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 3, False: 742]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      3|            EVAL_ON_ERROR;                                                               \
  |  |  175|      3|        }                                                                                \
  |  |  176|    745|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 742]
  |  |  ------------------
  ------------------
  597|    742|    len = parseUInt64((char*)&str.data[pos], 2, &min);
  598|    742|    pos += len;
  599|    742|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    742|    do {                                                                                 \
  |  |  173|    742|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    742|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 4, False: 738]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      4|            EVAL_ON_ERROR;                                                               \
  |  |  175|      4|        }                                                                                \
  |  |  176|    742|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 738]
  |  |  ------------------
  ------------------
  600|    738|    dts.tm_min = (UA_UInt16)min;
  601|    738|    if(str.data[pos] == ':')
  ------------------
  |  Branch (601:8): [True: 1, False: 737]
  ------------------
  602|      1|        pos++;
  603|       |
  604|       |    /* Parse the second */
  605|    738|    UA_UInt64 sec = 0;
  606|    738|    UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    738|    do {                                                                                 \
  |  |  173|    738|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    738|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 11, False: 727]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     11|            EVAL_ON_ERROR;                                                               \
  |  |  175|     11|        }                                                                                \
  |  |  176|    738|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 727]
  |  |  ------------------
  ------------------
  607|    727|    len = parseUInt64((char*)&str.data[pos], 2, &sec);
  608|    727|    pos += len;
  609|    727|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    727|    do {                                                                                 \
  |  |  173|    727|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    727|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 10, False: 717]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     10|            EVAL_ON_ERROR;                                                               \
  |  |  175|     10|        }                                                                                \
  |  |  176|    727|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 717]
  |  |  ------------------
  ------------------
  610|    717|    dts.tm_sec = (UA_UInt16)sec;
  611|       |
  612|       |    /* Compute the seconds since the Unix epoch */
  613|    717|    long long sinceunix = musl_tm_to_secs(&dts);
  614|       |
  615|       |    /* Are we within the range that can be represented? */
  616|    717|    long long sinceunix_min =
  617|    717|        (long long)(UA_INT64_MIN / UA_DATETIME_SEC) -
  ------------------
  |  |  119|    717|#define UA_INT64_MIN ((int64_t)-UA_INT64_MAX-1LL)
  |  |  ------------------
  |  |  |  |  118|    717|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  |  |  ------------------
  ------------------
                      (long long)(UA_INT64_MIN / UA_DATETIME_SEC) -
  ------------------
  |  |  285|    717|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    717|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    717|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  618|    717|        (long long)(UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC) -
  ------------------
  |  |  327|    717|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  285|    717|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    717|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    717|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (long long)(UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC) -
  ------------------
  |  |  285|    717|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    717|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    717|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  619|    717|        (long long)1; /* manual correction due to rounding */
  620|    717|    long long sinceunix_max = (long long)
  621|    717|        ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  118|    717|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  ------------------
                      ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  327|    717|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  285|    717|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    717|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    717|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  285|    717|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    717|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    717|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  622|    717|    if(sinceunix < sinceunix_min || sinceunix > sinceunix_max)
  ------------------
  |  Branch (622:8): [True: 44, False: 673]
  |  Branch (622:37): [True: 5, False: 668]
  ------------------
  623|     49|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|     49|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  624|       |
  625|       |    /* Convert to DateTime. Add or subtract one extra second here to prevent
  626|       |     * underflow/overflow. This is reverted once the fractional part has been
  627|       |     * added. */
  628|    668|    sinceunix -= (sinceunix > 0) ? 1 : -1;
  ------------------
  |  Branch (628:18): [True: 206, False: 462]
  ------------------
  629|    668|    UA_DateTime dt = (UA_DateTime)
  630|    668|        (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  327|    668|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  285|    668|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    668|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    668|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  285|    668|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    668|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    668|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  285|    668|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    668|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    668|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  631|       |
  632|       |    /* Parse the fraction of the second if defined */
  633|    668|    UA_CHECK(pos < str.length, goto finish);
  ------------------
  |  |  172|    668|    do {                                                                                 \
  |  |  173|    668|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    668|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 333, False: 335]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|    333|            EVAL_ON_ERROR;                                                               \
  |  |  175|    333|        }                                                                                \
  |  |  176|    668|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 335]
  |  |  ------------------
  ------------------
  634|    335|    if(str.data[pos] == ',' || str.data[pos] == '.') {
  ------------------
  |  Branch (634:8): [True: 105, False: 230]
  |  Branch (634:32): [True: 47, False: 183]
  ------------------
  635|    152|        pos++;
  636|    152|        double frac = 0.0;
  637|    152|        double denom = 0.1;
  638|  85.1k|        while(pos < str.length && str.data[pos] >= '0' && str.data[pos] <= '9') {
  ------------------
  |  Branch (638:15): [True: 85.1k, False: 69]
  |  Branch (638:35): [True: 85.0k, False: 61]
  |  Branch (638:59): [True: 85.0k, False: 22]
  ------------------
  639|  85.0k|            frac += denom * (str.data[pos] - '0');
  640|  85.0k|            denom *= 0.1;
  641|  85.0k|            pos++;
  642|  85.0k|        }
  643|    152|        frac += 0.00000005; /* Correct rounding when converting to integer */
  644|    152|        dt += (UA_DateTime)(frac * UA_DATETIME_SEC);
  ------------------
  |  |  285|    152|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    152|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    152|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  645|    152|    }
  646|       |
  647|       |    /* Time zone handling */
  648|    335|    UA_CHECK(pos < str.length, goto finish);
  ------------------
  |  |  172|    335|    do {                                                                                 \
  |  |  173|    335|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    335|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 69, False: 266]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     69|            EVAL_ON_ERROR;                                                               \
  |  |  175|     69|        }                                                                                \
  |  |  176|    335|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 266]
  |  |  ------------------
  ------------------
  649|    266|    if(str.data[pos] == 'Z') {
  ------------------
  |  Branch (649:8): [True: 6, False: 260]
  ------------------
  650|      6|        pos++;
  651|    260|    } else if(str.data[pos] == '+' || str.data[pos] == '-') {
  ------------------
  |  Branch (651:15): [True: 73, False: 187]
  |  Branch (651:39): [True: 108, False: 79]
  ------------------
  652|    181|        UA_UInt64 tzHour = 0, tzMin = 0;
  653|    181|        UA_Int64 offsetSeconds = 0;
  654|    181|        UA_Byte tzSign = str.data[pos++];
  655|       |
  656|    181|        UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    181|    do {                                                                                 \
  |  |  173|    181|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    181|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 3, False: 178]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      3|            EVAL_ON_ERROR;                                                               \
  |  |  175|      3|        }                                                                                \
  |  |  176|    181|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 178]
  |  |  ------------------
  ------------------
  657|    178|        len = parseUInt64((char*)&str.data[pos], 2, &tzHour);
  658|    178|        pos += len;
  659|    178|        UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    178|    do {                                                                                 \
  |  |  173|    178|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    178|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 4, False: 174]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      4|            EVAL_ON_ERROR;                                                               \
  |  |  175|      4|        }                                                                                \
  |  |  176|    178|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 174]
  |  |  ------------------
  ------------------
  660|       |
  661|    174|        UA_CHECK(str.length > pos, goto finish); /* Allow missing tz minutes */
  ------------------
  |  |  172|    174|    do {                                                                                 \
  |  |  173|    174|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    174|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 1, False: 173]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      1|            EVAL_ON_ERROR;                                                               \
  |  |  175|      1|        }                                                                                \
  |  |  176|    174|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 173]
  |  |  ------------------
  ------------------
  662|    173|        if(str.data[pos] == ':')
  ------------------
  |  Branch (662:12): [True: 2, False: 171]
  ------------------
  663|      2|            pos++;
  664|       |
  665|    173|        UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    173|    do {                                                                                 \
  |  |  173|    173|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    173|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 12, False: 161]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     12|            EVAL_ON_ERROR;                                                               \
  |  |  175|     12|        }                                                                                \
  |  |  176|    173|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 161]
  |  |  ------------------
  ------------------
  666|    161|        len = parseUInt64((char*)&str.data[pos], 2, &tzMin);
  667|    161|        pos += len;
  668|    161|        UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    161|    do {                                                                                 \
  |  |  173|    161|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  575|    161|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (575:25): [True: 35, False: 126]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     35|            EVAL_ON_ERROR;                                                               \
  |  |  175|     35|        }                                                                                \
  |  |  176|    161|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 126]
  |  |  ------------------
  ------------------
  669|       |
  670|    126|        offsetSeconds = (tzHour * 3600) + (tzMin * 60);
  671|    126|        if(tzSign == '-')
  ------------------
  |  Branch (671:12): [True: 71, False: 55]
  ------------------
  672|     71|            offsetSeconds = -offsetSeconds;
  673|    126|        dt -= (UA_DateTime)(offsetSeconds * UA_DATETIME_SEC);
  ------------------
  |  |  285|    126|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    126|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    126|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  674|    126|    } else {
  675|     79|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|     79|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  676|     79|    }
  677|       |
  678|    535| finish:
  679|       |    /* Remove the underflow/overflow protection (see above) */
  680|    535|    if(sinceunix > 0) {
  ------------------
  |  Branch (680:8): [True: 197, False: 338]
  ------------------
  681|    197|        if(dt > UA_INT64_MAX - UA_DATETIME_SEC)
  ------------------
  |  |  118|    197|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  ------------------
                      if(dt > UA_INT64_MAX - UA_DATETIME_SEC)
  ------------------
  |  |  285|    197|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    197|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    197|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (681:12): [True: 3, False: 194]
  ------------------
  682|      3|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|      3|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  683|    194|        dt += UA_DATETIME_SEC;
  ------------------
  |  |  285|    194|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    194|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    194|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  684|    338|    } else {
  685|    338|        if(dt < UA_INT64_MIN + UA_DATETIME_SEC)
  ------------------
  |  |  119|    338|#define UA_INT64_MIN ((int64_t)-UA_INT64_MAX-1LL)
  |  |  ------------------
  |  |  |  |  118|    338|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  |  |  ------------------
  ------------------
                      if(dt < UA_INT64_MIN + UA_DATETIME_SEC)
  ------------------
  |  |  285|    338|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    338|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    338|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (685:12): [True: 17, False: 321]
  ------------------
  686|     17|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|     17|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  687|    321|        dt -= UA_DATETIME_SEC;
  ------------------
  |  |  285|    321|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    321|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    321|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  688|    321|    }
  689|       |
  690|       |    /* We must be at the end of the string */
  691|    515|    if(pos != str.length)
  ------------------
  |  Branch (691:8): [True: 97, False: 418]
  ------------------
  692|     97|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|     97|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  693|       |
  694|    418|    *dst = dt;
  695|    418|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|    418|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  696|    515|}
UA_Guid_to_hex:
  715|    519|UA_Guid_to_hex(const UA_Guid *guid, u8* out, UA_Boolean lower) {
  716|    519|    const u8 *hexmap = (lower) ? hexmapLower : hexmapUpper;
  ------------------
  |  Branch (716:24): [True: 519, False: 0]
  ------------------
  717|    519|    size_t i = 0, j = 28;
  718|  4.67k|    for(; i<8;i++,j-=4)         /* pos 0-7, 4byte, (a) */
  ------------------
  |  Branch (718:11): [True: 4.15k, False: 519]
  ------------------
  719|  4.15k|        out[i] = hexmap[(guid->data1 >> j) & 0x0Fu];
  720|    519|    out[i++] = '-';             /* pos 8 */
  721|  2.59k|    for(j=12; i<13;i++,j-=4)    /* pos 9-12, 2byte, (b) */
  ------------------
  |  Branch (721:15): [True: 2.07k, False: 519]
  ------------------
  722|  2.07k|        out[i] = hexmap[(uint16_t)(guid->data2 >> j) & 0x0Fu];
  723|    519|    out[i++] = '-';             /* pos 13 */
  724|  2.59k|    for(j=12; i<18;i++,j-=4)    /* pos 14-17, 2byte (c) */
  ------------------
  |  Branch (724:15): [True: 2.07k, False: 519]
  ------------------
  725|  2.07k|        out[i] = hexmap[(uint16_t)(guid->data3 >> j) & 0x0Fu];
  726|    519|    out[i++] = '-';              /* pos 18 */
  727|  1.55k|    for(j=0;i<23;i+=2,j++) {     /* pos 19-22, 2byte (d) */
  ------------------
  |  Branch (727:13): [True: 1.03k, False: 519]
  ------------------
  728|  1.03k|        out[i] = hexmap[(guid->data4[j] & 0xF0u) >> 4u];
  729|  1.03k|        out[i+1] = hexmap[guid->data4[j] & 0x0Fu];
  730|  1.03k|    }
  731|    519|    out[i++] = '-';              /* pos 23 */
  732|  3.63k|    for(j=2; i<36;i+=2,j++) {    /* pos 24-35, 6byte (e) */
  ------------------
  |  Branch (732:14): [True: 3.11k, False: 519]
  ------------------
  733|  3.11k|        out[i] = hexmap[(guid->data4[j] & 0xF0u) >> 4u];
  734|  3.11k|        out[i+1] = hexmap[guid->data4[j] & 0x0Fu];
  735|  3.11k|    }
  736|    519|}
UA_ByteString_allocBuffer:
  763|  4.61k|UA_ByteString_allocBuffer(UA_ByteString *bs, size_t length) {
  764|  4.61k|    UA_ByteString_init(bs);
  765|  4.61k|    if(length == 0) {
  ------------------
  |  Branch (765:8): [True: 0, False: 4.61k]
  ------------------
  766|      0|        bs->data = (u8*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  755|      0|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
  767|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  768|      0|    }
  769|  4.61k|    bs->data = (u8*)UA_calloc(1,length);
  ------------------
  |  |   20|  4.61k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
  770|  4.61k|    if(UA_UNLIKELY(!bs->data))
  ------------------
  |  |  575|  4.61k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  ------------------
  |  |  |  Branch (575:25): [True: 0, False: 4.61k]
  |  |  ------------------
  ------------------
  771|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   31|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  772|  4.61k|    bs->length = length;
  773|  4.61k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|  4.61k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  774|  4.61k|}
UA_NODEID_NUMERIC:
  836|  8.80k|UA_NODEID_NUMERIC(UA_UInt16 nsIndex, UA_UInt32 identifier) {
  837|  8.80k|    UA_NodeId id;
  838|  8.80k|    memset(&id, 0, sizeof(UA_NodeId));
  839|  8.80k|    id.namespaceIndex = nsIndex;
  840|  8.80k|    id.identifierType = UA_NODEIDTYPE_NUMERIC;
  841|  8.80k|    id.identifier.numeric = identifier;
  842|  8.80k|    return id;
  843|  8.80k|}
nodeId_printEscape:
 1030|  4.00k|                   const UA_NamespaceMapping *nsMapping, UA_Escaping idEsc) {
 1031|       |    /* Try to map the NamespaceIndex to the Uri */
 1032|  4.00k|    UA_String nsUri = UA_STRING_NULL;
 1033|  4.00k|    if(id->namespaceIndex > 0 && nsMapping)
  ------------------
  |  Branch (1033:8): [True: 1.18k, False: 2.81k]
  |  Branch (1033:34): [True: 0, False: 1.18k]
  ------------------
 1034|      0|        UA_NamespaceMapping_index2Uri(nsMapping, id->namespaceIndex, &nsUri);
 1035|       |
 1036|       |    /* Compute the string length and print numerical identifiers. */
 1037|  4.00k|    u8 nsStr[7];
 1038|  4.00k|    u8 numIdStr[12];
 1039|  4.00k|    size_t idLen = nodeIdSize(id, nsStr, numIdStr, nsUri, idEsc);
 1040|  4.00k|    if(idLen == 0)
  ------------------
  |  Branch (1040:8): [True: 0, False: 4.00k]
  ------------------
 1041|      0|        return UA_STATUSCODE_BADINTERNALERROR;
  ------------------
  |  |   28|      0|#define UA_STATUSCODE_BADINTERNALERROR ((UA_StatusCode) 0x80020000)
  ------------------
 1042|       |
 1043|       |    /* Allocate memory if required */
 1044|  4.00k|    if(output->length == 0) {
  ------------------
  |  Branch (1044:8): [True: 665, False: 3.33k]
  ------------------
 1045|    665|        UA_StatusCode res = UA_ByteString_allocBuffer((UA_ByteString*)output, idLen);
 1046|    665|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   16|    665|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1046:12): [True: 0, False: 665]
  ------------------
 1047|      0|            return res;
 1048|  3.33k|    } else {
 1049|  3.33k|        if(output->length < idLen)
  ------------------
  |  Branch (1049:12): [True: 665, False: 2.67k]
  ------------------
 1050|    665|            return UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED;
  ------------------
  |  |   46|    665|#define UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED ((UA_StatusCode) 0x80080000)
  ------------------
 1051|  2.67k|        output->length = idLen;
 1052|  2.67k|    }
 1053|       |
 1054|       |    /* Print the NodeId */
 1055|  3.33k|    u8 *pos = printNodeIdBody(id, nsUri, nsStr, numIdStr, output->data, nsMapping, idEsc);
 1056|  3.33k|    output->length = (size_t)(pos - output->data);
 1057|  3.33k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|  3.33k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1058|  4.00k|}
UA_NodeId_printEx:
 1062|  4.00k|                  const UA_NamespaceMapping *nsMapping) {
 1063|  4.00k|    return nodeId_printEscape(id, output, nsMapping, UA_ESCAPING_NONE);
 1064|  4.00k|}
UA_NodeId_print:
 1067|  4.00k|UA_NodeId_print(const UA_NodeId *id, UA_String *output) {
 1068|       |    return UA_NodeId_printEx(id, output, NULL);
 1069|  4.00k|}
UA_copy:
 2093|  18.1k|UA_copy(const void *src, void *dst, const UA_DataType *type) {
 2094|  18.1k|    memset(dst, 0, type->memSize); /* init */
 2095|  18.1k|    UA_StatusCode retval = copyJumpTable[type->typeKind](src, dst, type);
 2096|  18.1k|    if(retval != UA_STATUSCODE_GOOD)
  ------------------
  |  |   16|  18.1k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2096:8): [True: 0, False: 18.1k]
  ------------------
 2097|      0|        UA_clear(dst, type);
 2098|  18.1k|    return retval;
 2099|  18.1k|}
UA_clear:
 2196|  26.9k|UA_clear(void *p, const UA_DataType *type) {
 2197|  26.9k|    clearJumpTable[type->typeKind](p, type);
 2198|  26.9k|    memset(p, 0, type->memSize); /* init */
 2199|  26.9k|}
UA_order:
 2650|  26.3k|UA_Order UA_order(const void *p1, const void *p2, const UA_DataType *type) {
 2651|  26.3k|    return orderJumpTable[type->typeKind](p1, p2, type);
 2652|  26.3k|}
UA_Array_copy:
 2674|  18.1k|              void **dst, const UA_DataType *type) {
 2675|  18.1k|    if(size == 0) {
  ------------------
  |  Branch (2675:8): [True: 8.88k, False: 9.23k]
  ------------------
 2676|  8.88k|        if(src == NULL)
  ------------------
  |  Branch (2676:12): [True: 0, False: 8.88k]
  ------------------
 2677|      0|            *dst = NULL;
 2678|  8.88k|        else
 2679|  8.88k|            *dst= UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  755|  8.88k|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
 2680|  8.88k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|  8.88k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2681|  8.88k|    }
 2682|       |
 2683|       |    /* Check the array consistency -- defensive programming in case the user
 2684|       |     * manually created an inconsistent array */
 2685|  9.23k|    if(UA_UNLIKELY(!type || !src))
  ------------------
  |  |  575|  18.4k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  ------------------
  |  |  |  Branch (575:25): [True: 0, False: 9.23k]
  |  |  |  Branch (575:43): [True: 0, False: 9.23k]
  |  |  |  Branch (575:43): [True: 0, False: 9.23k]
  |  |  ------------------
  ------------------
 2686|      0|        return UA_STATUSCODE_BADINTERNALERROR;
  ------------------
  |  |   28|      0|#define UA_STATUSCODE_BADINTERNALERROR ((UA_StatusCode) 0x80020000)
  ------------------
 2687|       |
 2688|       |    /* calloc, so we don't have to check retval in every iteration of copying */
 2689|  9.23k|    *dst = UA_calloc(size, type->memSize);
  ------------------
  |  |   20|  9.23k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
 2690|  9.23k|    if(!*dst)
  ------------------
  |  Branch (2690:8): [True: 0, False: 9.23k]
  ------------------
 2691|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   31|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2692|       |
 2693|  9.23k|    if(type->pointerFree) {
  ------------------
  |  Branch (2693:8): [True: 9.23k, False: 0]
  ------------------
 2694|  9.23k|        memcpy(*dst, src, type->memSize * size);
 2695|  9.23k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|  9.23k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2696|  9.23k|    }
 2697|       |
 2698|      0|    uintptr_t ptrs = (uintptr_t)src;
 2699|      0|    uintptr_t ptrd = (uintptr_t)*dst;
 2700|      0|    UA_StatusCode retval = UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2701|      0|    for(size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (2701:23): [True: 0, False: 0]
  ------------------
 2702|      0|        retval |= UA_copy((void*)ptrs, (void*)ptrd, type);
 2703|      0|        ptrs += type->memSize;
 2704|      0|        ptrd += type->memSize;
 2705|      0|    }
 2706|      0|    if(retval != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2706:8): [True: 0, False: 0]
  ------------------
 2707|      0|        UA_Array_delete(*dst, size, type);
 2708|       |        *dst = NULL;
 2709|      0|    }
 2710|      0|    return retval;
 2711|  9.23k|}
UA_Array_delete:
 2802|  34.0k|UA_Array_delete(void *p, size_t size, const UA_DataType *type) {
 2803|  34.0k|    if(!type->pointerFree) {
  ------------------
  |  Branch (2803:8): [True: 2.97k, False: 31.0k]
  ------------------
 2804|  2.97k|        uintptr_t ptr = (uintptr_t)p;
 2805|  17.7k|        for(size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (2805:27): [True: 14.8k, False: 2.97k]
  ------------------
 2806|  14.8k|            UA_clear((void*)ptr, type);
 2807|  14.8k|            ptr += type->memSize;
 2808|  14.8k|        }
 2809|  2.97k|    }
 2810|  34.0k|    UA_free((void*)((uintptr_t)p & ~(uintptr_t)UA_EMPTY_ARRAY_SENTINEL));
  ------------------
  |  |   19|  34.0k|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 2811|  34.0k|}
ua_types.c:nodeIdSize:
  929|  4.00k|           UA_Escaping idEsc) {
  930|       |    /* Namespace length */
  931|  4.00k|    size_t len = 0;
  932|  4.00k|    if(nsUri.data != NULL) {
  ------------------
  |  Branch (932:8): [True: 0, False: 4.00k]
  ------------------
  933|      0|        len += 5; /* nsu=; */
  934|      0|        len += UA_String_escapedSize(nsUri, UA_ESCAPING_PERCENT);
  935|  4.00k|    } else if(id->namespaceIndex > 0) {
  ------------------
  |  Branch (935:15): [True: 1.18k, False: 2.81k]
  ------------------
  936|  1.18k|        len += 4; /* ns=; */
  937|  1.18k|        size_t nsStrSize = itoaUnsigned(id->namespaceIndex, (char*)nsStr, 10);
  938|  1.18k|        nsStr[nsStrSize] = 0;
  939|  1.18k|        len += nsStrSize;
  940|  1.18k|    }
  941|       |
  942|  4.00k|    len += 2; /* ?= */
  943|       |
  944|  4.00k|    switch (id->identifierType) {
  945|    538|    case UA_NODEIDTYPE_NUMERIC: {
  ------------------
  |  Branch (945:5): [True: 538, False: 3.46k]
  ------------------
  946|    538|        size_t numIdStrSize = itoaUnsigned(id->identifier.numeric, (char*)numIdStr, 10);
  947|    538|        numIdStr[numIdStrSize] = 0;
  948|    538|        len += numIdStrSize;
  949|    538|        break;
  950|      0|    }
  951|  2.27k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (951:5): [True: 2.27k, False: 1.72k]
  ------------------
  952|  2.27k|        len += UA_String_escapedSize(id->identifier.string, idEsc);
  953|  2.27k|        break;
  954|    519|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (954:5): [True: 519, False: 3.48k]
  ------------------
  955|    519|        len += 36;
  956|    519|        break;
  957|    665|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (957:5): [True: 665, False: 3.33k]
  ------------------
  958|    665|        len += 4 * ((id->identifier.byteString.length + 2) / 3);
  959|    665|        break;
  960|      0|    default:
  ------------------
  |  Branch (960:5): [True: 0, False: 4.00k]
  ------------------
  961|      0|        len = 0;
  962|  4.00k|    }
  963|  4.00k|    return len;
  964|  4.00k|}
ua_types.c:printNodeIdBody:
  968|  3.33k|                const UA_NamespaceMapping *nsMapping, UA_Escaping idEsc) {
  969|  3.33k|    size_t len;
  970|       |
  971|       |    /* Encode the namespace */
  972|  3.33k|    if(nsUri.data != NULL) {
  ------------------
  |  Branch (972:8): [True: 0, False: 3.33k]
  ------------------
  973|      0|        memcpy(pos, "nsu=", 4);
  974|      0|        pos += 4;
  975|      0|        pos += UA_String_escapeInsert(pos, nsUri, UA_ESCAPING_PERCENT);
  976|      0|        *pos++ = ';';
  977|  3.33k|    } else if(id->namespaceIndex > 0) {
  ------------------
  |  Branch (977:15): [True: 748, False: 2.58k]
  ------------------
  978|    748|        memcpy(pos, "ns=", 3);
  979|    748|        pos += 3;
  980|    748|        len = strlen((char*)nsStr);
  981|    748|        memcpy(pos, nsStr, len);
  982|    748|        pos += len;
  983|    748|        *pos++ = ';';
  984|    748|    }
  985|       |
  986|       |    /* Encode the identifier */
  987|  3.33k|    switch(id->identifierType) {
  ------------------
  |  Branch (987:12): [True: 3.33k, False: 0]
  ------------------
  988|    538|    case UA_NODEIDTYPE_NUMERIC:
  ------------------
  |  Branch (988:5): [True: 538, False: 2.79k]
  ------------------
  989|    538|        memcpy(pos, "i=", 2);
  990|    538|        pos += 2;
  991|    538|        len = strlen((char*)numIdStr);
  992|    538|        memcpy(pos, numIdStr, len);
  993|    538|        pos += len;
  994|    538|        break;
  995|  1.61k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (995:5): [True: 1.61k, False: 1.71k]
  ------------------
  996|  1.61k|        memcpy(pos, "s=", 2);
  997|  1.61k|        pos += 2;
  998|  1.61k|        pos += UA_String_escapeInsert(pos, id->identifier.string, idEsc);
  999|  1.61k|        break;
 1000|    519|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (1000:5): [True: 519, False: 2.81k]
  ------------------
 1001|    519|        memcpy(pos, "g=", 2);
 1002|    519|        pos += 2;
 1003|    519|        UA_Guid_to_hex(&id->identifier.guid, pos, true);
 1004|    519|        pos += 36;
 1005|    519|        break;
 1006|    661|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (1006:5): [True: 661, False: 2.67k]
  ------------------
 1007|    661|        memcpy(pos, "b=", 2);
 1008|    661|        pos += 2;
 1009|       |        /* Use base64url encoding for percent-escaping.
 1010|       |         * Replace +/ with -_ and remove the padding. */
 1011|    661|        u8 *bpos = pos;
 1012|    661|        pos += UA_base64_buf(id->identifier.byteString.data,
 1013|    661|                             id->identifier.byteString.length, pos);
 1014|    661|        if(idEsc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (1014:12): [True: 0, False: 661]
  ------------------
 1015|    661|           idEsc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (1015:12): [True: 0, False: 661]
  ------------------
 1016|      0|            while(pos > bpos && pos[-1] == '=')
  ------------------
  |  Branch (1016:19): [True: 0, False: 0]
  |  Branch (1016:33): [True: 0, False: 0]
  ------------------
 1017|      0|                pos--;
 1018|      0|            for(; bpos < pos; bpos++) {
  ------------------
  |  Branch (1018:19): [True: 0, False: 0]
  ------------------
 1019|      0|                if(*bpos == '+') *bpos = '-';
  ------------------
  |  Branch (1019:20): [True: 0, False: 0]
  ------------------
 1020|      0|                else if(*bpos == '/') *bpos = '_';
  ------------------
  |  Branch (1020:25): [True: 0, False: 0]
  ------------------
 1021|      0|            }
 1022|      0|        }
 1023|    661|        break;
 1024|  3.33k|    }
 1025|  3.33k|    return pos;
 1026|  3.33k|}
ua_types.c:String_copy:
  281|  18.1k|String_copy(const void *src, void *dst, const UA_DataType *_) {
  282|  18.1k|    const UA_String *srcS = (const UA_String*)src;
  283|  18.1k|    UA_String *dstS = (UA_String *)dst;
  284|  18.1k|    UA_StatusCode res =
  285|  18.1k|        UA_Array_copy(srcS->data, srcS->length, (void**)&dstS->data,
  286|  18.1k|                      &UA_TYPES[UA_TYPES_BYTE]);
  ------------------
  |  |   89|  18.1k|#define UA_TYPES_BYTE 2
  ------------------
  287|  18.1k|    if(res == UA_STATUSCODE_GOOD)
  ------------------
  |  |   16|  18.1k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (287:8): [True: 18.1k, False: 0]
  ------------------
  288|  18.1k|        dstS->length = srcS->length;
  289|  18.1k|    return res;
  290|  18.1k|}
ua_types.c:nopClear:
 2158|  30.5k|static void nopClear(void *p, const UA_DataType *type) { }
ua_types.c:String_clear:
  293|  31.0k|String_clear(void *p, const UA_DataType *_) {
  294|  31.0k|    UA_String *s = (UA_String*)p;
  295|  31.0k|    UA_Array_delete(s->data, s->length, &UA_TYPES[UA_TYPES_BYTE]);
  ------------------
  |  |   89|  31.0k|#define UA_TYPES_BYTE 2
  ------------------
  296|  31.0k|}
ua_types.c:NodeId_clear:
  778|  17.7k|NodeId_clear(void *p, const UA_DataType *_) {
  779|  17.7k|    UA_NodeId *id = (UA_NodeId*)p;
  780|  17.7k|    switch(id->identifierType) {
  781|  3.10k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (781:5): [True: 3.10k, False: 14.6k]
  ------------------
  782|  4.33k|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (782:5): [True: 1.23k, False: 16.4k]
  ------------------
  783|  4.33k|        String_clear(&id->identifier.string, NULL);
  784|  4.33k|        break;
  785|  13.3k|    default: break;
  ------------------
  |  Branch (785:5): [True: 13.3k, False: 4.33k]
  ------------------
  786|  17.7k|    }
  787|  17.7k|}
ua_types.c:ExpandedNodeId_clear:
 1079|    996|ExpandedNodeId_clear(void *p, const UA_DataType *_) {
 1080|    996|    UA_ExpandedNodeId *id = (UA_ExpandedNodeId*)p;
 1081|    996|    NodeId_clear(&id->nodeId, NULL);
 1082|       |    String_clear(&id->namespaceUri, NULL);
 1083|    996|}
ua_types.c:QualifiedName_clear:
  397|  17.1k|QualifiedName_clear(void *p, const UA_DataType *_) {
  398|  17.1k|    UA_QualifiedName *qn = (UA_QualifiedName*)p;
  399|       |    String_clear(&qn->name, NULL);
  400|  17.1k|}
ua_types.c:clearStructure:
 2102|  18.6k|clearStructure(void *p, const UA_DataType *type) {
 2103|  18.6k|    uintptr_t ptr = (uintptr_t)p;
 2104|  87.4k|    for(size_t i = 0; i < type->membersSize; ++i) {
  ------------------
  |  Branch (2104:23): [True: 68.8k, False: 18.6k]
  ------------------
 2105|  68.8k|        const UA_DataTypeMember *m = &type->members[i];
 2106|  68.8k|        const UA_DataType *mt = m->memberType;
 2107|  68.8k|        ptr += m->padding;
 2108|  68.8k|        if(!m->isOptional) {
  ------------------
  |  Branch (2108:12): [True: 68.8k, False: 0]
  ------------------
 2109|  68.8k|            if(!m->isArray) {
  ------------------
  |  Branch (2109:16): [True: 65.8k, False: 2.97k]
  ------------------
 2110|  65.8k|                clearJumpTable[mt->typeKind]((void*)ptr, mt);
 2111|  65.8k|                ptr += mt->memSize;
 2112|  65.8k|            } else {
 2113|  2.97k|                size_t length = *(size_t*)ptr;
 2114|  2.97k|                ptr += sizeof(size_t);
 2115|  2.97k|                UA_Array_delete(*(void**)ptr, length, mt);
 2116|  2.97k|                ptr += sizeof(void*);
 2117|  2.97k|            }
 2118|  68.8k|        } else { /* field is optional */
 2119|      0|            if(!m->isArray) {
  ------------------
  |  Branch (2119:16): [True: 0, False: 0]
  ------------------
 2120|       |                /* optional scalar field is contained */
 2121|      0|                if((*(void *const *)ptr != NULL))
  ------------------
  |  Branch (2121:20): [True: 0, False: 0]
  ------------------
 2122|      0|                    UA_Array_delete(*(void **)ptr, 1, mt);
 2123|      0|                ptr += sizeof(void *);
 2124|      0|            } else {
 2125|       |                /* optional array field is contained */
 2126|      0|                if((*(void *const *)(ptr + sizeof(size_t)) != NULL)) {
  ------------------
  |  Branch (2126:20): [True: 0, False: 0]
  ------------------
 2127|      0|                    size_t length = *(size_t *)ptr;
 2128|      0|                    ptr += sizeof(size_t);
 2129|      0|                    UA_Array_delete(*(void **)ptr, length, mt);
 2130|      0|                    ptr += sizeof(void *);
 2131|      0|                } else { /* optional array field not contained */
 2132|      0|                    ptr += sizeof(size_t);
 2133|      0|                    ptr += sizeof(void *);
 2134|      0|                }
 2135|      0|            }
 2136|      0|        }
 2137|  68.8k|    }
 2138|  18.6k|}
ua_types.c:nodeIdOrder:
 2280|  15.1k|nodeIdOrder(const UA_NodeId *p1, const UA_NodeId *p2, const UA_DataType *_) {
 2281|       |    /* Compare namespaceIndex */
 2282|  15.1k|    if(p1->namespaceIndex != p2->namespaceIndex)
  ------------------
  |  Branch (2282:8): [True: 1.51k, False: 13.5k]
  ------------------
 2283|  1.51k|        return (p1->namespaceIndex < p2->namespaceIndex) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2283:16): [True: 1.49k, False: 20]
  ------------------
 2284|       |
 2285|       |    /* Compare identifierType */
 2286|  13.5k|    if(p1->identifierType != p2->identifierType)
  ------------------
  |  Branch (2286:8): [True: 4.12k, False: 9.46k]
  ------------------
 2287|  4.12k|        return (p1->identifierType < p2->identifierType) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2287:16): [True: 4.12k, False: 3]
  ------------------
 2288|       |
 2289|       |    /* Compare the identifier */
 2290|  9.46k|    switch(p1->identifierType) {
 2291|  9.46k|    case UA_NODEIDTYPE_NUMERIC:
  ------------------
  |  Branch (2291:5): [True: 9.46k, False: 0]
  ------------------
 2292|  9.46k|    default:
  ------------------
  |  Branch (2292:5): [True: 0, False: 9.46k]
  ------------------
 2293|  9.46k|        if(p1->identifier.numeric != p2->identifier.numeric)
  ------------------
  |  Branch (2293:12): [True: 3.74k, False: 5.72k]
  ------------------
 2294|  3.74k|            return (p1->identifier.numeric < p2->identifier.numeric) ?
  ------------------
  |  Branch (2294:20): [True: 2.84k, False: 894]
  ------------------
 2295|  2.84k|                UA_ORDER_LESS : UA_ORDER_MORE;
 2296|  5.72k|        return UA_ORDER_EQ;
 2297|      0|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (2297:5): [True: 0, False: 9.46k]
  ------------------
 2298|      0|        return guidOrder(&p1->identifier.guid, &p2->identifier.guid, NULL);
 2299|      0|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (2299:5): [True: 0, False: 9.46k]
  ------------------
 2300|      0|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (2300:5): [True: 0, False: 9.46k]
  ------------------
 2301|       |        return stringOrder(&p1->identifier.string, &p2->identifier.string, NULL);
 2302|  9.46k|    }
 2303|  9.46k|}
ua_types.c:stringOrder:
 2265|  11.2k|stringOrder(const UA_String *p1, const UA_String *p2, const UA_DataType *type) {
 2266|  11.2k|    if(p1->length != p2->length)
  ------------------
  |  Branch (2266:8): [True: 10.0k, False: 1.11k]
  ------------------
 2267|  10.0k|        return (p1->length < p2->length) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2267:16): [True: 7.97k, False: 2.11k]
  ------------------
 2268|       |    /* For zero-length arrays, every pointer not NULL is considered a
 2269|       |     * UA_EMPTY_ARRAY_SENTINEL. */
 2270|  1.11k|    if(p1->data == p2->data) return UA_ORDER_EQ;
  ------------------
  |  Branch (2270:8): [True: 0, False: 1.11k]
  ------------------
 2271|  1.11k|    if(p1->data == NULL) return UA_ORDER_LESS;
  ------------------
  |  Branch (2271:8): [True: 0, False: 1.11k]
  ------------------
 2272|  1.11k|    if(p2->data == NULL) return UA_ORDER_MORE;
  ------------------
  |  Branch (2272:8): [True: 0, False: 1.11k]
  ------------------
 2273|  1.11k|    int cmp = memcmp((const char*)p1->data, (const char*)p2->data, p1->length);
 2274|  1.11k|    if(cmp != 0)
  ------------------
  |  Branch (2274:8): [True: 446, False: 668]
  ------------------
 2275|    446|        return (cmp < 0) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2275:16): [True: 181, False: 265]
  ------------------
 2276|    668|    return UA_ORDER_EQ;
 2277|  1.11k|}

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

UA_AttributeId_fromName:
   55|     89|UA_AttributeId_fromName(const UA_String name) {
   56|  2.53k|    for(size_t i = 0; i < 28; i++) {
  ------------------
  |  Branch (56:23): [True: 2.45k, False: 87]
  ------------------
   57|  2.45k|        if(strlen(attributeIdNames[i]) != name.length)
  ------------------
  |  Branch (57:12): [True: 2.42k, False: 31]
  ------------------
   58|  2.42k|            continue;
   59|     59|        for(size_t j = 0; j < name.length; j++) {
  ------------------
  |  Branch (59:27): [True: 57, False: 2]
  ------------------
   60|     57|            if((attributeIdNames[i][j] | 32) != (name.data[j] | 32))
  ------------------
  |  Branch (60:16): [True: 29, False: 28]
  ------------------
   61|     29|                goto next;
   62|     57|        }
   63|      2|        return (UA_AttributeId)i;
   64|     29|    next:
   65|     29|        continue;
   66|     31|    }
   67|     87|    return UA_ATTRIBUTEID_INVALID;
   68|     89|}
UA_readNumberWithBase:
  110|  11.2k|UA_readNumberWithBase(const UA_Byte *buf, size_t buflen, UA_UInt32 *number, UA_Byte base) {
  111|  11.2k|    UA_assert(buf);
  ------------------
  |  |  395|  11.2k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (111:5): [True: 11.2k, False: 0]
  ------------------
  112|  11.2k|    UA_assert(number);
  ------------------
  |  |  395|  11.2k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (112:5): [True: 11.2k, False: 0]
  ------------------
  113|  11.2k|    u32 n = 0;
  114|  11.2k|    size_t progress = 0;
  115|       |    /* read numbers until the end or a non-number character appears */
  116|   341k|    while(progress < buflen) {
  ------------------
  |  Branch (116:11): [True: 330k, False: 11.1k]
  ------------------
  117|   330k|        u8 c = buf[progress];
  118|   330k|        if(c >= '0' && c <= '9' && c <= '0' + (base-1))
  ------------------
  |  Branch (118:12): [True: 330k, False: 23]
  |  Branch (118:24): [True: 315k, False: 14.3k]
  |  Branch (118:36): [True: 315k, False: 0]
  ------------------
  119|   315k|           n = (n * base) + c - '0';
  120|  14.4k|        else if(base > 9 && c >= 'a' && c <= 'z' && c <= 'a' + (base-11))
  ------------------
  |  Branch (120:17): [True: 14.4k, False: 0]
  |  Branch (120:29): [True: 2.39k, False: 12.0k]
  |  Branch (120:41): [True: 2.36k, False: 31]
  |  Branch (120:53): [True: 2.35k, False: 14]
  ------------------
  121|  2.35k|           n = (n * base) + c-'a' + 10;
  122|  12.0k|        else if(base > 9 && c >= 'A' && c <= 'Z' && c <= 'A' + (base-11))
  ------------------
  |  Branch (122:17): [True: 12.0k, False: 0]
  |  Branch (122:29): [True: 12.0k, False: 35]
  |  Branch (122:41): [True: 11.9k, False: 49]
  |  Branch (122:53): [True: 11.9k, False: 9]
  ------------------
  123|  11.9k|           n = (n * base) + c-'A' + 10;
  124|     93|        else
  125|     93|           break;
  126|   330k|        ++progress;
  127|   330k|    }
  128|  11.2k|    *number = n;
  129|  11.2k|    return progress;
  130|  11.2k|}
UA_readNumber:
  133|  2.96k|UA_readNumber(const UA_Byte *buf, size_t buflen, UA_UInt32 *number) {
  134|  2.96k|    return UA_readNumberWithBase(buf, buflen, number, 10);
  135|  2.96k|}
lookupRefType:
  722|  1.14k|lookupRefType(UA_Server *server, UA_QualifiedName *qn, UA_NodeId *outRefTypeId) {
  723|       |    /* Check well-known ReferenceTypes first */
  724|  1.14k|    if(qn->namespaceIndex == 0) {
  ------------------
  |  Branch (724:8): [True: 1.12k, False: 14]
  ------------------
  725|  11.6k|        for(size_t i = 0; i < KNOWNREFTYPES; i++) {
  ------------------
  |  |  700|  11.6k|#define KNOWNREFTYPES 17
  ------------------
  |  Branch (725:27): [True: 11.2k, False: 460]
  ------------------
  726|  11.2k|            if(UA_String_equal(&qn->name, &knownRefTypes[i].browseName)) {
  ------------------
  |  Branch (726:16): [True: 668, False: 10.5k]
  ------------------
  727|    668|                *outRefTypeId = UA_NODEID_NUMERIC(0, knownRefTypes[i].identifier);
  728|    668|                return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|    668|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  729|    668|            }
  730|  11.2k|        }
  731|  1.12k|    }
  732|       |
  733|       |    /* Browse the information model. Return the first results if the browse name
  734|       |     * in the hierarchy is ambiguous. */
  735|    474|    if(server) {
  ------------------
  |  Branch (735:8): [True: 0, False: 474]
  ------------------
  736|      0|        UA_BrowseDescription bd;
  737|      0|        UA_BrowseDescription_init(&bd);
  738|      0|        bd.nodeId = UA_NODEID_NUMERIC(0, UA_NS0ID_REFERENCES);
  ------------------
  |  |   44|      0|#define UA_NS0ID_REFERENCES 31 /* ReferenceType */
  ------------------
  739|      0|        bd.browseDirection = UA_BROWSEDIRECTION_FORWARD;
  740|      0|        bd.referenceTypeId = UA_NODEID_NUMERIC(0, UA_NS0ID_HASSUBTYPE);
  ------------------
  |  |   56|      0|#define UA_NS0ID_HASSUBTYPE 45 /* ReferenceType */
  ------------------
  741|      0|        bd.nodeClassMask = UA_NODECLASS_REFERENCETYPE;
  742|       |
  743|      0|        size_t resultsSize = 0;
  744|      0|        UA_ExpandedNodeId *results = NULL;
  745|      0|        UA_StatusCode res =
  746|      0|            UA_Server_browseRecursive(server, &bd, &resultsSize, &results);
  747|      0|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (747:12): [True: 0, False: 0]
  ------------------
  748|      0|            return res;
  749|      0|        for(size_t i = 0; i < resultsSize; i++) {
  ------------------
  |  Branch (749:27): [True: 0, False: 0]
  ------------------
  750|      0|            UA_QualifiedName bn;
  751|      0|            UA_Server_readBrowseName(server, results[i].nodeId, &bn);
  752|      0|            if(UA_QualifiedName_equal(qn, &bn)) {
  ------------------
  |  Branch (752:16): [True: 0, False: 0]
  ------------------
  753|      0|                UA_QualifiedName_clear(&bn);
  754|      0|                *outRefTypeId = results[i].nodeId;
  755|      0|                UA_NodeId_clear(&results[i].nodeId);
  756|      0|                UA_Array_delete(results, resultsSize, &UA_TYPES[UA_TYPES_NODEID]);
  ------------------
  |  |  565|      0|#define UA_TYPES_NODEID 16
  ------------------
  757|      0|                return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  758|      0|            }
  759|      0|            UA_QualifiedName_clear(&bn);
  760|      0|        }
  761|       |
  762|      0|        UA_Array_delete(results, resultsSize, &UA_TYPES[UA_TYPES_NODEID]);
  ------------------
  |  |  565|      0|#define UA_TYPES_NODEID 16
  ------------------
  763|      0|    }
  764|       |
  765|    474|    return UA_STATUSCODE_BADNOTFOUND;
  ------------------
  |  |  232|    474|#define UA_STATUSCODE_BADNOTFOUND ((UA_StatusCode) 0x803E0000)
  ------------------
  766|    474|}
getRefTypeBrowseName:
  769|  4.57k|getRefTypeBrowseName(const UA_NodeId *refTypeId, UA_String *outBN) {
  770|       |    /* Canonical name known? */
  771|  4.57k|    if(refTypeId->namespaceIndex == 0 &&
  ------------------
  |  Branch (771:8): [True: 3.38k, False: 1.18k]
  ------------------
  772|  3.38k|       refTypeId->identifierType == UA_NODEIDTYPE_NUMERIC) {
  ------------------
  |  Branch (772:8): [True: 1.09k, False: 2.28k]
  ------------------
  773|  11.9k|        for(size_t i = 0; i < KNOWNREFTYPES; i++) {
  ------------------
  |  |  700|  11.9k|#define KNOWNREFTYPES 17
  ------------------
  |  Branch (773:27): [True: 11.4k, False: 526]
  ------------------
  774|  11.4k|            if(refTypeId->identifier.numeric != knownRefTypes[i].identifier)
  ------------------
  |  Branch (774:16): [True: 10.8k, False: 570]
  ------------------
  775|  10.8k|                continue;
  776|    570|            memcpy(outBN->data, knownRefTypes[i].browseName.data, knownRefTypes[i].browseName.length);
  777|    570|            outBN->length = knownRefTypes[i].browseName.length;
  778|    570|            return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|    570|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  779|  11.4k|        }
  780|  1.09k|    }
  781|       |
  782|       |    /* Print the NodeId */
  783|  4.00k|    return UA_NodeId_print(refTypeId, outBN);
  784|  4.57k|}
UA_String_unescape:
  798|  17.1k|UA_String_unescape(UA_String *str, UA_Boolean copyEscape, UA_Escaping esc) {
  799|  17.1k|    if(esc == UA_ESCAPING_NONE)
  ------------------
  |  Branch (799:8): [True: 215, False: 16.9k]
  ------------------
  800|    215|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|    215|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  801|       |
  802|       |    /* Does the string need escaping? */
  803|  16.9k|    UA_String tmp;
  804|  16.9k|    status res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|  16.9k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  805|  16.9k|    u8 *pos = str->data;
  806|  16.9k|    u8 *end = str->data + str->length;
  807|  16.9k|    u8 escape_char = (esc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (807:23): [True: 53, False: 16.8k]
  ------------------
  808|  16.8k|                      esc == UA_ESCAPING_PERCENT_EXTENDED) ? '%' : '&';
  ------------------
  |  Branch (808:23): [True: 3.20k, False: 13.6k]
  ------------------
  809|  5.82M|    for(; pos < end; pos++) {
  ------------------
  |  Branch (809:11): [True: 5.80M, False: 15.7k]
  ------------------
  810|  5.80M|        if(*pos == escape_char)
  ------------------
  |  Branch (810:12): [True: 1.19k, False: 5.80M]
  ------------------
  811|  1.19k|            goto escape;
  812|  5.80M|    }
  813|       |
  814|  15.7k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|  15.7k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  815|       |
  816|  1.19k| escape:
  817|  1.19k|    if(copyEscape) {
  ------------------
  |  Branch (817:8): [True: 0, False: 1.19k]
  ------------------
  818|      0|        res = UA_String_copy(str, &tmp);
  819|      0|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (819:12): [True: 0, False: 0]
  ------------------
  820|      0|            return res;
  821|      0|        pos = tmp.data;
  822|      0|        end = tmp.data + tmp.length;
  823|      0|    }
  824|       |
  825|  1.19k|    u8 byte = 0;
  826|  1.19k|    u8 *writepos = pos;
  827|       |
  828|  1.19k|    res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|  1.19k|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  829|  1.19k|    if(esc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (829:8): [True: 1, False: 1.19k]
  ------------------
  830|  1.19k|       esc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (830:8): [True: 453, False: 744]
  ------------------
  831|       |        /* Percent-Escaping */
  832|   172k|        for(; pos < end; pos++) {
  ------------------
  |  Branch (832:15): [True: 171k, False: 250]
  ------------------
  833|   171k|            if(*pos == '%') {
  ------------------
  |  Branch (833:16): [True: 2.07k, False: 169k]
  ------------------
  834|  2.07k|                if(pos + 2 >= end || !isHex(pos[1]) || !isHex(pos[2]))
  ------------------
  |  Branch (834:20): [True: 0, False: 2.07k]
  |  Branch (834:38): [True: 119, False: 1.95k]
  |  Branch (834:56): [True: 85, False: 1.87k]
  ------------------
  835|    204|                    goto out;
  836|  1.87k|                if(pos[1] >= 'a')
  ------------------
  |  Branch (836:20): [True: 573, False: 1.29k]
  ------------------
  837|    573|                    byte = pos[1] - ('a' - 10);
  838|  1.29k|                else if(pos[1] >= 'A')
  ------------------
  |  Branch (838:25): [True: 766, False: 532]
  ------------------
  839|    766|                    byte = pos[1] - ('A' - 10);
  840|    532|                else
  841|    532|                    byte = pos[1] - '0';
  842|  1.87k|                byte <<= 4;
  843|       |
  844|  1.87k|                if(pos[2] >= 'a')
  ------------------
  |  Branch (844:20): [True: 592, False: 1.27k]
  ------------------
  845|    592|                    byte += (u8)(pos[2] - ('a' - 10));
  846|  1.27k|                else if(pos[2] >= 'A')
  ------------------
  |  Branch (846:25): [True: 636, False: 643]
  ------------------
  847|    636|                    byte += (u8)(pos[2] - ('A' - 10));
  848|    643|                else
  849|    643|                    byte += (u8)(pos[2] - '0');
  850|       |
  851|  1.87k|                pos += 2;
  852|  1.87k|                *writepos++ = byte;
  853|  1.87k|                continue;
  854|  2.07k|            }
  855|   169k|            *writepos++ = *pos;
  856|   169k|        }
  857|    744|    } else {
  858|       |        /* And-Escaping */
  859|  4.01M|        for(; pos < end; pos++) {
  ------------------
  |  Branch (859:15): [True: 4.01M, False: 744]
  ------------------
  860|  4.01M|            if(*pos == '&') {
  ------------------
  |  Branch (860:16): [True: 2.22k, False: 4.01M]
  ------------------
  861|  2.22k|                pos++;
  862|  2.22k|                if(pos == end)
  ------------------
  |  Branch (862:20): [True: 0, False: 2.22k]
  ------------------
  863|      0|                    goto out;
  864|  2.22k|            }
  865|  4.01M|            *writepos++ = *pos;
  866|  4.01M|        }
  867|    744|    }
  868|    994|    res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|    994|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  869|       |
  870|  1.19k| out:
  871|  1.19k|    if(copyEscape) {
  ------------------
  |  Branch (871:8): [True: 0, False: 1.19k]
  ------------------
  872|      0|        tmp.length = (size_t)(writepos - tmp.data);
  873|      0|        if(tmp.length == 0)
  ------------------
  |  Branch (873:12): [True: 0, False: 0]
  ------------------
  874|      0|            UA_String_clear(&tmp);
  875|      0|        if(res == UA_STATUSCODE_GOOD)
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (875:12): [True: 0, False: 0]
  ------------------
  876|      0|            *str = tmp;
  877|      0|        else
  878|      0|            UA_String_clear(&tmp);
  879|  1.19k|    } else if(res == UA_STATUSCODE_GOOD) {
  ------------------
  |  |   16|  1.19k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (879:15): [True: 994, False: 204]
  ------------------
  880|    994|        str->length = (size_t)(writepos - str->data);
  881|    994|    }
  882|  1.19k|    return res;
  883|    994|}
UA_String_escapedSize:
  889|  14.3k|UA_String_escapedSize(const UA_String s, UA_Escaping esc) {
  890|       |    /* Find out the overhead from escaping */
  891|  14.3k|    size_t overhead = 0;
  892|  18.2M|    for(size_t j = 0; j < s.length; j++) {
  ------------------
  |  Branch (892:23): [True: 18.2M, False: 14.3k]
  ------------------
  893|  18.2M|        if(esc == UA_ESCAPING_AND_EXTENDED)
  ------------------
  |  Branch (893:12): [True: 0, False: 18.2M]
  ------------------
  894|      0|            overhead += isReservedAndExtended(s.data[j]);
  895|  18.2M|        else if(esc == UA_ESCAPING_AND)
  ------------------
  |  Branch (895:17): [True: 6.16M, False: 12.0M]
  ------------------
  896|  6.16M|            overhead += isReservedAnd(s.data[j]);
  897|  12.0M|        else if(esc == UA_ESCAPING_PERCENT)
  ------------------
  |  Branch (897:17): [True: 0, False: 12.0M]
  ------------------
  898|      0|            overhead += (isReservedPercent(s.data[j]) ? 2 : 0);
  ------------------
  |  Branch (898:26): [True: 0, False: 0]
  ------------------
  899|  12.0M|        else /* if(esc == UA_ESCAPING_PERCENT_EXTENDED) */
  900|  12.0M|            overhead += (isReservedPercentExtended(s.data[j]) ? 2 : 0);
  ------------------
  |  Branch (900:26): [True: 8.42M, False: 3.64M]
  ------------------
  901|  18.2M|    }
  902|       |
  903|  14.3k|    return s.length + overhead;
  904|  14.3k|}
UA_String_escapeInsert:
  907|  13.6k|UA_String_escapeInsert(u8 *pos, const UA_String s2, UA_Escaping esc) {
  908|  13.6k|    u8 *begin = pos;
  909|       |
  910|  13.6k|    if(esc == UA_ESCAPING_NONE) {
  ------------------
  |  Branch (910:8): [True: 1.61k, False: 12.0k]
  ------------------
  911|  6.04M|        for(size_t j = 0; j < s2.length; j++)
  ------------------
  |  Branch (911:27): [True: 6.03M, False: 1.61k]
  ------------------
  912|  6.03M|            *pos++ = s2.data[j];
  913|  12.0k|    } else if(esc == UA_ESCAPING_PERCENT || esc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (913:15): [True: 0, False: 12.0k]
  |  Branch (913:45): [True: 0, False: 12.0k]
  ------------------
  914|      0|        for(size_t j = 0; j < s2.length; j++) {
  ------------------
  |  Branch (914:27): [True: 0, False: 0]
  ------------------
  915|      0|            UA_Boolean reserved = (esc == UA_ESCAPING_PERCENT_EXTENDED) ?
  ------------------
  |  Branch (915:35): [True: 0, False: 0]
  ------------------
  916|      0|                isReservedPercentExtended(s2.data[j]) : isReservedPercent(s2.data[j]);
  917|      0|            if(UA_LIKELY(!reserved)) {
  ------------------
  |  |  574|      0|# define UA_LIKELY(x) __builtin_expect((x), 1)
  |  |  ------------------
  |  |  |  Branch (574:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  918|      0|                *pos++ = s2.data[j];
  919|      0|            } else {
  920|      0|                *pos++ = '%';
  921|      0|                *pos++ = hexchars[s2.data[j] >> 4];
  922|      0|                *pos++ = hexchars[s2.data[j] & 0x0f];
  923|      0|            }
  924|      0|        }
  925|  12.0k|    } else {
  926|  6.17M|        for(size_t j = 0; j < s2.length; j++) {
  ------------------
  |  Branch (926:27): [True: 6.16M, False: 12.0k]
  ------------------
  927|  6.16M|            UA_Boolean reserved = (esc == UA_ESCAPING_AND_EXTENDED) ?
  ------------------
  |  Branch (927:35): [True: 0, False: 6.16M]
  ------------------
  928|  6.16M|                isReservedAndExtended(s2.data[j]) : isReservedAnd(s2.data[j]);
  929|  6.16M|            if(reserved)
  ------------------
  |  Branch (929:16): [True: 58.1k, False: 6.10M]
  ------------------
  930|  58.1k|                *pos++ = '&';
  931|  6.16M|            *pos++ = s2.data[j];
  932|  6.16M|        }
  933|  12.0k|    }
  934|       |
  935|  13.6k|    return (size_t)(pos - begin);
  936|  13.6k|}
UA_String_escapeAppend:
  939|  12.0k|UA_String_escapeAppend(UA_String *s, const UA_String s2, UA_Escaping esc) {
  940|  12.0k|    if(esc == UA_ESCAPING_NONE)
  ------------------
  |  Branch (940:8): [True: 0, False: 12.0k]
  ------------------
  941|      0|        return UA_String_append(s, s2);
  942|       |
  943|       |    /* Allocate memory for the additional escaped string */
  944|  12.0k|    size_t escapedLength = UA_String_escapedSize(s2, esc);
  945|  12.0k|    UA_Byte *buf = (UA_Byte*)
  946|  12.0k|        UA_realloc(s->data, s->length + s2.length + escapedLength);
  ------------------
  |  |   21|  12.0k|#define UA_realloc(ptr, size) UA_reallocSingleton(ptr, size)
  ------------------
  947|  12.0k|    if(!buf)
  ------------------
  |  Branch (947:8): [True: 0, False: 12.0k]
  ------------------
  948|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   31|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  949|       |
  950|       |    /* Escape and insert at the end */
  951|  12.0k|    s->data = buf;
  952|  12.0k|    UA_String_escapeInsert(s->data + s->length, s2, esc);
  953|  12.0k|    s->length += escapedLength;
  954|  12.0k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|  12.0k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  955|  12.0k|}
UA_RelativePath_print:
 1053|    795|UA_RelativePath_print(const UA_RelativePath *rp, UA_String *out) {
 1054|    795|    return printRelativePath(rp, out, UA_ESCAPING_AND);
 1055|    795|}
ua_util.c:isHex:
  791|  4.03k|isHex(u8 c) {
  792|  4.03k|    return ((c >= 'a' && c <= 'f') ||
  ------------------
  |  Branch (792:14): [True: 1.24k, False: 2.78k]
  |  Branch (792:26): [True: 1.18k, False: 68]
  ------------------
  793|  2.85k|            (c >= 'A' && c <= 'F') ||
  ------------------
  |  Branch (793:14): [True: 1.53k, False: 1.32k]
  |  Branch (793:26): [True: 1.43k, False: 99]
  ------------------
  794|  1.41k|            (c >= '0' && c <= '9'));
  ------------------
  |  Branch (794:14): [True: 1.32k, False: 91]
  |  Branch (794:26): [True: 1.21k, False: 113]
  ------------------
  795|  4.03k|}
ua_util.c:printRelativePath:
  995|    795|printRelativePath(const UA_RelativePath *rp, UA_String *out, UA_Escaping esc) {
  996|    795|    UA_String tmp = UA_STRING_NULL;
  997|    795|    UA_StatusCode res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|    795|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  998|  8.93k|    for(size_t i = 0; i < rp->elementsSize && res == UA_STATUSCODE_GOOD; i++) {
  ------------------
  |  |   16|  8.13k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (998:23): [True: 8.13k, False: 795]
  |  Branch (998:47): [True: 8.13k, False: 0]
  ------------------
  999|       |        /* Print the reference type */
 1000|  8.13k|        UA_RelativePathElement *elm = &rp->elements[i];
 1001|  8.13k|        if(UA_NodeId_equal(&hierarchicalRefs, &elm->referenceTypeId) &&
  ------------------
  |  Branch (1001:12): [True: 2.47k, False: 5.65k]
  ------------------
 1002|  2.47k|           !elm->isInverse && elm->includeSubtypes) {
  ------------------
  |  Branch (1002:12): [True: 2.41k, False: 66]
  |  Branch (1002:31): [True: 2.34k, False: 66]
  ------------------
 1003|  2.34k|            res |= UA_String_append(&tmp, UA_STRING("/"));
 1004|  5.79k|        } else if(esc == UA_ESCAPING_AND &&
  ------------------
  |  Branch (1004:19): [True: 5.79k, False: 0]
  ------------------
 1005|  5.79k|                  UA_NodeId_equal(&aggregatesRefs, &elm->referenceTypeId) &&
  ------------------
  |  Branch (1005:19): [True: 2.11k, False: 3.67k]
  ------------------
 1006|  2.11k|                  !elm->isInverse && elm->includeSubtypes) {
  ------------------
  |  Branch (1006:19): [True: 2.05k, False: 66]
  |  Branch (1006:38): [True: 1.88k, False: 166]
  ------------------
 1007|  1.88k|            res |= UA_String_append(&tmp, UA_STRING("."));
 1008|  3.90k|        } else {
 1009|  3.90k|            res |= UA_String_append(&tmp, UA_STRING("<"));
 1010|  3.90k|            if(!elm->includeSubtypes)
  ------------------
  |  Branch (1010:16): [True: 524, False: 3.38k]
  ------------------
 1011|    524|                res |= UA_String_append(&tmp, UA_STRING("#"));
 1012|  3.90k|            if(elm->isInverse)
  ------------------
  |  Branch (1012:16): [True: 340, False: 3.56k]
  ------------------
 1013|    340|                res |= UA_String_append(&tmp, UA_STRING("!"));
 1014|  3.90k|            if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   16|  3.90k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1014:16): [True: 0, False: 3.90k]
  ------------------
 1015|      0|                break;
 1016|       |
 1017|  3.90k|            UA_Byte bnBuf[512];
 1018|  3.90k|            UA_String bnBufStr = {512, bnBuf};
 1019|  3.90k|            res = getRefTypeBrowseName(&elm->referenceTypeId, &bnBufStr);
 1020|  3.90k|            if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   16|  3.90k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1020:16): [True: 665, False: 3.24k]
  ------------------
 1021|    665|                UA_String_init(&bnBufStr);
 1022|    665|                res = getRefTypeBrowseName(&elm->referenceTypeId, &bnBufStr);
 1023|    665|                if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   16|    665|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1023:20): [True: 0, False: 665]
  ------------------
 1024|      0|                    break;
 1025|    665|            }
 1026|  3.90k|            res |= UA_String_escapeAppend(&tmp, bnBufStr, esc);
 1027|  3.90k|            res |= UA_String_append(&tmp, UA_STRING(">"));
 1028|  3.90k|            if(bnBufStr.data != bnBuf)
  ------------------
  |  Branch (1028:16): [True: 665, False: 3.24k]
  ------------------
 1029|    665|                UA_String_clear(&bnBufStr);
 1030|  3.90k|        }
 1031|       |
 1032|       |        /* Print the qualified name */
 1033|  8.13k|        UA_QualifiedName *qn = &elm->targetName;
 1034|  8.13k|        if(qn->namespaceIndex > 0) {
  ------------------
  |  Branch (1034:12): [True: 327, False: 7.80k]
  ------------------
 1035|    327|            char nsStr[8]; /* Enough for a uint16 */
 1036|    327|            itoaUnsigned(qn->namespaceIndex, nsStr, 10);
 1037|    327|            res |= UA_String_append(&tmp, UA_STRING(nsStr));
 1038|    327|            res |= UA_String_append(&tmp, UA_STRING(":"));
 1039|    327|        }
 1040|  8.13k|        res |= UA_String_escapeAppend(&tmp, qn->name, esc);
 1041|  8.13k|    }
 1042|       |
 1043|       |    /* Encoding failed, clean up */
 1044|    795|    if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   16|    795|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1044:8): [True: 0, False: 795]
  ------------------
 1045|      0|        UA_String_clear(&tmp);
 1046|      0|        return res;
 1047|      0|    }
 1048|       |
 1049|    795|    return moveTmpToOut(&tmp, out);
 1050|    795|}
ua_util.c:moveTmpToOut:
  958|    795|moveTmpToOut(UA_String *tmp, UA_String *out) {
  959|       |    /* Output has zero length */
  960|    795|    if(tmp->length == 0) {
  ------------------
  |  Branch (960:8): [True: 0, False: 795]
  ------------------
  961|      0|        UA_assert(tmp->data == NULL);
  ------------------
  |  |  395|      0|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (961:9): [True: 0, False: 0]
  ------------------
  962|      0|        if(out->data == NULL)
  ------------------
  |  Branch (962:12): [True: 0, False: 0]
  ------------------
  963|      0|            out->data = (UA_Byte*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  755|      0|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
  964|      0|        out->length = 0;
  965|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  966|      0|    }
  967|       |
  968|       |    /* No output buffer provided, return the tmp buffer */
  969|    795|    if(out->length == 0) {
  ------------------
  |  Branch (969:8): [True: 795, False: 0]
  ------------------
  970|    795|        *out = *tmp;
  971|    795|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|    795|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  972|    795|    }
  973|       |
  974|       |    /* The provided buffer is too short */
  975|      0|    if(out->length < tmp->length) {
  ------------------
  |  Branch (975:8): [True: 0, False: 0]
  ------------------
  976|      0|        UA_String_clear(tmp);
  977|      0|        return UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED;
  ------------------
  |  |   46|      0|#define UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED ((UA_StatusCode) 0x80080000)
  ------------------
  978|      0|    }
  979|       |
  980|       |    /* Copy output to the provided buffer */
  981|      0|    memcpy(out->data, tmp->data, tmp->length);
  982|      0|    out->length = tmp->length;
  983|      0|    UA_String_clear(tmp);
  984|      0|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  985|      0|}

ua_types.c:isTrue:
  167|  12.1k|isTrue(uint8_t expr) {
  168|  12.1k|    return expr;
  169|  12.1k|}
ua_util.c:isReservedAnd:
   83|  12.3M|isReservedAnd(u8 c) {
   84|  12.3M|    return (c == '/' || c == '.' || c == '<' || c == '>' ||
  ------------------
  |  Branch (84:13): [True: 78.7k, False: 12.2M]
  |  Branch (84:25): [True: 6.34k, False: 12.2M]
  |  Branch (84:37): [True: 8.39k, False: 12.2M]
  |  Branch (84:49): [True: 1.44k, False: 12.2M]
  ------------------
   85|  12.2M|            c == ':' || c == '#' || c == '!' || c == '&');
  ------------------
  |  Branch (85:13): [True: 9.61k, False: 12.2M]
  |  Branch (85:25): [True: 1.94k, False: 12.2M]
  |  Branch (85:37): [True: 2.40k, False: 12.2M]
  |  Branch (85:49): [True: 7.38k, False: 12.2M]
  ------------------
   86|  12.3M|}
ua_util.c:isReservedPercent:
   95|  12.0M|isReservedPercent(u8 c) {
   96|  12.0M|    return (c == ';'  || c == '%' || c <= ' ' || c == 127);
  ------------------
  |  Branch (96:13): [True: 1.51k, False: 12.0M]
  |  Branch (96:26): [True: 14.3k, False: 12.0M]
  |  Branch (96:38): [True: 462k, False: 11.5M]
  |  Branch (96:50): [True: 7.79M, False: 3.79M]
  ------------------
   97|  12.0M|}
ua_util.c:isReservedPercentExtended:
  100|  12.0M|isReservedPercentExtended(u8 c) {
  101|  12.0M|    return (isReservedPercent(c) || c == ':' || c == '#' || c == '[' || c == ']' ||
  ------------------
  |  Branch (101:13): [True: 8.27M, False: 3.79M]
  |  Branch (101:37): [True: 9.01k, False: 3.79M]
  |  Branch (101:49): [True: 1.65k, False: 3.78M]
  |  Branch (101:61): [True: 2.45k, False: 3.78M]
  |  Branch (101:73): [True: 1.86k, False: 3.78M]
  ------------------
  102|  3.78M|            c == '&' || c == '(' || c == ')' || c == ',' || c == '<' || c == '>' ||
  ------------------
  |  Branch (102:13): [True: 6.69k, False: 3.77M]
  |  Branch (102:25): [True: 5.02k, False: 3.77M]
  |  Branch (102:37): [True: 688, False: 3.77M]
  |  Branch (102:49): [True: 9.84k, False: 3.76M]
  |  Branch (102:61): [True: 7.86k, False: 3.75M]
  |  Branch (102:73): [True: 866, False: 3.75M]
  ------------------
  103|  3.75M|            c == '`' || c == '/' || c == '\\' || c == '"' || c == '\'' );
  ------------------
  |  Branch (103:13): [True: 23.7k, False: 3.73M]
  |  Branch (103:25): [True: 77.8k, False: 3.65M]
  |  Branch (103:37): [True: 4.32k, False: 3.64M]
  |  Branch (103:50): [True: 6.08k, False: 3.64M]
  |  Branch (103:62): [True: 1.33k, False: 3.64M]
  ------------------
  104|  12.0M|}
ua_types_lex.c:isReservedPercentExtended:
  100|  6.95k|isReservedPercentExtended(u8 c) {
  101|  6.95k|    return (isReservedPercent(c) || c == ':' || c == '#' || c == '[' || c == ']' ||
  ------------------
  |  Branch (101:13): [True: 30, False: 6.92k]
  |  Branch (101:37): [True: 3, False: 6.92k]
  |  Branch (101:49): [True: 6, False: 6.92k]
  |  Branch (101:61): [True: 4, False: 6.91k]
  |  Branch (101:73): [True: 4, False: 6.91k]
  ------------------
  102|  6.91k|            c == '&' || c == '(' || c == ')' || c == ',' || c == '<' || c == '>' ||
  ------------------
  |  Branch (102:13): [True: 2, False: 6.91k]
  |  Branch (102:25): [True: 5, False: 6.90k]
  |  Branch (102:37): [True: 2, False: 6.90k]
  |  Branch (102:49): [True: 2, False: 6.90k]
  |  Branch (102:61): [True: 660, False: 6.24k]
  |  Branch (102:73): [True: 3, False: 6.23k]
  ------------------
  103|  6.23k|            c == '`' || c == '/' || c == '\\' || c == '"' || c == '\'' );
  ------------------
  |  Branch (103:13): [True: 2, False: 6.23k]
  |  Branch (103:25): [True: 1.93k, False: 4.30k]
  |  Branch (103:37): [True: 2, False: 4.30k]
  |  Branch (103:50): [True: 2, False: 4.29k]
  |  Branch (103:62): [True: 3, False: 4.29k]
  ------------------
  104|  6.95k|}
ua_types_lex.c:isReservedPercent:
   95|  6.95k|isReservedPercent(u8 c) {
   96|  6.95k|    return (c == ';'  || c == '%' || c <= ' ' || c == 127);
  ------------------
  |  Branch (96:13): [True: 4, False: 6.95k]
  |  Branch (96:26): [True: 0, False: 6.95k]
  |  Branch (96:38): [True: 24, False: 6.93k]
  |  Branch (96:50): [True: 2, False: 6.92k]
  ------------------
   97|  6.95k|}
ua_types_lex.c:isReservedAnd:
   83|   104k|isReservedAnd(u8 c) {
   84|   104k|    return (c == '/' || c == '.' || c == '<' || c == '>' ||
  ------------------
  |  Branch (84:13): [True: 2.56k, False: 101k]
  |  Branch (84:25): [True: 1.92k, False: 99.8k]
  |  Branch (84:37): [True: 5.59k, False: 94.2k]
  |  Branch (84:49): [True: 1, False: 94.2k]
  ------------------
   85|  94.2k|            c == ':' || c == '#' || c == '!' || c == '&');
  ------------------
  |  Branch (85:13): [True: 1, False: 94.2k]
  |  Branch (85:25): [True: 1, False: 94.2k]
  |  Branch (85:37): [True: 1, False: 94.2k]
  |  Branch (85:49): [True: 0, False: 94.2k]
  ------------------
   86|   104k|}

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

fuzz_parse_string.cc:_ZL14UA_NodeId_initP9UA_NodeId:
  239|    187|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL15UA_NodeId_clearP9UA_NodeId:
  239|    187|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL12UA_Guid_initP7UA_Guid:
  239|     71|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL22UA_ExpandedNodeId_initP17UA_ExpandedNodeId:
  239|    538|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL23UA_ExpandedNodeId_clearP17UA_ExpandedNodeId:
  239|    538|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL21UA_QualifiedName_initP16UA_QualifiedName:
  239|    153|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL22UA_QualifiedName_clearP16UA_QualifiedName:
  239|    153|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL20UA_RelativePath_initP15UA_RelativePath:
  239|  1.04k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL15UA_String_clearP9UA_String:
  239|  4.74k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL21UA_RelativePath_clearP15UA_RelativePath:
  239|  1.04k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL30UA_SimpleAttributeOperand_initP25UA_SimpleAttributeOperand:
  239|    607|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL31UA_SimpleAttributeOperand_clearP25UA_SimpleAttributeOperand:
  239|    607|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL19UA_ReadValueId_initP14UA_ReadValueId:
  239|    437|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL20UA_ReadValueId_clearP14UA_ReadValueId:
  239|    437|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types.c:UA_ByteString_init:
  239|  4.61k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_String_init:
  239|    665|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_String_equal:
  239|  11.2k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_String_clear:
  239|    665|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_NodeId_equal:
  239|  13.9k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_String_copy:
  239|  18.1k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_clear:
  239|    175|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_ExpandedNodeId_clear:
  239|    458|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_QualifiedName_clear:
  239|  1.14k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePath_init:
  239|  2.01k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePathElement_init:
  239|  14.6k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePathElement_clear:
  239|    623|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePath_clear:
  239|    246|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_AttributeOperand_init:
  239|  1.04k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_SimpleAttributeOperand_init:
  239|    142|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_String_init:
  239|    142|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_init:
  239|    142|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_equal:
  239|  1.18k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_QualifiedName_init:
  239|  16.0k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_AttributeOperand_clear:
  239|  1.03k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_SimpleAttributeOperand_clear:
  239|     52|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_ReadValueId_init:
  239|     11|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl

