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

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

parseUInt64:
   30|  3.07k|parseUInt64(const char *str, size_t size, uint64_t *result) {
   31|  3.07k|    size_t i = 0;
   32|  3.07k|    uint64_t n = 0, prev = 0;
   33|       |
   34|       |    /* Hex */
   35|  3.07k|    if(size > 2 && str[0] == '0' && (str[1] | 32) == 'x') {
  ------------------
  |  Branch (35:8): [True: 563, False: 2.51k]
  |  Branch (35:20): [True: 44, False: 519]
  |  Branch (35:37): [True: 20, False: 24]
  ------------------
   36|     20|        i = 2;
   37|     46|        for(; i < size; i++) {
  ------------------
  |  Branch (37:15): [True: 43, False: 3]
  ------------------
   38|     43|            uint8_t c = (uint8_t)str[i] | 32;
   39|     43|            if(c >= '0' && c <= '9')
  ------------------
  |  Branch (39:16): [True: 39, False: 4]
  |  Branch (39:28): [True: 15, False: 24]
  ------------------
   40|     15|                c = (uint8_t)(c - '0');
   41|     28|            else if(c >= 'a' && c <='f')
  ------------------
  |  Branch (41:21): [True: 23, False: 5]
  |  Branch (41:33): [True: 11, False: 12]
  ------------------
   42|     11|                c = (uint8_t)(c - 'a' + 10);
   43|     17|            else if(c >= 'A' && c <='F')
  ------------------
  |  Branch (43:21): [True: 12, False: 5]
  |  Branch (43:33): [True: 0, False: 12]
  ------------------
   44|      0|                c = (uint8_t)(c - 'A' + 10);
   45|     17|            else
   46|     17|                break;
   47|     26|            n = (n << 4) | (c & 0xF);
   48|     26|            if(n < prev) /* Check for overflow */
  ------------------
  |  Branch (48:16): [True: 0, False: 26]
  ------------------
   49|      0|                return 0;
   50|     26|            prev = n;
   51|     26|        }
   52|     20|        *result = n;
   53|     20|        return (i > 2) ? i : 0; /* 2 -> No digit was parsed */
  ------------------
  |  Branch (53:16): [True: 14, False: 6]
  ------------------
   54|     20|    }
   55|       |
   56|       |    /* Decimal */
   57|  9.14k|    for(; i < size; i++) {
  ------------------
  |  Branch (57:11): [True: 6.75k, False: 2.38k]
  ------------------
   58|  6.75k|        if(str[i] < '0' || str[i] > '9')
  ------------------
  |  Branch (58:12): [True: 596, False: 6.16k]
  |  Branch (58:28): [True: 76, False: 6.08k]
  ------------------
   59|    672|            break;
   60|       |        /* Fast multiplication: n*10 == (n*8) + (n*2) */
   61|  6.08k|        n = (n << 3) + (n << 1) + (uint8_t)(str[i] - '0');
   62|  6.08k|        if(n < prev) /* Check for overflow */
  ------------------
  |  Branch (62:12): [True: 0, False: 6.08k]
  ------------------
   63|      0|            return 0;
   64|  6.08k|        prev = n;
   65|  6.08k|    }
   66|  3.05k|    *result = n;
   67|  3.05k|    return i;
   68|  3.05k|}
parseInt64:
   71|    563|parseInt64(const char *str, size_t size, int64_t *result) {
   72|       |    /* Negative value? */
   73|    563|    size_t i = 0;
   74|    563|    bool neg = false;
   75|    563|    if(*str == '-' || *str == '+') {
  ------------------
  |  Branch (75:8): [True: 6, False: 557]
  |  Branch (75:23): [True: 1, False: 556]
  ------------------
   76|      7|        neg = (*str == '-');
   77|      7|        i++;
   78|      7|    }
   79|       |
   80|       |    /* Parse as unsigned */
   81|    563|    uint64_t n = 0;
   82|    563|    size_t len = parseUInt64(&str[i], size - i, &n);
   83|    563|    if(len == 0)
  ------------------
  |  Branch (83:8): [True: 31, False: 532]
  ------------------
   84|     31|        return 0;
   85|       |
   86|       |    /* Check for overflow, adjust and return */
   87|    532|    if(!neg) {
  ------------------
  |  Branch (87:8): [True: 526, False: 6]
  ------------------
   88|    526|        if(n > 9223372036854775807UL)
  ------------------
  |  Branch (88:12): [True: 0, False: 526]
  ------------------
   89|      0|            return 0;
   90|    526|        *result = (int64_t)n;
   91|    526|    } else {
   92|      6|        if(n > 9223372036854775808UL)
  ------------------
  |  Branch (92:12): [True: 0, False: 6]
  ------------------
   93|      0|            return 0;
   94|      6|        *result = -(int64_t)n;
   95|      6|    }
   96|    532|    return len + i;
   97|    532|}

UA_STRING:
  220|      1|UA_STRING(char *chars) {
  221|      1|    UA_String s = {0, NULL};
  222|      1|    if(!chars)
  ------------------
  |  Branch (222:8): [True: 0, False: 1]
  ------------------
  223|      0|        return s;
  224|      1|    s.length = strlen(chars);
  225|      1|    s.data = (UA_Byte*)chars;
  226|      1|    return s;
  227|      1|}
UA_String_append:
  299|      1|UA_String_append(UA_String *s, const UA_String s2) {
  300|      1|    if(s2.length == 0)
  ------------------
  |  Branch (300:8): [True: 0, False: 1]
  ------------------
  301|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  302|      1|    UA_Byte *buf = (UA_Byte*)UA_realloc(s->data, s->length + s2.length);
  ------------------
  |  |   21|      1|#define UA_realloc(ptr, size) UA_reallocSingleton(ptr, size)
  ------------------
  303|      1|    if(!buf)
  ------------------
  |  Branch (303:8): [True: 0, False: 1]
  ------------------
  304|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   31|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  305|      1|    memcpy(buf + s->length, s2.data, s2.length);
  306|      1|    s->data = buf;
  307|      1|    s->length += s2.length;
  308|      1|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      1|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  309|      1|}
UA_DateTime_parse:
  537|    594|UA_DateTime_parse(UA_DateTime *dst, const UA_String str) {
  538|    594|    if(str.length == 0)
  ------------------
  |  Branch (538:8): [True: 0, False: 594]
  ------------------
  539|      0|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  540|       |
  541|    594|    struct musl_tm dts;
  542|    594|    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|    594|    size_t pos = 0;
  550|    594|    if(str.data[0] == '-' || str.data[0] == '+')
  ------------------
  |  Branch (550:8): [True: 9, False: 585]
  |  Branch (550:30): [True: 2, False: 583]
  ------------------
  551|     11|        pos++;
  552|    594|    UA_Int64 year = 0;
  553|    594|    UA_CHECK(str.length - pos > 5, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    594|    do {                                                                                 \
  |  |  173|    594|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    594|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 31, False: 563]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     31|            EVAL_ON_ERROR;                                                               \
  |  |  175|     31|        }                                                                                \
  |  |  176|    594|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 563]
  |  |  ------------------
  ------------------
  554|    563|    size_t len = parseInt64((char*)&str.data[pos], 5, &year);
  555|    563|    pos += len;
  556|    563|    UA_CHECK(len > 0 && pos < str.length, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    563|    do {                                                                                 \
  |  |  173|    563|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|  1.09k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 31, False: 532]
  |  |  |  |  |  Branch (577:43): [True: 532, False: 31]
  |  |  |  |  |  Branch (577:43): [True: 532, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     31|            EVAL_ON_ERROR;                                                               \
  |  |  175|     31|        }                                                                                \
  |  |  176|    563|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 532]
  |  |  ------------------
  ------------------
  557|    532|    UA_CHECK(len == 4 || str.data[pos] == '-', return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    532|    do {                                                                                 \
  |  |  173|    532|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    980|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 53, False: 479]
  |  |  |  |  |  Branch (577:43): [True: 84, False: 448]
  |  |  |  |  |  Branch (577:43): [True: 395, False: 53]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     53|            EVAL_ON_ERROR;                                                               \
  |  |  175|     53|        }                                                                                \
  |  |  176|    532|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 479]
  |  |  ------------------
  ------------------
  558|    479|    if(str.data[0] == '-')
  ------------------
  |  Branch (558:8): [True: 3, False: 476]
  ------------------
  559|      3|        year = -year;
  560|    479|    dts.tm_year = (UA_Int16)year - 1900;
  561|    479|    if(str.data[pos] == '-')
  ------------------
  |  Branch (561:8): [True: 469, False: 10]
  ------------------
  562|    469|        pos++;
  563|       |
  564|       |    /* Parse the month */
  565|    479|    UA_UInt64 month = 0;
  566|    479|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    479|    do {                                                                                 \
  |  |  173|    479|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    479|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 14, False: 465]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     14|            EVAL_ON_ERROR;                                                               \
  |  |  175|     14|        }                                                                                \
  |  |  176|    479|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 465]
  |  |  ------------------
  ------------------
  567|    465|    len = parseUInt64((char*)&str.data[pos], 2, &month);
  568|    465|    pos += len;
  569|    465|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    465|    do {                                                                                 \
  |  |  173|    465|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    465|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 2, False: 463]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      2|            EVAL_ON_ERROR;                                                               \
  |  |  175|      2|        }                                                                                \
  |  |  176|    465|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 463]
  |  |  ------------------
  ------------------
  570|    463|    dts.tm_mon = (UA_UInt16)month - 1;
  571|    463|    if(str.data[pos] == '-')
  ------------------
  |  Branch (571:8): [True: 22, False: 441]
  ------------------
  572|     22|        pos++;
  573|       |
  574|       |    /* Parse the day and check the T between date and time */
  575|    463|    UA_UInt64 day = 0;
  576|    463|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    463|    do {                                                                                 \
  |  |  173|    463|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    463|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 2, False: 461]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      2|            EVAL_ON_ERROR;                                                               \
  |  |  175|      2|        }                                                                                \
  |  |  176|    463|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 461]
  |  |  ------------------
  ------------------
  577|    461|    len = parseUInt64((char*)&str.data[pos], 2, &day);
  578|    461|    pos += len;
  579|    461|    UA_CHECK(len == 2 || str.data[pos] != 'T',
  ------------------
  |  |  172|    461|    do {                                                                                 \
  |  |  173|    461|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    770|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 3, False: 458]
  |  |  |  |  |  Branch (577:43): [True: 152, False: 309]
  |  |  |  |  |  Branch (577:43): [True: 306, False: 3]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      3|            EVAL_ON_ERROR;                                                               \
  |  |  175|      3|        }                                                                                \
  |  |  176|    461|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 458]
  |  |  ------------------
  ------------------
  580|    461|             return UA_STATUSCODE_BADDECODINGERROR);
  581|    458|    dts.tm_mday = (UA_UInt16)day;
  582|    458|    pos++;
  583|       |
  584|       |    /* Parse the hour */
  585|    458|    UA_UInt64 hour = 0;
  586|    458|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    458|    do {                                                                                 \
  |  |  173|    458|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    458|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 4, False: 454]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      4|            EVAL_ON_ERROR;                                                               \
  |  |  175|      4|        }                                                                                \
  |  |  176|    458|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 454]
  |  |  ------------------
  ------------------
  587|    454|    len = parseUInt64((char*)&str.data[pos], 2, &hour);
  588|    454|    pos += len;
  589|    454|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    454|    do {                                                                                 \
  |  |  173|    454|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    454|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 2, False: 452]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      2|            EVAL_ON_ERROR;                                                               \
  |  |  175|      2|        }                                                                                \
  |  |  176|    454|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 452]
  |  |  ------------------
  ------------------
  590|    452|    dts.tm_hour = (UA_UInt16)hour;
  591|    452|    if(str.data[pos] == ':')
  ------------------
  |  Branch (591:8): [True: 1, False: 451]
  ------------------
  592|      1|        pos++;
  593|       |
  594|       |    /* Parse the minute */
  595|    452|    UA_UInt64 min = 0;
  596|    452|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    452|    do {                                                                                 \
  |  |  173|    452|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    452|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 6, False: 446]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      6|            EVAL_ON_ERROR;                                                               \
  |  |  175|      6|        }                                                                                \
  |  |  176|    452|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 446]
  |  |  ------------------
  ------------------
  597|    446|    len = parseUInt64((char*)&str.data[pos], 2, &min);
  598|    446|    pos += len;
  599|    446|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    446|    do {                                                                                 \
  |  |  173|    446|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    446|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 1, False: 445]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      1|            EVAL_ON_ERROR;                                                               \
  |  |  175|      1|        }                                                                                \
  |  |  176|    446|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 445]
  |  |  ------------------
  ------------------
  600|    445|    dts.tm_min = (UA_UInt16)min;
  601|    445|    if(str.data[pos] == ':')
  ------------------
  |  Branch (601:8): [True: 1, False: 444]
  ------------------
  602|      1|        pos++;
  603|       |
  604|       |    /* Parse the second */
  605|    445|    UA_UInt64 sec = 0;
  606|    445|    UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    445|    do {                                                                                 \
  |  |  173|    445|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    445|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 6, False: 439]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      6|            EVAL_ON_ERROR;                                                               \
  |  |  175|      6|        }                                                                                \
  |  |  176|    445|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 439]
  |  |  ------------------
  ------------------
  607|    439|    len = parseUInt64((char*)&str.data[pos], 2, &sec);
  608|    439|    pos += len;
  609|    439|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    439|    do {                                                                                 \
  |  |  173|    439|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    439|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 3, False: 436]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      3|            EVAL_ON_ERROR;                                                               \
  |  |  175|      3|        }                                                                                \
  |  |  176|    439|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 436]
  |  |  ------------------
  ------------------
  610|    436|    dts.tm_sec = (UA_UInt16)sec;
  611|       |
  612|       |    /* Compute the seconds since the Unix epoch */
  613|    436|    long long sinceunix = musl_tm_to_secs(&dts);
  614|       |
  615|       |    /* Are we within the range that can be represented? */
  616|    436|    long long sinceunix_min =
  617|    436|        (long long)(UA_INT64_MIN / UA_DATETIME_SEC) -
  ------------------
  |  |  119|    436|#define UA_INT64_MIN ((int64_t)-UA_INT64_MAX-1LL)
  |  |  ------------------
  |  |  |  |  118|    436|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  |  |  ------------------
  ------------------
                      (long long)(UA_INT64_MIN / UA_DATETIME_SEC) -
  ------------------
  |  |  285|    436|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    436|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    436|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  618|    436|        (long long)(UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC) -
  ------------------
  |  |  327|    436|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  285|    436|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    436|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    436|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (long long)(UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC) -
  ------------------
  |  |  285|    436|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    436|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    436|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  619|    436|        (long long)1; /* manual correction due to rounding */
  620|    436|    long long sinceunix_max = (long long)
  621|    436|        ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  118|    436|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  ------------------
                      ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  327|    436|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  285|    436|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    436|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    436|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  285|    436|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    436|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    436|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  622|    436|    if(sinceunix < sinceunix_min || sinceunix > sinceunix_max)
  ------------------
  |  Branch (622:8): [True: 28, False: 408]
  |  Branch (622:37): [True: 5, False: 403]
  ------------------
  623|     33|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|     33|#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|    403|    sinceunix -= (sinceunix > 0) ? 1 : -1;
  ------------------
  |  Branch (628:18): [True: 127, False: 276]
  ------------------
  629|    403|    UA_DateTime dt = (UA_DateTime)
  630|    403|        (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  327|    403|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  285|    403|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    403|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    403|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  285|    403|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    403|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    403|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  285|    403|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    403|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    403|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  631|       |
  632|       |    /* Parse the fraction of the second if defined */
  633|    403|    UA_CHECK(pos < str.length, goto finish);
  ------------------
  |  |  172|    403|    do {                                                                                 \
  |  |  173|    403|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    403|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 190, False: 213]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|    190|            EVAL_ON_ERROR;                                                               \
  |  |  175|    190|        }                                                                                \
  |  |  176|    403|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 213]
  |  |  ------------------
  ------------------
  634|    213|    if(str.data[pos] == ',' || str.data[pos] == '.') {
  ------------------
  |  Branch (634:8): [True: 76, False: 137]
  |  Branch (634:32): [True: 31, False: 106]
  ------------------
  635|    107|        pos++;
  636|    107|        double frac = 0.0;
  637|    107|        double denom = 0.1;
  638|  23.6k|        while(pos < str.length && str.data[pos] >= '0' && str.data[pos] <= '9') {
  ------------------
  |  Branch (638:15): [True: 23.5k, False: 53]
  |  Branch (638:35): [True: 23.5k, False: 46]
  |  Branch (638:59): [True: 23.5k, False: 8]
  ------------------
  639|  23.5k|            frac += denom * (str.data[pos] - '0');
  640|  23.5k|            denom *= 0.1;
  641|  23.5k|            pos++;
  642|  23.5k|        }
  643|    107|        frac += 0.00000005; /* Correct rounding when converting to integer */
  644|    107|        dt += (UA_DateTime)(frac * UA_DATETIME_SEC);
  ------------------
  |  |  285|    107|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    107|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    107|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  645|    107|    }
  646|       |
  647|       |    /* Time zone handling */
  648|    213|    UA_CHECK(pos < str.length, goto finish);
  ------------------
  |  |  172|    213|    do {                                                                                 \
  |  |  173|    213|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    213|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 53, False: 160]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     53|            EVAL_ON_ERROR;                                                               \
  |  |  175|     53|        }                                                                                \
  |  |  176|    213|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 160]
  |  |  ------------------
  ------------------
  649|    160|    if(str.data[pos] == 'Z') {
  ------------------
  |  Branch (649:8): [True: 1, False: 159]
  ------------------
  650|      1|        pos++;
  651|    159|    } else if(str.data[pos] == '+' || str.data[pos] == '-') {
  ------------------
  |  Branch (651:15): [True: 78, False: 81]
  |  Branch (651:39): [True: 54, False: 27]
  ------------------
  652|    132|        UA_UInt64 tzHour = 0, tzMin = 0;
  653|    132|        UA_Int64 offsetSeconds = 0;
  654|    132|        UA_Byte tzSign = str.data[pos++];
  655|       |
  656|    132|        UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    132|    do {                                                                                 \
  |  |  173|    132|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    132|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 2, False: 130]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      2|            EVAL_ON_ERROR;                                                               \
  |  |  175|      2|        }                                                                                \
  |  |  176|    132|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 130]
  |  |  ------------------
  ------------------
  657|    130|        len = parseUInt64((char*)&str.data[pos], 2, &tzHour);
  658|    130|        pos += len;
  659|    130|        UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    130|    do {                                                                                 \
  |  |  173|    130|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    130|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 5, False: 125]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      5|            EVAL_ON_ERROR;                                                               \
  |  |  175|      5|        }                                                                                \
  |  |  176|    130|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 125]
  |  |  ------------------
  ------------------
  660|       |
  661|    125|        UA_CHECK(str.length > pos, goto finish); /* Allow missing tz minutes */
  ------------------
  |  |  172|    125|    do {                                                                                 \
  |  |  173|    125|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    125|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 0, False: 125]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      0|            EVAL_ON_ERROR;                                                               \
  |  |  175|      0|        }                                                                                \
  |  |  176|    125|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 125]
  |  |  ------------------
  ------------------
  662|    125|        if(str.data[pos] == ':')
  ------------------
  |  Branch (662:12): [True: 1, False: 124]
  ------------------
  663|      1|            pos++;
  664|       |
  665|    125|        UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    125|    do {                                                                                 \
  |  |  173|    125|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    125|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 7, False: 118]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      7|            EVAL_ON_ERROR;                                                               \
  |  |  175|      7|        }                                                                                \
  |  |  176|    125|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 118]
  |  |  ------------------
  ------------------
  666|    118|        len = parseUInt64((char*)&str.data[pos], 2, &tzMin);
  667|    118|        pos += len;
  668|    118|        UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    118|    do {                                                                                 \
  |  |  173|    118|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  577|    118|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (577:25): [True: 26, False: 92]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     26|            EVAL_ON_ERROR;                                                               \
  |  |  175|     26|        }                                                                                \
  |  |  176|    118|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 92]
  |  |  ------------------
  ------------------
  669|       |
  670|     92|        offsetSeconds = (tzHour * 3600) + (tzMin * 60);
  671|     92|        if(tzSign == '-')
  ------------------
  |  Branch (671:12): [True: 29, False: 63]
  ------------------
  672|     29|            offsetSeconds = -offsetSeconds;
  673|     92|        dt -= (UA_DateTime)(offsetSeconds * UA_DATETIME_SEC);
  ------------------
  |  |  285|     92|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|     92|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|     92|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  674|     92|    } else {
  675|     27|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|     27|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  676|     27|    }
  677|       |
  678|    336| finish:
  679|       |    /* Remove the underflow/overflow protection (see above) */
  680|    336|    if(sinceunix > 0) {
  ------------------
  |  Branch (680:8): [True: 122, False: 214]
  ------------------
  681|    122|        if(dt > UA_INT64_MAX - UA_DATETIME_SEC)
  ------------------
  |  |  118|    122|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  ------------------
                      if(dt > UA_INT64_MAX - UA_DATETIME_SEC)
  ------------------
  |  |  285|    122|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    122|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    122|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (681:12): [True: 3, False: 119]
  ------------------
  682|      3|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|      3|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  683|    119|        dt += UA_DATETIME_SEC;
  ------------------
  |  |  285|    119|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    119|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    119|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  684|    214|    } else {
  685|    214|        if(dt < UA_INT64_MIN + UA_DATETIME_SEC)
  ------------------
  |  |  119|    214|#define UA_INT64_MIN ((int64_t)-UA_INT64_MAX-1LL)
  |  |  ------------------
  |  |  |  |  118|    214|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  |  |  ------------------
  ------------------
                      if(dt < UA_INT64_MIN + UA_DATETIME_SEC)
  ------------------
  |  |  285|    214|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    214|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    214|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (685:12): [True: 17, False: 197]
  ------------------
  686|     17|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|     17|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  687|    197|        dt -= 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
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  688|    197|    }
  689|       |
  690|       |    /* We must be at the end of the string */
  691|    316|    if(pos != str.length)
  ------------------
  |  Branch (691:8): [True: 59, False: 257]
  ------------------
  692|     59|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|     59|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  693|       |
  694|    257|    *dst = dt;
  695|    257|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|    257|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  696|    316|}
UA_ByteString_allocBuffer:
  763|  2.09k|UA_ByteString_allocBuffer(UA_ByteString *bs, size_t length) {
  764|  2.09k|    UA_ByteString_init(bs);
  765|  2.09k|    if(length == 0) {
  ------------------
  |  Branch (765:8): [True: 0, False: 2.09k]
  ------------------
  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|  2.09k|    bs->data = (u8*)UA_calloc(1,length);
  ------------------
  |  |   20|  2.09k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
  770|  2.09k|    if(UA_UNLIKELY(!bs->data))
  ------------------
  |  |  577|  2.09k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  ------------------
  |  |  |  Branch (577:25): [True: 0, False: 2.09k]
  |  |  ------------------
  ------------------
  771|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   31|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  772|  2.09k|    bs->length = length;
  773|  2.09k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|  2.09k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  774|  2.09k|}
UA_NODEID_NUMERIC:
  836|    555|UA_NODEID_NUMERIC(UA_UInt16 nsIndex, UA_UInt32 identifier) {
  837|    555|    UA_NodeId id;
  838|    555|    memset(&id, 0, sizeof(UA_NodeId));
  839|    555|    id.namespaceIndex = nsIndex;
  840|    555|    id.identifierType = UA_NODEIDTYPE_NUMERIC;
  841|    555|    id.identifier.numeric = identifier;
  842|    555|    return id;
  843|    555|}
UA_copy:
 2093|    153|UA_copy(const void *src, void *dst, const UA_DataType *type) {
 2094|    153|    memset(dst, 0, type->memSize); /* init */
 2095|    153|    UA_StatusCode retval = copyJumpTable[type->typeKind](src, dst, type);
 2096|    153|    if(retval != UA_STATUSCODE_GOOD)
  ------------------
  |  |   16|    153|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2096:8): [True: 0, False: 153]
  ------------------
 2097|      0|        UA_clear(dst, type);
 2098|    153|    return retval;
 2099|    153|}
UA_clear:
 2196|  4.53k|UA_clear(void *p, const UA_DataType *type) {
 2197|  4.53k|    clearJumpTable[type->typeKind](p, type);
 2198|  4.53k|    memset(p, 0, type->memSize); /* init */
 2199|  4.53k|}
UA_order:
 2650|     19|UA_Order UA_order(const void *p1, const void *p2, const UA_DataType *type) {
 2651|     19|    return orderJumpTable[type->typeKind](p1, p2, type);
 2652|     19|}
UA_Array_copy:
 2674|    153|              void **dst, const UA_DataType *type) {
 2675|    153|    if(size == 0) {
  ------------------
  |  Branch (2675:8): [True: 9, False: 144]
  ------------------
 2676|      9|        if(src == NULL)
  ------------------
  |  Branch (2676:12): [True: 0, False: 9]
  ------------------
 2677|      0|            *dst = NULL;
 2678|      9|        else
 2679|      9|            *dst= UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  755|      9|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
 2680|      9|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      9|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2681|      9|    }
 2682|       |
 2683|       |    /* Check the array consistency -- defensive programming in case the user
 2684|       |     * manually created an inconsistent array */
 2685|    144|    if(UA_UNLIKELY(!type || !src))
  ------------------
  |  |  577|    288|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  ------------------
  |  |  |  Branch (577:25): [True: 0, False: 144]
  |  |  |  Branch (577:43): [True: 0, False: 144]
  |  |  |  Branch (577:43): [True: 0, False: 144]
  |  |  ------------------
  ------------------
 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|    144|    *dst = UA_calloc(size, type->memSize);
  ------------------
  |  |   20|    144|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
 2690|    144|    if(!*dst)
  ------------------
  |  Branch (2690:8): [True: 0, False: 144]
  ------------------
 2691|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   31|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2692|       |
 2693|    144|    if(type->pointerFree) {
  ------------------
  |  Branch (2693:8): [True: 144, False: 0]
  ------------------
 2694|    144|        memcpy(*dst, src, type->memSize * size);
 2695|    144|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|    144|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2696|    144|    }
 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|    144|}
UA_Array_delete:
 2802|  5.08k|UA_Array_delete(void *p, size_t size, const UA_DataType *type) {
 2803|  5.08k|    if(!type->pointerFree) {
  ------------------
  |  Branch (2803:8): [True: 1.04k, False: 4.03k]
  ------------------
 2804|  1.04k|        uintptr_t ptr = (uintptr_t)p;
 2805|  1.04k|        for(size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (2805:27): [True: 1, False: 1.04k]
  ------------------
 2806|      1|            UA_clear((void*)ptr, type);
 2807|      1|            ptr += type->memSize;
 2808|      1|        }
 2809|  1.04k|    }
 2810|  5.08k|    UA_free((void*)((uintptr_t)p & ~(uintptr_t)UA_EMPTY_ARRAY_SENTINEL));
  ------------------
  |  |   19|  5.08k|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 2811|  5.08k|}
ua_types.c:String_copy:
  281|    153|String_copy(const void *src, void *dst, const UA_DataType *_) {
  282|    153|    const UA_String *srcS = (const UA_String*)src;
  283|    153|    UA_String *dstS = (UA_String *)dst;
  284|    153|    UA_StatusCode res =
  285|    153|        UA_Array_copy(srcS->data, srcS->length, (void**)&dstS->data,
  286|    153|                      &UA_TYPES[UA_TYPES_BYTE]);
  ------------------
  |  |   89|    153|#define UA_TYPES_BYTE 2
  ------------------
  287|    153|    if(res == UA_STATUSCODE_GOOD)
  ------------------
  |  |   16|    153|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (287:8): [True: 153, False: 0]
  ------------------
  288|    153|        dstS->length = srcS->length;
  289|    153|    return res;
  290|    153|}
ua_types.c:nopClear:
 2158|    681|static void nopClear(void *p, const UA_DataType *type) { }
ua_types.c:String_clear:
  293|  4.03k|String_clear(void *p, const UA_DataType *_) {
  294|  4.03k|    UA_String *s = (UA_String*)p;
  295|  4.03k|    UA_Array_delete(s->data, s->length, &UA_TYPES[UA_TYPES_BYTE]);
  ------------------
  |  |   89|  4.03k|#define UA_TYPES_BYTE 2
  ------------------
  296|  4.03k|}
ua_types.c:NodeId_clear:
  778|  1.85k|NodeId_clear(void *p, const UA_DataType *_) {
  779|  1.85k|    UA_NodeId *id = (UA_NodeId*)p;
  780|  1.85k|    switch(id->identifierType) {
  781|      4|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (781:5): [True: 4, False: 1.85k]
  ------------------
  782|     42|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (782:5): [True: 38, False: 1.82k]
  ------------------
  783|     42|        String_clear(&id->identifier.string, NULL);
  784|     42|        break;
  785|  1.81k|    default: break;
  ------------------
  |  Branch (785:5): [True: 1.81k, False: 42]
  ------------------
  786|  1.85k|    }
  787|  1.85k|}
ua_types.c:ExpandedNodeId_clear:
 1079|    675|ExpandedNodeId_clear(void *p, const UA_DataType *_) {
 1080|    675|    UA_ExpandedNodeId *id = (UA_ExpandedNodeId*)p;
 1081|    675|    NodeId_clear(&id->nodeId, NULL);
 1082|       |    String_clear(&id->namespaceUri, NULL);
 1083|    675|}
ua_types.c:QualifiedName_clear:
  397|    210|QualifiedName_clear(void *p, const UA_DataType *_) {
  398|    210|    UA_QualifiedName *qn = (UA_QualifiedName*)p;
  399|       |    String_clear(&qn->name, NULL);
  400|    210|}
ua_types.c:clearStructure:
 2102|  1.45k|clearStructure(void *p, const UA_DataType *type) {
 2103|  1.45k|    uintptr_t ptr = (uintptr_t)p;
 2104|  5.27k|    for(size_t i = 0; i < type->membersSize; ++i) {
  ------------------
  |  Branch (2104:23): [True: 3.82k, False: 1.45k]
  ------------------
 2105|  3.82k|        const UA_DataTypeMember *m = &type->members[i];
 2106|  3.82k|        const UA_DataType *mt = m->memberType;
 2107|  3.82k|        ptr += m->padding;
 2108|  3.82k|        if(!m->isOptional) {
  ------------------
  |  Branch (2108:12): [True: 3.82k, False: 0]
  ------------------
 2109|  3.82k|            if(!m->isArray) {
  ------------------
  |  Branch (2109:16): [True: 2.77k, False: 1.04k]
  ------------------
 2110|  2.77k|                clearJumpTable[mt->typeKind]((void*)ptr, mt);
 2111|  2.77k|                ptr += mt->memSize;
 2112|  2.77k|            } else {
 2113|  1.04k|                size_t length = *(size_t*)ptr;
 2114|  1.04k|                ptr += sizeof(size_t);
 2115|  1.04k|                UA_Array_delete(*(void**)ptr, length, mt);
 2116|  1.04k|                ptr += sizeof(void*);
 2117|  1.04k|            }
 2118|  3.82k|        } 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|  3.82k|    }
 2138|  1.45k|}
ua_types.c:nodeIdOrder:
 2280|      2|nodeIdOrder(const UA_NodeId *p1, const UA_NodeId *p2, const UA_DataType *_) {
 2281|       |    /* Compare namespaceIndex */
 2282|      2|    if(p1->namespaceIndex != p2->namespaceIndex)
  ------------------
  |  Branch (2282:8): [True: 0, False: 2]
  ------------------
 2283|      0|        return (p1->namespaceIndex < p2->namespaceIndex) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2283:16): [True: 0, False: 0]
  ------------------
 2284|       |
 2285|       |    /* Compare identifierType */
 2286|      2|    if(p1->identifierType != p2->identifierType)
  ------------------
  |  Branch (2286:8): [True: 0, False: 2]
  ------------------
 2287|      0|        return (p1->identifierType < p2->identifierType) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2287:16): [True: 0, False: 0]
  ------------------
 2288|       |
 2289|       |    /* Compare the identifier */
 2290|      2|    switch(p1->identifierType) {
 2291|      2|    case UA_NODEIDTYPE_NUMERIC:
  ------------------
  |  Branch (2291:5): [True: 2, False: 0]
  ------------------
 2292|      2|    default:
  ------------------
  |  Branch (2292:5): [True: 0, False: 2]
  ------------------
 2293|      2|        if(p1->identifier.numeric != p2->identifier.numeric)
  ------------------
  |  Branch (2293:12): [True: 1, False: 1]
  ------------------
 2294|      1|            return (p1->identifier.numeric < p2->identifier.numeric) ?
  ------------------
  |  Branch (2294:20): [True: 1, False: 0]
  ------------------
 2295|      1|                UA_ORDER_LESS : UA_ORDER_MORE;
 2296|      1|        return UA_ORDER_EQ;
 2297|      0|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (2297:5): [True: 0, False: 2]
  ------------------
 2298|      0|        return guidOrder(&p1->identifier.guid, &p2->identifier.guid, NULL);
 2299|      0|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (2299:5): [True: 0, False: 2]
  ------------------
 2300|      0|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (2300:5): [True: 0, False: 2]
  ------------------
 2301|       |        return stringOrder(&p1->identifier.string, &p2->identifier.string, NULL);
 2302|      2|    }
 2303|      2|}
ua_types.c:stringOrder:
 2265|     17|stringOrder(const UA_String *p1, const UA_String *p2, const UA_DataType *type) {
 2266|     17|    if(p1->length != p2->length)
  ------------------
  |  Branch (2266:8): [True: 17, False: 0]
  ------------------
 2267|     17|        return (p1->length < p2->length) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2267:16): [True: 17, False: 0]
  ------------------
 2268|       |    /* For zero-length arrays, every pointer not NULL is considered a
 2269|       |     * UA_EMPTY_ARRAY_SENTINEL. */
 2270|      0|    if(p1->data == p2->data) return UA_ORDER_EQ;
  ------------------
  |  Branch (2270:8): [True: 0, False: 0]
  ------------------
 2271|      0|    if(p1->data == NULL) return UA_ORDER_LESS;
  ------------------
  |  Branch (2271:8): [True: 0, False: 0]
  ------------------
 2272|      0|    if(p2->data == NULL) return UA_ORDER_MORE;
  ------------------
  |  Branch (2272:8): [True: 0, False: 0]
  ------------------
 2273|      0|    int cmp = memcmp((const char*)p1->data, (const char*)p2->data, p1->length);
 2274|      0|    if(cmp != 0)
  ------------------
  |  Branch (2274:8): [True: 0, False: 0]
  ------------------
 2275|      0|        return (cmp < 0) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2275:16): [True: 0, False: 0]
  ------------------
 2276|      0|    return UA_ORDER_EQ;
 2277|      0|}

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

UA_readNumberWithBase:
  110|     53|UA_readNumberWithBase(const UA_Byte *buf, size_t buflen, UA_UInt32 *number, UA_Byte base) {
  111|     53|    UA_assert(buf);
  ------------------
  |  |  397|     53|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (111:5): [True: 53, False: 0]
  ------------------
  112|     53|    UA_assert(number);
  ------------------
  |  |  397|     53|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (112:5): [True: 53, False: 0]
  ------------------
  113|     53|    u32 n = 0;
  114|     53|    size_t progress = 0;
  115|       |    /* read numbers until the end or a non-number character appears */
  116|  17.4k|    while(progress < buflen) {
  ------------------
  |  Branch (116:11): [True: 17.4k, False: 22]
  ------------------
  117|  17.4k|        u8 c = buf[progress];
  118|  17.4k|        if(c >= '0' && c <= '9' && c <= '0' + (base-1))
  ------------------
  |  Branch (118:12): [True: 17.4k, False: 9]
  |  Branch (118:24): [True: 17.4k, False: 32]
  |  Branch (118:36): [True: 17.4k, False: 0]
  ------------------
  119|  17.4k|           n = (n * base) + c - '0';
  120|     41|        else if(base > 9 && c >= 'a' && c <= 'z' && c <= 'a' + (base-11))
  ------------------
  |  Branch (120:17): [True: 41, False: 0]
  |  Branch (120:29): [True: 24, False: 17]
  |  Branch (120:41): [True: 14, False: 10]
  |  Branch (120:53): [True: 7, False: 7]
  ------------------
  121|      7|           n = (n * base) + c-'a' + 10;
  122|     34|        else if(base > 9 && c >= 'A' && c <= 'Z' && c <= 'A' + (base-11))
  ------------------
  |  Branch (122:17): [True: 34, False: 0]
  |  Branch (122:29): [True: 23, False: 11]
  |  Branch (122:41): [True: 5, False: 18]
  |  Branch (122:53): [True: 3, False: 2]
  ------------------
  123|      3|           n = (n * base) + c-'A' + 10;
  124|     31|        else
  125|     31|           break;
  126|  17.4k|        ++progress;
  127|  17.4k|    }
  128|     53|    *number = n;
  129|     53|    return progress;
  130|     53|}
UA_readNumber:
  133|     42|UA_readNumber(const UA_Byte *buf, size_t buflen, UA_UInt32 *number) {
  134|     42|    return UA_readNumberWithBase(buf, buflen, number, 10);
  135|     42|}
lookupRefType:
  722|      1|lookupRefType(UA_Server *server, UA_QualifiedName *qn, UA_NodeId *outRefTypeId) {
  723|       |    /* Check well-known ReferenceTypes first */
  724|      1|    if(qn->namespaceIndex == 0) {
  ------------------
  |  Branch (724:8): [True: 1, False: 0]
  ------------------
  725|     18|        for(size_t i = 0; i < KNOWNREFTYPES; i++) {
  ------------------
  |  |  700|     18|#define KNOWNREFTYPES 17
  ------------------
  |  Branch (725:27): [True: 17, False: 1]
  ------------------
  726|     17|            if(UA_String_equal(&qn->name, &knownRefTypes[i].browseName)) {
  ------------------
  |  Branch (726:16): [True: 0, False: 17]
  ------------------
  727|      0|                *outRefTypeId = UA_NODEID_NUMERIC(0, knownRefTypes[i].identifier);
  728|      0|                return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  729|      0|            }
  730|     17|        }
  731|      1|    }
  732|       |
  733|       |    /* Browse the information model. Return the first results if the browse name
  734|       |     * in the hierarchy is ambiguous. */
  735|      1|    if(server) {
  ------------------
  |  Branch (735:8): [True: 0, False: 1]
  ------------------
  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|      1|    return UA_STATUSCODE_BADNOTFOUND;
  ------------------
  |  |  232|      1|#define UA_STATUSCODE_BADNOTFOUND ((UA_StatusCode) 0x803E0000)
  ------------------
  766|      1|}
UA_String_unescape:
  798|    150|UA_String_unescape(UA_String *str, UA_Boolean copyEscape, UA_Escaping esc) {
  799|    150|    if(esc == UA_ESCAPING_NONE)
  ------------------
  |  Branch (799:8): [True: 147, False: 3]
  ------------------
  800|    147|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|    147|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  801|       |
  802|       |    /* Does the string need escaping? */
  803|      3|    UA_String tmp;
  804|      3|    status res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      3|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  805|      3|    u8 *pos = str->data;
  806|      3|    u8 *end = str->data + str->length;
  807|      3|    u8 escape_char = (esc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (807:23): [True: 1, False: 2]
  ------------------
  808|      2|                      esc == UA_ESCAPING_PERCENT_EXTENDED) ? '%' : '&';
  ------------------
  |  Branch (808:23): [True: 1, False: 1]
  ------------------
  809|     10|    for(; pos < end; pos++) {
  ------------------
  |  Branch (809:11): [True: 7, False: 3]
  ------------------
  810|      7|        if(*pos == escape_char)
  ------------------
  |  Branch (810:12): [True: 0, False: 7]
  ------------------
  811|      0|            goto escape;
  812|      7|    }
  813|       |
  814|      3|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      3|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  815|       |
  816|      0| escape:
  817|      0|    if(copyEscape) {
  ------------------
  |  Branch (817:8): [True: 0, False: 0]
  ------------------
  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|      0|    u8 byte = 0;
  826|      0|    u8 *writepos = pos;
  827|       |
  828|      0|    res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   43|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  829|      0|    if(esc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (829:8): [True: 0, False: 0]
  ------------------
  830|      0|       esc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (830:8): [True: 0, False: 0]
  ------------------
  831|       |        /* Percent-Escaping */
  832|      0|        for(; pos < end; pos++) {
  ------------------
  |  Branch (832:15): [True: 0, False: 0]
  ------------------
  833|      0|            if(*pos == '%') {
  ------------------
  |  Branch (833:16): [True: 0, False: 0]
  ------------------
  834|      0|                if(pos + 2 >= end || !isHex(pos[1]) || !isHex(pos[2]))
  ------------------
  |  Branch (834:20): [True: 0, False: 0]
  |  Branch (834:38): [True: 0, False: 0]
  |  Branch (834:56): [True: 0, False: 0]
  ------------------
  835|      0|                    goto out;
  836|      0|                if(pos[1] >= 'a')
  ------------------
  |  Branch (836:20): [True: 0, False: 0]
  ------------------
  837|      0|                    byte = pos[1] - ('a' - 10);
  838|      0|                else if(pos[1] >= 'A')
  ------------------
  |  Branch (838:25): [True: 0, False: 0]
  ------------------
  839|      0|                    byte = pos[1] - ('A' - 10);
  840|      0|                else
  841|      0|                    byte = pos[1] - '0';
  842|      0|                byte <<= 4;
  843|       |
  844|      0|                if(pos[2] >= 'a')
  ------------------
  |  Branch (844:20): [True: 0, False: 0]
  ------------------
  845|      0|                    byte += (u8)(pos[2] - ('a' - 10));
  846|      0|                else if(pos[2] >= 'A')
  ------------------
  |  Branch (846:25): [True: 0, False: 0]
  ------------------
  847|      0|                    byte += (u8)(pos[2] - ('A' - 10));
  848|      0|                else
  849|      0|                    byte += (u8)(pos[2] - '0');
  850|       |
  851|      0|                pos += 2;
  852|      0|                *writepos++ = byte;
  853|      0|                continue;
  854|      0|            }
  855|      0|            *writepos++ = *pos;
  856|      0|        }
  857|      0|    } else {
  858|       |        /* And-Escaping */
  859|      0|        for(; pos < end; pos++) {
  ------------------
  |  Branch (859:15): [True: 0, False: 0]
  ------------------
  860|      0|            if(*pos == '&') {
  ------------------
  |  Branch (860:16): [True: 0, False: 0]
  ------------------
  861|      0|                pos++;
  862|      0|                if(pos == end)
  ------------------
  |  Branch (862:20): [True: 0, False: 0]
  ------------------
  863|      0|                    goto out;
  864|      0|            }
  865|      0|            *writepos++ = *pos;
  866|      0|        }
  867|      0|    }
  868|      0|    res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  869|       |
  870|      0| out:
  871|      0|    if(copyEscape) {
  ------------------
  |  Branch (871:8): [True: 0, False: 0]
  ------------------
  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|      0|    } else if(res == UA_STATUSCODE_GOOD) {
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (879:15): [True: 0, False: 0]
  ------------------
  880|      0|        str->length = (size_t)(writepos - str->data);
  881|      0|    }
  882|      0|    return res;
  883|      0|}
UA_String_escapedSize:
  889|      1|UA_String_escapedSize(const UA_String s, UA_Escaping esc) {
  890|       |    /* Find out the overhead from escaping */
  891|      1|    size_t overhead = 0;
  892|      6|    for(size_t j = 0; j < s.length; j++) {
  ------------------
  |  Branch (892:23): [True: 5, False: 1]
  ------------------
  893|      5|        if(esc == UA_ESCAPING_AND_EXTENDED)
  ------------------
  |  Branch (893:12): [True: 0, False: 5]
  ------------------
  894|      0|            overhead += isReservedAndExtended(s.data[j]);
  895|      5|        else if(esc == UA_ESCAPING_AND)
  ------------------
  |  Branch (895:17): [True: 5, False: 0]
  ------------------
  896|      5|            overhead += isReservedAnd(s.data[j]);
  897|      0|        else if(esc == UA_ESCAPING_PERCENT)
  ------------------
  |  Branch (897:17): [True: 0, False: 0]
  ------------------
  898|      0|            overhead += (isReservedPercent(s.data[j]) ? 2 : 0);
  ------------------
  |  Branch (898:26): [True: 0, False: 0]
  ------------------
  899|      0|        else /* if(esc == UA_ESCAPING_PERCENT_EXTENDED) */
  900|      0|            overhead += (isReservedPercentExtended(s.data[j]) ? 2 : 0);
  ------------------
  |  Branch (900:26): [True: 0, False: 0]
  ------------------
  901|      5|    }
  902|       |
  903|      1|    return s.length + overhead;
  904|      1|}
UA_String_escapeInsert:
  907|      1|UA_String_escapeInsert(u8 *pos, const UA_String s2, UA_Escaping esc) {
  908|      1|    u8 *begin = pos;
  909|       |
  910|      1|    if(esc == UA_ESCAPING_NONE) {
  ------------------
  |  Branch (910:8): [True: 0, False: 1]
  ------------------
  911|      0|        for(size_t j = 0; j < s2.length; j++)
  ------------------
  |  Branch (911:27): [True: 0, False: 0]
  ------------------
  912|      0|            *pos++ = s2.data[j];
  913|      1|    } else if(esc == UA_ESCAPING_PERCENT || esc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (913:15): [True: 0, False: 1]
  |  Branch (913:45): [True: 0, False: 1]
  ------------------
  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)) {
  ------------------
  |  |  576|      0|# define UA_LIKELY(x) __builtin_expect((x), 1)
  |  |  ------------------
  |  |  |  Branch (576: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|      1|    } else {
  926|      6|        for(size_t j = 0; j < s2.length; j++) {
  ------------------
  |  Branch (926:27): [True: 5, False: 1]
  ------------------
  927|      5|            UA_Boolean reserved = (esc == UA_ESCAPING_AND_EXTENDED) ?
  ------------------
  |  Branch (927:35): [True: 0, False: 5]
  ------------------
  928|      5|                isReservedAndExtended(s2.data[j]) : isReservedAnd(s2.data[j]);
  929|      5|            if(reserved)
  ------------------
  |  Branch (929:16): [True: 0, False: 5]
  ------------------
  930|      0|                *pos++ = '&';
  931|      5|            *pos++ = s2.data[j];
  932|      5|        }
  933|      1|    }
  934|       |
  935|      1|    return (size_t)(pos - begin);
  936|      1|}
UA_String_escapeAppend:
  939|      1|UA_String_escapeAppend(UA_String *s, const UA_String s2, UA_Escaping esc) {
  940|      1|    if(esc == UA_ESCAPING_NONE)
  ------------------
  |  Branch (940:8): [True: 0, False: 1]
  ------------------
  941|      0|        return UA_String_append(s, s2);
  942|       |
  943|       |    /* Allocate memory for the additional escaped string */
  944|      1|    size_t escapedLength = UA_String_escapedSize(s2, esc);
  945|      1|    UA_Byte *buf = (UA_Byte*)
  946|      1|        UA_realloc(s->data, s->length + s2.length + escapedLength);
  ------------------
  |  |   21|      1|#define UA_realloc(ptr, size) UA_reallocSingleton(ptr, size)
  ------------------
  947|      1|    if(!buf)
  ------------------
  |  Branch (947:8): [True: 0, False: 1]
  ------------------
  948|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   31|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  949|       |
  950|       |    /* Escape and insert at the end */
  951|      1|    s->data = buf;
  952|      1|    UA_String_escapeInsert(s->data + s->length, s2, esc);
  953|      1|    s->length += escapedLength;
  954|      1|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      1|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  955|      1|}
UA_RelativePath_print:
 1053|      1|UA_RelativePath_print(const UA_RelativePath *rp, UA_String *out) {
 1054|      1|    return printRelativePath(rp, out, UA_ESCAPING_AND);
 1055|      1|}
ua_util.c:printRelativePath:
  995|      1|printRelativePath(const UA_RelativePath *rp, UA_String *out, UA_Escaping esc) {
  996|      1|    UA_String tmp = UA_STRING_NULL;
  997|      1|    UA_StatusCode res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      1|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  998|      2|    for(size_t i = 0; i < rp->elementsSize && res == UA_STATUSCODE_GOOD; i++) {
  ------------------
  |  |   16|      1|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (998:23): [True: 1, False: 1]
  |  Branch (998:47): [True: 1, False: 0]
  ------------------
  999|       |        /* Print the reference type */
 1000|      1|        UA_RelativePathElement *elm = &rp->elements[i];
 1001|      1|        if(UA_NodeId_equal(&hierarchicalRefs, &elm->referenceTypeId) &&
  ------------------
  |  Branch (1001:12): [True: 0, False: 1]
  ------------------
 1002|      0|           !elm->isInverse && elm->includeSubtypes) {
  ------------------
  |  Branch (1002:12): [True: 0, False: 0]
  |  Branch (1002:31): [True: 0, False: 0]
  ------------------
 1003|      0|            res |= UA_String_append(&tmp, UA_STRING("/"));
 1004|      1|        } else if(esc == UA_ESCAPING_AND &&
  ------------------
  |  Branch (1004:19): [True: 1, False: 0]
  ------------------
 1005|      1|                  UA_NodeId_equal(&aggregatesRefs, &elm->referenceTypeId) &&
  ------------------
  |  Branch (1005:19): [True: 1, False: 0]
  ------------------
 1006|      1|                  !elm->isInverse && elm->includeSubtypes) {
  ------------------
  |  Branch (1006:19): [True: 1, False: 0]
  |  Branch (1006:38): [True: 1, False: 0]
  ------------------
 1007|      1|            res |= UA_String_append(&tmp, UA_STRING("."));
 1008|      1|        } else {
 1009|      0|            res |= UA_String_append(&tmp, UA_STRING("<"));
 1010|      0|            if(!elm->includeSubtypes)
  ------------------
  |  Branch (1010:16): [True: 0, False: 0]
  ------------------
 1011|      0|                res |= UA_String_append(&tmp, UA_STRING("#"));
 1012|      0|            if(elm->isInverse)
  ------------------
  |  Branch (1012:16): [True: 0, False: 0]
  ------------------
 1013|      0|                res |= UA_String_append(&tmp, UA_STRING("!"));
 1014|      0|            if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1014:16): [True: 0, False: 0]
  ------------------
 1015|      0|                break;
 1016|       |
 1017|      0|            UA_Byte bnBuf[512];
 1018|      0|            UA_String bnBufStr = {512, bnBuf};
 1019|      0|            res = getRefTypeBrowseName(&elm->referenceTypeId, &bnBufStr);
 1020|      0|            if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1020:16): [True: 0, False: 0]
  ------------------
 1021|      0|                UA_String_init(&bnBufStr);
 1022|      0|                res = getRefTypeBrowseName(&elm->referenceTypeId, &bnBufStr);
 1023|      0|                if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   16|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1023:20): [True: 0, False: 0]
  ------------------
 1024|      0|                    break;
 1025|      0|            }
 1026|      0|            res |= UA_String_escapeAppend(&tmp, bnBufStr, esc);
 1027|      0|            res |= UA_String_append(&tmp, UA_STRING(">"));
 1028|      0|            if(bnBufStr.data != bnBuf)
  ------------------
  |  Branch (1028:16): [True: 0, False: 0]
  ------------------
 1029|      0|                UA_String_clear(&bnBufStr);
 1030|      0|        }
 1031|       |
 1032|       |        /* Print the qualified name */
 1033|      1|        UA_QualifiedName *qn = &elm->targetName;
 1034|      1|        if(qn->namespaceIndex > 0) {
  ------------------
  |  Branch (1034:12): [True: 0, False: 1]
  ------------------
 1035|      0|            char nsStr[8]; /* Enough for a uint16 */
 1036|      0|            itoaUnsigned(qn->namespaceIndex, nsStr, 10);
 1037|      0|            res |= UA_String_append(&tmp, UA_STRING(nsStr));
 1038|      0|            res |= UA_String_append(&tmp, UA_STRING(":"));
 1039|      0|        }
 1040|      1|        res |= UA_String_escapeAppend(&tmp, qn->name, esc);
 1041|      1|    }
 1042|       |
 1043|       |    /* Encoding failed, clean up */
 1044|      1|    if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   16|      1|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1044:8): [True: 0, False: 1]
  ------------------
 1045|      0|        UA_String_clear(&tmp);
 1046|      0|        return res;
 1047|      0|    }
 1048|       |
 1049|      1|    return moveTmpToOut(&tmp, out);
 1050|      1|}
ua_util.c:moveTmpToOut:
  958|      1|moveTmpToOut(UA_String *tmp, UA_String *out) {
  959|       |    /* Output has zero length */
  960|      1|    if(tmp->length == 0) {
  ------------------
  |  Branch (960:8): [True: 0, False: 1]
  ------------------
  961|      0|        UA_assert(tmp->data == NULL);
  ------------------
  |  |  397|      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|      1|    if(out->length == 0) {
  ------------------
  |  Branch (969:8): [True: 1, False: 0]
  ------------------
  970|      1|        *out = *tmp;
  971|      1|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   16|      1|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  972|      1|    }
  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|  7.49k|isTrue(uint8_t expr) {
  168|  7.49k|    return expr;
  169|  7.49k|}
ua_util.c:isReservedAnd:
   83|     10|isReservedAnd(u8 c) {
   84|     10|    return (c == '/' || c == '.' || c == '<' || c == '>' ||
  ------------------
  |  Branch (84:13): [True: 0, False: 10]
  |  Branch (84:25): [True: 0, False: 10]
  |  Branch (84:37): [True: 0, False: 10]
  |  Branch (84:49): [True: 0, False: 10]
  ------------------
   85|     10|            c == ':' || c == '#' || c == '!' || c == '&');
  ------------------
  |  Branch (85:13): [True: 0, False: 10]
  |  Branch (85:25): [True: 0, False: 10]
  |  Branch (85:37): [True: 0, False: 10]
  |  Branch (85:49): [True: 0, False: 10]
  ------------------
   86|     10|}
ua_types_lex.c:isReservedPercentExtended:
  100|    662|isReservedPercentExtended(u8 c) {
  101|    662|    return (isReservedPercent(c) || c == ':' || c == '#' || c == '[' || c == ']' ||
  ------------------
  |  Branch (101:13): [True: 3, False: 659]
  |  Branch (101:37): [True: 0, False: 659]
  |  Branch (101:49): [True: 0, False: 659]
  |  Branch (101:61): [True: 0, False: 659]
  |  Branch (101:73): [True: 0, False: 659]
  ------------------
  102|    659|            c == '&' || c == '(' || c == ')' || c == ',' || c == '<' || c == '>' ||
  ------------------
  |  Branch (102:13): [True: 1, False: 658]
  |  Branch (102:25): [True: 1, False: 657]
  |  Branch (102:37): [True: 0, False: 657]
  |  Branch (102:49): [True: 0, False: 657]
  |  Branch (102:61): [True: 1, False: 656]
  |  Branch (102:73): [True: 0, False: 656]
  ------------------
  103|    656|            c == '`' || c == '/' || c == '\\' || c == '"' || c == '\'' );
  ------------------
  |  Branch (103:13): [True: 0, False: 656]
  |  Branch (103:25): [True: 0, False: 656]
  |  Branch (103:37): [True: 0, False: 656]
  |  Branch (103:50): [True: 0, False: 656]
  |  Branch (103:62): [True: 0, False: 656]
  ------------------
  104|    662|}
ua_types_lex.c:isReservedPercent:
   95|    662|isReservedPercent(u8 c) {
   96|    662|    return (c == ';'  || c == '%' || c <= ' ' || c == 127);
  ------------------
  |  Branch (96:13): [True: 0, False: 662]
  |  Branch (96:26): [True: 0, False: 662]
  |  Branch (96:38): [True: 3, False: 659]
  |  Branch (96:50): [True: 0, False: 659]
  ------------------
   97|    662|}
ua_types_lex.c:isReservedAnd:
   83|      5|isReservedAnd(u8 c) {
   84|      5|    return (c == '/' || c == '.' || c == '<' || c == '>' ||
  ------------------
  |  Branch (84:13): [True: 0, False: 5]
  |  Branch (84:25): [True: 0, False: 5]
  |  Branch (84:37): [True: 0, False: 5]
  |  Branch (84:49): [True: 0, False: 5]
  ------------------
   85|      5|            c == ':' || c == '#' || c == '!' || c == '&');
  ------------------
  |  Branch (85:13): [True: 0, False: 5]
  |  Branch (85:25): [True: 0, False: 5]
  |  Branch (85:37): [True: 0, False: 5]
  |  Branch (85:49): [True: 0, False: 5]
  ------------------
   86|      5|}

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

fuzz_parse_string.cc:_ZL14UA_NodeId_initP9UA_NodeId:
  241|    256|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL15UA_NodeId_clearP9UA_NodeId:
  241|    256|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL12UA_Guid_initP7UA_Guid:
  241|    205|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL22UA_ExpandedNodeId_initP17UA_ExpandedNodeId:
  241|    339|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL23UA_ExpandedNodeId_clearP17UA_ExpandedNodeId:
  241|    339|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL21UA_QualifiedName_initP16UA_QualifiedName:
  241|    145|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL22UA_QualifiedName_clearP16UA_QualifiedName:
  241|    145|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL20UA_RelativePath_initP15UA_RelativePath:
  241|    217|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL15UA_String_clearP9UA_String:
  241|  2.09k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL21UA_RelativePath_clearP15UA_RelativePath:
  241|    217|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL30UA_SimpleAttributeOperand_initP25UA_SimpleAttributeOperand:
  241|    277|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL31UA_SimpleAttributeOperand_clearP25UA_SimpleAttributeOperand:
  241|    277|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL19UA_ReadValueId_initP14UA_ReadValueId:
  241|     62|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL20UA_ReadValueId_clearP14UA_ReadValueId:
  241|     62|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types.c:UA_ByteString_init:
  241|  2.09k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_String_equal:
  241|     17|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_NodeId_equal:
  241|      2|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_String_copy:
  241|    153|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_clear:
  241|    249|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_ExpandedNodeId_clear:
  241|    336|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_QualifiedName_clear:
  241|      1|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePath_init:
  241|    538|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePathElement_init:
  241|    532|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePathElement_clear:
  241|      1|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePath_clear:
  241|    216|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_AttributeOperand_init:
  241|    339|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_SimpleAttributeOperand_init:
  241|      5|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_String_init:
  241|      5|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_init:
  241|      5|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_QualifiedName_init:
  241|    147|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_AttributeOperand_clear:
  241|    338|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_ReadValueId_init:
  241|      1|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl

