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

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

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

parseUInt64:
   30|  4.57k|parseUInt64(const char *str, size_t size, uint64_t *result) {
   31|  4.57k|    size_t i = 0;
   32|  4.57k|    uint64_t n = 0, prev = 0;
   33|       |
   34|       |    /* Hex */
   35|  4.57k|    if(size > 2 && str[0] == '0' && (str[1] | 32) == 'x') {
  ------------------
  |  Branch (35:8): [True: 795, False: 3.77k]
  |  Branch (35:20): [True: 98, False: 697]
  |  Branch (35:37): [True: 28, False: 70]
  ------------------
   36|     28|        i = 2;
   37|     76|        for(; i < size; i++) {
  ------------------
  |  Branch (37:15): [True: 68, False: 8]
  ------------------
   38|     68|            uint8_t c = (uint8_t)str[i] | 32;
   39|     68|            if(c >= '0' && c <= '9')
  ------------------
  |  Branch (39:16): [True: 63, False: 5]
  |  Branch (39:28): [True: 29, False: 34]
  ------------------
   40|     29|                c = (uint8_t)(c - '0');
   41|     39|            else if(c >= 'a' && c <='f')
  ------------------
  |  Branch (41:21): [True: 30, False: 9]
  |  Branch (41:33): [True: 19, False: 11]
  ------------------
   42|     19|                c = (uint8_t)(c - 'a' + 10);
   43|     20|            else if(c >= 'A' && c <='F')
  ------------------
  |  Branch (43:21): [True: 12, False: 8]
  |  Branch (43:33): [True: 0, False: 12]
  ------------------
   44|      0|                c = (uint8_t)(c - 'A' + 10);
   45|     20|            else
   46|     20|                break;
   47|     48|            n = (n << 4) | (c & 0xF);
   48|     48|            if(n < prev) /* Check for overflow */
  ------------------
  |  Branch (48:16): [True: 0, False: 48]
  ------------------
   49|      0|                return 0;
   50|     48|            prev = n;
   51|     48|        }
   52|     28|        *result = n;
   53|     28|        return (i > 2) ? i : 0; /* 2 -> No digit was parsed */
  ------------------
  |  Branch (53:16): [True: 24, False: 4]
  ------------------
   54|     28|    }
   55|       |
   56|       |    /* Decimal */
   57|  13.3k|    for(; i < size; i++) {
  ------------------
  |  Branch (57:11): [True: 9.85k, False: 3.46k]
  ------------------
   58|  9.85k|        if(str[i] < '0' || str[i] > '9')
  ------------------
  |  Branch (58:12): [True: 873, False: 8.98k]
  |  Branch (58:28): [True: 208, False: 8.77k]
  ------------------
   59|  1.08k|            break;
   60|       |        /* Fast multiplication: n*10 == (n*8) + (n*2) */
   61|  8.77k|        n = (n << 3) + (n << 1) + (uint8_t)(str[i] - '0');
   62|  8.77k|        if(n < prev) /* Check for overflow */
  ------------------
  |  Branch (62:12): [True: 0, False: 8.77k]
  ------------------
   63|      0|            return 0;
   64|  8.77k|        prev = n;
   65|  8.77k|    }
   66|  4.54k|    *result = n;
   67|  4.54k|    return i;
   68|  4.54k|}
parseInt64:
   71|    795|parseInt64(const char *str, size_t size, int64_t *result) {
   72|       |    /* Negative value? */
   73|    795|    size_t i = 0;
   74|    795|    bool neg = false;
   75|    795|    if(*str == '-' || *str == '+') {
  ------------------
  |  Branch (75:8): [True: 15, False: 780]
  |  Branch (75:23): [True: 1, False: 779]
  ------------------
   76|     16|        neg = (*str == '-');
   77|     16|        i++;
   78|     16|    }
   79|       |
   80|       |    /* Parse as unsigned */
   81|    795|    uint64_t n = 0;
   82|    795|    size_t len = parseUInt64(&str[i], size - i, &n);
   83|    795|    if(len == 0)
  ------------------
  |  Branch (83:8): [True: 19, False: 776]
  ------------------
   84|     19|        return 0;
   85|       |
   86|       |    /* Check for overflow, adjust and return */
   87|    776|    if(!neg) {
  ------------------
  |  Branch (87:8): [True: 761, False: 15]
  ------------------
   88|    761|        if(n > 9223372036854775807UL)
  ------------------
  |  Branch (88:12): [True: 0, False: 761]
  ------------------
   89|      0|            return 0;
   90|    761|        *result = (int64_t)n;
   91|    761|    } else {
   92|       |        /* n is unsigned, so 9223372036854775808UL == 2^63 fits without
   93|       |         * overflow. (int64_t)n would also fit for n in [0, 2^63], but
   94|       |         * the negation -(int64_t)(2^63) is undefined because the result
   95|       |         * (which is +2^63) cannot be represented. Use the unsigned
   96|       |         * representation and reinterpret as int64_t instead. */
   97|     15|        if(n > 9223372036854775808UL)
  ------------------
  |  Branch (97:12): [True: 0, False: 15]
  ------------------
   98|      0|            return 0;
   99|     15|        *result = (n == 9223372036854775808UL)
  ------------------
  |  Branch (99:19): [True: 0, False: 15]
  ------------------
  100|     15|            ? (int64_t)(-9223372036854775807LL - 1)
  101|     15|            : -(int64_t)n;
  102|     15|    }
  103|    776|    return len + i;
  104|    776|}

UA_STRING:
  219|  15.2k|UA_STRING(char *chars) {
  220|  15.2k|    UA_String s = {0, NULL};
  221|  15.2k|    if(!chars)
  ------------------
  |  Branch (221:8): [True: 0, False: 15.2k]
  ------------------
  222|      0|        return s;
  223|  15.2k|    s.length = strlen(chars);
  224|  15.2k|    s.data = (UA_Byte*)chars;
  225|  15.2k|    return s;
  226|  15.2k|}
UA_String_append:
  298|  15.2k|UA_String_append(UA_String *s, const UA_String s2) {
  299|  15.2k|    if(s2.length == 0)
  ------------------
  |  Branch (299:8): [True: 0, False: 15.2k]
  ------------------
  300|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  301|  15.2k|    UA_Byte *buf = (UA_Byte*)UA_realloc(s->data, s->length + s2.length);
  ------------------
  |  |   21|  15.2k|#define UA_realloc(ptr, size) UA_reallocSingleton(ptr, size)
  ------------------
  302|  15.2k|    if(!buf)
  ------------------
  |  Branch (302:8): [True: 0, False: 15.2k]
  ------------------
  303|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  304|  15.2k|    memcpy(buf + s->length, s2.data, s2.length);
  305|  15.2k|    s->data = buf;
  306|  15.2k|    s->length += s2.length;
  307|  15.2k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  15.2k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  308|  15.2k|}
UA_DateTime_parse:
  530|    812|UA_DateTime_parse(UA_DateTime *dst, const UA_String str) {
  531|    812|    if(str.length == 0)
  ------------------
  |  Branch (531:8): [True: 0, False: 812]
  ------------------
  532|      0|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      0|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  533|       |
  534|    812|    struct musl_tm dts;
  535|    812|    memset(&dts, 0, sizeof(dts));
  536|       |
  537|       |    /* Parse the year. The ISO standard asks for four digits. But we accept up
  538|       |     * to five with an optional plus or minus in front due to the range of the
  539|       |     * DateTime 64bit integer. But in that case we require the year and the
  540|       |     * month to be separated by a '-'. Otherwise we cannot know where the month
  541|       |     * starts. */
  542|    812|    size_t pos = 0;
  543|    812|    if(str.data[0] == '-' || str.data[0] == '+')
  ------------------
  |  Branch (543:8): [True: 16, False: 796]
  |  Branch (543:30): [True: 10, False: 786]
  ------------------
  544|     26|        pos++;
  545|    812|    UA_Int64 year = 0;
  546|    812|    UA_CHECK(str.length - pos > 5, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    812|    do {                                                                                 \
  |  |  173|    812|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    812|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 17, False: 795]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     17|            EVAL_ON_ERROR;                                                               \
  |  |  175|     17|        }                                                                                \
  |  |  176|    812|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 795]
  |  |  ------------------
  ------------------
  547|    795|    size_t len = parseInt64((char*)&str.data[pos], 5, &year);
  548|    795|    pos += len;
  549|    795|    UA_CHECK(len > 0 && pos < str.length, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    795|    do {                                                                                 \
  |  |  173|    795|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|  1.57k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 19, False: 776]
  |  |  |  |  |  Branch (579:43): [True: 776, False: 19]
  |  |  |  |  |  Branch (579:43): [True: 776, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     19|            EVAL_ON_ERROR;                                                               \
  |  |  175|     19|        }                                                                                \
  |  |  176|    795|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 776]
  |  |  ------------------
  ------------------
  550|    776|    UA_CHECK(len == 4 || str.data[pos] == '-', return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    776|    do {                                                                                 \
  |  |  173|    776|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|  1.39k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 51, False: 725]
  |  |  |  |  |  Branch (579:43): [True: 153, False: 623]
  |  |  |  |  |  Branch (579:43): [True: 572, False: 51]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     51|            EVAL_ON_ERROR;                                                               \
  |  |  175|     51|        }                                                                                \
  |  |  176|    776|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 725]
  |  |  ------------------
  ------------------
  551|    725|    if(str.data[0] == '-')
  ------------------
  |  Branch (551:8): [True: 8, False: 717]
  ------------------
  552|      8|        year = -year;
  553|    725|    dts.tm_year = (UA_Int16)year - 1900;
  554|    725|    if(str.data[pos] == '-')
  ------------------
  |  Branch (554:8): [True: 705, False: 20]
  ------------------
  555|    705|        pos++;
  556|       |
  557|       |    /* Parse the month */
  558|    725|    UA_UInt64 month = 0;
  559|    725|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    725|    do {                                                                                 \
  |  |  173|    725|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    725|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 24, False: 701]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     24|            EVAL_ON_ERROR;                                                               \
  |  |  175|     24|        }                                                                                \
  |  |  176|    725|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 701]
  |  |  ------------------
  ------------------
  560|    701|    len = parseUInt64((char*)&str.data[pos], 2, &month);
  561|    701|    pos += len;
  562|    701|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    701|    do {                                                                                 \
  |  |  173|    701|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    701|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 4, False: 697]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      4|            EVAL_ON_ERROR;                                                               \
  |  |  175|      4|        }                                                                                \
  |  |  176|    701|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 697]
  |  |  ------------------
  ------------------
  563|    697|    dts.tm_mon = (UA_UInt16)month - 1;
  564|    697|    if(str.data[pos] == '-')
  ------------------
  |  Branch (564:8): [True: 4, False: 693]
  ------------------
  565|      4|        pos++;
  566|       |
  567|       |    /* Parse the day and check the T between date and time */
  568|    697|    UA_UInt64 day = 0;
  569|    697|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    697|    do {                                                                                 \
  |  |  173|    697|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    697|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 3, False: 694]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      3|            EVAL_ON_ERROR;                                                               \
  |  |  175|      3|        }                                                                                \
  |  |  176|    697|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 694]
  |  |  ------------------
  ------------------
  570|    694|    len = parseUInt64((char*)&str.data[pos], 2, &day);
  571|    694|    pos += len;
  572|    694|    UA_CHECK(len == 2 || str.data[pos] != 'T',
  ------------------
  |  |  172|    694|    do {                                                                                 \
  |  |  173|    694|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|  1.21k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 1, False: 693]
  |  |  |  |  |  Branch (579:43): [True: 174, False: 520]
  |  |  |  |  |  Branch (579:43): [True: 519, False: 1]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      1|            EVAL_ON_ERROR;                                                               \
  |  |  175|      1|        }                                                                                \
  |  |  176|    694|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 693]
  |  |  ------------------
  ------------------
  573|    694|             return UA_STATUSCODE_BADDECODINGERROR);
  574|    693|    dts.tm_mday = (UA_UInt16)day;
  575|    693|    pos++;
  576|       |
  577|       |    /* Parse the hour */
  578|    693|    UA_UInt64 hour = 0;
  579|    693|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    693|    do {                                                                                 \
  |  |  173|    693|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    693|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 6, False: 687]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      6|            EVAL_ON_ERROR;                                                               \
  |  |  175|      6|        }                                                                                \
  |  |  176|    693|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 687]
  |  |  ------------------
  ------------------
  580|    687|    len = parseUInt64((char*)&str.data[pos], 2, &hour);
  581|    687|    pos += len;
  582|    687|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    687|    do {                                                                                 \
  |  |  173|    687|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    687|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 6, False: 681]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      6|            EVAL_ON_ERROR;                                                               \
  |  |  175|      6|        }                                                                                \
  |  |  176|    687|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 681]
  |  |  ------------------
  ------------------
  583|    681|    dts.tm_hour = (UA_UInt16)hour;
  584|    681|    if(str.data[pos] == ':')
  ------------------
  |  Branch (584:8): [True: 1, False: 680]
  ------------------
  585|      1|        pos++;
  586|       |
  587|       |    /* Parse the minute */
  588|    681|    UA_UInt64 min = 0;
  589|    681|    UA_CHECK(str.length - pos > 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    681|    do {                                                                                 \
  |  |  173|    681|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    681|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 12, False: 669]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     12|            EVAL_ON_ERROR;                                                               \
  |  |  175|     12|        }                                                                                \
  |  |  176|    681|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 669]
  |  |  ------------------
  ------------------
  590|    669|    len = parseUInt64((char*)&str.data[pos], 2, &min);
  591|    669|    pos += len;
  592|    669|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    669|    do {                                                                                 \
  |  |  173|    669|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    669|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 7, False: 662]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      7|            EVAL_ON_ERROR;                                                               \
  |  |  175|      7|        }                                                                                \
  |  |  176|    669|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 662]
  |  |  ------------------
  ------------------
  593|    662|    dts.tm_min = (UA_UInt16)min;
  594|    662|    if(str.data[pos] == ':')
  ------------------
  |  Branch (594:8): [True: 1, False: 661]
  ------------------
  595|      1|        pos++;
  596|       |
  597|       |    /* Parse the second */
  598|    662|    UA_UInt64 sec = 0;
  599|    662|    UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    662|    do {                                                                                 \
  |  |  173|    662|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    662|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 2, False: 660]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      2|            EVAL_ON_ERROR;                                                               \
  |  |  175|      2|        }                                                                                \
  |  |  176|    662|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 660]
  |  |  ------------------
  ------------------
  600|    660|    len = parseUInt64((char*)&str.data[pos], 2, &sec);
  601|    660|    pos += len;
  602|    660|    UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    660|    do {                                                                                 \
  |  |  173|    660|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    660|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 3, False: 657]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      3|            EVAL_ON_ERROR;                                                               \
  |  |  175|      3|        }                                                                                \
  |  |  176|    660|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 657]
  |  |  ------------------
  ------------------
  603|    657|    dts.tm_sec = (UA_UInt16)sec;
  604|       |
  605|       |    /* Compute the seconds since the Unix epoch */
  606|    657|    long long sinceunix = musl_tm_to_secs(&dts);
  607|       |
  608|       |    /* Are we within the range that can be represented? */
  609|    657|    long long sinceunix_min =
  610|    657|        (long long)(UA_INT64_MIN / UA_DATETIME_SEC) -
  ------------------
  |  |  119|    657|#define UA_INT64_MIN ((int64_t)-UA_INT64_MAX-1LL)
  |  |  ------------------
  |  |  |  |  118|    657|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  |  |  ------------------
  ------------------
                      (long long)(UA_INT64_MIN / UA_DATETIME_SEC) -
  ------------------
  |  |  285|    657|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    657|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    657|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  611|    657|        (long long)(UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC) -
  ------------------
  |  |  327|    657|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  285|    657|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    657|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    657|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (long long)(UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC) -
  ------------------
  |  |  285|    657|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    657|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    657|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  612|    657|        (long long)1; /* manual correction due to rounding */
  613|    657|    long long sinceunix_max = (long long)
  614|    657|        ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  118|    657|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  ------------------
                      ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  327|    657|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  285|    657|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    657|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    657|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ((UA_INT64_MAX - UA_DATETIME_UNIX_EPOCH) / UA_DATETIME_SEC);
  ------------------
  |  |  285|    657|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    657|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    657|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  615|    657|    if(sinceunix < sinceunix_min || sinceunix > sinceunix_max)
  ------------------
  |  Branch (615:8): [True: 39, False: 618]
  |  Branch (615:37): [True: 4, False: 614]
  ------------------
  616|     43|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     43|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  617|       |
  618|       |    /* Convert to DateTime. Add or subtract one extra second here to prevent
  619|       |     * underflow/overflow. This is reverted once the fractional part has been
  620|       |     * added. */
  621|    614|    sinceunix -= (sinceunix > 0) ? 1 : -1;
  ------------------
  |  Branch (621:18): [True: 187, False: 427]
  ------------------
  622|    614|    UA_DateTime dt = (UA_DateTime)
  623|    614|        (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  327|    614|#define UA_DATETIME_UNIX_EPOCH (11644473600LL * UA_DATETIME_SEC)
  |  |  ------------------
  |  |  |  |  285|    614|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  284|    614|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  283|    614|#define UA_DATETIME_USEC 10LL
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  285|    614|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    614|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    614|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      (sinceunix + (UA_DATETIME_UNIX_EPOCH / UA_DATETIME_SEC)) * UA_DATETIME_SEC;
  ------------------
  |  |  285|    614|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    614|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    614|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  624|       |
  625|       |    /* Parse the fraction of the second if defined */
  626|    614|    UA_CHECK(pos < str.length, goto finish);
  ------------------
  |  |  172|    614|    do {                                                                                 \
  |  |  173|    614|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    614|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 293, False: 321]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|    293|            EVAL_ON_ERROR;                                                               \
  |  |  175|    293|        }                                                                                \
  |  |  176|    614|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 321]
  |  |  ------------------
  ------------------
  627|    321|    if(str.data[pos] == ',' || str.data[pos] == '.') {
  ------------------
  |  Branch (627:8): [True: 67, False: 254]
  |  Branch (627:32): [True: 76, False: 178]
  ------------------
  628|    143|        pos++;
  629|    143|        double frac = 0.0;
  630|    143|        double denom = 0.1;
  631|   816k|        while(pos < str.length && str.data[pos] >= '0' && str.data[pos] <= '9') {
  ------------------
  |  Branch (631:15): [True: 816k, False: 69]
  |  Branch (631:35): [True: 816k, False: 60]
  |  Branch (631:59): [True: 816k, False: 14]
  ------------------
  632|   816k|            frac += denom * (str.data[pos] - '0');
  633|   816k|            denom *= 0.1;
  634|   816k|            pos++;
  635|   816k|        }
  636|    143|        frac += 0.00000005; /* Correct rounding when converting to integer */
  637|    143|        dt += (UA_DateTime)(frac * UA_DATETIME_SEC);
  ------------------
  |  |  285|    143|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    143|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    143|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  638|    143|    }
  639|       |
  640|       |    /* Time zone handling */
  641|    321|    UA_CHECK(pos < str.length, goto finish);
  ------------------
  |  |  172|    321|    do {                                                                                 \
  |  |  173|    321|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    321|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 69, False: 252]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     69|            EVAL_ON_ERROR;                                                               \
  |  |  175|     69|        }                                                                                \
  |  |  176|    321|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 252]
  |  |  ------------------
  ------------------
  642|    252|    if(str.data[pos] == 'Z') {
  ------------------
  |  Branch (642:8): [True: 2, False: 250]
  ------------------
  643|      2|        pos++;
  644|    250|    } else if(str.data[pos] == '+' || str.data[pos] == '-') {
  ------------------
  |  Branch (644:15): [True: 66, False: 184]
  |  Branch (644:39): [True: 130, False: 54]
  ------------------
  645|    196|        UA_UInt64 tzHour = 0, tzMin = 0;
  646|    196|        UA_Int64 offsetSeconds = 0;
  647|    196|        UA_Byte tzSign = str.data[pos++];
  648|       |
  649|    196|        UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    196|    do {                                                                                 \
  |  |  173|    196|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    196|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 4, False: 192]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      4|            EVAL_ON_ERROR;                                                               \
  |  |  175|      4|        }                                                                                \
  |  |  176|    196|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 192]
  |  |  ------------------
  ------------------
  650|    192|        len = parseUInt64((char*)&str.data[pos], 2, &tzHour);
  651|    192|        pos += len;
  652|    192|        UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    192|    do {                                                                                 \
  |  |  173|    192|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    192|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 4, False: 188]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      4|            EVAL_ON_ERROR;                                                               \
  |  |  175|      4|        }                                                                                \
  |  |  176|    192|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 188]
  |  |  ------------------
  ------------------
  653|       |
  654|    188|        UA_CHECK(str.length > pos, goto finish); /* Allow missing tz minutes */
  ------------------
  |  |  172|    188|    do {                                                                                 \
  |  |  173|    188|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    188|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 1, False: 187]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|      1|            EVAL_ON_ERROR;                                                               \
  |  |  175|      1|        }                                                                                \
  |  |  176|    188|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 187]
  |  |  ------------------
  ------------------
  655|    187|        if(str.data[pos] == ':')
  ------------------
  |  Branch (655:12): [True: 1, False: 186]
  ------------------
  656|      1|            pos++;
  657|       |
  658|    187|        UA_CHECK(str.length - pos >= 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    187|    do {                                                                                 \
  |  |  173|    187|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    187|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 14, False: 173]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     14|            EVAL_ON_ERROR;                                                               \
  |  |  175|     14|        }                                                                                \
  |  |  176|    187|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 173]
  |  |  ------------------
  ------------------
  659|    173|        len = parseUInt64((char*)&str.data[pos], 2, &tzMin);
  660|    173|        pos += len;
  661|    173|        UA_CHECK(len == 2, return UA_STATUSCODE_BADDECODINGERROR);
  ------------------
  |  |  172|    173|    do {                                                                                 \
  |  |  173|    173|        if(UA_UNLIKELY(!isTrue(A))) {                                                    \
  |  |  ------------------
  |  |  |  |  579|    173|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (579:25): [True: 40, False: 133]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  174|     40|            EVAL_ON_ERROR;                                                               \
  |  |  175|     40|        }                                                                                \
  |  |  176|    173|    } while(0)
  |  |  ------------------
  |  |  |  Branch (176:13): [Folded, False: 133]
  |  |  ------------------
  ------------------
  662|       |
  663|    133|        offsetSeconds = (tzHour * 3600) + (tzMin * 60);
  664|    133|        if(tzSign == '-')
  ------------------
  |  Branch (664:12): [True: 78, False: 55]
  ------------------
  665|     78|            offsetSeconds = -offsetSeconds;
  666|    133|        dt -= (UA_DateTime)(offsetSeconds * UA_DATETIME_SEC);
  ------------------
  |  |  285|    133|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    133|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    133|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  667|    133|    } else {
  668|     54|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     54|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  669|     54|    }
  670|       |
  671|    498| finish:
  672|       |    /* Remove the underflow/overflow protection (see above) */
  673|    498|    if(sinceunix > 0) {
  ------------------
  |  Branch (673:8): [True: 173, False: 325]
  ------------------
  674|    173|        if(dt > UA_INT64_MAX - UA_DATETIME_SEC)
  ------------------
  |  |  118|    173|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  ------------------
                      if(dt > UA_INT64_MAX - UA_DATETIME_SEC)
  ------------------
  |  |  285|    173|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    173|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    173|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (674:12): [True: 1, False: 172]
  ------------------
  675|      1|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|      1|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  676|    172|        dt += UA_DATETIME_SEC;
  ------------------
  |  |  285|    172|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    172|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    172|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  677|    325|    } else {
  678|    325|        if(dt < UA_INT64_MIN + UA_DATETIME_SEC)
  ------------------
  |  |  119|    325|#define UA_INT64_MIN ((int64_t)-UA_INT64_MAX-1LL)
  |  |  ------------------
  |  |  |  |  118|    325|#define UA_INT64_MAX (int64_t)9223372036854775807LL
  |  |  ------------------
  ------------------
                      if(dt < UA_INT64_MIN + UA_DATETIME_SEC)
  ------------------
  |  |  285|    325|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    325|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    325|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (678:12): [True: 24, False: 301]
  ------------------
  679|     24|            return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|     24|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  680|    301|        dt -= UA_DATETIME_SEC;
  ------------------
  |  |  285|    301|#define UA_DATETIME_SEC (UA_DATETIME_MSEC * 1000LL)
  |  |  ------------------
  |  |  |  |  284|    301|#define UA_DATETIME_MSEC (UA_DATETIME_USEC * 1000LL)
  |  |  |  |  ------------------
  |  |  |  |  |  |  283|    301|#define UA_DATETIME_USEC 10LL
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  681|    301|    }
  682|       |
  683|       |    /* We must be at the end of the string */
  684|    473|    if(pos != str.length)
  ------------------
  |  Branch (684:8): [True: 100, False: 373]
  ------------------
  685|    100|        return UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    100|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  686|       |
  687|    373|    *dst = dt;
  688|    373|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    373|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  689|    473|}
UA_Guid_to_hex:
  708|    647|UA_Guid_to_hex(const UA_Guid *guid, u8* out, UA_Boolean lower) {
  709|    647|    const u8 *hexmap = (lower) ? hexmapLower : hexmapUpper;
  ------------------
  |  Branch (709:24): [True: 647, False: 0]
  ------------------
  710|    647|    size_t i = 0, j = 28;
  711|  5.82k|    for(; i<8;i++,j-=4)         /* pos 0-7, 4byte, (a) */
  ------------------
  |  Branch (711:11): [True: 5.17k, False: 647]
  ------------------
  712|  5.17k|        out[i] = hexmap[(guid->data1 >> j) & 0x0Fu];
  713|    647|    out[i++] = '-';             /* pos 8 */
  714|  3.23k|    for(j=12; i<13;i++,j-=4)    /* pos 9-12, 2byte, (b) */
  ------------------
  |  Branch (714:15): [True: 2.58k, False: 647]
  ------------------
  715|  2.58k|        out[i] = hexmap[(uint16_t)(guid->data2 >> j) & 0x0Fu];
  716|    647|    out[i++] = '-';             /* pos 13 */
  717|  3.23k|    for(j=12; i<18;i++,j-=4)    /* pos 14-17, 2byte (c) */
  ------------------
  |  Branch (717:15): [True: 2.58k, False: 647]
  ------------------
  718|  2.58k|        out[i] = hexmap[(uint16_t)(guid->data3 >> j) & 0x0Fu];
  719|    647|    out[i++] = '-';              /* pos 18 */
  720|  1.94k|    for(j=0;i<23;i+=2,j++) {     /* pos 19-22, 2byte (d) */
  ------------------
  |  Branch (720:13): [True: 1.29k, False: 647]
  ------------------
  721|  1.29k|        out[i] = hexmap[(guid->data4[j] & 0xF0u) >> 4u];
  722|  1.29k|        out[i+1] = hexmap[guid->data4[j] & 0x0Fu];
  723|  1.29k|    }
  724|    647|    out[i++] = '-';              /* pos 23 */
  725|  4.52k|    for(j=2; i<36;i+=2,j++) {    /* pos 24-35, 6byte (e) */
  ------------------
  |  Branch (725:14): [True: 3.88k, False: 647]
  ------------------
  726|  3.88k|        out[i] = hexmap[(guid->data4[j] & 0xF0u) >> 4u];
  727|  3.88k|        out[i+1] = hexmap[guid->data4[j] & 0x0Fu];
  728|  3.88k|    }
  729|    647|}
UA_ByteString_allocBuffer:
  756|  4.38k|UA_ByteString_allocBuffer(UA_ByteString *bs, size_t length) {
  757|  4.38k|    UA_ByteString_init(bs);
  758|  4.38k|    if(length == 0) {
  ------------------
  |  Branch (758:8): [True: 0, False: 4.38k]
  ------------------
  759|      0|        bs->data = (u8*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  755|      0|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
  760|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  761|      0|    }
  762|  4.38k|    bs->data = (u8*)UA_calloc(1,length);
  ------------------
  |  |   20|  4.38k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
  763|  4.38k|    if(UA_UNLIKELY(!bs->data))
  ------------------
  |  |  579|  4.38k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  ------------------
  |  |  |  Branch (579:25): [True: 0, False: 4.38k]
  |  |  ------------------
  ------------------
  764|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  765|  4.38k|    bs->length = length;
  766|  4.38k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  4.38k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  767|  4.38k|}
UA_NODEID_NUMERIC:
  829|  8.60k|UA_NODEID_NUMERIC(UA_UInt16 nsIndex, UA_UInt32 identifier) {
  830|  8.60k|    UA_NodeId id;
  831|  8.60k|    memset(&id, 0, sizeof(UA_NodeId));
  832|  8.60k|    id.namespaceIndex = nsIndex;
  833|  8.60k|    id.identifierType = UA_NODEIDTYPE_NUMERIC;
  834|  8.60k|    id.identifier.numeric = identifier;
  835|  8.60k|    return id;
  836|  8.60k|}
nodeId_printEscape:
 1023|  4.42k|                   const UA_NamespaceMapping *nsMapping, UA_Escaping idEsc) {
 1024|       |    /* Try to map the NamespaceIndex to the Uri */
 1025|  4.42k|    UA_String nsUri = UA_STRING_NULL;
 1026|  4.42k|    if(id->namespaceIndex > 0 && nsMapping)
  ------------------
  |  Branch (1026:8): [True: 788, False: 3.63k]
  |  Branch (1026:34): [True: 0, False: 788]
  ------------------
 1027|      0|        UA_NamespaceMapping_index2Uri(nsMapping, id->namespaceIndex, &nsUri);
 1028|       |
 1029|       |    /* Compute the string length and print numerical identifiers. */
 1030|  4.42k|    u8 nsStr[7];
 1031|  4.42k|    u8 numIdStr[12];
 1032|  4.42k|    size_t idLen = nodeIdSize(id, nsStr, numIdStr, nsUri, idEsc);
 1033|  4.42k|    if(idLen == 0)
  ------------------
  |  Branch (1033:8): [True: 0, False: 4.42k]
  ------------------
 1034|      0|        return UA_STATUSCODE_BADINTERNALERROR;
  ------------------
  |  |   29|      0|#define UA_STATUSCODE_BADINTERNALERROR ((UA_StatusCode) 0x80020000)
  ------------------
 1035|       |
 1036|       |    /* Allocate memory if required */
 1037|  4.42k|    if(output->length == 0) {
  ------------------
  |  Branch (1037:8): [True: 690, False: 3.73k]
  ------------------
 1038|    690|        UA_StatusCode res = UA_ByteString_allocBuffer((UA_ByteString*)output, idLen);
 1039|    690|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    690|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1039:12): [True: 0, False: 690]
  ------------------
 1040|      0|            return res;
 1041|  3.73k|    } else {
 1042|  3.73k|        if(output->length < idLen)
  ------------------
  |  Branch (1042:12): [True: 690, False: 3.04k]
  ------------------
 1043|    690|            return UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED;
  ------------------
  |  |   47|    690|#define UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED ((UA_StatusCode) 0x80080000)
  ------------------
 1044|  3.04k|        output->length = idLen;
 1045|  3.04k|    }
 1046|       |
 1047|       |    /* Print the NodeId */
 1048|  3.73k|    u8 *pos = printNodeIdBody(id, nsUri, nsStr, numIdStr, output->data, nsMapping, idEsc);
 1049|  3.73k|    output->length = (size_t)(pos - output->data);
 1050|  3.73k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  3.73k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1051|  4.42k|}
UA_NodeId_printEx:
 1055|  4.42k|                  const UA_NamespaceMapping *nsMapping) {
 1056|  4.42k|    return nodeId_printEscape(id, output, nsMapping, UA_ESCAPING_NONE);
 1057|  4.42k|}
UA_NodeId_print:
 1060|  4.42k|UA_NodeId_print(const UA_NodeId *id, UA_String *output) {
 1061|       |    return UA_NodeId_printEx(id, output, NULL);
 1062|  4.42k|}
UA_copy:
 2094|  17.8k|UA_copy(const void *src, void *dst, const UA_DataType *type) {
 2095|  17.8k|    memset(dst, 0, type->memSize); /* init */
 2096|  17.8k|    UA_StatusCode retval = copyJumpTable[type->typeKind](src, dst, type);
 2097|  17.8k|    if(retval != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  17.8k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2097:8): [True: 0, False: 17.8k]
  ------------------
 2098|      0|        UA_clear(dst, type);
 2099|  17.8k|    return retval;
 2100|  17.8k|}
UA_clear:
 2197|  26.8k|UA_clear(void *p, const UA_DataType *type) {
 2198|  26.8k|    clearJumpTable[type->typeKind](p, type);
 2199|  26.8k|    memset(p, 0, type->memSize); /* init */
 2200|  26.8k|}
UA_order:
 2670|  27.8k|UA_Order UA_order(const void *p1, const void *p2, const UA_DataType *type) {
 2671|  27.8k|    return orderJumpTable[type->typeKind](p1, p2, type);
 2672|  27.8k|}
UA_Array_copy:
 2694|  17.8k|              void **dst, const UA_DataType *type) {
 2695|  17.8k|    if(size == 0) {
  ------------------
  |  Branch (2695:8): [True: 10.1k, False: 7.78k]
  ------------------
 2696|  10.1k|        if(src == NULL)
  ------------------
  |  Branch (2696:12): [True: 0, False: 10.1k]
  ------------------
 2697|      0|            *dst = NULL;
 2698|  10.1k|        else
 2699|  10.1k|            *dst= UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  755|  10.1k|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
 2700|  10.1k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  10.1k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2701|  10.1k|    }
 2702|       |
 2703|       |    /* Check the array consistency -- defensive programming in case the user
 2704|       |     * manually created an inconsistent array */
 2705|  7.78k|    if(UA_UNLIKELY(!type || !src))
  ------------------
  |  |  579|  15.5k|# define UA_UNLIKELY(x) __builtin_expect((x), 0)
  |  |  ------------------
  |  |  |  Branch (579:25): [True: 0, False: 7.78k]
  |  |  |  Branch (579:43): [True: 0, False: 7.78k]
  |  |  |  Branch (579:43): [True: 0, False: 7.78k]
  |  |  ------------------
  ------------------
 2706|      0|        return UA_STATUSCODE_BADINTERNALERROR;
  ------------------
  |  |   29|      0|#define UA_STATUSCODE_BADINTERNALERROR ((UA_StatusCode) 0x80020000)
  ------------------
 2707|       |
 2708|       |    /* calloc, so we don't have to check retval in every iteration of copying */
 2709|  7.78k|    *dst = UA_calloc(size, type->memSize);
  ------------------
  |  |   20|  7.78k|#define UA_calloc(num, size) UA_callocSingleton(num, size)
  ------------------
 2710|  7.78k|    if(!*dst)
  ------------------
  |  Branch (2710:8): [True: 0, False: 7.78k]
  ------------------
 2711|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
 2712|       |
 2713|  7.78k|    if(type->pointerFree) {
  ------------------
  |  Branch (2713:8): [True: 7.78k, False: 0]
  ------------------
 2714|  7.78k|        memcpy(*dst, src, type->memSize * size);
 2715|  7.78k|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  7.78k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2716|  7.78k|    }
 2717|       |
 2718|      0|    uintptr_t ptrs = (uintptr_t)src;
 2719|      0|    uintptr_t ptrd = (uintptr_t)*dst;
 2720|      0|    UA_StatusCode retval = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 2721|      0|    for(size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (2721:23): [True: 0, False: 0]
  ------------------
 2722|      0|        retval |= UA_copy((void*)ptrs, (void*)ptrd, type);
 2723|      0|        ptrs += type->memSize;
 2724|      0|        ptrd += type->memSize;
 2725|      0|    }
 2726|      0|    if(retval != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (2726:8): [True: 0, False: 0]
  ------------------
 2727|      0|        UA_Array_delete(*dst, size, type);
 2728|       |        *dst = NULL;
 2729|      0|    }
 2730|      0|    return retval;
 2731|  7.78k|}
UA_Array_delete:
 2822|  33.8k|UA_Array_delete(void *p, size_t size, const UA_DataType *type) {
 2823|  33.8k|    if(!type->pointerFree) {
  ------------------
  |  Branch (2823:8): [True: 2.86k, False: 31.0k]
  ------------------
 2824|  2.86k|        uintptr_t ptr = (uintptr_t)p;
 2825|  18.1k|        for(size_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (2825:27): [True: 15.2k, False: 2.86k]
  ------------------
 2826|  15.2k|            UA_clear((void*)ptr, type);
 2827|  15.2k|            ptr += type->memSize;
 2828|  15.2k|        }
 2829|  2.86k|    }
 2830|  33.8k|    UA_free((void*)((uintptr_t)p & ~(uintptr_t)UA_EMPTY_ARRAY_SENTINEL));
  ------------------
  |  |   19|  33.8k|#define UA_free(ptr) UA_freeSingleton(ptr)
  ------------------
 2831|  33.8k|}
ua_types.c:nodeIdSize:
  922|  4.42k|           UA_Escaping idEsc) {
  923|       |    /* Namespace length */
  924|  4.42k|    size_t len = 0;
  925|  4.42k|    if(nsUri.data != NULL) {
  ------------------
  |  Branch (925:8): [True: 0, False: 4.42k]
  ------------------
  926|      0|        len += 5; /* nsu=; */
  927|      0|        len += UA_String_escapedSize(nsUri, UA_ESCAPING_PERCENT);
  928|  4.42k|    } else if(id->namespaceIndex > 0) {
  ------------------
  |  Branch (928:15): [True: 788, False: 3.63k]
  ------------------
  929|    788|        len += 4; /* ns=; */
  930|    788|        size_t nsStrSize = itoaUnsigned(id->namespaceIndex, (char*)nsStr, 10);
  931|    788|        nsStr[nsStrSize] = 0;
  932|    788|        len += nsStrSize;
  933|    788|    }
  934|       |
  935|  4.42k|    len += 2; /* ?= */
  936|       |
  937|  4.42k|    switch (id->identifierType) {
  938|    569|    case UA_NODEIDTYPE_NUMERIC: {
  ------------------
  |  Branch (938:5): [True: 569, False: 3.85k]
  ------------------
  939|    569|        size_t numIdStrSize = itoaUnsigned(id->identifier.numeric, (char*)numIdStr, 10);
  940|    569|        numIdStr[numIdStrSize] = 0;
  941|    569|        len += numIdStrSize;
  942|    569|        break;
  943|      0|    }
  944|  2.34k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (944:5): [True: 2.34k, False: 2.07k]
  ------------------
  945|  2.34k|        len += UA_String_escapedSize(id->identifier.string, idEsc);
  946|  2.34k|        break;
  947|    647|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (947:5): [True: 647, False: 3.77k]
  ------------------
  948|    647|        len += 36;
  949|    647|        break;
  950|    861|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (950:5): [True: 861, False: 3.55k]
  ------------------
  951|    861|        len += 4 * ((id->identifier.byteString.length + 2) / 3);
  952|    861|        break;
  953|      0|    default:
  ------------------
  |  Branch (953:5): [True: 0, False: 4.42k]
  ------------------
  954|      0|        len = 0;
  955|  4.42k|    }
  956|  4.42k|    return len;
  957|  4.42k|}
ua_types.c:printNodeIdBody:
  961|  3.73k|                const UA_NamespaceMapping *nsMapping, UA_Escaping idEsc) {
  962|  3.73k|    size_t len;
  963|       |
  964|       |    /* Encode the namespace */
  965|  3.73k|    if(nsUri.data != NULL) {
  ------------------
  |  Branch (965:8): [True: 0, False: 3.73k]
  ------------------
  966|      0|        memcpy(pos, "nsu=", 4);
  967|      0|        pos += 4;
  968|      0|        pos += UA_String_escapeInsert(pos, nsUri, UA_ESCAPING_PERCENT);
  969|      0|        *pos++ = ';';
  970|  3.73k|    } else if(id->namespaceIndex > 0) {
  ------------------
  |  Branch (970:15): [True: 546, False: 3.18k]
  ------------------
  971|    546|        memcpy(pos, "ns=", 3);
  972|    546|        pos += 3;
  973|    546|        len = strlen((char*)nsStr);
  974|    546|        memcpy(pos, nsStr, len);
  975|    546|        pos += len;
  976|    546|        *pos++ = ';';
  977|    546|    }
  978|       |
  979|       |    /* Encode the identifier */
  980|  3.73k|    switch(id->identifierType) {
  ------------------
  |  Branch (980:12): [True: 3.73k, False: 0]
  ------------------
  981|    569|    case UA_NODEIDTYPE_NUMERIC:
  ------------------
  |  Branch (981:5): [True: 569, False: 3.16k]
  ------------------
  982|    569|        memcpy(pos, "i=", 2);
  983|    569|        pos += 2;
  984|    569|        len = strlen((char*)numIdStr);
  985|    569|        memcpy(pos, numIdStr, len);
  986|    569|        pos += len;
  987|    569|        break;
  988|  1.66k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (988:5): [True: 1.66k, False: 2.07k]
  ------------------
  989|  1.66k|        memcpy(pos, "s=", 2);
  990|  1.66k|        pos += 2;
  991|  1.66k|        pos += UA_String_escapeInsert(pos, id->identifier.string, idEsc);
  992|  1.66k|        break;
  993|    647|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (993:5): [True: 647, False: 3.08k]
  ------------------
  994|    647|        memcpy(pos, "g=", 2);
  995|    647|        pos += 2;
  996|    647|        UA_Guid_to_hex(&id->identifier.guid, pos, true);
  997|    647|        pos += 36;
  998|    647|        break;
  999|    854|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (999:5): [True: 854, False: 2.87k]
  ------------------
 1000|    854|        memcpy(pos, "b=", 2);
 1001|    854|        pos += 2;
 1002|       |        /* Use base64url encoding for percent-escaping.
 1003|       |         * Replace +/ with -_ and remove the padding. */
 1004|    854|        u8 *bpos = pos;
 1005|    854|        pos += UA_base64_buf(id->identifier.byteString.data,
 1006|    854|                             id->identifier.byteString.length, pos);
 1007|    854|        if(idEsc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (1007:12): [True: 0, False: 854]
  ------------------
 1008|    854|           idEsc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (1008:12): [True: 0, False: 854]
  ------------------
 1009|      0|            while(pos > bpos && pos[-1] == '=')
  ------------------
  |  Branch (1009:19): [True: 0, False: 0]
  |  Branch (1009:33): [True: 0, False: 0]
  ------------------
 1010|      0|                pos--;
 1011|      0|            for(; bpos < pos; bpos++) {
  ------------------
  |  Branch (1011:19): [True: 0, False: 0]
  ------------------
 1012|      0|                if(*bpos == '+') *bpos = '-';
  ------------------
  |  Branch (1012:20): [True: 0, False: 0]
  ------------------
 1013|      0|                else if(*bpos == '/') *bpos = '_';
  ------------------
  |  Branch (1013:25): [True: 0, False: 0]
  ------------------
 1014|      0|            }
 1015|      0|        }
 1016|    854|        break;
 1017|  3.73k|    }
 1018|  3.73k|    return pos;
 1019|  3.73k|}
ua_types.c:String_copy:
  280|  17.8k|String_copy(const void *src, void *dst, const UA_DataType *_) {
  281|  17.8k|    const UA_String *srcS = (const UA_String*)src;
  282|  17.8k|    UA_String *dstS = (UA_String *)dst;
  283|  17.8k|    UA_StatusCode res =
  284|  17.8k|        UA_Array_copy(srcS->data, srcS->length, (void**)&dstS->data,
  285|  17.8k|                      &UA_TYPES[UA_TYPES_BYTE]);
  ------------------
  |  |   89|  17.8k|#define UA_TYPES_BYTE 2
  ------------------
  286|  17.8k|    if(res == UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  17.8k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (286:8): [True: 17.8k, False: 0]
  ------------------
  287|  17.8k|        dstS->length = srcS->length;
  288|  17.8k|    return res;
  289|  17.8k|}
ua_types.c:nopClear:
 2159|  30.7k|static void nopClear(void *p, const UA_DataType *type) { }
ua_types.c:String_clear:
  292|  31.0k|String_clear(void *p, const UA_DataType *_) {
  293|  31.0k|    UA_String *s = (UA_String*)p;
  294|  31.0k|    UA_Array_delete(s->data, s->length, &UA_TYPES[UA_TYPES_BYTE]);
  ------------------
  |  |   89|  31.0k|#define UA_TYPES_BYTE 2
  ------------------
  295|  31.0k|}
ua_types.c:NodeId_clear:
  771|  17.6k|NodeId_clear(void *p, const UA_DataType *_) {
  772|  17.6k|    UA_NodeId *id = (UA_NodeId*)p;
  773|  17.6k|    switch(id->identifierType) {
  774|  2.74k|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (774:5): [True: 2.74k, False: 14.8k]
  ------------------
  775|  4.28k|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (775:5): [True: 1.54k, False: 16.1k]
  ------------------
  776|  4.28k|        String_clear(&id->identifier.string, NULL);
  777|  4.28k|        break;
  778|  13.3k|    default: break;
  ------------------
  |  Branch (778:5): [True: 13.3k, False: 4.28k]
  ------------------
  779|  17.6k|    }
  780|  17.6k|}
ua_types.c:ExpandedNodeId_clear:
 1072|    889|ExpandedNodeId_clear(void *p, const UA_DataType *_) {
 1073|    889|    UA_ExpandedNodeId *id = (UA_ExpandedNodeId*)p;
 1074|    889|    NodeId_clear(&id->nodeId, NULL);
 1075|       |    String_clear(&id->namespaceUri, NULL);
 1076|    889|}
ua_types.c:QualifiedName_clear:
  396|  17.6k|QualifiedName_clear(void *p, const UA_DataType *_) {
  397|  17.6k|    UA_QualifiedName *qn = (UA_QualifiedName*)p;
  398|       |    String_clear(&qn->name, NULL);
  399|  17.6k|}
ua_types.c:clearStructure:
 2103|  18.6k|clearStructure(void *p, const UA_DataType *type) {
 2104|  18.6k|    uintptr_t ptr = (uintptr_t)p;
 2105|  87.5k|    for(size_t i = 0; i < type->membersSize; ++i) {
  ------------------
  |  Branch (2105:23): [True: 68.9k, False: 18.6k]
  ------------------
 2106|  68.9k|        const UA_DataTypeMember *m = &type->members[i];
 2107|  68.9k|        const UA_DataType *mt = m->memberType;
 2108|  68.9k|        ptr += m->padding;
 2109|  68.9k|        if(!m->isOptional) {
  ------------------
  |  Branch (2109:12): [True: 68.9k, False: 0]
  ------------------
 2110|  68.9k|            if(!m->isArray) {
  ------------------
  |  Branch (2110:16): [True: 66.0k, False: 2.86k]
  ------------------
 2111|  66.0k|                clearJumpTable[mt->typeKind]((void*)ptr, mt);
 2112|  66.0k|                ptr += mt->memSize;
 2113|  66.0k|            } else {
 2114|  2.86k|                size_t length = *(size_t*)ptr;
 2115|  2.86k|                ptr += sizeof(size_t);
 2116|  2.86k|                UA_Array_delete(*(void**)ptr, length, mt);
 2117|  2.86k|                ptr += sizeof(void*);
 2118|  2.86k|            }
 2119|  68.9k|        } else { /* field is optional */
 2120|      0|            if(!m->isArray) {
  ------------------
  |  Branch (2120:16): [True: 0, False: 0]
  ------------------
 2121|       |                /* optional scalar field is contained */
 2122|      0|                if((*(void *const *)ptr != NULL))
  ------------------
  |  Branch (2122:20): [True: 0, False: 0]
  ------------------
 2123|      0|                    UA_Array_delete(*(void **)ptr, 1, mt);
 2124|      0|                ptr += sizeof(void *);
 2125|      0|            } else {
 2126|       |                /* optional array field is contained */
 2127|      0|                if((*(void *const *)(ptr + sizeof(size_t)) != NULL)) {
  ------------------
  |  Branch (2127:20): [True: 0, False: 0]
  ------------------
 2128|      0|                    size_t length = *(size_t *)ptr;
 2129|      0|                    ptr += sizeof(size_t);
 2130|      0|                    UA_Array_delete(*(void **)ptr, length, mt);
 2131|      0|                    ptr += sizeof(void *);
 2132|      0|                } else { /* optional array field not contained */
 2133|      0|                    ptr += sizeof(size_t);
 2134|      0|                    ptr += sizeof(void *);
 2135|      0|                }
 2136|      0|            }
 2137|      0|        }
 2138|  68.9k|    }
 2139|  18.6k|}
ua_types.c:nodeIdOrder:
 2289|  16.2k|nodeIdOrder(const void *p1_, const void *p2_, const UA_DataType *_) {
 2290|  16.2k|    const UA_NodeId *p1 = (const UA_NodeId*)p1_;
 2291|  16.2k|    const UA_NodeId *p2 = (const UA_NodeId*)p2_;
 2292|       |    /* Compare namespaceIndex */
 2293|  16.2k|    if(p1->namespaceIndex != p2->namespaceIndex)
  ------------------
  |  Branch (2293:8): [True: 1.10k, False: 15.1k]
  ------------------
 2294|  1.10k|        return (p1->namespaceIndex < p2->namespaceIndex) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2294:16): [True: 1.09k, False: 11]
  ------------------
 2295|       |
 2296|       |    /* Compare identifierType */
 2297|  15.1k|    if(p1->identifierType != p2->identifierType)
  ------------------
  |  Branch (2297:8): [True: 5.23k, False: 9.93k]
  ------------------
 2298|  5.23k|        return (p1->identifierType < p2->identifierType) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2298:16): [True: 5.23k, False: 3]
  ------------------
 2299|       |
 2300|       |    /* Compare the identifier */
 2301|  9.93k|    switch(p1->identifierType) {
 2302|  9.93k|    case UA_NODEIDTYPE_NUMERIC:
  ------------------
  |  Branch (2302:5): [True: 9.93k, False: 0]
  ------------------
 2303|  9.93k|    default:
  ------------------
  |  Branch (2303:5): [True: 0, False: 9.93k]
  ------------------
 2304|  9.93k|        if(p1->identifier.numeric != p2->identifier.numeric)
  ------------------
  |  Branch (2304:12): [True: 3.86k, False: 6.06k]
  ------------------
 2305|  3.86k|            return (p1->identifier.numeric < p2->identifier.numeric) ?
  ------------------
  |  Branch (2305:20): [True: 2.49k, False: 1.36k]
  ------------------
 2306|  2.49k|                UA_ORDER_LESS : UA_ORDER_MORE;
 2307|  6.06k|        return UA_ORDER_EQ;
 2308|      0|    case UA_NODEIDTYPE_GUID:
  ------------------
  |  Branch (2308:5): [True: 0, False: 9.93k]
  ------------------
 2309|      0|        return guidOrder(&p1->identifier.guid, &p2->identifier.guid, NULL);
 2310|      0|    case UA_NODEIDTYPE_STRING:
  ------------------
  |  Branch (2310:5): [True: 0, False: 9.93k]
  ------------------
 2311|      0|    case UA_NODEIDTYPE_BYTESTRING:
  ------------------
  |  Branch (2311:5): [True: 0, False: 9.93k]
  ------------------
 2312|       |        return stringOrder(&p1->identifier.string, &p2->identifier.string, NULL);
 2313|  9.93k|    }
 2314|  9.93k|}
ua_types.c:stringOrder:
 2272|  11.5k|stringOrder(const void *p1_, const void *p2_, const UA_DataType *type) {
 2273|  11.5k|    const UA_String *p1 = (const UA_String*)p1_;
 2274|  11.5k|    const UA_String *p2 = (const UA_String*)p2_;
 2275|  11.5k|    if(p1->length != p2->length)
  ------------------
  |  Branch (2275:8): [True: 10.4k, False: 1.11k]
  ------------------
 2276|  10.4k|        return (p1->length < p2->length) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2276:16): [True: 8.04k, False: 2.40k]
  ------------------
 2277|       |    /* For zero-length arrays, every pointer not NULL is considered a
 2278|       |     * UA_EMPTY_ARRAY_SENTINEL. */
 2279|  1.11k|    if(p1->data == p2->data) return UA_ORDER_EQ;
  ------------------
  |  Branch (2279:8): [True: 0, False: 1.11k]
  ------------------
 2280|  1.11k|    if(p1->data == NULL) return UA_ORDER_LESS;
  ------------------
  |  Branch (2280:8): [True: 0, False: 1.11k]
  ------------------
 2281|  1.11k|    if(p2->data == NULL) return UA_ORDER_MORE;
  ------------------
  |  Branch (2281:8): [True: 0, False: 1.11k]
  ------------------
 2282|  1.11k|    int cmp = memcmp((const char*)p1->data, (const char*)p2->data, p1->length);
 2283|  1.11k|    if(cmp != 0)
  ------------------
  |  Branch (2283:8): [True: 452, False: 662]
  ------------------
 2284|    452|        return (cmp < 0) ? UA_ORDER_LESS : UA_ORDER_MORE;
  ------------------
  |  Branch (2284:16): [True: 190, False: 262]
  ------------------
 2285|    662|    return UA_ORDER_EQ;
 2286|  1.11k|}

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

UA_AttributeId_fromName:
   55|     88|UA_AttributeId_fromName(const UA_String name) {
   56|  2.51k|    for(size_t i = 0; i < 28; i++) {
  ------------------
  |  Branch (56:23): [True: 2.42k, False: 86]
  ------------------
   57|  2.42k|        if(strlen(attributeIdNames[i]) != name.length)
  ------------------
  |  Branch (57:12): [True: 2.39k, False: 27]
  ------------------
   58|  2.39k|            continue;
   59|     47|        for(size_t j = 0; j < name.length; j++) {
  ------------------
  |  Branch (59:27): [True: 45, False: 2]
  ------------------
   60|     45|            if((attributeIdNames[i][j] | 32) != (name.data[j] | 32))
  ------------------
  |  Branch (60:16): [True: 25, False: 20]
  ------------------
   61|     25|                goto next;
   62|     45|        }
   63|      2|        return (UA_AttributeId)i;
   64|     25|    next:
   65|     25|        continue;
   66|     27|    }
   67|     86|    return UA_ATTRIBUTEID_INVALID;
   68|     88|}
UA_readNumberWithBase:
  110|  11.1k|UA_readNumberWithBase(const UA_Byte *buf, size_t buflen, UA_UInt32 *number, UA_Byte base) {
  111|  11.1k|    UA_assert(buf);
  ------------------
  |  |  399|  11.1k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (111:5): [True: 11.1k, False: 0]
  ------------------
  112|  11.1k|    UA_assert(number);
  ------------------
  |  |  399|  11.1k|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (112:5): [True: 11.1k, False: 0]
  ------------------
  113|  11.1k|    u32 n = 0;
  114|  11.1k|    size_t progress = 0;
  115|       |    /* read numbers until the end or a non-number character appears */
  116|   573k|    while(progress < buflen) {
  ------------------
  |  Branch (116:11): [True: 562k, False: 11.0k]
  ------------------
  117|   562k|        u8 c = buf[progress];
  118|   562k|        if(c >= '0' && c <= '9' && c <= '0' + (base-1))
  ------------------
  |  Branch (118:12): [True: 562k, False: 19]
  |  Branch (118:24): [True: 548k, False: 14.3k]
  |  Branch (118:36): [True: 548k, False: 0]
  ------------------
  119|   548k|           n = (n * base) + c - '0';
  120|  14.3k|        else if(base > 9 && c >= 'a' && c <= 'z' && c <= 'a' + (base-11))
  ------------------
  |  Branch (120:17): [True: 14.3k, False: 0]
  |  Branch (120:29): [True: 2.43k, False: 11.8k]
  |  Branch (120:41): [True: 2.39k, False: 34]
  |  Branch (120:53): [True: 2.38k, False: 8]
  ------------------
  121|  2.38k|           n = (n * base) + c-'a' + 10;
  122|  11.9k|        else if(base > 9 && c >= 'A' && c <= 'Z' && c <= 'A' + (base-11))
  ------------------
  |  Branch (122:17): [True: 11.9k, False: 0]
  |  Branch (122:29): [True: 11.9k, False: 24]
  |  Branch (122:41): [True: 11.8k, False: 44]
  |  Branch (122:53): [True: 11.8k, False: 10]
  ------------------
  123|  11.8k|           n = (n * base) + c-'A' + 10;
  124|     78|        else
  125|     78|           break;
  126|   562k|        ++progress;
  127|   562k|    }
  128|  11.1k|    *number = n;
  129|  11.1k|    return progress;
  130|  11.1k|}
UA_readNumber:
  133|  2.94k|UA_readNumber(const UA_Byte *buf, size_t buflen, UA_UInt32 *number) {
  134|  2.94k|    return UA_readNumberWithBase(buf, buflen, number, 10);
  135|  2.94k|}
lookupRefType:
  724|  1.15k|lookupRefType(UA_Server *server, UA_QualifiedName *qn, UA_NodeId *outRefTypeId) {
  725|       |    /* Check well-known ReferenceTypes first */
  726|  1.15k|    if(qn->namespaceIndex == 0) {
  ------------------
  |  Branch (726:8): [True: 1.14k, False: 13]
  ------------------
  727|  12.0k|        for(size_t i = 0; i < KNOWNREFTYPES; i++) {
  ------------------
  |  |  702|  12.0k|#define KNOWNREFTYPES 17
  ------------------
  |  Branch (727:27): [True: 11.5k, False: 484]
  ------------------
  728|  11.5k|            if(UA_String_equal(&qn->name, &knownRefTypes[i].browseName)) {
  ------------------
  |  Branch (728:16): [True: 662, False: 10.9k]
  ------------------
  729|    662|                *outRefTypeId = UA_NODEID_NUMERIC(0, knownRefTypes[i].identifier);
  730|    662|                return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    662|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  731|    662|            }
  732|  11.5k|        }
  733|  1.14k|    }
  734|       |
  735|       |    /* Browse the information model. Return the first results if the browse name
  736|       |     * in the hierarchy is ambiguous. */
  737|    497|    if(server) {
  ------------------
  |  Branch (737:8): [True: 0, False: 497]
  ------------------
  738|      0|        UA_BrowseDescription bd;
  739|      0|        UA_BrowseDescription_init(&bd);
  740|      0|        bd.nodeId = UA_NODEID_NUMERIC(0, UA_NS0ID_REFERENCES);
  ------------------
  |  |   44|      0|#define UA_NS0ID_REFERENCES 31 /* ReferenceType */
  ------------------
  741|      0|        bd.browseDirection = UA_BROWSEDIRECTION_FORWARD;
  742|      0|        bd.referenceTypeId = UA_NODEID_NUMERIC(0, UA_NS0ID_HASSUBTYPE);
  ------------------
  |  |   56|      0|#define UA_NS0ID_HASSUBTYPE 45 /* ReferenceType */
  ------------------
  743|      0|        bd.nodeClassMask = UA_NODECLASS_REFERENCETYPE;
  744|       |
  745|      0|        size_t resultsSize = 0;
  746|      0|        UA_ExpandedNodeId *results = NULL;
  747|      0|        UA_StatusCode res =
  748|      0|            UA_Server_browseRecursive(server, &bd, &resultsSize, &results);
  749|      0|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (749:12): [True: 0, False: 0]
  ------------------
  750|      0|            return res;
  751|      0|        for(size_t i = 0; i < resultsSize; i++) {
  ------------------
  |  Branch (751:27): [True: 0, False: 0]
  ------------------
  752|      0|            UA_QualifiedName bn;
  753|      0|            UA_Server_readBrowseName(server, results[i].nodeId, &bn);
  754|      0|            if(UA_QualifiedName_equal(qn, &bn)) {
  ------------------
  |  Branch (754:16): [True: 0, False: 0]
  ------------------
  755|      0|                UA_QualifiedName_clear(&bn);
  756|      0|                *outRefTypeId = results[i].nodeId;
  757|      0|                UA_NodeId_clear(&results[i].nodeId);
  758|      0|                UA_Array_delete(results, resultsSize, &UA_TYPES[UA_TYPES_NODEID]);
  ------------------
  |  |  565|      0|#define UA_TYPES_NODEID 16
  ------------------
  759|      0|                return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  760|      0|            }
  761|      0|            UA_QualifiedName_clear(&bn);
  762|      0|        }
  763|       |
  764|      0|        UA_Array_delete(results, resultsSize, &UA_TYPES[UA_TYPES_NODEID]);
  ------------------
  |  |  565|      0|#define UA_TYPES_NODEID 16
  ------------------
  765|      0|    }
  766|       |
  767|    497|    return UA_STATUSCODE_BADNOTFOUND;
  ------------------
  |  |  233|    497|#define UA_STATUSCODE_BADNOTFOUND ((UA_StatusCode) 0x803E0000)
  ------------------
  768|    497|}
getRefTypeBrowseName:
  771|  5.30k|getRefTypeBrowseName(const UA_NodeId *refTypeId, UA_String *outBN) {
  772|       |    /* Canonical name known? */
  773|  5.30k|    if(refTypeId->namespaceIndex == 0 &&
  ------------------
  |  Branch (773:8): [True: 4.51k, False: 788]
  ------------------
  774|  4.51k|       refTypeId->identifierType == UA_NODEIDTYPE_NUMERIC) {
  ------------------
  |  Branch (774:8): [True: 1.44k, False: 3.06k]
  ------------------
  775|  13.8k|        for(size_t i = 0; i < KNOWNREFTYPES; i++) {
  ------------------
  |  |  702|  13.8k|#define KNOWNREFTYPES 17
  ------------------
  |  Branch (775:27): [True: 13.3k, False: 568]
  ------------------
  776|  13.3k|            if(refTypeId->identifier.numeric != knownRefTypes[i].identifier)
  ------------------
  |  Branch (776:16): [True: 12.4k, False: 881]
  ------------------
  777|  12.4k|                continue;
  778|    881|            memcpy(outBN->data, knownRefTypes[i].browseName.data, knownRefTypes[i].browseName.length);
  779|    881|            outBN->length = knownRefTypes[i].browseName.length;
  780|    881|            return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    881|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  781|  13.3k|        }
  782|  1.44k|    }
  783|       |
  784|       |    /* Print the NodeId */
  785|  4.42k|    return UA_NodeId_print(refTypeId, outBN);
  786|  5.30k|}
UA_String_unescape:
  800|  16.9k|UA_String_unescape(UA_String *str, UA_Boolean copyEscape, UA_Escaping esc) {
  801|  16.9k|    if(esc == UA_ESCAPING_NONE)
  ------------------
  |  Branch (801:8): [True: 213, False: 16.6k]
  ------------------
  802|    213|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    213|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  803|       |
  804|       |    /* Does the string need escaping? */
  805|  16.6k|    UA_String tmp;
  806|  16.6k|    status res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  16.6k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  807|  16.6k|    u8 *pos = str->data;
  808|  16.6k|    u8 *end = str->data + str->length;
  809|  16.6k|    u8 escape_char = (esc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (809:23): [True: 40, False: 16.6k]
  ------------------
  810|  16.6k|                      esc == UA_ESCAPING_PERCENT_EXTENDED) ? '%' : '&';
  ------------------
  |  Branch (810:23): [True: 3.45k, False: 13.2k]
  ------------------
  811|  3.63M|    for(; pos < end; pos++) {
  ------------------
  |  Branch (811:11): [True: 3.61M, False: 15.7k]
  ------------------
  812|  3.61M|        if(*pos == escape_char)
  ------------------
  |  Branch (812:12): [True: 986, False: 3.61M]
  ------------------
  813|    986|            goto escape;
  814|  3.61M|    }
  815|       |
  816|  15.7k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  15.7k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  817|       |
  818|    986| escape:
  819|    986|    if(copyEscape) {
  ------------------
  |  Branch (819:8): [True: 0, False: 986]
  ------------------
  820|      0|        res = UA_String_copy(str, &tmp);
  821|      0|        if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (821:12): [True: 0, False: 0]
  ------------------
  822|      0|            return res;
  823|      0|        pos = tmp.data;
  824|      0|        end = tmp.data + tmp.length;
  825|      0|    }
  826|       |
  827|    986|    u8 byte = 0;
  828|    986|    u8 *writepos = pos;
  829|       |
  830|    986|    res = UA_STATUSCODE_BADDECODINGERROR;
  ------------------
  |  |   44|    986|#define UA_STATUSCODE_BADDECODINGERROR ((UA_StatusCode) 0x80070000)
  ------------------
  831|    986|    if(esc == UA_ESCAPING_PERCENT ||
  ------------------
  |  Branch (831:8): [True: 3, False: 983]
  ------------------
  832|    983|       esc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (832:8): [True: 439, False: 544]
  ------------------
  833|       |        /* Percent-Escaping */
  834|   469k|        for(; pos < end; pos++) {
  ------------------
  |  Branch (834:15): [True: 468k, False: 232]
  ------------------
  835|   468k|            if(*pos == '%') {
  ------------------
  |  Branch (835:16): [True: 1.89k, False: 467k]
  ------------------
  836|  1.89k|                if(pos + 2 >= end || !isHex(pos[1]) || !isHex(pos[2]))
  ------------------
  |  Branch (836:20): [True: 0, False: 1.89k]
  |  Branch (836:38): [True: 104, False: 1.78k]
  |  Branch (836:56): [True: 106, False: 1.68k]
  ------------------
  837|    210|                    goto out;
  838|  1.68k|                if(pos[1] >= 'a')
  ------------------
  |  Branch (838:20): [True: 425, False: 1.25k]
  ------------------
  839|    425|                    byte = pos[1] - ('a' - 10);
  840|  1.25k|                else if(pos[1] >= 'A')
  ------------------
  |  Branch (840:25): [True: 740, False: 515]
  ------------------
  841|    740|                    byte = pos[1] - ('A' - 10);
  842|    515|                else
  843|    515|                    byte = pos[1] - '0';
  844|  1.68k|                byte <<= 4;
  845|       |
  846|  1.68k|                if(pos[2] >= 'a')
  ------------------
  |  Branch (846:20): [True: 654, False: 1.02k]
  ------------------
  847|    654|                    byte += (u8)(pos[2] - ('a' - 10));
  848|  1.02k|                else if(pos[2] >= 'A')
  ------------------
  |  Branch (848:25): [True: 485, False: 541]
  ------------------
  849|    485|                    byte += (u8)(pos[2] - ('A' - 10));
  850|    541|                else
  851|    541|                    byte += (u8)(pos[2] - '0');
  852|       |
  853|  1.68k|                pos += 2;
  854|  1.68k|                *writepos++ = byte;
  855|  1.68k|                continue;
  856|  1.89k|            }
  857|   467k|            *writepos++ = *pos;
  858|   467k|        }
  859|    544|    } else {
  860|       |        /* And-Escaping */
  861|  4.42M|        for(; pos < end; pos++) {
  ------------------
  |  Branch (861:15): [True: 4.42M, False: 544]
  ------------------
  862|  4.42M|            if(*pos == '&') {
  ------------------
  |  Branch (862:16): [True: 2.43k, False: 4.42M]
  ------------------
  863|  2.43k|                pos++;
  864|  2.43k|                if(pos == end)
  ------------------
  |  Branch (864:20): [True: 0, False: 2.43k]
  ------------------
  865|      0|                    goto out;
  866|  2.43k|            }
  867|  4.42M|            *writepos++ = *pos;
  868|  4.42M|        }
  869|    544|    }
  870|    776|    res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    776|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  871|       |
  872|    986| out:
  873|    986|    if(copyEscape) {
  ------------------
  |  Branch (873:8): [True: 0, False: 986]
  ------------------
  874|      0|        tmp.length = (size_t)(writepos - tmp.data);
  875|      0|        if(tmp.length == 0)
  ------------------
  |  Branch (875:12): [True: 0, False: 0]
  ------------------
  876|      0|            UA_String_clear(&tmp);
  877|      0|        if(res == UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (877:12): [True: 0, False: 0]
  ------------------
  878|      0|            *str = tmp;
  879|      0|        else
  880|      0|            UA_String_clear(&tmp);
  881|    986|    } else if(res == UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|    986|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (881:15): [True: 776, False: 210]
  ------------------
  882|    776|        str->length = (size_t)(writepos - str->data);
  883|    776|    }
  884|    986|    return res;
  885|    776|}
UA_String_escapedSize:
  891|  15.5k|UA_String_escapedSize(const UA_String s, UA_Escaping esc) {
  892|       |    /* Find out the overhead from escaping */
  893|  15.5k|    size_t overhead = 0;
  894|  16.8M|    for(size_t j = 0; j < s.length; j++) {
  ------------------
  |  Branch (894:23): [True: 16.8M, False: 15.5k]
  ------------------
  895|  16.8M|        if(esc == UA_ESCAPING_AND_EXTENDED)
  ------------------
  |  Branch (895:12): [True: 0, False: 16.8M]
  ------------------
  896|      0|            overhead += isReservedAndExtended(s.data[j]);
  897|  16.8M|        else if(esc == UA_ESCAPING_AND)
  ------------------
  |  Branch (897:17): [True: 5.72M, False: 11.1M]
  ------------------
  898|  5.72M|            overhead += isReservedAnd(s.data[j]);
  899|  11.1M|        else if(esc == UA_ESCAPING_PERCENT)
  ------------------
  |  Branch (899:17): [True: 0, False: 11.1M]
  ------------------
  900|      0|            overhead += (isReservedPercent(s.data[j]) ? 2 : 0);
  ------------------
  |  Branch (900:26): [True: 0, False: 0]
  ------------------
  901|  11.1M|        else /* if(esc == UA_ESCAPING_PERCENT_EXTENDED) */
  902|  11.1M|            overhead += (isReservedPercentExtended(s.data[j]) ? 2 : 0);
  ------------------
  |  Branch (902:26): [True: 9.09M, False: 2.01M]
  ------------------
  903|  16.8M|    }
  904|       |
  905|  15.5k|    return s.length + overhead;
  906|  15.5k|}
UA_String_escapeInsert:
  909|  14.8k|UA_String_escapeInsert(u8 *pos, const UA_String s2, UA_Escaping esc) {
  910|  14.8k|    u8 *begin = pos;
  911|       |
  912|  14.8k|    if(esc == UA_ESCAPING_NONE) {
  ------------------
  |  Branch (912:8): [True: 1.66k, False: 13.2k]
  ------------------
  913|  5.55M|        for(size_t j = 0; j < s2.length; j++)
  ------------------
  |  Branch (913:27): [True: 5.55M, False: 1.66k]
  ------------------
  914|  5.55M|            *pos++ = s2.data[j];
  915|  13.2k|    } else if(esc == UA_ESCAPING_PERCENT || esc == UA_ESCAPING_PERCENT_EXTENDED) {
  ------------------
  |  Branch (915:15): [True: 0, False: 13.2k]
  |  Branch (915:45): [True: 0, False: 13.2k]
  ------------------
  916|      0|        for(size_t j = 0; j < s2.length; j++) {
  ------------------
  |  Branch (916:27): [True: 0, False: 0]
  ------------------
  917|      0|            UA_Boolean reserved = (esc == UA_ESCAPING_PERCENT_EXTENDED) ?
  ------------------
  |  Branch (917:35): [True: 0, False: 0]
  ------------------
  918|      0|                isReservedPercentExtended(s2.data[j]) : isReservedPercent(s2.data[j]);
  919|      0|            if(UA_LIKELY(!reserved)) {
  ------------------
  |  |  578|      0|# define UA_LIKELY(x) __builtin_expect((x), 1)
  |  |  ------------------
  |  |  |  Branch (578:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  920|      0|                *pos++ = s2.data[j];
  921|      0|            } else {
  922|      0|                *pos++ = '%';
  923|      0|                *pos++ = hexchars[s2.data[j] >> 4];
  924|      0|                *pos++ = hexchars[s2.data[j] & 0x0f];
  925|      0|            }
  926|      0|        }
  927|  13.2k|    } else {
  928|  5.74M|        for(size_t j = 0; j < s2.length; j++) {
  ------------------
  |  Branch (928:27): [True: 5.72M, False: 13.2k]
  ------------------
  929|  5.72M|            UA_Boolean reserved = (esc == UA_ESCAPING_AND_EXTENDED) ?
  ------------------
  |  Branch (929:35): [True: 0, False: 5.72M]
  ------------------
  930|  5.72M|                isReservedAndExtended(s2.data[j]) : isReservedAnd(s2.data[j]);
  931|  5.72M|            if(reserved)
  ------------------
  |  Branch (931:16): [True: 159k, False: 5.57M]
  ------------------
  932|   159k|                *pos++ = '&';
  933|  5.72M|            *pos++ = s2.data[j];
  934|  5.72M|        }
  935|  13.2k|    }
  936|       |
  937|  14.8k|    return (size_t)(pos - begin);
  938|  14.8k|}
UA_String_escapeAppend:
  941|  13.2k|UA_String_escapeAppend(UA_String *s, const UA_String s2, UA_Escaping esc) {
  942|  13.2k|    if(esc == UA_ESCAPING_NONE)
  ------------------
  |  Branch (942:8): [True: 0, False: 13.2k]
  ------------------
  943|      0|        return UA_String_append(s, s2);
  944|       |
  945|       |    /* Allocate memory for the additional escaped string */
  946|  13.2k|    size_t escapedLength = UA_String_escapedSize(s2, esc);
  947|  13.2k|    UA_Byte *buf = (UA_Byte*)
  948|  13.2k|        UA_realloc(s->data, s->length + s2.length + escapedLength);
  ------------------
  |  |   21|  13.2k|#define UA_realloc(ptr, size) UA_reallocSingleton(ptr, size)
  ------------------
  949|  13.2k|    if(!buf)
  ------------------
  |  Branch (949:8): [True: 0, False: 13.2k]
  ------------------
  950|      0|        return UA_STATUSCODE_BADOUTOFMEMORY;
  ------------------
  |  |   32|      0|#define UA_STATUSCODE_BADOUTOFMEMORY ((UA_StatusCode) 0x80030000)
  ------------------
  951|       |
  952|       |    /* Escape and insert at the end */
  953|  13.2k|    s->data = buf;
  954|  13.2k|    UA_String_escapeInsert(s->data + s->length, s2, esc);
  955|  13.2k|    s->length += escapedLength;
  956|  13.2k|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|  13.2k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  957|  13.2k|}
UA_RelativePath_print:
 1055|    764|UA_RelativePath_print(const UA_RelativePath *rp, UA_String *out) {
 1056|    764|    return printRelativePath(rp, out, UA_ESCAPING_AND);
 1057|    764|}
ua_util.c:isHex:
  793|  3.67k|isHex(u8 c) {
  794|  3.67k|    return ((c >= 'a' && c <= 'f') ||
  ------------------
  |  Branch (794:14): [True: 1.19k, False: 2.48k]
  |  Branch (794:26): [True: 1.10k, False: 84]
  ------------------
  795|  2.56k|            (c >= 'A' && c <= 'F') ||
  ------------------
  |  Branch (795:14): [True: 1.36k, False: 1.20k]
  |  Branch (795:26): [True: 1.25k, False: 113]
  ------------------
  796|  1.31k|            (c >= '0' && c <= '9'));
  ------------------
  |  Branch (796:14): [True: 1.23k, False: 77]
  |  Branch (796:26): [True: 1.10k, False: 133]
  ------------------
  797|  3.67k|}
ua_util.c:printRelativePath:
  997|    764|printRelativePath(const UA_RelativePath *rp, UA_String *out, UA_Escaping esc) {
  998|    764|    UA_String tmp = UA_STRING_NULL;
  999|    764|    UA_StatusCode res = UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    764|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
 1000|  9.38k|    for(size_t i = 0; i < rp->elementsSize && res == UA_STATUSCODE_GOOD; i++) {
  ------------------
  |  |   17|  8.62k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1000:23): [True: 8.62k, False: 764]
  |  Branch (1000:47): [True: 8.62k, False: 0]
  ------------------
 1001|       |        /* Print the reference type */
 1002|  8.62k|        UA_RelativePathElement *elm = &rp->elements[i];
 1003|  8.62k|        if(UA_NodeId_equal(&hierarchicalRefs, &elm->referenceTypeId) &&
  ------------------
  |  Branch (1003:12): [True: 2.68k, False: 5.93k]
  ------------------
 1004|  2.68k|           !elm->isInverse && elm->includeSubtypes) {
  ------------------
  |  Branch (1004:12): [True: 2.62k, False: 66]
  |  Branch (1004:31): [True: 2.43k, False: 191]
  ------------------
 1005|  2.43k|            res |= UA_String_append(&tmp, UA_STRING("/"));
 1006|  6.19k|        } else if(esc == UA_ESCAPING_AND &&
  ------------------
  |  Branch (1006:19): [True: 6.19k, False: 0]
  ------------------
 1007|  6.19k|                  UA_NodeId_equal(&aggregatesRefs, &elm->referenceTypeId) &&
  ------------------
  |  Branch (1007:19): [True: 1.96k, False: 4.22k]
  ------------------
 1008|  1.96k|                  !elm->isInverse && elm->includeSubtypes) {
  ------------------
  |  Branch (1008:19): [True: 1.64k, False: 321]
  |  Branch (1008:38): [True: 1.58k, False: 66]
  ------------------
 1009|  1.58k|            res |= UA_String_append(&tmp, UA_STRING("."));
 1010|  4.61k|        } else {
 1011|  4.61k|            res |= UA_String_append(&tmp, UA_STRING("<"));
 1012|  4.61k|            if(!elm->includeSubtypes)
  ------------------
  |  Branch (1012:16): [True: 553, False: 4.05k]
  ------------------
 1013|    553|                res |= UA_String_append(&tmp, UA_STRING("#"));
 1014|  4.61k|            if(elm->isInverse)
  ------------------
  |  Branch (1014:16): [True: 582, False: 4.02k]
  ------------------
 1015|    582|                res |= UA_String_append(&tmp, UA_STRING("!"));
 1016|  4.61k|            if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|  4.61k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1016:16): [True: 0, False: 4.61k]
  ------------------
 1017|      0|                break;
 1018|       |
 1019|  4.61k|            UA_Byte bnBuf[512];
 1020|  4.61k|            UA_String bnBufStr = {512, bnBuf};
 1021|  4.61k|            res = getRefTypeBrowseName(&elm->referenceTypeId, &bnBufStr);
 1022|  4.61k|            if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|  4.61k|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1022:16): [True: 690, False: 3.92k]
  ------------------
 1023|    690|                UA_String_init(&bnBufStr);
 1024|    690|                res = getRefTypeBrowseName(&elm->referenceTypeId, &bnBufStr);
 1025|    690|                if(res != UA_STATUSCODE_GOOD)
  ------------------
  |  |   17|    690|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1025:20): [True: 0, False: 690]
  ------------------
 1026|      0|                    break;
 1027|    690|            }
 1028|  4.61k|            res |= UA_String_escapeAppend(&tmp, bnBufStr, esc);
 1029|  4.61k|            res |= UA_String_append(&tmp, UA_STRING(">"));
 1030|  4.61k|            if(bnBufStr.data != bnBuf)
  ------------------
  |  Branch (1030:16): [True: 690, False: 3.92k]
  ------------------
 1031|    690|                UA_String_clear(&bnBufStr);
 1032|  4.61k|        }
 1033|       |
 1034|       |        /* Print the qualified name */
 1035|  8.62k|        UA_QualifiedName *qn = &elm->targetName;
 1036|  8.62k|        if(qn->namespaceIndex > 0) {
  ------------------
  |  Branch (1036:12): [True: 419, False: 8.20k]
  ------------------
 1037|    419|            char nsStr[8]; /* Enough for a uint16 */
 1038|    419|            itoaUnsigned(qn->namespaceIndex, nsStr, 10);
 1039|    419|            res |= UA_String_append(&tmp, UA_STRING(nsStr));
 1040|    419|            res |= UA_String_append(&tmp, UA_STRING(":"));
 1041|    419|        }
 1042|  8.62k|        res |= UA_String_escapeAppend(&tmp, qn->name, esc);
 1043|  8.62k|    }
 1044|       |
 1045|       |    /* Encoding failed, clean up */
 1046|    764|    if(res != UA_STATUSCODE_GOOD) {
  ------------------
  |  |   17|    764|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  |  Branch (1046:8): [True: 0, False: 764]
  ------------------
 1047|      0|        UA_String_clear(&tmp);
 1048|      0|        return res;
 1049|      0|    }
 1050|       |
 1051|    764|    return moveTmpToOut(&tmp, out);
 1052|    764|}
ua_util.c:moveTmpToOut:
  960|    764|moveTmpToOut(UA_String *tmp, UA_String *out) {
  961|       |    /* Output has zero length */
  962|    764|    if(tmp->length == 0) {
  ------------------
  |  Branch (962:8): [True: 0, False: 764]
  ------------------
  963|      0|        UA_assert(tmp->data == NULL);
  ------------------
  |  |  399|      0|# define UA_assert(ignore) assert(ignore)
  ------------------
  |  Branch (963:9): [True: 0, False: 0]
  ------------------
  964|      0|        if(out->data == NULL)
  ------------------
  |  Branch (964:12): [True: 0, False: 0]
  ------------------
  965|      0|            out->data = (UA_Byte*)UA_EMPTY_ARRAY_SENTINEL;
  ------------------
  |  |  755|      0|#define UA_EMPTY_ARRAY_SENTINEL ((void*)0x01)
  ------------------
  966|      0|        out->length = 0;
  967|      0|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  968|      0|    }
  969|       |
  970|       |    /* No output buffer provided, return the tmp buffer */
  971|    764|    if(out->length == 0) {
  ------------------
  |  Branch (971:8): [True: 764, False: 0]
  ------------------
  972|    764|        *out = *tmp;
  973|    764|        return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|    764|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  974|    764|    }
  975|       |
  976|       |    /* The provided buffer is too short */
  977|      0|    if(out->length < tmp->length) {
  ------------------
  |  Branch (977:8): [True: 0, False: 0]
  ------------------
  978|      0|        UA_String_clear(tmp);
  979|      0|        return UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED;
  ------------------
  |  |   47|      0|#define UA_STATUSCODE_BADENCODINGLIMITSEXCEEDED ((UA_StatusCode) 0x80080000)
  ------------------
  980|      0|    }
  981|       |
  982|       |    /* Copy output to the provided buffer */
  983|      0|    memcpy(out->data, tmp->data, tmp->length);
  984|      0|    out->length = tmp->length;
  985|      0|    UA_String_clear(tmp);
  986|      0|    return UA_STATUSCODE_GOOD;
  ------------------
  |  |   17|      0|#define UA_STATUSCODE_GOOD ((UA_StatusCode) 0x00000000)
  ------------------
  987|      0|}

ua_types.c:isTrue:
  167|  11.1k|isTrue(uint8_t expr) {
  168|  11.1k|    return expr;
  169|  11.1k|}
ua_util.c:isReservedAnd:
   83|  11.4M|isReservedAnd(u8 c) {
   84|  11.4M|    return (c == '/' || c == '.' || c == '<' || c == '>' ||
  ------------------
  |  Branch (84:13): [True: 106k, False: 11.3M]
  |  Branch (84:25): [True: 146k, False: 11.2M]
  |  Branch (84:37): [True: 13.6k, False: 11.1M]
  |  Branch (84:49): [True: 836, False: 11.1M]
  ------------------
   85|  11.1M|            c == ':' || c == '#' || c == '!' || c == '&');
  ------------------
  |  Branch (85:13): [True: 31.0k, False: 11.1M]
  |  Branch (85:25): [True: 1.92k, False: 11.1M]
  |  Branch (85:37): [True: 6.96k, False: 11.1M]
  |  Branch (85:49): [True: 11.3k, False: 11.1M]
  ------------------
   86|  11.4M|}
ua_util.c:isReservedPercent:
   95|  11.1M|isReservedPercent(u8 c) {
   96|  11.1M|    return (c == ';'  || c == '%' || c <= ' ' || c == 127);
  ------------------
  |  Branch (96:13): [True: 1.32k, False: 11.1M]
  |  Branch (96:26): [True: 12.3k, False: 11.0M]
  |  Branch (96:38): [True: 5.16M, False: 5.92M]
  |  Branch (96:50): [True: 3.60M, False: 2.32M]
  ------------------
   97|  11.1M|}
ua_util.c:isReservedPercentExtended:
  100|  11.1M|isReservedPercentExtended(u8 c) {
  101|  11.1M|    return (isReservedPercent(c) || c == ':' || c == '#' || c == '[' || c == ']' ||
  ------------------
  |  Branch (101:13): [True: 8.78M, False: 2.32M]
  |  Branch (101:37): [True: 30.2k, False: 2.28M]
  |  Branch (101:49): [True: 1.72k, False: 2.28M]
  |  Branch (101:61): [True: 4.30k, False: 2.28M]
  |  Branch (101:73): [True: 2.68k, False: 2.28M]
  ------------------
  102|  2.28M|            c == '&' || c == '(' || c == ')' || c == ',' || c == '<' || c == '>' ||
  ------------------
  |  Branch (102:13): [True: 9.88k, False: 2.27M]
  |  Branch (102:25): [True: 8.82k, False: 2.26M]
  |  Branch (102:37): [True: 605, False: 2.26M]
  |  Branch (102:49): [True: 11.0k, False: 2.25M]
  |  Branch (102:61): [True: 13.4k, False: 2.23M]
  |  Branch (102:73): [True: 327, False: 2.23M]
  ------------------
  103|  2.23M|            c == '`' || c == '/' || c == '\\' || c == '"' || c == '\'' );
  ------------------
  |  Branch (103:13): [True: 11.9k, False: 2.22M]
  |  Branch (103:25): [True: 106k, False: 2.11M]
  |  Branch (103:37): [True: 2.76k, False: 2.11M]
  |  Branch (103:50): [True: 24.8k, False: 2.09M]
  |  Branch (103:62): [True: 76.9k, False: 2.01M]
  ------------------
  104|  11.1M|}
ua_types_lex.c:isReservedPercentExtended:
  100|  5.63k|isReservedPercentExtended(u8 c) {
  101|  5.63k|    return (isReservedPercent(c) || c == ':' || c == '#' || c == '[' || c == ']' ||
  ------------------
  |  Branch (101:13): [True: 21, False: 5.61k]
  |  Branch (101:37): [True: 2, False: 5.60k]
  |  Branch (101:49): [True: 4, False: 5.60k]
  |  Branch (101:61): [True: 7, False: 5.59k]
  |  Branch (101:73): [True: 3, False: 5.59k]
  ------------------
  102|  5.59k|            c == '&' || c == '(' || c == ')' || c == ',' || c == '<' || c == '>' ||
  ------------------
  |  Branch (102:13): [True: 4, False: 5.59k]
  |  Branch (102:25): [True: 4, False: 5.58k]
  |  Branch (102:37): [True: 4, False: 5.58k]
  |  Branch (102:49): [True: 2, False: 5.58k]
  |  Branch (102:61): [True: 724, False: 4.85k]
  |  Branch (102:73): [True: 6, False: 4.85k]
  ------------------
  103|  4.85k|            c == '`' || c == '/' || c == '\\' || c == '"' || c == '\'' );
  ------------------
  |  Branch (103:13): [True: 3, False: 4.84k]
  |  Branch (103:25): [True: 2.18k, False: 2.66k]
  |  Branch (103:37): [True: 2, False: 2.66k]
  |  Branch (103:50): [True: 2, False: 2.66k]
  |  Branch (103:62): [True: 2, False: 2.66k]
  ------------------
  104|  5.63k|}
ua_types_lex.c:isReservedPercent:
   95|  5.63k|isReservedPercent(u8 c) {
   96|  5.63k|    return (c == ';'  || c == '%' || c <= ' ' || c == 127);
  ------------------
  |  Branch (96:13): [True: 4, False: 5.62k]
  |  Branch (96:26): [True: 0, False: 5.62k]
  |  Branch (96:38): [True: 15, False: 5.61k]
  |  Branch (96:50): [True: 2, False: 5.61k]
  ------------------
   97|  5.63k|}
ua_types_lex.c:isReservedAnd:
   83|  81.6k|isReservedAnd(u8 c) {
   84|  81.6k|    return (c == '/' || c == '.' || c == '<' || c == '>' ||
  ------------------
  |  Branch (84:13): [True: 2.54k, False: 79.0k]
  |  Branch (84:25): [True: 1.61k, False: 77.4k]
  |  Branch (84:37): [True: 5.79k, False: 71.6k]
  |  Branch (84:49): [True: 1, False: 71.6k]
  ------------------
   85|  71.6k|            c == ':' || c == '#' || c == '!' || c == '&');
  ------------------
  |  Branch (85:13): [True: 1, False: 71.6k]
  |  Branch (85:25): [True: 1, False: 71.6k]
  |  Branch (85:37): [True: 1, False: 71.6k]
  |  Branch (85:49): [True: 0, False: 71.6k]
  ------------------
   86|  81.6k|}

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

fuzz_parse_string.cc:_ZL14UA_NodeId_initP9UA_NodeId:
  243|    171|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL15UA_NodeId_clearP9UA_NodeId:
  243|    171|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL12UA_Guid_initP7UA_Guid:
  243|     54|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL22UA_ExpandedNodeId_initP17UA_ExpandedNodeId:
  243|    480|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL23UA_ExpandedNodeId_clearP17UA_ExpandedNodeId:
  243|    480|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL21UA_QualifiedName_initP16UA_QualifiedName:
  243|    154|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL22UA_QualifiedName_clearP16UA_QualifiedName:
  243|    154|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL20UA_RelativePath_initP15UA_RelativePath:
  243|    999|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL15UA_String_clearP9UA_String:
  243|  4.45k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL21UA_RelativePath_clearP15UA_RelativePath:
  243|    999|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL30UA_SimpleAttributeOperand_initP25UA_SimpleAttributeOperand:
  243|    585|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL31UA_SimpleAttributeOperand_clearP25UA_SimpleAttributeOperand:
  243|    585|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL19UA_ReadValueId_initP14UA_ReadValueId:
  243|    436|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
fuzz_parse_string.cc:_ZL20UA_ReadValueId_clearP14UA_ReadValueId:
  243|    436|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types.c:UA_ByteString_init:
  243|  4.38k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_String_init:
  243|    690|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_String_equal:
  243|  11.5k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_String_clear:
  243|    690|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_util.c:UA_NodeId_equal:
  243|  14.8k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_String_copy:
  243|  17.8k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_clear:
  243|    165|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_ExpandedNodeId_clear:
  243|    409|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_QualifiedName_clear:
  243|  1.15k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePath_init:
  243|  1.94k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePathElement_init:
  243|  14.7k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePathElement_clear:
  243|    611|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_RelativePath_clear:
  243|    235|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_AttributeOperand_init:
  243|  1.02k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_SimpleAttributeOperand_init:
  243|    121|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_String_init:
  243|    121|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_init:
  243|    121|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_NodeId_equal:
  243|  1.45k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_QualifiedName_init:
  243|  16.4k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_AttributeOperand_clear:
  243|  1.00k|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_SimpleAttributeOperand_clear:
  243|     42|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl
ua_types_lex.c:UA_ReadValueId_init:
  243|     13|# define UA_INLINABLE(decl, impl) static UA_INLINE decl impl

