prdic_init:
   81|      4|{
   82|      4|    struct prdic_inst *pip;
   83|       |
   84|      4|    pip = malloc(sizeof(struct prdic_inst));
   85|      4|    if (pip == NULL) {
  ------------------
  |  Branch (85:9): [True: 0, False: 4]
  ------------------
   86|      0|        goto e0;
   87|      0|    }
   88|      4|    memset(pip, '\0', sizeof(struct prdic_inst));
   89|      4|    pip->root_band = malloc(sizeof(struct prdic_band));
   90|      4|    if (pip->root_band == NULL) {
  ------------------
  |  Branch (90:9): [True: 0, False: 4]
  ------------------
   91|      0|        goto e1;
   92|      0|    }
   93|      4|    memset(pip->root_band, '\0', sizeof(struct prdic_band));
   94|      4|    pip->ab = pip->root_band;
   95|      4|    if (getttime(&pip->ab->epoch, 0) != 0) {
  ------------------
  |  Branch (95:9): [True: 0, False: 4]
  ------------------
   96|      0|        goto e2;
   97|      0|    }
   98|      4|    tplusdtime(&pip->ab->epoch, off_from_now);
   99|      4|    band_init(pip->ab, PRDIC_DET_FREQ, freq_hz);
  100|      4|    return ((void *)pip);
  101|      0|e2:
  102|      0|    free(pip->root_band);
  103|      0|e1:
  104|      0|    free(pip);
  105|      0|e0:
  106|       |    return (NULL);
  107|      0|}
prdic_procrastinate:
  227|  18.9k|{
  228|  18.9k|    struct prdic_inst *pip;
  229|       |
  230|  18.9k|    pip = (struct prdic_inst *)prdic_inst;
  231|  18.9k|    switch (pip->ab->det_type) {
  232|  18.9k|    case PRDIC_DET_FREQ:
  ------------------
  |  Branch (232:5): [True: 18.9k, False: 0]
  ------------------
  233|  18.9k|        return (_prdic_procrastinate_FD(pip));
  234|      0|    case PRDIC_DET_PHASE:
  ------------------
  |  Branch (234:5): [True: 0, False: 18.9k]
  ------------------
  235|      0|        return (_prdic_procrastinate_PFD(pip));
  236|      0|    default:
  ------------------
  |  Branch (236:5): [True: 0, False: 18.9k]
  ------------------
  237|      0|        abort();
  238|  18.9k|    }
  239|  18.9k|}
prdic_free:
  289|      4|{
  290|      4|    struct prdic_inst *pip;
  291|      4|    struct prdic_band *tbp, *fbp;
  292|       |
  293|      4|    pip = (struct prdic_inst *)prdic_inst;
  294|      8|    for (tbp = pip->root_band; tbp != NULL;) {
  ------------------
  |  Branch (294:32): [True: 4, False: 4]
  ------------------
  295|      4|        fbp = tbp;
  296|      4|        tbp = tbp->next;
  297|      4|        free(fbp);
  298|      4|    }
  299|      4|    if (pip->sip != NULL) {
  ------------------
  |  Branch (299:9): [True: 0, False: 4]
  ------------------
  300|      0|        prdic_sign_dtor(pip->sip);
  301|      0|    }
  302|      4|    free(prdic_inst);
  303|      4|}
periodic.c:band_init:
   54|      4|{
   55|       |
   56|      4|    bp->det_type = dt;
   57|      4|    bp->freq_hz = freq_hz;
   58|      4|    bp->period = 1.0 / freq_hz;
   59|      4|    dtime2timespec(bp->period, &bp->tperiod);
  ------------------
  |  |   37|      4|    do {                                                           \
  |  |   38|      4|        SEC(tp) = trunc(d);                                        \
  |  |  ------------------
  |  |  |  |   30|      4|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   39|      4|        NSEC(tp) = round((double)NSEC_IN_SEC * ((d) - SEC(tp)));   \
  |  |  ------------------
  |  |  |  |   31|      4|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       NSEC(tp) = round((double)NSEC_IN_SEC * ((d) - SEC(tp)));   \
  |  |  ------------------
  |  |  |  |   32|      4|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |                       NSEC(tp) = round((double)NSEC_IN_SEC * ((d) - SEC(tp)));   \
  |  |  ------------------
  |  |  |  |   30|      4|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   40|      4|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4]
  |  |  ------------------
  ------------------
   60|      4|    dtime2timespec(freq_hz, &bp->tfreq_hz);
  ------------------
  |  |   37|      4|    do {                                                           \
  |  |   38|      4|        SEC(tp) = trunc(d);                                        \
  |  |  ------------------
  |  |  |  |   30|      4|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   39|      4|        NSEC(tp) = round((double)NSEC_IN_SEC * ((d) - SEC(tp)));   \
  |  |  ------------------
  |  |  |  |   31|      4|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       NSEC(tp) = round((double)NSEC_IN_SEC * ((d) - SEC(tp)));   \
  |  |  ------------------
  |  |  |  |   32|      4|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |                       NSEC(tp) = round((double)NSEC_IN_SEC * ((d) - SEC(tp)));   \
  |  |  ------------------
  |  |  |  |   30|      4|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   40|      4|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4]
  |  |  ------------------
  ------------------
   61|      4|    _prdic_recfilter_init(&bp->loop_error, 0.96, 1.0);
   62|      4|    _prdic_shmtrig_init(&bp->le_shmtrig, 1, 0.3, 0.7);
   63|      4|    bp->loop_error.procchain[0] = &(bp->le_shmtrig.link);
   64|      4|    _prdic_recfilter_init(&bp->add_delay_fltrd, 0.96, 1.0);
   65|      4|    _prdic_recfilter_init(&bp->sysload_fltrd, 0.997, 0.0);
   66|      4|    switch (dt) {
   67|      4|    case PRDIC_DET_FREQ:
  ------------------
  |  Branch (67:5): [True: 4, False: 0]
  ------------------
   68|      4|        _prdic_FD_init(&bp->detector.freq);
   69|      4|        break;
   70|      0|    case PRDIC_DET_PHASE:
  ------------------
  |  Branch (70:5): [True: 0, False: 4]
  ------------------
   71|      0|        _prdic_PFD_init(&bp->detector.phase);
   72|      0|        break;
   73|      0|    default:
  ------------------
  |  Branch (73:5): [True: 0, False: 4]
  ------------------
   74|      0|        abort();
   75|      4|    }
   76|       |
   77|      4|}

_prdic_FD_init:
   38|      4|{
   39|       |
   40|      4|    memset(fd_p, '\0', sizeof(struct _prdic_FD));
   41|      4|}
_prdic_FD_get_error:
   45|  18.9k|{
   46|  18.9k|    double err0r;
   47|  18.9k|    struct timespec ttclk;
   48|       |
   49|  18.9k|    if (timespeciszero(&fd_p->last_tclk)) {
  ------------------
  |  |   42|  18.9k|#define timespeciszero(t) (SEC(t) == 0 && NSEC(t) == 0)
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |               #define timespeciszero(t) (SEC(t) == 0 && NSEC(t) == 0)
  |  |  ------------------
  |  |  |  |   31|      4|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |  |  Branch (42:28): [True: 4, False: 18.9k]
  |  |  |  Branch (42:43): [True: 4, False: 0]
  |  |  ------------------
  ------------------
   50|      4|        fd_p->last_tclk = *tclk;
   51|      4|        return (0.0);
   52|      4|    }
   53|  18.9k|    timespecsub2(&ttclk, tclk, &fd_p->last_tclk);
  ------------------
  |  |   71|  18.9k|    do {                                                              \
  |  |   72|  18.9k|        SEC(r) = SEC(v) - SEC(u);                                     \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |                       SEC(r) = SEC(v) - SEC(u);                                     \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |                       SEC(r) = SEC(v) - SEC(u);                                     \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   73|  18.9k|        NSEC(r) = NSEC(v) - NSEC(u);                                  \
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       NSEC(r) = NSEC(v) - NSEC(u);                                  \
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       NSEC(r) = NSEC(v) - NSEC(u);                                  \
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |   74|  18.9k|        if (NSEC(r) < 0 && (SEC(r) > 0 || NSEC(r) <= -NSEC_IN_SEC)) { \
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       if (NSEC(r) < 0 && (SEC(r) > 0 || NSEC(r) <= -NSEC_IN_SEC)) { \
  |  |  ------------------
  |  |  |  |   30|  10.6k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |                       if (NSEC(r) < 0 && (SEC(r) > 0 || NSEC(r) <= -NSEC_IN_SEC)) { \
  |  |  ------------------
  |  |  |  |   31|      0|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       if (NSEC(r) < 0 && (SEC(r) > 0 || NSEC(r) <= -NSEC_IN_SEC)) { \
  |  |  ------------------
  |  |  |  |   32|      0|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |  |  Branch (74:13): [True: 10.6k, False: 8.30k]
  |  |  |  Branch (74:29): [True: 10.6k, False: 0]
  |  |  |  Branch (74:43): [True: 0, False: 0]
  |  |  ------------------
  |  |   75|  10.6k|            SEC(r)--;                                                 \
  |  |  ------------------
  |  |  |  |   30|  10.6k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   76|  10.6k|            NSEC(r) += NSEC_IN_SEC;                                   \
  |  |  ------------------
  |  |  |  |   31|  10.6k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                           NSEC(r) += NSEC_IN_SEC;                                   \
  |  |  ------------------
  |  |  |  |   32|  10.6k|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |   77|  10.6k|        }                                                             \
  |  |   78|  18.9k|    } while (0);
  |  |  ------------------
  |  |  |  Branch (78:14): [Folded, False: 18.9k]
  |  |  ------------------
  ------------------
   54|  18.9k|    err0r = timespec2dtime(&ttclk);
  ------------------
  |  |   34|  18.9k|#define timespec2dtime(s) ((double)SEC(s) + \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   35|  18.9k|  (double)NSEC(s) / (double)NSEC_IN_SEC)
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                 (double)NSEC(s) / (double)NSEC_IN_SEC)
  |  |  ------------------
  |  |  |  |   32|  18.9k|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  ------------------
   55|  18.9k|    fd_p->last_tclk = *tclk;
   56|  18.9k|    return (1.0 - err0r);
   57|  18.9k|}

_prdic_do_procrastinate:
   51|  18.9k|{
   52|  18.9k|    struct timespec tsleep, tremain;
   53|  18.9k|    int rval, nint;
   54|  18.9k|    double add_delay;
   55|  18.9k|    struct timespec eptime;
   56|       |
   57|  18.9k|    if (pip->sip != NULL) {
  ------------------
  |  Branch (57:9): [True: 0, False: 18.9k]
  ------------------
   58|      0|        prdic_CFT_serve(pip->sip);
   59|      0|        prdic_sign_unblock(pip->sip);
   60|      0|    }
   61|  18.9k|    if (skipdelay) {
  ------------------
  |  Branch (61:9): [True: 0, False: 18.9k]
  ------------------
   62|      0|        goto skipdelay;
   63|      0|    }
   64|       |
   65|  18.9k|    add_delay = pip->ab->period * pip->ab->add_delay_fltrd.lastval;
   66|  18.9k|    dtime2timespec(add_delay, &tremain);
  ------------------
  |  |   37|  18.9k|    do {                                                           \
  |  |   38|  18.9k|        SEC(tp) = trunc(d);                                        \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   39|  18.9k|        NSEC(tp) = round((double)NSEC_IN_SEC * ((d) - SEC(tp)));   \
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       NSEC(tp) = round((double)NSEC_IN_SEC * ((d) - SEC(tp)));   \
  |  |  ------------------
  |  |  |  |   32|  18.9k|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |                       NSEC(tp) = round((double)NSEC_IN_SEC * ((d) - SEC(tp)));   \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   40|  18.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 18.9k]
  |  |  ------------------
  ------------------
   67|       |
   68|  18.9k|    do {
   69|  18.9k|        unsigned int nsigns;
   70|       |
   71|  18.9k|        tsleep = tremain;
   72|  18.9k|        memset(&tremain, '\0', sizeof(tremain));
   73|  18.9k|        if (pip->sip != NULL) {
  ------------------
  |  Branch (73:13): [True: 0, False: 18.9k]
  ------------------
   74|      0|            nsigns = prdic_sign_getnrecv();
   75|      0|        }
   76|  18.9k|        rval = nanosleep(&tsleep, &tremain);
   77|  18.9k|        nint = (rval < 0 && errno == EINTR);
  ------------------
  |  Branch (77:17): [True: 0, False: 18.9k]
  |  Branch (77:29): [True: 0, False: 0]
  ------------------
   78|  18.9k|        if (pip->sip != NULL) {
  ------------------
  |  Branch (78:13): [True: 0, False: 18.9k]
  ------------------
   79|      0|            if (nint && nsigns == prdic_sign_getnrecv()) {
  ------------------
  |  Branch (79:17): [True: 0, False: 0]
  |  Branch (79:25): [True: 0, False: 0]
  ------------------
   80|       |                /* Got some interrupt, but it was not *our* signal */
   81|      0|                break;
   82|      0|            }
   83|      0|            prdic_sign_block(pip->sip);
   84|      0|            prdic_CFT_serve(pip->sip);
   85|      0|            prdic_sign_unblock(pip->sip);
   86|      0|        }
   87|  18.9k|    } while (nint && !timespeciszero(&tremain));
  ------------------
  |  |   42|      0|#define timespeciszero(t) (SEC(t) == 0 && NSEC(t) == 0)
  |  |  ------------------
  |  |  |  |   30|      0|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |               #define timespeciszero(t) (SEC(t) == 0 && NSEC(t) == 0)
  |  |  ------------------
  |  |  |  |   31|      0|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |  |  Branch (42:28): [True: 0, False: 0]
  |  |  |  Branch (42:43): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (87:14): [True: 0, False: 18.9k]
  ------------------
   88|       |
   89|  18.9k|skipdelay:
   90|  18.9k|    if (pip->sip != NULL) {
  ------------------
  |  Branch (90:9): [True: 0, False: 18.9k]
  ------------------
   91|      0|        prdic_sign_block(pip->sip);
   92|      0|    }
   93|  18.9k|    getttime(&eptime, 1);
   94|       |
   95|  18.9k|    timespecsub(&eptime, &pip->ab->epoch);
  ------------------
  |  |   61|  18.9k|    do {                                \
  |  |   62|  18.9k|        SEC(vvp) -= SEC(uvp);           \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |                       SEC(vvp) -= SEC(uvp);           \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   63|  18.9k|        NSEC(vvp) -= NSEC(uvp);         \
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       NSEC(vvp) -= NSEC(uvp);         \
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |   64|  18.9k|        if (NSEC(vvp) < 0) {            \
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |  |  Branch (64:13): [True: 9.76k, False: 9.14k]
  |  |  ------------------
  |  |   65|  9.76k|            SEC(vvp)--;                 \
  |  |  ------------------
  |  |  |  |   30|  9.76k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   66|  9.76k|            NSEC(vvp) += NSEC_IN_SEC;   \
  |  |  ------------------
  |  |  |  |   31|  9.76k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                           NSEC(vvp) += NSEC_IN_SEC;   \
  |  |  ------------------
  |  |  |  |   32|  9.76k|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |   67|  9.76k|        }                               \
  |  |   68|  18.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (68:14): [Folded, False: 18.9k]
  |  |  ------------------
  ------------------
   96|  18.9k|    timespecmul(&pip->ab->last_tclk, &eptime, &pip->ab->tfreq_hz);
  ------------------
  |  |   81|  18.9k|    do {                                                           \
  |  |   82|  18.9k|        long long tnsec;                                           \
  |  |   83|  18.9k|        SEC(rvp) = SEC(vvp) * SEC(uvp);                            \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |                       SEC(rvp) = SEC(vvp) * SEC(uvp);                            \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |                       SEC(rvp) = SEC(vvp) * SEC(uvp);                            \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   84|  18.9k|        tnsec = (long long)(NSEC(vvp) * NSEC(uvp)) / NSEC_IN_SEC;  \
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       tnsec = (long long)(NSEC(vvp) * NSEC(uvp)) / NSEC_IN_SEC;  \
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       tnsec = (long long)(NSEC(vvp) * NSEC(uvp)) / NSEC_IN_SEC;  \
  |  |  ------------------
  |  |  |  |   32|  18.9k|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |   85|  18.9k|        tnsec += (long long)(SEC(vvp) * NSEC(uvp));                \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |                       tnsec += (long long)(SEC(vvp) * NSEC(uvp));                \
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |   86|  18.9k|        tnsec += (long long)(SEC(uvp) * NSEC(vvp));                \
  |  |  ------------------
  |  |  |  |   30|  18.9k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |                       tnsec += (long long)(SEC(uvp) * NSEC(vvp));                \
  |  |  ------------------
  |  |  |  |   31|  18.9k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |   87|  18.9k|        if (tnsec >= NSEC_IN_SEC) {                                \
  |  |  ------------------
  |  |  |  |   32|  18.9k|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |  |  Branch (87:13): [True: 18.5k, False: 376]
  |  |  ------------------
  |  |   88|  18.5k|            SEC(rvp) += (tnsec / NSEC_IN_SEC);                     \
  |  |  ------------------
  |  |  |  |   30|  18.5k|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |                           SEC(rvp) += (tnsec / NSEC_IN_SEC);                     \
  |  |  ------------------
  |  |  |  |   32|  18.5k|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |   89|  18.5k|            NSEC(rvp) = (tnsec % NSEC_IN_SEC);                     \
  |  |  ------------------
  |  |  |  |   31|  18.5k|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                           NSEC(rvp) = (tnsec % NSEC_IN_SEC);                     \
  |  |  ------------------
  |  |  |  |   32|  18.5k|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |   90|  18.5k|        } else {                                                   \
  |  |   91|    376|            NSEC(rvp) = tnsec;                                     \
  |  |  ------------------
  |  |  |  |   31|    376|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |   92|    376|        }                                                          \
  |  |   93|  18.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (93:14): [Folded, False: 18.9k]
  |  |  ------------------
  ------------------
   97|  18.9k|}

_prdic_procrastinate_FD:
   56|  18.9k|{
   57|  18.9k|    double eval, teval, add_delay;
   58|  18.9k|    struct prdic_band *abp = pip->ab;
   59|       |#if PRD_DEBUG
   60|       |    static long long nrun = -1;
   61|       |
   62|       |    nrun += 1;
   63|       |#endif
   64|       |
   65|       |#if PRD_DEBUG
   66|       |    add_delay = abp->period * abp->add_delay_fltrd.lastval;
   67|       |    fprintf(stderr, "nrun=%lld add_delay=%f add_delay_fltrd=%f lastval=%f\n",
   68|       |      nrun, add_delay, abp->add_delay_fltrd.lastval,
   69|       |      abp->loop_error.lastval);
   70|       |    fflush(stderr);
   71|       |#endif
   72|       |
   73|  18.9k|    _prdic_do_procrastinate(pip, abp->add_delay_fltrd.lastval <= 0);
   74|       |
   75|  18.9k|    eval = _prdic_FD_get_error(&abp->detector.freq, &abp->last_tclk);
   76|  18.9k|    eval = abp->loop_error.lastval + erf(eval - abp->loop_error.lastval);
   77|  18.9k|    _prdic_recfilter_apply(&abp->loop_error, eval);
   78|  18.9k|    add_delay = abp->add_delay_fltrd.lastval + eval;
   79|  18.9k|    _prdic_recfilter_apply(&abp->add_delay_fltrd, add_delay);
   80|  18.9k|    if (abp->add_delay_fltrd.lastval < 0.0) {
  ------------------
  |  Branch (80:9): [True: 0, False: 18.9k]
  ------------------
   81|      0|        abp->add_delay_fltrd.lastval = 0;
   82|  18.9k|    } else if (abp->add_delay_fltrd.lastval > 1.0) {
  ------------------
  |  Branch (82:16): [True: 50, False: 18.8k]
  ------------------
   83|     50|        abp->add_delay_fltrd.lastval = 1.0;
   84|     50|    }
   85|  18.9k|    if (abp->add_delay_fltrd.lastval > 0) {
  ------------------
  |  Branch (85:9): [True: 18.9k, False: 0]
  ------------------
   86|  18.9k|        teval = 1.0 - abp->add_delay_fltrd.lastval;
   87|  18.9k|    } else {
   88|      0|        teval = 1.0 - abp->loop_error.lastval;
   89|      0|    }
   90|  18.9k|    _prdic_recfilter_apply(&abp->sysload_fltrd, teval);
   91|       |
   92|       |#if PRD_DEBUG
   93|       |    fprintf(stderr, "run=%lld raw_error=%f filtered_error=%f teval=%f filtered_teval=%f\n", nrun,
   94|       |      eval, abp->loop_error.lastval, teval, abp->sysload_fltrd.lastval);
   95|       |    fflush(stderr);
   96|       |#endif
   97|       |
   98|       |#if PRD_DEBUG
   99|       |    fprintf(stderr, "error=%f\n", eval);
  100|       |    if (eval == 0.0 || 1) {
  101|       |        fprintf(stderr, "last=%lld target=%lld\n", SEC(&abp->last_tclk),
  102|       |          SEC(&abp->detector.freq.last_tclk));
  103|       |    }
  104|       |    fflush(stderr);
  105|       |#endif
  106|       |
  107|  18.9k|    return (0);
  108|  18.9k|}

_prdic_recfilter_apply:
   39|  56.7k|{
   40|  56.7k|    double chainval;
   41|       |
   42|  56.7k|    f->lastval = f->a * x + f->b * f->lastval;
   43|  75.6k|    for (int i = 0; f->procchain[i] != NULL; i++) {
  ------------------
  |  Branch (43:21): [True: 18.9k, False: 56.7k]
  ------------------
   44|  18.9k|        struct _prdic_procchain *clnk;
   45|       |
   46|  18.9k|        if (i == 0)
  ------------------
  |  Branch (46:13): [True: 18.9k, False: 0]
  ------------------
   47|  18.9k|            chainval = f->lastval;
   48|  18.9k|        clnk = f->procchain[i];
   49|  18.9k|        chainval = clnk->handle(clnk->arg, chainval);
   50|  18.9k|    }
   51|  56.7k|    return f->lastval;
   52|  56.7k|}
_prdic_recfilter_init:
   56|     12|{
   57|       |
   58|     12|    f->lastval = initval;
   59|     12|    _prdic_recfilter_adjust(f, fcoef);
   60|     12|}
_prdic_recfilter_adjust:
   64|     12|{
   65|       |
   66|     12|    assert(fcoef < 1.0 && fcoef > 0.0);
  ------------------
  |  Branch (66:5): [True: 0, False: 12]
  |  Branch (66:5): [True: 0, False: 0]
  |  Branch (66:5): [True: 12, False: 0]
  |  Branch (66:5): [True: 12, False: 0]
  ------------------
   67|     12|    f->a = 1.0 - fcoef;
   68|     12|    f->b = fcoef;
   69|     12|}

_prdic_shmtrig_init:
   48|      4|{
   49|       |
   50|      4|    pub->currval = ival;
   51|      4|    pub->lTrs = lTrs;
   52|      4|    pub->hTrs = hTrs;
   53|      4|    pub->link.handle = _prdic_shmtrig_update;
   54|      4|    pub->link.arg = pub;
   55|      4|}
prdic_shmtrig.c:_prdic_shmtrig_update:
   33|  18.9k|{
   34|  18.9k|    struct _prdic_shmtrig *pub;
   35|       |
   36|  18.9k|    pub = (struct _prdic_shmtrig *)arg;
   37|  18.9k|    if (pub->currval && val < pub->lTrs) {
  ------------------
  |  Branch (37:9): [True: 120, False: 18.7k]
  |  Branch (37:25): [True: 4, False: 116]
  ------------------
   38|      4|        pub->currval = 0;
   39|  18.9k|    } else if (!pub->currval && val > pub->hTrs) {
  ------------------
  |  Branch (39:16): [True: 18.7k, False: 116]
  |  Branch (39:33): [True: 0, False: 18.7k]
  ------------------
   40|      0|        pub->currval = 1;
   41|      0|    }
   42|  18.9k|    return (pub->currval);
   43|  18.9k|}

periodic.c:getttime:
   33|      4|{
   34|       |
   35|      4|    if (clock_gettime(CLOCK_MONOTONIC, ttp) == -1) {
  ------------------
  |  Branch (35:9): [True: 0, False: 4]
  ------------------
   36|      0|        if (abort_on_fail)
  ------------------
  |  Branch (36:13): [True: 0, False: 0]
  ------------------
   37|      0|            abort();
   38|      0|        return (-1);
   39|      0|    }
   40|      4|    return (0);
   41|      4|}
periodic.c:tplusdtime:
   56|      4|{
   57|      4|    struct timespec tp;
   58|       |
   59|      4|    dtime2timespec(offset, &tp);
  ------------------
  |  |   37|      4|    do {                                                           \
  |  |   38|      4|        SEC(tp) = trunc(d);                                        \
  |  |  ------------------
  |  |  |  |   30|      4|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   39|      4|        NSEC(tp) = round((double)NSEC_IN_SEC * ((d) - SEC(tp)));   \
  |  |  ------------------
  |  |  |  |   31|      4|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       NSEC(tp) = round((double)NSEC_IN_SEC * ((d) - SEC(tp)));   \
  |  |  ------------------
  |  |  |  |   32|      4|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |                       NSEC(tp) = round((double)NSEC_IN_SEC * ((d) - SEC(tp)));   \
  |  |  ------------------
  |  |  |  |   30|      4|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   40|      4|    } while (0)
  |  |  ------------------
  |  |  |  Branch (40:14): [Folded, False: 4]
  |  |  ------------------
  ------------------
   60|      4|    timespecadd(ttp, &tp);
  ------------------
  |  |   48|      4|    do {                                \
  |  |   49|      4|        SEC(vvp) += SEC(uvp);           \
  |  |  ------------------
  |  |  |  |   30|      4|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |                       SEC(vvp) += SEC(uvp);           \
  |  |  ------------------
  |  |  |  |   30|      4|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   50|      4|        NSEC(vvp) += NSEC(uvp);         \
  |  |  ------------------
  |  |  |  |   31|      4|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       NSEC(vvp) += NSEC(uvp);         \
  |  |  ------------------
  |  |  |  |   31|      4|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |   51|      4|        if (NSEC(vvp) >= NSEC_IN_SEC) { \
  |  |  ------------------
  |  |  |  |   31|      4|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                       if (NSEC(vvp) >= NSEC_IN_SEC) { \
  |  |  ------------------
  |  |  |  |   32|      4|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |  |  Branch (51:13): [True: 0, False: 4]
  |  |  ------------------
  |  |   52|      0|            SEC(vvp)++;                 \
  |  |  ------------------
  |  |  |  |   30|      0|#define SEC(x)      ((x)->tv_sec)
  |  |  ------------------
  |  |   53|      0|            NSEC(vvp) -= NSEC_IN_SEC;   \
  |  |  ------------------
  |  |  |  |   31|      0|#define NSEC(x)     ((x)->tv_nsec)
  |  |  ------------------
  |  |                           NSEC(vvp) -= NSEC_IN_SEC;   \
  |  |  ------------------
  |  |  |  |   32|      0|#define NSEC_IN_SEC 1000000000L
  |  |  ------------------
  |  |   54|      0|        }                               \
  |  |   55|      4|    } while (0)
  |  |  ------------------
  |  |  |  Branch (55:14): [Folded, False: 4]
  |  |  ------------------
  ------------------
   61|      4|}
prdic_main.c:getttime:
   33|  18.9k|{
   34|       |
   35|  18.9k|    if (clock_gettime(CLOCK_MONOTONIC, ttp) == -1) {
  ------------------
  |  Branch (35:9): [True: 0, False: 18.9k]
  ------------------
   36|      0|        if (abort_on_fail)
  ------------------
  |  Branch (36:13): [True: 0, False: 0]
  ------------------
   37|      0|            abort();
   38|      0|        return (-1);
   39|      0|    }
   40|  18.9k|    return (0);
   41|  18.9k|}

ucl_parser.c:ucl_strdup_impl:
   81|   555k|{
   82|   555k|	size_t len = strlen(s) + 1;
   83|   555k|	char *p = (char *) UCL_ALLOC(len);
  ------------------
  |  |   71|   555k|#define UCL_ALLOC(size) malloc(size)
  ------------------
   84|   555k|	if (p) memcpy(p, s, len);
  ------------------
  |  Branch (84:6): [True: 555k, False: 0]
  ------------------
   85|   555k|	return p;
   86|   555k|}
ucl_util.c:ucl_strdup_impl:
   81|  14.7k|{
   82|  14.7k|	size_t len = strlen(s) + 1;
   83|  14.7k|	char *p = (char *) UCL_ALLOC(len);
  ------------------
  |  |   71|  14.7k|#define UCL_ALLOC(size) malloc(size)
  ------------------
   84|  14.7k|	if (p) memcpy(p, s, len);
  ------------------
  |  Branch (84:6): [True: 14.7k, False: 0]
  ------------------
   85|  14.7k|	return p;
   86|  14.7k|}

ucl_hash.c:kh_init_ucl_hash_node:
  240|   117k|	SCOPE kh_##name##_t *kh_init_##name(void) {							\
  241|   117k|		return (kh_##name##_t*)kcalloc(1, sizeof(kh_##name##_t));		\
  ------------------
  |  |  180|   117k|#define kcalloc(N,Z) calloc(N,Z)
  ------------------
  242|   117k|	}																	\
ucl_hash.c:kh_destroy_ucl_hash_node:
  244|   117k|	{																	\
  245|   117k|		if (h) {														\
  ------------------
  |  Branch (245:7): [True: 117k, False: 0]
  ------------------
  246|   117k|			kfree((void *)h->keys); kfree(h->flags);					\
  ------------------
  |  |  189|   117k|#define kfree(P) free(P)
  ------------------
              			kfree((void *)h->keys); kfree(h->flags);					\
  ------------------
  |  |  189|   117k|#define kfree(P) free(P)
  ------------------
  247|   117k|			kfree((void *)h->vals);										\
  ------------------
  |  |  189|   117k|#define kfree(P) free(P)
  ------------------
  248|   117k|			kfree(h);													\
  ------------------
  |  |  189|   117k|#define kfree(P) free(P)
  ------------------
  249|   117k|		}																\
  250|   117k|	}																	\
ucl_hash.c:kh_put_ucl_hash_node:
  338|   179k|	{																	\
  339|   179k|		khint_t x;														\
  340|   179k|		if (h->n_occupied >= h->upper_bound) { /* update the hash table */ \
  ------------------
  |  Branch (340:7): [True: 92.7k, False: 87.1k]
  ------------------
  341|  92.7k|			if (h->n_buckets > (h->size<<1)) {							\
  ------------------
  |  Branch (341:8): [True: 0, False: 92.7k]
  ------------------
  342|      0|				if (kh_resize_##name(h, h->n_buckets - 1) < 0) { /* clear "deleted" elements */ \
  ------------------
  |  Branch (342:9): [True: 0, False: 0]
  ------------------
  343|      0|					*ret = -1; return h->n_buckets;						\
  344|      0|				}														\
  345|  92.7k|			} else if (kh_resize_##name(h, h->n_buckets + 1) < 0) { /* expand the hash table */ \
  ------------------
  |  Branch (345:15): [True: 0, False: 92.7k]
  ------------------
  346|      0|				*ret = -1; return h->n_buckets;							\
  347|      0|			}															\
  348|  92.7k|		} /* TODO: to implement automatically shrinking; resize() already support shrinking */ \
  349|   179k|		{																\
  350|   179k|			khint_t k, i, site, last, mask = h->n_buckets - 1, step = 0; \
  351|   179k|			x = site = h->n_buckets; k = __hash_func(key); i = k & mask; \
  352|   179k|			if (__ac_isempty(h->flags, i)) x = i; /* for speed up */	\
  ------------------
  |  |  165|   179k|#define __ac_isempty(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&2)
  |  |  ------------------
  |  |  |  Branch (165:31): [True: 132k, False: 47.2k]
  |  |  ------------------
  ------------------
  353|   179k|			else {														\
  354|  47.2k|				last = i; \
  355|   149k|				while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) { \
  ------------------
  |  |  165|   299k|#define __ac_isempty(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&2)
  ------------------
              				while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) { \
  ------------------
  |  |  166|   204k|#define __ac_isdel(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&1)
  |  |  ------------------
  |  |  |  Branch (166:29): [True: 0, False: 102k]
  |  |  ------------------
  ------------------
  |  Branch (355:12): [True: 102k, False: 47.2k]
  |  Branch (355:70): [True: 102k, False: 0]
  ------------------
  356|   102k|					if (__ac_isdel(h->flags, i)) site = i;				\
  ------------------
  |  |  166|   102k|#define __ac_isdel(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&1)
  |  |  ------------------
  |  |  |  Branch (166:29): [True: 0, False: 102k]
  |  |  ------------------
  ------------------
  357|   102k|					i = (i + (++step)) & mask; \
  358|   102k|					if (i == last) { x = site; break; }					\
  ------------------
  |  Branch (358:10): [True: 0, False: 102k]
  ------------------
  359|   102k|				}														\
  360|  47.2k|				if (x == h->n_buckets) {								\
  ------------------
  |  Branch (360:9): [True: 47.2k, False: 0]
  ------------------
  361|  47.2k|					if (__ac_isempty(h->flags, i) && site != h->n_buckets) x = site; \
  ------------------
  |  |  165|  94.5k|#define __ac_isempty(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&2)
  |  |  ------------------
  |  |  |  Branch (165:31): [True: 47.2k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (361:39): [True: 0, False: 47.2k]
  ------------------
  362|  47.2k|					else x = i;											\
  363|  47.2k|				}														\
  364|  47.2k|			}															\
  365|   179k|		}																\
  366|   179k|		if (__ac_isempty(h->flags, x)) { /* not present at all */		\
  ------------------
  |  |  165|   179k|#define __ac_isempty(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&2)
  |  |  ------------------
  |  |  |  Branch (165:31): [True: 179k, False: 0]
  |  |  ------------------
  ------------------
  367|   179k|			h->keys[x] = key;											\
  368|   179k|			__ac_set_isboth_false(h->flags, x);							\
  ------------------
  |  |  170|   179k|#define __ac_set_isboth_false(flag, i) (flag[i>>4]&=~(3ul<<((i&0xfU)<<1)))
  ------------------
  369|   179k|			++h->size; ++h->n_occupied;									\
  370|   179k|			*ret = 1;													\
  371|   179k|		} else if (__ac_isdel(h->flags, x)) { /* deleted */				\
  ------------------
  |  |  166|      0|#define __ac_isdel(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&1)
  |  |  ------------------
  |  |  |  Branch (166:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  372|      0|			h->keys[x] = key;											\
  373|      0|			__ac_set_isboth_false(h->flags, x);							\
  ------------------
  |  |  170|      0|#define __ac_set_isboth_false(flag, i) (flag[i>>4]&=~(3ul<<((i&0xfU)<<1)))
  ------------------
  374|      0|			++h->size;													\
  375|      0|			*ret = 2;													\
  376|      0|		} else *ret = 0; /* Don't touch h->keys[x] if present and not deleted */ \
  377|   179k|		return x;														\
  378|   179k|	}																	\
ucl_hash.c:kh_get_ucl_hash_node:
  259|   339k|	{																	\
  260|   339k|		if (h->n_buckets) {												\
  ------------------
  |  Branch (260:7): [True: 265k, False: 74.1k]
  ------------------
  261|   265k|			khint_t k, i, last, mask, step = 0; \
  262|   265k|			mask = h->n_buckets - 1;									\
  263|   265k|			k = __hash_func(key); i = k & mask;							\
  264|   265k|			last = i; \
  265|   475k|			while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) { \
  ------------------
  |  |  165|   950k|#define __ac_isempty(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&2)
  ------------------
              			while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) { \
  ------------------
  |  |  166|   736k|#define __ac_isdel(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&1)
  |  |  ------------------
  |  |  |  Branch (166:29): [True: 0, False: 368k]
  |  |  ------------------
  ------------------
  |  Branch (265:11): [True: 368k, False: 107k]
  |  Branch (265:69): [True: 210k, False: 157k]
  ------------------
  266|   210k|				i = (i + (++step)) & mask; \
  267|   210k|				if (i == last) return h->n_buckets;						\
  ------------------
  |  Branch (267:9): [True: 0, False: 210k]
  ------------------
  268|   210k|			}															\
  269|   265k|			return __ac_iseither(h->flags, i)? h->n_buckets : i;		\
  ------------------
  |  |  167|   265k|#define __ac_iseither(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&3)
  |  |  ------------------
  |  |  |  Branch (167:32): [True: 107k, False: 157k]
  |  |  ------------------
  ------------------
  270|   265k|		} else return 0;												\
  271|   339k|	}																	\
ucl_hash.c:kh_resize_sizes:
  198|  92.7k|{
  199|  92.7k|	khint_t n = requested;
  200|  92.7k|	size_t max_size = (size_t) -1;
  201|       |
  202|  92.7k|	if (n > ((khint_t) 1 << (sizeof(khint_t) * CHAR_BIT - 1))) {
  ------------------
  |  Branch (202:6): [True: 0, False: 92.7k]
  ------------------
  203|      0|		return -1;
  204|      0|	}
  205|  92.7k|	kroundup32(n);
  ------------------
  |  |  176|  92.7k|#define kroundup32(x) (--(x), (x)|=(x)>>1, (x)|=(x)>>2, (x)|=(x)>>4, (x)|=(x)>>8, (x)|=(x)>>16, ++(x))
  ------------------
  206|  92.7k|	if (n < 4) n = 4;
  ------------------
  |  Branch (206:6): [True: 75.0k, False: 17.6k]
  ------------------
  207|  92.7k|	if ((key_size != 0 && n > max_size / key_size) ||
  ------------------
  |  Branch (207:7): [True: 92.7k, False: 0]
  |  Branch (207:24): [True: 0, False: 92.7k]
  ------------------
  208|  92.7k|		(val_size != 0 && n > max_size / val_size) ||
  ------------------
  |  Branch (208:4): [True: 92.7k, False: 0]
  |  Branch (208:21): [True: 0, False: 92.7k]
  ------------------
  209|  92.7k|		__ac_fsize(n) > max_size / sizeof(khint32_t)) {
  ------------------
  |  |  173|  92.7k|#define __ac_fsize(m) ((m) < 16? 1 : (m)>>4)
  |  |  ------------------
  |  |  |  Branch (173:24): [True: 84.6k, False: 8.01k]
  |  |  ------------------
  ------------------
  |  Branch (209:3): [True: 0, False: 92.7k]
  ------------------
  210|      0|		return -1;
  211|      0|	}
  212|       |
  213|  92.7k|	*buckets = n;
  214|  92.7k|	*flags_size = (size_t) __ac_fsize(n) * sizeof(khint32_t);
  ------------------
  |  |  173|  92.7k|#define __ac_fsize(m) ((m) < 16? 1 : (m)>>4)
  |  |  ------------------
  |  |  |  Branch (173:24): [True: 84.6k, False: 8.01k]
  |  |  ------------------
  ------------------
  215|  92.7k|	*keys_size = (size_t) n * key_size;
  216|  92.7k|	*vals_size = (size_t) n * val_size;
  217|  92.7k|	return 0;
  218|  92.7k|}
ucl_hash.c:kh_resize_ucl_hash_node:
  273|  92.7k|	{ /* This function uses 0.25*n_buckets bytes of working space instead of [sizeof(key_t+val_t)+.25]*n_buckets. */ \
  274|  92.7k|		khint32_t *new_flags = 0;										\
  275|  92.7k|		size_t flags_size, keys_size, vals_size; \
  276|  92.7k|		khint_t j = 1;													\
  277|  92.7k|		{																\
  278|  92.7k|			if (kh_resize_sizes(new_n_buckets, sizeof(khkey_t), \
  ------------------
  |  Branch (278:8): [True: 0, False: 92.7k]
  ------------------
  279|  92.7k|				kh_is_map ? sizeof(khval_t) : 0, &new_n_buckets, \
  ------------------
  |  Branch (279:5): [True: 92.7k, Folded]
  ------------------
  280|  92.7k|				&flags_size, &keys_size, &vals_size) < 0) return -1; \
  281|  92.7k|			if (h->size >= (khint_t)(new_n_buckets * __ac_HASH_UPPER + 0.5)) j = 0;	/* requested size is too small */ \
  ------------------
  |  Branch (281:8): [True: 0, False: 92.7k]
  ------------------
  282|  92.7k|			else { /* hash table size to be changed (shrink or expand); rehash */ \
  283|  92.7k|				new_flags = (khint32_t*)kmalloc(flags_size);	\
  ------------------
  |  |  183|  92.7k|#define kmalloc(Z) malloc(Z)
  ------------------
  284|  92.7k|				if (!new_flags) return -1;								\
  ------------------
  |  Branch (284:9): [True: 0, False: 92.7k]
  ------------------
  285|  92.7k|				memset(new_flags, 0xaa, flags_size); \
  286|  92.7k|				if (h->n_buckets < new_n_buckets) {	/* expand */		\
  ------------------
  |  Branch (286:9): [True: 92.7k, False: 0]
  ------------------
  287|  92.7k|					khkey_t *new_keys = (khkey_t*)krealloc((void *)h->keys, keys_size); \
  ------------------
  |  |  186|  92.7k|#define krealloc(P,Z) realloc(P,Z)
  ------------------
  288|  92.7k|					if (!new_keys) { kfree(new_flags); return -1; }		\
  ------------------
  |  |  189|      0|#define kfree(P) free(P)
  ------------------
  |  Branch (288:10): [True: 0, False: 92.7k]
  ------------------
  289|  92.7k|					h->keys = new_keys;									\
  290|  92.7k|					if (kh_is_map) {									\
  ------------------
  |  Branch (290:10): [True: 92.7k, Folded]
  ------------------
  291|  92.7k|						khval_t *new_vals = (khval_t*)krealloc((void *)h->vals, vals_size); \
  ------------------
  |  |  186|  92.7k|#define krealloc(P,Z) realloc(P,Z)
  ------------------
  292|  92.7k|						if (!new_vals) { kfree(new_flags); return -1; }	\
  ------------------
  |  |  189|      0|#define kfree(P) free(P)
  ------------------
  |  Branch (292:11): [True: 0, False: 92.7k]
  ------------------
  293|  92.7k|						h->vals = new_vals;								\
  294|  92.7k|					}													\
  295|  92.7k|				} /* otherwise shrink */								\
  296|  92.7k|			}															\
  297|  92.7k|		}																\
  298|  92.7k|		if (j) { /* rehashing is needed */								\
  ------------------
  |  Branch (298:7): [True: 92.7k, False: 0]
  ------------------
  299|   223k|			for (j = 0; j != h->n_buckets; ++j) {						\
  ------------------
  |  Branch (299:16): [True: 130k, False: 92.7k]
  ------------------
  300|   130k|				if (__ac_iseither(h->flags, j) == 0) {					\
  ------------------
  |  |  167|   130k|#define __ac_iseither(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&3)
  ------------------
  |  Branch (300:9): [True: 88.3k, False: 42.3k]
  ------------------
  301|  88.3k|					khkey_t key = h->keys[j];							\
  302|  88.3k|					khval_t val;										\
  303|  88.3k|					khint_t new_mask;									\
  304|  88.3k|					new_mask = new_n_buckets - 1; 						\
  305|  88.3k|					if (kh_is_map) val = h->vals[j];					\
  ------------------
  |  Branch (305:10): [True: 88.3k, Folded]
  ------------------
  306|  88.3k|					__ac_set_isdel_true(h->flags, j);					\
  ------------------
  |  |  171|  88.3k|#define __ac_set_isdel_true(flag, i) (flag[i>>4]|=1ul<<((i&0xfU)<<1))
  ------------------
  307|  98.1k|					while (1) { /* kick-out process; sort of like in Cuckoo hashing */ \
  ------------------
  |  Branch (307:13): [True: 98.1k, Folded]
  ------------------
  308|  98.1k|						khint_t k, i, step = 0; \
  309|  98.1k|						k = __hash_func(key);							\
  310|  98.1k|						i = k & new_mask;								\
  311|   125k|						while (!__ac_isempty(new_flags, i)) i = (i + (++step)) & new_mask; \
  ------------------
  |  |  165|   125k|#define __ac_isempty(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&2)
  ------------------
  |  Branch (311:14): [True: 27.4k, False: 98.1k]
  ------------------
  312|  98.1k|						__ac_set_isempty_false(new_flags, i);			\
  ------------------
  |  |  169|  98.1k|#define __ac_set_isempty_false(flag, i) (flag[i>>4]&=~(2ul<<((i&0xfU)<<1)))
  ------------------
  313|  98.1k|						if (i < h->n_buckets && __ac_iseither(h->flags, i) == 0) { /* kick out the existing element */ \
  ------------------
  |  |  167|  52.1k|#define __ac_iseither(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&3)
  ------------------
  |  Branch (313:11): [True: 52.1k, False: 46.0k]
  |  Branch (313:31): [True: 9.79k, False: 42.3k]
  ------------------
  314|  9.79k|							{ khkey_t tmp = h->keys[i]; h->keys[i] = key; key = tmp; } \
  315|  9.79k|							if (kh_is_map) { khval_t tmp = h->vals[i]; h->vals[i] = val; val = tmp; } \
  ------------------
  |  Branch (315:12): [True: 9.79k, Folded]
  ------------------
  316|  9.79k|							__ac_set_isdel_true(h->flags, i); /* mark it as deleted in the old hash table */ \
  ------------------
  |  |  171|  9.79k|#define __ac_set_isdel_true(flag, i) (flag[i>>4]|=1ul<<((i&0xfU)<<1))
  ------------------
  317|  88.3k|						} else { /* write the element and jump out of the loop */ \
  318|  88.3k|							h->keys[i] = key;							\
  319|  88.3k|							if (kh_is_map) h->vals[i] = val;			\
  ------------------
  |  Branch (319:12): [True: 88.3k, Folded]
  ------------------
  320|  88.3k|							break;										\
  321|  88.3k|						}												\
  322|  98.1k|					}													\
  323|  88.3k|				}														\
  324|   130k|			}															\
  325|  92.7k|			if (h->n_buckets > new_n_buckets) { /* shrink the hash table */ \
  ------------------
  |  Branch (325:8): [True: 0, False: 92.7k]
  ------------------
  326|      0|				h->keys = (khkey_t*)krealloc((void *)h->keys, keys_size); \
  ------------------
  |  |  186|      0|#define krealloc(P,Z) realloc(P,Z)
  ------------------
  327|      0|				if (kh_is_map) h->vals = (khval_t*)krealloc((void *)h->vals, vals_size); \
  ------------------
  |  |  186|      0|#define krealloc(P,Z) realloc(P,Z)
  ------------------
  |  Branch (327:9): [True: 0, Folded]
  ------------------
  328|      0|			}															\
  329|  92.7k|			kfree(h->flags); /* free the working space */				\
  ------------------
  |  |  189|  92.7k|#define kfree(P) free(P)
  ------------------
  330|  92.7k|			h->flags = new_flags;										\
  331|  92.7k|			h->n_buckets = new_n_buckets;								\
  332|  92.7k|			h->n_occupied = h->size;									\
  333|  92.7k|			h->upper_bound = (khint_t)(h->n_buckets * __ac_HASH_UPPER + 0.5); \
  334|  92.7k|		}																\
  335|  92.7k|		return 0;														\
  336|  92.7k|	}																	\

ucl_hash.c:_mum:
  121|  2.33M|{
  122|  2.33M|	uint64_t hi, lo;
  123|  2.33M|#if _MUM_USE_INT128
  124|       |#if defined(__aarch64__) && defined(ROOT_OF_ALL_EVILS)
  125|       |	/* AARCH64 needs 2 insns to calculate 128-bit result of the
  126|       |     multiplication.  If we use a generic code we actually call a
  127|       |     function doing 128x128->128 bit multiplication.  The function is
  128|       |     very slow.  */
  129|       |	lo = v * p, hi;
  130|       |	__asm("umulh %0, %1, %2" : "=r"(hi) : "r"(v), "r"(p));
  131|       |#else
  132|  2.33M|	__uint128_t r = (__uint128_t) v * (__uint128_t) p;
  133|  2.33M|	hi = (uint64_t) (r >> 64);
  134|  2.33M|	lo = (uint64_t) r;
  135|  2.33M|#endif
  136|       |#else
  137|       |	/* Implementation of 64x64->128-bit multiplication by four 32x32->64
  138|       |     bit multiplication.  */
  139|       |	uint64_t hv = v >> 32, hp = p >> 32;
  140|       |	uint64_t lv = (uint32_t) v, lp = (uint32_t) p;
  141|       |	uint64_t rh = hv * hp;
  142|       |	uint64_t rm_0 = hv * lp;
  143|       |	uint64_t rm_1 = hp * lv;
  144|       |	uint64_t rl = lv * lp;
  145|       |	uint64_t t, carry = 0;
  146|       |
  147|       |	/* We could ignore a carry bit here if we did not care about the
  148|       |     same hash for 32-bit and 64-bit targets.  */
  149|       |	t = rl + (rm_0 << 32);
  150|       |#ifdef MUM_TARGET_INDEPENDENT_HASH
  151|       |	carry = t < rl;
  152|       |#endif
  153|       |	lo = t + (rm_1 << 32);
  154|       |#ifdef MUM_TARGET_INDEPENDENT_HASH
  155|       |	carry += lo < t;
  156|       |#endif
  157|       |	hi = rh + (rm_0 >> 32) + (rm_1 >> 32) + carry;
  158|       |#endif
  159|       |	/* We could use XOR here too but, for some reasons, on Haswell and
  160|       |     Power7 using an addition improves hashing performance by 10% for
  161|       |     small strings.  */
  162|  2.33M|	return hi + lo;
  163|  2.33M|}
ucl_hash.c:_mum_final:
  316|   543k|{
  317|   543k|	h ^= _mum(h, _mum_finish_prime1);
  318|   543k|	h ^= _mum(h, _mum_finish_prime2);
  319|   543k|	return h;
  320|   543k|}
ucl_hash.c:mum_hash:
  444|   543k|{
  445|       |#if defined(__x86_64__) && defined(_MUM_FRESH_GCC)
  446|       |	static int avx2_support = 0;
  447|       |
  448|       |	if (avx2_support > 0)
  449|       |		return _mum_hash_avx2(key, len, seed);
  450|       |	else if (!avx2_support) {
  451|       |		__builtin_cpu_init();
  452|       |		avx2_support = __builtin_cpu_supports("avx2") ? 1 : -1;
  453|       |		if (avx2_support > 0)
  454|       |			return _mum_hash_avx2(key, len, seed);
  455|       |	}
  456|       |#endif
  457|   543k|	return _mum_hash_default(key, len, seed);
  458|   543k|}
ucl_hash.c:_mum_hash_default:
  359|   543k|{
  360|   543k|	uint64_t result;
  361|   543k|	const unsigned char *str = (const unsigned char *) key;
  362|   543k|	size_t block_len;
  363|   543k|	uint64_t buf[_MUM_BLOCK_LEN / sizeof(uint64_t)];
  364|       |
  365|   543k|	result = seed + len;
  366|   543k|	if (_MUM_UNALIGNED_ACCESS || ((size_t) str & 0x7) == 0)
  ------------------
  |  |  337|  1.08M|#define _MUM_UNALIGNED_ACCESS 1
  |  |  ------------------
  |  |  |  Branch (337:31): [True: 543k, Folded]
  |  |  ------------------
  ------------------
  |  Branch (366:31): [True: 0, False: 0]
  ------------------
  367|   543k|		result = _mum_hash_aligned(result, key, len);
  368|      0|	else {
  369|      0|		while (len != 0) {
  ------------------
  |  Branch (369:10): [True: 0, False: 0]
  ------------------
  370|      0|			block_len = len < _MUM_BLOCK_LEN ? len : _MUM_BLOCK_LEN;
  ------------------
  |  |  347|      0|#define _MUM_BLOCK_LEN 1024
  ------------------
              			block_len = len < _MUM_BLOCK_LEN ? len : _MUM_BLOCK_LEN;
  ------------------
  |  |  347|      0|#define _MUM_BLOCK_LEN 1024
  ------------------
  |  Branch (370:16): [True: 0, False: 0]
  ------------------
  371|      0|			memmove(buf, str, block_len);
  372|      0|			result = _mum_hash_aligned(result, buf, block_len);
  373|      0|			len -= block_len;
  374|      0|			str += block_len;
  375|      0|		}
  376|      0|	}
  377|   543k|	return _mum_final(result);
  378|   543k|}
ucl_hash.c:_mum_hash_aligned:
  253|   543k|{
  254|   543k|	uint64_t result = start;
  255|   543k|	const unsigned char *str = (const unsigned char *) key;
  256|   543k|	uint64_t u64;
  257|   543k|	int i;
  258|   543k|	size_t n;
  259|       |
  260|   543k|	result = _mum(result, _mum_block_start_prime);
  261|   565k|	while (len > _MUM_UNROLL_FACTOR * sizeof(uint64_t)) {
  ------------------
  |  |  249|   565k|#define _MUM_UNROLL_FACTOR (1 << _MUM_UNROLL_FACTOR_POWER)
  |  |  ------------------
  |  |  |  |  239|   565k|#define _MUM_UNROLL_FACTOR_POWER 2
  |  |  ------------------
  ------------------
  |  Branch (261:9): [True: 22.3k, False: 543k]
  ------------------
  262|       |		/* This loop could be vectorized when we have vector insns for
  263|       |       64x64->128-bit multiplication.  AVX2 currently only have a
  264|       |       vector insn for 4 32x32->64-bit multiplication.  */
  265|   111k|		for (i = 0; i < _MUM_UNROLL_FACTOR; i++)
  ------------------
  |  |  249|   111k|#define _MUM_UNROLL_FACTOR (1 << _MUM_UNROLL_FACTOR_POWER)
  |  |  ------------------
  |  |  |  |  239|   111k|#define _MUM_UNROLL_FACTOR_POWER 2
  |  |  ------------------
  ------------------
  |  Branch (265:15): [True: 89.5k, False: 22.3k]
  ------------------
  266|  89.5k|			result ^= _mum(_mum_le(_mum_load64(str + i * sizeof(uint64_t))), _mum_primes[i]);
  267|  22.3k|		len -= _MUM_UNROLL_FACTOR * sizeof(uint64_t);
  ------------------
  |  |  249|  22.3k|#define _MUM_UNROLL_FACTOR (1 << _MUM_UNROLL_FACTOR_POWER)
  |  |  ------------------
  |  |  |  |  239|  22.3k|#define _MUM_UNROLL_FACTOR_POWER 2
  |  |  ------------------
  ------------------
  268|  22.3k|		str += _MUM_UNROLL_FACTOR * sizeof(uint64_t);
  ------------------
  |  |  249|  22.3k|#define _MUM_UNROLL_FACTOR (1 << _MUM_UNROLL_FACTOR_POWER)
  |  |  ------------------
  |  |  |  |  239|  22.3k|#define _MUM_UNROLL_FACTOR_POWER 2
  |  |  ------------------
  ------------------
  269|       |		/* We will use the same prime numbers on the next iterations --
  270|       |       randomize the state.  */
  271|  22.3k|		result = _mum(result, _mum_unroll_prime);
  272|  22.3k|	}
  273|   543k|	n = len / sizeof(uint64_t);
  274|   612k|	for (i = 0; i < (int) n; i++)
  ------------------
  |  Branch (274:14): [True: 69.4k, False: 543k]
  ------------------
  275|  69.4k|		result ^= _mum(_mum_le(_mum_load64(str + i * sizeof(uint64_t))), _mum_primes[i]);
  276|   543k|	len -= n * sizeof(uint64_t);
  277|   543k|	str += n * sizeof(uint64_t);
  278|   543k|	switch (len) {
  ------------------
  |  Branch (278:10): [True: 523k, False: 19.2k]
  ------------------
  279|  13.9k|	case 7:
  ------------------
  |  Branch (279:2): [True: 13.9k, False: 529k]
  ------------------
  280|  13.9k|		u64 = _mum_le32(_mum_load32(str));
  281|  13.9k|		u64 |= (uint64_t) str[4] << 32;
  282|  13.9k|		u64 |= (uint64_t) str[5] << 40;
  283|  13.9k|		u64 |= (uint64_t) str[6] << 48;
  284|  13.9k|		return result ^ _mum(u64, _mum_tail_prime);
  285|  71.4k|	case 6:
  ------------------
  |  Branch (285:2): [True: 71.4k, False: 471k]
  ------------------
  286|  71.4k|		u64 = _mum_le32(_mum_load32(str));
  287|  71.4k|		u64 |= (uint64_t) str[4] << 32;
  288|  71.4k|		u64 |= (uint64_t) str[5] << 40;
  289|  71.4k|		return result ^ _mum(u64, _mum_tail_prime);
  290|  41.9k|	case 5:
  ------------------
  |  Branch (290:2): [True: 41.9k, False: 501k]
  ------------------
  291|  41.9k|		u64 = _mum_le32(_mum_load32(str));
  292|  41.9k|		u64 |= (uint64_t) str[4] << 32;
  293|  41.9k|		return result ^ _mum(u64, _mum_tail_prime);
  294|   132k|	case 4:
  ------------------
  |  Branch (294:2): [True: 132k, False: 410k]
  ------------------
  295|   132k|		u64 = _mum_le32(_mum_load32(str));
  296|   132k|		return result ^ _mum(u64, _mum_tail_prime);
  297|  87.8k|	case 3:
  ------------------
  |  Branch (297:2): [True: 87.8k, False: 455k]
  ------------------
  298|  87.8k|		u64 = str[0];
  299|  87.8k|		u64 |= (uint64_t) str[1] << 8;
  300|  87.8k|		u64 |= (uint64_t) str[2] << 16;
  301|  87.8k|		return result ^ _mum(u64, _mum_tail_prime);
  302|  62.8k|	case 2:
  ------------------
  |  Branch (302:2): [True: 62.8k, False: 480k]
  ------------------
  303|  62.8k|		u64 = str[0];
  304|  62.8k|		u64 |= (uint64_t) str[1] << 8;
  305|  62.8k|		return result ^ _mum(u64, _mum_tail_prime);
  306|   113k|	case 1:
  ------------------
  |  Branch (306:2): [True: 113k, False: 429k]
  ------------------
  307|   113k|		u64 = str[0];
  308|   113k|		return result ^ _mum(u64, _mum_tail_prime);
  309|   543k|	}
  310|  19.2k|	return result;
  311|   543k|}
ucl_hash.c:_mum_le:
  183|   158k|{
  184|   158k|#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ || !defined(MUM_TARGET_INDEPENDENT_HASH)
  185|   158k|	return v;
  186|       |#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
  187|       |	return _mum_bswap64(v);
  188|       |#else
  189|       |#error "Unknown endianness"
  190|       |#endif
  191|   158k|}
ucl_hash.c:_mum_load64:
  209|   158k|{
  210|   158k|	uint64_t v;
  211|       |
  212|   158k|	memcpy(&v, p, sizeof(v));
  213|   158k|	return v;
  214|   158k|}
ucl_hash.c:_mum_le32:
  195|   259k|{
  196|   259k|#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ || !defined(MUM_TARGET_INDEPENDENT_HASH)
  197|   259k|	return v;
  198|       |#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
  199|       |	return _mum_bswap32(v);
  200|       |#else
  201|       |#error "Unknown endianness"
  202|       |#endif
  203|   259k|}
ucl_hash.c:_mum_load32:
  218|   259k|{
  219|   259k|	uint32_t v;
  220|       |
  221|   259k|	memcpy(&v, p, sizeof(v));
  222|   259k|	return v;
  223|   259k|}
ucl_parser.c:mum_hash:
  444|   562k|{
  445|       |#if defined(__x86_64__) && defined(_MUM_FRESH_GCC)
  446|       |	static int avx2_support = 0;
  447|       |
  448|       |	if (avx2_support > 0)
  449|       |		return _mum_hash_avx2(key, len, seed);
  450|       |	else if (!avx2_support) {
  451|       |		__builtin_cpu_init();
  452|       |		avx2_support = __builtin_cpu_supports("avx2") ? 1 : -1;
  453|       |		if (avx2_support > 0)
  454|       |			return _mum_hash_avx2(key, len, seed);
  455|       |	}
  456|       |#endif
  457|   562k|	return _mum_hash_default(key, len, seed);
  458|   562k|}
ucl_parser.c:_mum_hash_default:
  359|   562k|{
  360|   562k|	uint64_t result;
  361|   562k|	const unsigned char *str = (const unsigned char *) key;
  362|   562k|	size_t block_len;
  363|   562k|	uint64_t buf[_MUM_BLOCK_LEN / sizeof(uint64_t)];
  364|       |
  365|   562k|	result = seed + len;
  366|   562k|	if (_MUM_UNALIGNED_ACCESS || ((size_t) str & 0x7) == 0)
  ------------------
  |  |  337|  1.12M|#define _MUM_UNALIGNED_ACCESS 1
  |  |  ------------------
  |  |  |  Branch (337:31): [True: 562k, Folded]
  |  |  ------------------
  ------------------
  |  Branch (366:31): [True: 0, False: 0]
  ------------------
  367|   562k|		result = _mum_hash_aligned(result, key, len);
  368|      0|	else {
  369|      0|		while (len != 0) {
  ------------------
  |  Branch (369:10): [True: 0, False: 0]
  ------------------
  370|      0|			block_len = len < _MUM_BLOCK_LEN ? len : _MUM_BLOCK_LEN;
  ------------------
  |  |  347|      0|#define _MUM_BLOCK_LEN 1024
  ------------------
              			block_len = len < _MUM_BLOCK_LEN ? len : _MUM_BLOCK_LEN;
  ------------------
  |  |  347|      0|#define _MUM_BLOCK_LEN 1024
  ------------------
  |  Branch (370:16): [True: 0, False: 0]
  ------------------
  371|      0|			memmove(buf, str, block_len);
  372|      0|			result = _mum_hash_aligned(result, buf, block_len);
  373|      0|			len -= block_len;
  374|      0|			str += block_len;
  375|      0|		}
  376|      0|	}
  377|   562k|	return _mum_final(result);
  378|   562k|}
ucl_parser.c:_mum_hash_aligned:
  253|   562k|{
  254|   562k|	uint64_t result = start;
  255|   562k|	const unsigned char *str = (const unsigned char *) key;
  256|   562k|	uint64_t u64;
  257|   562k|	int i;
  258|   562k|	size_t n;
  259|       |
  260|   562k|	result = _mum(result, _mum_block_start_prime);
  261|   587k|	while (len > _MUM_UNROLL_FACTOR * sizeof(uint64_t)) {
  ------------------
  |  |  249|   587k|#define _MUM_UNROLL_FACTOR (1 << _MUM_UNROLL_FACTOR_POWER)
  |  |  ------------------
  |  |  |  |  239|   587k|#define _MUM_UNROLL_FACTOR_POWER 2
  |  |  ------------------
  ------------------
  |  Branch (261:9): [True: 25.3k, False: 562k]
  ------------------
  262|       |		/* This loop could be vectorized when we have vector insns for
  263|       |       64x64->128-bit multiplication.  AVX2 currently only have a
  264|       |       vector insn for 4 32x32->64-bit multiplication.  */
  265|   126k|		for (i = 0; i < _MUM_UNROLL_FACTOR; i++)
  ------------------
  |  |  249|   126k|#define _MUM_UNROLL_FACTOR (1 << _MUM_UNROLL_FACTOR_POWER)
  |  |  ------------------
  |  |  |  |  239|   126k|#define _MUM_UNROLL_FACTOR_POWER 2
  |  |  ------------------
  ------------------
  |  Branch (265:15): [True: 101k, False: 25.3k]
  ------------------
  266|   101k|			result ^= _mum(_mum_le(_mum_load64(str + i * sizeof(uint64_t))), _mum_primes[i]);
  267|  25.3k|		len -= _MUM_UNROLL_FACTOR * sizeof(uint64_t);
  ------------------
  |  |  249|  25.3k|#define _MUM_UNROLL_FACTOR (1 << _MUM_UNROLL_FACTOR_POWER)
  |  |  ------------------
  |  |  |  |  239|  25.3k|#define _MUM_UNROLL_FACTOR_POWER 2
  |  |  ------------------
  ------------------
  268|  25.3k|		str += _MUM_UNROLL_FACTOR * sizeof(uint64_t);
  ------------------
  |  |  249|  25.3k|#define _MUM_UNROLL_FACTOR (1 << _MUM_UNROLL_FACTOR_POWER)
  |  |  ------------------
  |  |  |  |  239|  25.3k|#define _MUM_UNROLL_FACTOR_POWER 2
  |  |  ------------------
  ------------------
  269|       |		/* We will use the same prime numbers on the next iterations --
  270|       |       randomize the state.  */
  271|  25.3k|		result = _mum(result, _mum_unroll_prime);
  272|  25.3k|	}
  273|   562k|	n = len / sizeof(uint64_t);
  274|   850k|	for (i = 0; i < (int) n; i++)
  ------------------
  |  Branch (274:14): [True: 288k, False: 562k]
  ------------------
  275|   288k|		result ^= _mum(_mum_le(_mum_load64(str + i * sizeof(uint64_t))), _mum_primes[i]);
  276|   562k|	len -= n * sizeof(uint64_t);
  277|   562k|	str += n * sizeof(uint64_t);
  278|   562k|	switch (len) {
  ------------------
  |  Branch (278:10): [True: 357k, False: 205k]
  ------------------
  279|   177k|	case 7:
  ------------------
  |  Branch (279:2): [True: 177k, False: 384k]
  ------------------
  280|   177k|		u64 = _mum_le32(_mum_load32(str));
  281|   177k|		u64 |= (uint64_t) str[4] << 32;
  282|   177k|		u64 |= (uint64_t) str[5] << 40;
  283|   177k|		u64 |= (uint64_t) str[6] << 48;
  284|   177k|		return result ^ _mum(u64, _mum_tail_prime);
  285|    354|	case 6:
  ------------------
  |  Branch (285:2): [True: 354, False: 561k]
  ------------------
  286|    354|		u64 = _mum_le32(_mum_load32(str));
  287|    354|		u64 |= (uint64_t) str[4] << 32;
  288|    354|		u64 |= (uint64_t) str[5] << 40;
  289|    354|		return result ^ _mum(u64, _mum_tail_prime);
  290|    402|	case 5:
  ------------------
  |  Branch (290:2): [True: 402, False: 561k]
  ------------------
  291|    402|		u64 = _mum_le32(_mum_load32(str));
  292|    402|		u64 |= (uint64_t) str[4] << 32;
  293|    402|		return result ^ _mum(u64, _mum_tail_prime);
  294|  96.8k|	case 4:
  ------------------
  |  Branch (294:2): [True: 96.8k, False: 465k]
  ------------------
  295|  96.8k|		u64 = _mum_le32(_mum_load32(str));
  296|  96.8k|		return result ^ _mum(u64, _mum_tail_prime);
  297|  81.1k|	case 3:
  ------------------
  |  Branch (297:2): [True: 81.1k, False: 481k]
  ------------------
  298|  81.1k|		u64 = str[0];
  299|  81.1k|		u64 |= (uint64_t) str[1] << 8;
  300|  81.1k|		u64 |= (uint64_t) str[2] << 16;
  301|  81.1k|		return result ^ _mum(u64, _mum_tail_prime);
  302|    586|	case 2:
  ------------------
  |  Branch (302:2): [True: 586, False: 561k]
  ------------------
  303|    586|		u64 = str[0];
  304|    586|		u64 |= (uint64_t) str[1] << 8;
  305|    586|		return result ^ _mum(u64, _mum_tail_prime);
  306|    388|	case 1:
  ------------------
  |  Branch (306:2): [True: 388, False: 561k]
  ------------------
  307|    388|		u64 = str[0];
  308|    388|		return result ^ _mum(u64, _mum_tail_prime);
  309|   562k|	}
  310|   205k|	return result;
  311|   562k|}
ucl_parser.c:_mum:
  121|  2.45M|{
  122|  2.45M|	uint64_t hi, lo;
  123|  2.45M|#if _MUM_USE_INT128
  124|       |#if defined(__aarch64__) && defined(ROOT_OF_ALL_EVILS)
  125|       |	/* AARCH64 needs 2 insns to calculate 128-bit result of the
  126|       |     multiplication.  If we use a generic code we actually call a
  127|       |     function doing 128x128->128 bit multiplication.  The function is
  128|       |     very slow.  */
  129|       |	lo = v * p, hi;
  130|       |	__asm("umulh %0, %1, %2" : "=r"(hi) : "r"(v), "r"(p));
  131|       |#else
  132|  2.45M|	__uint128_t r = (__uint128_t) v * (__uint128_t) p;
  133|  2.45M|	hi = (uint64_t) (r >> 64);
  134|  2.45M|	lo = (uint64_t) r;
  135|  2.45M|#endif
  136|       |#else
  137|       |	/* Implementation of 64x64->128-bit multiplication by four 32x32->64
  138|       |     bit multiplication.  */
  139|       |	uint64_t hv = v >> 32, hp = p >> 32;
  140|       |	uint64_t lv = (uint32_t) v, lp = (uint32_t) p;
  141|       |	uint64_t rh = hv * hp;
  142|       |	uint64_t rm_0 = hv * lp;
  143|       |	uint64_t rm_1 = hp * lv;
  144|       |	uint64_t rl = lv * lp;
  145|       |	uint64_t t, carry = 0;
  146|       |
  147|       |	/* We could ignore a carry bit here if we did not care about the
  148|       |     same hash for 32-bit and 64-bit targets.  */
  149|       |	t = rl + (rm_0 << 32);
  150|       |#ifdef MUM_TARGET_INDEPENDENT_HASH
  151|       |	carry = t < rl;
  152|       |#endif
  153|       |	lo = t + (rm_1 << 32);
  154|       |#ifdef MUM_TARGET_INDEPENDENT_HASH
  155|       |	carry += lo < t;
  156|       |#endif
  157|       |	hi = rh + (rm_0 >> 32) + (rm_1 >> 32) + carry;
  158|       |#endif
  159|       |	/* We could use XOR here too but, for some reasons, on Haswell and
  160|       |     Power7 using an addition improves hashing performance by 10% for
  161|       |     small strings.  */
  162|  2.45M|	return hi + lo;
  163|  2.45M|}
ucl_parser.c:_mum_le:
  183|   389k|{
  184|   389k|#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ || !defined(MUM_TARGET_INDEPENDENT_HASH)
  185|   389k|	return v;
  186|       |#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
  187|       |	return _mum_bswap64(v);
  188|       |#else
  189|       |#error "Unknown endianness"
  190|       |#endif
  191|   389k|}
ucl_parser.c:_mum_load64:
  209|   389k|{
  210|   389k|	uint64_t v;
  211|       |
  212|   389k|	memcpy(&v, p, sizeof(v));
  213|   389k|	return v;
  214|   389k|}
ucl_parser.c:_mum_le32:
  195|   275k|{
  196|   275k|#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ || !defined(MUM_TARGET_INDEPENDENT_HASH)
  197|   275k|	return v;
  198|       |#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
  199|       |	return _mum_bswap32(v);
  200|       |#else
  201|       |#error "Unknown endianness"
  202|       |#endif
  203|   275k|}
ucl_parser.c:_mum_load32:
  218|   275k|{
  219|   275k|	uint32_t v;
  220|       |
  221|   275k|	memcpy(&v, p, sizeof(v));
  222|   275k|	return v;
  223|   275k|}
ucl_parser.c:_mum_final:
  316|   562k|{
  317|   562k|	h ^= _mum(h, _mum_finish_prime1);
  318|   562k|	h ^= _mum(h, _mum_finish_prime2);
  319|   562k|	return h;
  320|   562k|}

ucl_parser.c:ucl_test_character:
  263|  25.0M|{
  264|  25.0M|	return (ucl_chartable[c] & type_flags) != 0;
  265|  25.0M|}
ucl_util.c:ucl_test_character:
  263|  11.8M|{
  264|  11.8M|	return (ucl_chartable[c] & type_flags) != 0;
  265|  11.8M|}

ucl_hash_create:
  233|   117k|{
  234|   117k|	ucl_hash_t *new;
  235|       |
  236|   117k|	new = UCL_ALLOC(sizeof(ucl_hash_t));
  ------------------
  |  |   71|   117k|#define UCL_ALLOC(size) malloc(size)
  ------------------
  237|   117k|	if (new != NULL) {
  ------------------
  |  Branch (237:6): [True: 117k, False: 0]
  ------------------
  238|   117k|		void *h;
  239|   117k|		new->head = NULL;
  240|   117k|		new->caseless = ignore_case;
  241|   117k|		if (ignore_case) {
  ------------------
  |  Branch (241:7): [True: 0, False: 117k]
  ------------------
  242|      0|			h = (void *) kh_init(ucl_hash_caseless_node);
  ------------------
  |  |  469|      0|#define kh_init(name) kh_init_##name()
  ------------------
  243|      0|		}
  244|   117k|		else {
  245|   117k|			h = (void *) kh_init(ucl_hash_node);
  ------------------
  |  |  469|   117k|#define kh_init(name) kh_init_##name()
  ------------------
  246|   117k|		}
  247|   117k|		if (h == NULL) {
  ------------------
  |  Branch (247:7): [True: 0, False: 117k]
  ------------------
  248|      0|			UCL_FREE(sizeof(ucl_hash_t), new);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  249|      0|			return NULL;
  250|      0|		}
  251|   117k|		new->hash = h;
  252|   117k|	}
  253|   117k|	return new;
  254|   117k|}
ucl_hash_destroy:
  257|   117k|{
  258|       |
  259|   117k|	if (hashlin == NULL) {
  ------------------
  |  Branch (259:6): [True: 0, False: 117k]
  ------------------
  260|      0|		return;
  261|      0|	}
  262|       |
  263|   117k|	if (func != NULL) {
  ------------------
  |  Branch (263:6): [True: 117k, False: 0]
  ------------------
  264|       |		/* Iterate over the hash first */
  265|   117k|		khash_t(ucl_hash_node) *h = (khash_t(ucl_hash_node) *)
  ------------------
  |  |  462|   117k|#define khash_t(name) kh_##name##_t
  ------------------
  266|   117k|										hashlin->hash;
  267|   117k|		khiter_t k;
  268|   117k|		const ucl_object_t *cur, *tmp;
  269|       |
  270|   548k|		for (k = kh_begin(h); k != kh_end(h); ++k) {
  ------------------
  |  |  558|   117k|#define kh_begin(h) (khint_t)(0)
  ------------------
              		for (k = kh_begin(h); k != kh_end(h); ++k) {
  ------------------
  |  |  565|   548k|#define kh_end(h) ((h)->n_buckets)
  ------------------
  |  Branch (270:25): [True: 430k, False: 117k]
  ------------------
  271|   430k|			if (kh_exist(h, k)) {
  ------------------
  |  |  529|   430k|#define kh_exist(h, x) (!__ac_iseither((h)->flags, (x)))
  |  |  ------------------
  |  |  |  |  167|   430k|#define __ac_iseither(flag, i) ((flag[i>>4]>>((i&0xfU)<<1))&3)
  |  |  ------------------
  |  |  |  Branch (529:24): [True: 179k, False: 251k]
  |  |  ------------------
  ------------------
  272|   179k|				cur = (kh_value(h, k))->obj;
  ------------------
  |  |  551|   179k|#define kh_value(h, x) ((h)->vals[x])
  ------------------
  273|   481k|				while (cur != NULL) {
  ------------------
  |  Branch (273:12): [True: 301k, False: 179k]
  ------------------
  274|   301k|					tmp = cur->next;
  275|   301k|					func(__DECONST(ucl_object_t *, cur), ud);
  ------------------
  |  |  135|   301k|#define __DECONST(type, var) ((type) (uintptr_t) (const void *) (var))
  ------------------
  276|   301k|					cur = tmp;
  277|   301k|				}
  278|   179k|			}
  279|   430k|		}
  280|   117k|	}
  281|       |
  282|   117k|	if (hashlin->caseless) {
  ------------------
  |  Branch (282:6): [True: 0, False: 117k]
  ------------------
  283|      0|		khash_t(ucl_hash_caseless_node) *h = (khash_t(ucl_hash_caseless_node) *)
  ------------------
  |  |  462|      0|#define khash_t(name) kh_##name##_t
  ------------------
  284|      0|												 hashlin->hash;
  285|      0|		kh_destroy(ucl_hash_caseless_node, h);
  ------------------
  |  |  476|      0|#define kh_destroy(name, h) kh_destroy_##name(h)
  ------------------
  286|      0|	}
  287|   117k|	else {
  288|   117k|		khash_t(ucl_hash_node) *h = (khash_t(ucl_hash_node) *)
  ------------------
  |  |  462|   117k|#define khash_t(name) kh_##name##_t
  ------------------
  289|   117k|										hashlin->hash;
  290|   117k|		kh_destroy(ucl_hash_node, h);
  ------------------
  |  |  476|   117k|#define kh_destroy(name, h) kh_destroy_##name(h)
  ------------------
  291|   117k|	}
  292|       |
  293|   117k|	struct ucl_hash_elt *cur, *tmp;
  294|       |
  295|   117k|	DL_FOREACH_SAFE(hashlin->head, cur, tmp)
  ------------------
  |  |  745|   117k|    DL_FOREACH_SAFE2(head,el,tmp,next)
  |  |  ------------------
  |  |  |  |  748|   297k|  for ((el) = (head); (el) && ((tmp) = (el)->next, 1); (el) = (tmp))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (748:23): [True: 179k, False: 117k]
  |  |  |  |  |  Branch (748:31): [True: 179k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  296|   179k|	{
  297|   179k|		UCL_FREE(sizeof(*cur), cur);
  ------------------
  |  |   74|   179k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  298|   179k|	}
  299|       |
  300|   117k|	UCL_FREE(sizeof(*hashlin), hashlin);
  ------------------
  |  |   74|   117k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  301|   117k|}
ucl_hash_insert:
  305|   179k|{
  306|   179k|	khiter_t k;
  307|   179k|	int ret;
  308|   179k|	struct ucl_hash_elt **pelt, *elt;
  309|       |
  310|   179k|	if (hashlin == NULL) {
  ------------------
  |  Branch (310:6): [True: 0, False: 179k]
  ------------------
  311|      0|		return false;
  312|      0|	}
  313|       |
  314|   179k|	if (hashlin->caseless) {
  ------------------
  |  Branch (314:6): [True: 0, False: 179k]
  ------------------
  315|      0|		khash_t(ucl_hash_caseless_node) *h = (khash_t(ucl_hash_caseless_node) *)
  ------------------
  |  |  462|      0|#define khash_t(name) kh_##name##_t
  ------------------
  316|      0|												 hashlin->hash;
  317|      0|		k = kh_put(ucl_hash_caseless_node, h, obj, &ret);
  ------------------
  |  |  504|      0|#define kh_put(name, h, k, r) kh_put_##name(h, k, r)
  ------------------
  318|      0|		if (ret > 0) {
  ------------------
  |  Branch (318:7): [True: 0, False: 0]
  ------------------
  319|      0|			elt = UCL_ALLOC(sizeof(*elt));
  ------------------
  |  |   71|      0|#define UCL_ALLOC(size) malloc(size)
  ------------------
  320|      0|			if (elt == NULL) {
  ------------------
  |  Branch (320:8): [True: 0, False: 0]
  ------------------
  321|      0|				kh_del(ucl_hash_caseless_node, h, k);
  ------------------
  |  |  521|      0|#define kh_del(name, h, k) kh_del_##name(h, k)
  ------------------
  322|      0|				goto e0;
  323|      0|			}
  324|      0|			pelt = &kh_value(h, k);
  ------------------
  |  |  551|      0|#define kh_value(h, x) ((h)->vals[x])
  ------------------
  325|      0|			*pelt = elt;
  326|      0|			DL_APPEND(hashlin->head, elt);
  ------------------
  |  |  639|      0|    DL_APPEND2(head,add,prev,next)
  |  |  ------------------
  |  |  |  |  641|      0|#define DL_APPEND2(head,add,prev,next)                                                         \
  |  |  |  |  642|      0|do {                                                                                           \
  |  |  |  |  643|      0|  if (head) {                                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (643:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  644|      0|      (add)->prev = (head)->prev;                                                              \
  |  |  |  |  645|      0|      (head)->prev->next = (add);                                                              \
  |  |  |  |  646|      0|      (head)->prev = (add);                                                                    \
  |  |  |  |  647|      0|      (add)->next = NULL;                                                                      \
  |  |  |  |  648|      0|  } else {                                                                                     \
  |  |  |  |  649|      0|      (head)=(add);                                                                            \
  |  |  |  |  650|      0|      (head)->prev = (head);                                                                   \
  |  |  |  |  651|      0|      (head)->next = NULL;                                                                     \
  |  |  |  |  652|      0|  }                                                                                            \
  |  |  |  |  653|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (653:10): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  327|      0|			elt->obj = obj;
  328|      0|		}
  329|      0|		else if (ret < 0) {
  ------------------
  |  Branch (329:12): [True: 0, False: 0]
  ------------------
  330|      0|			goto e0;
  331|      0|		}
  332|      0|	}
  333|   179k|	else {
  334|   179k|		khash_t(ucl_hash_node) *h = (khash_t(ucl_hash_node) *)
  ------------------
  |  |  462|   179k|#define khash_t(name) kh_##name##_t
  ------------------
  335|   179k|										hashlin->hash;
  336|   179k|		k = kh_put(ucl_hash_node, h, obj, &ret);
  ------------------
  |  |  504|   179k|#define kh_put(name, h, k, r) kh_put_##name(h, k, r)
  ------------------
  337|   179k|		if (ret > 0) {
  ------------------
  |  Branch (337:7): [True: 179k, False: 0]
  ------------------
  338|   179k|			elt = UCL_ALLOC(sizeof(*elt));
  ------------------
  |  |   71|   179k|#define UCL_ALLOC(size) malloc(size)
  ------------------
  339|   179k|			if (elt == NULL) {
  ------------------
  |  Branch (339:8): [True: 0, False: 179k]
  ------------------
  340|      0|				kh_del(ucl_hash_node, h, k);
  ------------------
  |  |  521|      0|#define kh_del(name, h, k) kh_del_##name(h, k)
  ------------------
  341|      0|				goto e0;
  342|      0|			}
  343|   179k|			pelt = &kh_value(h, k);
  ------------------
  |  |  551|   179k|#define kh_value(h, x) ((h)->vals[x])
  ------------------
  344|   179k|			*pelt = elt;
  345|   179k|			DL_APPEND(hashlin->head, elt);
  ------------------
  |  |  639|   179k|    DL_APPEND2(head,add,prev,next)
  |  |  ------------------
  |  |  |  |  641|   179k|#define DL_APPEND2(head,add,prev,next)                                                         \
  |  |  |  |  642|   179k|do {                                                                                           \
  |  |  |  |  643|   179k|  if (head) {                                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (643:7): [True: 104k, False: 75.0k]
  |  |  |  |  ------------------
  |  |  |  |  644|   104k|      (add)->prev = (head)->prev;                                                              \
  |  |  |  |  645|   104k|      (head)->prev->next = (add);                                                              \
  |  |  |  |  646|   104k|      (head)->prev = (add);                                                                    \
  |  |  |  |  647|   104k|      (add)->next = NULL;                                                                      \
  |  |  |  |  648|   104k|  } else {                                                                                     \
  |  |  |  |  649|  75.0k|      (head)=(add);                                                                            \
  |  |  |  |  650|  75.0k|      (head)->prev = (head);                                                                   \
  |  |  |  |  651|  75.0k|      (head)->next = NULL;                                                                     \
  |  |  |  |  652|  75.0k|  }                                                                                            \
  |  |  |  |  653|   179k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (653:10): [Folded, False: 179k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  346|   179k|			elt->obj = obj;
  347|   179k|		}
  348|      0|		else if (ret < 0) {
  ------------------
  |  Branch (348:12): [True: 0, False: 0]
  ------------------
  349|      0|			goto e0;
  350|      0|		}
  351|   179k|	}
  352|   179k|	return true;
  353|      0|e0:
  354|       |	return false;
  355|   179k|}
ucl_hash_replace:
  359|  12.0k|{
  360|  12.0k|	khiter_t k;
  361|       |
  362|  12.0k|	if (hashlin == NULL) {
  ------------------
  |  Branch (362:6): [True: 0, False: 12.0k]
  ------------------
  363|      0|		return;
  364|      0|	}
  365|       |
  366|  12.0k|	if (hashlin->caseless) {
  ------------------
  |  Branch (366:6): [True: 0, False: 12.0k]
  ------------------
  367|      0|		khash_t(ucl_hash_caseless_node) *h = (khash_t(ucl_hash_caseless_node) *)
  ------------------
  |  |  462|      0|#define khash_t(name) kh_##name##_t
  ------------------
  368|      0|												 hashlin->hash;
  369|      0|		k = kh_get(ucl_hash_caseless_node, h, old);
  ------------------
  |  |  513|      0|#define kh_get(name, h, k) kh_get_##name(h, k)
  ------------------
  370|      0|		if (k != kh_end(h) && ucl_hash_caseless_equal(old, new)) {
  ------------------
  |  |  565|      0|#define kh_end(h) ((h)->n_buckets)
  ------------------
  |  Branch (370:7): [True: 0, False: 0]
  |  Branch (370:25): [True: 0, False: 0]
  ------------------
  371|       |			/* The same key hashes to the same slot */
  372|      0|			kh_key(h, k) = new;
  ------------------
  |  |  537|      0|#define kh_key(h, x) ((h)->keys[x])
  ------------------
  373|      0|			kh_value(h, k)->obj = new;
  ------------------
  |  |  551|      0|#define kh_value(h, x) ((h)->vals[x])
  ------------------
  374|      0|		}
  375|      0|	}
  376|  12.0k|	else {
  377|  12.0k|		khash_t(ucl_hash_node) *h = (khash_t(ucl_hash_node) *)
  ------------------
  |  |  462|  12.0k|#define khash_t(name) kh_##name##_t
  ------------------
  378|  12.0k|										hashlin->hash;
  379|  12.0k|		k = kh_get(ucl_hash_node, h, old);
  ------------------
  |  |  513|  12.0k|#define kh_get(name, h, k) kh_get_##name(h, k)
  ------------------
  380|  12.0k|		if (k != kh_end(h) && ucl_hash_equal(old, new)) {
  ------------------
  |  |  565|  24.0k|#define kh_end(h) ((h)->n_buckets)
  ------------------
  |  Branch (380:7): [True: 12.0k, False: 0]
  |  Branch (380:25): [True: 12.0k, False: 0]
  ------------------
  381|       |			/* The same key hashes to the same slot */
  382|  12.0k|			kh_key(h, k) = new;
  ------------------
  |  |  537|  12.0k|#define kh_key(h, x) ((h)->keys[x])
  ------------------
  383|  12.0k|			kh_value(h, k)->obj = new;
  ------------------
  |  |  551|  12.0k|#define kh_value(h, x) ((h)->vals[x])
  ------------------
  384|  12.0k|		}
  385|  12.0k|	}
  386|  12.0k|}
ucl_hash_iterate2:
  403|   114k|{
  404|   114k|	const struct ucl_hash_elt *elt;
  405|       |
  406|   114k|	UHI_SETERR(ep, 0);
  ------------------
  |  |  389|   114k|	{                                \
  |  |  390|   114k|		if (ep != NULL) *ep = (ern); \
  |  |  ------------------
  |  |  |  Branch (390:7): [True: 114k, False: 10]
  |  |  ------------------
  |  |  391|   114k|	}
  ------------------
  407|       |
  408|       |	/* An object that has never had a key has no hash */
  409|   114k|	if (hashlin == NULL || *iter == UCL_HASH_ITER_END) {
  ------------------
  |  |  399|   114k|#define UCL_HASH_ITER_END ((ucl_hash_iter_t) &ucl_hash_iter_end)
  ------------------
  |  Branch (409:6): [True: 429, False: 114k]
  |  Branch (409:25): [True: 27.3k, False: 86.7k]
  ------------------
  410|  27.7k|		elt = NULL;
  411|  27.7k|	}
  412|  86.7k|	else if (*iter == NULL) {
  ------------------
  |  Branch (412:11): [True: 41.6k, False: 45.0k]
  ------------------
  413|  41.6k|		elt = hashlin->head;
  414|  41.6k|	}
  415|  45.0k|	else {
  416|  45.0k|		elt = *iter;
  417|  45.0k|	}
  418|       |
  419|   114k|	if (elt == NULL) {
  ------------------
  |  Branch (419:6): [True: 42.0k, False: 72.4k]
  ------------------
  420|  42.0k|		*iter = NULL;
  421|  42.0k|		return NULL;
  422|  42.0k|	}
  423|       |
  424|  72.4k|	*iter = elt->next != NULL ? (ucl_hash_iter_t) elt->next : UCL_HASH_ITER_END;
  ------------------
  |  |  399|  99.7k|#define UCL_HASH_ITER_END ((ucl_hash_iter_t) &ucl_hash_iter_end)
  ------------------
  |  Branch (424:10): [True: 45.0k, False: 27.3k]
  ------------------
  425|       |
  426|  72.4k|	return elt->obj;
  427|   114k|}
ucl_hash_iterate_free:
  439|     17|{
  440|       |	/* Nothing is allocated for an iterator */
  441|     17|	(void) iter;
  442|     17|}
ucl_hash_search:
  446|   328k|{
  447|   328k|	khiter_t k;
  448|   328k|	const ucl_object_t *ret = NULL;
  449|   328k|	ucl_object_t search;
  450|   328k|	struct ucl_hash_elt *elt;
  451|       |
  452|   328k|	search.key = key;
  453|   328k|	search.keylen = keylen;
  454|       |
  455|   328k|	if (hashlin == NULL) {
  ------------------
  |  Branch (455:6): [True: 1.28k, False: 327k]
  ------------------
  456|  1.28k|		return NULL;
  457|  1.28k|	}
  458|       |
  459|   327k|	if (hashlin->caseless) {
  ------------------
  |  Branch (459:6): [True: 0, False: 327k]
  ------------------
  460|      0|		khash_t(ucl_hash_caseless_node) *h = (khash_t(ucl_hash_caseless_node) *)
  ------------------
  |  |  462|      0|#define khash_t(name) kh_##name##_t
  ------------------
  461|      0|												 hashlin->hash;
  462|       |
  463|      0|		k = kh_get(ucl_hash_caseless_node, h, &search);
  ------------------
  |  |  513|      0|#define kh_get(name, h, k) kh_get_##name(h, k)
  ------------------
  464|      0|		if (k != kh_end(h)) {
  ------------------
  |  |  565|      0|#define kh_end(h) ((h)->n_buckets)
  ------------------
  |  Branch (464:7): [True: 0, False: 0]
  ------------------
  465|      0|			elt = kh_value(h, k);
  ------------------
  |  |  551|      0|#define kh_value(h, x) ((h)->vals[x])
  ------------------
  466|      0|			ret = elt->obj;
  467|      0|		}
  468|      0|	}
  469|   327k|	else {
  470|   327k|		khash_t(ucl_hash_node) *h = (khash_t(ucl_hash_node) *)
  ------------------
  |  |  462|   327k|#define khash_t(name) kh_##name##_t
  ------------------
  471|   327k|										hashlin->hash;
  472|   327k|		k = kh_get(ucl_hash_node, h, &search);
  ------------------
  |  |  513|   327k|#define kh_get(name, h, k) kh_get_##name(h, k)
  ------------------
  473|   327k|		if (k != kh_end(h)) {
  ------------------
  |  |  565|   327k|#define kh_end(h) ((h)->n_buckets)
  ------------------
  |  Branch (473:7): [True: 145k, False: 181k]
  ------------------
  474|   145k|			elt = kh_value(h, k);
  ------------------
  |  |  551|   145k|#define kh_value(h, x) ((h)->vals[x])
  ------------------
  475|   145k|			ret = elt->obj;
  476|   145k|		}
  477|   327k|	}
  478|       |
  479|   327k|	return ret;
  480|   328k|}
ucl_hash.c:ucl_hash_seed:
   46|   543k|{
   47|   543k|	static uint64_t seed;
   48|   543k|	if (seed == 0) {
  ------------------
  |  Branch (48:6): [True: 1, False: 543k]
  ------------------
   49|       |#ifdef UCL_RANDOM_FUNCTION
   50|       |		seed = UCL_RANDOM_FUNCTION;
   51|       |#else
   52|       |		/* Not very random but can be useful for our purposes */
   53|      1|		seed = time(NULL);
   54|      1|#endif
   55|      1|	}
   56|       |
   57|   543k|	return seed;
   58|   543k|}
ucl_hash.c:ucl_hash_func:
  103|   543k|{
  104|   543k|	return mum_hash(o->key, o->keylen, ucl_hash_seed());
  105|   543k|}
ucl_hash.c:ucl_hash_equal:
  108|   482k|{
  109|   482k|	if (k1->keylen == k2->keylen) {
  ------------------
  |  Branch (109:6): [True: 229k, False: 252k]
  ------------------
  110|   229k|		return memcmp(k1->key, k2->key, k1->keylen) == 0;
  111|   229k|	}
  112|       |
  113|   252k|	return 0;
  114|   482k|}

ucl_parser.c:ucl_hash_search_obj:
  607|   312k|{
  608|   312k|	return (const ucl_object_t *) ucl_hash_search(hashlin, obj->key, obj->keylen);
  609|   312k|}
ucl_parser.c:ucl_hash_insert_object:
  619|   167k|{
  620|   167k|	ucl_hash_t *nhp;
  621|       |
  622|   167k|	if (hashlin == NULL) {
  ------------------
  |  Branch (622:6): [True: 1.28k, False: 165k]
  ------------------
  623|  1.28k|		nhp = ucl_hash_create(ignore_case);
  624|  1.28k|		if (nhp == NULL) {
  ------------------
  |  Branch (624:7): [True: 0, False: 1.28k]
  ------------------
  625|      0|			return NULL;
  626|      0|		}
  627|  1.28k|	}
  628|   165k|	else {
  629|   165k|		nhp = hashlin;
  630|   165k|	}
  631|   167k|	if (!ucl_hash_insert(nhp, obj, obj->key, obj->keylen)) {
  ------------------
  |  Branch (631:6): [True: 0, False: 167k]
  ------------------
  632|      0|		if (nhp != hashlin) {
  ------------------
  |  Branch (632:7): [True: 0, False: 0]
  ------------------
  633|      0|			ucl_hash_destroy(nhp, NULL, NULL);
  634|      0|		}
  635|      0|		return NULL;
  636|      0|	}
  637|       |
  638|   167k|	return nhp;
  639|   167k|}
ucl_parser.c:ucl_create_err:
  523|  4.65k|{
  524|  4.65k|	if (*err == NULL) {
  ------------------
  |  Branch (524:6): [True: 3.76k, False: 893]
  ------------------
  525|  3.76k|		utstring_new(*err);
  ------------------
  |  |   81|  3.76k|#define utstring_new(s)                                    \
  |  |   82|  3.76k|do {                                                       \
  |  |   83|  3.76k|   s = (UT_string*)calloc(1, sizeof(UT_string));          \
  |  |   84|  3.76k|   if (!s) oom();                                          \
  |  |  ------------------
  |  |  |  |   42|      0|#define oom abort
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 3.76k]
  |  |  ------------------
  |  |   85|  3.76k|   else utstring_init(s);                                  \
  |  |  ------------------
  |  |  |  |   62|  3.76k|#define utstring_init(s)                                   \
  |  |  |  |   63|  3.76k|do {                                                       \
  |  |  |  |   64|  3.76k|  (s)->n = 0; (s)->i = 0; (s)->d = NULL;                   \
  |  |  |  |   65|  3.76k|  utstring_reserve(s,128);                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|  3.76k|#define utstring_reserve(s,amt)                            \
  |  |  |  |  |  |   53|  3.76k|do {                                                       \
  |  |  |  |  |  |   54|  3.76k|  if (((s)->n - (s)->i) < (size_t)(amt)) {                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (54:7): [True: 3.76k, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   55|  3.76k|     (s)->d = (char*)realloc((s)->d, (s)->n + amt);        \
  |  |  |  |  |  |   56|  3.76k|     if ((s)->d == NULL) oom();                            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   42|      0|#define oom abort
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [True: 0, False: 3.76k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  3.76k|     else {(s)->n += amt;                                  \
  |  |  |  |  |  |   58|  3.76k|     if ((s)->pd) *((s)->pd) = (s)->d;}                    \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (58:10): [True: 0, False: 3.76k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   59|  3.76k|  }                                                        \
  |  |  |  |  |  |   60|  3.76k|} while(0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (60:9): [Folded, False: 3.76k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   66|  3.76k|  (s)->d[0] = '\0'; \
  |  |  |  |   67|  3.76k|} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:9): [Folded, False: 3.76k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   86|  3.76k|} while(0)
  |  |  ------------------
  |  |  |  Branch (86:9): [Folded, False: 3.76k]
  |  |  ------------------
  ------------------
  526|  3.76k|		va_list ap;
  527|  3.76k|		va_start(ap, fmt);
  528|  3.76k|		utstring_printf_va(*err, fmt, ap);
  529|  3.76k|		va_end(ap);
  530|  3.76k|	}
  531|       |
  532|       |#ifdef UCL_FATAL_ERRORS
  533|       |	assert(0);
  534|       |#endif
  535|  4.65k|}
ucl_parser.c:ucl_size_add:
  479|  1.05M|{
  480|  1.05M|#ifdef UCL_HAVE_BUILTIN_OVERFLOW
  481|  1.05M|	size_t r;
  482|       |
  483|  1.05M|	if (__builtin_add_overflow(a, b, &r)) {
  ------------------
  |  Branch (483:6): [True: 0, False: 1.05M]
  ------------------
  484|      0|		return false;
  485|      0|	}
  486|       |
  487|  1.05M|	*res = r;
  488|       |
  489|  1.05M|	return true;
  490|       |#else
  491|       |	return ucl_size_add_portable(a, b, res);
  492|       |#endif
  493|  1.05M|}
ucl_parser.c:ucl_maybe_parse_boolean:
  546|   409k|{
  547|   409k|	const char *p = (const char *) start;
  548|   409k|	bool ret = false, val = false;
  549|       |
  550|   409k|	if (len == 5) {
  ------------------
  |  Branch (550:6): [True: 9.86k, False: 399k]
  ------------------
  551|  9.86k|		if ((p[0] == 'f' || p[0] == 'F') && strncasecmp(p, "false", 5) == 0) {
  ------------------
  |  Branch (551:8): [True: 694, False: 9.17k]
  |  Branch (551:23): [True: 199, False: 8.97k]
  |  Branch (551:39): [True: 368, False: 525]
  ------------------
  552|    368|			ret = true;
  553|    368|			val = false;
  554|    368|		}
  555|  9.86k|	}
  556|   399k|	else if (len == 4) {
  ------------------
  |  Branch (556:11): [True: 19.4k, False: 379k]
  ------------------
  557|  19.4k|		if ((p[0] == 't' || p[0] == 'T') && strncasecmp(p, "true", 4) == 0) {
  ------------------
  |  Branch (557:8): [True: 4.33k, False: 15.1k]
  |  Branch (557:23): [True: 197, False: 14.9k]
  |  Branch (557:39): [True: 3.97k, False: 557]
  ------------------
  558|  3.97k|			ret = true;
  559|  3.97k|			val = true;
  560|  3.97k|		}
  561|  19.4k|	}
  562|   379k|	else if (len == 3) {
  ------------------
  |  Branch (562:11): [True: 19.0k, False: 360k]
  ------------------
  563|  19.0k|		if ((p[0] == 'y' || p[0] == 'Y') && strncasecmp(p, "yes", 3) == 0) {
  ------------------
  |  Branch (563:8): [True: 6.04k, False: 13.0k]
  |  Branch (563:23): [True: 361, False: 12.6k]
  |  Branch (563:39): [True: 5.72k, False: 685]
  ------------------
  564|  5.72k|			ret = true;
  565|  5.72k|			val = true;
  566|  5.72k|		}
  567|  13.3k|		else if ((p[0] == 'o' || p[0] == 'O') && strncasecmp(p, "off", 3) == 0) {
  ------------------
  |  Branch (567:13): [True: 781, False: 12.5k]
  |  Branch (567:28): [True: 232, False: 12.3k]
  |  Branch (567:44): [True: 217, False: 796]
  ------------------
  568|    217|			ret = true;
  569|    217|			val = false;
  570|    217|		}
  571|  19.0k|	}
  572|   360k|	else if (len == 2) {
  ------------------
  |  Branch (572:11): [True: 23.7k, False: 336k]
  ------------------
  573|  23.7k|		if ((p[0] == 'n' || p[0] == 'N') && strncasecmp(p, "no", 2) == 0) {
  ------------------
  |  Branch (573:8): [True: 646, False: 23.1k]
  |  Branch (573:23): [True: 789, False: 22.3k]
  |  Branch (573:39): [True: 924, False: 511]
  ------------------
  574|    924|			ret = true;
  575|    924|			val = false;
  576|    924|		}
  577|  22.8k|		else if ((p[0] == 'o' || p[0] == 'O') && strncasecmp(p, "on", 2) == 0) {
  ------------------
  |  Branch (577:13): [True: 6.22k, False: 16.6k]
  |  Branch (577:28): [True: 212, False: 16.4k]
  |  Branch (577:44): [True: 5.96k, False: 468]
  ------------------
  578|  5.96k|			ret = true;
  579|  5.96k|			val = true;
  580|  5.96k|		}
  581|  23.7k|	}
  582|       |
  583|   409k|	if (ret && obj != NULL) {
  ------------------
  |  Branch (583:6): [True: 17.1k, False: 391k]
  |  Branch (583:13): [True: 17.1k, False: 0]
  ------------------
  584|  17.1k|		obj->type = UCL_BOOLEAN;
  585|  17.1k|		obj->value.iv = val;
  586|  17.1k|	}
  587|       |
  588|   409k|	return ret;
  589|   409k|}
ucl_util.c:ucl_size_add:
  479|  6.20M|{
  480|  6.20M|#ifdef UCL_HAVE_BUILTIN_OVERFLOW
  481|  6.20M|	size_t r;
  482|       |
  483|  6.20M|	if (__builtin_add_overflow(a, b, &r)) {
  ------------------
  |  Branch (483:6): [True: 0, False: 6.20M]
  ------------------
  484|      0|		return false;
  485|      0|	}
  486|       |
  487|  6.20M|	*res = r;
  488|       |
  489|  6.20M|	return true;
  490|       |#else
  491|       |	return ucl_size_add_portable(a, b, res);
  492|       |#endif
  493|  6.20M|}
ucl_util.c:ucl_create_err:
  523|  39.1k|{
  524|  39.1k|	if (*err == NULL) {
  ------------------
  |  Branch (524:6): [True: 5.65k, False: 33.4k]
  ------------------
  525|  5.65k|		utstring_new(*err);
  ------------------
  |  |   81|  5.65k|#define utstring_new(s)                                    \
  |  |   82|  5.65k|do {                                                       \
  |  |   83|  5.65k|   s = (UT_string*)calloc(1, sizeof(UT_string));          \
  |  |   84|  5.65k|   if (!s) oom();                                          \
  |  |  ------------------
  |  |  |  |   42|      0|#define oom abort
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 5.65k]
  |  |  ------------------
  |  |   85|  5.65k|   else utstring_init(s);                                  \
  |  |  ------------------
  |  |  |  |   62|  5.65k|#define utstring_init(s)                                   \
  |  |  |  |   63|  5.65k|do {                                                       \
  |  |  |  |   64|  5.65k|  (s)->n = 0; (s)->i = 0; (s)->d = NULL;                   \
  |  |  |  |   65|  5.65k|  utstring_reserve(s,128);                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|  5.65k|#define utstring_reserve(s,amt)                            \
  |  |  |  |  |  |   53|  5.65k|do {                                                       \
  |  |  |  |  |  |   54|  5.65k|  if (((s)->n - (s)->i) < (size_t)(amt)) {                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (54:7): [True: 5.65k, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   55|  5.65k|     (s)->d = (char*)realloc((s)->d, (s)->n + amt);        \
  |  |  |  |  |  |   56|  5.65k|     if ((s)->d == NULL) oom();                            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   42|      0|#define oom abort
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [True: 0, False: 5.65k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  5.65k|     else {(s)->n += amt;                                  \
  |  |  |  |  |  |   58|  5.65k|     if ((s)->pd) *((s)->pd) = (s)->d;}                    \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (58:10): [True: 0, False: 5.65k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   59|  5.65k|  }                                                        \
  |  |  |  |  |  |   60|  5.65k|} while(0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (60:9): [Folded, False: 5.65k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   66|  5.65k|  (s)->d[0] = '\0'; \
  |  |  |  |   67|  5.65k|} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:9): [Folded, False: 5.65k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   86|  5.65k|} while(0)
  |  |  ------------------
  |  |  |  Branch (86:9): [Folded, False: 5.65k]
  |  |  ------------------
  ------------------
  526|  5.65k|		va_list ap;
  527|  5.65k|		va_start(ap, fmt);
  528|  5.65k|		utstring_printf_va(*err, fmt, ap);
  529|  5.65k|		va_end(ap);
  530|  5.65k|	}
  531|       |
  532|       |#ifdef UCL_FATAL_ERRORS
  533|       |	assert(0);
  534|       |#endif
  535|  39.1k|}
ucl_util.c:ucl_hash_insert_object:
  619|  12.5k|{
  620|  12.5k|	ucl_hash_t *nhp;
  621|       |
  622|  12.5k|	if (hashlin == NULL) {
  ------------------
  |  Branch (622:6): [True: 0, False: 12.5k]
  ------------------
  623|      0|		nhp = ucl_hash_create(ignore_case);
  624|      0|		if (nhp == NULL) {
  ------------------
  |  Branch (624:7): [True: 0, False: 0]
  ------------------
  625|      0|			return NULL;
  626|      0|		}
  627|      0|	}
  628|  12.5k|	else {
  629|  12.5k|		nhp = hashlin;
  630|  12.5k|	}
  631|  12.5k|	if (!ucl_hash_insert(nhp, obj, obj->key, obj->keylen)) {
  ------------------
  |  Branch (631:6): [True: 0, False: 12.5k]
  ------------------
  632|      0|		if (nhp != hashlin) {
  ------------------
  |  Branch (632:7): [True: 0, False: 0]
  ------------------
  633|      0|			ucl_hash_destroy(nhp, NULL, NULL);
  634|      0|		}
  635|      0|		return NULL;
  636|      0|	}
  637|       |
  638|  12.5k|	return nhp;
  639|  12.5k|}
ucl_util.c:ucl_hash_search_obj:
  607|  13.9k|{
  608|  13.9k|	return (const ucl_object_t *) ucl_hash_search(hashlin, obj->key, obj->keylen);
  609|  13.9k|}
ucl_util.c:ucl_size_mul:
  497|   258k|{
  498|   258k|#ifdef UCL_HAVE_BUILTIN_OVERFLOW
  499|   258k|	size_t r;
  500|       |
  501|   258k|	if (__builtin_mul_overflow(a, b, &r)) {
  ------------------
  |  Branch (501:6): [True: 0, False: 258k]
  ------------------
  502|      0|		return false;
  503|      0|	}
  504|       |
  505|   258k|	*res = r;
  506|       |
  507|   258k|	return true;
  508|       |#else
  509|       |	return ucl_size_mul_portable(a, b, res);
  510|       |#endif
  511|   258k|}

ucl_parser_account_alloc:
  696|  2.07M|{
  697|  2.07M|	parser->cur_alloc += bytes;
  698|       |
  699|  2.07M|	if (parser->limits.max_alloc > 0 &&
  ------------------
  |  Branch (699:6): [True: 0, False: 2.07M]
  ------------------
  700|      0|		parser->cur_alloc > parser->limits.max_alloc) {
  ------------------
  |  Branch (700:3): [True: 0, False: 0]
  ------------------
  701|      0|		ucl_set_err(parser, UCL_ELIMIT,
  702|      0|					"input requires too much memory to represent",
  703|      0|					&parser->err);
  704|       |
  705|      0|		return false;
  706|      0|	}
  707|       |
  708|  2.07M|	return true;
  709|  2.07M|}
ucl_parser_account_node:
  712|  1.02M|{
  713|  1.02M|	parser->cur_nodes++;
  714|       |
  715|  1.02M|	if (parser->limits.max_nodes > 0 &&
  ------------------
  |  Branch (715:6): [True: 0, False: 1.02M]
  ------------------
  716|      0|		parser->cur_nodes > parser->limits.max_nodes) {
  ------------------
  |  Branch (716:3): [True: 0, False: 0]
  ------------------
  717|      0|		ucl_set_err(parser, UCL_ELIMIT, "input has too many elements",
  718|      0|					&parser->err);
  719|       |
  720|      0|		return false;
  721|      0|	}
  722|       |
  723|  1.02M|	return ucl_parser_account_alloc(parser,
  724|  1.02M|									sizeof(ucl_object_t) + UCL_NODE_OVERHEAD);
  ------------------
  |  |  152|  1.02M|#define UCL_NODE_OVERHEAD 64
  ------------------
  725|  1.02M|}
ucl_parser_pop_container:
  978|   136k|{
  979|   136k|	parser->stack = st->next;
  980|       |
  981|   136k|	if (parser->cur_depth > 0) {
  ------------------
  |  Branch (981:6): [True: 136k, False: 0]
  ------------------
  982|   136k|		parser->cur_depth--;
  983|   136k|	}
  984|       |
  985|   136k|	UCL_FREE(sizeof(struct ucl_stack), st);
  ------------------
  |  |   74|   136k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  986|   136k|}
ucl_maybe_parse_number:
 1023|  44.5k|{
 1024|  44.5k|	const char *p = start, *c = start;
 1025|  44.5k|	char *endptr;
 1026|  44.5k|	bool got_dot = false, got_exp = false, need_double = false,
 1027|  44.5k|		 is_time = false, valid_start = false, is_hex = false;
 1028|  44.5k|	int is_neg = 0;
 1029|  44.5k|	double dv = 0;
 1030|  44.5k|	int64_t lv = 0;
 1031|       |
 1032|  44.5k|	if (*p == '-') {
  ------------------
  |  Branch (1032:6): [True: 6.42k, False: 38.1k]
  ------------------
 1033|  6.42k|		is_neg = 1;
 1034|  6.42k|		c++;
 1035|  6.42k|		p++;
 1036|  6.42k|	}
 1037|   189k|	while (p < end) {
  ------------------
  |  Branch (1037:9): [True: 187k, False: 1.35k]
  ------------------
 1038|   187k|		if (is_hex && isxdigit(*p)) {
  ------------------
  |  Branch (1038:7): [True: 11.9k, False: 175k]
  |  Branch (1038:17): [True: 8.88k, False: 3.10k]
  ------------------
 1039|  8.88k|			p++;
 1040|  8.88k|		}
 1041|   178k|		else if (isdigit(*p)) {
  ------------------
  |  Branch (1041:12): [True: 127k, False: 51.4k]
  ------------------
 1042|   127k|			valid_start = true;
 1043|   127k|			p++;
 1044|   127k|		}
 1045|  51.4k|		else if (!is_hex && (*p == 'x' || *p == 'X')) {
  ------------------
  |  Branch (1045:12): [True: 48.3k, False: 3.10k]
  |  Branch (1045:24): [True: 2.20k, False: 46.1k]
  |  Branch (1045:37): [True: 958, False: 45.2k]
  ------------------
 1046|  3.16k|			is_hex = true;
 1047|  3.16k|			allow_double = false;
 1048|  3.16k|			c = p + 1;
 1049|  3.16k|			p++;
 1050|  3.16k|		}
 1051|  48.3k|		else if (allow_double) {
  ------------------
  |  Branch (1051:12): [True: 45.2k, False: 3.10k]
  ------------------
 1052|  45.2k|			if (p == c) {
  ------------------
  |  Branch (1052:8): [True: 2.33k, False: 42.8k]
  ------------------
 1053|       |				/* Empty digits sequence, not a number */
 1054|  2.33k|				*pos = start;
 1055|  2.33k|				return EINVAL;
 1056|  2.33k|			}
 1057|  42.8k|			else if (*p == '.') {
  ------------------
  |  Branch (1057:13): [True: 2.54k, False: 40.3k]
  ------------------
 1058|  2.54k|				if (got_dot) {
  ------------------
  |  Branch (1058:9): [True: 296, False: 2.24k]
  ------------------
 1059|       |					/* Double dots, not a number */
 1060|    296|					*pos = start;
 1061|    296|					return EINVAL;
 1062|    296|				}
 1063|  2.24k|				else {
 1064|  2.24k|					got_dot = true;
 1065|  2.24k|					need_double = true;
 1066|  2.24k|					p++;
 1067|  2.24k|				}
 1068|  2.54k|			}
 1069|  40.3k|			else if (*p == 'e' || *p == 'E') {
  ------------------
  |  Branch (1069:13): [True: 5.01k, False: 35.3k]
  |  Branch (1069:26): [True: 352, False: 34.9k]
  ------------------
 1070|  5.36k|				if (got_exp) {
  ------------------
  |  Branch (1070:9): [True: 768, False: 4.59k]
  ------------------
 1071|       |					/* Double exp, not a number */
 1072|    768|					*pos = start;
 1073|    768|					return EINVAL;
 1074|    768|				}
 1075|  4.59k|				else {
 1076|  4.59k|					got_exp = true;
 1077|  4.59k|					need_double = true;
 1078|  4.59k|					p++;
 1079|  4.59k|					if (p >= end) {
  ------------------
  |  Branch (1079:10): [True: 300, False: 4.29k]
  ------------------
 1080|    300|						*pos = start;
 1081|    300|						return EINVAL;
 1082|    300|					}
 1083|  4.29k|					if (!isdigit(*p) && *p != '+' && *p != '-') {
  ------------------
  |  Branch (1083:10): [True: 1.85k, False: 2.43k]
  |  Branch (1083:26): [True: 1.66k, False: 198]
  |  Branch (1083:39): [True: 1.44k, False: 214]
  ------------------
 1084|       |						/* Wrong exponent sign */
 1085|  1.44k|						*pos = start;
 1086|  1.44k|						return EINVAL;
 1087|  1.44k|					}
 1088|  2.85k|					else {
 1089|  2.85k|						p++;
 1090|  2.85k|					}
 1091|  4.29k|				}
 1092|  5.36k|			}
 1093|  34.9k|			else {
 1094|       |				/* Got the end of the number, need to check */
 1095|  34.9k|				break;
 1096|  34.9k|			}
 1097|  45.2k|		}
 1098|  3.10k|		else if (!allow_double && *p == '.') {
  ------------------
  |  Branch (1098:12): [True: 3.10k, False: 0]
  |  Branch (1098:29): [True: 197, False: 2.91k]
  ------------------
 1099|       |			/* Unexpected dot */
 1100|    197|			*pos = start;
 1101|    197|			return EINVAL;
 1102|    197|		}
 1103|  2.91k|		else {
 1104|  2.91k|			break;
 1105|  2.91k|		}
 1106|   187k|	}
 1107|       |
 1108|  39.2k|	if (!valid_start || p == c) {
  ------------------
  |  Branch (1108:6): [True: 485, False: 38.7k]
  |  Branch (1108:22): [True: 518, False: 38.2k]
  ------------------
 1109|  1.00k|		*pos = start;
 1110|  1.00k|		return EINVAL;
 1111|  1.00k|	}
 1112|       |
 1113|  38.2k|	char numbuf[128];
 1114|       |
 1115|  38.2k|	if ((size_t) (p - c + 1) >= sizeof(numbuf)) {
  ------------------
  |  Branch (1115:6): [True: 195, False: 38.0k]
  ------------------
 1116|    195|		*pos = start;
 1117|    195|		return EINVAL;
 1118|    195|	}
 1119|       |
 1120|  38.0k|	if (is_neg) {
  ------------------
  |  Branch (1120:6): [True: 3.60k, False: 34.4k]
  ------------------
 1121|  3.60k|		numbuf[0] = '-';
 1122|  3.60k|		ucl_strlcpy(&numbuf[1], c, p - c + 1);
 1123|  3.60k|	}
 1124|  34.4k|	else {
 1125|  34.4k|		ucl_strlcpy(numbuf, c, p - c + 1);
 1126|  34.4k|	}
 1127|       |
 1128|  38.0k|	errno = 0;
 1129|  38.0k|	if (need_double) {
  ------------------
  |  Branch (1129:6): [True: 4.02k, False: 33.9k]
  ------------------
 1130|  4.02k|		dv = strtod(numbuf, &endptr);
 1131|  4.02k|	}
 1132|  33.9k|	else {
 1133|  33.9k|		if (is_hex) {
  ------------------
  |  Branch (1133:7): [True: 2.18k, False: 31.8k]
  ------------------
 1134|  2.18k|			lv = strtoimax(numbuf, &endptr, 16);
 1135|  2.18k|		}
 1136|  31.8k|		else {
 1137|  31.8k|			lv = strtoimax(numbuf, &endptr, 10);
 1138|  31.8k|		}
 1139|  33.9k|	}
 1140|  38.0k|	if (errno == ERANGE) {
  ------------------
  |  Branch (1140:6): [True: 226, False: 37.7k]
  ------------------
 1141|    226|		*pos = start;
 1142|    226|		return ERANGE;
 1143|    226|	}
 1144|       |
 1145|       |	/* Now check endptr and move it from numbuf to the real ending */
 1146|  37.7k|	if (endptr != NULL) {
  ------------------
  |  Branch (1146:6): [True: 37.7k, False: 0]
  ------------------
 1147|  37.7k|		long shift = endptr - numbuf - is_neg;
 1148|  37.7k|		endptr = (char *) c + shift;
 1149|  37.7k|	}
 1150|  37.7k|	if (endptr >= end) {
  ------------------
  |  Branch (1150:6): [True: 1.03k, False: 36.7k]
  ------------------
 1151|  1.03k|		p = end;
 1152|  1.03k|		goto set_obj;
 1153|  1.03k|	}
 1154|  36.7k|	if (endptr == NULL || ucl_lex_is_number_end(endptr, end) || *endptr == '\0') {
  ------------------
  |  Branch (1154:6): [True: 0, False: 36.7k]
  |  Branch (1154:24): [True: 8.70k, False: 28.0k]
  |  Branch (1154:62): [True: 0, False: 28.0k]
  ------------------
 1155|  8.70k|		p = endptr;
 1156|  8.70k|		goto set_obj;
 1157|  8.70k|	}
 1158|       |
 1159|  28.0k|	if (endptr < end && endptr != start) {
  ------------------
  |  Branch (1159:6): [True: 28.0k, False: 0]
  |  Branch (1159:22): [True: 28.0k, False: 0]
  ------------------
 1160|  28.0k|		p = endptr;
 1161|  28.0k|		switch (*p) {
  ------------------
  |  Branch (1161:11): [True: 16.3k, False: 11.7k]
  ------------------
 1162|  4.09k|		case 'm':
  ------------------
  |  Branch (1162:3): [True: 4.09k, False: 23.9k]
  ------------------
 1163|  6.42k|		case 'M':
  ------------------
  |  Branch (1163:3): [True: 2.33k, False: 25.7k]
  ------------------
 1164|  8.70k|		case 'g':
  ------------------
  |  Branch (1164:3): [True: 2.28k, False: 25.7k]
  ------------------
 1165|  9.91k|		case 'G':
  ------------------
  |  Branch (1165:3): [True: 1.21k, False: 26.8k]
  ------------------
 1166|  11.2k|		case 'k':
  ------------------
  |  Branch (1166:3): [True: 1.30k, False: 26.7k]
  ------------------
 1167|  11.4k|		case 'K':
  ------------------
  |  Branch (1167:3): [True: 264, False: 27.7k]
  ------------------
 1168|  11.4k|			if (end - p >= 2) {
  ------------------
  |  Branch (1168:8): [True: 10.4k, False: 1.05k]
  ------------------
 1169|  10.4k|				if (p[1] == 's' || p[1] == 'S') {
  ------------------
  |  Branch (1169:9): [True: 1.37k, False: 9.06k]
  |  Branch (1169:24): [True: 602, False: 8.46k]
  ------------------
 1170|       |					/* Milliseconds */
 1171|  1.97k|					if (!need_double) {
  ------------------
  |  Branch (1171:10): [True: 1.48k, False: 485]
  ------------------
 1172|  1.48k|						need_double = true;
 1173|  1.48k|						dv = lv;
 1174|  1.48k|					}
 1175|  1.97k|					is_time = true;
 1176|  1.97k|					if (p[0] == 'm' || p[0] == 'M') {
  ------------------
  |  Branch (1176:10): [True: 884, False: 1.09k]
  |  Branch (1176:25): [True: 308, False: 782]
  ------------------
 1177|  1.19k|						dv /= 1000.;
 1178|  1.19k|					}
 1179|    782|					else {
 1180|    782|						dv *= ucl_lex_num_multiplier(*p, false);
 1181|    782|					}
 1182|  1.97k|					p += 2;
 1183|  1.97k|					if (!ucl_lex_is_number_end(p, end)) {
  ------------------
  |  Branch (1183:10): [True: 945, False: 1.02k]
  ------------------
 1184|    945|						*pos = start;
 1185|    945|						return EINVAL;
 1186|    945|					}
 1187|  1.02k|					goto set_obj;
 1188|  1.97k|				}
 1189|  8.46k|				else if (number_bytes || (p[1] == 'b' || p[1] == 'B')) {
  ------------------
  |  Branch (1189:14): [True: 0, False: 8.46k]
  |  Branch (1189:31): [True: 681, False: 7.78k]
  |  Branch (1189:46): [True: 966, False: 6.81k]
  ------------------
 1190|       |					/* Bytes */
 1191|  1.64k|					if (need_double) {
  ------------------
  |  Branch (1191:10): [True: 639, False: 1.00k]
  ------------------
 1192|    639|						need_double = false;
 1193|    639|						if (!ucl_lex_double_to_int(dv, &lv)) {
  ------------------
  |  Branch (1193:11): [True: 114, False: 525]
  ------------------
 1194|    114|							*pos = start;
 1195|    114|							return ERANGE;
 1196|    114|						}
 1197|    639|					}
 1198|  1.53k|					if (!ucl_lex_num_mul(&lv, ucl_lex_num_multiplier(*p, true))) {
  ------------------
  |  Branch (1198:10): [True: 126, False: 1.40k]
  ------------------
 1199|    126|						*pos = start;
 1200|    126|						return ERANGE;
 1201|    126|					}
 1202|  1.40k|					p += 2;
 1203|  1.40k|					if (!ucl_lex_is_number_end(p, end)) {
  ------------------
  |  Branch (1203:10): [True: 546, False: 861]
  ------------------
 1204|    546|						*pos = start;
 1205|    546|						return EINVAL;
 1206|    546|					}
 1207|    861|					goto set_obj;
 1208|  1.40k|				}
 1209|  6.81k|				else if (ucl_lex_is_number_end(p + 1, end)) {
  ------------------
  |  Branch (1209:14): [True: 3.58k, False: 3.22k]
  ------------------
 1210|  3.58k|					if (need_double) {
  ------------------
  |  Branch (1210:10): [True: 818, False: 2.77k]
  ------------------
 1211|    818|						dv *= ucl_lex_num_multiplier(*p, false);
 1212|    818|					}
 1213|  2.77k|					else if (!ucl_lex_num_mul(&lv, ucl_lex_num_multiplier(*p, number_bytes))) {
  ------------------
  |  Branch (1213:15): [True: 1.07k, False: 1.69k]
  ------------------
 1214|  1.07k|						*pos = start;
 1215|  1.07k|						return ERANGE;
 1216|  1.07k|					}
 1217|  2.51k|					p++;
 1218|  2.51k|					goto set_obj;
 1219|  3.58k|				}
 1220|  3.22k|				else if (allow_time && end - p >= 3) {
  ------------------
  |  Branch (1220:14): [True: 3.22k, False: 0]
  |  Branch (1220:28): [True: 3.00k, False: 224]
  ------------------
 1221|  3.00k|					if (tolower(p[0]) == 'm' &&
  ------------------
  |  Branch (1221:10): [True: 0, False: 0]
  |  Branch (1221:10): [True: 0, False: 0]
  |  Branch (1221:10): [Folded, False: 3.00k]
  |  Branch (1221:10): [True: 2.32k, False: 673]
  ------------------
 1222|  3.00k|						tolower(p[1]) == 'i' &&
  ------------------
  |  Branch (1222:7): [True: 0, False: 0]
  |  Branch (1222:7): [True: 0, False: 0]
  |  Branch (1222:7): [Folded, False: 2.32k]
  |  Branch (1222:7): [True: 1.31k, False: 1.01k]
  ------------------
 1223|  3.00k|						tolower(p[2]) == 'n') {
  ------------------
  |  Branch (1223:7): [True: 0, False: 0]
  |  Branch (1223:7): [True: 0, False: 0]
  |  Branch (1223:7): [Folded, False: 1.31k]
  |  Branch (1223:7): [True: 1.03k, False: 283]
  ------------------
 1224|       |						/* Minutes */
 1225|  1.03k|						if (!need_double) {
  ------------------
  |  Branch (1225:11): [True: 802, False: 229]
  ------------------
 1226|    802|							need_double = true;
 1227|    802|							dv = lv;
 1228|    802|						}
 1229|  1.03k|						is_time = true;
 1230|  1.03k|						dv *= 60.;
 1231|  1.03k|						p += 3;
 1232|  1.03k|						if (!ucl_lex_is_number_end(p, end)) {
  ------------------
  |  Branch (1232:11): [True: 380, False: 651]
  ------------------
 1233|    380|							*pos = start;
 1234|    380|							return EINVAL;
 1235|    380|						}
 1236|    651|						goto set_obj;
 1237|  1.03k|					}
 1238|  3.00k|				}
 1239|  10.4k|			}
 1240|  1.05k|			else {
 1241|  1.05k|				if (need_double) {
  ------------------
  |  Branch (1241:9): [True: 200, False: 854]
  ------------------
 1242|    200|					dv *= ucl_lex_num_multiplier(*p, false);
 1243|    200|				}
 1244|    854|				else if (!ucl_lex_num_mul(&lv, ucl_lex_num_multiplier(*p, number_bytes))) {
  ------------------
  |  Branch (1244:14): [True: 268, False: 586]
  ------------------
 1245|    268|					*pos = start;
 1246|    268|					return ERANGE;
 1247|    268|				}
 1248|    786|				p++;
 1249|    786|				if (!ucl_lex_is_number_end(p, end)) {
  ------------------
  |  Branch (1249:9): [True: 0, False: 786]
  ------------------
 1250|      0|					*pos = start;
 1251|      0|					return EINVAL;
 1252|      0|				}
 1253|    786|				goto set_obj;
 1254|    786|			}
 1255|  2.19k|			break;
 1256|  2.19k|		case 'S':
  ------------------
  |  Branch (1256:3): [True: 436, False: 27.6k]
  ------------------
 1257|  1.03k|		case 's':
  ------------------
  |  Branch (1257:3): [True: 602, False: 27.4k]
  ------------------
 1258|  1.03k|			if (allow_time &&
  ------------------
  |  Branch (1258:8): [True: 1.03k, False: 0]
  ------------------
 1259|  1.03k|				ucl_lex_is_number_end(p + 1, end)) {
  ------------------
  |  Branch (1259:5): [True: 606, False: 432]
  ------------------
 1260|    606|				if (!need_double) {
  ------------------
  |  Branch (1260:9): [True: 405, False: 201]
  ------------------
 1261|    405|					need_double = true;
 1262|    405|					dv = lv;
 1263|    405|				}
 1264|    606|				p++;
 1265|    606|				is_time = true;
 1266|    606|				goto set_obj;
 1267|    606|			}
 1268|    432|			break;
 1269|    454|		case 'h':
  ------------------
  |  Branch (1269:3): [True: 454, False: 27.6k]
  ------------------
 1270|    805|		case 'H':
  ------------------
  |  Branch (1270:3): [True: 351, False: 27.7k]
  ------------------
 1271|  1.67k|		case 'd':
  ------------------
  |  Branch (1271:3): [True: 874, False: 27.1k]
  ------------------
 1272|  1.87k|		case 'D':
  ------------------
  |  Branch (1272:3): [True: 194, False: 27.8k]
  ------------------
 1273|  2.10k|		case 'w':
  ------------------
  |  Branch (1273:3): [True: 232, False: 27.8k]
  ------------------
 1274|  2.36k|		case 'W':
  ------------------
  |  Branch (1274:3): [True: 259, False: 27.7k]
  ------------------
 1275|  2.57k|		case 'Y':
  ------------------
  |  Branch (1275:3): [True: 206, False: 27.8k]
  ------------------
 1276|  3.06k|		case 'y':
  ------------------
  |  Branch (1276:3): [True: 498, False: 27.5k]
  ------------------
 1277|  3.06k|			if (allow_time &&
  ------------------
  |  Branch (1277:8): [True: 3.06k, False: 0]
  ------------------
 1278|  3.06k|				ucl_lex_is_number_end(p + 1, end)) {
  ------------------
  |  Branch (1278:5): [True: 2.25k, False: 814]
  ------------------
 1279|  2.25k|				if (!need_double) {
  ------------------
  |  Branch (1279:9): [True: 2.05k, False: 199]
  ------------------
 1280|  2.05k|					need_double = true;
 1281|  2.05k|					dv = lv;
 1282|  2.05k|				}
 1283|  2.25k|				is_time = true;
 1284|  2.25k|				dv *= ucl_lex_time_multiplier(*p);
 1285|  2.25k|				p++;
 1286|  2.25k|				goto set_obj;
 1287|  2.25k|			}
 1288|    814|			break;
 1289|    814|		case '\t':
  ------------------
  |  Branch (1289:3): [True: 197, False: 27.8k]
  ------------------
 1290|    754|		case ' ':
  ------------------
  |  Branch (1290:3): [True: 557, False: 27.4k]
  ------------------
 1291|  2.44k|			while (p < end && ucl_test_character(*p, UCL_CHARACTER_WHITESPACE)) {
  ------------------
  |  Branch (1291:11): [True: 2.44k, False: 0]
  |  Branch (1291:22): [True: 1.68k, False: 754]
  ------------------
 1292|  1.68k|				p++;
 1293|  1.68k|			}
 1294|    754|			if (ucl_lex_is_number_end(p, end))
  ------------------
  |  Branch (1294:8): [True: 0, False: 754]
  ------------------
 1295|      0|				goto set_obj;
 1296|    754|			break;
 1297|  28.0k|		}
 1298|  28.0k|	}
 1299|      0|	else if (endptr == end) {
  ------------------
  |  Branch (1299:11): [True: 0, False: 0]
  ------------------
 1300|       |		/* Just a number at the end of chunk */
 1301|      0|		p = end;
 1302|      0|		goto set_obj;
 1303|      0|	}
 1304|       |
 1305|  15.9k|	*pos = c;
 1306|  15.9k|	return EINVAL;
 1307|       |
 1308|  18.4k|set_obj:
 1309|  18.4k|	if (obj != NULL) {
  ------------------
  |  Branch (1309:6): [True: 18.4k, False: 0]
  ------------------
 1310|  18.4k|		if (allow_double && (need_double || is_time)) {
  ------------------
  |  Branch (1310:7): [True: 17.0k, False: 1.42k]
  |  Branch (1310:24): [True: 5.61k, False: 11.4k]
  |  Branch (1310:39): [True: 0, False: 11.4k]
  ------------------
 1311|  5.61k|			if (!is_time) {
  ------------------
  |  Branch (1311:8): [True: 1.14k, False: 4.46k]
  ------------------
 1312|  1.14k|				obj->type = UCL_FLOAT;
 1313|  1.14k|			}
 1314|  4.46k|			else {
 1315|  4.46k|				obj->type = UCL_TIME;
 1316|  4.46k|			}
 1317|  5.61k|			obj->value.dv = dv;
 1318|  5.61k|		}
 1319|  12.8k|		else {
 1320|  12.8k|			obj->type = UCL_INT;
 1321|  12.8k|			obj->value.iv = lv;
 1322|  12.8k|		}
 1323|  18.4k|	}
 1324|  18.4k|	*pos = p;
 1325|  18.4k|	return 0;
 1326|  28.0k|}
ucl_parser_new:
 3428|  80.4k|{
 3429|  80.4k|	struct ucl_parser *parser;
 3430|       |
 3431|  80.4k|	parser = UCL_ALLOC(sizeof(struct ucl_parser));
  ------------------
  |  |   71|  80.4k|#define UCL_ALLOC(size) malloc(size)
  ------------------
 3432|  80.4k|	if (parser == NULL) {
  ------------------
  |  Branch (3432:6): [True: 0, False: 80.4k]
  ------------------
 3433|      0|		return NULL;
 3434|      0|	}
 3435|       |
 3436|  80.4k|	memset(parser, 0, sizeof(struct ucl_parser));
 3437|       |
 3438|       |	/* Pre-allocate error buffer, so that we can report under ENOMEM */
 3439|  80.4k|	utstring_new_safe(parser->_err_buf, e0);
  ------------------
  |  |  106|  80.4k|#define utstring_new_safe(s, el)                           \
  |  |  107|  80.4k|do {                                                       \
  |  |  108|  80.4k|   s = (UT_string*)calloc(1, sizeof(UT_string));           \
  |  |  109|  80.4k|   if (!s) goto el;                                        \
  |  |  ------------------
  |  |  |  Branch (109:8): [True: 0, False: 80.4k]
  |  |  ------------------
  |  |  110|  80.4k|   else utstring_init_safe(s, el);                         \
  |  |  ------------------
  |  |  |  |   99|  80.4k|#define utstring_init_safe(s, el)                          \
  |  |  |  |  100|  80.4k|do {                                                       \
  |  |  |  |  101|  80.4k|  (s)->n = 0; (s)->i = 0; (s)->d = NULL;                   \
  |  |  |  |  102|  80.4k|  utstring_reserve_safe(s, 128, el);                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   88|  80.4k|#define utstring_reserve_safe(s, amt, el)                  \
  |  |  |  |  |  |   89|  80.4k|do {                                                       \
  |  |  |  |  |  |   90|  80.4k|  if (((s)->n - (s)->i) < (size_t)(amt)) {                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (90:7): [True: 80.4k, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   91|  80.4k|     char *_tp = (char*)realloc((s)->d, (s)->n + amt);     \
  |  |  |  |  |  |   92|  80.4k|     if (_tp == NULL) goto el;                             \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (92:10): [True: 0, False: 80.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   93|  80.4k|     (s)->d = _tp;                                         \
  |  |  |  |  |  |   94|  80.4k|     (s)->n += amt;                                        \
  |  |  |  |  |  |   95|  80.4k|     if ((s)->pd) *((s)->pd) = (s)->d;                     \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (95:10): [True: 0, False: 80.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   96|  80.4k|  }                                                        \
  |  |  |  |  |  |   97|  80.4k|} while(0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (97:9): [Folded, False: 80.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  103|  80.4k|  (s)->d[0] = '\0'; \
  |  |  |  |  104|  80.4k|} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (104:9): [Folded, False: 80.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  111|  80.4k|} while(0)
  |  |  ------------------
  |  |  |  Branch (111:9): [Folded, False: 80.4k]
  |  |  ------------------
  ------------------
 3440|  80.4k|	utstring_reserve_safe(parser->_err_buf, 512, e0);
  ------------------
  |  |   88|  80.4k|#define utstring_reserve_safe(s, amt, el)                  \
  |  |   89|  80.4k|do {                                                       \
  |  |   90|  80.4k|  if (((s)->n - (s)->i) < (size_t)(amt)) {                 \
  |  |  ------------------
  |  |  |  Branch (90:7): [True: 80.4k, False: 0]
  |  |  ------------------
  |  |   91|  80.4k|     char *_tp = (char*)realloc((s)->d, (s)->n + amt);     \
  |  |   92|  80.4k|     if (_tp == NULL) goto el;                             \
  |  |  ------------------
  |  |  |  Branch (92:10): [True: 0, False: 80.4k]
  |  |  ------------------
  |  |   93|  80.4k|     (s)->d = _tp;                                         \
  |  |   94|  80.4k|     (s)->n += amt;                                        \
  |  |   95|  80.4k|     if ((s)->pd) *((s)->pd) = (s)->d;                     \
  |  |  ------------------
  |  |  |  Branch (95:10): [True: 0, False: 80.4k]
  |  |  ------------------
  |  |   96|  80.4k|  }                                                        \
  |  |   97|  80.4k|} while(0)
  |  |  ------------------
  |  |  |  Branch (97:9): [Folded, False: 80.4k]
  |  |  ------------------
  ------------------
 3441|       |
 3442|  80.4k|	UPRM_SAFE(ucl_parser_register_macro, parser, "include", ucl_include_handler, e0);
  ------------------
  |  | 3421|  80.4k|	do {                           \
  |  | 3422|  80.4k|		if (!fn(a, b, c, a))       \
  |  |  ------------------
  |  |  |  Branch (3422:7): [True: 0, False: 80.4k]
  |  |  ------------------
  |  | 3423|  80.4k|			goto el;               \
  |  | 3424|  80.4k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (3424:11): [Folded, False: 80.4k]
  |  |  ------------------
  ------------------
 3443|  80.4k|	UPRM_SAFE(ucl_parser_register_macro, parser, "try_include", ucl_try_include_handler, e0);
  ------------------
  |  | 3421|  80.4k|	do {                           \
  |  | 3422|  80.4k|		if (!fn(a, b, c, a))       \
  |  |  ------------------
  |  |  |  Branch (3422:7): [True: 0, False: 80.4k]
  |  |  ------------------
  |  | 3423|  80.4k|			goto el;               \
  |  | 3424|  80.4k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (3424:11): [Folded, False: 80.4k]
  |  |  ------------------
  ------------------
 3444|  80.4k|	UPRM_SAFE(ucl_parser_register_macro, parser, "includes", ucl_includes_handler, e0);
  ------------------
  |  | 3421|  80.4k|	do {                           \
  |  | 3422|  80.4k|		if (!fn(a, b, c, a))       \
  |  |  ------------------
  |  |  |  Branch (3422:7): [True: 0, False: 80.4k]
  |  |  ------------------
  |  | 3423|  80.4k|			goto el;               \
  |  | 3424|  80.4k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (3424:11): [Folded, False: 80.4k]
  |  |  ------------------
  ------------------
 3445|  80.4k|	UPRM_SAFE(ucl_parser_register_macro, parser, "priority", ucl_priority_handler, e0);
  ------------------
  |  | 3421|  80.4k|	do {                           \
  |  | 3422|  80.4k|		if (!fn(a, b, c, a))       \
  |  |  ------------------
  |  |  |  Branch (3422:7): [True: 0, False: 80.4k]
  |  |  ------------------
  |  | 3423|  80.4k|			goto el;               \
  |  | 3424|  80.4k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (3424:11): [Folded, False: 80.4k]
  |  |  ------------------
  ------------------
 3446|  80.4k|	UPRM_SAFE(ucl_parser_register_macro, parser, "load", ucl_load_handler, e0);
  ------------------
  |  | 3421|  80.4k|	do {                           \
  |  | 3422|  80.4k|		if (!fn(a, b, c, a))       \
  |  |  ------------------
  |  |  |  Branch (3422:7): [True: 0, False: 80.4k]
  |  |  ------------------
  |  | 3423|  80.4k|			goto el;               \
  |  | 3424|  80.4k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (3424:11): [Folded, False: 80.4k]
  |  |  ------------------
  ------------------
 3447|  80.4k|	UPRM_SAFE(ucl_parser_register_context_macro, parser, "inherit", ucl_inherit_handler, e0);
  ------------------
  |  | 3421|  80.4k|	do {                           \
  |  | 3422|  80.4k|		if (!fn(a, b, c, a))       \
  |  |  ------------------
  |  |  |  Branch (3422:7): [True: 0, False: 80.4k]
  |  |  ------------------
  |  | 3423|  80.4k|			goto el;               \
  |  | 3424|  80.4k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (3424:11): [Folded, False: 80.4k]
  |  |  ------------------
  ------------------
 3448|       |
 3449|  80.4k|	parser->flags = flags;
 3450|  80.4k|	parser->includepaths = NULL;
 3451|       |
 3452|       |	/*
 3453|       |	 * Only the depth limit is on by default: it is the one that protects
 3454|       |	 * against stack growth in the recursive walks over the resulting tree,
 3455|       |	 * and 1024 levels is far beyond any legitimate configuration. The
 3456|       |	 * remaining budgets would break large but perfectly valid inputs (maps,
 3457|       |	 * language models, big JSON replies), so callers that deal with
 3458|       |	 * untrusted data opt into them explicitly via ucl_parser_set_limits().
 3459|       |	 */
 3460|  80.4k|	parser->limits.max_depth = UCL_MAX_NESTING;
  ------------------
  |  |  144|  80.4k|#define UCL_MAX_NESTING 1024
  ------------------
 3461|       |
 3462|  80.4k|	if (flags & UCL_PARSER_SAVE_COMMENTS) {
  ------------------
  |  Branch (3462:6): [True: 0, False: 80.4k]
  ------------------
 3463|      0|		parser->comments = ucl_object_typed_new(UCL_OBJECT);
 3464|      0|	}
 3465|       |
 3466|  80.4k|	if (!(flags & UCL_PARSER_NO_FILEVARS)) {
  ------------------
  |  Branch (3466:6): [True: 0, False: 80.4k]
  ------------------
 3467|       |		/* Initial assumption about filevars */
 3468|      0|		ucl_parser_set_filevars(parser, NULL, false);
 3469|      0|	}
 3470|       |
 3471|  80.4k|	return parser;
 3472|      0|e0:
 3473|      0|	ucl_parser_free(parser);
 3474|       |	return NULL;
 3475|  80.4k|}
ucl_parser_register_macro:
 3525|   402k|{
 3526|   402k|	struct ucl_macro *new;
 3527|       |
 3528|   402k|	if (macro == NULL || handler == NULL) {
  ------------------
  |  Branch (3528:6): [True: 0, False: 402k]
  |  Branch (3528:23): [True: 0, False: 402k]
  ------------------
 3529|      0|		return false;
 3530|      0|	}
 3531|       |
 3532|   402k|	new = UCL_ALLOC(sizeof(struct ucl_macro));
  ------------------
  |  |   71|   402k|#define UCL_ALLOC(size) malloc(size)
  ------------------
 3533|   402k|	if (new == NULL) {
  ------------------
  |  Branch (3533:6): [True: 0, False: 402k]
  ------------------
 3534|      0|		return false;
 3535|      0|	}
 3536|       |
 3537|   402k|	memset(new, 0, sizeof(struct ucl_macro));
 3538|   402k|	new->h.handler = handler;
 3539|   402k|	new->name = UCL_STRDUP(macro);
  ------------------
  |  |   87|   402k|#define UCL_STRDUP(str) ucl_strdup_impl(str)
  ------------------
 3540|   402k|	if (new->name == NULL) {
  ------------------
  |  Branch (3540:6): [True: 0, False: 402k]
  ------------------
 3541|      0|		UCL_FREE(sizeof(struct ucl_macro), new);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 3542|      0|		return false;
 3543|      0|	}
 3544|   402k|	new->ud = ud;
 3545|   402k|	HASH_ADD_KEYPTR(hh, parser->macroes, new->name, strlen(new->name), new);
  ------------------
  |  |  174|   402k|#define HASH_ADD_KEYPTR(hh,head,keyptr,keylen_in,add)                            \
  |  |  175|   402k|do {                                                                             \
  |  |  176|   402k| unsigned _ha_bkt;                                                               \
  |  |  177|   402k| (add)->hh.next = NULL;                                                          \
  |  |  178|   402k| (add)->hh.key = (const char*)keyptr;                                                  \
  |  |  179|   402k| (add)->hh.keylen = (unsigned)keylen_in;                                                   \
  |  |  180|   402k| if (!(head)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (180:6): [True: 80.4k, False: 321k]
  |  |  ------------------
  |  |  181|  80.4k|    head = (add);                                                                \
  |  |  182|  80.4k|    (head)->hh.prev = NULL;                                                      \
  |  |  183|  80.4k|    HASH_MAKE_TABLE(hh,head);                                                    \
  |  |  ------------------
  |  |  |  |  142|  80.4k|#define HASH_MAKE_TABLE(hh,head)                                                 \
  |  |  |  |  143|  80.4k|do {                                                                             \
  |  |  |  |  144|  80.4k|  (head)->hh.tbl = (UT_hash_table*)uthash_malloc(                                \
  |  |  |  |  ------------------
  |  |  |  |  |  |   74|  80.4k|#define uthash_malloc(sz) malloc(sz)      /* malloc fcn                      */
  |  |  |  |  ------------------
  |  |  |  |  145|  80.4k|                  sizeof(UT_hash_table));                                        \
  |  |  |  |  146|  80.4k|  if (!((head)->hh.tbl))  { uthash_fatal( "out of memory"); }                    \
  |  |  |  |  ------------------
  |  |  |  |  |  |   71|      0|#define uthash_fatal(msg) exit(-1)        /* fatal error (out of memory,etc) */
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (146:7): [True: 0, False: 80.4k]
  |  |  |  |  ------------------
  |  |  |  |  147|  80.4k|  memset((head)->hh.tbl, 0, sizeof(UT_hash_table));                              \
  |  |  |  |  148|  80.4k|  (head)->hh.tbl->tail = &((head)->hh);                                          \
  |  |  |  |  149|  80.4k|  (head)->hh.tbl->num_buckets = HASH_INITIAL_NUM_BUCKETS;                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |   88|  80.4k|#define HASH_INITIAL_NUM_BUCKETS 32      /* initial number of buckets        */
  |  |  |  |  ------------------
  |  |  |  |  150|  80.4k|  (head)->hh.tbl->log2_num_buckets = HASH_INITIAL_NUM_BUCKETS_LOG2;              \
  |  |  |  |  ------------------
  |  |  |  |  |  |   89|  80.4k|#define HASH_INITIAL_NUM_BUCKETS_LOG2 5  /* lg2 of initial number of buckets */
  |  |  |  |  ------------------
  |  |  |  |  151|  80.4k|  (head)->hh.tbl->hho = (char*)(&(head)->hh) - (char*)(head);                    \
  |  |  |  |  152|  80.4k|  (head)->hh.tbl->buckets = (UT_hash_bucket*)uthash_malloc(                      \
  |  |  |  |  ------------------
  |  |  |  |  |  |   74|  80.4k|#define uthash_malloc(sz) malloc(sz)      /* malloc fcn                      */
  |  |  |  |  ------------------
  |  |  |  |  153|  80.4k|          HASH_INITIAL_NUM_BUCKETS*sizeof(struct UT_hash_bucket));               \
  |  |  |  |  154|  80.4k|  if (! (head)->hh.tbl->buckets) { uthash_fatal( "out of memory"); }             \
  |  |  |  |  ------------------
  |  |  |  |  |  |   71|      0|#define uthash_fatal(msg) exit(-1)        /* fatal error (out of memory,etc) */
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (154:7): [True: 0, False: 80.4k]
  |  |  |  |  ------------------
  |  |  |  |  155|  80.4k|  memset((head)->hh.tbl->buckets, 0,                                             \
  |  |  |  |  156|  80.4k|          HASH_INITIAL_NUM_BUCKETS*sizeof(struct UT_hash_bucket));               \
  |  |  |  |  ------------------
  |  |  |  |  |  |   88|  80.4k|#define HASH_INITIAL_NUM_BUCKETS 32      /* initial number of buckets        */
  |  |  |  |  ------------------
  |  |  |  |  157|  80.4k|  HASH_BLOOM_MAKE((head)->hh.tbl);                                               \
  |  |  |  |  158|  80.4k|  (head)->hh.tbl->signature = HASH_SIGNATURE;                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  |  673|  80.4k|#define HASH_SIGNATURE 0xa0111fe1
  |  |  |  |  ------------------
  |  |  |  |  159|  80.4k|} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (159:9): [Folded, False: 80.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  184|   321k| } else {                                                                        \
  |  |  185|   321k|    (head)->hh.tbl->tail->next = (add);                                          \
  |  |  186|   321k|    (add)->hh.prev = ELMT_FROM_HH((head)->hh.tbl, (head)->hh.tbl->tail);         \
  |  |  ------------------
  |  |  |  |   93|   321k|#define ELMT_FROM_HH(tbl,hhp) ((void*)(((char*)(hhp)) - ((tbl)->hho)))
  |  |  ------------------
  |  |  187|   321k|    (head)->hh.tbl->tail = &((add)->hh);                                         \
  |  |  188|   321k| }                                                                               \
  |  |  189|   402k| (head)->hh.tbl->num_items++;                                                    \
  |  |  190|   402k| (add)->hh.tbl = (head)->hh.tbl;                                                 \
  |  |  191|   402k| HASH_FCN(keyptr,keylen_in, (head)->hh.tbl->num_buckets,                         \
  |  |  ------------------
  |  |  |  |  352|   402k|#define HASH_FCN HASH_XX
  |  |  |  |  ------------------
  |  |  |  |  |  |  357|   402k|#define HASH_XX(key,keylen,num_bkts,hashv,bkt)                                  \
  |  |  |  |  |  |  358|   402k|do {                                                                             \
  |  |  |  |  |  |  359|   402k|  hashv = mum_hash (key, keylen, XX_HASH_PRIME);                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  355|   402k|#define XX_HASH_PRIME 2654435761U
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  360|   402k|  bkt = (hashv) & (num_bkts-1);                                                  \
  |  |  |  |  |  |  361|   402k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (361:10): [Folded, False: 402k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  192|   402k|         (add)->hh.hashv, _ha_bkt);                                              \
  |  |  193|   402k| HASH_ADD_TO_BKT((head)->hh.tbl->buckets[_ha_bkt],&(add)->hh);                   \
  |  |  ------------------
  |  |  |  |  383|   402k|#define HASH_ADD_TO_BKT(head,addhh)                                              \
  |  |  |  |  384|   402k|do {                                                                             \
  |  |  |  |  385|   402k| head.count++;                                                                   \
  |  |  |  |  386|   402k| (addhh)->hh_next = head.hh_head;                                                \
  |  |  |  |  387|   402k| (addhh)->hh_prev = NULL;                                                        \
  |  |  |  |  388|   402k| if (head.hh_head) { (head).hh_head->hh_prev = (addhh); }                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (388:6): [True: 0, False: 402k]
  |  |  |  |  ------------------
  |  |  |  |  389|   402k| (head).hh_head=addhh;                                                           \
  |  |  |  |  390|   402k| if (head.count >= ((head.expand_mult+1) * HASH_BKT_CAPACITY_THRESH)             \
  |  |  |  |  ------------------
  |  |  |  |  |  |   90|   402k|#define HASH_BKT_CAPACITY_THRESH 10      /* expand when bucket count reaches */
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (390:6): [True: 0, False: 402k]
  |  |  |  |  ------------------
  |  |  |  |  391|   402k|     && (addhh)->tbl->noexpand != 1) {                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (391:9): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  392|      0|       HASH_EXPAND_BUCKETS((addhh)->tbl);                                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  438|      0|#define HASH_EXPAND_BUCKETS(tbl)                                                 \
  |  |  |  |  |  |  439|      0|do {                                                                             \
  |  |  |  |  |  |  440|      0|    unsigned _he_bkt;                                                            \
  |  |  |  |  |  |  441|      0|    unsigned _he_bkt_i;                                                          \
  |  |  |  |  |  |  442|      0|    struct UT_hash_handle *_he_thh, *_he_hh_nxt;                                 \
  |  |  |  |  |  |  443|      0|    UT_hash_bucket *_he_new_buckets, *_he_newbkt;                                \
  |  |  |  |  |  |  444|      0|    _he_new_buckets = (UT_hash_bucket*)uthash_malloc(                            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   74|      0|#define uthash_malloc(sz) malloc(sz)      /* malloc fcn                      */
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  445|      0|             2 * tbl->num_buckets * sizeof(struct UT_hash_bucket));              \
  |  |  |  |  |  |  446|      0|    if (!_he_new_buckets) { uthash_fatal( "out of memory"); }                    \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   71|      0|#define uthash_fatal(msg) exit(-1)        /* fatal error (out of memory,etc) */
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (446:9): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  447|      0|    memset(_he_new_buckets, 0,                                                   \
  |  |  |  |  |  |  448|      0|            2 * tbl->num_buckets * sizeof(struct UT_hash_bucket));               \
  |  |  |  |  |  |  449|      0|    tbl->ideal_chain_maxlen =                                                    \
  |  |  |  |  |  |  450|      0|       (tbl->num_items >> (tbl->log2_num_buckets+1)) +                           \
  |  |  |  |  |  |  451|      0|       ((tbl->num_items & ((tbl->num_buckets*2)-1)) ? 1 : 0);                    \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (451:9): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  452|      0|    tbl->nonideal_items = 0;                                                     \
  |  |  |  |  |  |  453|      0|    for(_he_bkt_i = 0; _he_bkt_i < tbl->num_buckets; _he_bkt_i++)                \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (453:24): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  454|      0|    {                                                                            \
  |  |  |  |  |  |  455|      0|        _he_thh = tbl->buckets[ _he_bkt_i ].hh_head;                             \
  |  |  |  |  |  |  456|      0|        while (_he_thh) {                                                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (456:16): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  457|      0|           _he_hh_nxt = _he_thh->hh_next;                                        \
  |  |  |  |  |  |  458|      0|           HASH_TO_BKT( _he_thh->hashv, tbl->num_buckets*2, _he_bkt);            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  199|      0|#define HASH_TO_BKT( hashv, num_bkts, bkt )                                      \
  |  |  |  |  |  |  |  |  200|      0|do {                                                                             \
  |  |  |  |  |  |  |  |  201|      0|  bkt = ((hashv) & ((num_bkts) - 1));                                            \
  |  |  |  |  |  |  |  |  202|      0|} while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (202:9): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  459|      0|           _he_newbkt = &(_he_new_buckets[ _he_bkt ]);                           \
  |  |  |  |  |  |  460|      0|           if (++(_he_newbkt->count) > tbl->ideal_chain_maxlen) {                \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (460:16): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  461|      0|             tbl->nonideal_items++;                                              \
  |  |  |  |  |  |  462|      0|             _he_newbkt->expand_mult = _he_newbkt->count /                       \
  |  |  |  |  |  |  463|      0|                                        tbl->ideal_chain_maxlen;                 \
  |  |  |  |  |  |  464|      0|           }                                                                     \
  |  |  |  |  |  |  465|      0|           _he_thh->hh_prev = NULL;                                              \
  |  |  |  |  |  |  466|      0|           _he_thh->hh_next = _he_newbkt->hh_head;                               \
  |  |  |  |  |  |  467|      0|           if (_he_newbkt->hh_head) _he_newbkt->hh_head->hh_prev =               \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (467:16): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  468|      0|                _he_thh;                                                         \
  |  |  |  |  |  |  469|      0|           _he_newbkt->hh_head = _he_thh;                                        \
  |  |  |  |  |  |  470|      0|           _he_thh = _he_hh_nxt;                                                 \
  |  |  |  |  |  |  471|      0|        }                                                                        \
  |  |  |  |  |  |  472|      0|    }                                                                            \
  |  |  |  |  |  |  473|      0|    uthash_free( tbl->buckets, tbl->num_buckets*sizeof(struct UT_hash_bucket) ); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   77|      0|#define uthash_free(ptr,sz) free(ptr)     /* free fcn                        */
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|      0|    tbl->num_buckets *= 2;                                                       \
  |  |  |  |  |  |  475|      0|    tbl->log2_num_buckets++;                                                     \
  |  |  |  |  |  |  476|      0|    tbl->buckets = _he_new_buckets;                                              \
  |  |  |  |  |  |  477|      0|    tbl->ineff_expands = (tbl->nonideal_items > (tbl->num_items >> 1)) ?         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (477:26): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  478|      0|        (tbl->ineff_expands+1) : 0;                                              \
  |  |  |  |  |  |  479|      0|    if (tbl->ineff_expands > 1) {                                                \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (479:9): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  480|      0|        tbl->noexpand=1;                                                         \
  |  |  |  |  |  |  481|      0|        uthash_noexpand_fyi(tbl);                                                \
  |  |  |  |  |  |  482|      0|    }                                                                            \
  |  |  |  |  |  |  483|      0|    uthash_expand_fyi(tbl);                                                      \
  |  |  |  |  |  |  484|      0|} while(0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (484:9): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  393|      0| }                                                                               \
  |  |  |  |  394|   402k|} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (394:9): [Folded, False: 402k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  194|   402k| HASH_BLOOM_ADD((head)->hh.tbl,(add)->hh.hashv);                                 \
  |  |  195|   402k| HASH_EMIT_KEY(hh,head,keyptr,keylen_in);                                        \
  |  |  196|   402k| HASH_FSCK(hh,head);                                                             \
  |  |  197|   402k|} while(0)
  |  |  ------------------
  |  |  |  Branch (197:9): [Folded, False: 402k]
  |  |  ------------------
  ------------------
 3546|   402k|	return true;
 3547|   402k|}
ucl_parser_register_context_macro:
 3551|  80.4k|{
 3552|  80.4k|	struct ucl_macro *new;
 3553|       |
 3554|  80.4k|	if (macro == NULL || handler == NULL) {
  ------------------
  |  Branch (3554:6): [True: 0, False: 80.4k]
  |  Branch (3554:23): [True: 0, False: 80.4k]
  ------------------
 3555|      0|		return false;
 3556|      0|	}
 3557|       |
 3558|  80.4k|	new = UCL_ALLOC(sizeof(struct ucl_macro));
  ------------------
  |  |   71|  80.4k|#define UCL_ALLOC(size) malloc(size)
  ------------------
 3559|  80.4k|	if (new == NULL) {
  ------------------
  |  Branch (3559:6): [True: 0, False: 80.4k]
  ------------------
 3560|      0|		return false;
 3561|      0|	}
 3562|       |
 3563|  80.4k|	memset(new, 0, sizeof(struct ucl_macro));
 3564|  80.4k|	new->h.context_handler = handler;
 3565|  80.4k|	new->name = UCL_STRDUP(macro);
  ------------------
  |  |   87|  80.4k|#define UCL_STRDUP(str) ucl_strdup_impl(str)
  ------------------
 3566|  80.4k|	if (new->name == NULL) {
  ------------------
  |  Branch (3566:6): [True: 0, False: 80.4k]
  ------------------
 3567|      0|		UCL_FREE(sizeof(struct ucl_macro), new);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 3568|      0|		return false;
 3569|      0|	}
 3570|  80.4k|	new->ud = ud;
 3571|  80.4k|	new->is_context = true;
 3572|  80.4k|	HASH_ADD_KEYPTR(hh, parser->macroes, new->name, strlen(new->name), new);
  ------------------
  |  |  174|  80.4k|#define HASH_ADD_KEYPTR(hh,head,keyptr,keylen_in,add)                            \
  |  |  175|  80.4k|do {                                                                             \
  |  |  176|  80.4k| unsigned _ha_bkt;                                                               \
  |  |  177|  80.4k| (add)->hh.next = NULL;                                                          \
  |  |  178|  80.4k| (add)->hh.key = (const char*)keyptr;                                                  \
  |  |  179|  80.4k| (add)->hh.keylen = (unsigned)keylen_in;                                                   \
  |  |  180|  80.4k| if (!(head)) {                                                                  \
  |  |  ------------------
  |  |  |  Branch (180:6): [True: 0, False: 80.4k]
  |  |  ------------------
  |  |  181|      0|    head = (add);                                                                \
  |  |  182|      0|    (head)->hh.prev = NULL;                                                      \
  |  |  183|      0|    HASH_MAKE_TABLE(hh,head);                                                    \
  |  |  ------------------
  |  |  |  |  142|      0|#define HASH_MAKE_TABLE(hh,head)                                                 \
  |  |  |  |  143|      0|do {                                                                             \
  |  |  |  |  144|      0|  (head)->hh.tbl = (UT_hash_table*)uthash_malloc(                                \
  |  |  |  |  ------------------
  |  |  |  |  |  |   74|      0|#define uthash_malloc(sz) malloc(sz)      /* malloc fcn                      */
  |  |  |  |  ------------------
  |  |  |  |  145|      0|                  sizeof(UT_hash_table));                                        \
  |  |  |  |  146|      0|  if (!((head)->hh.tbl))  { uthash_fatal( "out of memory"); }                    \
  |  |  |  |  ------------------
  |  |  |  |  |  |   71|      0|#define uthash_fatal(msg) exit(-1)        /* fatal error (out of memory,etc) */
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (146:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  147|      0|  memset((head)->hh.tbl, 0, sizeof(UT_hash_table));                              \
  |  |  |  |  148|      0|  (head)->hh.tbl->tail = &((head)->hh);                                          \
  |  |  |  |  149|      0|  (head)->hh.tbl->num_buckets = HASH_INITIAL_NUM_BUCKETS;                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |   88|      0|#define HASH_INITIAL_NUM_BUCKETS 32      /* initial number of buckets        */
  |  |  |  |  ------------------
  |  |  |  |  150|      0|  (head)->hh.tbl->log2_num_buckets = HASH_INITIAL_NUM_BUCKETS_LOG2;              \
  |  |  |  |  ------------------
  |  |  |  |  |  |   89|      0|#define HASH_INITIAL_NUM_BUCKETS_LOG2 5  /* lg2 of initial number of buckets */
  |  |  |  |  ------------------
  |  |  |  |  151|      0|  (head)->hh.tbl->hho = (char*)(&(head)->hh) - (char*)(head);                    \
  |  |  |  |  152|      0|  (head)->hh.tbl->buckets = (UT_hash_bucket*)uthash_malloc(                      \
  |  |  |  |  ------------------
  |  |  |  |  |  |   74|      0|#define uthash_malloc(sz) malloc(sz)      /* malloc fcn                      */
  |  |  |  |  ------------------
  |  |  |  |  153|      0|          HASH_INITIAL_NUM_BUCKETS*sizeof(struct UT_hash_bucket));               \
  |  |  |  |  154|      0|  if (! (head)->hh.tbl->buckets) { uthash_fatal( "out of memory"); }             \
  |  |  |  |  ------------------
  |  |  |  |  |  |   71|      0|#define uthash_fatal(msg) exit(-1)        /* fatal error (out of memory,etc) */
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (154:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  155|      0|  memset((head)->hh.tbl->buckets, 0,                                             \
  |  |  |  |  156|      0|          HASH_INITIAL_NUM_BUCKETS*sizeof(struct UT_hash_bucket));               \
  |  |  |  |  ------------------
  |  |  |  |  |  |   88|      0|#define HASH_INITIAL_NUM_BUCKETS 32      /* initial number of buckets        */
  |  |  |  |  ------------------
  |  |  |  |  157|      0|  HASH_BLOOM_MAKE((head)->hh.tbl);                                               \
  |  |  |  |  158|      0|  (head)->hh.tbl->signature = HASH_SIGNATURE;                                    \
  |  |  |  |  ------------------
  |  |  |  |  |  |  673|      0|#define HASH_SIGNATURE 0xa0111fe1
  |  |  |  |  ------------------
  |  |  |  |  159|      0|} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (159:9): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  184|  80.4k| } else {                                                                        \
  |  |  185|  80.4k|    (head)->hh.tbl->tail->next = (add);                                          \
  |  |  186|  80.4k|    (add)->hh.prev = ELMT_FROM_HH((head)->hh.tbl, (head)->hh.tbl->tail);         \
  |  |  ------------------
  |  |  |  |   93|  80.4k|#define ELMT_FROM_HH(tbl,hhp) ((void*)(((char*)(hhp)) - ((tbl)->hho)))
  |  |  ------------------
  |  |  187|  80.4k|    (head)->hh.tbl->tail = &((add)->hh);                                         \
  |  |  188|  80.4k| }                                                                               \
  |  |  189|  80.4k| (head)->hh.tbl->num_items++;                                                    \
  |  |  190|  80.4k| (add)->hh.tbl = (head)->hh.tbl;                                                 \
  |  |  191|  80.4k| HASH_FCN(keyptr,keylen_in, (head)->hh.tbl->num_buckets,                         \
  |  |  ------------------
  |  |  |  |  352|  80.4k|#define HASH_FCN HASH_XX
  |  |  |  |  ------------------
  |  |  |  |  |  |  357|  80.4k|#define HASH_XX(key,keylen,num_bkts,hashv,bkt)                                  \
  |  |  |  |  |  |  358|  80.4k|do {                                                                             \
  |  |  |  |  |  |  359|  80.4k|  hashv = mum_hash (key, keylen, XX_HASH_PRIME);                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  355|  80.4k|#define XX_HASH_PRIME 2654435761U
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  360|  80.4k|  bkt = (hashv) & (num_bkts-1);                                                  \
  |  |  |  |  |  |  361|  80.4k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (361:10): [Folded, False: 80.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  192|  80.4k|         (add)->hh.hashv, _ha_bkt);                                              \
  |  |  193|  80.4k| HASH_ADD_TO_BKT((head)->hh.tbl->buckets[_ha_bkt],&(add)->hh);                   \
  |  |  ------------------
  |  |  |  |  383|  80.4k|#define HASH_ADD_TO_BKT(head,addhh)                                              \
  |  |  |  |  384|  80.4k|do {                                                                             \
  |  |  |  |  385|  80.4k| head.count++;                                                                   \
  |  |  |  |  386|  80.4k| (addhh)->hh_next = head.hh_head;                                                \
  |  |  |  |  387|  80.4k| (addhh)->hh_prev = NULL;                                                        \
  |  |  |  |  388|  80.4k| if (head.hh_head) { (head).hh_head->hh_prev = (addhh); }                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (388:6): [True: 0, False: 80.4k]
  |  |  |  |  ------------------
  |  |  |  |  389|  80.4k| (head).hh_head=addhh;                                                           \
  |  |  |  |  390|  80.4k| if (head.count >= ((head.expand_mult+1) * HASH_BKT_CAPACITY_THRESH)             \
  |  |  |  |  ------------------
  |  |  |  |  |  |   90|  80.4k|#define HASH_BKT_CAPACITY_THRESH 10      /* expand when bucket count reaches */
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (390:6): [True: 0, False: 80.4k]
  |  |  |  |  ------------------
  |  |  |  |  391|  80.4k|     && (addhh)->tbl->noexpand != 1) {                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (391:9): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  392|      0|       HASH_EXPAND_BUCKETS((addhh)->tbl);                                        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  438|      0|#define HASH_EXPAND_BUCKETS(tbl)                                                 \
  |  |  |  |  |  |  439|      0|do {                                                                             \
  |  |  |  |  |  |  440|      0|    unsigned _he_bkt;                                                            \
  |  |  |  |  |  |  441|      0|    unsigned _he_bkt_i;                                                          \
  |  |  |  |  |  |  442|      0|    struct UT_hash_handle *_he_thh, *_he_hh_nxt;                                 \
  |  |  |  |  |  |  443|      0|    UT_hash_bucket *_he_new_buckets, *_he_newbkt;                                \
  |  |  |  |  |  |  444|      0|    _he_new_buckets = (UT_hash_bucket*)uthash_malloc(                            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   74|      0|#define uthash_malloc(sz) malloc(sz)      /* malloc fcn                      */
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  445|      0|             2 * tbl->num_buckets * sizeof(struct UT_hash_bucket));              \
  |  |  |  |  |  |  446|      0|    if (!_he_new_buckets) { uthash_fatal( "out of memory"); }                    \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   71|      0|#define uthash_fatal(msg) exit(-1)        /* fatal error (out of memory,etc) */
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (446:9): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  447|      0|    memset(_he_new_buckets, 0,                                                   \
  |  |  |  |  |  |  448|      0|            2 * tbl->num_buckets * sizeof(struct UT_hash_bucket));               \
  |  |  |  |  |  |  449|      0|    tbl->ideal_chain_maxlen =                                                    \
  |  |  |  |  |  |  450|      0|       (tbl->num_items >> (tbl->log2_num_buckets+1)) +                           \
  |  |  |  |  |  |  451|      0|       ((tbl->num_items & ((tbl->num_buckets*2)-1)) ? 1 : 0);                    \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (451:9): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  452|      0|    tbl->nonideal_items = 0;                                                     \
  |  |  |  |  |  |  453|      0|    for(_he_bkt_i = 0; _he_bkt_i < tbl->num_buckets; _he_bkt_i++)                \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (453:24): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  454|      0|    {                                                                            \
  |  |  |  |  |  |  455|      0|        _he_thh = tbl->buckets[ _he_bkt_i ].hh_head;                             \
  |  |  |  |  |  |  456|      0|        while (_he_thh) {                                                        \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (456:16): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  457|      0|           _he_hh_nxt = _he_thh->hh_next;                                        \
  |  |  |  |  |  |  458|      0|           HASH_TO_BKT( _he_thh->hashv, tbl->num_buckets*2, _he_bkt);            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  199|      0|#define HASH_TO_BKT( hashv, num_bkts, bkt )                                      \
  |  |  |  |  |  |  |  |  200|      0|do {                                                                             \
  |  |  |  |  |  |  |  |  201|      0|  bkt = ((hashv) & ((num_bkts) - 1));                                            \
  |  |  |  |  |  |  |  |  202|      0|} while(0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (202:9): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  459|      0|           _he_newbkt = &(_he_new_buckets[ _he_bkt ]);                           \
  |  |  |  |  |  |  460|      0|           if (++(_he_newbkt->count) > tbl->ideal_chain_maxlen) {                \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (460:16): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  461|      0|             tbl->nonideal_items++;                                              \
  |  |  |  |  |  |  462|      0|             _he_newbkt->expand_mult = _he_newbkt->count /                       \
  |  |  |  |  |  |  463|      0|                                        tbl->ideal_chain_maxlen;                 \
  |  |  |  |  |  |  464|      0|           }                                                                     \
  |  |  |  |  |  |  465|      0|           _he_thh->hh_prev = NULL;                                              \
  |  |  |  |  |  |  466|      0|           _he_thh->hh_next = _he_newbkt->hh_head;                               \
  |  |  |  |  |  |  467|      0|           if (_he_newbkt->hh_head) _he_newbkt->hh_head->hh_prev =               \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (467:16): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  468|      0|                _he_thh;                                                         \
  |  |  |  |  |  |  469|      0|           _he_newbkt->hh_head = _he_thh;                                        \
  |  |  |  |  |  |  470|      0|           _he_thh = _he_hh_nxt;                                                 \
  |  |  |  |  |  |  471|      0|        }                                                                        \
  |  |  |  |  |  |  472|      0|    }                                                                            \
  |  |  |  |  |  |  473|      0|    uthash_free( tbl->buckets, tbl->num_buckets*sizeof(struct UT_hash_bucket) ); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   77|      0|#define uthash_free(ptr,sz) free(ptr)     /* free fcn                        */
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  474|      0|    tbl->num_buckets *= 2;                                                       \
  |  |  |  |  |  |  475|      0|    tbl->log2_num_buckets++;                                                     \
  |  |  |  |  |  |  476|      0|    tbl->buckets = _he_new_buckets;                                              \
  |  |  |  |  |  |  477|      0|    tbl->ineff_expands = (tbl->nonideal_items > (tbl->num_items >> 1)) ?         \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (477:26): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  478|      0|        (tbl->ineff_expands+1) : 0;                                              \
  |  |  |  |  |  |  479|      0|    if (tbl->ineff_expands > 1) {                                                \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (479:9): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  480|      0|        tbl->noexpand=1;                                                         \
  |  |  |  |  |  |  481|      0|        uthash_noexpand_fyi(tbl);                                                \
  |  |  |  |  |  |  482|      0|    }                                                                            \
  |  |  |  |  |  |  483|      0|    uthash_expand_fyi(tbl);                                                      \
  |  |  |  |  |  |  484|      0|} while(0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (484:9): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  393|      0| }                                                                               \
  |  |  |  |  394|  80.4k|} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (394:9): [Folded, False: 80.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  194|  80.4k| HASH_BLOOM_ADD((head)->hh.tbl,(add)->hh.hashv);                                 \
  |  |  195|  80.4k| HASH_EMIT_KEY(hh,head,keyptr,keylen_in);                                        \
  |  |  196|  80.4k| HASH_FSCK(hh,head);                                                             \
  |  |  197|  80.4k|} while(0)
  |  |  ------------------
  |  |  |  Branch (197:9): [Folded, False: 80.4k]
  |  |  ------------------
  ------------------
 3573|  80.4k|	return true;
 3574|  80.4k|}
ucl_parser_register_variable:
 3578|  29.4k|{
 3579|  29.4k|	struct ucl_variable *new = NULL, *cur;
 3580|       |
 3581|  29.4k|	if (var == NULL) {
  ------------------
  |  Branch (3581:6): [True: 0, False: 29.4k]
  ------------------
 3582|      0|		return;
 3583|      0|	}
 3584|       |
 3585|       |	/* Find whether a variable already exists */
 3586|  29.4k|	LL_FOREACH(parser->variables, cur)
  ------------------
  |  |  416|  29.4k|    LL_FOREACH2(head,el,next)
  |  |  ------------------
  |  |  |  |  419|  44.1k|    for ((el) = (head); el; (el) = (el)->next)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (419:25): [True: 14.7k, False: 29.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3587|  14.7k|	{
 3588|  14.7k|		if (strcmp(cur->var, var) == 0) {
  ------------------
  |  Branch (3588:7): [True: 0, False: 14.7k]
  ------------------
 3589|      0|			new = cur;
 3590|      0|			break;
 3591|      0|		}
 3592|  14.7k|	}
 3593|       |
 3594|  29.4k|	if (value == NULL) {
  ------------------
  |  Branch (3594:6): [True: 0, False: 29.4k]
  ------------------
 3595|       |
 3596|      0|		if (new != NULL) {
  ------------------
  |  Branch (3596:7): [True: 0, False: 0]
  ------------------
 3597|       |			/* Remove variable */
 3598|      0|			DL_DELETE(parser->variables, new);
  ------------------
  |  |  706|      0|    DL_DELETE2(head,del,prev,next)
  |  |  ------------------
  |  |  |  |  708|      0|#define DL_DELETE2(head,del,prev,next)                                                         \
  |  |  |  |  709|      0|do {                                                                                           \
  |  |  |  |  710|      0|  assert((head) != NULL);                                                                      \
  |  |  |  |  711|      0|  assert((del)->prev != NULL);                                                                 \
  |  |  |  |  712|      0|  if ((del)->prev == (del)) {                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (712:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  713|      0|      (head)=NULL;                                                                             \
  |  |  |  |  714|      0|  } else if ((del) == (head)) {                                                                \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (714:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  715|      0|      assert((del)->next != NULL);                                                             \
  |  |  |  |  716|      0|      (del)->next->prev = (del)->prev;                                                         \
  |  |  |  |  717|      0|      (head) = (del)->next;                                                                    \
  |  |  |  |  718|      0|  } else {                                                                                     \
  |  |  |  |  719|      0|      (del)->prev->next = (del)->next;                                                         \
  |  |  |  |  720|      0|      if ((del)->next) {                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (720:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  721|      0|          (del)->next->prev = (del)->prev;                                                     \
  |  |  |  |  722|      0|      } else {                                                                                 \
  |  |  |  |  723|      0|          (head)->prev = (del)->prev;                                                          \
  |  |  |  |  724|      0|      }                                                                                        \
  |  |  |  |  725|      0|  }                                                                                            \
  |  |  |  |  726|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (726:10): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3598:4): [True: 0, False: 0]
  |  Branch (3598:4): [True: 0, False: 0]
  |  Branch (3598:4): [True: 0, False: 0]
  ------------------
 3599|      0|			UCL_FREE(new->var_len + 1, new->var);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 3600|      0|			UCL_FREE(new->value_len + 1, new->value);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 3601|      0|			UCL_FREE(sizeof(struct ucl_variable), new);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 3602|      0|		}
 3603|      0|		else {
 3604|       |			/* Do nothing */
 3605|      0|			return;
 3606|      0|		}
 3607|      0|	}
 3608|  29.4k|	else {
 3609|  29.4k|		if (new == NULL) {
  ------------------
  |  Branch (3609:7): [True: 29.4k, False: 0]
  ------------------
 3610|  29.4k|			new = UCL_ALLOC(sizeof(struct ucl_variable));
  ------------------
  |  |   71|  29.4k|#define UCL_ALLOC(size) malloc(size)
  ------------------
 3611|  29.4k|			if (new == NULL) {
  ------------------
  |  Branch (3611:8): [True: 0, False: 29.4k]
  ------------------
 3612|      0|				return;
 3613|      0|			}
 3614|  29.4k|			memset(new, 0, sizeof(struct ucl_variable));
 3615|  29.4k|			new->var = UCL_STRDUP(var);
  ------------------
  |  |   87|  29.4k|#define UCL_STRDUP(str) ucl_strdup_impl(str)
  ------------------
 3616|  29.4k|			new->var_len = strlen(var);
 3617|  29.4k|			new->value = UCL_STRDUP(value);
  ------------------
  |  |   87|  29.4k|#define UCL_STRDUP(str) ucl_strdup_impl(str)
  ------------------
 3618|  29.4k|			new->value_len = strlen(value);
 3619|       |
 3620|  29.4k|			DL_APPEND(parser->variables, new);
  ------------------
  |  |  639|  29.4k|    DL_APPEND2(head,add,prev,next)
  |  |  ------------------
  |  |  |  |  641|  29.4k|#define DL_APPEND2(head,add,prev,next)                                                         \
  |  |  |  |  642|  29.4k|do {                                                                                           \
  |  |  |  |  643|  29.4k|  if (head) {                                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (643:7): [True: 14.7k, False: 14.7k]
  |  |  |  |  ------------------
  |  |  |  |  644|  14.7k|      (add)->prev = (head)->prev;                                                              \
  |  |  |  |  645|  14.7k|      (head)->prev->next = (add);                                                              \
  |  |  |  |  646|  14.7k|      (head)->prev = (add);                                                                    \
  |  |  |  |  647|  14.7k|      (add)->next = NULL;                                                                      \
  |  |  |  |  648|  14.7k|  } else {                                                                                     \
  |  |  |  |  649|  14.7k|      (head)=(add);                                                                            \
  |  |  |  |  650|  14.7k|      (head)->prev = (head);                                                                   \
  |  |  |  |  651|  14.7k|      (head)->next = NULL;                                                                     \
  |  |  |  |  652|  14.7k|  }                                                                                            \
  |  |  |  |  653|  29.4k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (653:10): [Folded, False: 29.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3621|  29.4k|		}
 3622|      0|		else {
 3623|      0|			UCL_FREE(new->value_len + 1, new->value);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 3624|      0|			new->value = UCL_STRDUP(value);
  ------------------
  |  |   87|      0|#define UCL_STRDUP(str) ucl_strdup_impl(str)
  ------------------
 3625|      0|			new->value_len = strlen(value);
 3626|      0|		}
 3627|  29.4k|	}
 3628|  29.4k|}
ucl_parser_add_chunk_full:
 3640|  95.0k|{
 3641|  95.0k|	struct ucl_chunk *chunk;
 3642|  95.0k|	struct ucl_parser_special_handler *special_handler;
 3643|       |
 3644|  95.0k|	if (parser == NULL) {
  ------------------
  |  Branch (3644:6): [True: 0, False: 95.0k]
  ------------------
 3645|      0|		return false;
 3646|      0|	}
 3647|       |
 3648|  95.0k|	if (data == NULL && len != 0) {
  ------------------
  |  Branch (3648:6): [True: 244, False: 94.7k]
  |  Branch (3648:22): [True: 0, False: 244]
  ------------------
 3649|      0|		ucl_create_err(&parser->err, "invalid chunk added");
 3650|      0|		return false;
 3651|      0|	}
 3652|       |
 3653|  95.0k|	if (parser->state != UCL_STATE_ERROR) {
  ------------------
  |  Branch (3653:6): [True: 95.0k, False: 0]
  ------------------
 3654|  95.0k|		chunk = UCL_ALLOC(sizeof(struct ucl_chunk));
  ------------------
  |  |   71|  95.0k|#define UCL_ALLOC(size) malloc(size)
  ------------------
 3655|  95.0k|		if (chunk == NULL) {
  ------------------
  |  Branch (3655:7): [True: 0, False: 95.0k]
  ------------------
 3656|      0|			ucl_create_err(&parser->err, "cannot allocate chunk structure");
 3657|      0|			return false;
 3658|      0|		}
 3659|       |
 3660|  95.0k|		memset(chunk, 0, sizeof(*chunk));
 3661|       |
 3662|       |		/* Apply all matching handlers from the first to the last */
 3663|  95.0k|		LL_FOREACH(parser->special_handlers, special_handler)
  ------------------
  |  |  416|  95.0k|    LL_FOREACH2(head,el,next)
  |  |  ------------------
  |  |  |  |  419|  95.0k|    for ((el) = (head); el; (el) = (el)->next)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (419:25): [True: 0, False: 95.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3664|      0|		{
 3665|      0|			if ((special_handler->flags & UCL_SPECIAL_HANDLER_PREPROCESS_ALL) ||
  ------------------
  |  Branch (3665:8): [True: 0, False: 0]
  ------------------
 3666|      0|				(len >= special_handler->magic_len &&
  ------------------
  |  Branch (3666:6): [True: 0, False: 0]
  ------------------
 3667|      0|				 memcmp(data, special_handler->magic, special_handler->magic_len) == 0)) {
  ------------------
  |  Branch (3667:6): [True: 0, False: 0]
  ------------------
 3668|      0|				unsigned char *ndata = NULL;
 3669|      0|				size_t nlen = 0;
 3670|       |
 3671|      0|				if (!special_handler->handler(parser, data, len, &ndata, &nlen,
  ------------------
  |  Branch (3671:9): [True: 0, False: 0]
  ------------------
 3672|      0|											  special_handler->user_data)) {
 3673|       |					/* Also releases the outputs of the previous handlers */
 3674|      0|					ucl_chunk_free(chunk);
 3675|      0|					ucl_create_err(&parser->err, "call for external handler failed");
 3676|       |
 3677|      0|					return false;
 3678|      0|				}
 3679|       |
 3680|      0|				struct ucl_parser_special_handler_chain *nchain;
 3681|      0|				nchain = UCL_ALLOC(sizeof(*nchain));
  ------------------
  |  |   71|      0|#define UCL_ALLOC(size) malloc(size)
  ------------------
 3682|      0|				if (nchain == NULL) {
  ------------------
  |  Branch (3682:9): [True: 0, False: 0]
  ------------------
 3683|       |					/* Release ndata the way ucl_chunk_free would have */
 3684|      0|					if (special_handler->free_function) {
  ------------------
  |  Branch (3684:10): [True: 0, False: 0]
  ------------------
 3685|      0|						special_handler->free_function(ndata, nlen,
 3686|      0|													   special_handler->user_data);
 3687|      0|					}
 3688|      0|					else {
 3689|      0|						UCL_FREE(nlen, ndata);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 3690|      0|					}
 3691|      0|					ucl_chunk_free(chunk);
 3692|      0|					ucl_create_err(&parser->err,
 3693|      0|								   "cannot allocate memory for special handler chain");
 3694|       |
 3695|      0|					return false;
 3696|      0|				}
 3697|      0|				nchain->begin = ndata;
 3698|      0|				nchain->len = nlen;
 3699|      0|				nchain->special_handler = special_handler;
 3700|       |
 3701|       |				/* Free order is reversed */
 3702|      0|				LL_PREPEND(chunk->special_handlers, nchain);
  ------------------
  |  |  317|      0|    LL_PREPEND2(head,add,next)
  |  |  ------------------
  |  |  |  |  319|      0|#define LL_PREPEND2(head,add,next)                                                             \
  |  |  |  |  320|      0|do {                                                                                           \
  |  |  |  |  321|      0|  (add)->next = (head);                                                                        \
  |  |  |  |  322|      0|  (head) = (add);                                                                              \
  |  |  |  |  323|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:10): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3703|       |
 3704|      0|				data = ndata;
 3705|      0|				len = nlen;
 3706|      0|			}
 3707|      0|		}
 3708|       |
 3709|  95.0k|		if (parse_type == UCL_PARSE_AUTO && len > 0) {
  ------------------
  |  Branch (3709:7): [True: 0, False: 95.0k]
  |  Branch (3709:39): [True: 0, False: 0]
  ------------------
 3710|       |			/* We need to detect parse type by the first symbol */
 3711|      0|			if (len >= 3 && data[0] == 0xd9 && data[1] == 0xd9 &&
  ------------------
  |  Branch (3711:8): [True: 0, False: 0]
  |  Branch (3711:20): [True: 0, False: 0]
  |  Branch (3711:39): [True: 0, False: 0]
  ------------------
 3712|      0|				data[2] == 0xf7) {
  ------------------
  |  Branch (3712:5): [True: 0, False: 0]
  ------------------
 3713|       |				/*
 3714|       |				 * The self-described cbor tag, 55799. Cbor and msgpack are
 3715|       |				 * otherwise indistinguishable from their first byte - both
 3716|       |				 * spend 0x80 to 0xbf on short containers and strings - so
 3717|       |				 * this prefix is the only thing that tells them apart, and
 3718|       |				 * cbor without it has to be requested explicitly.
 3719|       |				 */
 3720|      0|				parse_type = UCL_PARSE_CBOR;
 3721|      0|			}
 3722|      0|			else if ((*data & 0x80) == 0x80) {
  ------------------
  |  Branch (3722:13): [True: 0, False: 0]
  ------------------
 3723|      0|				parse_type = UCL_PARSE_MSGPACK;
 3724|      0|			}
 3725|      0|			else if (*data == '(') {
  ------------------
  |  Branch (3725:13): [True: 0, False: 0]
  ------------------
 3726|      0|				parse_type = UCL_PARSE_CSEXP;
 3727|      0|			}
 3728|      0|			else {
 3729|      0|				parse_type = UCL_PARSE_UCL;
 3730|      0|			}
 3731|      0|		}
 3732|       |
 3733|  95.0k|		chunk->begin = data;
 3734|  95.0k|		chunk->remain = len;
 3735|  95.0k|		chunk->pos = chunk->begin;
 3736|  95.0k|		chunk->end = chunk->begin + len;
 3737|  95.0k|		chunk->line = 1;
 3738|  95.0k|		chunk->column = 0;
 3739|  95.0k|		chunk->priority = priority;
 3740|  95.0k|		chunk->strategy = strat;
 3741|  95.0k|		chunk->parse_type = parse_type;
 3742|       |
 3743|  95.0k|		if (parser->cur_file) {
  ------------------
  |  Branch (3743:7): [True: 14.5k, False: 80.4k]
  ------------------
 3744|  14.5k|			chunk->fname = UCL_STRDUP(parser->cur_file);
  ------------------
  |  |   87|  14.5k|#define UCL_STRDUP(str) ucl_strdup_impl(str)
  ------------------
 3745|  14.5k|		}
 3746|       |
 3747|  95.0k|		LL_PREPEND(parser->chunks, chunk);
  ------------------
  |  |  317|  95.0k|    LL_PREPEND2(head,add,next)
  |  |  ------------------
  |  |  |  |  319|  95.0k|#define LL_PREPEND2(head,add,next)                                                             \
  |  |  |  |  320|  95.0k|do {                                                                                           \
  |  |  |  |  321|  95.0k|  (add)->next = (head);                                                                        \
  |  |  |  |  322|  95.0k|  (head) = (add);                                                                              \
  |  |  |  |  323|  95.0k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:10): [Folded, False: 95.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3748|  95.0k|		parser->recursion++;
 3749|       |
 3750|  95.0k|		if (parser->recursion > UCL_MAX_RECURSION) {
  ------------------
  |  |  143|  95.0k|#define UCL_MAX_RECURSION 16
  ------------------
  |  Branch (3750:7): [True: 0, False: 95.0k]
  ------------------
 3751|      0|			ucl_create_err(&parser->err, "maximum include nesting limit is reached: %d",
 3752|      0|						   parser->recursion);
 3753|      0|			return false;
 3754|      0|		}
 3755|       |
 3756|  95.0k|		if (len > 0) {
  ------------------
  |  Branch (3756:7): [True: 94.2k, False: 709]
  ------------------
 3757|       |			/*
 3758|       |			 * An empty first chunk exposes an object without starting a parse.
 3759|       |			 * Replace that placeholder so the first nonempty chunk determines
 3760|       |			 * the root type and priority, and accounts for the root's cost.
 3761|       |			 * Real roots, including completed empty containers, stay intact.
 3762|       |			 */
 3763|  94.2k|			if (parser->top_obj_is_placeholder) {
  ------------------
  |  Branch (3763:8): [True: 0, False: 94.2k]
  ------------------
 3764|      0|				ucl_object_unref(parser->top_obj);
 3765|      0|				parser->top_obj = NULL;
 3766|      0|				parser->top_obj_is_placeholder = false;
 3767|      0|			}
 3768|       |
 3769|       |			/* Need to parse something */
 3770|  94.2k|			switch (parse_type) {
 3771|      0|			default:
  ------------------
  |  Branch (3771:4): [True: 0, False: 94.2k]
  ------------------
 3772|  94.2k|			case UCL_PARSE_UCL:
  ------------------
  |  Branch (3772:4): [True: 94.2k, False: 0]
  ------------------
 3773|  94.2k|				return ucl_state_machine(parser);
 3774|      0|			case UCL_PARSE_MSGPACK:
  ------------------
  |  Branch (3774:4): [True: 0, False: 94.2k]
  ------------------
 3775|      0|				return ucl_parse_msgpack(parser);
 3776|      0|			case UCL_PARSE_CBOR:
  ------------------
  |  Branch (3776:4): [True: 0, False: 94.2k]
  ------------------
 3777|      0|				return ucl_parse_cbor(parser);
 3778|      0|			case UCL_PARSE_CSEXP:
  ------------------
  |  Branch (3778:4): [True: 0, False: 94.2k]
  ------------------
 3779|      0|				return ucl_parse_csexp(parser);
 3780|  94.2k|			}
 3781|  94.2k|		}
 3782|    709|		else {
 3783|       |			/* Just add empty chunk and go forward */
 3784|    709|			if (parser->top_obj == NULL) {
  ------------------
  |  Branch (3784:8): [True: 465, False: 244]
  ------------------
 3785|       |				/*
 3786|       |				 * In case of empty object, create one to indicate that we've
 3787|       |				 * read something
 3788|       |				 */
 3789|    465|				parser->top_obj = ucl_object_new_full(UCL_OBJECT, priority);
 3790|    465|				parser->top_obj_is_placeholder = true;
 3791|    465|			}
 3792|       |
 3793|    709|			return true;
 3794|    709|		}
 3795|  95.0k|	}
 3796|       |
 3797|      0|	ucl_create_err(&parser->err, "a parser is in an invalid state");
 3798|       |
 3799|       |	return false;
 3800|  95.0k|}
ucl_parser_add_chunk:
 3816|  72.7k|{
 3817|  72.7k|	if (parser == NULL) {
  ------------------
  |  Branch (3817:6): [True: 0, False: 72.7k]
  ------------------
 3818|      0|		return false;
 3819|      0|	}
 3820|       |
 3821|  72.7k|	return ucl_parser_add_chunk_full(parser, data, len,
 3822|  72.7k|									 parser->default_priority, UCL_DUPLICATE_APPEND, UCL_PARSE_UCL);
 3823|  72.7k|}
ucl_set_include_path:
 3953|  1.14k|{
 3954|  1.14k|	if (parser == NULL || paths == NULL || paths->type != UCL_ARRAY) {
  ------------------
  |  Branch (3954:6): [True: 0, False: 1.14k]
  |  Branch (3954:24): [True: 0, False: 1.14k]
  |  Branch (3954:41): [True: 0, False: 1.14k]
  ------------------
 3955|      0|		return false;
 3956|      0|	}
 3957|       |
 3958|  1.14k|	if (parser->includepaths == NULL) {
  ------------------
  |  Branch (3958:6): [True: 902, False: 246]
  ------------------
 3959|    902|		parser->includepaths = ucl_object_copy(paths);
 3960|    902|	}
 3961|    246|	else {
 3962|    246|		ucl_object_unref(parser->includepaths);
 3963|    246|		parser->includepaths = ucl_object_copy(paths);
 3964|    246|	}
 3965|       |
 3966|  1.14k|	if (parser->includepaths == NULL) {
  ------------------
  |  Branch (3966:6): [True: 0, False: 1.14k]
  ------------------
 3967|      0|		return false;
 3968|      0|	}
 3969|       |
 3970|  1.14k|	return true;
 3971|  1.14k|}
ucl_parser.c:ucl_set_err:
   94|  58.7k|{
   95|  58.7k|	const char *fmt_string, *filename;
   96|  58.7k|	struct ucl_chunk *chunk = parser->chunks;
   97|       |
   98|  58.7k|	if (parser->cur_file) {
  ------------------
  |  Branch (98:6): [True: 337, False: 58.4k]
  ------------------
   99|    337|		filename = parser->cur_file;
  100|    337|	}
  101|  58.4k|	else {
  102|  58.4k|		filename = "<unknown>";
  103|  58.4k|	}
  104|       |
  105|  58.7k|	if (chunk->pos < chunk->end) {
  ------------------
  |  Branch (105:6): [True: 49.3k, False: 9.42k]
  ------------------
  106|  49.3k|		if (isgraph(*chunk->pos)) {
  ------------------
  |  Branch (106:7): [True: 35.3k, False: 14.0k]
  ------------------
  107|  35.3k|			fmt_string = "error while parsing %s: "
  108|  35.3k|						 "line: %d, column: %d - '%s', character: '%c'";
  109|  35.3k|		}
  110|  14.0k|		else {
  111|  14.0k|			fmt_string = "error while parsing %s: "
  112|  14.0k|						 "line: %d, column: %d - '%s', character: '0x%02x'";
  113|  14.0k|		}
  114|  49.3k|		ucl_fill_err_buf(parser, fmt_string,
  115|  49.3k|						 filename, chunk->line, chunk->column,
  116|  49.3k|						 str, *chunk->pos);
  117|  49.3k|	}
  118|  9.42k|	else {
  119|  9.42k|		ucl_fill_err_buf(parser, "error while parsing %s: at the end of chunk: %s",
  120|  9.42k|						 filename, str);
  121|  9.42k|	}
  122|       |
  123|  58.7k|	parser->err_code = code;
  124|  58.7k|	parser->state = UCL_STATE_ERROR;
  125|  58.7k|}
ucl_parser.c:ucl_fill_err_buf:
   71|  58.7k|{
   72|  58.7k|	UT_string *eb = parser->_err_buf;
   73|  58.7k|	va_list ap;
   74|  58.7k|	int len;
   75|       |
   76|  58.7k|	if (parser->err != NULL) {
  ------------------
  |  Branch (76:6): [True: 23.8k, False: 34.9k]
  ------------------
   77|  23.8k|		return;
   78|  23.8k|	}
   79|       |
   80|  58.7k|	va_start(ap, fmt);
   81|  34.9k|	len = vsnprintf(eb->d, eb->n, fmt, ap);
   82|  34.9k|	va_end(ap);
   83|       |
   84|  34.9k|	if (len < 0) {
  ------------------
  |  Branch (84:6): [True: 0, False: 34.9k]
  ------------------
   85|      0|		eb->d[0] = '\0';
   86|      0|		len = 0;
   87|      0|	}
   88|  34.9k|	eb->i = ((size_t) len < eb->n) ? (size_t) len : eb->n - 1;
  ------------------
  |  Branch (88:10): [True: 34.9k, False: 0]
  ------------------
   89|  34.9k|	parser->err = eb;
   90|  34.9k|}
ucl_parser.c:ucl_lex_is_number_end:
  405|  53.6k|{
  406|  56.1k|	while (p < end && ucl_test_character(*p, UCL_CHARACTER_WHITESPACE)) {
  ------------------
  |  Branch (406:9): [True: 55.0k, False: 1.12k]
  |  Branch (406:20): [True: 2.52k, False: 52.5k]
  ------------------
  407|  2.52k|		p++;
  408|  2.52k|	}
  409|       |
  410|  53.6k|	return p >= end || ucl_lex_is_atom_end(*p) ||
  ------------------
  |  Branch (410:9): [True: 1.12k, False: 52.5k]
  |  Branch (410:21): [True: 16.9k, False: 35.5k]
  ------------------
  411|  35.5k|		   (end - p >= 2 && ucl_lex_is_comment(p[0], p[1]));
  ------------------
  |  Branch (411:7): [True: 33.9k, False: 1.54k]
  |  Branch (411:23): [True: 377, False: 33.6k]
  ------------------
  412|  53.6k|}
ucl_parser.c:ucl_lex_is_atom_end:
  381|  11.2M|{
  382|  11.2M|	return ucl_test_character(c, UCL_CHARACTER_VALUE_END);
  383|  11.2M|}
ucl_parser.c:ucl_lex_is_comment:
  387|  13.2M|{
  388|  13.2M|	if (c1 == '/') {
  ------------------
  |  Branch (388:6): [True: 897k, False: 12.4M]
  ------------------
  389|   897k|		if (c2 == '*') {
  ------------------
  |  Branch (389:7): [True: 5.42k, False: 891k]
  ------------------
  390|  5.42k|			return true;
  391|  5.42k|		}
  392|   897k|	}
  393|  12.4M|	else if (c1 == '#') {
  ------------------
  |  Branch (393:11): [True: 65.8k, False: 12.3M]
  ------------------
  394|  65.8k|		return true;
  395|  65.8k|	}
  396|  13.2M|	return false;
  397|  13.2M|}
ucl_parser.c:ucl_lex_num_multiplier:
  285|  6.95k|{
  286|  6.95k|	const struct {
  287|  6.95k|		char c;
  288|  6.95k|		long mult_normal;
  289|  6.95k|		long mult_bytes;
  290|  6.95k|	} multipliers[] = {
  291|  6.95k|		{'m', 1000 * 1000, 1024 * 1024},
  292|  6.95k|		{'k', 1000, 1024},
  293|  6.95k|		{'g', 1000 * 1000 * 1000, 1024 * 1024 * 1024}};
  294|  6.95k|	int i;
  295|       |
  296|  14.2k|	for (i = 0; i < 3; i++) {
  ------------------
  |  Branch (296:14): [True: 14.2k, False: 0]
  ------------------
  297|  14.2k|		if (tolower(c) == multipliers[i].c) {
  ------------------
  |  Branch (297:7): [True: 0, False: 0]
  |  Branch (297:7): [True: 0, False: 0]
  |  Branch (297:7): [Folded, False: 14.2k]
  |  Branch (297:7): [True: 6.95k, False: 7.27k]
  ------------------
  298|  6.95k|			if (is_bytes) {
  ------------------
  |  Branch (298:8): [True: 1.53k, False: 5.42k]
  ------------------
  299|  1.53k|				return multipliers[i].mult_bytes;
  300|  1.53k|			}
  301|  5.42k|			return multipliers[i].mult_normal;
  302|  6.95k|		}
  303|  14.2k|	}
  304|       |
  305|      0|	return 1;
  306|  6.95k|}
ucl_parser.c:ucl_lex_double_to_int:
  335|    639|{
  336|       |	/* -2^63 and 2^63 are exact doubles, INT64_MAX is not */
  337|    639|	if (!(dv >= -9223372036854775808.0 && dv < 9223372036854775808.0)) {
  ------------------
  |  Branch (337:8): [True: 605, False: 34]
  |  Branch (337:40): [True: 525, False: 80]
  ------------------
  338|    114|		return false;
  339|    114|	}
  340|       |
  341|    525|	*lv = (int64_t) dv;
  342|       |
  343|       |	return true;
  344|    639|}
ucl_parser.c:ucl_lex_num_mul:
  317|  5.15k|{
  318|  5.15k|	if (*lv > INT64_MAX / mult || *lv < INT64_MIN / mult) {
  ------------------
  |  Branch (318:6): [True: 993, False: 4.16k]
  |  Branch (318:32): [True: 473, False: 3.69k]
  ------------------
  319|  1.46k|		return false;
  320|  1.46k|	}
  321|       |
  322|  3.69k|	*lv *= mult;
  323|       |
  324|       |	return true;
  325|  5.15k|}
ucl_parser.c:ucl_lex_time_multiplier:
  353|  2.25k|{
  354|  2.25k|	const struct {
  355|  2.25k|		char c;
  356|  2.25k|		double mult;
  357|  2.25k|	} multipliers[] = {
  358|  2.25k|		{'m', 60},
  359|  2.25k|		{'h', 60 * 60},
  360|  2.25k|		{'d', 60 * 60 * 24},
  361|  2.25k|		{'w', 60 * 60 * 24 * 7},
  362|  2.25k|		{'y', 60 * 60 * 24 * 365}};
  363|  2.25k|	int i;
  364|       |
  365|  7.43k|	for (i = 0; i < 5; i++) {
  ------------------
  |  Branch (365:14): [True: 7.43k, False: 0]
  ------------------
  366|  7.43k|		if (tolower(c) == multipliers[i].c) {
  ------------------
  |  Branch (366:7): [True: 0, False: 0]
  |  Branch (366:7): [True: 0, False: 0]
  |  Branch (366:7): [Folded, False: 7.43k]
  |  Branch (366:7): [True: 2.25k, False: 5.18k]
  ------------------
  367|  2.25k|			return multipliers[i].mult;
  368|  2.25k|		}
  369|  7.43k|	}
  370|       |
  371|      0|	return 1;
  372|  2.25k|}
ucl_parser.c:ucl_parser_add_object_element:
 1601|   311k|{
 1602|   311k|	ucl_hash_t *container;
 1603|   311k|	ucl_object_t *tobj = NULL, *cur, *target;
 1604|   311k|	char errmsg[256];
 1605|       |
 1606|   311k|	if (parser->pending_merge != NULL) {
  ------------------
  |  Branch (1606:6): [True: 0, False: 311k]
  ------------------
 1607|       |		/*
 1608|       |		 * Something else has been added before the value of the pending key,
 1609|       |		 * as ucl_parser_insert_chunk can do: leave that key merged
 1610|       |		 */
 1611|      0|		ucl_object_unref(parser->pending_merge);
 1612|      0|		parser->pending_merge = NULL;
 1613|      0|	}
 1614|       |
 1615|   311k|	container = parser->stack->obj->value.ov;
 1616|       |
 1617|   311k|	DL_FOREACH(parser->stack->obj, cur)
  ------------------
  |  |  738|   311k|    DL_FOREACH2(head,el,next)
  |  |  ------------------
  |  |  |  |  741|   479k|    for ((el) = (head); el; (el) = (el)->next)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (741:25): [True: 312k, False: 167k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1618|   312k|	{
 1619|   312k|		if (cur->type == UCL_OBJECT) {
  ------------------
  |  Branch (1619:7): [True: 312k, False: 466]
  ------------------
 1620|   312k|			tobj = __DECONST(ucl_object_t *, ucl_hash_search_obj(cur->value.ov, nobj));
  ------------------
  |  |  135|   312k|#define __DECONST(type, var) ((type) (uintptr_t) (const void *) (var))
  ------------------
 1621|       |
 1622|   312k|			if (tobj != NULL) {
  ------------------
  |  Branch (1622:8): [True: 144k, False: 167k]
  ------------------
 1623|       |				/*
 1624|       |				 * Check if we have found an object in the same container.
 1625|       |				 * If not, we should probably ignore it as we cannot replace it
 1626|       |				 * effectively and we definitely should not unref it.
 1627|       |				 */
 1628|   144k|				if (cur->value.ov != container) {
  ------------------
  |  Branch (1628:9): [True: 265, False: 144k]
  ------------------
 1629|    265|					tobj = NULL;
 1630|    265|					continue;
 1631|    265|				}
 1632|   144k|				break;
 1633|   144k|			}
 1634|   312k|		}
 1635|   312k|	}
 1636|       |
 1637|       |
 1638|   311k|	if (tobj == NULL) {
  ------------------
  |  Branch (1638:6): [True: 167k, False: 144k]
  ------------------
 1639|   167k|		container = ucl_hash_insert_object(container, nobj,
 1640|   167k|										   parser->flags & UCL_PARSER_KEY_LOWERCASE);
 1641|   167k|		if (container == NULL) {
  ------------------
  |  Branch (1641:7): [True: 0, False: 167k]
  ------------------
 1642|      0|			ucl_set_err(parser, UCL_EINTERNAL, "cannot allocate memory for an object",
 1643|      0|						&parser->err);
 1644|      0|			return false;
 1645|      0|		}
 1646|   167k|		nobj->prev = nobj;
 1647|   167k|		nobj->next = NULL;
 1648|   167k|		parser->stack->obj->len++;
 1649|   167k|	}
 1650|   144k|	else {
 1651|   144k|		unsigned priold = ucl_object_get_priority(tobj),
 1652|   144k|				 prinew = ucl_object_get_priority(nobj);
 1653|   144k|		switch (strategy) {
  ------------------
  |  Branch (1653:11): [True: 144k, False: 0]
  ------------------
 1654|       |
 1655|   132k|		case UCL_DUPLICATE_APPEND:
  ------------------
  |  Branch (1655:3): [True: 132k, False: 11.9k]
  ------------------
 1656|       |			/*
 1657|       |			 * The logic here is the following:
 1658|       |			 *
 1659|       |			 * - if we have two objects with the same priority, then we form an
 1660|       |			 * implicit or explicit array
 1661|       |			 * - if a new object has bigger priority, then we overwrite an old one
 1662|       |			 * - if a new object has lower priority, then we ignore it
 1663|       |			 */
 1664|       |			/* Special case for inherited objects */
 1665|   132k|			if (tobj->flags & UCL_OBJECT_INHERITED) {
  ------------------
  |  Branch (1665:8): [True: 0, False: 132k]
  ------------------
 1666|      0|				prinew = priold + 1;
 1667|      0|			}
 1668|       |
 1669|   132k|			if (priold == prinew) {
  ------------------
  |  Branch (1669:8): [True: 126k, False: 5.34k]
  ------------------
 1670|   126k|				if (!ucl_parser_append_elt(parser, container, tobj, nobj)) {
  ------------------
  |  Branch (1670:9): [True: 0, False: 126k]
  ------------------
 1671|      0|					return false;
 1672|      0|				}
 1673|   126k|			}
 1674|  5.34k|			else if (priold > prinew) {
  ------------------
  |  Branch (1674:13): [True: 4.36k, False: 984]
  ------------------
 1675|       |				/*
 1676|       |				 * We add this new object to a list of trash objects just to ensure
 1677|       |				 * that it won't come to any real object
 1678|       |				 * XXX: rather inefficient approach
 1679|       |				 */
 1680|  4.36k|				DL_APPEND(parser->trash_objs, nobj);
  ------------------
  |  |  639|  4.36k|    DL_APPEND2(head,add,prev,next)
  |  |  ------------------
  |  |  |  |  641|  4.36k|#define DL_APPEND2(head,add,prev,next)                                                         \
  |  |  |  |  642|  4.36k|do {                                                                                           \
  |  |  |  |  643|  4.36k|  if (head) {                                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (643:7): [True: 3.93k, False: 431]
  |  |  |  |  ------------------
  |  |  |  |  644|  3.93k|      (add)->prev = (head)->prev;                                                              \
  |  |  |  |  645|  3.93k|      (head)->prev->next = (add);                                                              \
  |  |  |  |  646|  3.93k|      (head)->prev = (add);                                                                    \
  |  |  |  |  647|  3.93k|      (add)->next = NULL;                                                                      \
  |  |  |  |  648|  3.93k|  } else {                                                                                     \
  |  |  |  |  649|    431|      (head)=(add);                                                                            \
  |  |  |  |  650|    431|      (head)->prev = (head);                                                                   \
  |  |  |  |  651|    431|      (head)->next = NULL;                                                                     \
  |  |  |  |  652|    431|  }                                                                                            \
  |  |  |  |  653|  4.36k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (653:10): [Folded, False: 4.36k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1681|  4.36k|			}
 1682|    984|			else {
 1683|    984|				ucl_parser_replace_elt(parser, container, tobj, nobj);
 1684|    984|			}
 1685|       |
 1686|   132k|			break;
 1687|       |
 1688|   132k|		case UCL_DUPLICATE_REWRITE:
  ------------------
  |  Branch (1688:3): [True: 10.9k, False: 133k]
  ------------------
 1689|       |			/* We just rewrite old values regardless of priority */
 1690|  10.9k|			ucl_parser_replace_elt(parser, container, tobj, nobj);
 1691|       |
 1692|  10.9k|			break;
 1693|       |
 1694|     67|		case UCL_DUPLICATE_ERROR:
  ------------------
  |  Branch (1694:3): [True: 67, False: 144k]
  ------------------
 1695|     67|			snprintf(errmsg, sizeof(errmsg),
 1696|     67|					 "duplicate element for key '%.*s' found",
 1697|     67|					 (int) (nobj->keylen < sizeof(errmsg) ? nobj->keylen : sizeof(errmsg)),
  ------------------
  |  Branch (1697:14): [True: 67, False: 0]
  ------------------
 1698|     67|					 nobj->key);
 1699|     67|			ucl_set_err(parser, UCL_EMERGE, errmsg, &parser->err);
 1700|       |			/* nobj is in no container, and the caller releases it */
 1701|     67|			return false;
 1702|       |
 1703|    916|		case UCL_DUPLICATE_MERGE:
  ------------------
  |  Branch (1703:3): [True: 916, False: 143k]
  ------------------
 1704|       |			/*
 1705|       |			 * Here we do have some old object so we just push it on top of objects stack
 1706|       |			 * Check priority and then perform the merge on the remaining objects
 1707|       |			 *
 1708|       |			 * Only a container can be merged into a container: a scalar would
 1709|       |			 * be parsed over the old one, retyping it in place and leaking its
 1710|       |			 * elements, so it is subject to priorities like any other scalar.
 1711|       |			 * A container of the other kind still gets the old one, so that
 1712|       |			 * opening it reports the mismatch.
 1713|       |			 *
 1714|       |			 * Without implicit arrays, the values of a repeated key are kept
 1715|       |			 * in an explicit array instead: merge into the first of them, as
 1716|       |			 * an implicit array is merged into its head.
 1717|       |			 */
 1718|    916|			target = tobj;
 1719|       |
 1720|    916|			if ((parser->flags & UCL_PARSER_NO_IMPLICIT_ARRAYS) &&
  ------------------
  |  Branch (1720:8): [True: 0, False: 916]
  ------------------
 1721|      0|				tobj->type == UCL_ARRAY &&
  ------------------
  |  Branch (1721:5): [True: 0, False: 0]
  ------------------
 1722|      0|				(tobj->flags & UCL_OBJECT_MULTIVALUE)) {
  ------------------
  |  Branch (1722:5): [True: 0, False: 0]
  ------------------
 1723|      0|				target = __DECONST(ucl_object_t *, ucl_array_head(tobj));
  ------------------
  |  |  135|      0|#define __DECONST(type, var) ((type) (uintptr_t) (const void *) (var))
  ------------------
 1724|      0|			}
 1725|       |
 1726|    916|			if (target != NULL &&
  ------------------
  |  Branch (1726:8): [True: 916, False: 0]
  ------------------
 1727|    916|				(target->type == UCL_OBJECT || target->type == UCL_ARRAY) &&
  ------------------
  |  Branch (1727:6): [True: 0, False: 916]
  |  Branch (1727:36): [True: 4, False: 912]
  ------------------
 1728|      4|				kind != UCL_VALUE_SCALAR) {
  ------------------
  |  Branch (1728:5): [True: 2, False: 2]
  ------------------
 1729|      2|				if (kind == UCL_VALUE_UNKNOWN) {
  ------------------
  |  Branch (1729:9): [True: 2, False: 0]
  ------------------
 1730|       |					/*
 1731|       |					 * Take the old container for the value until
 1732|       |					 * ucl_parse_value sees it start, keeping the key to add
 1733|       |					 * it as a scalar if it is one. Its comment goes to the
 1734|       |					 * object it ends up in.
 1735|       |					 */
 1736|      2|					parser->pending_merge = nobj;
 1737|      2|					parser->cur_obj = target;
 1738|       |
 1739|      2|					return true;
 1740|      2|				}
 1741|       |
 1742|      0|				ucl_object_unref(nobj);
 1743|      0|				nobj = target;
 1744|      0|			}
 1745|    914|			else if (priold == prinew) {
  ------------------
  |  Branch (1745:13): [True: 861, False: 53]
  ------------------
 1746|    861|				if (!ucl_parser_append_elt(parser, container, tobj, nobj)) {
  ------------------
  |  Branch (1746:9): [True: 0, False: 861]
  ------------------
 1747|      0|					return false;
 1748|      0|				}
 1749|    861|			}
 1750|     53|			else if (priold > prinew) {
  ------------------
  |  Branch (1750:13): [True: 33, False: 20]
  ------------------
 1751|       |				/*
 1752|       |				 * We add this new object to a list of trash objects just to ensure
 1753|       |				 * that it won't come to any real object
 1754|       |				 * XXX: rather inefficient approach
 1755|       |				 */
 1756|     33|				DL_APPEND(parser->trash_objs, nobj);
  ------------------
  |  |  639|     33|    DL_APPEND2(head,add,prev,next)
  |  |  ------------------
  |  |  |  |  641|     33|#define DL_APPEND2(head,add,prev,next)                                                         \
  |  |  |  |  642|     33|do {                                                                                           \
  |  |  |  |  643|     33|  if (head) {                                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (643:7): [True: 32, False: 1]
  |  |  |  |  ------------------
  |  |  |  |  644|     32|      (add)->prev = (head)->prev;                                                              \
  |  |  |  |  645|     32|      (head)->prev->next = (add);                                                              \
  |  |  |  |  646|     32|      (head)->prev = (add);                                                                    \
  |  |  |  |  647|     32|      (add)->next = NULL;                                                                      \
  |  |  |  |  648|     32|  } else {                                                                                     \
  |  |  |  |  649|      1|      (head)=(add);                                                                            \
  |  |  |  |  650|      1|      (head)->prev = (head);                                                                   \
  |  |  |  |  651|      1|      (head)->next = NULL;                                                                     \
  |  |  |  |  652|      1|  }                                                                                            \
  |  |  |  |  653|     33|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (653:10): [Folded, False: 33]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1757|     33|			}
 1758|     20|			else {
 1759|     20|				ucl_parser_replace_elt(parser, container, tobj, nobj);
 1760|     20|			}
 1761|    914|			break;
 1762|   144k|		}
 1763|   144k|	}
 1764|       |
 1765|   311k|	parser->stack->obj->value.ov = container;
 1766|   311k|	parser->cur_obj = nobj;
 1767|   311k|	ucl_attach_comment(parser, nobj, false);
 1768|       |
 1769|       |	return true;
 1770|   311k|}
ucl_parser.c:ucl_parser_append_elt:
 1496|   127k|{
 1497|   127k|	ucl_object_t *nobj;
 1498|       |
 1499|   127k|	if ((parser->flags & UCL_PARSER_NO_IMPLICIT_ARRAYS) == 0) {
  ------------------
  |  Branch (1499:6): [True: 127k, False: 0]
  ------------------
 1500|       |		/* Implicit array */
 1501|   127k|		top->flags |= UCL_OBJECT_MULTIVALUE;
 1502|   127k|		DL_APPEND(top, elt);
  ------------------
  |  |  639|   127k|    DL_APPEND2(head,add,prev,next)
  |  |  ------------------
  |  |  |  |  641|   127k|#define DL_APPEND2(head,add,prev,next)                                                         \
  |  |  |  |  642|   127k|do {                                                                                           \
  |  |  |  |  643|   127k|  if (head) {                                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (643:7): [True: 127k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  644|   127k|      (add)->prev = (head)->prev;                                                              \
  |  |  |  |  645|   127k|      (head)->prev->next = (add);                                                              \
  |  |  |  |  646|   127k|      (head)->prev = (add);                                                                    \
  |  |  |  |  647|   127k|      (add)->next = NULL;                                                                      \
  |  |  |  |  648|   127k|  } else {                                                                                     \
  |  |  |  |  649|      0|      (head)=(add);                                                                            \
  |  |  |  |  650|      0|      (head)->prev = (head);                                                                   \
  |  |  |  |  651|      0|      (head)->next = NULL;                                                                     \
  |  |  |  |  652|      0|  }                                                                                            \
  |  |  |  |  653|   127k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (653:10): [Folded, False: 127k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1503|   127k|		parser->stack->obj->len++;
 1504|   127k|	}
 1505|      0|	else {
 1506|      0|		if ((top->flags & UCL_OBJECT_MULTIVALUE) != 0) {
  ------------------
  |  Branch (1506:7): [True: 0, False: 0]
  ------------------
 1507|       |			/* Just add to the explicit array */
 1508|      0|			if (!ucl_array_append(top, elt)) {
  ------------------
  |  Branch (1508:8): [True: 0, False: 0]
  ------------------
 1509|      0|				ucl_set_err(parser, UCL_EINTERNAL,
 1510|      0|							"cannot allocate memory for an array",
 1511|      0|							&parser->err);
 1512|       |
 1513|      0|				return false;
 1514|      0|			}
 1515|      0|		}
 1516|      0|		else {
 1517|       |			/*
 1518|       |			 * Converting to an explicit array costs one more element, so it has
 1519|       |			 * to be charged as well: otherwise a run of duplicate keys grows the
 1520|       |			 * tree without ever touching the budget.
 1521|       |			 */
 1522|      0|			if (!ucl_parser_account_node(parser)) {
  ------------------
  |  Branch (1522:8): [True: 0, False: 0]
  ------------------
 1523|      0|				return false;
 1524|      0|			}
 1525|       |
 1526|       |			/*
 1527|       |			 * The array stands for its values in priority checks, as the head
 1528|       |			 * of an implicit array does. With priority 0, a later value of the
 1529|       |			 * key replaced them all whenever their priority was above 0.
 1530|       |			 */
 1531|      0|			nobj = ucl_object_new_full(UCL_ARRAY, ucl_object_get_priority(top));
 1532|       |
 1533|      0|			if (nobj == NULL) {
  ------------------
  |  Branch (1533:8): [True: 0, False: 0]
  ------------------
 1534|      0|				ucl_set_err(parser, UCL_EINTERNAL,
 1535|      0|							"cannot allocate memory for an object",
 1536|      0|							&parser->err);
 1537|       |
 1538|      0|				return false;
 1539|      0|			}
 1540|       |
 1541|      0|			nobj->key = top->key;
 1542|      0|			nobj->keylen = top->keylen;
 1543|      0|			nobj->flags |= UCL_OBJECT_MULTIVALUE;
 1544|       |
 1545|      0|			if (!ucl_array_append(nobj, top) ||
  ------------------
  |  Branch (1545:8): [True: 0, False: 0]
  ------------------
 1546|      0|				!ucl_array_append(nobj, elt)) {
  ------------------
  |  Branch (1546:5): [True: 0, False: 0]
  ------------------
 1547|       |				/*
 1548|       |				 * `top` is still owned by the container, so the half-built
 1549|       |				 * array must be dropped without releasing what it holds.
 1550|       |				 */
 1551|      0|				ucl_array_detach_elements(nobj);
 1552|      0|				ucl_object_unref(nobj);
 1553|      0|				ucl_set_err(parser, UCL_EINTERNAL,
 1554|      0|							"cannot allocate memory for an array",
 1555|      0|							&parser->err);
 1556|       |
 1557|      0|				return false;
 1558|      0|			}
 1559|       |
 1560|      0|			ucl_hash_replace(cont, top, nobj);
 1561|      0|		}
 1562|      0|	}
 1563|       |
 1564|   127k|	return true;
 1565|   127k|}
ucl_parser.c:ucl_parser_replace_elt:
 1575|  11.9k|{
 1576|  11.9k|	ucl_hash_replace(cont, old, nobj);
 1577|       |
 1578|  11.9k|	if (parser->comments != NULL) {
  ------------------
  |  Branch (1578:6): [True: 0, False: 11.9k]
  ------------------
 1579|      0|		ucl_comments_move(parser->comments, old, nobj);
 1580|      0|		ucl_comments_forget(parser->comments, old);
 1581|      0|	}
 1582|       |
 1583|  11.9k|	ucl_object_unref(old);
 1584|  11.9k|}
ucl_parser.c:ucl_attach_comment:
  164|  1.06M|{
  165|  1.06M|	if (parser->last_comment) {
  ------------------
  |  Branch (165:6): [True: 0, False: 1.06M]
  ------------------
  166|      0|		ucl_object_insert_key(parser->comments, parser->last_comment,
  167|      0|							  (const char *) &obj, sizeof(void *), true);
  168|       |
  169|      0|		if (before) {
  ------------------
  |  Branch (169:7): [True: 0, False: 0]
  ------------------
  170|      0|			parser->last_comment->flags |= UCL_OBJECT_INHERITED;
  171|      0|		}
  172|       |
  173|       |		parser->last_comment = NULL;
  174|      0|	}
  175|  1.06M|}
ucl_parser.c:ucl_state_machine:
 2986|  94.2k|{
 2987|  94.2k|	ucl_object_t *obj, *macro_args;
 2988|  94.2k|	struct ucl_chunk *chunk = parser->chunks;
 2989|  94.2k|	const unsigned char *p, *c = NULL, *macro_start = NULL;
 2990|  94.2k|	unsigned char *macro_escaped;
 2991|  94.2k|	size_t macro_len = 0;
 2992|  94.2k|	struct ucl_macro *macro = NULL;
 2993|  94.2k|	bool next_key = false, end_of_object = false, got_content = false, ret;
 2994|       |
 2995|  94.2k|	if (parser->top_obj == NULL) {
  ------------------
  |  Branch (2995:6): [True: 79.9k, False: 14.3k]
  ------------------
 2996|  79.9k|		parser->state = UCL_STATE_INIT;
 2997|  79.9k|	}
 2998|       |
 2999|  94.2k|	p = chunk->pos;
 3000|  3.80M|	while (chunk->pos < chunk->end) {
  ------------------
  |  Branch (3000:9): [True: 3.75M, False: 51.9k]
  ------------------
 3001|  3.75M|		switch (parser->state) {
 3002|  94.2k|		case UCL_STATE_INIT:
  ------------------
  |  Branch (3002:3): [True: 94.2k, False: 3.66M]
  ------------------
 3003|       |			/*
 3004|       |			 * At the init state we can either go to the parse array or object
 3005|       |			 * if we got [ or { correspondingly or can just treat new data as
 3006|       |			 * a key of newly created object
 3007|       |			 */
 3008|  94.2k|			if (!ucl_skip_comments(parser)) {
  ------------------
  |  Branch (3008:8): [True: 408, False: 93.8k]
  ------------------
 3009|    408|				parser->prev_state = parser->state;
 3010|    408|				parser->state = UCL_STATE_ERROR;
 3011|    408|				return false;
 3012|    408|			}
 3013|  93.8k|			else {
 3014|  93.8k|				bool seen_obrace = false;
 3015|       |
 3016|       |				/* Skip any spaces */
 3017|   133k|				while (p < chunk->end && ucl_test_character(*p,
  ------------------
  |  Branch (3017:12): [True: 132k, False: 1.32k]
  |  Branch (3017:30): [True: 40.0k, False: 92.5k]
  ------------------
 3018|   132k|															UCL_CHARACTER_WHITESPACE_UNSAFE)) {
 3019|  40.0k|					ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  40.0k|	do {                          \
  |  |   50|  40.0k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 40.0k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  40.0k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 17.2k, False: 22.7k]
  |  |  ------------------
  |  |   54|  17.2k|			(chunk)->line++;      \
  |  |   55|  17.2k|			(chunk)->column = 0;  \
  |  |   56|  17.2k|		}                         \
  |  |   57|  40.0k|		else                      \
  |  |   58|  40.0k|			(chunk)->column++;    \
  |  |   59|  40.0k|		(p++);                    \
  |  |   60|  40.0k|		(chunk)->pos++;           \
  |  |   61|  40.0k|		(chunk)->remain--;        \
  |  |   62|  40.0k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 40.0k]
  |  |  ------------------
  ------------------
 3020|  40.0k|				}
 3021|       |
 3022|  93.8k|				p = chunk->pos;
 3023|       |
 3024|  93.8k|				if (p < chunk->end) {
  ------------------
  |  Branch (3024:9): [True: 92.4k, False: 1.41k]
  ------------------
 3025|  92.4k|					if (*p == '[') {
  ------------------
  |  Branch (3025:10): [True: 4.82k, False: 87.6k]
  ------------------
 3026|  4.82k|						parser->state = UCL_STATE_VALUE;
 3027|  4.82k|						ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  4.82k|	do {                          \
  |  |   50|  4.82k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 4.82k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  4.82k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 4.82k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  4.82k|		else                      \
  |  |   58|  4.82k|			(chunk)->column++;    \
  |  |   59|  4.82k|		(p++);                    \
  |  |   60|  4.82k|		(chunk)->pos++;           \
  |  |   61|  4.82k|		(chunk)->remain--;        \
  |  |   62|  4.82k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 4.82k]
  |  |  ------------------
  ------------------
 3028|  4.82k|						seen_obrace = true;
 3029|  4.82k|					}
 3030|  87.6k|					else {
 3031|       |
 3032|  87.6k|						if (*p == '{') {
  ------------------
  |  Branch (3032:11): [True: 3.23k, False: 84.4k]
  ------------------
 3033|  3.23k|							ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  3.23k|	do {                          \
  |  |   50|  3.23k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 3.23k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  3.23k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 3.23k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  3.23k|		else                      \
  |  |   58|  3.23k|			(chunk)->column++;    \
  |  |   59|  3.23k|		(p++);                    \
  |  |   60|  3.23k|		(chunk)->pos++;           \
  |  |   61|  3.23k|		(chunk)->remain--;        \
  |  |   62|  3.23k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 3.23k]
  |  |  ------------------
  ------------------
 3034|  3.23k|							parser->state = UCL_STATE_KEY_OBRACE;
 3035|  3.23k|							seen_obrace = true;
 3036|  3.23k|						}
 3037|  84.4k|						else {
 3038|  84.4k|							parser->state = UCL_STATE_KEY;
 3039|  84.4k|						}
 3040|  87.6k|					}
 3041|  92.4k|				}
 3042|       |
 3043|  93.8k|				if (parser->top_obj == NULL) {
  ------------------
  |  Branch (3043:9): [True: 79.5k, False: 14.3k]
  ------------------
 3044|  79.5k|					if (parser->state == UCL_STATE_VALUE) {
  ------------------
  |  Branch (3044:10): [True: 4.82k, False: 74.7k]
  ------------------
 3045|  4.82k|						obj = ucl_parser_add_container(NULL, parser, true, 0,
 3046|  4.82k|													   seen_obrace);
 3047|  4.82k|					}
 3048|  74.7k|					else {
 3049|  74.7k|						obj = ucl_parser_add_container(NULL, parser, false, 0,
 3050|  74.7k|													   seen_obrace);
 3051|  74.7k|					}
 3052|       |
 3053|  79.5k|					if (obj == NULL) {
  ------------------
  |  Branch (3053:10): [True: 0, False: 79.5k]
  ------------------
 3054|      0|						return false;
 3055|      0|					}
 3056|       |
 3057|  79.5k|					parser->top_obj = obj;
 3058|  79.5k|					parser->cur_obj = obj;
 3059|  79.5k|				}
 3060|  14.3k|				else if (parser->state == UCL_STATE_VALUE) {
  ------------------
  |  Branch (3060:14): [True: 2, False: 14.3k]
  ------------------
 3061|       |					/*
 3062|       |					 * An inserted or included chunk that starts with [ has no
 3063|       |					 * key to attach its value to. Falling through would let
 3064|       |					 * ucl_parser_get_container() hand back the stale
 3065|       |					 * parser->cur_obj, i.e. the previous key's value: an
 3066|       |					 * inserted [5 silently overwrites it, and [{ or [[ reuses
 3067|       |					 * its scalar storage as the new container's, which crashes
 3068|       |					 * in ucl_hash_destroy() when the tree is freed.
 3069|       |					 * Only an array frame can take a value with no key.
 3070|       |					 */
 3071|      2|					if (parser->stack == NULL || parser->stack->obj == NULL ||
  ------------------
  |  Branch (3071:10): [True: 0, False: 2]
  |  Branch (3071:35): [True: 0, False: 2]
  ------------------
 3072|      2|						parser->stack->obj->type != UCL_ARRAY) {
  ------------------
  |  Branch (3072:7): [True: 2, False: 0]
  ------------------
 3073|      2|						ucl_set_err(parser, UCL_ESYNTAX,
 3074|      2|									"array value without a key",
 3075|      2|									&parser->err);
 3076|      2|						parser->prev_state = parser->state;
 3077|      2|						parser->state = UCL_STATE_ERROR;
 3078|       |
 3079|      2|						return false;
 3080|      2|					}
 3081|      2|				}
 3082|  14.3k|				else if (parser->state == UCL_STATE_KEY_OBRACE &&
  ------------------
  |  Branch (3082:14): [True: 162, False: 14.1k]
  ------------------
 3083|    162|						 (parser->stack == NULL || parser->stack->obj == NULL ||
  ------------------
  |  Branch (3083:9): [True: 0, False: 162]
  |  Branch (3083:34): [True: 0, False: 162]
  ------------------
 3084|    162|						  parser->stack->obj->type != UCL_OBJECT)) {
  ------------------
  |  Branch (3084:9): [True: 0, False: 162]
  ------------------
 3085|       |					/*
 3086|       |					 * The mirror image: { opens the body of the current
 3087|       |					 * object, so only an object frame can take it. On an
 3088|       |					 * array frame UCL_STATE_KEY_OBRACE would mark the array
 3089|       |					 * as braced before the key check in UCL_STATE_KEY could
 3090|       |					 * reject it, and the array's ] would no longer close it.
 3091|       |					 */
 3092|      0|					ucl_set_err(parser, UCL_ESYNTAX,
 3093|      0|								"key outside of an object",
 3094|      0|								&parser->err);
 3095|      0|					parser->prev_state = parser->state;
 3096|      0|					parser->state = UCL_STATE_ERROR;
 3097|       |
 3098|      0|					return false;
 3099|      0|				}
 3100|  14.3k|				else if (parser->state == UCL_STATE_KEY_OBRACE) {
  ------------------
  |  Branch (3100:14): [True: 162, False: 14.1k]
  ------------------
 3101|       |					/*
 3102|       |					 * A chunk that starts with { in an open object, as an
 3103|       |					 * included file can, adds its keys to that object, as in
 3104|       |					 * an unbraced root. Marked on the object's frame, the
 3105|       |					 * brace would be closed by the object's own } or take that
 3106|       |					 * one with it. Its own frame keeps the two apart, and is
 3107|       |					 * checked at the end of the chunk like any other brace the
 3108|       |					 * chunk opens.
 3109|       |					 */
 3110|    162|					if (!ucl_parser_add_chunk_brace(parser, chunk)) {
  ------------------
  |  Branch (3110:10): [True: 0, False: 162]
  ------------------
 3111|      0|						parser->prev_state = parser->state;
 3112|      0|						parser->state = UCL_STATE_ERROR;
 3113|       |
 3114|      0|						return false;
 3115|      0|					}
 3116|    162|				}
 3117|  93.8k|			}
 3118|  93.8k|			break;
 3119|  93.8k|		case UCL_STATE_KEY_OBRACE:
  ------------------
  |  Branch (3119:3): [True: 162, False: 3.75M]
  ------------------
 3120|       |			/*
 3121|       |			 * The brace has its frame already, see UCL_STATE_INIT. A macro
 3122|       |			 * at the start of the chunk returns to this state.
 3123|       |			 */
 3124|       |			/* FALLTHROUGHT */
 3125|   420k|		case UCL_STATE_KEY:
  ------------------
  |  Branch (3125:3): [True: 420k, False: 3.33M]
  ------------------
 3126|       |			/* Skip any spaces */
 3127|   447k|			while (p < chunk->end && ucl_test_character(*p, UCL_CHARACTER_WHITESPACE_UNSAFE)) {
  ------------------
  |  Branch (3127:11): [True: 446k, False: 239]
  |  Branch (3127:29): [True: 26.7k, False: 420k]
  ------------------
 3128|  26.7k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  26.7k|	do {                          \
  |  |   50|  26.7k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 26.7k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  26.7k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 12.7k, False: 14.0k]
  |  |  ------------------
  |  |   54|  12.7k|			(chunk)->line++;      \
  |  |   55|  12.7k|			(chunk)->column = 0;  \
  |  |   56|  12.7k|		}                         \
  |  |   57|  26.7k|		else                      \
  |  |   58|  26.7k|			(chunk)->column++;    \
  |  |   59|  26.7k|		(p++);                    \
  |  |   60|  26.7k|		(chunk)->pos++;           \
  |  |   61|  26.7k|		(chunk)->remain--;        \
  |  |   62|  26.7k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 26.7k]
  |  |  ------------------
  ------------------
 3129|  26.7k|			}
 3130|   420k|			if (p == chunk->end) {
  ------------------
  |  Branch (3130:8): [True: 239, False: 420k]
  ------------------
 3131|       |				/*
 3132|       |				 * The key can start the next chunk, which needs no separator
 3133|       |				 * before it as UCL_STATE_AFTER_VALUE would
 3134|       |				 */
 3135|    239|				break;
 3136|    239|			}
 3137|   420k|			if (*p == '}') {
  ------------------
  |  Branch (3137:8): [True: 1.08k, False: 419k]
  ------------------
 3138|       |				/* We have the end of an object */
 3139|  1.08k|				parser->state = UCL_STATE_AFTER_VALUE;
 3140|  1.08k|				continue;
 3141|  1.08k|			}
 3142|   419k|			if (parser->stack == NULL) {
  ------------------
  |  Branch (3142:8): [True: 0, False: 419k]
  ------------------
 3143|       |				/* No objects are on stack, but we want to parse a key */
 3144|      0|				ucl_set_err(parser, UCL_ESYNTAX, "top object is finished but the parser "
 3145|      0|												 "expects a key",
 3146|      0|							&parser->err);
 3147|      0|				parser->prev_state = parser->state;
 3148|      0|				parser->state = UCL_STATE_ERROR;
 3149|      0|				return false;
 3150|      0|			}
 3151|   419k|			if (parser->stack->obj->type != UCL_OBJECT) {
  ------------------
  |  Branch (3151:8): [True: 0, False: 419k]
  ------------------
 3152|       |				/*
 3153|       |				 * Only an object frame can take a key. An array can be on top
 3154|       |				 * here: an inserted chunk starts in UCL_STATE_INIT, which
 3155|       |				 * picks this state for anything but [ or {, and .include
 3156|       |				 * restores the state it was called in even if the included
 3157|       |				 * chunk closed the enclosing object. ucl_parse_key() would
 3158|       |				 * then pass the array's storage to ucl_hash_insert().
 3159|       |				 */
 3160|      0|				ucl_set_err(parser, UCL_ESYNTAX, "key outside of an object",
 3161|      0|							&parser->err);
 3162|      0|				parser->prev_state = parser->state;
 3163|      0|				parser->state = UCL_STATE_ERROR;
 3164|      0|				return false;
 3165|      0|			}
 3166|       |
 3167|   419k|			got_content = false;
 3168|       |
 3169|   419k|			if (!ucl_parse_key(parser, chunk, &next_key, &end_of_object, &got_content)) {
  ------------------
  |  Branch (3169:8): [True: 9.43k, False: 409k]
  ------------------
 3170|  9.43k|				parser->prev_state = parser->state;
 3171|  9.43k|				parser->state = UCL_STATE_ERROR;
 3172|  9.43k|				return false;
 3173|  9.43k|			}
 3174|       |
 3175|   409k|			if (end_of_object) {
  ------------------
  |  Branch (3175:8): [True: 235, False: 409k]
  ------------------
 3176|    235|				p = chunk->pos;
 3177|    235|				parser->state = UCL_STATE_AFTER_VALUE;
 3178|    235|				continue;
 3179|    235|			}
 3180|   409k|			else if (parser->state != UCL_STATE_MACRO_NAME) {
  ------------------
  |  Branch (3180:13): [True: 329k, False: 80.3k]
  ------------------
 3181|   329k|				if (next_key && parser->stack->obj->type == UCL_OBJECT) {
  ------------------
  |  Branch (3181:9): [True: 22.3k, False: 306k]
  |  Branch (3181:21): [True: 22.3k, False: 0]
  ------------------
 3182|       |					/* Parse more keys and nest objects accordingly */
 3183|  22.3k|					obj = ucl_parser_add_container(parser->cur_obj,
 3184|  22.3k|												   parser,
 3185|  22.3k|												   false,
 3186|  22.3k|												   parser->stack->e.params.level + 1,
 3187|  22.3k|												   parser->state == UCL_STATE_KEY_OBRACE);
 3188|  22.3k|					if (obj == NULL) {
  ------------------
  |  Branch (3188:10): [True: 22, False: 22.3k]
  ------------------
 3189|     22|						return false;
 3190|     22|					}
 3191|  22.3k|				}
 3192|   306k|				else if (got_content) {
  ------------------
  |  Branch (3192:14): [True: 289k, False: 17.5k]
  ------------------
 3193|       |					/* Do not switch state if we have not read any content */
 3194|   289k|					parser->state = UCL_STATE_VALUE;
 3195|   289k|				}
 3196|   329k|			}
 3197|  80.3k|			else {
 3198|  80.3k|				c = chunk->pos;
 3199|  80.3k|			}
 3200|   409k|			p = chunk->pos;
 3201|   409k|			break;
 3202|   930k|		case UCL_STATE_VALUE:
  ------------------
  |  Branch (3202:3): [True: 930k, False: 2.82M]
  ------------------
 3203|       |			/* We need to check what we do have */
 3204|   930k|			if (!parser->cur_obj || !ucl_parse_value(parser, chunk)) {
  ------------------
  |  Branch (3204:8): [True: 0, False: 930k]
  |  Branch (3204:28): [True: 4.82k, False: 925k]
  ------------------
 3205|  4.82k|				parser->prev_state = parser->state;
 3206|  4.82k|				parser->state = UCL_STATE_ERROR;
 3207|  4.82k|				return false;
 3208|  4.82k|			}
 3209|       |			/* State is set in ucl_parse_value call */
 3210|   925k|			p = chunk->pos;
 3211|   925k|			break;
 3212|   765k|		case UCL_STATE_AFTER_VALUE:
  ------------------
  |  Branch (3212:3): [True: 765k, False: 2.98M]
  ------------------
 3213|   765k|			if (!ucl_parse_after_value(parser, chunk)) {
  ------------------
  |  Branch (3213:8): [True: 1.81k, False: 764k]
  ------------------
 3214|  1.81k|				parser->prev_state = parser->state;
 3215|  1.81k|				parser->state = UCL_STATE_ERROR;
 3216|  1.81k|				return false;
 3217|  1.81k|			}
 3218|       |
 3219|   764k|			if (parser->stack != NULL) {
  ------------------
  |  Branch (3219:8): [True: 763k, False: 378]
  ------------------
 3220|   763k|				if (parser->stack->obj->type == UCL_OBJECT) {
  ------------------
  |  Branch (3220:9): [True: 259k, False: 504k]
  ------------------
 3221|   259k|					parser->state = UCL_STATE_KEY;
 3222|   259k|				}
 3223|   504k|				else {
 3224|       |					/* Array */
 3225|   504k|					parser->state = UCL_STATE_VALUE;
 3226|   504k|				}
 3227|   763k|			}
 3228|    378|			else {
 3229|       |				/* Skip everything at the end */
 3230|    378|				return true;
 3231|    378|			}
 3232|       |
 3233|   763k|			p = chunk->pos;
 3234|   763k|			break;
 3235|  1.46M|		case UCL_STATE_MACRO_NAME:
  ------------------
  |  Branch (3235:3): [True: 1.46M, False: 2.28M]
  ------------------
 3236|  1.46M|			if (!ucl_test_character(*p, UCL_CHARACTER_WHITESPACE_UNSAFE) &&
  ------------------
  |  Branch (3236:8): [True: 1.44M, False: 28.3k]
  ------------------
 3237|  1.44M|				*p != '(') {
  ------------------
  |  Branch (3237:5): [True: 1.38M, False: 51.5k]
  ------------------
 3238|  1.38M|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  1.38M|	do {                          \
  |  |   50|  1.38M|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 1.38M]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  1.38M|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 1.38M]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  1.38M|		else                      \
  |  |   58|  1.38M|			(chunk)->column++;    \
  |  |   59|  1.38M|		(p++);                    \
  |  |   60|  1.38M|		(chunk)->pos++;           \
  |  |   61|  1.38M|		(chunk)->remain--;        \
  |  |   62|  1.38M|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 1.38M]
  |  |  ------------------
  ------------------
 3239|  1.38M|			}
 3240|  79.9k|			else {
 3241|  79.9k|				if (c != NULL && p - c > 0) {
  ------------------
  |  Branch (3241:9): [True: 79.9k, False: 0]
  |  Branch (3241:22): [True: 79.7k, False: 240]
  ------------------
 3242|       |					/* We got macro name */
 3243|  79.7k|					macro_len = (size_t) (p - c);
 3244|  79.7k|					HASH_FIND(hh, parser->macroes, c, macro_len, macro);
  ------------------
  |  |   95|  79.7k|#define HASH_FIND(hh,head,keyptr,keylen,out)                                     \
  |  |   96|  79.7k|do {                                                                             \
  |  |   97|  79.7k|  unsigned _hf_bkt,_hf_hashv;                                                    \
  |  |   98|  79.7k|  out=NULL;                                                                      \
  |  |   99|  79.7k|  if (head) {                                                                    \
  |  |  ------------------
  |  |  |  Branch (99:7): [True: 79.7k, False: 0]
  |  |  ------------------
  |  |  100|  79.7k|     HASH_FCN(keyptr,keylen, (head)->hh.tbl->num_buckets, _hf_hashv, _hf_bkt);   \
  |  |  ------------------
  |  |  |  |  352|  79.7k|#define HASH_FCN HASH_XX
  |  |  |  |  ------------------
  |  |  |  |  |  |  357|  79.7k|#define HASH_XX(key,keylen,num_bkts,hashv,bkt)                                  \
  |  |  |  |  |  |  358|  79.7k|do {                                                                             \
  |  |  |  |  |  |  359|  79.7k|  hashv = mum_hash (key, keylen, XX_HASH_PRIME);                                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  355|  79.7k|#define XX_HASH_PRIME 2654435761U
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  360|  79.7k|  bkt = (hashv) & (num_bkts-1);                                                  \
  |  |  |  |  |  |  361|  79.7k|} while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (361:10): [Folded, False: 79.7k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  101|  79.7k|     if (HASH_BLOOM_TEST((head)->hh.tbl, _hf_hashv)) {                           \
  |  |  ------------------
  |  |  |  |  138|  79.7k|#define HASH_BLOOM_TEST(tbl,hashv) (1)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (138:36): [True: 79.7k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  102|  79.7k|       HASH_FIND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ],  \
  |  |  ------------------
  |  |  |  |  369|  79.7k|#define HASH_FIND_IN_BKT(tbl,hh,head,keyptr,keylen_in,out)                       \
  |  |  |  |  370|  79.7k|do {                                                                             \
  |  |  |  |  371|  79.7k| if (head.hh_head) DECLTYPE_ASSIGN(out,ELMT_FROM_HH(tbl,head.hh_head));          \
  |  |  |  |  ------------------
  |  |  |  |  |  |   54|  76.9k|#define DECLTYPE_ASSIGN(dst,src)                                                 \
  |  |  |  |  |  |   55|  76.9k|do {                                                                             \
  |  |  |  |  |  |   56|  76.9k|  (dst) = DECLTYPE(dst)(src);                                                    \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   44|  76.9k|#define DECLTYPE(x) (__typeof(x))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  76.9k|} while(0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (57:9): [Folded, False: 76.9k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (371:6): [True: 76.9k, False: 2.75k]
  |  |  |  |  ------------------
  |  |  |  |  372|  79.7k| else out=NULL;                                                                  \
  |  |  |  |  373|  81.1k| while (out) {                                                                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (373:9): [True: 76.9k, False: 4.17k]
  |  |  |  |  ------------------
  |  |  |  |  374|  76.9k|    if ((out)->hh.keylen == keylen_in) {                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (374:9): [True: 76.0k, False: 862]
  |  |  |  |  ------------------
  |  |  |  |  375|  76.0k|        if ((HASH_KEYCMP((out)->hh.key,keyptr,keylen_in)) == 0) break;             \
  |  |  |  |  ------------------
  |  |  |  |  |  |  366|  76.0k|#define HASH_KEYCMP(a,b,len) memcmp(a,b,len)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (375:13): [True: 75.5k, False: 555]
  |  |  |  |  ------------------
  |  |  |  |  376|  76.0k|    }                                                                            \
  |  |  |  |  377|  76.9k|    if ((out)->hh.hh_next) DECLTYPE_ASSIGN(out,ELMT_FROM_HH(tbl,(out)->hh.hh_next)); \
  |  |  |  |  ------------------
  |  |  |  |  |  |   54|      0|#define DECLTYPE_ASSIGN(dst,src)                                                 \
  |  |  |  |  |  |   55|      0|do {                                                                             \
  |  |  |  |  |  |   56|      0|  (dst) = DECLTYPE(dst)(src);                                                    \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   44|      0|#define DECLTYPE(x) (__typeof(x))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      0|} while(0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (57:9): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (377:9): [True: 0, False: 1.41k]
  |  |  |  |  ------------------
  |  |  |  |  378|  1.41k|    else out = NULL;                                                             \
  |  |  |  |  379|  1.41k| }                                                                               \
  |  |  |  |  380|  79.7k|} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (380:9): [Folded, False: 79.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  103|  79.7k|                        keyptr,keylen,out);                                      \
  |  |  104|  79.7k|     }                                                                           \
  |  |  105|  79.7k|  }                                                                              \
  |  |  106|  79.7k|} while (0)
  |  |  ------------------
  |  |  |  Branch (106:10): [Folded, False: 79.7k]
  |  |  ------------------
  ------------------
 3245|  79.7k|					if (macro == NULL) {
  ------------------
  |  Branch (3245:10): [True: 4.17k, False: 75.5k]
  ------------------
 3246|  4.17k|						ucl_create_err(&parser->err,
 3247|  4.17k|									   "error at %s:%d at column %d: "
 3248|  4.17k|									   "unknown macro: '%.*s', character: '%c'",
 3249|  4.17k|									   chunk->fname ? chunk->fname : "memory",
  ------------------
  |  Branch (3249:13): [True: 0, False: 4.17k]
  ------------------
 3250|  4.17k|									   chunk->line,
 3251|  4.17k|									   chunk->column,
 3252|  4.17k|									   (int) (p - c),
 3253|  4.17k|									   c,
 3254|  4.17k|									   *chunk->pos);
 3255|  4.17k|						parser->state = UCL_STATE_ERROR;
 3256|  4.17k|						return false;
 3257|  4.17k|					}
 3258|       |					/* Now we need to skip all spaces */
 3259|  75.5k|					SKIP_SPACES_COMMENTS(parser, chunk, p);
  ------------------
  |  | 2871|  75.5k|	do {                                                                          \
  |  | 2872|   130k|		while ((p) < (chunk)->end) {                                              \
  |  |  ------------------
  |  |  |  Branch (2872:10): [True: 130k, False: 88]
  |  |  ------------------
  |  | 2873|   130k|			if (!ucl_test_character(*(p), UCL_CHARACTER_WHITESPACE_UNSAFE)) {     \
  |  |  ------------------
  |  |  |  Branch (2873:8): [True: 75.4k, False: 55.1k]
  |  |  ------------------
  |  | 2874|  75.4k|				if ((chunk)->remain >= 2 && ucl_lex_is_comment((p)[0], (p)[1])) { \
  |  |  ------------------
  |  |  |  Branch (2874:9): [True: 75.3k, False: 101]
  |  |  |  Branch (2874:33): [True: 391, False: 74.9k]
  |  |  ------------------
  |  | 2875|    391|					if (!ucl_skip_comments(parser)) {                             \
  |  |  ------------------
  |  |  |  Branch (2875:10): [True: 195, False: 196]
  |  |  ------------------
  |  | 2876|    195|						return false;                                             \
  |  | 2877|    195|					}                                                             \
  |  | 2878|    391|					p = (chunk)->pos;                                             \
  |  | 2879|    196|				}                                                                 \
  |  | 2880|  75.4k|				break;                                                            \
  |  | 2881|  75.4k|			}                                                                     \
  |  | 2882|   130k|			ucl_chunk_skipc(chunk, p);                                            \
  |  |  ------------------
  |  |  |  |   49|  55.1k|	do {                          \
  |  |  |  |   50|  55.1k|		if (p == chunk->end) {    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (50:7): [True: 0, False: 55.1k]
  |  |  |  |  ------------------
  |  |  |  |   51|      0|			break;                \
  |  |  |  |   52|      0|		}                         \
  |  |  |  |   53|  55.1k|		if (*(p) == '\n') {       \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (53:7): [True: 6.79k, False: 48.3k]
  |  |  |  |  ------------------
  |  |  |  |   54|  6.79k|			(chunk)->line++;      \
  |  |  |  |   55|  6.79k|			(chunk)->column = 0;  \
  |  |  |  |   56|  6.79k|		}                         \
  |  |  |  |   57|  55.1k|		else                      \
  |  |  |  |   58|  55.1k|			(chunk)->column++;    \
  |  |  |  |   59|  55.1k|		(p++);                    \
  |  |  |  |   60|  55.1k|		(chunk)->pos++;           \
  |  |  |  |   61|  55.1k|		(chunk)->remain--;        \
  |  |  |  |   62|  55.1k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (62:11): [Folded, False: 55.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2883|  55.1k|		}                                                                         \
  |  | 2884|  75.5k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (2884:11): [Folded, False: 75.3k]
  |  |  ------------------
  ------------------
 3260|  75.3k|					parser->state = UCL_STATE_MACRO;
 3261|  75.3k|				}
 3262|    240|				else {
 3263|       |					/* We have invalid macro name */
 3264|    240|					ucl_create_err(&parser->err,
 3265|    240|								   "error at %s:%d at column %d: invalid macro name",
 3266|    240|								   chunk->fname ? chunk->fname : "memory",
  ------------------
  |  Branch (3266:12): [True: 0, False: 240]
  ------------------
 3267|    240|								   chunk->line,
 3268|    240|								   chunk->column);
 3269|    240|					parser->state = UCL_STATE_ERROR;
 3270|    240|					return false;
 3271|    240|				}
 3272|  79.9k|			}
 3273|  1.46M|			break;
 3274|  1.46M|		case UCL_STATE_MACRO:
  ------------------
  |  Branch (3274:3): [True: 75.1k, False: 3.67M]
  ------------------
 3275|  75.1k|			if (*chunk->pos == '(') {
  ------------------
  |  Branch (3275:8): [True: 73.1k, False: 2.01k]
  ------------------
 3276|  73.1k|				macro_args = ucl_parse_macro_arguments(parser, chunk);
 3277|  73.1k|				p = chunk->pos;
 3278|  73.1k|				if (macro_args) {
  ------------------
  |  Branch (3278:9): [True: 33.5k, False: 39.5k]
  ------------------
 3279|  41.8k|					while (p < chunk->end) {
  ------------------
  |  Branch (3279:13): [True: 41.6k, False: 215]
  ------------------
 3280|  41.6k|						if (!ucl_test_character(*p, UCL_CHARACTER_WHITESPACE_UNSAFE)) {
  ------------------
  |  Branch (3280:11): [True: 33.3k, False: 8.33k]
  ------------------
 3281|  33.3k|							if (chunk->remain >= 2 && ucl_lex_is_comment(p[0], p[1])) {
  ------------------
  |  Branch (3281:12): [True: 32.2k, False: 1.04k]
  |  Branch (3281:34): [True: 442, False: 31.8k]
  ------------------
 3282|    442|								if (!ucl_skip_comments(parser)) {
  ------------------
  |  Branch (3282:13): [True: 215, False: 227]
  ------------------
 3283|    215|									ucl_object_unref(macro_args);
 3284|    215|									return false;
 3285|    215|								}
 3286|    227|								p = chunk->pos;
 3287|    227|							}
 3288|  33.1k|							break;
 3289|  33.3k|						}
 3290|  8.33k|						ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  8.33k|	do {                          \
  |  |   50|  8.33k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 8.33k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  8.33k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 4.90k, False: 3.43k]
  |  |  ------------------
  |  |   54|  4.90k|			(chunk)->line++;      \
  |  |   55|  4.90k|			(chunk)->column = 0;  \
  |  |   56|  4.90k|		}                         \
  |  |   57|  8.33k|		else                      \
  |  |   58|  8.33k|			(chunk)->column++;    \
  |  |   59|  8.33k|		(p++);                    \
  |  |   60|  8.33k|		(chunk)->pos++;           \
  |  |   61|  8.33k|		(chunk)->remain--;        \
  |  |   62|  8.33k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 8.33k]
  |  |  ------------------
  ------------------
 3291|  8.33k|					}
 3292|  33.5k|				}
 3293|  73.1k|			}
 3294|  2.01k|			else {
 3295|  2.01k|				macro_args = NULL;
 3296|  2.01k|			}
 3297|  74.9k|			if (!ucl_parse_macro_value(parser, chunk, macro,
  ------------------
  |  Branch (3297:8): [True: 2.86k, False: 72.0k]
  ------------------
 3298|  74.9k|									   &macro_start, &macro_len)) {
 3299|  2.86k|				if (macro_args) {
  ------------------
  |  Branch (3299:9): [True: 1.51k, False: 1.35k]
  ------------------
 3300|  1.51k|					ucl_object_unref(macro_args);
 3301|  1.51k|				}
 3302|  2.86k|				parser->prev_state = parser->state;
 3303|  2.86k|				parser->state = UCL_STATE_ERROR;
 3304|  2.86k|				return false;
 3305|  2.86k|			}
 3306|  72.0k|			macro_len = ucl_expand_variable(parser, &macro_escaped,
 3307|  72.0k|											macro_start, macro_len);
 3308|  72.0k|			parser->state = parser->prev_state;
 3309|       |
 3310|  72.0k|			if (macro_escaped == NULL && macro != NULL) {
  ------------------
  |  Branch (3310:8): [True: 71.8k, False: 224]
  |  Branch (3310:33): [True: 71.8k, False: 0]
  ------------------
 3311|  71.8k|				if (macro->is_context) {
  ------------------
  |  Branch (3311:9): [True: 210, False: 71.6k]
  ------------------
 3312|    210|					ret = macro->h.context_handler(macro_start, macro_len,
 3313|    210|												   macro_args,
 3314|    210|												   parser->top_obj,
 3315|    210|												   macro->ud);
 3316|    210|				}
 3317|  71.6k|				else {
 3318|  71.6k|					ret = macro->h.handler(macro_start, macro_len, macro_args,
 3319|  71.6k|										   macro->ud);
 3320|  71.6k|				}
 3321|  71.8k|			}
 3322|    224|			else if (macro != NULL) {
  ------------------
  |  Branch (3322:13): [True: 224, False: 0]
  ------------------
 3323|    224|				if (macro->is_context) {
  ------------------
  |  Branch (3323:9): [True: 1, False: 223]
  ------------------
 3324|      1|					ret = macro->h.context_handler(macro_escaped, macro_len,
 3325|      1|												   macro_args,
 3326|      1|												   parser->top_obj,
 3327|      1|												   macro->ud);
 3328|      1|				}
 3329|    223|				else {
 3330|    223|					ret = macro->h.handler(macro_escaped, macro_len, macro_args,
 3331|    223|										   macro->ud);
 3332|    223|				}
 3333|       |
 3334|    224|				UCL_FREE(macro_len + 1, macro_escaped);
  ------------------
  |  |   74|    224|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 3335|    224|			}
 3336|      0|			else {
 3337|      0|				ret = false;
 3338|      0|				ucl_set_err(parser, UCL_EINTERNAL,
 3339|      0|							"internal error: parser has macro undefined", &parser->err);
 3340|      0|			}
 3341|       |
 3342|       |			/*
 3343|       |			 * Chunk can be modified within macro handler
 3344|       |			 */
 3345|  72.0k|			chunk = parser->chunks;
 3346|  72.0k|			p = chunk->pos;
 3347|       |
 3348|  72.0k|			if (macro_args) {
  ------------------
  |  Branch (3348:8): [True: 31.8k, False: 40.2k]
  ------------------
 3349|  31.8k|				ucl_object_unref(macro_args);
 3350|  31.8k|			}
 3351|       |
 3352|  72.0k|			if (!ret) {
  ------------------
  |  Branch (3352:8): [True: 17.7k, False: 54.2k]
  ------------------
 3353|  17.7k|				return false;
 3354|  17.7k|			}
 3355|  54.2k|			break;
 3356|  54.2k|		case UCL_STATE_ERROR:
  ------------------
  |  Branch (3356:3): [True: 0, False: 3.75M]
  ------------------
 3357|       |			/* Already in the error state */
 3358|      0|			return false;
 3359|      0|		default:
  ------------------
  |  Branch (3359:3): [True: 0, False: 3.75M]
  ------------------
 3360|      0|			ucl_set_err(parser, UCL_EINTERNAL,
 3361|      0|						"internal error: parser is in an unknown state", &parser->err);
 3362|      0|			parser->state = UCL_STATE_ERROR;
 3363|      0|			return false;
 3364|  3.75M|		}
 3365|  3.75M|	}
 3366|       |
 3367|       |	/*
 3368|       |	 * A key whose merge is pending takes the comments before it once its
 3369|       |	 * value starts, in whichever object that value ends up
 3370|       |	 */
 3371|  51.9k|	if (parser->last_comment && parser->pending_merge == NULL) {
  ------------------
  |  Branch (3371:6): [True: 0, False: 51.9k]
  |  Branch (3371:30): [True: 0, False: 0]
  ------------------
 3372|      0|		if (parser->cur_obj) {
  ------------------
  |  Branch (3372:7): [True: 0, False: 0]
  ------------------
 3373|      0|			ucl_attach_comment(parser, parser->cur_obj, true);
 3374|      0|		}
 3375|      0|		else if (parser->stack && parser->stack->obj) {
  ------------------
  |  Branch (3375:12): [True: 0, False: 0]
  |  Branch (3375:29): [True: 0, False: 0]
  ------------------
 3376|      0|			ucl_attach_comment(parser, parser->stack->obj, true);
 3377|      0|		}
 3378|      0|		else if (parser->top_obj) {
  ------------------
  |  Branch (3378:12): [True: 0, False: 0]
  ------------------
 3379|      0|			ucl_attach_comment(parser, parser->top_obj, true);
 3380|      0|		}
 3381|      0|		else {
 3382|      0|			ucl_object_unref(parser->last_comment);
 3383|      0|			parser->last_comment = NULL;
 3384|      0|		}
 3385|      0|	}
 3386|       |
 3387|  51.9k|	if (parser->stack != NULL && parser->state != UCL_STATE_ERROR) {
  ------------------
  |  Branch (3387:6): [True: 51.9k, False: 0]
  |  Branch (3387:31): [True: 51.9k, False: 0]
  ------------------
 3388|  51.9k|		struct ucl_stack *st;
 3389|  51.9k|		bool has_error = false;
 3390|       |
 3391|  51.9k|		LL_FOREACH(parser->stack, st)
  ------------------
  |  |  416|  51.9k|    LL_FOREACH2(head,el,next)
  |  |  ------------------
  |  |  |  |  419|  98.5k|    for ((el) = (head); el; (el) = (el)->next)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (419:25): [True: 60.5k, False: 37.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3392|  60.5k|		{
 3393|  60.5k|			if (st->chunk != parser->chunks) {
  ------------------
  |  Branch (3393:8): [True: 14.0k, False: 46.5k]
  ------------------
 3394|  14.0k|				break; /* Not our chunk, give up */
 3395|  14.0k|			}
 3396|  46.5k|			if (st->e.params.flags & UCL_STACK_HAS_OBRACE) {
  ------------------
  |  Branch (3396:8): [True: 10.7k, False: 35.8k]
  ------------------
 3397|  10.7k|				if (parser->err == NULL) {
  ------------------
  |  Branch (3397:9): [True: 3.73k, False: 7.00k]
  ------------------
 3398|  3.73k|					utstring_new(parser->err);
  ------------------
  |  |   81|  3.73k|#define utstring_new(s)                                    \
  |  |   82|  3.73k|do {                                                       \
  |  |   83|  3.73k|   s = (UT_string*)calloc(1, sizeof(UT_string));          \
  |  |   84|  3.73k|   if (!s) oom();                                          \
  |  |  ------------------
  |  |  |  |   42|      0|#define oom abort
  |  |  ------------------
  |  |  |  Branch (84:8): [True: 0, False: 3.73k]
  |  |  ------------------
  |  |   85|  3.73k|   else utstring_init(s);                                  \
  |  |  ------------------
  |  |  |  |   62|  3.73k|#define utstring_init(s)                                   \
  |  |  |  |   63|  3.73k|do {                                                       \
  |  |  |  |   64|  3.73k|  (s)->n = 0; (s)->i = 0; (s)->d = NULL;                   \
  |  |  |  |   65|  3.73k|  utstring_reserve(s,128);                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  |   52|  3.73k|#define utstring_reserve(s,amt)                            \
  |  |  |  |  |  |   53|  3.73k|do {                                                       \
  |  |  |  |  |  |   54|  3.73k|  if (((s)->n - (s)->i) < (size_t)(amt)) {                 \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (54:7): [True: 3.73k, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   55|  3.73k|     (s)->d = (char*)realloc((s)->d, (s)->n + amt);        \
  |  |  |  |  |  |   56|  3.73k|     if ((s)->d == NULL) oom();                            \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   42|      0|#define oom abort
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (56:10): [True: 0, False: 3.73k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|  3.73k|     else {(s)->n += amt;                                  \
  |  |  |  |  |  |   58|  3.73k|     if ((s)->pd) *((s)->pd) = (s)->d;}                    \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (58:10): [True: 0, False: 3.73k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   59|  3.73k|  }                                                        \
  |  |  |  |  |  |   60|  3.73k|} while(0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (60:9): [Folded, False: 3.73k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   66|  3.73k|  (s)->d[0] = '\0'; \
  |  |  |  |   67|  3.73k|} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:9): [Folded, False: 3.73k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   86|  3.73k|} while(0)
  |  |  ------------------
  |  |  |  Branch (86:9): [Folded, False: 3.73k]
  |  |  ------------------
  ------------------
 3399|  3.73k|				}
 3400|       |
 3401|  10.7k|				utstring_printf(parser->err, "%s:%d unmatched open brace at %d; ",
 3402|  10.7k|								chunk->fname ? chunk->fname : "memory",
  ------------------
  |  Branch (3402:9): [True: 0, False: 10.7k]
  ------------------
 3403|  10.7k|								parser->chunks->line,
 3404|  10.7k|								st->e.params.line);
 3405|       |
 3406|  10.7k|				has_error = true;
 3407|  10.7k|			}
 3408|  46.5k|		}
 3409|       |
 3410|  51.9k|		if (has_error) {
  ------------------
  |  Branch (3410:7): [True: 4.15k, False: 47.7k]
  ------------------
 3411|  4.15k|			parser->err_code = UCL_EUNPAIRED;
 3412|       |
 3413|  4.15k|			return false;
 3414|  4.15k|		}
 3415|  51.9k|	}
 3416|       |
 3417|  47.7k|	return true;
 3418|  51.9k|}
ucl_parser.c:ucl_skip_comments:
  194|   164k|{
  195|   164k|	struct ucl_chunk *chunk = parser->chunks;
  196|   164k|	const unsigned char *p, *beg = NULL;
  197|   164k|	int comments_nested = 0;
  198|   164k|	bool quoted = false;
  199|       |
  200|   164k|	p = chunk->pos;
  201|       |
  202|   274k|start:
  203|   274k|	if (chunk->remain > 0 && *p == '#') {
  ------------------
  |  Branch (203:6): [True: 269k, False: 4.83k]
  |  Branch (203:27): [True: 122k, False: 147k]
  ------------------
  204|   122k|		if (parser->state != UCL_STATE_SCOMMENT &&
  ------------------
  |  Branch (204:7): [True: 122k, False: 0]
  ------------------
  205|   122k|			parser->state != UCL_STATE_MCOMMENT) {
  ------------------
  |  Branch (205:4): [True: 122k, False: 0]
  ------------------
  206|   122k|			beg = p;
  207|       |
  208|  3.84M|			while (p < chunk->end) {
  ------------------
  |  Branch (208:11): [True: 3.82M, False: 14.4k]
  ------------------
  209|  3.82M|				if (*p == '\n') {
  ------------------
  |  Branch (209:9): [True: 107k, False: 3.72M]
  ------------------
  210|   107k|					if (parser->flags & UCL_PARSER_SAVE_COMMENTS) {
  ------------------
  |  Branch (210:10): [True: 0, False: 107k]
  ------------------
  211|      0|						ucl_save_comment(parser, beg, p - beg);
  212|      0|						beg = NULL;
  213|      0|					}
  214|       |
  215|   107k|					ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   107k|	do {                          \
  |  |   50|   107k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 107k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   107k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 107k, False: 0]
  |  |  ------------------
  |  |   54|   107k|			(chunk)->line++;      \
  |  |   55|   107k|			(chunk)->column = 0;  \
  |  |   56|   107k|		}                         \
  |  |   57|   107k|		else                      \
  |  |   58|   107k|			(chunk)->column++;    \
  |  |   59|   107k|		(p++);                    \
  |  |   60|   107k|		(chunk)->pos++;           \
  |  |   61|   107k|		(chunk)->remain--;        \
  |  |   62|   107k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 107k]
  |  |  ------------------
  ------------------
  216|       |
  217|   107k|					goto start;
  218|   107k|				}
  219|  3.72M|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  3.72M|	do {                          \
  |  |   50|  3.72M|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 3.72M]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  3.72M|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 3.72M]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  3.72M|		else                      \
  |  |   58|  3.72M|			(chunk)->column++;    \
  |  |   59|  3.72M|		(p++);                    \
  |  |   60|  3.72M|		(chunk)->pos++;           \
  |  |   61|  3.72M|		(chunk)->remain--;        \
  |  |   62|  3.72M|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 3.72M]
  |  |  ------------------
  ------------------
  220|  3.72M|			}
  221|   122k|		}
  222|   122k|	}
  223|   152k|	else if (chunk->remain >= 2 && *p == '/' && p[1] == '*') {
  ------------------
  |  Branch (223:11): [True: 145k, False: 6.71k]
  |  Branch (223:33): [True: 5.66k, False: 139k]
  |  Branch (223:46): [True: 5.00k, False: 652]
  ------------------
  224|  5.00k|		beg = p;
  225|  5.00k|		comments_nested++;
  226|  5.00k|		ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  5.00k|	do {                          \
  |  |   50|  5.00k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 5.00k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  5.00k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 5.00k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  5.00k|		else                      \
  |  |   58|  5.00k|			(chunk)->column++;    \
  |  |   59|  5.00k|		(p++);                    \
  |  |   60|  5.00k|		(chunk)->pos++;           \
  |  |   61|  5.00k|		(chunk)->remain--;        \
  |  |   62|  5.00k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 5.00k]
  |  |  ------------------
  ------------------
  227|  5.00k|		ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  5.00k|	do {                          \
  |  |   50|  5.00k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 5.00k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  5.00k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 5.00k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  5.00k|		else                      \
  |  |   58|  5.00k|			(chunk)->column++;    \
  |  |   59|  5.00k|		(p++);                    \
  |  |   60|  5.00k|		(chunk)->pos++;           \
  |  |   61|  5.00k|		(chunk)->remain--;        \
  |  |   62|  5.00k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 5.00k]
  |  |  ------------------
  ------------------
  228|   237k|		while (p < chunk->end) {
  ------------------
  |  Branch (228:10): [True: 234k, False: 2.75k]
  ------------------
  229|   234k|			if (*p == '"' && *(p - 1) != '\\') {
  ------------------
  |  Branch (229:8): [True: 2.31k, False: 232k]
  |  Branch (229:21): [True: 2.09k, False: 216]
  ------------------
  230|       |				/* begin or end double-quoted string */
  231|  2.09k|				quoted = !quoted;
  232|  2.09k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  2.09k|	do {                          \
  |  |   50|  2.09k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 2.09k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  2.09k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 2.09k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  2.09k|		else                      \
  |  |   58|  2.09k|			(chunk)->column++;    \
  |  |   59|  2.09k|		(p++);                    \
  |  |   60|  2.09k|		(chunk)->pos++;           \
  |  |   61|  2.09k|		(chunk)->remain--;        \
  |  |   62|  2.09k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 2.09k]
  |  |  ------------------
  ------------------
  233|  2.09k|			}
  234|   232k|			else if (quoted) {
  ------------------
  |  Branch (234:13): [True: 26.4k, False: 205k]
  ------------------
  235|       |				/* quoted character */
  236|  26.4k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  26.4k|	do {                          \
  |  |   50|  26.4k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 26.4k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  26.4k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 2.06k, False: 24.4k]
  |  |  ------------------
  |  |   54|  2.06k|			(chunk)->line++;      \
  |  |   55|  2.06k|			(chunk)->column = 0;  \
  |  |   56|  2.06k|		}                         \
  |  |   57|  26.4k|		else                      \
  |  |   58|  26.4k|			(chunk)->column++;    \
  |  |   59|  26.4k|		(p++);                    \
  |  |   60|  26.4k|		(chunk)->pos++;           \
  |  |   61|  26.4k|		(chunk)->remain--;        \
  |  |   62|  26.4k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 26.4k]
  |  |  ------------------
  ------------------
  237|  26.4k|			}
  238|   205k|			else if (chunk->remain >= 2 && *p == '*' && p[1] == '/') {
  ------------------
  |  Branch (238:13): [True: 203k, False: 2.35k]
  |  Branch (238:35): [True: 21.5k, False: 181k]
  |  Branch (238:48): [True: 19.9k, False: 1.67k]
  ------------------
  239|       |				/* end of comment */
  240|  19.9k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  19.9k|	do {                          \
  |  |   50|  19.9k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 19.9k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  19.9k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 19.9k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  19.9k|		else                      \
  |  |   58|  19.9k|			(chunk)->column++;    \
  |  |   59|  19.9k|		(p++);                    \
  |  |   60|  19.9k|		(chunk)->pos++;           \
  |  |   61|  19.9k|		(chunk)->remain--;        \
  |  |   62|  19.9k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  241|  19.9k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  19.9k|	do {                          \
  |  |   50|  19.9k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 19.9k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  19.9k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 19.9k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  19.9k|		else                      \
  |  |   58|  19.9k|			(chunk)->column++;    \
  |  |   59|  19.9k|		(p++);                    \
  |  |   60|  19.9k|		(chunk)->pos++;           \
  |  |   61|  19.9k|		(chunk)->remain--;        \
  |  |   62|  19.9k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 19.9k]
  |  |  ------------------
  ------------------
  242|  19.9k|				comments_nested--;
  243|  19.9k|				if (comments_nested == 0) {
  ------------------
  |  Branch (243:9): [True: 2.25k, False: 17.6k]
  ------------------
  244|  2.25k|					if (parser->flags & UCL_PARSER_SAVE_COMMENTS) {
  ------------------
  |  Branch (244:10): [True: 0, False: 2.25k]
  ------------------
  245|       |						/* p is past the closing star and slash already */
  246|      0|						ucl_save_comment(parser, beg, p - beg);
  247|      0|						beg = NULL;
  248|      0|					}
  249|  2.25k|					goto start;
  250|  2.25k|				}
  251|  19.9k|			}
  252|   185k|			else if (chunk->remain >= 2 && *p == '/' && p[1] == '*') {
  ------------------
  |  Branch (252:13): [True: 183k, False: 2.35k]
  |  Branch (252:35): [True: 70.3k, False: 113k]
  |  Branch (252:48): [True: 67.8k, False: 2.44k]
  ------------------
  253|       |				/* start of nested comment */
  254|  67.8k|				comments_nested++;
  255|  67.8k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  67.8k|	do {                          \
  |  |   50|  67.8k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 67.8k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  67.8k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 67.8k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  67.8k|		else                      \
  |  |   58|  67.8k|			(chunk)->column++;    \
  |  |   59|  67.8k|		(p++);                    \
  |  |   60|  67.8k|		(chunk)->pos++;           \
  |  |   61|  67.8k|		(chunk)->remain--;        \
  |  |   62|  67.8k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 67.8k]
  |  |  ------------------
  ------------------
  256|  67.8k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  67.8k|	do {                          \
  |  |   50|  67.8k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 67.8k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  67.8k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 67.8k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  67.8k|		else                      \
  |  |   58|  67.8k|			(chunk)->column++;    \
  |  |   59|  67.8k|		(p++);                    \
  |  |   60|  67.8k|		(chunk)->pos++;           \
  |  |   61|  67.8k|		(chunk)->remain--;        \
  |  |   62|  67.8k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 67.8k]
  |  |  ------------------
  ------------------
  257|  67.8k|			}
  258|   118k|			else {
  259|       |				/* anything else */
  260|   118k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   118k|	do {                          \
  |  |   50|   118k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 118k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   118k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 6.54k, False: 111k]
  |  |  ------------------
  |  |   54|  6.54k|			(chunk)->line++;      \
  |  |   55|  6.54k|			(chunk)->column = 0;  \
  |  |   56|  6.54k|		}                         \
  |  |   57|   118k|		else                      \
  |  |   58|   118k|			(chunk)->column++;    \
  |  |   59|   118k|		(p++);                    \
  |  |   60|   118k|		(chunk)->pos++;           \
  |  |   61|   118k|		(chunk)->remain--;        \
  |  |   62|   118k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 118k]
  |  |  ------------------
  ------------------
  261|   118k|			}
  262|   234k|		}
  263|  2.75k|		if (comments_nested != 0) {
  ------------------
  |  Branch (263:7): [True: 2.75k, False: 0]
  ------------------
  264|  2.75k|			ucl_set_err(parser, UCL_ENESTED,
  265|  2.75k|						"unfinished multiline comment", &parser->err);
  266|  2.75k|			return false;
  267|  2.75k|		}
  268|  2.75k|	}
  269|       |
  270|   161k|	if (beg && p > beg && (parser->flags & UCL_PARSER_SAVE_COMMENTS)) {
  ------------------
  |  Branch (270:6): [True: 73.0k, False: 88.5k]
  |  Branch (270:13): [True: 73.0k, False: 0]
  |  Branch (270:24): [True: 0, False: 73.0k]
  ------------------
  271|      0|		ucl_save_comment(parser, beg, p - beg);
  272|      0|	}
  273|       |
  274|       |	return true;
  275|   274k|}
ucl_parser.c:ucl_parser_add_container:
  853|   244k|{
  854|   244k|	struct ucl_stack *st;
  855|   244k|	ucl_object_t *nobj;
  856|       |
  857|       |	/*
  858|       |	 * `level` below is the UCL dotted-key nesting level, which says nothing
  859|       |	 * about how deep the containers actually are; the stack depth does, and
  860|       |	 * that is what every recursive walk over the resulting tree (emitting,
  861|       |	 * copying, and destruction itself) is proportional to. Checked before
  862|       |	 * anything is allocated.
  863|       |	 */
  864|   244k|	if (parser->limits.max_depth > 0 &&
  ------------------
  |  Branch (864:6): [True: 244k, False: 0]
  ------------------
  865|   244k|		(uint64_t) parser->cur_depth >= parser->limits.max_depth) {
  ------------------
  |  Branch (865:3): [True: 7, False: 244k]
  ------------------
  866|      7|		ucl_set_err(parser, UCL_ENESTED, "data is nested too deep",
  867|      7|					&parser->err);
  868|       |
  869|      7|		return NULL;
  870|      7|	}
  871|       |
  872|   244k|	if (obj == NULL) {
  ------------------
  |  Branch (872:6): [True: 79.5k, False: 165k]
  ------------------
  873|  79.5k|		nobj = ucl_object_new_full(is_array ? UCL_ARRAY : UCL_OBJECT, parser->chunks->priority);
  ------------------
  |  Branch (873:30): [True: 4.82k, False: 74.7k]
  ------------------
  874|  79.5k|		if (nobj == NULL) {
  ------------------
  |  Branch (874:7): [True: 0, False: 79.5k]
  ------------------
  875|      0|			goto enomem0;
  876|      0|		}
  877|       |
  878|  79.5k|		if (!ucl_parser_account_node(parser)) {
  ------------------
  |  Branch (878:7): [True: 0, False: 79.5k]
  ------------------
  879|      0|			ucl_object_unref(nobj);
  880|       |
  881|      0|			return NULL;
  882|      0|		}
  883|  79.5k|	}
  884|   165k|	else {
  885|   165k|		if (obj->type == (is_array ? UCL_OBJECT : UCL_ARRAY)) {
  ------------------
  |  Branch (885:7): [True: 0, False: 165k]
  |  Branch (885:21): [True: 132k, False: 32.3k]
  ------------------
  886|       |			/* Bad combination for merge: array and object */
  887|      0|			ucl_set_err(parser, UCL_EMERGE,
  888|      0|						"cannot merge an object with an array",
  889|      0|						&parser->err);
  890|       |
  891|      0|			return NULL;
  892|      0|		}
  893|   165k|		if ((obj->type != UCL_NULL || obj->value.ov != NULL) &&
  ------------------
  |  Branch (893:8): [True: 80, False: 165k]
  |  Branch (893:33): [True: 0, False: 165k]
  ------------------
  894|     80|			obj->type != (is_array ? UCL_ARRAY : UCL_OBJECT)) {
  ------------------
  |  Branch (894:4): [True: 19, False: 61]
  |  Branch (894:18): [True: 0, False: 80]
  ------------------
  895|       |			/*
  896|       |			 * Only an empty placeholder or a container of the same kind can
  897|       |			 * become this container: retyping a scalar in place would reuse
  898|       |			 * its value as the container's storage. A UCL_NULL object counts as
  899|       |			 * a placeholder only if it carries no storage - parsing `null` over
  900|       |			 * a scalar sets the type and leaves value.* in place.
  901|       |			 */
  902|     19|			ucl_set_err(parser, UCL_EMERGE,
  903|     19|						"cannot turn a scalar value into a container",
  904|     19|						&parser->err);
  905|       |
  906|     19|			return NULL;
  907|     19|		}
  908|   165k|		nobj = obj;
  909|   165k|		nobj->type = is_array ? UCL_ARRAY : UCL_OBJECT;
  ------------------
  |  Branch (909:16): [True: 132k, False: 32.3k]
  ------------------
  910|   165k|	}
  911|       |
  912|   244k|	if (!is_array) {
  ------------------
  |  Branch (912:6): [True: 107k, False: 137k]
  ------------------
  913|   107k|		if (nobj->value.ov == NULL) {
  ------------------
  |  Branch (913:7): [True: 106k, False: 61]
  ------------------
  914|   106k|			nobj->value.ov = ucl_hash_create(parser->flags & UCL_PARSER_KEY_LOWERCASE);
  915|   106k|			if (nobj->value.ov == NULL) {
  ------------------
  |  Branch (915:8): [True: 0, False: 106k]
  ------------------
  916|      0|				goto enomem1;
  917|      0|			}
  918|   106k|		}
  919|   107k|		parser->state = UCL_STATE_KEY;
  920|   107k|	}
  921|   137k|	else {
  922|   137k|		parser->state = UCL_STATE_VALUE;
  923|   137k|	}
  924|       |
  925|   244k|	st = UCL_ALLOC(sizeof(struct ucl_stack));
  ------------------
  |  |   71|   244k|#define UCL_ALLOC(size) malloc(size)
  ------------------
  926|       |
  927|   244k|	if (st == NULL) {
  ------------------
  |  Branch (927:6): [True: 0, False: 244k]
  ------------------
  928|      0|		goto enomem1;
  929|      0|	}
  930|       |
  931|   244k|	st->obj = nobj;
  932|       |
  933|   244k|	if (level >= UINT16_MAX) {
  ------------------
  |  Branch (933:6): [True: 0, False: 244k]
  ------------------
  934|      0|		ucl_set_err(parser, UCL_ENESTED,
  935|      0|					"objects are nesting too deep (over 65535 limit)",
  936|      0|					&parser->err);
  937|      0|		if (nobj != obj) {
  ------------------
  |  Branch (937:7): [True: 0, False: 0]
  ------------------
  938|      0|			ucl_object_unref(obj);
  939|      0|		}
  940|       |
  941|      0|		UCL_FREE(sizeof(struct ucl_stack), st);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  942|       |
  943|      0|		return NULL;
  944|      0|	}
  945|       |
  946|       |
  947|   244k|	st->e.params.level = level;
  948|   244k|	st->e.params.line = parser->chunks->line;
  949|   244k|	st->chunk = parser->chunks;
  950|       |
  951|   244k|	if (has_obrace) {
  ------------------
  |  Branch (951:6): [True: 150k, False: 94.0k]
  ------------------
  952|   150k|		st->e.params.flags = UCL_STACK_HAS_OBRACE;
  953|   150k|	}
  954|  94.0k|	else {
  955|  94.0k|		st->e.params.flags = 0;
  956|  94.0k|	}
  957|       |
  958|   244k|	LL_PREPEND(parser->stack, st);
  ------------------
  |  |  317|   244k|    LL_PREPEND2(head,add,next)
  |  |  ------------------
  |  |  |  |  319|   244k|#define LL_PREPEND2(head,add,next)                                                             \
  |  |  |  |  320|   244k|do {                                                                                           \
  |  |  |  |  321|   244k|  (add)->next = (head);                                                                        \
  |  |  |  |  322|   244k|  (head) = (add);                                                                              \
  |  |  |  |  323|   244k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:10): [Folded, False: 244k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  959|   244k|	parser->cur_depth++;
  960|   244k|	parser->cur_obj = nobj;
  961|       |
  962|   244k|	return nobj;
  963|      0|enomem1:
  964|      0|	if (nobj != obj)
  ------------------
  |  Branch (964:6): [True: 0, False: 0]
  ------------------
  965|      0|		ucl_object_unref(nobj);
  966|      0|enomem0:
  967|      0|	ucl_set_err(parser, UCL_EINTERNAL, "cannot allocate memory for an object",
  968|      0|				&parser->err);
  969|       |	return NULL;
  970|      0|}
ucl_parser.c:ucl_parser_add_chunk_brace:
 1000|    162|{
 1001|    162|	struct ucl_stack *st;
 1002|       |
 1003|    162|	st = UCL_ALLOC(sizeof(struct ucl_stack));
  ------------------
  |  |   71|    162|#define UCL_ALLOC(size) malloc(size)
  ------------------
 1004|    162|	if (st == NULL) {
  ------------------
  |  Branch (1004:6): [True: 0, False: 162]
  ------------------
 1005|      0|		ucl_set_err(parser, UCL_EINTERNAL,
 1006|      0|					"cannot allocate memory for an object", &parser->err);
 1007|      0|		return false;
 1008|      0|	}
 1009|       |
 1010|    162|	st->obj = parser->stack->obj;
 1011|    162|	st->e.params.level = parser->stack->e.params.level;
 1012|    162|	st->e.params.flags = UCL_STACK_HAS_OBRACE | UCL_STACK_AUTOMATIC;
 1013|    162|	st->e.params.line = chunk->line;
 1014|    162|	st->chunk = chunk;
 1015|    162|	LL_PREPEND(parser->stack, st);
  ------------------
  |  |  317|    162|    LL_PREPEND2(head,add,next)
  |  |  ------------------
  |  |  |  |  319|    162|#define LL_PREPEND2(head,add,next)                                                             \
  |  |  |  |  320|    162|do {                                                                                           \
  |  |  |  |  321|    162|  (add)->next = (head);                                                                        \
  |  |  |  |  322|    162|  (head) = (add);                                                                              \
  |  |  |  |  323|    162|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:10): [Folded, False: 162]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1016|       |
 1017|       |	return true;
 1018|    162|}
ucl_parser.c:ucl_parse_key:
 1831|   419k|{
 1832|   419k|	const unsigned char *p, *c = NULL, *end, *t;
 1833|   419k|	const char *key = NULL;
 1834|   419k|	bool got_quote = false, got_eq = false, got_semicolon = false,
 1835|   419k|		 need_unescape = false, ucl_escape = false, var_expand = false,
 1836|   419k|		 got_sep = false;
 1837|   419k|	ucl_object_t *nobj;
 1838|   419k|	ssize_t keylen;
 1839|       |
 1840|   419k|	p = chunk->pos;
 1841|       |
 1842|   419k|	if (p >= chunk->end) {
  ------------------
  |  Branch (1842:6): [True: 0, False: 419k]
  ------------------
 1843|      0|		ucl_set_err(parser, UCL_ESYNTAX,
 1844|      0|					"unexpected end of input while parsing key",
 1845|      0|					&parser->err);
 1846|      0|		*end_of_object = true;
 1847|      0|		return true;
 1848|      0|	}
 1849|       |
 1850|   419k|	if (*p == '.' && !(parser->flags & UCL_PARSER_DISABLE_MACRO)) {
  ------------------
  |  Branch (1850:6): [True: 70.8k, False: 348k]
  |  Branch (1850:19): [True: 70.8k, False: 0]
  ------------------
 1851|  70.8k|		ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  70.8k|	do {                          \
  |  |   50|  70.8k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 70.8k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  70.8k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 70.8k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  70.8k|		else                      \
  |  |   58|  70.8k|			(chunk)->column++;    \
  |  |   59|  70.8k|		(p++);                    \
  |  |   60|  70.8k|		(chunk)->pos++;           \
  |  |   61|  70.8k|		(chunk)->remain--;        \
  |  |   62|  70.8k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 70.8k]
  |  |  ------------------
  ------------------
 1852|  70.8k|		parser->prev_state = parser->state;
 1853|  70.8k|		parser->state = UCL_STATE_MACRO_NAME;
 1854|  70.8k|		*end_of_object = false;
 1855|  70.8k|		return true;
 1856|  70.8k|	}
 1857|  1.87M|	while (p < chunk->end) {
  ------------------
  |  Branch (1857:9): [True: 1.85M, False: 18.5k]
  ------------------
 1858|       |		/*
 1859|       |		 * A key must start with alpha, number, '/' or '_' and end with space character
 1860|       |		 */
 1861|  1.85M|		if (c == NULL) {
  ------------------
  |  Branch (1861:7): [True: 419k, False: 1.43M]
  ------------------
 1862|   419k|			if (chunk->remain >= 2 && ucl_lex_is_comment(p[0], p[1])) {
  ------------------
  |  Branch (1862:8): [True: 418k, False: 827]
  |  Branch (1862:30): [True: 59.0k, False: 359k]
  ------------------
 1863|  59.0k|				if (!ucl_skip_comments(parser)) {
  ------------------
  |  Branch (1863:9): [True: 1.05k, False: 58.0k]
  ------------------
 1864|  1.05k|					return false;
 1865|  1.05k|				}
 1866|  58.0k|				p = chunk->pos;
 1867|  58.0k|			}
 1868|   360k|			else if (ucl_test_character(*p, UCL_CHARACTER_WHITESPACE_UNSAFE)) {
  ------------------
  |  Branch (1868:13): [True: 31.0k, False: 329k]
  ------------------
 1869|  31.0k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  31.0k|	do {                          \
  |  |   50|  31.0k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 31.0k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  31.0k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 28.1k, False: 2.90k]
  |  |  ------------------
  |  |   54|  28.1k|			(chunk)->line++;      \
  |  |   55|  28.1k|			(chunk)->column = 0;  \
  |  |   56|  28.1k|		}                         \
  |  |   57|  31.0k|		else                      \
  |  |   58|  31.0k|			(chunk)->column++;    \
  |  |   59|  31.0k|		(p++);                    \
  |  |   60|  31.0k|		(chunk)->pos++;           \
  |  |   61|  31.0k|		(chunk)->remain--;        \
  |  |   62|  31.0k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 31.0k]
  |  |  ------------------
  ------------------
 1870|  31.0k|			}
 1871|   329k|			else if (ucl_test_character(*p, UCL_CHARACTER_KEY_START)) {
  ------------------
  |  Branch (1871:13): [True: 307k, False: 21.6k]
  ------------------
 1872|       |				/* The first symbol */
 1873|   307k|				c = p;
 1874|   307k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   307k|	do {                          \
  |  |   50|   307k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 307k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   307k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 307k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|   307k|		else                      \
  |  |   58|   307k|			(chunk)->column++;    \
  |  |   59|   307k|		(p++);                    \
  |  |   60|   307k|		(chunk)->pos++;           \
  |  |   61|   307k|		(chunk)->remain--;        \
  |  |   62|   307k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 307k]
  |  |  ------------------
  ------------------
 1875|   307k|				*got_content = true;
 1876|   307k|			}
 1877|  21.6k|			else if (*p == '"') {
  ------------------
  |  Branch (1877:13): [True: 10.3k, False: 11.2k]
  ------------------
 1878|       |				/* JSON style key */
 1879|  10.3k|				c = p + 1;
 1880|  10.3k|				got_quote = true;
 1881|  10.3k|				*got_content = true;
 1882|  10.3k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  10.3k|	do {                          \
  |  |   50|  10.3k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 10.3k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  10.3k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 10.3k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  10.3k|		else                      \
  |  |   58|  10.3k|			(chunk)->column++;    \
  |  |   59|  10.3k|		(p++);                    \
  |  |   60|  10.3k|		(chunk)->pos++;           \
  |  |   61|  10.3k|		(chunk)->remain--;        \
  |  |   62|  10.3k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 10.3k]
  |  |  ------------------
  ------------------
 1883|  10.3k|			}
 1884|  11.2k|			else if (*p == '}') {
  ------------------
  |  Branch (1884:13): [True: 232, False: 11.0k]
  ------------------
 1885|       |				/* We have actually end of an object */
 1886|    232|				*end_of_object = true;
 1887|    232|				return true;
 1888|    232|			}
 1889|  11.0k|			else if (*p == '.' && (parser->flags & UCL_PARSER_DISABLE_MACRO)) {
  ------------------
  |  Branch (1889:13): [True: 9.53k, False: 1.51k]
  |  Branch (1889:26): [True: 0, False: 9.53k]
  ------------------
 1890|       |				/* Macros are comments then, so look for a key after it */
 1891|      0|				if (!ucl_skip_macro_as_comment(parser, chunk)) {
  ------------------
  |  Branch (1891:9): [True: 0, False: 0]
  ------------------
 1892|      0|					return false;
 1893|      0|				}
 1894|      0|				p = chunk->pos;
 1895|      0|			}
 1896|  11.0k|			else if (*p == '.') {
  ------------------
  |  Branch (1896:13): [True: 9.53k, False: 1.51k]
  ------------------
 1897|  9.53k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  9.53k|	do {                          \
  |  |   50|  9.53k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 9.53k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  9.53k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 9.53k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  9.53k|		else                      \
  |  |   58|  9.53k|			(chunk)->column++;    \
  |  |   59|  9.53k|		(p++);                    \
  |  |   60|  9.53k|		(chunk)->pos++;           \
  |  |   61|  9.53k|		(chunk)->remain--;        \
  |  |   62|  9.53k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 9.53k]
  |  |  ------------------
  ------------------
 1898|  9.53k|				parser->prev_state = parser->state;
 1899|  9.53k|				parser->state = UCL_STATE_MACRO_NAME;
 1900|  9.53k|				return true;
 1901|  9.53k|			}
 1902|  1.51k|			else {
 1903|       |				/* Invalid identifier */
 1904|  1.51k|				ucl_set_err(parser, UCL_ESYNTAX, "key must begin with a letter",
 1905|  1.51k|							&parser->err);
 1906|  1.51k|				return false;
 1907|  1.51k|			}
 1908|   419k|		}
 1909|  1.43M|		else {
 1910|       |			/* Parse the body of a key */
 1911|  1.43M|			if (!got_quote) {
  ------------------
  |  Branch (1911:8): [True: 1.42M, False: 10.3k]
  ------------------
 1912|  1.42M|				if (ucl_test_character(*p, UCL_CHARACTER_KEY)) {
  ------------------
  |  Branch (1912:9): [True: 1.11M, False: 306k]
  ------------------
 1913|  1.11M|					*got_content = true;
 1914|  1.11M|					ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  1.11M|	do {                          \
  |  |   50|  1.11M|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 1.11M]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  1.11M|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 1.11M]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  1.11M|		else                      \
  |  |   58|  1.11M|			(chunk)->column++;    \
  |  |   59|  1.11M|		(p++);                    \
  |  |   60|  1.11M|		(chunk)->pos++;           \
  |  |   61|  1.11M|		(chunk)->remain--;        \
  |  |   62|  1.11M|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 1.11M]
  |  |  ------------------
  ------------------
 1915|  1.11M|				}
 1916|   306k|				else if (ucl_test_character(*p, UCL_CHARACTER_KEY_SEP)) {
  ------------------
  |  Branch (1916:14): [True: 304k, False: 2.88k]
  ------------------
 1917|   304k|					end = p;
 1918|   304k|					break;
 1919|   304k|				}
 1920|  2.88k|				else {
 1921|  2.88k|					ucl_set_err(parser, UCL_ESYNTAX, "invalid character in a key",
 1922|  2.88k|								&parser->err);
 1923|  2.88k|					return false;
 1924|  2.88k|				}
 1925|  1.42M|			}
 1926|  10.3k|			else {
 1927|       |				/* We need to parse json like quoted string */
 1928|  10.3k|				if (!ucl_lex_json_string(parser, chunk, &need_unescape, &ucl_escape, &var_expand)) {
  ------------------
  |  Branch (1928:9): [True: 1.13k, False: 9.19k]
  ------------------
 1929|  1.13k|					return false;
 1930|  1.13k|				}
 1931|       |				/* Always escape keys obtained via json */
 1932|  9.19k|				end = chunk->pos - 1;
 1933|  9.19k|				p = chunk->pos;
 1934|  9.19k|				break;
 1935|  10.3k|			}
 1936|  1.43M|		}
 1937|  1.85M|	}
 1938|       |
 1939|   331k|	if (p >= chunk->end && *got_content) {
  ------------------
  |  Branch (1939:6): [True: 18.5k, False: 313k]
  |  Branch (1939:25): [True: 971, False: 17.6k]
  ------------------
 1940|    971|		ucl_set_err(parser, UCL_ESYNTAX, "unfinished key", &parser->err);
 1941|    971|		return false;
 1942|    971|	}
 1943|   330k|	else if (!*got_content) {
  ------------------
  |  Branch (1943:11): [True: 17.6k, False: 313k]
  ------------------
 1944|  17.6k|		return true;
 1945|  17.6k|	}
 1946|   313k|	*end_of_object = false;
 1947|       |	/* We are now at the end of the key, need to parse the rest */
 1948|   665k|	while (p < chunk->end) {
  ------------------
  |  Branch (1948:9): [True: 665k, False: 717]
  ------------------
 1949|   665k|		if (ucl_test_character(*p, UCL_CHARACTER_WHITESPACE)) {
  ------------------
  |  Branch (1949:7): [True: 122k, False: 542k]
  ------------------
 1950|   122k|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   122k|	do {                          \
  |  |   50|   122k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 122k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   122k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 122k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|   122k|		else                      \
  |  |   58|   122k|			(chunk)->column++;    \
  |  |   59|   122k|		(p++);                    \
  |  |   60|   122k|		(chunk)->pos++;           \
  |  |   61|   122k|		(chunk)->remain--;        \
  |  |   62|   122k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 122k]
  |  |  ------------------
  ------------------
 1951|   122k|		}
 1952|   542k|		else if (*p == '=') {
  ------------------
  |  Branch (1952:12): [True: 26.1k, False: 516k]
  ------------------
 1953|  26.1k|			if (!got_eq && !got_semicolon) {
  ------------------
  |  Branch (1953:8): [True: 26.1k, False: 72]
  |  Branch (1953:19): [True: 25.9k, False: 196]
  ------------------
 1954|  25.9k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  25.9k|	do {                          \
  |  |   50|  25.9k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 25.9k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  25.9k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 25.9k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  25.9k|		else                      \
  |  |   58|  25.9k|			(chunk)->column++;    \
  |  |   59|  25.9k|		(p++);                    \
  |  |   60|  25.9k|		(chunk)->pos++;           \
  |  |   61|  25.9k|		(chunk)->remain--;        \
  |  |   62|  25.9k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 25.9k]
  |  |  ------------------
  ------------------
 1955|  25.9k|				got_eq = true;
 1956|  25.9k|			}
 1957|    268|			else {
 1958|    268|				ucl_set_err(parser, UCL_ESYNTAX, "unexpected '=' character",
 1959|    268|							&parser->err);
 1960|    268|				return false;
 1961|    268|			}
 1962|  26.1k|		}
 1963|   516k|		else if (*p == ':') {
  ------------------
  |  Branch (1963:12): [True: 202k, False: 313k]
  ------------------
 1964|   202k|			if (!got_eq && !got_semicolon) {
  ------------------
  |  Branch (1964:8): [True: 202k, False: 241]
  |  Branch (1964:19): [True: 202k, False: 74]
  ------------------
 1965|   202k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   202k|	do {                          \
  |  |   50|   202k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 202k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   202k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 202k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|   202k|		else                      \
  |  |   58|   202k|			(chunk)->column++;    \
  |  |   59|   202k|		(p++);                    \
  |  |   60|   202k|		(chunk)->pos++;           \
  |  |   61|   202k|		(chunk)->remain--;        \
  |  |   62|   202k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 202k]
  |  |  ------------------
  ------------------
 1966|   202k|				got_semicolon = true;
 1967|   202k|			}
 1968|    315|			else {
 1969|    315|				ucl_set_err(parser, UCL_ESYNTAX, "unexpected ':' character",
 1970|    315|							&parser->err);
 1971|    315|				return false;
 1972|    315|			}
 1973|   202k|		}
 1974|   313k|		else if (chunk->remain >= 2 && ucl_lex_is_comment(p[0], p[1])) {
  ------------------
  |  Branch (1974:12): [True: 311k, False: 2.57k]
  |  Branch (1974:34): [True: 1.97k, False: 309k]
  ------------------
 1975|       |			/* Check for comment */
 1976|  1.97k|			if (!ucl_skip_comments(parser)) {
  ------------------
  |  Branch (1976:8): [True: 218, False: 1.75k]
  ------------------
 1977|    218|				return false;
 1978|    218|			}
 1979|  1.75k|			p = chunk->pos;
 1980|  1.75k|		}
 1981|   311k|		else {
 1982|       |			/* Start value */
 1983|   311k|			break;
 1984|   311k|		}
 1985|   665k|	}
 1986|       |
 1987|   312k|	if (p >= chunk->end) {
  ------------------
  |  Branch (1987:6): [True: 717, False: 311k]
  ------------------
 1988|    717|		ucl_set_err(parser, UCL_ESYNTAX, "unfinished key", &parser->err);
 1989|    717|		return false;
 1990|    717|	}
 1991|       |
 1992|   311k|	got_sep = got_semicolon || got_eq;
  ------------------
  |  Branch (1992:12): [True: 201k, False: 109k]
  |  Branch (1992:29): [True: 25.1k, False: 84.8k]
  ------------------
 1993|       |
 1994|   311k|	if (!got_sep) {
  ------------------
  |  Branch (1994:6): [True: 84.8k, False: 226k]
  ------------------
 1995|       |		/*
 1996|       |		 * Maybe we have more keys nested, so search for termination character.
 1997|       |		 * Possible choices:
 1998|       |		 * 1) key1 key2 ... keyN [:=] value <- we treat that as error
 1999|       |		 * 2) key1 ... keyN {} or [] <- we treat that as nested objects
 2000|       |		 * 3) key1 value[;,\n] <- we treat that as linear object
 2001|       |		 */
 2002|  84.8k|		t = p;
 2003|  84.8k|		*next_key = false;
 2004|  84.8k|		while (ucl_test_character(*t, UCL_CHARACTER_WHITESPACE)) {
  ------------------
  |  Branch (2004:10): [True: 0, False: 84.8k]
  ------------------
 2005|      0|			t++;
 2006|      0|		}
 2007|       |		/* Check first non-space character after a key */
 2008|  84.8k|		if (*t != '{' && *t != '[') {
  ------------------
  |  Branch (2008:7): [True: 77.9k, False: 6.93k]
  |  Branch (2008:20): [True: 71.9k, False: 5.94k]
  ------------------
 2009|  13.4M|			while (t < chunk->end) {
  ------------------
  |  Branch (2009:11): [True: 13.4M, False: 12.8k]
  ------------------
 2010|  13.4M|				if (*t == ',' || *t == ';' || *t == '\n' || *t == '\r') {
  ------------------
  |  Branch (2010:9): [True: 1.33k, False: 13.4M]
  |  Branch (2010:22): [True: 6.17k, False: 13.4M]
  |  Branch (2010:35): [True: 29.3k, False: 13.4M]
  |  Branch (2010:49): [True: 827, False: 13.4M]
  ------------------
 2011|  37.6k|					break;
 2012|  37.6k|				}
 2013|  13.4M|				else if (*t == '{' || *t == '[') {
  ------------------
  |  Branch (2013:14): [True: 15.9k, False: 13.4M]
  |  Branch (2013:27): [True: 5.53k, False: 13.4M]
  ------------------
 2014|  21.4k|					*next_key = true;
 2015|  21.4k|					break;
 2016|  21.4k|				}
 2017|  13.4M|				t++;
 2018|  13.4M|			}
 2019|  71.9k|		}
 2020|  84.8k|	}
 2021|       |
 2022|       |	/* Create a new object */
 2023|   311k|	nobj = ucl_object_new_full(UCL_NULL, parser->chunks->priority);
 2024|   311k|	if (nobj == NULL) {
  ------------------
  |  Branch (2024:6): [True: 0, False: 311k]
  ------------------
 2025|      0|		ucl_set_err(parser, UCL_EINTERNAL, "cannot allocate memory for an object",
 2026|      0|					&parser->err);
 2027|      0|		return false;
 2028|      0|	}
 2029|       |
 2030|   311k|	if (!ucl_parser_account_node(parser)) {
  ------------------
  |  Branch (2030:6): [True: 0, False: 311k]
  ------------------
 2031|      0|		ucl_object_unref(nobj);
 2032|      0|		return false;
 2033|      0|	}
 2034|       |
 2035|   311k|	keylen = ucl_copy_or_store_ptr(parser, c, &nobj->trash_stack[UCL_TRASH_KEY],
  ------------------
  |  |  153|   311k|#define UCL_TRASH_KEY 0
  ------------------
 2036|   311k|								   &key, end - c, parser->limits.max_key_length,
 2037|   311k|								   need_unescape, parser->flags & UCL_PARSER_KEY_LOWERCASE,
 2038|   311k|								   false, false);
 2039|   311k|	if (keylen == -1) {
  ------------------
  |  Branch (2039:6): [True: 0, False: 311k]
  ------------------
 2040|      0|		ucl_object_unref(nobj);
 2041|      0|		return false;
 2042|      0|	}
 2043|   311k|	else if (keylen == 0) {
  ------------------
  |  Branch (2043:11): [True: 287, False: 311k]
  ------------------
 2044|    287|		ucl_set_err(parser, UCL_ESYNTAX, "empty keys are not allowed", &parser->err);
 2045|    287|		ucl_object_unref(nobj);
 2046|    287|		return false;
 2047|    287|	}
 2048|       |
 2049|   311k|	nobj->key = key;
 2050|   311k|	nobj->keylen = keylen;
 2051|       |
 2052|       |	/*
 2053|       |	 * Must be set before processing: on a merge into an older object of the
 2054|       |	 * same key, ucl_parser_add_object_element releases nobj, or keeps it
 2055|       |	 * aside until the value shows whether to merge
 2056|       |	 */
 2057|   311k|	if (ucl_escape) {
  ------------------
  |  Branch (2057:6): [True: 599, False: 310k]
  ------------------
 2058|    599|		nobj->flags |= UCL_OBJECT_NEED_KEY_ESCAPE;
 2059|    599|	}
 2060|       |
 2061|       |	/*
 2062|       |	 * The caller nests the following keys into the value whenever next_key is
 2063|       |	 * set, even by an earlier key of the chain. Otherwise the value is not
 2064|       |	 * read yet, and it is up to ucl_parse_value whether it is a container.
 2065|       |	 */
 2066|   311k|	if (!ucl_parser_add_object_element(parser, nobj, parser->chunks->strategy,
  ------------------
  |  Branch (2066:6): [True: 67, False: 311k]
  ------------------
 2067|   311k|									   *next_key ? UCL_VALUE_CONTAINER : UCL_VALUE_UNKNOWN)) {
  ------------------
  |  Branch (2067:13): [True: 22.3k, False: 289k]
  ------------------
 2068|       |		/* Not taken on failure */
 2069|     67|		ucl_object_unref(nobj);
 2070|       |
 2071|     67|		return false;
 2072|     67|	}
 2073|       |
 2074|   311k|	return true;
 2075|   311k|}
ucl_parser.c:ucl_lex_json_string:
 1374|   357k|{
 1375|   357k|	const unsigned char *p = chunk->pos;
 1376|   357k|	unsigned char c;
 1377|   357k|	int i;
 1378|       |
 1379|  2.62M|	while (p < chunk->end) {
  ------------------
  |  Branch (1379:9): [True: 2.62M, False: 369]
  ------------------
 1380|  2.62M|		c = *p;
 1381|  2.62M|		if (c < 0x1F) {
  ------------------
  |  Branch (1381:7): [True: 505, False: 2.62M]
  ------------------
 1382|       |			/* Unmasked control character */
 1383|    505|			if (c == '\n') {
  ------------------
  |  Branch (1383:8): [True: 106, False: 399]
  ------------------
 1384|    106|				ucl_set_err(parser, UCL_ESYNTAX, "unexpected newline",
 1385|    106|							&parser->err);
 1386|    106|			}
 1387|    399|			else {
 1388|    399|				ucl_set_err(parser, UCL_ESYNTAX, "unexpected control character",
 1389|    399|							&parser->err);
 1390|    399|			}
 1391|    505|			return false;
 1392|    505|		}
 1393|  2.62M|		else if (c == '\\') {
  ------------------
  |  Branch (1393:12): [True: 7.89k, False: 2.61M]
  ------------------
 1394|  7.89k|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  7.89k|	do {                          \
  |  |   50|  7.89k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 7.89k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  7.89k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 7.89k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  7.89k|		else                      \
  |  |   58|  7.89k|			(chunk)->column++;    \
  |  |   59|  7.89k|		(p++);                    \
  |  |   60|  7.89k|		(chunk)->pos++;           \
  |  |   61|  7.89k|		(chunk)->remain--;        \
  |  |   62|  7.89k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 7.89k]
  |  |  ------------------
  ------------------
 1395|  7.89k|			if (p >= chunk->end) {
  ------------------
  |  Branch (1395:8): [True: 235, False: 7.66k]
  ------------------
 1396|    235|				ucl_set_err(parser, UCL_ESYNTAX, "unfinished escape character",
 1397|    235|							&parser->err);
 1398|    235|				return false;
 1399|    235|			}
 1400|  7.66k|			c = *p;
 1401|  7.66k|			if (ucl_test_character(c, UCL_CHARACTER_ESCAPE)) {
  ------------------
  |  Branch (1401:8): [True: 5.93k, False: 1.72k]
  ------------------
 1402|  5.93k|				if (c == 'u') {
  ------------------
  |  Branch (1402:9): [True: 834, False: 5.09k]
  ------------------
 1403|    834|					ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|    834|	do {                          \
  |  |   50|    834|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 834]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|    834|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 834]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|    834|		else                      \
  |  |   58|    834|			(chunk)->column++;    \
  |  |   59|    834|		(p++);                    \
  |  |   60|    834|		(chunk)->pos++;           \
  |  |   61|    834|		(chunk)->remain--;        \
  |  |   62|    834|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 834]
  |  |  ------------------
  ------------------
 1404|  2.27k|					for (i = 0; i < 4 && p < chunk->end; i++) {
  ------------------
  |  Branch (1404:18): [True: 2.04k, False: 230]
  |  Branch (1404:27): [True: 1.98k, False: 61]
  ------------------
 1405|  1.98k|						if (!isxdigit(*p)) {
  ------------------
  |  Branch (1405:11): [True: 543, False: 1.43k]
  ------------------
 1406|    543|							ucl_set_err(parser, UCL_ESYNTAX, "invalid utf escape",
 1407|    543|										&parser->err);
 1408|    543|							return false;
 1409|    543|						}
 1410|  1.43k|						ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  1.43k|	do {                          \
  |  |   50|  1.43k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 1.43k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  1.43k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 1.43k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  1.43k|		else                      \
  |  |   58|  1.43k|			(chunk)->column++;    \
  |  |   59|  1.43k|		(p++);                    \
  |  |   60|  1.43k|		(chunk)->pos++;           \
  |  |   61|  1.43k|		(chunk)->remain--;        \
  |  |   62|  1.43k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 1.43k]
  |  |  ------------------
  ------------------
 1411|  1.43k|					}
 1412|    291|					if (p >= chunk->end) {
  ------------------
  |  Branch (1412:10): [True: 96, False: 195]
  ------------------
 1413|     96|						ucl_set_err(parser, UCL_ESYNTAX,
 1414|     96|									"unfinished escape character",
 1415|     96|									&parser->err);
 1416|     96|						return false;
 1417|     96|					}
 1418|    291|				}
 1419|  5.09k|				else {
 1420|  5.09k|					ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  5.09k|	do {                          \
  |  |   50|  5.09k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 5.09k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  5.09k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 5.09k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  5.09k|		else                      \
  |  |   58|  5.09k|			(chunk)->column++;    \
  |  |   59|  5.09k|		(p++);                    \
  |  |   60|  5.09k|		(chunk)->pos++;           \
  |  |   61|  5.09k|		(chunk)->remain--;        \
  |  |   62|  5.09k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 5.09k]
  |  |  ------------------
  ------------------
 1421|  5.09k|				}
 1422|  5.93k|			}
 1423|  7.02k|			*need_unescape = true;
 1424|  7.02k|			*ucl_escape = true;
 1425|  7.02k|			continue;
 1426|  7.66k|		}
 1427|  2.61M|		else if (c == '"') {
  ------------------
  |  Branch (1427:12): [True: 355k, False: 2.26M]
  ------------------
 1428|   355k|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   355k|	do {                          \
  |  |   50|   355k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 355k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   355k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 355k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|   355k|		else                      \
  |  |   58|   355k|			(chunk)->column++;    \
  |  |   59|   355k|		(p++);                    \
  |  |   60|   355k|		(chunk)->pos++;           \
  |  |   61|   355k|		(chunk)->remain--;        \
  |  |   62|   355k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 355k]
  |  |  ------------------
  ------------------
 1429|   355k|			return true;
 1430|   355k|		}
 1431|  2.26M|		else if (ucl_test_character(c, UCL_CHARACTER_UCL_UNSAFE)) {
  ------------------
  |  Branch (1431:12): [True: 29.1k, False: 2.23M]
  ------------------
 1432|  29.1k|			*ucl_escape = true;
 1433|  29.1k|		}
 1434|  2.23M|		else if (c == '$') {
  ------------------
  |  Branch (1434:12): [True: 562, False: 2.23M]
  ------------------
 1435|    562|			*var_expand = true;
 1436|    562|		}
 1437|  2.26M|		ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  2.26M|	do {                          \
  |  |   50|  2.26M|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 2.26M]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  2.26M|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 2.26M]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  2.26M|		else                      \
  |  |   58|  2.26M|			(chunk)->column++;    \
  |  |   59|  2.26M|		(p++);                    \
  |  |   60|  2.26M|		(chunk)->pos++;           \
  |  |   61|  2.26M|		(chunk)->remain--;        \
  |  |   62|  2.26M|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 2.26M]
  |  |  ------------------
  ------------------
 1438|  2.26M|	}
 1439|       |
 1440|    369|	ucl_set_err(parser, UCL_ESYNTAX,
 1441|    369|				"no quote at the end of json string",
 1442|    369|				&parser->err);
 1443|       |	return false;
 1444|   357k|}
ucl_parser.c:ucl_copy_or_store_ptr:
  747|  1.05M|{
  748|  1.05M|	ssize_t ret = -1, tret;
  749|  1.05M|	unsigned char *tmp;
  750|  1.05M|	size_t alloc_len;
  751|       |
  752|       |	/*
  753|       |	 * Checked before allocating: `in_len` comes straight from the input and
  754|       |	 * is an upper bound on the result, as neither unescaping nor lowercasing
  755|       |	 * can make a string longer.
  756|       |	 */
  757|  1.05M|	if (max_len > 0 && (uint64_t) in_len > max_len) {
  ------------------
  |  Branch (757:6): [True: 0, False: 1.05M]
  |  Branch (757:21): [True: 0, False: 0]
  ------------------
  758|      0|		ucl_set_err(parser, UCL_ELIMIT, "string is too long", &parser->err);
  759|       |
  760|      0|		return -1;
  761|      0|	}
  762|       |
  763|  1.05M|	if (need_unescape || need_lowercase ||
  ------------------
  |  Branch (763:6): [True: 11.7k, False: 1.03M]
  |  Branch (763:23): [True: 0, False: 1.03M]
  ------------------
  764|  1.03M|		(need_expand && parser->variables != NULL) ||
  ------------------
  |  Branch (764:4): [True: 3.76k, False: 1.03M]
  |  Branch (764:19): [True: 1.92k, False: 1.83k]
  ------------------
  765|  1.05M|		!(parser->flags & UCL_PARSER_ZEROCOPY)) {
  ------------------
  |  Branch (765:3): [True: 1.03M, False: 0]
  ------------------
  766|       |		/* Copy string */
  767|  1.05M|		*dst = NULL;
  768|  1.05M|		if (ucl_size_add(in_len, 1, &alloc_len)) {
  ------------------
  |  Branch (768:7): [True: 1.05M, False: 0]
  ------------------
  769|  1.05M|			*dst = UCL_ALLOC(alloc_len);
  ------------------
  |  |   71|  1.05M|#define UCL_ALLOC(size) malloc(size)
  ------------------
  770|  1.05M|		}
  771|  1.05M|		if (*dst == NULL) {
  ------------------
  |  Branch (771:7): [True: 0, False: 1.05M]
  ------------------
  772|      0|			ucl_set_err(parser, UCL_EINTERNAL, "cannot allocate memory for a string",
  773|      0|						&parser->err);
  774|      0|			return -1;
  775|      0|		}
  776|       |
  777|       |		/*
  778|       |		 * Charge what was actually allocated, not what the decoded string ends
  779|       |		 * up being: unescaping shrinks the contents but keeps the buffer, so
  780|       |		 * charging the decoded length would let escape-heavy input claim more
  781|       |		 * memory than the budget accounts for.
  782|       |		 */
  783|  1.05M|		if (!ucl_parser_account_alloc(parser, (uint64_t) in_len + 1)) {
  ------------------
  |  Branch (783:7): [True: 0, False: 1.05M]
  ------------------
  784|      0|			return -1;
  785|      0|		}
  786|       |
  787|  1.05M|		if (need_lowercase) {
  ------------------
  |  Branch (787:7): [True: 0, False: 1.05M]
  ------------------
  788|      0|			ret = ucl_strlcpy_tolower(*dst, src, alloc_len);
  789|      0|		}
  790|  1.05M|		else {
  791|  1.05M|			ret = ucl_strlcpy_unsafe(*dst, src, alloc_len);
  792|  1.05M|		}
  793|       |
  794|  1.05M|		if (need_unescape) {
  ------------------
  |  Branch (794:7): [True: 11.7k, False: 1.03M]
  ------------------
  795|  11.7k|			if (!unescape_squote) {
  ------------------
  |  Branch (795:8): [True: 11.4k, False: 308]
  ------------------
  796|  11.4k|				ret = ucl_unescape_json_string(*dst, ret);
  797|  11.4k|			}
  798|    308|			else {
  799|    308|				ret = ucl_unescape_squoted_string(*dst, ret);
  800|    308|			}
  801|  11.7k|		}
  802|       |
  803|  1.05M|		if (need_expand) {
  ------------------
  |  Branch (803:7): [True: 4.31k, False: 1.04M]
  ------------------
  804|  4.31k|			tmp = *dst;
  805|  4.31k|			tret = ret;
  806|  4.31k|			ret = ucl_expand_variable(parser, dst, tmp, ret);
  807|  4.31k|			if (*dst == NULL) {
  ------------------
  |  Branch (807:8): [True: 3.16k, False: 1.15k]
  ------------------
  808|       |				/* Nothing to expand */
  809|  3.16k|				*dst = tmp;
  810|  3.16k|				ret = tret;
  811|  3.16k|			}
  812|  1.15k|			else {
  813|       |				/* Free unexpanded value */
  814|  1.15k|				UCL_FREE(in_len + 1, tmp);
  ------------------
  |  |   74|  1.15k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  815|  1.15k|			}
  816|       |
  817|       |			/* Expansion is the one transform that can grow a string */
  818|  4.31k|			if (max_len > 0 && ret > 0 && (uint64_t) ret > max_len) {
  ------------------
  |  Branch (818:8): [True: 0, False: 4.31k]
  |  Branch (818:23): [True: 0, False: 0]
  |  Branch (818:34): [True: 0, False: 0]
  ------------------
  819|      0|				ucl_set_err(parser, UCL_ELIMIT,
  820|      0|							"string is too long after variables expansion",
  821|      0|							&parser->err);
  822|       |
  823|      0|				return -1;
  824|      0|			}
  825|       |
  826|       |			/* Charge whatever expansion added on top of the original buffer */
  827|  4.31k|			if (ret > 0 && (uint64_t) ret > (uint64_t) in_len &&
  ------------------
  |  Branch (827:8): [True: 4.31k, False: 0]
  |  Branch (827:19): [True: 256, False: 4.06k]
  ------------------
  828|    256|				!ucl_parser_account_alloc(parser,
  ------------------
  |  Branch (828:5): [True: 0, False: 256]
  ------------------
  829|    256|										  (uint64_t) ret - (uint64_t) in_len)) {
  830|      0|				return -1;
  831|      0|			}
  832|  4.31k|		}
  833|  1.05M|		*dst_const = *dst;
  834|  1.05M|	}
  835|      0|	else {
  836|      0|		*dst_const = src;
  837|      0|		ret = in_len;
  838|      0|	}
  839|       |
  840|  1.05M|	return ret;
  841|  1.05M|}
ucl_parser.c:ucl_parse_value:
 2256|   930k|{
 2257|   930k|	const unsigned char *p, *c;
 2258|   930k|	ucl_object_t *obj = NULL;
 2259|   930k|	unsigned int stripped_spaces;
 2260|   930k|	ssize_t str_len;
 2261|   930k|	bool need_unescape = false, ucl_escape = false, var_expand = false;
 2262|       |
 2263|   930k|	p = chunk->pos;
 2264|       |
 2265|       |	/*
 2266|       |	 * Skip any spaces and comments, in any order: an indented value after
 2267|       |	 * a comment, as the first one of an array often is, must not take
 2268|       |	 * the indent
 2269|       |	 */
 2270|   945k|	while (p < chunk->end) {
  ------------------
  |  Branch (2270:9): [True: 945k, False: 285]
  ------------------
 2271|   945k|		if (ucl_test_character(*p, UCL_CHARACTER_WHITESPACE_UNSAFE)) {
  ------------------
  |  Branch (2271:7): [True: 14.2k, False: 931k]
  ------------------
 2272|  14.2k|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  14.2k|	do {                          \
  |  |   50|  14.2k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 14.2k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  14.2k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 7.54k, False: 6.72k]
  |  |  ------------------
  |  |   54|  7.54k|			(chunk)->line++;      \
  |  |   55|  7.54k|			(chunk)->column = 0;  \
  |  |   56|  7.54k|		}                         \
  |  |   57|  14.2k|		else                      \
  |  |   58|  14.2k|			(chunk)->column++;    \
  |  |   59|  14.2k|		(p++);                    \
  |  |   60|  14.2k|		(chunk)->pos++;           \
  |  |   61|  14.2k|		(chunk)->remain--;        \
  |  |   62|  14.2k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 14.2k]
  |  |  ------------------
  ------------------
 2273|  14.2k|		}
 2274|   931k|		else if (chunk->remain >= 2 && ucl_lex_is_comment(p[0], p[1])) {
  ------------------
  |  Branch (2274:12): [True: 927k, False: 3.11k]
  |  Branch (2274:34): [True: 844, False: 927k]
  ------------------
 2275|    844|			if (!ucl_skip_comments(parser)) {
  ------------------
  |  Branch (2275:8): [True: 215, False: 629]
  ------------------
 2276|    215|				return false;
 2277|    215|			}
 2278|    629|			p = chunk->pos;
 2279|    629|		}
 2280|   930k|		else {
 2281|   930k|			break;
 2282|   930k|		}
 2283|   945k|	}
 2284|       |
 2285|   930k|	if (parser->pending_merge != NULL && p < chunk->end &&
  ------------------
  |  Branch (2285:6): [True: 2, False: 930k]
  |  Branch (2285:39): [True: 2, False: 0]
  ------------------
 2286|      2|		!ucl_parser_settle_merge(parser, *p == '{' || *p == '[')) {
  ------------------
  |  Branch (2286:3): [True: 0, False: 2]
  |  Branch (2286:36): [True: 0, False: 2]
  |  Branch (2286:49): [True: 0, False: 2]
  ------------------
 2287|      0|		return false;
 2288|      0|	}
 2289|       |
 2290|   930k|	while (p < chunk->end) {
  ------------------
  |  Branch (2290:9): [True: 930k, False: 285]
  ------------------
 2291|   930k|		c = p;
 2292|   930k|		switch (*p) {
 2293|   345k|		case '"':
  ------------------
  |  Branch (2293:3): [True: 345k, False: 584k]
  ------------------
 2294|   345k|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   345k|	do {                          \
  |  |   50|   345k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 345k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   345k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 345k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|   345k|		else                      \
  |  |   58|   345k|			(chunk)->column++;    \
  |  |   59|   345k|		(p++);                    \
  |  |   60|   345k|		(chunk)->pos++;           \
  |  |   61|   345k|		(chunk)->remain--;        \
  |  |   62|   345k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 345k]
  |  |  ------------------
  ------------------
 2295|       |
 2296|   345k|			if (!ucl_lex_json_string(parser, chunk, &need_unescape, &ucl_escape,
  ------------------
  |  Branch (2296:8): [True: 473, False: 345k]
  ------------------
 2297|   345k|									 &var_expand)) {
 2298|    473|				return false;
 2299|    473|			}
 2300|       |
 2301|   345k|			obj = ucl_parser_get_container(parser);
 2302|   345k|			if (!obj) {
  ------------------
  |  Branch (2302:8): [True: 0, False: 345k]
  ------------------
 2303|      0|				return false;
 2304|      0|			}
 2305|       |
 2306|   345k|			str_len = chunk->pos - c - 2;
 2307|   345k|			obj->type = UCL_STRING;
 2308|   345k|			if ((str_len = ucl_copy_or_store_ptr(parser, c + 1,
  ------------------
  |  Branch (2308:8): [True: 0, False: 345k]
  ------------------
 2309|   345k|												 &obj->trash_stack[UCL_TRASH_VALUE],
  ------------------
  |  |  154|   345k|#define UCL_TRASH_VALUE 1
  ------------------
 2310|   345k|												 &obj->value.sv, str_len,
 2311|   345k|												 parser->limits.max_string_length,
 2312|   345k|												 need_unescape, false,
 2313|   345k|												 var_expand, false)) == -1) {
 2314|      0|				return false;
 2315|      0|			}
 2316|       |
 2317|   345k|			obj->len = str_len;
 2318|   345k|			parser->state = UCL_STATE_AFTER_VALUE;
 2319|       |
 2320|   345k|			return true;
 2321|      0|			break;
 2322|  1.18k|		case '\'':
  ------------------
  |  Branch (2322:3): [True: 1.18k, False: 929k]
  ------------------
 2323|  1.18k|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  1.18k|	do {                          \
  |  |   50|  1.18k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 1.18k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  1.18k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 1.18k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  1.18k|		else                      \
  |  |   58|  1.18k|			(chunk)->column++;    \
  |  |   59|  1.18k|		(p++);                    \
  |  |   60|  1.18k|		(chunk)->pos++;           \
  |  |   61|  1.18k|		(chunk)->remain--;        \
  |  |   62|  1.18k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 1.18k]
  |  |  ------------------
  ------------------
 2324|       |
 2325|  1.18k|			if (!ucl_lex_squoted_string(parser, chunk, &need_unescape)) {
  ------------------
  |  Branch (2325:8): [True: 753, False: 435]
  ------------------
 2326|    753|				return false;
 2327|    753|			}
 2328|       |
 2329|    435|			obj = ucl_parser_get_container(parser);
 2330|    435|			if (!obj) {
  ------------------
  |  Branch (2330:8): [True: 0, False: 435]
  ------------------
 2331|      0|				return false;
 2332|      0|			}
 2333|       |
 2334|    435|			str_len = chunk->pos - c - 2;
 2335|    435|			obj->type = UCL_STRING;
 2336|    435|			obj->flags |= UCL_OBJECT_SQUOTED;
 2337|       |
 2338|    435|			if ((str_len = ucl_copy_or_store_ptr(parser, c + 1,
  ------------------
  |  Branch (2338:8): [True: 0, False: 435]
  ------------------
 2339|    435|												 &obj->trash_stack[UCL_TRASH_VALUE],
  ------------------
  |  |  154|    435|#define UCL_TRASH_VALUE 1
  ------------------
 2340|    435|												 &obj->value.sv, str_len,
 2341|    435|												 parser->limits.max_string_length,
 2342|    435|												 need_unescape, false,
 2343|    435|												 var_expand, true)) == -1) {
 2344|      0|				return false;
 2345|      0|			}
 2346|       |
 2347|    435|			obj->len = str_len;
 2348|       |
 2349|    435|			parser->state = UCL_STATE_AFTER_VALUE;
 2350|       |
 2351|    435|			return true;
 2352|      0|			break;
 2353|  9.94k|		case '{':
  ------------------
  |  Branch (2353:3): [True: 9.94k, False: 920k]
  ------------------
 2354|  9.94k|			obj = ucl_parser_get_container(parser);
 2355|  9.94k|			if (obj == NULL) {
  ------------------
  |  Branch (2355:8): [True: 0, False: 9.94k]
  ------------------
 2356|      0|				ucl_set_err_fallback(parser, UCL_ESYNTAX,
 2357|      0|									 "object value must be a part of an object");
 2358|      0|				return false;
 2359|      0|			}
 2360|       |			/* We have a new object */
 2361|  9.94k|			if (parser->stack) {
  ------------------
  |  Branch (2361:8): [True: 9.94k, False: 0]
  ------------------
 2362|  9.94k|				obj = ucl_parser_add_container(obj, parser, false,
 2363|  9.94k|											   parser->stack->e.params.level, true);
 2364|  9.94k|			}
 2365|      0|			else {
 2366|      0|				return false;
 2367|      0|			}
 2368|  9.94k|			if (obj == NULL) {
  ------------------
  |  Branch (2368:8): [True: 1, False: 9.94k]
  ------------------
 2369|      1|				return false;
 2370|      1|			}
 2371|       |
 2372|  9.94k|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  9.94k|	do {                          \
  |  |   50|  9.94k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 9.94k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  9.94k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 9.94k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  9.94k|		else                      \
  |  |   58|  9.94k|			(chunk)->column++;    \
  |  |   59|  9.94k|		(p++);                    \
  |  |   60|  9.94k|		(chunk)->pos++;           \
  |  |   61|  9.94k|		(chunk)->remain--;        \
  |  |   62|  9.94k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 9.94k]
  |  |  ------------------
  ------------------
 2373|       |
 2374|  9.94k|			return true;
 2375|      0|			break;
 2376|   132k|		case '[':
  ------------------
  |  Branch (2376:3): [True: 132k, False: 797k]
  ------------------
 2377|   132k|			obj = ucl_parser_get_container(parser);
 2378|   132k|			if (obj == NULL) {
  ------------------
  |  Branch (2378:8): [True: 0, False: 132k]
  ------------------
 2379|      0|				ucl_set_err_fallback(parser, UCL_ESYNTAX,
 2380|      0|									 "array value must be a part of an object");
 2381|      0|				return false;
 2382|      0|			}
 2383|       |			/* We have a new array */
 2384|   132k|			if (parser->stack) {
  ------------------
  |  Branch (2384:8): [True: 132k, False: 0]
  ------------------
 2385|   132k|				obj = ucl_parser_add_container(obj, parser, true,
 2386|   132k|											   parser->stack->e.params.level, true);
 2387|   132k|			}
 2388|      0|			else {
 2389|      0|				return false;
 2390|      0|			}
 2391|       |
 2392|   132k|			if (obj == NULL) {
  ------------------
  |  Branch (2392:8): [True: 3, False: 132k]
  ------------------
 2393|      3|				return false;
 2394|      3|			}
 2395|       |
 2396|   132k|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   132k|	do {                          \
  |  |   50|   132k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 132k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   132k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 132k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|   132k|		else                      \
  |  |   58|   132k|			(chunk)->column++;    \
  |  |   59|   132k|		(p++);                    \
  |  |   60|   132k|		(chunk)->pos++;           \
  |  |   61|   132k|		(chunk)->remain--;        \
  |  |   62|   132k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 132k]
  |  |  ------------------
  ------------------
 2397|       |
 2398|   132k|			return true;
 2399|      0|			break;
 2400|  7.14k|		case ']':
  ------------------
  |  Branch (2400:3): [True: 7.14k, False: 923k]
  ------------------
 2401|       |			/* We have the array ending */
 2402|  7.14k|			if (parser->stack && parser->stack->obj->type == UCL_ARRAY) {
  ------------------
  |  Branch (2402:8): [True: 7.14k, False: 0]
  |  Branch (2402:25): [True: 6.86k, False: 283]
  ------------------
 2403|  6.86k|				parser->state = UCL_STATE_AFTER_VALUE;
 2404|  6.86k|				return true;
 2405|  6.86k|			}
 2406|    283|			else {
 2407|    283|				goto parse_string;
 2408|    283|			}
 2409|      0|			break;
 2410|  94.3k|		case '<':
  ------------------
  |  Branch (2410:3): [True: 94.3k, False: 835k]
  ------------------
 2411|  94.3k|			obj = ucl_parser_get_container(parser);
 2412|  94.3k|			if (obj == NULL) {
  ------------------
  |  Branch (2412:8): [True: 0, False: 94.3k]
  ------------------
 2413|      0|				ucl_set_err_fallback(parser, UCL_ESYNTAX,
 2414|      0|									 "multiline value must be a part of an object");
 2415|      0|				return false;
 2416|      0|			}
 2417|       |			/* We have something like multiline value, which must be <<[A-Z]+\n */
 2418|  94.3k|			if (chunk->end - p > 3) {
  ------------------
  |  Branch (2418:8): [True: 94.0k, False: 317]
  ------------------
 2419|  94.0k|				if (memcmp(p, "<<", 2) == 0) {
  ------------------
  |  Branch (2419:9): [True: 4.10k, False: 89.9k]
  ------------------
 2420|  4.10k|					p += 2;
 2421|       |					/* We allow only uppercase characters in multiline definitions */
 2422|  11.2k|					while (p < chunk->end && *p >= 'A' && *p <= 'Z') {
  ------------------
  |  Branch (2422:13): [True: 11.1k, False: 79]
  |  Branch (2422:31): [True: 7.49k, False: 3.67k]
  |  Branch (2422:44): [True: 7.13k, False: 353]
  ------------------
 2423|  7.13k|						p++;
 2424|  7.13k|					}
 2425|  4.10k|					if (p == chunk->end) {
  ------------------
  |  Branch (2425:10): [True: 79, False: 4.03k]
  ------------------
 2426|     79|						ucl_set_err(parser, UCL_ESYNTAX,
 2427|     79|									"unterminated multiline value", &parser->err);
 2428|     79|						return false;
 2429|     79|					}
 2430|  4.03k|					if (*p == '\n') {
  ------------------
  |  Branch (2430:10): [True: 2.44k, False: 1.58k]
  ------------------
 2431|       |						/* Set chunk positions and start multiline parsing */
 2432|  2.44k|						chunk->remain -= p - c + 1;
 2433|  2.44k|						c += 2;
 2434|  2.44k|						chunk->pos = p + 1;
 2435|  2.44k|						chunk->column = 0;
 2436|  2.44k|						chunk->line++;
 2437|  2.44k|						if ((str_len = ucl_parse_multiline_string(parser, chunk, c,
  ------------------
  |  Branch (2437:11): [True: 1.00k, False: 1.44k]
  ------------------
 2438|  2.44k|																  p - c, &c, &var_expand)) == 0) {
 2439|  1.00k|							ucl_set_err(parser, UCL_ESYNTAX,
 2440|  1.00k|										"unterminated multiline value", &parser->err);
 2441|  1.00k|							return false;
 2442|  1.00k|						}
 2443|       |
 2444|  1.44k|						obj->type = UCL_STRING;
 2445|  1.44k|						obj->flags |= UCL_OBJECT_MULTILINE;
 2446|  1.44k|						if ((str_len = ucl_copy_or_store_ptr(parser, c,
  ------------------
  |  Branch (2446:11): [True: 0, False: 1.44k]
  ------------------
 2447|  1.44k|															 &obj->trash_stack[UCL_TRASH_VALUE],
  ------------------
  |  |  154|  1.44k|#define UCL_TRASH_VALUE 1
  ------------------
 2448|  1.44k|															 &obj->value.sv, str_len - 1,
 2449|  1.44k|															 parser->limits.max_string_length,
 2450|  1.44k|															 false,
 2451|  1.44k|															 false, var_expand, false)) == -1) {
 2452|      0|							return false;
 2453|      0|						}
 2454|  1.44k|						obj->len = str_len;
 2455|       |
 2456|  1.44k|						parser->state = UCL_STATE_AFTER_VALUE;
 2457|       |
 2458|  1.44k|						return true;
 2459|  1.44k|					}
 2460|  4.03k|				}
 2461|  94.0k|			}
 2462|       |			/* Fallback to ordinary strings */
 2463|       |			/* FALLTHRU */
 2464|   431k|		default:
  ------------------
  |  Branch (2464:3): [True: 339k, False: 590k]
  ------------------
 2465|   431k|		parse_string:
 2466|   431k|			if (obj == NULL) {
  ------------------
  |  Branch (2466:8): [True: 339k, False: 91.8k]
  ------------------
 2467|   339k|				obj = ucl_parser_get_container(parser);
 2468|   339k|			}
 2469|       |
 2470|   431k|			if (obj == NULL) {
  ------------------
  |  Branch (2470:8): [True: 0, False: 431k]
  ------------------
 2471|      0|				ucl_set_err_fallback(parser, UCL_ESYNTAX,
 2472|      0|									 "value must be a part of an object");
 2473|      0|				return false;
 2474|      0|			}
 2475|       |
 2476|       |			/* Parse atom */
 2477|   431k|			if (ucl_test_character(*p, UCL_CHARACTER_VALUE_DIGIT_START)) {
  ------------------
  |  Branch (2477:8): [True: 44.5k, False: 386k]
  ------------------
 2478|  44.5k|				if (!ucl_lex_number(parser, chunk, obj)) {
  ------------------
  |  Branch (2478:9): [True: 26.1k, False: 18.4k]
  ------------------
 2479|  26.1k|					if (parser->state == UCL_STATE_ERROR) {
  ------------------
  |  Branch (2479:10): [True: 1.80k, False: 24.3k]
  ------------------
 2480|  1.80k|						return false;
 2481|  1.80k|					}
 2482|  26.1k|				}
 2483|  18.4k|				else {
 2484|  18.4k|					parser->state = UCL_STATE_AFTER_VALUE;
 2485|  18.4k|					return true;
 2486|  18.4k|				}
 2487|       |				/* Fallback to normal string */
 2488|  44.5k|			}
 2489|       |
 2490|   411k|			if (!ucl_parse_string_value(parser, chunk, &var_expand,
  ------------------
  |  Branch (2490:8): [True: 0, False: 411k]
  ------------------
 2491|   411k|										&need_unescape)) {
 2492|      0|				return false;
 2493|      0|			}
 2494|       |			/* Cut trailing spaces */
 2495|   411k|			stripped_spaces = 0;
 2496|   425k|			while (chunk->pos - stripped_spaces > c &&
  ------------------
  |  Branch (2496:11): [True: 425k, False: 491]
  ------------------
 2497|   425k|				   ucl_test_character(*(chunk->pos - 1 - stripped_spaces),
  ------------------
  |  Branch (2497:8): [True: 14.7k, False: 410k]
  ------------------
 2498|   425k|									  UCL_CHARACTER_WHITESPACE)) {
 2499|  14.7k|				stripped_spaces++;
 2500|  14.7k|			}
 2501|   411k|			str_len = chunk->pos - c - stripped_spaces;
 2502|   411k|			if (str_len <= 0) {
  ------------------
  |  Branch (2502:8): [True: 491, False: 410k]
  ------------------
 2503|    491|				ucl_set_err(parser, UCL_ESYNTAX, "string value must not be empty",
 2504|    491|							&parser->err);
 2505|    491|				return false;
 2506|    491|			}
 2507|   410k|			else if (str_len == 4 && memcmp(c, "null", 4) == 0) {
  ------------------
  |  Branch (2507:13): [True: 19.9k, False: 390k]
  |  Branch (2507:29): [True: 486, False: 19.4k]
  ------------------
 2508|    486|				obj->len = 0;
 2509|    486|				obj->type = UCL_NULL;
 2510|    486|			}
 2511|   410k|			else if (str_len == 3 && memcmp(c, "nan", 3) == 0) {
  ------------------
  |  Branch (2511:13): [True: 20.1k, False: 390k]
  |  Branch (2511:29): [True: 368, False: 19.7k]
  ------------------
 2512|    368|				obj->len = 0;
 2513|    368|				obj->type = UCL_FLOAT;
 2514|    368|				obj->value.dv = NAN;
 2515|    368|			}
 2516|   409k|			else if (str_len == 3 && memcmp(c, "inf", 3) == 0) {
  ------------------
  |  Branch (2516:13): [True: 19.7k, False: 390k]
  |  Branch (2516:29): [True: 719, False: 19.0k]
  ------------------
 2517|    719|				obj->len = 0;
 2518|    719|				obj->type = UCL_FLOAT;
 2519|    719|				obj->value.dv = INFINITY;
 2520|    719|			}
 2521|   409k|			else if (!ucl_maybe_parse_boolean(obj, c, str_len)) {
  ------------------
  |  Branch (2521:13): [True: 391k, False: 17.1k]
  ------------------
 2522|   391k|				obj->type = UCL_STRING;
 2523|   391k|				if ((str_len = ucl_copy_or_store_ptr(parser, c,
  ------------------
  |  Branch (2523:9): [True: 0, False: 391k]
  ------------------
 2524|   391k|													 &obj->trash_stack[UCL_TRASH_VALUE],
  ------------------
  |  |  154|   391k|#define UCL_TRASH_VALUE 1
  ------------------
 2525|   391k|													 &obj->value.sv, str_len,
 2526|   391k|													 parser->limits.max_string_length,
 2527|   391k|													 need_unescape,
 2528|   391k|													 false, var_expand, false)) == -1) {
 2529|      0|					return false;
 2530|      0|				}
 2531|   391k|				obj->len = str_len;
 2532|   391k|			}
 2533|       |
 2534|   410k|			parser->state = UCL_STATE_AFTER_VALUE;
 2535|       |
 2536|   410k|			return true;
 2537|      0|			break;
 2538|   930k|		}
 2539|   930k|	}
 2540|       |
 2541|    285|	return true;
 2542|   930k|}
ucl_parser.c:ucl_parser_settle_merge:
 1788|      2|{
 1789|      2|	ucl_object_t *nobj = parser->pending_merge;
 1790|       |
 1791|      2|	parser->pending_merge = NULL;
 1792|       |
 1793|      2|	if (is_container || parser->stack == NULL ||
  ------------------
  |  Branch (1793:6): [True: 0, False: 2]
  |  Branch (1793:22): [True: 0, False: 2]
  ------------------
 1794|      2|		parser->stack->obj->type != UCL_OBJECT) {
  ------------------
  |  Branch (1794:3): [True: 0, False: 2]
  ------------------
 1795|       |		/*
 1796|       |		 * Keep the merge, as well when data inserted after the key has closed
 1797|       |		 * the object that holds it
 1798|       |		 */
 1799|      0|		ucl_object_unref(nobj);
 1800|      0|		ucl_attach_comment(parser, parser->cur_obj, false);
 1801|       |
 1802|      0|		return true;
 1803|      0|	}
 1804|       |
 1805|       |	/* Pending only with the merge strategy, whatever this chunk uses */
 1806|      2|	if (!ucl_parser_add_object_element(parser, nobj, UCL_DUPLICATE_MERGE,
  ------------------
  |  Branch (1806:6): [True: 0, False: 2]
  ------------------
 1807|      2|									   UCL_VALUE_SCALAR)) {
 1808|       |		/* Not taken on failure */
 1809|      0|		ucl_object_unref(nobj);
 1810|       |
 1811|      0|		return false;
 1812|      0|	}
 1813|       |
 1814|      2|	return true;
 1815|      2|}
ucl_parser.c:ucl_parser_get_container:
 2207|   922k|{
 2208|   922k|	ucl_object_t *t, *obj = NULL;
 2209|       |
 2210|   922k|	if (parser == NULL || parser->stack == NULL || parser->stack->obj == NULL) {
  ------------------
  |  Branch (2210:6): [True: 0, False: 922k]
  |  Branch (2210:24): [True: 0, False: 922k]
  |  Branch (2210:49): [True: 0, False: 922k]
  ------------------
 2211|      0|		return NULL;
 2212|      0|	}
 2213|       |
 2214|   922k|	if (parser->stack->obj->type == UCL_ARRAY) {
  ------------------
  |  Branch (2214:6): [True: 634k, False: 288k]
  ------------------
 2215|       |		/* Object must be allocated */
 2216|   634k|		obj = ucl_object_new_full(UCL_NULL, parser->chunks->priority);
 2217|   634k|		t = parser->stack->obj;
 2218|       |
 2219|   634k|		if (obj == NULL) {
  ------------------
  |  Branch (2219:7): [True: 0, False: 634k]
  ------------------
 2220|      0|			ucl_set_err(parser, UCL_EINTERNAL, "cannot allocate memory for an object",
 2221|      0|						&parser->err);
 2222|      0|			return NULL;
 2223|      0|		}
 2224|       |
 2225|   634k|		if (!ucl_parser_account_node(parser)) {
  ------------------
  |  Branch (2225:7): [True: 0, False: 634k]
  ------------------
 2226|      0|			ucl_object_unref(obj);
 2227|      0|			return NULL;
 2228|      0|		}
 2229|       |
 2230|   634k|		if (!ucl_array_append(t, obj)) {
  ------------------
  |  Branch (2230:7): [True: 0, False: 634k]
  ------------------
 2231|      0|			ucl_object_unref(obj);
 2232|      0|			ucl_set_err(parser, UCL_EINTERNAL, "cannot allocate memory for an array",
 2233|      0|						&parser->err);
 2234|      0|			return NULL;
 2235|      0|		}
 2236|       |
 2237|   634k|		parser->cur_obj = obj;
 2238|   634k|		ucl_attach_comment(parser, obj, false);
 2239|   634k|	}
 2240|   288k|	else {
 2241|       |		/* Object has been already allocated */
 2242|   288k|		obj = parser->cur_obj;
 2243|   288k|	}
 2244|       |
 2245|   922k|	return obj;
 2246|   922k|}
ucl_parser.c:ucl_lex_squoted_string:
 1456|  1.18k|{
 1457|  1.18k|	const unsigned char *p = chunk->pos;
 1458|  1.18k|	unsigned char c;
 1459|       |
 1460|   464k|	while (p < chunk->end) {
  ------------------
  |  Branch (1460:9): [True: 463k, False: 529]
  ------------------
 1461|   463k|		c = *p;
 1462|   463k|		if (c == '\\') {
  ------------------
  |  Branch (1462:7): [True: 11.2k, False: 452k]
  ------------------
 1463|  11.2k|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  11.2k|	do {                          \
  |  |   50|  11.2k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 11.2k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  11.2k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 11.2k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  11.2k|		else                      \
  |  |   58|  11.2k|			(chunk)->column++;    \
  |  |   59|  11.2k|		(p++);                    \
  |  |   60|  11.2k|		(chunk)->pos++;           \
  |  |   61|  11.2k|		(chunk)->remain--;        \
  |  |   62|  11.2k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 11.2k]
  |  |  ------------------
  ------------------
 1464|       |
 1465|  11.2k|			if (p >= chunk->end) {
  ------------------
  |  Branch (1465:8): [True: 224, False: 10.9k]
  ------------------
 1466|    224|				ucl_set_err(parser, UCL_ESYNTAX,
 1467|    224|							"unfinished escape character",
 1468|    224|							&parser->err);
 1469|    224|				return false;
 1470|    224|			}
 1471|  10.9k|			else {
 1472|  10.9k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  10.9k|	do {                          \
  |  |   50|  10.9k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 10.9k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  10.9k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 1.01k, False: 9.98k]
  |  |  ------------------
  |  |   54|  1.01k|			(chunk)->line++;      \
  |  |   55|  1.01k|			(chunk)->column = 0;  \
  |  |   56|  1.01k|		}                         \
  |  |   57|  10.9k|		else                      \
  |  |   58|  10.9k|			(chunk)->column++;    \
  |  |   59|  10.9k|		(p++);                    \
  |  |   60|  10.9k|		(chunk)->pos++;           \
  |  |   61|  10.9k|		(chunk)->remain--;        \
  |  |   62|  10.9k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 10.9k]
  |  |  ------------------
  ------------------
 1473|  10.9k|			}
 1474|       |
 1475|  10.9k|			*need_unescape = true;
 1476|  10.9k|			continue;
 1477|  11.2k|		}
 1478|   452k|		else if (c == '\'') {
  ------------------
  |  Branch (1478:12): [True: 435, False: 452k]
  ------------------
 1479|    435|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|    435|	do {                          \
  |  |   50|    435|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 435]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|    435|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 435]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|    435|		else                      \
  |  |   58|    435|			(chunk)->column++;    \
  |  |   59|    435|		(p++);                    \
  |  |   60|    435|		(chunk)->pos++;           \
  |  |   61|    435|		(chunk)->remain--;        \
  |  |   62|    435|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 435]
  |  |  ------------------
  ------------------
 1480|    435|			return true;
 1481|    435|		}
 1482|       |
 1483|   452k|		ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   452k|	do {                          \
  |  |   50|   452k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 452k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   452k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 13.8k, False: 438k]
  |  |  ------------------
  |  |   54|  13.8k|			(chunk)->line++;      \
  |  |   55|  13.8k|			(chunk)->column = 0;  \
  |  |   56|  13.8k|		}                         \
  |  |   57|   452k|		else                      \
  |  |   58|   452k|			(chunk)->column++;    \
  |  |   59|   452k|		(p++);                    \
  |  |   60|   452k|		(chunk)->pos++;           \
  |  |   61|   452k|		(chunk)->remain--;        \
  |  |   62|   452k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 452k]
  |  |  ------------------
  ------------------
 1484|   452k|	}
 1485|       |
 1486|    529|	ucl_set_err(parser, UCL_ESYNTAX,
 1487|    529|				"no quote at the end of single quoted string",
 1488|    529|				&parser->err);
 1489|       |	return false;
 1490|  1.18k|}
ucl_parser.c:ucl_parse_multiline_string:
 2161|  2.44k|{
 2162|  2.44k|	const unsigned char *p, *c, *tend;
 2163|  2.44k|	bool newline = false;
 2164|  2.44k|	int len = 0;
 2165|       |
 2166|  2.44k|	p = chunk->pos;
 2167|       |
 2168|  2.44k|	c = p;
 2169|       |
 2170|   207k|	while (p < chunk->end) {
  ------------------
  |  Branch (2170:9): [True: 206k, False: 789]
  ------------------
 2171|   206k|		if (newline) {
  ------------------
  |  Branch (2171:7): [True: 105k, False: 100k]
  ------------------
 2172|   105k|			if (chunk->end - p < term_len) {
  ------------------
  |  Branch (2172:8): [True: 213, False: 105k]
  ------------------
 2173|    213|				return 0;
 2174|    213|			}
 2175|   105k|			else if (memcmp(p, term, term_len) == 0) {
  ------------------
  |  Branch (2175:13): [True: 103k, False: 2.56k]
  ------------------
 2176|   103k|				tend = p + term_len;
 2177|   103k|				if (tend < chunk->end && *tend != '\n' && *tend != ';' && *tend != ',') {
  ------------------
  |  Branch (2177:9): [True: 103k, False: 68]
  |  Branch (2177:30): [True: 102k, False: 553]
  |  Branch (2177:47): [True: 102k, False: 256]
  |  Branch (2177:63): [True: 101k, False: 566]
  ------------------
 2178|       |					/* Incomplete terminator */
 2179|   101k|					ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   101k|	do {                          \
  |  |   50|   101k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 101k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   101k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 101k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|   101k|		else                      \
  |  |   58|   101k|			(chunk)->column++;    \
  |  |   59|   101k|		(p++);                    \
  |  |   60|   101k|		(chunk)->pos++;           \
  |  |   61|   101k|		(chunk)->remain--;        \
  |  |   62|   101k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 101k]
  |  |  ------------------
  ------------------
 2180|   101k|					continue;
 2181|   101k|				}
 2182|  1.44k|				len = p - c;
 2183|  1.44k|				chunk->remain -= term_len;
 2184|  1.44k|				chunk->pos = p + term_len;
 2185|  1.44k|				chunk->column = term_len;
 2186|  1.44k|				*beg = c;
 2187|  1.44k|				break;
 2188|   103k|			}
 2189|   105k|		}
 2190|   103k|		if (*p == '\n') {
  ------------------
  |  Branch (2190:7): [True: 4.46k, False: 98.8k]
  ------------------
 2191|  4.46k|			newline = true;
 2192|  4.46k|		}
 2193|  98.8k|		else {
 2194|  98.8k|			if (*p == '$') {
  ------------------
  |  Branch (2194:8): [True: 282, False: 98.5k]
  ------------------
 2195|    282|				*var_expand = true;
 2196|    282|			}
 2197|  98.8k|			newline = false;
 2198|  98.8k|		}
 2199|   103k|		ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   103k|	do {                          \
  |  |   50|   103k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 103k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   103k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 4.46k, False: 98.8k]
  |  |  ------------------
  |  |   54|  4.46k|			(chunk)->line++;      \
  |  |   55|  4.46k|			(chunk)->column = 0;  \
  |  |   56|  4.46k|		}                         \
  |  |   57|   103k|		else                      \
  |  |   58|   103k|			(chunk)->column++;    \
  |  |   59|   103k|		(p++);                    \
  |  |   60|   103k|		(chunk)->pos++;           \
  |  |   61|   103k|		(chunk)->remain--;        \
  |  |   62|   103k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 103k]
  |  |  ------------------
  ------------------
 2200|   103k|	}
 2201|       |
 2202|  2.23k|	return len;
 2203|  2.44k|}
ucl_parser.c:ucl_lex_number:
 1338|  44.5k|{
 1339|  44.5k|	const unsigned char *pos;
 1340|  44.5k|	int ret;
 1341|       |
 1342|  44.5k|	ret = ucl_maybe_parse_number(obj, chunk->pos, chunk->end, (const char **) &pos,
 1343|  44.5k|								 true, false, ((parser->flags & UCL_PARSER_NO_TIME) == 0));
 1344|       |
 1345|  44.5k|	if (ret == 0) {
  ------------------
  |  Branch (1345:6): [True: 18.4k, False: 26.1k]
  ------------------
 1346|  18.4k|		chunk->remain -= pos - chunk->pos;
 1347|  18.4k|		chunk->column += pos - chunk->pos;
 1348|  18.4k|		chunk->pos = pos;
 1349|  18.4k|		return true;
 1350|  18.4k|	}
 1351|  26.1k|	else if (ret == ERANGE) {
  ------------------
  |  Branch (1351:11): [True: 1.80k, False: 24.3k]
  ------------------
 1352|  1.80k|		ucl_set_err(parser, UCL_ESYNTAX, "numeric value out of range",
 1353|  1.80k|					&parser->err);
 1354|  1.80k|	}
 1355|       |
 1356|  26.1k|	return false;
 1357|  44.5k|}
ucl_parser.c:ucl_parse_string_value:
 2088|   411k|{
 2089|   411k|	const unsigned char *p;
 2090|   411k|	enum {
 2091|   411k|		UCL_BRACE_ROUND = 0,
 2092|   411k|		UCL_BRACE_SQUARE,
 2093|   411k|		UCL_BRACE_FIGURE
 2094|   411k|	};
 2095|   411k|	int braces[3][2] = {{0, 0}, {0, 0}, {0, 0}};
 2096|       |
 2097|   411k|	p = chunk->pos;
 2098|       |
 2099|  10.2M|	while (p < chunk->end) {
  ------------------
  |  Branch (2099:9): [True: 10.1M, False: 16.0k]
  ------------------
 2100|       |
 2101|       |		/* Skip pairs of figure braces */
 2102|  10.1M|		if (*p == '{') {
  ------------------
  |  Branch (2102:7): [True: 51.6k, False: 10.1M]
  ------------------
 2103|  51.6k|			braces[UCL_BRACE_FIGURE][0]++;
 2104|  51.6k|		}
 2105|  10.1M|		else if (*p == '}') {
  ------------------
  |  Branch (2105:12): [True: 9.20k, False: 10.1M]
  ------------------
 2106|  9.20k|			braces[UCL_BRACE_FIGURE][1]++;
 2107|  9.20k|			if (braces[UCL_BRACE_FIGURE][1] <= braces[UCL_BRACE_FIGURE][0]) {
  ------------------
  |  Branch (2107:8): [True: 8.39k, False: 815]
  ------------------
 2108|       |				/* This is not a termination symbol, continue */
 2109|  8.39k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  8.39k|	do {                          \
  |  |   50|  8.39k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 8.39k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  8.39k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 8.39k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  8.39k|		else                      \
  |  |   58|  8.39k|			(chunk)->column++;    \
  |  |   59|  8.39k|		(p++);                    \
  |  |   60|  8.39k|		(chunk)->pos++;           \
  |  |   61|  8.39k|		(chunk)->remain--;        \
  |  |   62|  8.39k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 8.39k]
  |  |  ------------------
  ------------------
 2110|  8.39k|				continue;
 2111|  8.39k|			}
 2112|  9.20k|		}
 2113|       |		/* Skip pairs of square braces */
 2114|  10.1M|		else if (*p == '[') {
  ------------------
  |  Branch (2114:12): [True: 60.8k, False: 10.0M]
  ------------------
 2115|  60.8k|			braces[UCL_BRACE_SQUARE][0]++;
 2116|  60.8k|		}
 2117|  10.0M|		else if (*p == ']') {
  ------------------
  |  Branch (2117:12): [True: 29.1k, False: 10.0M]
  ------------------
 2118|  29.1k|			braces[UCL_BRACE_SQUARE][1]++;
 2119|  29.1k|			if (braces[UCL_BRACE_SQUARE][1] <= braces[UCL_BRACE_SQUARE][0]) {
  ------------------
  |  Branch (2119:8): [True: 25.5k, False: 3.58k]
  ------------------
 2120|       |				/* This is not a termination symbol, continue */
 2121|  25.5k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  25.5k|	do {                          \
  |  |   50|  25.5k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 25.5k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  25.5k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 25.5k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  25.5k|		else                      \
  |  |   58|  25.5k|			(chunk)->column++;    \
  |  |   59|  25.5k|		(p++);                    \
  |  |   60|  25.5k|		(chunk)->pos++;           \
  |  |   61|  25.5k|		(chunk)->remain--;        \
  |  |   62|  25.5k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 25.5k]
  |  |  ------------------
  ------------------
 2122|  25.5k|				continue;
 2123|  25.5k|			}
 2124|  29.1k|		}
 2125|  10.0M|		else if (*p == '$') {
  ------------------
  |  Branch (2125:12): [True: 106k, False: 9.92M]
  ------------------
 2126|   106k|			*var_expand = true;
 2127|   106k|		}
 2128|  9.92M|		else if (*p == '\\') {
  ------------------
  |  Branch (2128:12): [True: 63.1k, False: 9.86M]
  ------------------
 2129|  63.1k|			*need_unescape = true;
 2130|  63.1k|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  63.1k|	do {                          \
  |  |   50|  63.1k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 63.1k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  63.1k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 63.1k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  63.1k|		else                      \
  |  |   58|  63.1k|			(chunk)->column++;    \
  |  |   59|  63.1k|		(p++);                    \
  |  |   60|  63.1k|		(chunk)->pos++;           \
  |  |   61|  63.1k|		(chunk)->remain--;        \
  |  |   62|  63.1k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 63.1k]
  |  |  ------------------
  ------------------
 2131|  63.1k|			if (p < chunk->end) {
  ------------------
  |  Branch (2131:8): [True: 62.1k, False: 1.01k]
  ------------------
 2132|  62.1k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  62.1k|	do {                          \
  |  |   50|  62.1k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 62.1k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  62.1k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 532, False: 61.6k]
  |  |  ------------------
  |  |   54|    532|			(chunk)->line++;      \
  |  |   55|    532|			(chunk)->column = 0;  \
  |  |   56|    532|		}                         \
  |  |   57|  62.1k|		else                      \
  |  |   58|  62.1k|			(chunk)->column++;    \
  |  |   59|  62.1k|		(p++);                    \
  |  |   60|  62.1k|		(chunk)->pos++;           \
  |  |   61|  62.1k|		(chunk)->remain--;        \
  |  |   62|  62.1k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 62.1k]
  |  |  ------------------
  ------------------
 2133|  62.1k|			}
 2134|  63.1k|			continue;
 2135|  63.1k|		}
 2136|       |
 2137|  10.0M|		if (ucl_lex_is_atom_end(*p) || (chunk->remain >= 2 && ucl_lex_is_comment(p[0], p[1]))) {
  ------------------
  |  Branch (2137:7): [True: 394k, False: 9.69M]
  |  Branch (2137:35): [True: 9.68M, False: 14.2k]
  |  Branch (2137:57): [True: 727, False: 9.67M]
  ------------------
 2138|   395k|			break;
 2139|   395k|		}
 2140|  9.69M|		ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  9.69M|	do {                          \
  |  |   50|  9.69M|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 9.69M]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  9.69M|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 9.69M]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  9.69M|		else                      \
  |  |   58|  9.69M|			(chunk)->column++;    \
  |  |   59|  9.69M|		(p++);                    \
  |  |   60|  9.69M|		(chunk)->pos++;           \
  |  |   61|  9.69M|		(chunk)->remain--;        \
  |  |   62|  9.69M|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 9.69M]
  |  |  ------------------
  ------------------
 2141|  9.69M|	}
 2142|       |
 2143|       |	return true;
 2144|   411k|}
ucl_parser.c:ucl_parse_after_value:
 2552|   765k|{
 2553|   765k|	const unsigned char *p;
 2554|   765k|	bool got_sep = false;
 2555|   765k|	struct ucl_stack *st;
 2556|   765k|	ucl_object_t *closed;
 2557|       |
 2558|   765k|	p = chunk->pos;
 2559|       |
 2560|  2.33M|	while (p < chunk->end) {
  ------------------
  |  Branch (2560:9): [True: 2.32M, False: 12.4k]
  ------------------
 2561|  2.32M|		if (ucl_test_character(*p, UCL_CHARACTER_WHITESPACE)) {
  ------------------
  |  Branch (2561:7): [True: 495k, False: 1.83M]
  ------------------
 2562|       |			/* Skip whitespaces */
 2563|   495k|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   495k|	do {                          \
  |  |   50|   495k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 495k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   495k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 495k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|   495k|		else                      \
  |  |   58|   495k|			(chunk)->column++;    \
  |  |   59|   495k|		(p++);                    \
  |  |   60|   495k|		(chunk)->pos++;           \
  |  |   61|   495k|		(chunk)->remain--;        \
  |  |   62|   495k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 495k]
  |  |  ------------------
  ------------------
 2564|   495k|		}
 2565|  1.83M|		else if (chunk->remain >= 2 && ucl_lex_is_comment(p[0], p[1])) {
  ------------------
  |  Branch (2565:12): [True: 1.81M, False: 12.0k]
  |  Branch (2565:34): [True: 7.42k, False: 1.81M]
  ------------------
 2566|       |			/* Skip comment */
 2567|  7.42k|			if (!ucl_skip_comments(parser)) {
  ------------------
  |  Branch (2567:8): [True: 449, False: 6.97k]
  ------------------
 2568|    449|				return false;
 2569|    449|			}
 2570|       |			/* Treat comment as a separator */
 2571|  6.97k|			got_sep = true;
 2572|  6.97k|			p = chunk->pos;
 2573|  6.97k|		}
 2574|  1.82M|		else if (ucl_test_character(*p, UCL_CHARACTER_VALUE_END)) {
  ------------------
  |  Branch (2574:12): [True: 1.07M, False: 751k]
  ------------------
 2575|  1.07M|			if (*p == '}' || *p == ']') {
  ------------------
  |  Branch (2575:8): [True: 3.77k, False: 1.06M]
  |  Branch (2575:21): [True: 120k, False: 947k]
  ------------------
 2576|   124k|				if (parser->stack == NULL) {
  ------------------
  |  Branch (2576:9): [True: 0, False: 124k]
  ------------------
 2577|      0|					ucl_set_err(parser, UCL_ESYNTAX,
 2578|      0|								"end of array or object detected without corresponding start",
 2579|      0|								&parser->err);
 2580|      0|					return false;
 2581|      0|				}
 2582|   124k|				if ((*p == '}' && parser->stack->obj->type == UCL_OBJECT) ||
  ------------------
  |  Branch (2582:10): [True: 3.77k, False: 120k]
  |  Branch (2582:23): [True: 3.32k, False: 453]
  ------------------
 2583|   123k|					(*p == ']' && parser->stack->obj->type == UCL_ARRAY)) {
  ------------------
  |  Branch (2583:7): [True: 120k, False: 453]
  |  Branch (2583:20): [True: 120k, False: 316]
  ------------------
 2584|       |
 2585|       |					/* Pop all nested objects from a stack */
 2586|   123k|					st = parser->stack;
 2587|       |
 2588|   123k|					if (!(st->e.params.flags & UCL_STACK_HAS_OBRACE)) {
  ------------------
  |  Branch (2588:10): [True: 241, False: 123k]
  ------------------
 2589|    241|						parser->err_code = UCL_EUNPAIRED;
 2590|    241|						ucl_create_err(&parser->err,
 2591|    241|									   "%s:%d object closed with } is not opened with { at line %d",
 2592|    241|									   chunk->fname ? chunk->fname : "memory",
  ------------------
  |  Branch (2592:13): [True: 0, False: 241]
  ------------------
 2593|    241|									   parser->chunks->line, st->e.params.line);
 2594|       |
 2595|    241|						return false;
 2596|    241|					}
 2597|       |
 2598|   123k|					if ((st->e.params.flags & UCL_STACK_AUTOMATIC)) {
  ------------------
  |  Branch (2598:10): [True: 162, False: 123k]
  ------------------
 2599|       |						/* A chunk's brace, which has taken no depth */
 2600|    162|						parser->stack = st->next;
 2601|    162|						UCL_FREE(sizeof(struct ucl_stack), st);
  ------------------
  |  |   74|    162|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 2602|    162|						closed = NULL;
 2603|    162|					}
 2604|   123k|					else {
 2605|   123k|						closed = st->obj;
 2606|   123k|						ucl_parser_pop_container(parser, st);
 2607|   123k|					}
 2608|       |
 2609|   123k|					if (closed != NULL && parser->cur_obj == closed) {
  ------------------
  |  Branch (2609:10): [True: 123k, False: 162]
  |  Branch (2609:28): [True: 8.11k, False: 115k]
  ------------------
 2610|       |						/* Nothing has been read inside the container */
 2611|  8.11k|						ucl_attach_inner_comment(parser, closed);
 2612|  8.11k|					}
 2613|   115k|					else if (parser->cur_obj) {
  ------------------
  |  Branch (2613:15): [True: 115k, False: 0]
  ------------------
 2614|   115k|						ucl_attach_comment(parser, parser->cur_obj, true);
 2615|   115k|					}
 2616|       |
 2617|       |					/*
 2618|       |					 * Comments after the container that no key or value
 2619|       |					 * takes follow it rather than the last value inside it,
 2620|       |					 * as a macro read as a comment is none inside an array
 2621|       |					 */
 2622|   123k|					if (closed != NULL) {
  ------------------
  |  Branch (2622:10): [True: 123k, False: 162]
  ------------------
 2623|   123k|						parser->cur_obj = closed;
 2624|   123k|					}
 2625|       |
 2626|   134k|					while (parser->stack != NULL) {
  ------------------
  |  Branch (2626:13): [True: 134k, False: 378]
  ------------------
 2627|   134k|						st = parser->stack;
 2628|       |
 2629|   134k|						if (st->next == NULL) {
  ------------------
  |  Branch (2629:11): [True: 6.79k, False: 127k]
  ------------------
 2630|  6.79k|							break;
 2631|  6.79k|						}
 2632|   127k|						else if (st->next->e.params.level == st->e.params.level) {
  ------------------
  |  Branch (2632:16): [True: 116k, False: 11.0k]
  ------------------
 2633|   116k|							break;
 2634|   116k|						}
 2635|       |
 2636|       |
 2637|  11.0k|						parser->cur_obj = st->obj;
 2638|  11.0k|						ucl_parser_pop_container(parser, st);
 2639|  11.0k|					}
 2640|   123k|				}
 2641|    769|				else {
 2642|    769|					ucl_set_err(parser, UCL_ESYNTAX,
 2643|    769|								"unexpected terminating symbol detected",
 2644|    769|								&parser->err);
 2645|    769|					return false;
 2646|    769|				}
 2647|       |
 2648|   123k|				if (parser->stack == NULL) {
  ------------------
  |  Branch (2648:9): [True: 378, False: 122k]
  ------------------
 2649|       |					/* Ignore everything after a top object */
 2650|    378|					return true;
 2651|    378|				}
 2652|   122k|				else {
 2653|   122k|					ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   122k|	do {                          \
  |  |   50|   122k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 122k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   122k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 122k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|   122k|		else                      \
  |  |   58|   122k|			(chunk)->column++;    \
  |  |   59|   122k|		(p++);                    \
  |  |   60|   122k|		(chunk)->pos++;           \
  |  |   61|   122k|		(chunk)->remain--;        \
  |  |   62|   122k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 122k]
  |  |  ------------------
  ------------------
 2654|   122k|				}
 2655|   122k|				got_sep = true;
 2656|   122k|			}
 2657|   947k|			else {
 2658|       |				/* Got a separator */
 2659|   947k|				got_sep = true;
 2660|   947k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   947k|	do {                          \
  |  |   50|   947k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 947k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   947k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 339k, False: 607k]
  |  |  ------------------
  |  |   54|   339k|			(chunk)->line++;      \
  |  |   55|   339k|			(chunk)->column = 0;  \
  |  |   56|   339k|		}                         \
  |  |   57|   947k|		else                      \
  |  |   58|   947k|			(chunk)->column++;    \
  |  |   59|   947k|		(p++);                    \
  |  |   60|   947k|		(chunk)->pos++;           \
  |  |   61|   947k|		(chunk)->remain--;        \
  |  |   62|   947k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 947k]
  |  |  ------------------
  ------------------
 2661|   947k|			}
 2662|  1.07M|		}
 2663|   751k|		else {
 2664|       |			/* Anything else */
 2665|   751k|			if (!got_sep) {
  ------------------
  |  Branch (2665:8): [True: 359, False: 751k]
  ------------------
 2666|    359|				ucl_set_err(parser, UCL_ESYNTAX, "delimiter is missing",
 2667|    359|							&parser->err);
 2668|    359|				return false;
 2669|    359|			}
 2670|   751k|			return true;
 2671|   751k|		}
 2672|  2.32M|	}
 2673|       |
 2674|  12.4k|	return true;
 2675|   765k|}
ucl_parser.c:ucl_attach_inner_comment:
  180|  8.11k|{
  181|  8.11k|	if (parser->last_comment) {
  ------------------
  |  Branch (181:6): [True: 0, False: 8.11k]
  ------------------
  182|      0|		parser->last_comment->flags |= UCL_OBJECT_INNER_COMMENT;
  ------------------
  |  |  161|      0|#define UCL_OBJECT_INNER_COMMENT (1u << 15)
  ------------------
  183|       |		ucl_attach_comment(parser, obj, false);
  184|      0|	}
  185|  8.11k|}
ucl_parser.c:ucl_parse_macro_arguments:
 2779|  73.1k|{
 2780|  73.1k|	ucl_object_t *res = NULL;
 2781|  73.1k|	struct ucl_parser *params_parser;
 2782|  73.1k|	int obraces = 1, ebraces = 0, state = 0;
 2783|  73.1k|	const unsigned char *p, *c;
 2784|  73.1k|	size_t args_len = 0;
 2785|  73.1k|	struct ucl_parser_saved_state saved;
 2786|       |
 2787|  73.1k|	saved.column = chunk->column;
 2788|  73.1k|	saved.line = chunk->line;
 2789|  73.1k|	saved.pos = chunk->pos;
 2790|  73.1k|	saved.remain = chunk->remain;
 2791|  73.1k|	p = chunk->pos;
 2792|       |
 2793|  73.1k|	if (chunk->remain < 2 || *p != '(') {
  ------------------
  |  Branch (2793:6): [True: 8, False: 73.1k]
  |  Branch (2793:27): [True: 0, False: 73.1k]
  ------------------
 2794|      8|		return NULL;
 2795|      8|	}
 2796|       |
 2797|       |	/* Set begin and start */
 2798|  73.1k|	ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  73.1k|	do {                          \
  |  |   50|  73.1k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 73.1k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  73.1k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 73.1k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  73.1k|		else                      \
  |  |   58|  73.1k|			(chunk)->column++;    \
  |  |   59|  73.1k|		(p++);                    \
  |  |   60|  73.1k|		(chunk)->pos++;           \
  |  |   61|  73.1k|		(chunk)->remain--;        \
  |  |   62|  73.1k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 73.1k]
  |  |  ------------------
  ------------------
 2799|  73.1k|	c = p;
 2800|       |
 2801|   203M|	while ((p) < (chunk)->end) {
  ------------------
  |  Branch (2801:9): [True: 203M, False: 329]
  ------------------
 2802|   203M|		switch (state) {
  ------------------
  |  Branch (2802:11): [True: 203M, False: 0]
  ------------------
 2803|   201M|		case 0:
  ------------------
  |  Branch (2803:3): [True: 201M, False: 1.19M]
  ------------------
 2804|       |			/* Parse symbols and check for '(', ')' and '"' */
 2805|   201M|			if (*p == '(') {
  ------------------
  |  Branch (2805:8): [True: 13.8M, False: 187M]
  ------------------
 2806|  13.8M|				obraces++;
 2807|  13.8M|			}
 2808|   187M|			else if (*p == ')') {
  ------------------
  |  Branch (2808:13): [True: 13.8M, False: 174M]
  ------------------
 2809|  13.8M|				ebraces++;
 2810|  13.8M|			}
 2811|   174M|			else if (*p == '"') {
  ------------------
  |  Branch (2811:13): [True: 93.0k, False: 174M]
  ------------------
 2812|  93.0k|				state = 1;
 2813|  93.0k|			}
 2814|       |			/* Check pairing */
 2815|   201M|			if (obraces == ebraces) {
  ------------------
  |  Branch (2815:8): [True: 72.8k, False: 201M]
  ------------------
 2816|  72.8k|				state = 99;
 2817|  72.8k|			}
 2818|   201M|			else {
 2819|   201M|				args_len++;
 2820|   201M|			}
 2821|       |			/* Check overflow */
 2822|   201M|			if (chunk->remain == 0) {
  ------------------
  |  Branch (2822:8): [True: 0, False: 201M]
  ------------------
 2823|      0|				goto restore_chunk;
 2824|      0|			}
 2825|   201M|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   201M|	do {                          \
  |  |   50|   201M|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 201M]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   201M|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 9.60M, False: 192M]
  |  |  ------------------
  |  |   54|  9.60M|			(chunk)->line++;      \
  |  |   55|  9.60M|			(chunk)->column = 0;  \
  |  |   56|  9.60M|		}                         \
  |  |   57|   201M|		else                      \
  |  |   58|   201M|			(chunk)->column++;    \
  |  |   59|   201M|		(p++);                    \
  |  |   60|   201M|		(chunk)->pos++;           \
  |  |   61|   201M|		(chunk)->remain--;        \
  |  |   62|   201M|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 201M]
  |  |  ------------------
  ------------------
 2826|   201M|			break;
 2827|  1.12M|		case 1:
  ------------------
  |  Branch (2827:3): [True: 1.12M, False: 201M]
  ------------------
 2828|       |			/* We have quote character, so skip all but quotes */
 2829|  1.12M|			if (*p == '"' && *(p - 1) != '\\') {
  ------------------
  |  Branch (2829:8): [True: 93.9k, False: 1.03M]
  |  Branch (2829:21): [True: 92.9k, False: 1.00k]
  ------------------
 2830|  92.9k|				state = 0;
 2831|  92.9k|			}
 2832|  1.12M|			if (chunk->remain == 0) {
  ------------------
  |  Branch (2832:8): [True: 0, False: 1.12M]
  ------------------
 2833|      0|				goto restore_chunk;
 2834|      0|			}
 2835|  1.12M|			args_len++;
 2836|  1.12M|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  1.12M|	do {                          \
  |  |   50|  1.12M|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 1.12M]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  1.12M|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 125k, False: 998k]
  |  |  ------------------
  |  |   54|   125k|			(chunk)->line++;      \
  |  |   55|   125k|			(chunk)->column = 0;  \
  |  |   56|   125k|		}                         \
  |  |   57|  1.12M|		else                      \
  |  |   58|  1.12M|			(chunk)->column++;    \
  |  |   59|  1.12M|		(p++);                    \
  |  |   60|  1.12M|		(chunk)->pos++;           \
  |  |   61|  1.12M|		(chunk)->remain--;        \
  |  |   62|  1.12M|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 1.12M]
  |  |  ------------------
  ------------------
 2837|  1.12M|			break;
 2838|  72.7k|		case 99:
  ------------------
  |  Branch (2838:3): [True: 72.7k, False: 202M]
  ------------------
 2839|       |			/*
 2840|       |			 * We have read the full body of arguments, so we need to parse and set
 2841|       |			 * object from that
 2842|       |			 */
 2843|  72.7k|			params_parser = ucl_parser_new(parser->flags);
 2844|  72.7k|			if (!ucl_parser_add_chunk(params_parser, c, args_len)) {
  ------------------
  |  Branch (2844:8): [True: 39.2k, False: 33.5k]
  ------------------
 2845|  39.2k|				ucl_set_err(parser, UCL_ESYNTAX, "macro arguments parsing error",
 2846|  39.2k|							&parser->err);
 2847|  39.2k|			}
 2848|  33.5k|			else {
 2849|  33.5k|				res = ucl_parser_get_object(params_parser);
 2850|  33.5k|			}
 2851|  72.7k|			ucl_parser_free(params_parser);
 2852|       |
 2853|  72.7k|			return res;
 2854|       |
 2855|      0|			break;
 2856|   203M|		}
 2857|   203M|	}
 2858|       |
 2859|    329|	return res;
 2860|       |
 2861|      0|restore_chunk:
 2862|      0|	chunk->column = saved.column;
 2863|      0|	chunk->line = saved.line;
 2864|      0|	chunk->pos = saved.pos;
 2865|      0|	chunk->remain = saved.remain;
 2866|       |
 2867|       |	return NULL;
 2868|  73.1k|}
ucl_parser.c:ucl_parse_macro_value:
 2690|  74.9k|{
 2691|  74.9k|	const unsigned char *p, *c;
 2692|  74.9k|	bool need_unescape = false, ucl_escape = false, var_expand = false;
 2693|       |
 2694|  74.9k|	p = chunk->pos;
 2695|       |
 2696|  74.9k|	if (p >= chunk->end) {
  ------------------
  |  Branch (2696:6): [True: 701, False: 74.2k]
  ------------------
 2697|    701|		ucl_set_err(parser, UCL_ESYNTAX,
 2698|    701|					"unexpected end of input while parsing macro value",
 2699|    701|					&parser->err);
 2700|    701|		return false;
 2701|    701|	}
 2702|       |
 2703|  74.2k|	switch (*p) {
 2704|  1.61k|	case '"':
  ------------------
  |  Branch (2704:2): [True: 1.61k, False: 72.5k]
  ------------------
 2705|       |		/* We have macro value encoded in quotes */
 2706|  1.61k|		c = p;
 2707|  1.61k|		ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  1.61k|	do {                          \
  |  |   50|  1.61k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 1.61k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  1.61k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 1.61k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  1.61k|		else                      \
  |  |   58|  1.61k|			(chunk)->column++;    \
  |  |   59|  1.61k|		(p++);                    \
  |  |   60|  1.61k|		(chunk)->pos++;           \
  |  |   61|  1.61k|		(chunk)->remain--;        \
  |  |   62|  1.61k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 1.61k]
  |  |  ------------------
  ------------------
 2708|  1.61k|		if (!ucl_lex_json_string(parser, chunk, &need_unescape, &ucl_escape, &var_expand)) {
  ------------------
  |  Branch (2708:7): [True: 141, False: 1.47k]
  ------------------
 2709|    141|			return false;
 2710|    141|		}
 2711|       |
 2712|  1.47k|		*macro_start = c + 1;
 2713|  1.47k|		*macro_len = chunk->pos - c - 2;
 2714|  1.47k|		p = chunk->pos;
 2715|  1.47k|		break;
 2716|  6.70k|	case '{':
  ------------------
  |  Branch (2716:2): [True: 6.70k, False: 67.5k]
  ------------------
 2717|       |		/* We got a multiline macro body */
 2718|  6.70k|		ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  6.70k|	do {                          \
  |  |   50|  6.70k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 6.70k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  6.70k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 6.70k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  6.70k|		else                      \
  |  |   58|  6.70k|			(chunk)->column++;    \
  |  |   59|  6.70k|		(p++);                    \
  |  |   60|  6.70k|		(chunk)->pos++;           \
  |  |   61|  6.70k|		(chunk)->remain--;        \
  |  |   62|  6.70k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 6.70k]
  |  |  ------------------
  ------------------
 2719|       |		/* Skip spaces at the beginning */
 2720|  11.0k|		while (p < chunk->end) {
  ------------------
  |  Branch (2720:10): [True: 9.80k, False: 1.28k]
  ------------------
 2721|  9.80k|			if (ucl_test_character(*p, UCL_CHARACTER_WHITESPACE_UNSAFE)) {
  ------------------
  |  Branch (2721:8): [True: 4.38k, False: 5.42k]
  ------------------
 2722|  4.38k|				ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  4.38k|	do {                          \
  |  |   50|  4.38k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 4.38k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  4.38k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 1.31k, False: 3.06k]
  |  |  ------------------
  |  |   54|  1.31k|			(chunk)->line++;      \
  |  |   55|  1.31k|			(chunk)->column = 0;  \
  |  |   56|  1.31k|		}                         \
  |  |   57|  4.38k|		else                      \
  |  |   58|  4.38k|			(chunk)->column++;    \
  |  |   59|  4.38k|		(p++);                    \
  |  |   60|  4.38k|		(chunk)->pos++;           \
  |  |   61|  4.38k|		(chunk)->remain--;        \
  |  |   62|  4.38k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 4.38k]
  |  |  ------------------
  ------------------
 2723|  4.38k|			}
 2724|  5.42k|			else {
 2725|  5.42k|				break;
 2726|  5.42k|			}
 2727|  9.80k|		}
 2728|  6.70k|		c = p;
 2729|   230k|		while (p < chunk->end) {
  ------------------
  |  Branch (2729:10): [True: 228k, False: 2.01k]
  ------------------
 2730|   228k|			if (*p == '}') {
  ------------------
  |  Branch (2730:8): [True: 4.68k, False: 224k]
  ------------------
 2731|  4.68k|				break;
 2732|  4.68k|			}
 2733|   224k|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|   224k|	do {                          \
  |  |   50|   224k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 224k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|   224k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 13.3k, False: 210k]
  |  |  ------------------
  |  |   54|  13.3k|			(chunk)->line++;      \
  |  |   55|  13.3k|			(chunk)->column = 0;  \
  |  |   56|  13.3k|		}                         \
  |  |   57|   224k|		else                      \
  |  |   58|   224k|			(chunk)->column++;    \
  |  |   59|   224k|		(p++);                    \
  |  |   60|   224k|		(chunk)->pos++;           \
  |  |   61|   224k|		(chunk)->remain--;        \
  |  |   62|   224k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 224k]
  |  |  ------------------
  ------------------
 2734|   224k|		}
 2735|  6.70k|		if (p >= chunk->end) {
  ------------------
  |  Branch (2735:7): [True: 2.01k, False: 4.68k]
  ------------------
 2736|  2.01k|			ucl_set_err(parser, UCL_ESYNTAX,
 2737|  2.01k|						"unterminated macro value, missing '}'",
 2738|  2.01k|						&parser->err);
 2739|  2.01k|			return false;
 2740|  2.01k|		}
 2741|  4.68k|		*macro_start = c;
 2742|  4.68k|		*macro_len = p - c;
 2743|  4.68k|		ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  4.68k|	do {                          \
  |  |   50|  4.68k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 4.68k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  4.68k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 4.68k]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  4.68k|		else                      \
  |  |   58|  4.68k|			(chunk)->column++;    \
  |  |   59|  4.68k|		(p++);                    \
  |  |   60|  4.68k|		(chunk)->pos++;           \
  |  |   61|  4.68k|		(chunk)->remain--;        \
  |  |   62|  4.68k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 4.68k]
  |  |  ------------------
  ------------------
 2744|  4.68k|		break;
 2745|  65.8k|	default:
  ------------------
  |  Branch (2745:2): [True: 65.8k, False: 8.31k]
  ------------------
 2746|       |		/* Macro is not enclosed in quotes or braces */
 2747|  65.8k|		c = p;
 2748|  1.09M|		while (p < chunk->end) {
  ------------------
  |  Branch (2748:10): [True: 1.07M, False: 13.2k]
  ------------------
 2749|  1.07M|			if (ucl_lex_is_atom_end(*p)) {
  ------------------
  |  Branch (2749:8): [True: 52.6k, False: 1.02M]
  ------------------
 2750|  52.6k|				break;
 2751|  52.6k|			}
 2752|  1.02M|			ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  1.02M|	do {                          \
  |  |   50|  1.02M|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 1.02M]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  1.02M|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 0, False: 1.02M]
  |  |  ------------------
  |  |   54|      0|			(chunk)->line++;      \
  |  |   55|      0|			(chunk)->column = 0;  \
  |  |   56|      0|		}                         \
  |  |   57|  1.02M|		else                      \
  |  |   58|  1.02M|			(chunk)->column++;    \
  |  |   59|  1.02M|		(p++);                    \
  |  |   60|  1.02M|		(chunk)->pos++;           \
  |  |   61|  1.02M|		(chunk)->remain--;        \
  |  |   62|  1.02M|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 1.02M]
  |  |  ------------------
  ------------------
 2753|  1.02M|		}
 2754|  65.8k|		*macro_start = c;
 2755|  65.8k|		*macro_len = p - c;
 2756|  65.8k|		break;
 2757|  74.2k|	}
 2758|       |
 2759|       |	/* We are at the end of a macro */
 2760|       |	/* Skip ';' and space characters and return to previous state */
 2761|   136k|	while (p < chunk->end) {
  ------------------
  |  Branch (2761:9): [True: 122k, False: 13.6k]
  ------------------
 2762|   122k|		if (!ucl_test_character(*p, UCL_CHARACTER_WHITESPACE_UNSAFE) && *p != ';') {
  ------------------
  |  Branch (2762:7): [True: 59.3k, False: 63.3k]
  |  Branch (2762:67): [True: 58.3k, False: 976]
  ------------------
 2763|  58.3k|			break;
 2764|  58.3k|		}
 2765|  64.2k|		ucl_chunk_skipc(chunk, p);
  ------------------
  |  |   49|  64.2k|	do {                          \
  |  |   50|  64.2k|		if (p == chunk->end) {    \
  |  |  ------------------
  |  |  |  Branch (50:7): [True: 0, False: 64.2k]
  |  |  ------------------
  |  |   51|      0|			break;                \
  |  |   52|      0|		}                         \
  |  |   53|  64.2k|		if (*(p) == '\n') {       \
  |  |  ------------------
  |  |  |  Branch (53:7): [True: 37.8k, False: 26.4k]
  |  |  ------------------
  |  |   54|  37.8k|			(chunk)->line++;      \
  |  |   55|  37.8k|			(chunk)->column = 0;  \
  |  |   56|  37.8k|		}                         \
  |  |   57|  64.2k|		else                      \
  |  |   58|  64.2k|			(chunk)->column++;    \
  |  |   59|  64.2k|		(p++);                    \
  |  |   60|  64.2k|		(chunk)->pos++;           \
  |  |   61|  64.2k|		(chunk)->remain--;        \
  |  |   62|  64.2k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (62:11): [Folded, False: 64.2k]
  |  |  ------------------
  ------------------
 2766|  64.2k|	}
 2767|       |	return true;
 2768|  74.2k|}
ucl_parser.c:ucl_expand_variable:
  642|  76.3k|{
  643|  76.3k|	const char *p, *end = src + in_len;
  644|  76.3k|	unsigned char *d, *d_end;
  645|  76.3k|	size_t out_len = 0, alloc_len;
  646|  76.3k|	bool vars_found = false;
  647|       |
  648|  76.3k|	if (parser->flags & UCL_PARSER_DISABLE_MACRO) {
  ------------------
  |  Branch (648:6): [True: 0, False: 76.3k]
  ------------------
  649|      0|		*dst = NULL;
  650|      0|		return in_len;
  651|      0|	}
  652|       |
  653|  76.3k|	p = src;
  654|  2.09M|	while (p != end) {
  ------------------
  |  Branch (654:9): [True: 2.01M, False: 76.3k]
  ------------------
  655|  2.01M|		if (*p == '$' && p + 1 != end) {
  ------------------
  |  Branch (655:7): [True: 76.6k, False: 1.94M]
  |  Branch (655:20): [True: 75.2k, False: 1.43k]
  ------------------
  656|  75.2k|			p = ucl_check_variable(parser, p + 1, end - p - 1, &out_len, &vars_found);
  657|  75.2k|		}
  658|  1.94M|		else {
  659|  1.94M|			p++;
  660|  1.94M|			out_len++;
  661|  1.94M|		}
  662|  2.01M|	}
  663|       |
  664|  76.3k|	if (!vars_found) {
  ------------------
  |  Branch (664:6): [True: 74.9k, False: 1.38k]
  ------------------
  665|       |		/* Trivial case */
  666|  74.9k|		*dst = NULL;
  667|  74.9k|		return in_len;
  668|  74.9k|	}
  669|       |
  670|  1.38k|	*dst = NULL;
  671|  1.38k|	if (ucl_size_add(out_len, 1, &alloc_len)) {
  ------------------
  |  Branch (671:6): [True: 1.38k, False: 0]
  ------------------
  672|  1.38k|		*dst = UCL_ALLOC(alloc_len);
  ------------------
  |  |   71|  1.38k|#define UCL_ALLOC(size) malloc(size)
  ------------------
  673|  1.38k|	}
  674|  1.38k|	if (*dst == NULL) {
  ------------------
  |  Branch (674:6): [True: 0, False: 1.38k]
  ------------------
  675|      0|		return in_len;
  676|      0|	}
  677|       |
  678|  1.38k|	d = *dst;
  679|  1.38k|	d_end = d + out_len;
  680|  1.38k|	p = src;
  681|   350k|	while (p != end && d != d_end) {
  ------------------
  |  Branch (681:9): [True: 349k, False: 1.38k]
  |  Branch (681:21): [True: 349k, False: 0]
  ------------------
  682|   349k|		if (*p == '$' && p + 1 != end) {
  ------------------
  |  Branch (682:7): [True: 46.4k, False: 302k]
  |  Branch (682:20): [True: 45.8k, False: 527]
  ------------------
  683|  45.8k|			p = ucl_expand_single_variable(parser, p, end - p, &d, d_end - d);
  684|  45.8k|		}
  685|   303k|		else {
  686|   303k|			*d++ = *p++;
  687|   303k|		}
  688|   349k|	}
  689|       |
  690|  1.38k|	*d = '\0';
  691|       |
  692|  1.38k|	return out_len;
  693|  1.38k|}
ucl_parser.c:ucl_check_variable:
  485|  75.2k|{
  486|  75.2k|	const char *p, *end, *ret = ptr;
  487|  75.2k|	bool found = false;
  488|       |
  489|  75.2k|	if (*ptr == '{') {
  ------------------
  |  Branch (489:6): [True: 24.2k, False: 51.0k]
  ------------------
  490|       |		/* We need to match the variable enclosed in braces */
  491|  24.2k|		p = ptr + 1;
  492|  24.2k|		end = ptr + remain;
  493|  60.6M|		while (p < end) {
  ------------------
  |  Branch (493:10): [True: 60.6M, False: 7.24k]
  ------------------
  494|  60.6M|			if (*p == '}') {
  ------------------
  |  Branch (494:8): [True: 16.9k, False: 60.5M]
  ------------------
  495|  16.9k|				ret = ucl_check_variable_safe(parser, ptr + 1, p - ptr - 1,
  496|  16.9k|											  out_len, true, &found);
  497|  16.9k|				if (found) {
  ------------------
  |  Branch (497:9): [True: 2.99k, False: 13.9k]
  ------------------
  498|       |					/* {} must be excluded actually */
  499|  2.99k|					ret++;
  500|  2.99k|					if (!*vars_found) {
  ------------------
  |  Branch (500:10): [True: 428, False: 2.56k]
  ------------------
  501|    428|						*vars_found = true;
  502|    428|					}
  503|  2.99k|				}
  504|  13.9k|				else {
  505|  13.9k|					*out_len += 2;
  506|  13.9k|				}
  507|  16.9k|				break;
  508|  16.9k|			}
  509|  60.5M|			p++;
  510|  60.5M|		}
  511|  24.2k|		if (p == end) {
  ------------------
  |  Branch (511:7): [True: 7.24k, False: 16.9k]
  ------------------
  512|  7.24k|			(*out_len)++;
  513|  7.24k|		}
  514|  24.2k|	}
  515|  51.0k|	else if (*ptr != '$') {
  ------------------
  |  Branch (515:11): [True: 12.6k, False: 38.4k]
  ------------------
  516|       |		/* Not count escaped dollar sign */
  517|  12.6k|		ret = ucl_check_variable_safe(parser, ptr, remain, out_len, false, &found);
  518|  12.6k|		if (found && !*vars_found) {
  ------------------
  |  Branch (518:7): [True: 1.58k, False: 11.0k]
  |  Branch (518:16): [True: 952, False: 632]
  ------------------
  519|    952|			*vars_found = true;
  520|    952|		}
  521|  12.6k|		if (!found) {
  ------------------
  |  Branch (521:7): [True: 11.0k, False: 1.58k]
  ------------------
  522|  11.0k|			(*out_len)++;
  523|  11.0k|		}
  524|  12.6k|	}
  525|  38.4k|	else {
  526|  38.4k|		ret++;
  527|  38.4k|		(*out_len)++;
  528|  38.4k|	}
  529|       |
  530|  75.2k|	return ret;
  531|  75.2k|}
ucl_parser.c:ucl_check_variable_safe:
  427|  29.5k|{
  428|  29.5k|	struct ucl_variable *var;
  429|  29.5k|	unsigned char *dst;
  430|  29.5k|	size_t dstlen;
  431|  29.5k|	bool need_free = false;
  432|       |
  433|  29.5k|	LL_FOREACH(parser->variables, var)
  ------------------
  |  |  416|  29.5k|    LL_FOREACH2(head,el,next)
  |  |  ------------------
  |  |  |  |  419|  64.7k|    for ((el) = (head); el; (el) = (el)->next)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (419:25): [True: 39.8k, False: 24.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  434|  39.8k|	{
  435|  39.8k|		if (strict) {
  ------------------
  |  Branch (435:7): [True: 25.7k, False: 14.1k]
  ------------------
  436|  25.7k|			if (remain == var->var_len) {
  ------------------
  |  Branch (436:8): [True: 3.44k, False: 22.2k]
  ------------------
  437|  3.44k|				if (memcmp(ptr, var->var, var->var_len) == 0) {
  ------------------
  |  Branch (437:9): [True: 2.99k, False: 445]
  ------------------
  438|  2.99k|					*out_len += var->value_len;
  439|  2.99k|					*found = true;
  440|  2.99k|					return (ptr + var->var_len);
  441|  2.99k|				}
  442|  3.44k|			}
  443|  25.7k|		}
  444|  14.1k|		else {
  445|  14.1k|			if (remain >= var->var_len) {
  ------------------
  |  Branch (445:8): [True: 12.7k, False: 1.33k]
  ------------------
  446|  12.7k|				if (memcmp(ptr, var->var, var->var_len) == 0) {
  ------------------
  |  Branch (446:9): [True: 1.58k, False: 11.1k]
  ------------------
  447|  1.58k|					*out_len += var->value_len;
  448|  1.58k|					*found = true;
  449|  1.58k|					return (ptr + var->var_len);
  450|  1.58k|				}
  451|  12.7k|			}
  452|  14.1k|		}
  453|  39.8k|	}
  454|       |
  455|       |	/* XXX: can only handle ${VAR} */
  456|  24.9k|	if (!(*found) && parser->var_handler != NULL && strict) {
  ------------------
  |  Branch (456:6): [True: 24.9k, False: 0]
  |  Branch (456:19): [True: 0, False: 24.9k]
  |  Branch (456:50): [True: 0, False: 0]
  ------------------
  457|       |		/* Call generic handler */
  458|      0|		if (parser->var_handler(ptr, remain, &dst, &dstlen, &need_free,
  ------------------
  |  Branch (458:7): [True: 0, False: 0]
  ------------------
  459|      0|								parser->var_data)) {
  460|      0|			*found = true;
  461|      0|			*out_len += dstlen;
  462|       |
  463|      0|			if (need_free) {
  ------------------
  |  Branch (463:8): [True: 0, False: 0]
  ------------------
  464|      0|				free(dst);
  465|      0|			}
  466|      0|			return (ptr + remain);
  467|      0|		}
  468|      0|	}
  469|       |
  470|  24.9k|	return ptr;
  471|  24.9k|}
ucl_parser.c:ucl_expand_single_variable:
  545|  45.8k|{
  546|  45.8k|	unsigned char *d = *dest, *dst;
  547|  45.8k|	const char *p = ptr + 1, *ret, *var_end;
  548|  45.8k|	struct ucl_variable *var;
  549|  45.8k|	size_t dstlen;
  550|  45.8k|	bool need_free = false;
  551|  45.8k|	bool found = false;
  552|  45.8k|	bool strict = false;
  553|       |
  554|  45.8k|	ret = ptr + 1;
  555|       |	/* For the $ sign */
  556|  45.8k|	in_len--;
  557|       |
  558|  45.8k|	if (*p == '$') {
  ------------------
  |  Branch (558:6): [True: 23.5k, False: 22.3k]
  ------------------
  559|  23.5k|		*d++ = *p++;
  560|  23.5k|		*dest = d;
  561|  23.5k|		return p;
  562|  23.5k|	}
  563|  22.3k|	else if (*p == '{') {
  ------------------
  |  Branch (563:11): [True: 16.1k, False: 6.23k]
  ------------------
  564|  16.1k|		p++;
  565|  16.1k|		in_len--;
  566|  16.1k|		strict = true;
  567|  16.1k|		ret += 2;
  568|  16.1k|	}
  569|       |
  570|  22.3k|	LL_FOREACH(parser->variables, var)
  ------------------
  |  |  416|  22.3k|    LL_FOREACH2(head,el,next)
  |  |  ------------------
  |  |  |  |  419|  59.0k|    for ((el) = (head); el; (el) = (el)->next)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (419:25): [True: 41.2k, False: 17.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  571|  41.2k|	{
  572|  41.2k|		if (out_len >= var->value_len && in_len >= (var->var_len + (strict ? 1 : 0))) {
  ------------------
  |  Branch (572:7): [True: 40.3k, False: 910]
  |  Branch (572:36): [True: 40.0k, False: 339]
  |  Branch (572:63): [True: 29.1k, False: 11.2k]
  ------------------
  573|  40.0k|			if (memcmp(p, var->var, var->var_len) == 0) {
  ------------------
  |  Branch (573:8): [True: 5.27k, False: 34.7k]
  ------------------
  574|  5.27k|				if (!strict || p[var->var_len] == '}') {
  ------------------
  |  Branch (574:9): [True: 1.58k, False: 3.68k]
  |  Branch (574:20): [True: 2.99k, False: 690]
  ------------------
  575|  4.58k|					memcpy(d, var->value, var->value_len);
  576|  4.58k|					ret += var->var_len;
  577|  4.58k|					d += var->value_len;
  578|  4.58k|					found = true;
  579|  4.58k|					break;
  580|  4.58k|				}
  581|  5.27k|			}
  582|  40.0k|		}
  583|  41.2k|	}
  584|       |
  585|  22.3k|	if (!found) {
  ------------------
  |  Branch (585:6): [True: 17.7k, False: 4.58k]
  ------------------
  586|  17.7k|		if (strict && parser->var_handler != NULL &&
  ------------------
  |  Branch (586:7): [True: 13.1k, False: 4.64k]
  |  Branch (586:17): [True: 0, False: 13.1k]
  ------------------
  587|      0|			(var_end = memchr(p, '}', in_len)) != NULL) {
  ------------------
  |  Branch (587:4): [True: 0, False: 0]
  ------------------
  588|      0|			dstlen = out_len;
  589|       |
  590|       |			/* Use the same variable name as the length-counting pass. */
  591|      0|			if (parser->var_handler(p, var_end - p, &dst, &dstlen, &need_free,
  ------------------
  |  Branch (591:8): [True: 0, False: 0]
  ------------------
  592|      0|									parser->var_data)) {
  593|      0|				if (dstlen > out_len) {
  ------------------
  |  Branch (593:9): [True: 0, False: 0]
  ------------------
  594|       |					/* We do not have enough space! */
  595|      0|					if (need_free) {
  ------------------
  |  Branch (595:10): [True: 0, False: 0]
  ------------------
  596|      0|						free(dst);
  597|      0|					}
  598|      0|				}
  599|      0|				else {
  600|      0|					memcpy(d, dst, dstlen);
  601|      0|					ret = var_end + 1;
  602|      0|					d += dstlen;
  603|      0|					found = true;
  604|       |
  605|      0|					if (need_free) {
  ------------------
  |  Branch (605:10): [True: 0, False: 0]
  ------------------
  606|      0|						free(dst);
  607|      0|					}
  608|      0|				}
  609|      0|			}
  610|      0|		}
  611|       |
  612|       |		/* Leave variable as is, in this case we use dest */
  613|  17.7k|		if (!found) {
  ------------------
  |  Branch (613:7): [True: 17.7k, False: 0]
  ------------------
  614|  17.7k|			if (strict && out_len >= 2) {
  ------------------
  |  Branch (614:8): [True: 13.1k, False: 4.64k]
  |  Branch (614:18): [True: 13.1k, False: 0]
  ------------------
  615|       |				/* Copy '${' */
  616|  13.1k|				memcpy(d, ptr, 2);
  617|  13.1k|				d += 2;
  618|  13.1k|				ret--;
  619|  13.1k|			}
  620|  4.64k|			else {
  621|  4.64k|				memcpy(d, ptr, 1);
  622|  4.64k|				d++;
  623|  4.64k|			}
  624|  17.7k|		}
  625|  17.7k|	}
  626|       |
  627|  22.3k|	*dest = d;
  628|  22.3k|	return ret;
  629|  45.8k|}

ucl_unescape_json_string:
  378|  11.4k|{
  379|  11.4k|	char *t = str, *h = str;
  380|  11.4k|	int i, uval;
  381|       |
  382|  11.4k|	if (len <= 1) {
  ------------------
  |  Branch (382:6): [True: 1.45k, False: 9.97k]
  ------------------
  383|  1.45k|		return len;
  384|  1.45k|	}
  385|       |	/* t is target (tortoise), h is source (hare) */
  386|       |
  387|   723k|	while (len) {
  ------------------
  |  Branch (387:9): [True: 713k, False: 9.97k]
  ------------------
  388|   713k|		if (*h == '\\') {
  ------------------
  |  Branch (388:7): [True: 58.9k, False: 654k]
  ------------------
  389|  58.9k|			h++;
  390|       |
  391|  58.9k|			if (len == 1) {
  ------------------
  |  Branch (391:8): [True: 1.90k, False: 57.0k]
  ------------------
  392|       |				/*
  393|       |				 * If \ is last, then do not try to go further
  394|       |				 * Issue: #74
  395|       |				 */
  396|  1.90k|				len--;
  397|  1.90k|				*t++ = '\\';
  398|  1.90k|				continue;
  399|  1.90k|			}
  400|       |
  401|  57.0k|			switch (*h) {
  402|  1.33k|			case 'n':
  ------------------
  |  Branch (402:4): [True: 1.33k, False: 55.7k]
  ------------------
  403|  1.33k|				*t++ = '\n';
  404|  1.33k|				break;
  405|    269|			case 'r':
  ------------------
  |  Branch (405:4): [True: 269, False: 56.7k]
  ------------------
  406|    269|				*t++ = '\r';
  407|    269|				break;
  408|    474|			case 'b':
  ------------------
  |  Branch (408:4): [True: 474, False: 56.5k]
  ------------------
  409|    474|				*t++ = '\b';
  410|    474|				break;
  411|    758|			case 't':
  ------------------
  |  Branch (411:4): [True: 758, False: 56.3k]
  ------------------
  412|    758|				*t++ = '\t';
  413|    758|				break;
  414|    234|			case 'f':
  ------------------
  |  Branch (414:4): [True: 234, False: 56.8k]
  ------------------
  415|    234|				*t++ = '\f';
  416|    234|				break;
  417|  9.83k|			case '\\':
  ------------------
  |  Branch (417:4): [True: 9.83k, False: 47.2k]
  ------------------
  418|  9.83k|				*t++ = '\\';
  419|  9.83k|				break;
  420|    672|			case '"':
  ------------------
  |  Branch (420:4): [True: 672, False: 56.3k]
  ------------------
  421|    672|				*t++ = '"';
  422|    672|				break;
  423|  31.2k|			case 'u':
  ------------------
  |  Branch (423:4): [True: 31.2k, False: 25.8k]
  ------------------
  424|       |				/* Unicode escape */
  425|  31.2k|				uval = 0;
  426|  31.2k|				h++; /* u character */
  427|  31.2k|				len--;
  428|       |
  429|  31.2k|				if (len > 3) {
  ------------------
  |  Branch (429:9): [True: 30.6k, False: 525]
  ------------------
  430|  86.8k|					for (i = 0; i < 4; i++) {
  ------------------
  |  Branch (430:18): [True: 78.4k, False: 8.46k]
  ------------------
  431|  78.4k|						uval <<= 4;
  432|  78.4k|						if (isdigit(h[i])) {
  ------------------
  |  Branch (432:11): [True: 35.8k, False: 42.6k]
  ------------------
  433|  35.8k|							uval += h[i] - '0';
  434|  35.8k|						}
  435|  42.6k|						else if (h[i] >= 'a' && h[i] <= 'f') {
  ------------------
  |  Branch (435:16): [True: 19.6k, False: 23.0k]
  |  Branch (435:31): [True: 19.0k, False: 566]
  ------------------
  436|  19.0k|							uval += h[i] - 'a' + 10;
  437|  19.0k|						}
  438|  23.5k|						else if (h[i] >= 'A' && h[i] <= 'F') {
  ------------------
  |  Branch (438:16): [True: 9.72k, False: 13.8k]
  |  Branch (438:31): [True: 1.35k, False: 8.36k]
  ------------------
  439|  1.35k|							uval += h[i] - 'A' + 10;
  440|  1.35k|						}
  441|  22.2k|						else {
  442|  22.2k|							break;
  443|  22.2k|						}
  444|  78.4k|					}
  445|       |
  446|       |					/* Encode */
  447|  30.6k|					if (uval < 0x80) {
  ------------------
  |  Branch (447:10): [True: 14.3k, False: 16.3k]
  ------------------
  448|  14.3k|						t[0] = (char) uval;
  449|  14.3k|						t++;
  450|  14.3k|					}
  451|  16.3k|					else if (uval < 0x800) {
  ------------------
  |  Branch (451:15): [True: 6.94k, False: 9.37k]
  ------------------
  452|  6.94k|						t[0] = 0xC0 + ((uval & 0x7C0) >> 6);
  453|  6.94k|						t[1] = 0x80 + ((uval & 0x03F));
  454|  6.94k|						t += 2;
  455|  6.94k|					}
  456|  9.37k|					else if (uval < 0x10000) {
  ------------------
  |  Branch (456:15): [True: 9.37k, False: 0]
  ------------------
  457|  9.37k|						t[0] = 0xE0 + ((uval & 0xF000) >> 12);
  458|  9.37k|						t[1] = 0x80 + ((uval & 0x0FC0) >> 6);
  459|  9.37k|						t[2] = 0x80 + ((uval & 0x003F));
  460|  9.37k|						t += 3;
  461|  9.37k|					}
  462|       |#if 0
  463|       |					/* It's not actually supported now */
  464|       |					else if(uval <= 0x10FFFF) {
  465|       |						t[0] = 0xF0 + ((uval & 0x1C0000) >> 18);
  466|       |						t[1] = 0x80 + ((uval & 0x03F000) >> 12);
  467|       |						t[2] = 0x80 + ((uval & 0x000FC0) >> 6);
  468|       |						t[3] = 0x80 + ((uval & 0x00003F));
  469|       |						t += 4;
  470|       |					}
  471|       |#endif
  472|      0|					else {
  473|      0|						*t++ = '?';
  474|      0|					}
  475|       |
  476|       |					/* Consume 4 characters of source */
  477|  30.6k|					h += 4;
  478|  30.6k|					len -= 4;
  479|       |
  480|  30.6k|					if (len > 0) {
  ------------------
  |  Branch (480:10): [True: 30.3k, False: 341]
  ------------------
  481|  30.3k|						len--; /* for '\' character */
  482|  30.3k|					}
  483|  30.6k|					continue;
  484|  30.6k|				}
  485|    525|				else {
  486|    525|					*t++ = 'u';
  487|    525|				}
  488|    525|				break;
  489|  12.2k|			default:
  ------------------
  |  Branch (489:4): [True: 12.2k, False: 44.7k]
  ------------------
  490|  12.2k|				*t++ = *h;
  491|  12.2k|				break;
  492|  57.0k|			}
  493|  26.3k|			h++;
  494|  26.3k|			len--;
  495|  26.3k|		}
  496|   654k|		else {
  497|   654k|			*t++ = *h++;
  498|   654k|		}
  499|       |
  500|   681k|		if (len > 0) {
  ------------------
  |  Branch (500:7): [True: 681k, False: 355]
  ------------------
  501|   681k|			len--;
  502|   681k|		}
  503|   681k|	}
  504|  9.97k|	*t = '\0';
  505|       |
  506|  9.97k|	return (t - str);
  507|  9.97k|}
ucl_unescape_squoted_string:
  511|    308|{
  512|    308|	char *t = str, *h = str;
  513|       |
  514|    308|	if (len <= 1) {
  ------------------
  |  Branch (514:6): [True: 0, False: 308]
  ------------------
  515|      0|		return len;
  516|      0|	}
  517|       |
  518|       |	/* t is target (tortoise), h is source (hare) */
  519|       |
  520|   443k|	while (len) {
  ------------------
  |  Branch (520:9): [True: 443k, False: 308]
  ------------------
  521|   443k|		if (*h == '\\') {
  ------------------
  |  Branch (521:7): [True: 10.2k, False: 433k]
  ------------------
  522|  10.2k|			h++;
  523|       |
  524|  10.2k|			if (len == 1) {
  ------------------
  |  Branch (524:8): [True: 0, False: 10.2k]
  ------------------
  525|       |				/*
  526|       |				 * If \ is last, then do not try to go further
  527|       |				 * Issue: #74
  528|       |				 */
  529|      0|				len--;
  530|      0|				*t++ = '\\';
  531|      0|				continue;
  532|      0|			}
  533|       |
  534|  10.2k|			switch (*h) {
  535|    202|			case '\'':
  ------------------
  |  Branch (535:4): [True: 202, False: 10.0k]
  ------------------
  536|    202|				*t++ = '\'';
  537|    202|				break;
  538|    740|			case '\n':
  ------------------
  |  Branch (538:4): [True: 740, False: 9.46k]
  ------------------
  539|       |				/* Ignore \<newline> style stuff */
  540|    740|				break;
  541|  1.71k|			case '\r':
  ------------------
  |  Branch (541:4): [True: 1.71k, False: 8.49k]
  ------------------
  542|       |				/* Ignore \r and the following \n if needed */
  543|  1.71k|				if (len > 1 && h[1] == '\n') {
  ------------------
  |  Branch (543:9): [True: 1.71k, False: 0]
  |  Branch (543:20): [True: 1.40k, False: 308]
  ------------------
  544|  1.40k|					h++;
  545|  1.40k|					len--;
  546|  1.40k|				}
  547|  1.71k|				break;
  548|  7.55k|			default:
  ------------------
  |  Branch (548:4): [True: 7.55k, False: 2.65k]
  ------------------
  549|       |				/* Ignore \ */
  550|  7.55k|				*t++ = '\\';
  551|  7.55k|				*t++ = *h;
  552|  7.55k|				break;
  553|  10.2k|			}
  554|       |
  555|  10.2k|			h++;
  556|  10.2k|			len--;
  557|  10.2k|		}
  558|   433k|		else {
  559|   433k|			*t++ = *h++;
  560|   433k|		}
  561|       |
  562|   443k|		if (len > 0) {
  ------------------
  |  Branch (562:7): [True: 443k, False: 0]
  ------------------
  563|   443k|			len--;
  564|   443k|		}
  565|   443k|	}
  566|       |
  567|    308|	*t = '\0';
  568|       |
  569|    308|	return (t - str);
  570|    308|}
ucl_copy_key_trash:
  574|  8.05k|{
  575|  8.05k|	ucl_object_t *deconst;
  576|  8.05k|	size_t alloc_len;
  577|       |
  578|  8.05k|	if (obj == NULL) {
  ------------------
  |  Branch (578:6): [True: 0, False: 8.05k]
  ------------------
  579|      0|		return NULL;
  580|      0|	}
  581|  8.05k|	if (obj->trash_stack[UCL_TRASH_KEY] == NULL && obj->key != NULL) {
  ------------------
  |  |  153|  8.05k|#define UCL_TRASH_KEY 0
  ------------------
  |  Branch (581:6): [True: 2.79k, False: 5.25k]
  |  Branch (581:49): [True: 2.79k, False: 0]
  ------------------
  582|  2.79k|		deconst = __DECONST(ucl_object_t *, obj);
  ------------------
  |  |  135|  2.79k|#define __DECONST(type, var) ((type) (uintptr_t) (const void *) (var))
  ------------------
  583|  2.79k|		if (ucl_size_add(obj->keylen, 1, &alloc_len)) {
  ------------------
  |  Branch (583:7): [True: 2.79k, False: 0]
  ------------------
  584|  2.79k|			deconst->trash_stack[UCL_TRASH_KEY] = UCL_ALLOC(alloc_len);
  ------------------
  |  |  153|  2.79k|#define UCL_TRASH_KEY 0
  ------------------
              			deconst->trash_stack[UCL_TRASH_KEY] = UCL_ALLOC(alloc_len);
  ------------------
  |  |   71|  2.79k|#define UCL_ALLOC(size) malloc(size)
  ------------------
  585|  2.79k|		}
  586|  2.79k|		if (deconst->trash_stack[UCL_TRASH_KEY] == NULL) {
  ------------------
  |  |  153|  2.79k|#define UCL_TRASH_KEY 0
  ------------------
  |  Branch (586:7): [True: 0, False: 2.79k]
  ------------------
  587|       |			/* Keep the key as it is: the caller has to fail */
  588|      0|			return NULL;
  589|      0|		}
  590|  2.79k|		memcpy(deconst->trash_stack[UCL_TRASH_KEY], obj->key, obj->keylen);
  ------------------
  |  |  153|  2.79k|#define UCL_TRASH_KEY 0
  ------------------
  591|  2.79k|		deconst->trash_stack[UCL_TRASH_KEY][obj->keylen] = '\0';
  ------------------
  |  |  153|  2.79k|#define UCL_TRASH_KEY 0
  ------------------
  592|  2.79k|		deconst->key = obj->trash_stack[UCL_TRASH_KEY];
  ------------------
  |  |  153|  2.79k|#define UCL_TRASH_KEY 0
  ------------------
  593|  2.79k|		deconst->flags |= UCL_OBJECT_ALLOCATED_KEY;
  594|  2.79k|	}
  595|       |
  596|  8.05k|	return obj->trash_stack[UCL_TRASH_KEY];
  ------------------
  |  |  153|  8.05k|#define UCL_TRASH_KEY 0
  ------------------
  597|  8.05k|}
ucl_chunk_free:
  600|  95.0k|{
  601|  95.0k|	if (chunk) {
  ------------------
  |  Branch (601:6): [True: 95.0k, False: 0]
  ------------------
  602|  95.0k|		struct ucl_parser_special_handler_chain *chain, *tmp;
  603|       |
  604|  95.0k|		LL_FOREACH_SAFE(chunk->special_handlers, chain, tmp)
  ------------------
  |  |  422|  95.0k|    LL_FOREACH_SAFE2(head,el,tmp,next)
  |  |  ------------------
  |  |  |  |  425|  95.0k|  for ((el) = (head); (el) && ((tmp) = (el)->next, 1); (el) = (tmp))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (425:23): [True: 0, False: 95.0k]
  |  |  |  |  |  Branch (425:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  605|      0|		{
  606|      0|			if (chain->special_handler->free_function) {
  ------------------
  |  Branch (606:8): [True: 0, False: 0]
  ------------------
  607|      0|				chain->special_handler->free_function(
  608|      0|					chain->begin,
  609|      0|					chain->len,
  610|      0|					chain->special_handler->user_data);
  611|      0|			}
  612|      0|			else {
  613|      0|				UCL_FREE(chain->len, chain->begin);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  614|      0|			}
  615|       |
  616|      0|			UCL_FREE(sizeof(*chain), chain);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  617|      0|		}
  618|       |
  619|  95.0k|		chunk->special_handlers = NULL;
  620|       |
  621|  95.0k|		if (chunk->fname) {
  ------------------
  |  Branch (621:7): [True: 14.5k, False: 80.4k]
  ------------------
  622|  14.5k|			UCL_FREE(strlen(chunk->fname) + 1, chunk->fname);
  ------------------
  |  |   74|  14.5k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  623|  14.5k|		}
  624|       |
  625|  95.0k|		UCL_FREE(sizeof(*chunk), chunk);
  ------------------
  |  |   74|  95.0k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  626|  95.0k|	}
  627|  95.0k|}
ucl_copy_value_trash:
  631|  89.3k|{
  632|  89.3k|	ucl_object_t *deconst;
  633|  89.3k|	size_t alloc_len;
  634|       |
  635|  89.3k|	if (obj == NULL) {
  ------------------
  |  Branch (635:6): [True: 0, False: 89.3k]
  ------------------
  636|      0|		return NULL;
  637|      0|	}
  638|  89.3k|	if (obj->trash_stack[UCL_TRASH_VALUE] == NULL) {
  ------------------
  |  |  154|  89.3k|#define UCL_TRASH_VALUE 1
  ------------------
  |  Branch (638:6): [True: 0, False: 89.3k]
  ------------------
  639|      0|		deconst = __DECONST(ucl_object_t *, obj);
  ------------------
  |  |  135|      0|#define __DECONST(type, var) ((type) (uintptr_t) (const void *) (var))
  ------------------
  640|      0|		if (obj->type == UCL_STRING) {
  ------------------
  |  Branch (640:7): [True: 0, False: 0]
  ------------------
  641|       |
  642|       |			/* Special case for strings */
  643|      0|			if (obj->flags & UCL_OBJECT_BINARY) {
  ------------------
  |  Branch (643:8): [True: 0, False: 0]
  ------------------
  644|      0|				deconst->trash_stack[UCL_TRASH_VALUE] = UCL_ALLOC(obj->len);
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
              				deconst->trash_stack[UCL_TRASH_VALUE] = UCL_ALLOC(obj->len);
  ------------------
  |  |   71|      0|#define UCL_ALLOC(size) malloc(size)
  ------------------
  645|      0|				if (deconst->trash_stack[UCL_TRASH_VALUE] != NULL) {
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
  |  Branch (645:9): [True: 0, False: 0]
  ------------------
  646|      0|					memcpy(deconst->trash_stack[UCL_TRASH_VALUE],
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
  647|      0|						   obj->value.sv,
  648|      0|						   obj->len);
  649|      0|					deconst->value.sv = obj->trash_stack[UCL_TRASH_VALUE];
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
  650|      0|				}
  651|      0|			}
  652|      0|			else {
  653|      0|				if (ucl_size_add(obj->len, 1, &alloc_len)) {
  ------------------
  |  Branch (653:9): [True: 0, False: 0]
  ------------------
  654|      0|					deconst->trash_stack[UCL_TRASH_VALUE] = UCL_ALLOC(alloc_len);
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
              					deconst->trash_stack[UCL_TRASH_VALUE] = UCL_ALLOC(alloc_len);
  ------------------
  |  |   71|      0|#define UCL_ALLOC(size) malloc(size)
  ------------------
  655|      0|				}
  656|      0|				if (deconst->trash_stack[UCL_TRASH_VALUE] != NULL) {
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
  |  Branch (656:9): [True: 0, False: 0]
  ------------------
  657|      0|					memcpy(deconst->trash_stack[UCL_TRASH_VALUE],
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
  658|      0|						   obj->value.sv,
  659|      0|						   obj->len);
  660|      0|					deconst->trash_stack[UCL_TRASH_VALUE][obj->len] = '\0';
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
  661|      0|					deconst->value.sv = obj->trash_stack[UCL_TRASH_VALUE];
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
  662|      0|				}
  663|      0|			}
  664|      0|		}
  665|      0|		else {
  666|       |			/* Just emit value in json notation */
  667|      0|			deconst->trash_stack[UCL_TRASH_VALUE] = ucl_object_emit_single_json(obj);
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
  668|      0|			deconst->len = strlen(obj->trash_stack[UCL_TRASH_VALUE]);
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
  669|      0|		}
  670|      0|		deconst->flags |= UCL_OBJECT_ALLOCATED_VALUE;
  671|      0|	}
  672|       |
  673|  89.3k|	return obj->trash_stack[UCL_TRASH_VALUE];
  ------------------
  |  |  154|  89.3k|#define UCL_TRASH_VALUE 1
  ------------------
  674|  89.3k|}
ucl_parser_get_object:
  678|  41.1k|{
  679|  41.1k|	if (parser->state != UCL_STATE_ERROR && parser->top_obj != NULL) {
  ------------------
  |  Branch (679:6): [True: 38.9k, False: 2.24k]
  |  Branch (679:42): [True: 38.9k, False: 0]
  ------------------
  680|  38.9k|		return ucl_object_ref(parser->top_obj);
  681|  38.9k|	}
  682|       |
  683|  2.24k|	return NULL;
  684|  41.1k|}
ucl_parser_free:
  687|  80.4k|{
  688|  80.4k|	struct ucl_stack *stack, *stmp;
  689|  80.4k|	struct ucl_macro *macro, *mtmp;
  690|  80.4k|	struct ucl_chunk *chunk, *ctmp;
  691|  80.4k|	struct ucl_pubkey *key, *ktmp;
  692|  80.4k|	struct ucl_variable *var, *vtmp;
  693|  80.4k|	ucl_object_t *tr, *trtmp;
  694|       |
  695|  80.4k|	if (parser == NULL) {
  ------------------
  |  Branch (695:6): [True: 0, False: 80.4k]
  ------------------
  696|      0|		return;
  697|      0|	}
  698|       |
  699|  80.4k|	if (parser->top_obj != NULL) {
  ------------------
  |  Branch (699:6): [True: 79.9k, False: 408]
  ------------------
  700|  79.9k|		ucl_object_unref(parser->top_obj);
  701|  79.9k|	}
  702|       |
  703|  80.4k|	if (parser->includepaths != NULL) {
  ------------------
  |  Branch (703:6): [True: 902, False: 79.5k]
  ------------------
  704|    902|		ucl_object_unref(parser->includepaths);
  705|    902|	}
  706|       |
  707|  80.4k|	LL_FOREACH_SAFE(parser->stack, stack, stmp)
  ------------------
  |  |  422|  80.4k|    LL_FOREACH_SAFE2(head,el,tmp,next)
  |  |  ------------------
  |  |  |  |  425|   190k|  for ((el) = (head); (el) && ((tmp) = (el)->next, 1); (el) = (tmp))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (425:23): [True: 110k, False: 80.4k]
  |  |  |  |  |  Branch (425:31): [True: 110k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  708|   110k|	{
  709|   110k|		UCL_FREE(sizeof(struct ucl_stack), stack);
  ------------------
  |  |   74|   110k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  710|   110k|	}
  711|  80.4k|	HASH_ITER(hh, parser->macroes, macro, mtmp)
  ------------------
  |  |  643|  80.4k|#define HASH_ITER(hh,head,el,tmp)                                                \
  |  |  644|  80.4k|for((el)=(head),(tmp)=DECLTYPE(el)((head)?(head)->hh.next:NULL);                 \
  |  |  ------------------
  |  |  |  |   44|  80.4k|#define DECLTYPE(x) (__typeof(x))
  |  |  ------------------
  |  |  |  Branch (644:36): [True: 80.4k, False: 0]
  |  |  ------------------
  |  |  645|   562k|  el; (el)=(tmp),(tmp)=DECLTYPE(el)((tmp)?(tmp)->hh.next:NULL))
  |  |  ------------------
  |  |  |  |   44|   482k|#define DECLTYPE(x) (__typeof(x))
  |  |  ------------------
  |  |  |  Branch (645:3): [True: 482k, False: 80.4k]
  |  |  |  Branch (645:37): [True: 402k, False: 80.4k]
  |  |  ------------------
  ------------------
  712|   482k|	{
  713|   482k|		UCL_FREE(strlen(macro->name) + 1, macro->name);
  ------------------
  |  |   74|   482k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  714|   482k|		HASH_DEL(parser->macroes, macro);
  ------------------
  |  |  272|   482k|    HASH_DELETE(hh,head,delptr)
  |  |  ------------------
  |  |  |  |  216|   482k|#define HASH_DELETE(hh,head,delptr)                                              \
  |  |  |  |  217|   482k|do {                                                                             \
  |  |  |  |  218|   482k|    unsigned _hd_bkt;                                                            \
  |  |  |  |  219|   482k|    struct UT_hash_handle *_hd_hh_del;                                           \
  |  |  |  |  220|   482k|    if ( ((delptr)->hh.prev == NULL) && ((delptr)->hh.next == NULL) )  {         \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (220:10): [True: 482k, False: 0]
  |  |  |  |  |  Branch (220:41): [True: 80.4k, False: 402k]
  |  |  |  |  ------------------
  |  |  |  |  221|  80.4k|        uthash_free((head)->hh.tbl->buckets,                                     \
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|  80.4k|#define uthash_free(ptr,sz) free(ptr)     /* free fcn                        */
  |  |  |  |  ------------------
  |  |  |  |  222|  80.4k|                    (head)->hh.tbl->num_buckets*sizeof(struct UT_hash_bucket) ); \
  |  |  |  |  223|  80.4k|        HASH_BLOOM_FREE((head)->hh.tbl);                                         \
  |  |  |  |  224|  80.4k|        uthash_free((head)->hh.tbl, sizeof(UT_hash_table));                      \
  |  |  |  |  ------------------
  |  |  |  |  |  |   77|  80.4k|#define uthash_free(ptr,sz) free(ptr)     /* free fcn                        */
  |  |  |  |  ------------------
  |  |  |  |  225|  80.4k|        head = NULL;                                                             \
  |  |  |  |  226|   402k|    } else {                                                                     \
  |  |  |  |  227|   402k|        _hd_hh_del = &((delptr)->hh);                                            \
  |  |  |  |  228|   402k|        if ((delptr) == ELMT_FROM_HH((head)->hh.tbl,(head)->hh.tbl->tail)) {     \
  |  |  |  |  ------------------
  |  |  |  |  |  |   93|   402k|#define ELMT_FROM_HH(tbl,hhp) ((void*)(((char*)(hhp)) - ((tbl)->hho)))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (228:13): [True: 0, False: 402k]
  |  |  |  |  ------------------
  |  |  |  |  229|      0|            (head)->hh.tbl->tail =                                               \
  |  |  |  |  230|      0|                (UT_hash_handle*)((ptrdiff_t)((delptr)->hh.prev) +               \
  |  |  |  |  231|      0|                (head)->hh.tbl->hho);                                            \
  |  |  |  |  232|      0|        }                                                                        \
  |  |  |  |  233|   402k|        if ((delptr)->hh.prev) {                                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (233:13): [True: 0, False: 402k]
  |  |  |  |  ------------------
  |  |  |  |  234|      0|            ((UT_hash_handle*)((ptrdiff_t)((delptr)->hh.prev) +                  \
  |  |  |  |  235|      0|                    (head)->hh.tbl->hho))->next = (delptr)->hh.next;             \
  |  |  |  |  236|   402k|        } else {                                                                 \
  |  |  |  |  237|   402k|            DECLTYPE_ASSIGN(head,(delptr)->hh.next);                             \
  |  |  |  |  ------------------
  |  |  |  |  |  |   54|   402k|#define DECLTYPE_ASSIGN(dst,src)                                                 \
  |  |  |  |  |  |   55|   402k|do {                                                                             \
  |  |  |  |  |  |   56|   402k|  (dst) = DECLTYPE(dst)(src);                                                    \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   44|   402k|#define DECLTYPE(x) (__typeof(x))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |   57|   402k|} while(0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (57:9): [Folded, False: 402k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  238|   402k|        }                                                                        \
  |  |  |  |  239|   402k|        if (_hd_hh_del->next) {                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (239:13): [True: 402k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  240|   402k|            ((UT_hash_handle*)((ptrdiff_t)_hd_hh_del->next +                     \
  |  |  |  |  241|   402k|                    (head)->hh.tbl->hho))->prev =                                \
  |  |  |  |  242|   402k|                    _hd_hh_del->prev;                                            \
  |  |  |  |  243|   402k|        }                                                                        \
  |  |  |  |  244|   402k|        HASH_TO_BKT( _hd_hh_del->hashv, (head)->hh.tbl->num_buckets, _hd_bkt);   \
  |  |  |  |  ------------------
  |  |  |  |  |  |  199|   402k|#define HASH_TO_BKT( hashv, num_bkts, bkt )                                      \
  |  |  |  |  |  |  200|   402k|do {                                                                             \
  |  |  |  |  |  |  201|   402k|  bkt = ((hashv) & ((num_bkts) - 1));                                            \
  |  |  |  |  |  |  202|   402k|} while(0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (202:9): [Folded, False: 402k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  245|   402k|        HASH_DEL_IN_BKT(hh,(head)->hh.tbl->buckets[_hd_bkt], _hd_hh_del);        \
  |  |  |  |  ------------------
  |  |  |  |  |  |  398|   402k|    (head).count--;                                                              \
  |  |  |  |  |  |  399|   402k|    if ((head).hh_head == hh_del) {                                              \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (399:9): [True: 402k, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  400|   402k|      (head).hh_head = hh_del->hh_next;                                          \
  |  |  |  |  |  |  401|   402k|    }                                                                            \
  |  |  |  |  |  |  402|   402k|    if (hh_del->hh_prev) {                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (402:9): [True: 0, False: 402k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  403|      0|        hh_del->hh_prev->hh_next = hh_del->hh_next;                              \
  |  |  |  |  |  |  404|      0|    }                                                                            \
  |  |  |  |  |  |  405|   402k|    if (hh_del->hh_next) {                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (405:9): [True: 0, False: 402k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  406|      0|        hh_del->hh_next->hh_prev = hh_del->hh_prev;                              \
  |  |  |  |  |  |  407|      0|    }
  |  |  |  |  ------------------
  |  |  |  |  246|   402k|        (head)->hh.tbl->num_items--;                                             \
  |  |  |  |  247|   402k|    }                                                                            \
  |  |  |  |  248|   482k|    HASH_FSCK(hh,head);                                                          \
  |  |  |  |  249|   482k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (249:10): [Folded, False: 482k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  715|   482k|		UCL_FREE(sizeof(struct ucl_macro), macro);
  ------------------
  |  |   74|   482k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  716|   482k|	}
  717|  80.4k|	LL_FOREACH_SAFE(parser->chunks, chunk, ctmp)
  ------------------
  |  |  422|  80.4k|    LL_FOREACH_SAFE2(head,el,tmp,next)
  |  |  ------------------
  |  |  |  |  425|   160k|  for ((el) = (head); (el) && ((tmp) = (el)->next, 1); (el) = (tmp))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (425:23): [True: 80.4k, False: 80.4k]
  |  |  |  |  |  Branch (425:31): [True: 80.4k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  718|  80.4k|	{
  719|  80.4k|		ucl_chunk_free(chunk);
  720|  80.4k|	}
  721|  80.4k|	LL_FOREACH_SAFE(parser->keys, key, ktmp)
  ------------------
  |  |  422|  80.4k|    LL_FOREACH_SAFE2(head,el,tmp,next)
  |  |  ------------------
  |  |  |  |  425|  80.4k|  for ((el) = (head); (el) && ((tmp) = (el)->next, 1); (el) = (tmp))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (425:23): [True: 0, False: 80.4k]
  |  |  |  |  |  Branch (425:31): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  722|      0|	{
  723|      0|		UCL_FREE(sizeof(struct ucl_pubkey), key);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  724|      0|	}
  725|  80.4k|	LL_FOREACH_SAFE(parser->variables, var, vtmp)
  ------------------
  |  |  422|  80.4k|    LL_FOREACH_SAFE2(head,el,tmp,next)
  |  |  ------------------
  |  |  |  |  425|  84.8k|  for ((el) = (head); (el) && ((tmp) = (el)->next, 1); (el) = (tmp))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (425:23): [True: 4.48k, False: 80.4k]
  |  |  |  |  |  Branch (425:31): [True: 4.48k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  726|  4.48k|	{
  727|  4.48k|		UCL_FREE(var->value_len + 1, var->value);
  ------------------
  |  |   74|  4.48k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  728|  4.48k|		UCL_FREE(var->var_len + 1, var->var);
  ------------------
  |  |   74|  4.48k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  729|  4.48k|		UCL_FREE(sizeof(struct ucl_variable), var);
  ------------------
  |  |   74|  4.48k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  730|  4.48k|	}
  731|  80.4k|	LL_FOREACH_SAFE(parser->trash_objs, tr, trtmp)
  ------------------
  |  |  422|  80.4k|    LL_FOREACH_SAFE2(head,el,tmp,next)
  |  |  ------------------
  |  |  |  |  425|  84.8k|  for ((el) = (head); (el) && ((tmp) = (el)->next, 1); (el) = (tmp))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (425:23): [True: 4.39k, False: 80.4k]
  |  |  |  |  |  Branch (425:31): [True: 4.39k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  732|  4.39k|	{
  733|       |		/*
  734|       |		 * A discarded value may hold a whole subtree. The trash list uses
  735|       |		 * its implicit-array links, so detach it before releasing it.
  736|       |		 */
  737|  4.39k|		tr->next = NULL;
  738|  4.39k|		tr->prev = tr;
  739|  4.39k|		ucl_object_unref(tr);
  740|  4.39k|	}
  741|       |
  742|  80.4k|	if (parser->err != NULL && parser->err != parser->_err_buf) {
  ------------------
  |  Branch (742:6): [True: 46.5k, False: 33.8k]
  |  Branch (742:29): [True: 11.9k, False: 34.6k]
  ------------------
  743|  11.9k|		utstring_free(parser->err);
  ------------------
  |  |   75|  11.9k|#define utstring_free(s)                                   \
  |  |   76|  11.9k|do {                                                       \
  |  |   77|  11.9k|  utstring_done(s);                                        \
  |  |  ------------------
  |  |  |  |   69|  11.9k|#define utstring_done(s)                                   \
  |  |  |  |   70|  11.9k|do {                                                       \
  |  |  |  |   71|  11.9k|  if ((s)->d != NULL) free((s)->d);                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:7): [True: 11.9k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   72|  11.9k|  (s)->n = 0;                                              \
  |  |  |  |   73|  11.9k|} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (73:9): [Folded, False: 11.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   78|  11.9k|  free(s);                                                 \
  |  |   79|  11.9k|} while(0)
  |  |  ------------------
  |  |  |  Branch (79:9): [Folded, False: 11.9k]
  |  |  ------------------
  ------------------
  744|  11.9k|	}
  745|  80.4k|	if (parser->_err_buf != NULL) {
  ------------------
  |  Branch (745:6): [True: 80.4k, False: 0]
  ------------------
  746|  80.4k|		utstring_free(parser->_err_buf);
  ------------------
  |  |   75|  80.4k|#define utstring_free(s)                                   \
  |  |   76|  80.4k|do {                                                       \
  |  |   77|  80.4k|  utstring_done(s);                                        \
  |  |  ------------------
  |  |  |  |   69|  80.4k|#define utstring_done(s)                                   \
  |  |  |  |   70|  80.4k|do {                                                       \
  |  |  |  |   71|  80.4k|  if ((s)->d != NULL) free((s)->d);                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:7): [True: 80.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   72|  80.4k|  (s)->n = 0;                                              \
  |  |  |  |   73|  80.4k|} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (73:9): [Folded, False: 80.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   78|  80.4k|  free(s);                                                 \
  |  |   79|  80.4k|} while(0)
  |  |  ------------------
  |  |  |  Branch (79:9): [Folded, False: 80.4k]
  |  |  ------------------
  ------------------
  747|  80.4k|	}
  748|       |
  749|  80.4k|	if (parser->cur_file) {
  ------------------
  |  Branch (749:6): [True: 0, False: 80.4k]
  ------------------
  750|      0|		UCL_FREE(strlen(parser->cur_file) + 1, parser->cur_file);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  751|      0|	}
  752|       |
  753|  80.4k|	if (parser->comments) {
  ------------------
  |  Branch (753:6): [True: 0, False: 80.4k]
  ------------------
  754|      0|		ucl_object_unref(parser->comments);
  755|      0|	}
  756|       |
  757|  80.4k|	if (parser->last_comment) {
  ------------------
  |  Branch (757:6): [True: 0, False: 80.4k]
  ------------------
  758|       |		/* saved but never attached: parsing stopped with an error */
  759|      0|		ucl_object_unref(parser->last_comment);
  760|      0|	}
  761|       |
  762|  80.4k|	if (parser->pending_merge) {
  ------------------
  |  Branch (762:6): [True: 0, False: 80.4k]
  ------------------
  763|       |		/* the value of its key never came */
  764|      0|		ucl_object_unref(parser->pending_merge);
  765|      0|	}
  766|       |
  767|  80.4k|	UCL_FREE(sizeof(struct ucl_parser), parser);
  ------------------
  |  |   74|  80.4k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  768|  80.4k|}
ucl_parser_get_error:
  772|  9.76k|{
  773|  9.76k|	if (parser == NULL) {
  ------------------
  |  Branch (773:6): [True: 0, False: 9.76k]
  ------------------
  774|      0|		return NULL;
  775|      0|	}
  776|       |
  777|  9.76k|	if (parser->err == NULL) {
  ------------------
  |  Branch (777:6): [True: 988, False: 8.78k]
  ------------------
  778|    988|		return NULL;
  779|    988|	}
  780|       |
  781|  8.78k|	return utstring_body(parser->err);
  ------------------
  |  |  146|  8.78k|#define utstring_body(s) ((s)->d)
  ------------------
  782|  9.76k|}
ucl_parser_clear_error:
  814|  7.65k|{
  815|  7.65k|	if (parser != NULL && parser->err != NULL) {
  ------------------
  |  Branch (815:6): [True: 7.65k, False: 0]
  |  Branch (815:24): [True: 1.55k, False: 6.09k]
  ------------------
  816|  1.55k|		if (parser->err == parser->_err_buf) {
  ------------------
  |  Branch (816:7): [True: 335, False: 1.22k]
  ------------------
  817|    335|			utstring_clear(parser->err);
  ------------------
  |  |  122|    335|#define utstring_clear(s)                                  \
  |  |  123|    335|do {                                                       \
  |  |  124|    335|  (s)->i = 0;                                              \
  |  |  125|    335|  (s)->d[0] = '\0';                                        \
  |  |  126|    335|} while(0)
  |  |  ------------------
  |  |  |  Branch (126:9): [Folded, False: 335]
  |  |  ------------------
  ------------------
  818|    335|		}
  819|  1.22k|		else {
  820|  1.22k|			utstring_free(parser->err);
  ------------------
  |  |   75|  1.22k|#define utstring_free(s)                                   \
  |  |   76|  1.22k|do {                                                       \
  |  |   77|  1.22k|  utstring_done(s);                                        \
  |  |  ------------------
  |  |  |  |   69|  1.22k|#define utstring_done(s)                                   \
  |  |  |  |   70|  1.22k|do {                                                       \
  |  |  |  |   71|  1.22k|  if ((s)->d != NULL) free((s)->d);                        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (71:7): [True: 1.22k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   72|  1.22k|  (s)->n = 0;                                              \
  |  |  |  |   73|  1.22k|} while(0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (73:9): [Folded, False: 1.22k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   78|  1.22k|  free(s);                                                 \
  |  |   79|  1.22k|} while(0)
  |  |  ------------------
  |  |  |  Branch (79:9): [Folded, False: 1.22k]
  |  |  ------------------
  ------------------
  821|  1.22k|		}
  822|       |		parser->err = NULL;
  823|  1.55k|		parser->err_code = 0;
  824|  1.55k|	}
  825|  7.65k|}
ucl_fetch_url:
  910|    962|{
  911|       |
  912|       |#ifdef HAVE_FETCH_H
  913|       |	struct url *fetch_url;
  914|       |	struct url_stat us;
  915|       |	FILE *in;
  916|       |
  917|       |	fetch_url = fetchParseURL(url);
  918|       |	if (fetch_url == NULL) {
  919|       |		ucl_create_err(err, "invalid URL %s: %s",
  920|       |					   url, strerror(errno));
  921|       |		return false;
  922|       |	}
  923|       |	if ((in = fetchXGet(fetch_url, &us, "")) == NULL) {
  924|       |		if (must_exist) {
  925|       |			ucl_create_err(err, "cannot fetch URL %s: %s",
  926|       |						   url, strerror(errno));
  927|       |		}
  928|       |		fetchFreeURL(fetch_url);
  929|       |		return false;
  930|       |	}
  931|       |
  932|       |	*buflen = us.size;
  933|       |	*buf = UCL_ALLOC(*buflen);
  934|       |	if (*buf == NULL) {
  935|       |		ucl_create_err(err, "cannot allocate buffer for URL %s: %s",
  936|       |					   url, strerror(errno));
  937|       |		fclose(in);
  938|       |		fetchFreeURL(fetch_url);
  939|       |		return false;
  940|       |	}
  941|       |
  942|       |	if (fread(*buf, *buflen, 1, in) != 1) {
  943|       |		ucl_create_err(err, "cannot read URL %s: %s",
  944|       |					   url, strerror(errno));
  945|       |		UCL_FREE(*buflen, *buf);
  946|       |		*buf = NULL;
  947|       |		fclose(in);
  948|       |		fetchFreeURL(fetch_url);
  949|       |		return false;
  950|       |	}
  951|       |
  952|       |	fclose(in);
  953|       |	fetchFreeURL(fetch_url);
  954|       |	return true;
  955|       |#elif defined(CURL_FOUND)
  956|       |	CURL *curl;
  957|       |	int r;
  958|       |	struct ucl_curl_cbdata cbdata;
  959|       |
  960|       |	curl = curl_easy_init();
  961|       |	if (curl == NULL) {
  962|       |		ucl_create_err(err, "CURL interface is broken");
  963|       |		return false;
  964|       |	}
  965|       |	if ((r = curl_easy_setopt(curl, CURLOPT_URL, url)) != CURLE_OK) {
  966|       |		ucl_create_err(err, "invalid URL %s: %s",
  967|       |					   url, curl_easy_strerror(r));
  968|       |		curl_easy_cleanup(curl);
  969|       |		return false;
  970|       |	}
  971|       |	curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, ucl_curl_write_callback);
  972|       |	cbdata.buf = NULL;
  973|       |	cbdata.buflen = 0;
  974|       |	curl_easy_setopt(curl, CURLOPT_WRITEDATA, &cbdata);
  975|       |
  976|       |	if ((r = curl_easy_perform(curl)) != CURLE_OK) {
  977|       |		if (must_exist) {
  978|       |			ucl_create_err(err, "error fetching URL %s: %s",
  979|       |						   url, curl_easy_strerror(r));
  980|       |		}
  981|       |		curl_easy_cleanup(curl);
  982|       |		if (cbdata.buf) {
  983|       |			UCL_FREE(cbdata.buflen, cbdata.buf);
  984|       |		}
  985|       |		return false;
  986|       |	}
  987|       |	*buf = cbdata.buf;
  988|       |	*buflen = cbdata.buflen;
  989|       |
  990|       |	curl_easy_cleanup(curl);
  991|       |
  992|       |	return true;
  993|       |#else
  994|    962|	ucl_create_err(err, "URL support is disabled");
  995|       |	return false;
  996|    962|#endif
  997|    962|}
ucl_fetch_file:
 1009|  30.3k|{
 1010|  30.3k|	int fd;
 1011|  30.3k|	struct stat st;
 1012|  30.3k|	if ((fd = open(filename, O_RDONLY)) == -1) {
  ------------------
  |  Branch (1012:6): [True: 1.38k, False: 28.9k]
  ------------------
 1013|  1.38k|		ucl_create_err(err, "cannot open file %s: %s",
 1014|  1.38k|					   filename, strerror(errno));
 1015|  1.38k|		return false;
 1016|  1.38k|	}
 1017|       |
 1018|  28.9k|	if (fstat(fd, &st) == -1) {
  ------------------
  |  Branch (1018:6): [True: 0, False: 28.9k]
  ------------------
 1019|      0|		if (must_exist || errno == EPERM) {
  ------------------
  |  Branch (1019:7): [True: 0, False: 0]
  |  Branch (1019:21): [True: 0, False: 0]
  ------------------
 1020|      0|			ucl_create_err(err, "cannot stat file %s: %s",
 1021|      0|						   filename, strerror(errno));
 1022|      0|		}
 1023|      0|		close(fd);
 1024|       |
 1025|      0|		return false;
 1026|      0|	}
 1027|  28.9k|	if (!S_ISREG(st.st_mode)) {
  ------------------
  |  Branch (1027:6): [True: 11.3k, False: 17.6k]
  ------------------
 1028|  11.3k|		if (must_exist) {
  ------------------
  |  Branch (1028:7): [True: 5.01k, False: 6.33k]
  ------------------
 1029|  5.01k|			ucl_create_err(err, "file %s is not a regular file", filename);
 1030|  5.01k|		}
 1031|  11.3k|		close(fd);
 1032|       |
 1033|  11.3k|		return false;
 1034|  11.3k|	}
 1035|       |
 1036|  17.6k|	if (st.st_size == 0) {
  ------------------
  |  Branch (1036:6): [True: 450, False: 17.1k]
  ------------------
 1037|       |		/* Do not map empty files */
 1038|    450|		*buf = NULL;
 1039|    450|		*buflen = 0;
 1040|    450|	}
 1041|  17.1k|	else {
 1042|  17.1k|		if ((*buf = ucl_mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAILED) {
  ------------------
  |  |  184|  17.1k|#define ucl_mmap mmap
  ------------------
  |  Branch (1042:7): [True: 216, False: 16.9k]
  ------------------
 1043|    216|			close(fd);
 1044|    216|			ucl_create_err(err, "cannot mmap file %s: %s",
 1045|    216|						   filename, strerror(errno));
 1046|    216|			*buf = NULL;
 1047|       |
 1048|    216|			return false;
 1049|    216|		}
 1050|  16.9k|		*buflen = st.st_size;
 1051|  16.9k|	}
 1052|       |
 1053|  17.4k|	close(fd);
 1054|       |
 1055|       |	return true;
 1056|  17.6k|}
ucl_include_handler:
 1963|  15.6k|{
 1964|  15.6k|	struct ucl_parser *parser = ud;
 1965|       |
 1966|  15.6k|	return ucl_include_common(data, len, args, parser, false, false);
 1967|  15.6k|}
ucl_includes_handler:
 1979|    417|{
 1980|    417|	struct ucl_parser *parser = ud;
 1981|       |
 1982|    417|	return ucl_include_common(data, len, args, parser, false, true);
 1983|    417|}
ucl_try_include_handler:
 1995|    459|{
 1996|    459|	struct ucl_parser *parser = ud;
 1997|       |
 1998|    459|	return ucl_include_common(data, len, args, parser, true, false);
 1999|    459|}
ucl_priority_handler:
 2011|  39.8k|{
 2012|  39.8k|	struct ucl_parser *parser = ud;
 2013|  39.8k|	unsigned priority = 255;
 2014|  39.8k|	const ucl_object_t *param;
 2015|  39.8k|	bool found = false;
 2016|  39.8k|	char *value = NULL, *leftover = NULL;
 2017|  39.8k|	ucl_object_iter_t it = NULL;
 2018|  39.8k|	int args_err = 0;
 2019|  39.8k|	size_t alloc_len;
 2020|       |
 2021|  39.8k|	if (parser == NULL) {
  ------------------
  |  Branch (2021:6): [True: 0, False: 39.8k]
  ------------------
 2022|      0|		return false;
 2023|      0|	}
 2024|       |
 2025|       |	/* Process arguments */
 2026|  39.8k|	if (args != NULL && args->type == UCL_OBJECT) {
  ------------------
  |  Branch (2026:6): [True: 17.3k, False: 22.5k]
  |  Branch (2026:22): [True: 17.1k, False: 200]
  ------------------
 2027|  27.1k|		while ((param = ucl_object_iterate_with_error(args, &it, true,
  ------------------
  |  Branch (2027:10): [True: 10.0k, False: 17.1k]
  ------------------
 2028|  27.1k|														  &args_err)) != NULL) {
 2029|  10.0k|			if (param->type == UCL_INT) {
  ------------------
  |  Branch (2029:8): [True: 1.87k, False: 8.19k]
  ------------------
 2030|  1.87k|				if (strncmp(param->key, "priority", param->keylen) == 0) {
  ------------------
  |  Branch (2030:9): [True: 206, False: 1.66k]
  ------------------
 2031|    206|					priority = ucl_object_toint(param);
 2032|    206|					found = true;
 2033|    206|				}
 2034|  1.87k|			}
 2035|  10.0k|		}
 2036|       |
 2037|  17.1k|		if (args_err == ENOMEM) {
  ------------------
  |  Branch (2037:7): [True: 0, False: 17.1k]
  ------------------
 2038|       |			/* The arguments must not be dropped silently */
 2039|      0|			ucl_create_err(&parser->err, "cannot allocate memory for macro arguments");
 2040|      0|			return false;
 2041|      0|		}
 2042|  17.1k|	}
 2043|       |
 2044|  39.8k|	if (len > 0) {
  ------------------
  |  Branch (2044:6): [True: 39.4k, False: 399]
  ------------------
 2045|  39.4k|		if (ucl_size_add(len, 1, &alloc_len)) {
  ------------------
  |  Branch (2045:7): [True: 39.4k, False: 0]
  ------------------
 2046|  39.4k|			value = malloc(alloc_len);
 2047|  39.4k|		}
 2048|  39.4k|		if (value == NULL) {
  ------------------
  |  Branch (2048:7): [True: 0, False: 39.4k]
  ------------------
 2049|      0|			ucl_create_err(&parser->err, "cannot allocate memory for priority");
 2050|       |
 2051|      0|			return false;
 2052|      0|		}
 2053|  39.4k|		ucl_strlcpy(value, (const char *) data, alloc_len);
 2054|  39.4k|		priority = strtol(value, &leftover, 10);
 2055|  39.4k|		if (*leftover != '\0') {
  ------------------
  |  Branch (2055:7): [True: 1.05k, False: 38.4k]
  ------------------
 2056|  1.05k|			ucl_create_err(&parser->err, "Invalid priority value in macro: %s",
 2057|  1.05k|						   value);
 2058|  1.05k|			free(value);
 2059|  1.05k|			return false;
 2060|  1.05k|		}
 2061|  38.4k|		free(value);
 2062|  38.4k|		found = true;
 2063|  38.4k|	}
 2064|       |
 2065|  38.8k|	if (found == true) {
  ------------------
  |  Branch (2065:6): [True: 38.4k, False: 399]
  ------------------
 2066|  38.4k|		parser->chunks->priority = priority;
 2067|  38.4k|		return true;
 2068|  38.4k|	}
 2069|       |
 2070|    399|	ucl_create_err(&parser->err, "Unable to parse priority macro");
 2071|       |	return false;
 2072|  38.8k|}
ucl_load_handler:
 2084|  15.4k|{
 2085|  15.4k|	struct ucl_parser *parser = ud;
 2086|  15.4k|	const ucl_object_t *param;
 2087|  15.4k|	ucl_object_t *obj, *old_obj;
 2088|  15.4k|	ucl_object_iter_t it = NULL;
 2089|  15.4k|	int args_err = 0;
 2090|  15.4k|	bool try_load, multiline, test;
 2091|  15.4k|	const char *target, *prefix;
 2092|  15.4k|	char *load_file, *tmp = NULL;
 2093|  15.4k|	unsigned char *buf;
 2094|  15.4k|	size_t buflen, alloc_len;
 2095|  15.4k|	unsigned priority;
 2096|  15.4k|	int64_t iv;
 2097|  15.4k|	ucl_object_t *container = NULL;
 2098|  15.4k|	enum ucl_string_flags flags;
 2099|       |
 2100|       |	/* Default values */
 2101|  15.4k|	try_load = false;
 2102|  15.4k|	multiline = false;
 2103|  15.4k|	test = false;
 2104|  15.4k|	target = "string";
 2105|  15.4k|	prefix = NULL;
 2106|  15.4k|	load_file = NULL;
 2107|  15.4k|	buf = NULL;
 2108|  15.4k|	buflen = 0;
 2109|  15.4k|	priority = 0;
 2110|  15.4k|	obj = NULL;
 2111|  15.4k|	old_obj = NULL;
 2112|  15.4k|	flags = 0;
 2113|       |
 2114|  15.4k|	if (parser == NULL) {
  ------------------
  |  Branch (2114:6): [True: 0, False: 15.4k]
  ------------------
 2115|      0|		return false;
 2116|      0|	}
 2117|       |
 2118|       |	/* Process arguments */
 2119|  15.4k|	if (args != NULL && args->type == UCL_OBJECT) {
  ------------------
  |  Branch (2119:6): [True: 4.77k, False: 10.6k]
  |  Branch (2119:22): [True: 4.71k, False: 66]
  ------------------
 2120|  20.4k|		while ((param = ucl_object_iterate_with_error(args, &it, true,
  ------------------
  |  Branch (2120:10): [True: 15.7k, False: 4.71k]
  ------------------
 2121|  20.4k|														  &args_err)) != NULL) {
 2122|  15.7k|			if (param->type == UCL_BOOLEAN) {
  ------------------
  |  Branch (2122:8): [True: 4.31k, False: 11.4k]
  ------------------
 2123|  4.31k|				if (strncmp(param->key, "try", param->keylen) == 0) {
  ------------------
  |  Branch (2123:9): [True: 1.41k, False: 2.89k]
  ------------------
 2124|  1.41k|					try_load = ucl_object_toboolean(param);
 2125|  1.41k|				}
 2126|  2.89k|				else if (strncmp(param->key, "multiline", param->keylen) == 0) {
  ------------------
  |  Branch (2126:14): [True: 153, False: 2.74k]
  ------------------
 2127|    153|					multiline = ucl_object_toboolean(param);
 2128|    153|				}
 2129|  2.74k|				else if (strncmp(param->key, "escape", param->keylen) == 0) {
  ------------------
  |  Branch (2129:14): [True: 922, False: 1.82k]
  ------------------
 2130|    922|					test = ucl_object_toboolean(param);
 2131|    922|					if (test) {
  ------------------
  |  Branch (2131:10): [True: 853, False: 69]
  ------------------
 2132|    853|						flags |= UCL_STRING_ESCAPE;
 2133|    853|					}
 2134|    922|				}
 2135|  1.82k|				else if (strncmp(param->key, "trim", param->keylen) == 0) {
  ------------------
  |  Branch (2135:14): [True: 342, False: 1.48k]
  ------------------
 2136|    342|					test = ucl_object_toboolean(param);
 2137|    342|					if (test) {
  ------------------
  |  Branch (2137:10): [True: 121, False: 221]
  ------------------
 2138|    121|						flags |= UCL_STRING_TRIM;
 2139|    121|					}
 2140|    342|				}
 2141|  4.31k|			}
 2142|  11.4k|			else if (param->type == UCL_STRING) {
  ------------------
  |  Branch (2142:13): [True: 10.5k, False: 884]
  ------------------
 2143|  10.5k|				if (strncmp(param->key, "key", param->keylen) == 0) {
  ------------------
  |  Branch (2143:9): [True: 5.17k, False: 5.40k]
  ------------------
 2144|  5.17k|					prefix = ucl_object_tostring(param);
 2145|  5.17k|				}
 2146|  5.40k|				else if (strncmp(param->key, "target", param->keylen) == 0) {
  ------------------
  |  Branch (2146:14): [True: 820, False: 4.58k]
  ------------------
 2147|    820|					target = ucl_object_tostring(param);
 2148|    820|				}
 2149|  10.5k|			}
 2150|    884|			else if (param->type == UCL_INT) {
  ------------------
  |  Branch (2150:13): [True: 725, False: 159]
  ------------------
 2151|    725|				if (strncmp(param->key, "priority", param->keylen) == 0) {
  ------------------
  |  Branch (2151:9): [True: 354, False: 371]
  ------------------
 2152|    354|					priority = ucl_object_toint(param);
 2153|    354|				}
 2154|    725|			}
 2155|  15.7k|		}
 2156|       |
 2157|  4.71k|		if (args_err == ENOMEM) {
  ------------------
  |  Branch (2157:7): [True: 0, False: 4.71k]
  ------------------
 2158|       |			/* The arguments must not be dropped silently */
 2159|      0|			ucl_create_err(&parser->err, "cannot allocate memory for macro arguments");
 2160|      0|			return false;
 2161|      0|		}
 2162|  4.71k|	}
 2163|       |
 2164|  15.4k|	if (prefix == NULL || strlen(prefix) == 0) {
  ------------------
  |  Branch (2164:6): [True: 11.1k, False: 4.30k]
  |  Branch (2164:24): [True: 10, False: 4.29k]
  ------------------
 2165|  11.1k|		ucl_create_err(&parser->err, "No Key specified in load macro");
 2166|  11.1k|		return false;
 2167|  11.1k|	}
 2168|       |
 2169|  4.29k|	if (len > 0) {
  ------------------
  |  Branch (2169:6): [True: 3.98k, False: 310]
  ------------------
 2170|  3.98k|		if (ucl_size_add(len, 1, &alloc_len)) {
  ------------------
  |  Branch (2170:7): [True: 3.98k, False: 0]
  ------------------
 2171|  3.98k|			load_file = malloc(alloc_len);
 2172|  3.98k|		}
 2173|  3.98k|		if (!load_file) {
  ------------------
  |  Branch (2173:7): [True: 0, False: 3.98k]
  ------------------
 2174|      0|			ucl_create_err(&parser->err, "cannot allocate memory for suffix");
 2175|       |
 2176|      0|			return false;
 2177|      0|		}
 2178|       |
 2179|  3.98k|		snprintf(load_file, alloc_len, "%.*s", (int) len, data);
 2180|       |
 2181|  3.98k|		if (!ucl_fetch_file(load_file, &buf, &buflen, &parser->err,
  ------------------
  |  Branch (2181:7): [True: 1.63k, False: 2.34k]
  ------------------
 2182|  3.98k|							!try_load)) {
 2183|  1.63k|			free(load_file);
 2184|       |
 2185|  1.63k|			if (try_load) {
  ------------------
  |  Branch (2185:8): [True: 1.36k, False: 275]
  ------------------
 2186|  1.36k|				ucl_parser_clear_error(parser);
 2187|  1.36k|			}
 2188|       |
 2189|  1.63k|			return (try_load || false);
  ------------------
  |  Branch (2189:12): [True: 1.36k, False: 275]
  |  Branch (2189:24): [Folded, False: 275]
  ------------------
 2190|  1.63k|		}
 2191|       |
 2192|  2.34k|		free(load_file);
 2193|  2.34k|		container = parser->stack->obj;
 2194|  2.34k|		old_obj = __DECONST(ucl_object_t *, ucl_object_lookup(container,
  ------------------
  |  |  135|  2.34k|#define __DECONST(type, var) ((type) (uintptr_t) (const void *) (var))
  ------------------
 2195|  2.34k|															  prefix));
 2196|       |
 2197|  2.34k|		if (old_obj != NULL) {
  ------------------
  |  Branch (2197:7): [True: 45, False: 2.29k]
  ------------------
 2198|     45|			ucl_create_err(&parser->err, "Key %s already exists", prefix);
 2199|     45|			if (buf) {
  ------------------
  |  Branch (2199:8): [True: 45, False: 0]
  ------------------
 2200|     45|				ucl_munmap(buf, buflen);
  ------------------
  |  |  185|     45|#define ucl_munmap munmap
  ------------------
 2201|     45|			}
 2202|       |
 2203|     45|			return false;
 2204|     45|		}
 2205|       |
 2206|  2.29k|		if (strcasecmp(target, "string") == 0) {
  ------------------
  |  Branch (2206:7): [True: 1.50k, False: 791]
  ------------------
 2207|  1.50k|			obj = ucl_object_fromstring_common(buf, buflen, flags);
 2208|  1.50k|			ucl_copy_value_trash(obj);
 2209|  1.50k|			if (multiline) {
  ------------------
  |  Branch (2209:8): [True: 96, False: 1.41k]
  ------------------
 2210|     96|				obj->flags |= UCL_OBJECT_MULTILINE;
 2211|     96|			}
 2212|  1.50k|		}
 2213|    791|		else if (strcasecmp(target, "int") == 0) {
  ------------------
  |  Branch (2213:12): [True: 112, False: 679]
  ------------------
 2214|    112|			if (ucl_size_add(buflen, 1, &alloc_len)) {
  ------------------
  |  Branch (2214:8): [True: 112, False: 0]
  ------------------
 2215|    112|				tmp = malloc(alloc_len);
 2216|    112|			}
 2217|       |
 2218|    112|			if (tmp == NULL) {
  ------------------
  |  Branch (2218:8): [True: 0, False: 112]
  ------------------
 2219|      0|				ucl_create_err(&parser->err, "Memory allocation failed");
 2220|      0|				if (buf) {
  ------------------
  |  Branch (2220:9): [True: 0, False: 0]
  ------------------
 2221|      0|					ucl_munmap(buf, buflen);
  ------------------
  |  |  185|      0|#define ucl_munmap munmap
  ------------------
 2222|      0|				}
 2223|       |
 2224|      0|				return false;
 2225|      0|			}
 2226|       |
 2227|    112|			snprintf(tmp, alloc_len, "%.*s", (int) buflen, buf);
 2228|    112|			iv = strtoll(tmp, NULL, 10);
 2229|    112|			obj = ucl_object_fromint(iv);
 2230|    112|			free(tmp);
 2231|    112|		}
 2232|       |
 2233|  2.29k|		if (buf) {
  ------------------
  |  Branch (2233:7): [True: 2.29k, False: 0]
  ------------------
 2234|  2.29k|			ucl_munmap(buf, buflen);
  ------------------
  |  |  185|  2.29k|#define ucl_munmap munmap
  ------------------
 2235|  2.29k|		}
 2236|       |
 2237|  2.29k|		if (obj != NULL) {
  ------------------
  |  Branch (2237:7): [True: 1.61k, False: 679]
  ------------------
 2238|  1.61k|			obj->key = prefix;
 2239|  1.61k|			obj->keylen = strlen(prefix);
 2240|  1.61k|			obj->prev = obj;
 2241|  1.61k|			obj->next = NULL;
 2242|  1.61k|			ucl_object_set_priority(obj, priority);
 2243|       |			/* The prefix belongs to the macro arguments: copy it */
 2244|  1.61k|			if (ucl_copy_key_trash(obj) == NULL ||
  ------------------
  |  Branch (2244:8): [True: 0, False: 1.61k]
  ------------------
 2245|  1.61k|				!ucl_object_insert_key(container, obj, obj->key, obj->keylen, false)) {
  ------------------
  |  Branch (2245:5): [True: 0, False: 1.61k]
  ------------------
 2246|      0|				ucl_object_unref(obj);
 2247|      0|				ucl_create_err(&parser->err, "cannot insert key %s of load macro",
 2248|      0|							   prefix);
 2249|      0|				return false;
 2250|      0|			}
 2251|  1.61k|		}
 2252|       |
 2253|  2.29k|		return true;
 2254|  2.29k|	}
 2255|       |
 2256|    310|	ucl_create_err(&parser->err, "Unable to parse load macro");
 2257|       |	return false;
 2258|  4.29k|}
ucl_inherit_handler:
 2262|    211|{
 2263|    211|	const ucl_object_t *parent, *cur;
 2264|    211|	ucl_object_t *target, *copy;
 2265|    211|	ucl_object_iter_t it = NULL;
 2266|    211|	bool replace = false;
 2267|    211|	struct ucl_parser *parser = ud;
 2268|       |
 2269|    211|	parent = ucl_object_lookup_len(ctx, data, len);
 2270|       |
 2271|       |	/* Some sanity checks */
 2272|    211|	if (parent == NULL || ucl_object_type(parent) != UCL_OBJECT) {
  ------------------
  |  Branch (2272:6): [True: 201, False: 10]
  |  Branch (2272:24): [True: 1, False: 9]
  ------------------
 2273|    202|		ucl_create_err(&parser->err, "Unable to find inherited object %.*s",
 2274|    202|					   (int) len, data);
 2275|    202|		return false;
 2276|    202|	}
 2277|       |
 2278|      9|	if (parser->stack == NULL || parser->stack->obj == NULL ||
  ------------------
  |  Branch (2278:6): [True: 0, False: 9]
  |  Branch (2278:31): [True: 0, False: 9]
  ------------------
 2279|      9|		ucl_object_type(parser->stack->obj) != UCL_OBJECT) {
  ------------------
  |  Branch (2279:3): [True: 0, False: 9]
  ------------------
 2280|      0|		ucl_create_err(&parser->err, "Invalid inherit context");
 2281|      0|		return false;
 2282|      0|	}
 2283|       |
 2284|      9|	target = parser->stack->obj;
 2285|       |
 2286|      9|	if (args && (cur = ucl_object_lookup(args, "replace")) != NULL) {
  ------------------
  |  Branch (2286:6): [True: 2, False: 7]
  |  Branch (2286:14): [True: 0, False: 2]
  ------------------
 2287|      0|		replace = ucl_object_toboolean(cur);
 2288|      0|	}
 2289|       |
 2290|     10|	while ((cur = ucl_object_iterate(parent, &it, true))) {
  ------------------
  |  |  881|     10|#define ucl_object_iterate(ob, it, ev) ucl_object_iterate_with_error((ob), (it), (ev), NULL)
  ------------------
  |  Branch (2290:9): [True: 1, False: 9]
  ------------------
 2291|       |		/* We do not replace existing keys */
 2292|      1|		if (!replace && ucl_object_lookup_len(target, cur->key, cur->keylen)) {
  ------------------
  |  Branch (2292:7): [True: 1, False: 0]
  |  Branch (2292:19): [True: 0, False: 1]
  ------------------
 2293|      0|			continue;
 2294|      0|		}
 2295|       |
 2296|      1|		copy = ucl_object_copy(cur);
 2297|       |
 2298|      1|		if (!replace) {
  ------------------
  |  Branch (2298:7): [True: 1, False: 0]
  ------------------
 2299|      1|			copy->flags |= UCL_OBJECT_INHERITED;
 2300|      1|		}
 2301|       |
 2302|      1|		ucl_object_insert_key(target, copy, copy->key,
 2303|      1|							  copy->keylen, false);
 2304|      1|	}
 2305|       |
 2306|       |	return true;
 2307|      9|}
ucl_parser_set_filevars:
 2310|  14.7k|{
 2311|  14.7k|	char realbuf[PATH_MAX], *curdir;
 2312|       |
 2313|  14.7k|	if (filename != NULL) {
  ------------------
  |  Branch (2313:6): [True: 14.7k, False: 0]
  ------------------
 2314|  14.7k|		if (need_expand) {
  ------------------
  |  Branch (2314:7): [True: 0, False: 14.7k]
  ------------------
 2315|      0|			if (ucl_realpath(filename, realbuf) == NULL) {
  ------------------
  |  |  186|      0|#define ucl_realpath realpath
  ------------------
  |  Branch (2315:8): [True: 0, False: 0]
  ------------------
 2316|      0|				return false;
 2317|      0|			}
 2318|      0|		}
 2319|  14.7k|		else {
 2320|  14.7k|			ucl_strlcpy(realbuf, filename, sizeof(realbuf));
 2321|  14.7k|		}
 2322|       |
 2323|  14.7k|		if (parser->cur_file) {
  ------------------
  |  Branch (2323:7): [True: 0, False: 14.7k]
  ------------------
 2324|      0|			UCL_FREE(strlen(parser->cur_file) + 1, parser->cur_file);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 2325|      0|		}
 2326|       |
 2327|  14.7k|		parser->cur_file = UCL_STRDUP(realbuf);
  ------------------
  |  |   87|  14.7k|#define UCL_STRDUP(str) ucl_strdup_impl(str)
  ------------------
 2328|       |
 2329|       |		/* Define variables */
 2330|  14.7k|		ucl_parser_register_variable(parser, "FILENAME", realbuf);
 2331|  14.7k|		curdir = dirname(realbuf);
 2332|  14.7k|		ucl_parser_register_variable(parser, "CURDIR", curdir);
 2333|  14.7k|	}
 2334|      0|	else {
 2335|       |		/* Set everything from the current dir */
 2336|      0|		curdir = getcwd(realbuf, sizeof(realbuf));
 2337|      0|		ucl_parser_register_variable(parser, "FILENAME", "undef");
 2338|      0|		ucl_parser_register_variable(parser, "CURDIR", curdir);
 2339|      0|	}
 2340|       |
 2341|  14.7k|	return true;
 2342|  14.7k|}
ucl_parser_add_fd_full:
 2434|  7.62k|{
 2435|  7.62k|	unsigned char *buf;
 2436|  7.62k|	size_t len;
 2437|  7.62k|	bool ret;
 2438|  7.62k|	struct stat st;
 2439|       |
 2440|  7.62k|	if (fstat(fd, &st) == -1) {
  ------------------
  |  Branch (2440:6): [True: 0, False: 7.62k]
  ------------------
 2441|      0|		ucl_create_err(&parser->err, "cannot stat fd %d: %s",
 2442|      0|					   fd, strerror(errno));
 2443|      0|		return false;
 2444|      0|	}
 2445|  7.62k|	if (st.st_size == 0) {
  ------------------
  |  Branch (2445:6): [True: 0, False: 7.62k]
  ------------------
 2446|      0|		return true;
 2447|      0|	}
 2448|  7.62k|	if ((buf = ucl_mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0)) == MAP_FAILED) {
  ------------------
  |  |  184|  7.62k|#define ucl_mmap mmap
  ------------------
  |  Branch (2448:6): [True: 0, False: 7.62k]
  ------------------
 2449|      0|		ucl_create_err(&parser->err, "cannot mmap fd %d: %s",
 2450|      0|					   fd, strerror(errno));
 2451|      0|		return false;
 2452|      0|	}
 2453|       |
 2454|  7.62k|	if (parser->cur_file) {
  ------------------
  |  Branch (2454:6): [True: 0, False: 7.62k]
  ------------------
 2455|      0|		UCL_FREE(strlen(parser->cur_file) + 1, parser->cur_file);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 2456|      0|	}
 2457|  7.62k|	parser->cur_file = NULL;
 2458|  7.62k|	len = st.st_size;
 2459|  7.62k|	ret = ucl_parser_add_mapped_chunk(parser, buf, len, priority, strat,
 2460|  7.62k|									  parse_type);
 2461|       |
 2462|  7.62k|	return ret;
 2463|  7.62k|}
ucl_parser_add_fd_priority:
 2467|  7.62k|{
 2468|  7.62k|	if (parser == NULL) {
  ------------------
  |  Branch (2468:6): [True: 0, False: 7.62k]
  ------------------
 2469|      0|		return false;
 2470|      0|	}
 2471|       |
 2472|  7.62k|	return ucl_parser_add_fd_full(parser, fd, parser->default_priority,
 2473|  7.62k|								  UCL_DUPLICATE_APPEND, UCL_PARSE_UCL);
 2474|  7.62k|}
ucl_parser_add_fd:
 2477|  7.62k|{
 2478|  7.62k|	if (parser == NULL) {
  ------------------
  |  Branch (2478:6): [True: 0, False: 7.62k]
  ------------------
 2479|      0|		return false;
 2480|      0|	}
 2481|       |
 2482|  7.62k|	return ucl_parser_add_fd_priority(parser, fd, parser->default_priority);
 2483|  7.62k|}
ucl_strlcpy:
 2487|   149k|{
 2488|   149k|	char *d = dst;
 2489|   149k|	const char *s = src;
 2490|   149k|	size_t n = siz;
 2491|       |
 2492|       |	/* Copy as many bytes as will fit */
 2493|   149k|	if (n != 0) {
  ------------------
  |  Branch (2493:6): [True: 149k, False: 0]
  ------------------
 2494|  2.30M|		while (--n != 0) {
  ------------------
  |  Branch (2494:10): [True: 2.16M, False: 133k]
  ------------------
 2495|  2.16M|			if ((*d++ = *s++) == '\0') {
  ------------------
  |  Branch (2495:8): [True: 15.8k, False: 2.15M]
  ------------------
 2496|  15.8k|				break;
 2497|  15.8k|			}
 2498|  2.16M|		}
 2499|   149k|	}
 2500|       |
 2501|   149k|	if (n == 0 && siz != 0) {
  ------------------
  |  Branch (2501:6): [True: 133k, False: 15.8k]
  |  Branch (2501:16): [True: 133k, False: 0]
  ------------------
 2502|   133k|		*d = '\0';
 2503|   133k|	}
 2504|       |
 2505|   149k|	return (s - src - 1); /* count does not include NUL */
 2506|   149k|}
ucl_strlcpy_unsafe:
 2510|  1.05M|{
 2511|  1.05M|    if (siz == 0) {
  ------------------
  |  Branch (2511:9): [True: 0, False: 1.05M]
  ------------------
 2512|      0|        return 0;
 2513|      0|    }
 2514|       |
 2515|  1.05M|    memcpy(dst, src, siz - 1);
 2516|  1.05M|    dst[siz - 1] = '\0';
 2517|       |
 2518|  1.05M|    return siz - 1;
 2519|  1.05M|}
ucl_strnstr:
 2549|  1.65k|{
 2550|  1.65k|	char c, sc;
 2551|  1.65k|	int mlen;
 2552|       |
 2553|  1.65k|	if ((c = *find++) != 0) {
  ------------------
  |  Branch (2553:6): [True: 1.65k, False: 0]
  ------------------
 2554|  1.65k|		mlen = strlen(find);
 2555|  4.95k|		do {
 2556|   371k|			do {
 2557|   371k|				if (len <= mlen)
  ------------------
  |  Branch (2557:9): [True: 561, False: 371k]
  ------------------
 2558|    561|					return (NULL);
 2559|       |
 2560|   371k|				sc = *s++;
 2561|   371k|				len--;
 2562|       |
 2563|   371k|				if (sc == '\0')
  ------------------
  |  Branch (2563:9): [True: 130, False: 370k]
  ------------------
 2564|    130|					return (NULL);
 2565|   371k|			} while (sc != c);
  ------------------
  |  Branch (2565:13): [True: 366k, False: 4.26k]
  ------------------
 2566|  4.95k|		} while (strncmp(s, find, mlen) != 0);
  ------------------
  |  Branch (2566:12): [True: 3.30k, False: 962]
  ------------------
 2567|    962|		s--;
 2568|    962|	}
 2569|    962|	return ((char *) s);
 2570|  1.65k|}
ucl_object_fromstring_common:
 2621|  1.50k|{
 2622|  1.50k|	ucl_object_t *obj;
 2623|  1.50k|	const char *start, *end, *p, *pos;
 2624|  1.50k|	char *dst = NULL, *d;
 2625|  1.50k|	size_t escaped_len, alloc_len;
 2626|       |
 2627|  1.50k|	if (str == NULL) {
  ------------------
  |  Branch (2627:6): [True: 0, False: 1.50k]
  ------------------
 2628|      0|		return NULL;
 2629|      0|	}
 2630|       |
 2631|  1.50k|	obj = ucl_object_new();
 2632|  1.50k|	if (obj) {
  ------------------
  |  Branch (2632:6): [True: 1.50k, False: 0]
  ------------------
 2633|  1.50k|		if (len == 0) {
  ------------------
  |  Branch (2633:7): [True: 0, False: 1.50k]
  ------------------
 2634|      0|			len = strlen(str);
 2635|      0|		}
 2636|  1.50k|		if (flags & UCL_STRING_TRIM) {
  ------------------
  |  Branch (2636:7): [True: 115, False: 1.39k]
  ------------------
 2637|       |			/* Skip leading spaces */
 2638|    115|			for (start = str; (size_t) (start - str) < len; start++) {
  ------------------
  |  Branch (2638:22): [True: 115, False: 0]
  ------------------
 2639|    115|				if (!ucl_test_character(*start, UCL_CHARACTER_WHITESPACE_UNSAFE)) {
  ------------------
  |  Branch (2639:9): [True: 115, False: 0]
  ------------------
 2640|    115|					break;
 2641|    115|				}
 2642|    115|			}
 2643|       |			/* Skip trailing spaces */
 2644|    229|			for (end = str + len - 1; end > start; end--) {
  ------------------
  |  Branch (2644:30): [True: 229, False: 0]
  ------------------
 2645|    229|				if (!ucl_test_character(*end, UCL_CHARACTER_WHITESPACE_UNSAFE)) {
  ------------------
  |  Branch (2645:9): [True: 115, False: 114]
  ------------------
 2646|    115|					break;
 2647|    115|				}
 2648|    229|			}
 2649|    115|			end++;
 2650|    115|		}
 2651|  1.39k|		else {
 2652|  1.39k|			start = str;
 2653|  1.39k|			end = str + len;
 2654|  1.39k|		}
 2655|       |
 2656|  1.50k|		obj->type = UCL_STRING;
 2657|  1.50k|		if (flags & UCL_STRING_ESCAPE) {
  ------------------
  |  Branch (2657:7): [True: 769, False: 737]
  ------------------
 2658|  5.90M|			for (p = start, escaped_len = 0; p < end; p++) {
  ------------------
  |  Branch (2658:37): [True: 5.90M, False: 769]
  ------------------
 2659|  5.90M|				if (!ucl_escaped_len_add(&escaped_len, (unsigned char) *p)) {
  ------------------
  |  Branch (2659:9): [True: 0, False: 5.90M]
  ------------------
 2660|      0|					ucl_object_unref(obj);
 2661|      0|					return NULL;
 2662|      0|				}
 2663|  5.90M|			}
 2664|    769|			if (ucl_size_add(escaped_len, 1, &alloc_len)) {
  ------------------
  |  Branch (2664:8): [True: 769, False: 0]
  ------------------
 2665|    769|				dst = malloc(alloc_len);
 2666|    769|			}
 2667|    769|			if (dst != NULL) {
  ------------------
  |  Branch (2667:8): [True: 769, False: 0]
  ------------------
 2668|  5.90M|				for (p = start, d = dst; p < end; p++, d++) {
  ------------------
  |  Branch (2668:30): [True: 5.90M, False: 769]
  ------------------
 2669|  5.90M|					if (ucl_test_character(*p, UCL_CHARACTER_JSON_UNSAFE | UCL_CHARACTER_WHITESPACE_UNSAFE)) {
  ------------------
  |  Branch (2669:10): [True: 2.56M, False: 3.33M]
  ------------------
 2670|  2.56M|						switch (*p) {
  ------------------
  |  Branch (2670:15): [True: 2.56M, False: 0]
  ------------------
 2671|  25.3k|						case '\n':
  ------------------
  |  Branch (2671:7): [True: 25.3k, False: 2.53M]
  ------------------
 2672|  25.3k|							*d++ = '\\';
 2673|  25.3k|							*d = 'n';
 2674|  25.3k|							break;
 2675|  9.48k|						case '\r':
  ------------------
  |  Branch (2675:7): [True: 9.48k, False: 2.55M]
  ------------------
 2676|  9.48k|							*d++ = '\\';
 2677|  9.48k|							*d = 'r';
 2678|  9.48k|							break;
 2679|  30.6k|						case '\b':
  ------------------
  |  Branch (2679:7): [True: 30.6k, False: 2.53M]
  ------------------
 2680|  30.6k|							*d++ = '\\';
 2681|  30.6k|							*d = 'b';
 2682|  30.6k|							break;
 2683|  3.46k|						case '\t':
  ------------------
  |  Branch (2683:7): [True: 3.46k, False: 2.56M]
  ------------------
 2684|  3.46k|							*d++ = '\\';
 2685|  3.46k|							*d = 't';
 2686|  3.46k|							break;
 2687|  7.74k|						case '\f':
  ------------------
  |  Branch (2687:7): [True: 7.74k, False: 2.55M]
  ------------------
 2688|  7.74k|							*d++ = '\\';
 2689|  7.74k|							*d = 'f';
 2690|  7.74k|							break;
 2691|  2.39M|						case '\0':
  ------------------
  |  Branch (2691:7): [True: 2.39M, False: 166k]
  ------------------
 2692|  2.39M|							*d++ = '\\';
 2693|  2.39M|							*d++ = 'u';
 2694|  2.39M|							*d++ = '0';
 2695|  2.39M|							*d++ = '0';
 2696|  2.39M|							*d++ = '0';
 2697|  2.39M|							*d = '0';
 2698|  2.39M|							break;
 2699|  5.69k|						case '\v':
  ------------------
  |  Branch (2699:7): [True: 5.69k, False: 2.55M]
  ------------------
 2700|  5.69k|							*d++ = '\\';
 2701|  5.69k|							*d++ = 'u';
 2702|  5.69k|							*d++ = '0';
 2703|  5.69k|							*d++ = '0';
 2704|  5.69k|							*d++ = '0';
 2705|  5.69k|							*d = 'B';
 2706|  5.69k|							break;
 2707|  5.20k|						case '\\':
  ------------------
  |  Branch (2707:7): [True: 5.20k, False: 2.55M]
  ------------------
 2708|  5.20k|							*d++ = '\\';
 2709|  5.20k|							*d = '\\';
 2710|  5.20k|							break;
 2711|  74.9k|						case ' ':
  ------------------
  |  Branch (2711:7): [True: 74.9k, False: 2.48M]
  ------------------
 2712|  74.9k|							*d = ' ';
 2713|  74.9k|							break;
 2714|  3.92k|						case '"':
  ------------------
  |  Branch (2714:7): [True: 3.92k, False: 2.55M]
  ------------------
 2715|  3.92k|							*d++ = '\\';
 2716|  3.92k|							*d = '"';
 2717|  3.92k|							break;
 2718|  2.56M|						}
 2719|  2.56M|					}
 2720|  3.33M|					else {
 2721|  3.33M|						*d = *p;
 2722|  3.33M|					}
 2723|  5.90M|				}
 2724|    769|				*d = '\0';
 2725|    769|				obj->value.sv = dst;
 2726|    769|				obj->trash_stack[UCL_TRASH_VALUE] = dst;
  ------------------
  |  |  154|    769|#define UCL_TRASH_VALUE 1
  ------------------
 2727|    769|				obj->len = escaped_len;
 2728|    769|			}
 2729|    769|		}
 2730|    737|		else {
 2731|    737|			if (ucl_size_add((size_t) (end - start), 1, &alloc_len)) {
  ------------------
  |  Branch (2731:8): [True: 737, False: 0]
  ------------------
 2732|    737|				dst = malloc(alloc_len);
 2733|    737|			}
 2734|    737|			if (dst != NULL) {
  ------------------
  |  Branch (2734:8): [True: 737, False: 0]
  ------------------
 2735|    737|				ucl_strlcpy_unsafe(dst, start, alloc_len);
 2736|    737|				obj->value.sv = dst;
 2737|    737|				obj->trash_stack[UCL_TRASH_VALUE] = dst;
  ------------------
  |  |  154|    737|#define UCL_TRASH_VALUE 1
  ------------------
 2738|    737|				obj->len = end - start;
 2739|    737|			}
 2740|    737|		}
 2741|  1.50k|		if (dst == NULL) {
  ------------------
  |  Branch (2741:7): [True: 0, False: 1.50k]
  ------------------
 2742|      0|			ucl_object_unref(obj);
 2743|      0|			return NULL;
 2744|      0|		}
 2745|  1.50k|		if (flags & UCL_STRING_PARSE) {
  ------------------
  |  Branch (2745:7): [True: 0, False: 1.50k]
  ------------------
 2746|       |			/* Parse what we have */
 2747|      0|			if (flags & UCL_STRING_PARSE_BOOLEAN) {
  ------------------
  |  Branch (2747:8): [True: 0, False: 0]
  ------------------
 2748|      0|				if (!ucl_maybe_parse_boolean(obj, dst, obj->len) && (flags & UCL_STRING_PARSE_NUMBER)) {
  ------------------
  |  Branch (2748:9): [True: 0, False: 0]
  |  Branch (2748:57): [True: 0, False: 0]
  ------------------
 2749|      0|					ucl_maybe_parse_number(obj, dst, dst + obj->len, &pos,
 2750|      0|										   flags & UCL_STRING_PARSE_DOUBLE,
 2751|      0|										   flags & UCL_STRING_PARSE_BYTES,
 2752|      0|										   flags & UCL_STRING_PARSE_TIME);
 2753|      0|				}
 2754|      0|			}
 2755|      0|			else {
 2756|      0|				ucl_maybe_parse_number(obj, dst, dst + obj->len, &pos,
 2757|      0|									   flags & UCL_STRING_PARSE_DOUBLE,
 2758|      0|									   flags & UCL_STRING_PARSE_BYTES,
 2759|      0|									   flags & UCL_STRING_PARSE_TIME);
 2760|      0|			}
 2761|      0|		}
 2762|  1.50k|	}
 2763|       |
 2764|  1.50k|	return obj;
 2765|  1.50k|}
ucl_object_insert_key:
 2938|  11.3k|{
 2939|  11.3k|	return ucl_object_insert_key_common(top, elt, key, keylen, copy_key, false, false);
 2940|  11.3k|}
ucl_object_lookup_len:
 3088|  2.56k|{
 3089|  2.56k|	const ucl_object_t *ret;
 3090|  2.56k|	ucl_object_t srch;
 3091|       |
 3092|  2.56k|	if (obj == NULL || obj->type != UCL_OBJECT || key == NULL) {
  ------------------
  |  Branch (3092:6): [True: 0, False: 2.56k]
  |  Branch (3092:21): [True: 2, False: 2.55k]
  |  Branch (3092:48): [True: 0, False: 2.55k]
  ------------------
 3093|      2|		return NULL;
 3094|      2|	}
 3095|       |
 3096|  2.55k|	srch.key = key;
 3097|  2.55k|	srch.keylen = klen;
 3098|  2.55k|	ret = ucl_hash_search_obj(obj->value.ov, &srch);
 3099|       |
 3100|  2.55k|	return ret;
 3101|  2.56k|}
ucl_object_lookup:
 3105|  2.34k|{
 3106|  2.34k|	if (key == NULL) {
  ------------------
  |  Branch (3106:6): [True: 0, False: 2.34k]
  ------------------
 3107|      0|		return NULL;
 3108|      0|	}
 3109|       |
 3110|  2.34k|	return ucl_object_lookup_len(obj, key, strlen(key));
 3111|  2.34k|}
ucl_object_iterate_with_error:
 3150|   310k|{
 3151|   310k|	const ucl_object_t *elt = NULL;
 3152|       |
 3153|   310k|	if (obj == NULL || iter == NULL) {
  ------------------
  |  Branch (3153:6): [True: 0, False: 310k]
  |  Branch (3153:21): [True: 0, False: 310k]
  ------------------
 3154|      0|		return NULL;
 3155|      0|	}
 3156|       |
 3157|   310k|	if (expand_values) {
  ------------------
  |  Branch (3157:6): [True: 310k, False: 0]
  ------------------
 3158|   310k|		switch (obj->type) {
 3159|   114k|		case UCL_OBJECT:
  ------------------
  |  Branch (3159:3): [True: 114k, False: 195k]
  ------------------
 3160|   114k|			return (const ucl_object_t *) ucl_hash_iterate2(obj->value.ov, iter, ep);
 3161|      0|			break;
 3162|   195k|		case UCL_ARRAY: {
  ------------------
  |  Branch (3162:3): [True: 195k, False: 114k]
  ------------------
 3163|   195k|			unsigned int idx;
 3164|   195k|			UCL_ARRAY_GET(vec, obj);
  ------------------
  |  |   51|   195k|#define UCL_ARRAY_GET(ar, obj) ucl_array_t *ar = \
  |  |   52|   195k|								   (ucl_array_t *) ((obj) != NULL ? (obj)->value.av : NULL)
  |  |  ------------------
  |  |  |  Branch (52:29): [True: 195k, False: 0]
  |  |  ------------------
  ------------------
 3165|   195k|			idx = (unsigned int) (uintptr_t) (*iter);
 3166|       |
 3167|   195k|			if (vec != NULL) {
  ------------------
  |  Branch (3167:8): [True: 194k, False: 1.48k]
  ------------------
 3168|   194k|				while (idx < kv_size(*vec)) {
  ------------------
  |  |   62|   194k|#define kv_size(v) ((v).n)
  ------------------
  |  Branch (3168:12): [True: 192k, False: 1.79k]
  ------------------
 3169|   192k|					if ((elt = kv_A(*vec, idx)) != NULL) {
  ------------------
  |  |   60|   192k|#define kv_A(v, i) ((v).a[(i)])
  ------------------
  |  Branch (3169:10): [True: 192k, False: 0]
  ------------------
 3170|   192k|						idx++;
 3171|   192k|						break;
 3172|   192k|					}
 3173|      0|					idx++;
 3174|      0|				}
 3175|   194k|				*iter = (void *) (uintptr_t) idx;
 3176|   194k|			}
 3177|       |
 3178|   195k|			return elt;
 3179|      0|			break;
 3180|      0|		}
 3181|      0|		default:
  ------------------
  |  Branch (3181:3): [True: 0, False: 310k]
  ------------------
 3182|       |			/* Go to linear iteration */
 3183|      0|			break;
 3184|   310k|		}
 3185|   310k|	}
 3186|       |	/* Treat everything as a linear list */
 3187|      0|	elt = *iter;
 3188|      0|	if (elt == NULL) {
  ------------------
  |  Branch (3188:6): [True: 0, False: 0]
  ------------------
 3189|      0|		elt = obj;
 3190|      0|	}
 3191|      0|	else if (elt == obj) {
  ------------------
  |  Branch (3191:11): [True: 0, False: 0]
  ------------------
 3192|      0|		return NULL;
 3193|      0|	}
 3194|      0|	*iter = __DECONST(void *, elt->next ? elt->next : obj);
  ------------------
  |  |  135|      0|#define __DECONST(type, var) ((type) (uintptr_t) (const void *) (var))
  |  |  ------------------
  |  |  |  Branch (135:66): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3195|      0|	return elt;
 3196|       |
 3197|       |	/* Not reached */
 3198|      0|	return NULL;
 3199|      0|}
ucl_object_iterate_new:
 3253|  2.61k|{
 3254|  2.61k|	struct ucl_object_safe_iter *it;
 3255|       |
 3256|  2.61k|	it = UCL_ALLOC(sizeof(*it));
  ------------------
  |  |   71|  2.61k|#define UCL_ALLOC(size) malloc(size)
  ------------------
 3257|  2.61k|	if (it != NULL) {
  ------------------
  |  Branch (3257:6): [True: 2.61k, False: 0]
  ------------------
 3258|  2.61k|		memcpy(it->magic, safe_iter_magic, sizeof(it->magic));
 3259|  2.61k|		it->flags = UCL_ITERATE_FLAG_UNDEFINED;
 3260|  2.61k|		it->expl_it = NULL;
 3261|  2.61k|		it->impl_it = obj;
 3262|  2.61k|	}
 3263|       |
 3264|  2.61k|	return (ucl_object_iter_t) it;
 3265|  2.61k|}
ucl_object_iter_chk_excpn:
 3268|    961|{
 3269|    961|	struct ucl_object_safe_iter *rit = UCL_SAFE_ITER(it);
  ------------------
  |  | 3244|    961|#define UCL_SAFE_ITER(ptr) (struct ucl_object_safe_iter *) (ptr)
  ------------------
 3270|       |
 3271|    961|	UCL_SAFE_ITER_CHECK(rit);
  ------------------
  |  | 3246|    961|	do {                                                                    \
  |  | 3247|    961|		assert(it != NULL);                                                 \
  |  | 3248|    961|		assert(memcmp(it->magic, safe_iter_magic, sizeof(it->magic)) == 0); \
  |  | 3249|    961|	} while (0)
  |  |  ------------------
  |  |  |  Branch (3249:11): [Folded, False: 961]
  |  |  ------------------
  ------------------
  |  Branch (3271:2): [True: 961, False: 0]
  |  Branch (3271:2): [True: 961, False: 0]
  ------------------
 3272|       |
 3273|    961|	return (rit->flags == UCL_ITERATE_FLAG_EXCEPTION);
 3274|    961|}
ucl_object_iterate_safe:
 3298|  85.6k|{
 3299|  85.6k|	return ucl_object_iterate_full(it, expand_values ? UCL_ITERATE_BOTH : UCL_ITERATE_IMPLICIT);
  ------------------
  |  Branch (3299:37): [True: 85.6k, False: 0]
  ------------------
 3300|  85.6k|}
ucl_object_iterate_full:
 3304|  85.6k|{
 3305|  85.6k|	struct ucl_object_safe_iter *rit = UCL_SAFE_ITER(it);
  ------------------
  |  | 3244|  85.6k|#define UCL_SAFE_ITER(ptr) (struct ucl_object_safe_iter *) (ptr)
  ------------------
 3306|  85.6k|	const ucl_object_t *ret = NULL;
 3307|  85.6k|	int ern;
 3308|       |
 3309|  85.6k|	UCL_SAFE_ITER_CHECK(rit);
  ------------------
  |  | 3246|  85.6k|	do {                                                                    \
  |  | 3247|  85.6k|		assert(it != NULL);                                                 \
  |  | 3248|  85.6k|		assert(memcmp(it->magic, safe_iter_magic, sizeof(it->magic)) == 0); \
  |  | 3249|  85.6k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (3249:11): [Folded, False: 85.6k]
  |  |  ------------------
  ------------------
  |  Branch (3309:2): [True: 85.6k, False: 0]
  |  Branch (3309:2): [True: 85.6k, False: 0]
  ------------------
 3310|       |
 3311|  85.6k|	if (rit->impl_it == NULL) {
  ------------------
  |  Branch (3311:6): [True: 1.71k, False: 83.9k]
  ------------------
 3312|  1.71k|		return NULL;
 3313|  1.71k|	}
 3314|       |
 3315|  83.9k|	if (rit->impl_it->type == UCL_OBJECT) {
  ------------------
  |  Branch (3315:6): [True: 6.39k, False: 77.5k]
  ------------------
 3316|  6.39k|		rit->flags = UCL_ITERATE_FLAG_INSIDE_OBJECT;
 3317|  6.39k|		ret = ucl_object_iterate_with_error(rit->impl_it, &rit->expl_it, true, &ern);
 3318|       |
 3319|  6.39k|		if (ret == NULL && ern != 0) {
  ------------------
  |  Branch (3319:7): [True: 1.13k, False: 5.25k]
  |  Branch (3319:22): [True: 0, False: 1.13k]
  ------------------
 3320|      0|			rit->flags = UCL_ITERATE_FLAG_EXCEPTION;
 3321|      0|			return NULL;
 3322|      0|		}
 3323|       |
 3324|  6.39k|		if (ret == NULL && (type & UCL_ITERATE_IMPLICIT)) {
  ------------------
  |  Branch (3324:7): [True: 1.13k, False: 5.25k]
  |  Branch (3324:22): [True: 1.13k, False: 0]
  ------------------
 3325|       |			/* Need to switch to another implicit object in chain */
 3326|  1.13k|			rit->impl_it = rit->impl_it->next;
 3327|  1.13k|			rit->expl_it = NULL;
 3328|       |
 3329|  1.13k|			return ucl_object_iterate_safe(it, type);
 3330|  1.13k|		}
 3331|  6.39k|	}
 3332|  77.5k|	else if (rit->impl_it->type == UCL_ARRAY) {
  ------------------
  |  Branch (3332:11): [True: 77.5k, False: 3]
  ------------------
 3333|  77.5k|		rit->flags = UCL_ITERATE_FLAG_INSIDE_ARRAY;
 3334|  77.5k|		ret = ucl_object_iterate(rit->impl_it, &rit->expl_it, true);
  ------------------
  |  |  881|  77.5k|#define ucl_object_iterate(ob, it, ev) ucl_object_iterate_with_error((ob), (it), (ev), NULL)
  ------------------
 3335|       |
 3336|  77.5k|		if (ret == NULL && (type & UCL_ITERATE_IMPLICIT)) {
  ------------------
  |  Branch (3336:7): [True: 764, False: 76.8k]
  |  Branch (3336:22): [True: 764, False: 0]
  ------------------
 3337|       |			/* Need to switch to another implicit object in chain */
 3338|    764|			rit->impl_it = rit->impl_it->next;
 3339|    764|			rit->expl_it = NULL;
 3340|       |
 3341|    764|			return ucl_object_iterate_safe(it, type);
 3342|    764|		}
 3343|  77.5k|	}
 3344|      3|	else {
 3345|       |		/* Just iterate over the implicit array */
 3346|      3|		rit->flags = UCL_ITERATE_FLAG_IMPLICIT;
 3347|      3|		ret = rit->impl_it;
 3348|      3|		rit->impl_it = rit->impl_it->next;
 3349|       |
 3350|      3|		if (type & UCL_ITERATE_EXPLICIT) {
  ------------------
  |  Branch (3350:7): [True: 3, False: 0]
  ------------------
 3351|       |			/* We flatten objects if need to expand values */
 3352|      3|			if (ret->type == UCL_OBJECT || ret->type == UCL_ARRAY) {
  ------------------
  |  Branch (3352:8): [True: 0, False: 3]
  |  Branch (3352:35): [True: 0, False: 3]
  ------------------
 3353|      0|				return ucl_object_iterate_safe(it, type);
 3354|      0|			}
 3355|      3|		}
 3356|      3|	}
 3357|       |
 3358|  82.0k|	return ret;
 3359|  83.9k|}
ucl_object_iterate_free:
 3362|  2.61k|{
 3363|  2.61k|	struct ucl_object_safe_iter *rit = UCL_SAFE_ITER(it);
  ------------------
  |  | 3244|  2.61k|#define UCL_SAFE_ITER(ptr) (struct ucl_object_safe_iter *) (ptr)
  ------------------
 3364|       |
 3365|  2.61k|	UCL_SAFE_ITER_CHECK(rit);
  ------------------
  |  | 3246|  2.61k|	do {                                                                    \
  |  | 3247|  2.61k|		assert(it != NULL);                                                 \
  |  | 3248|  2.61k|		assert(memcmp(it->magic, safe_iter_magic, sizeof(it->magic)) == 0); \
  |  | 3249|  2.61k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (3249:11): [Folded, False: 2.61k]
  |  |  ------------------
  ------------------
  |  Branch (3365:2): [True: 2.61k, False: 0]
  |  Branch (3365:2): [True: 2.61k, False: 0]
  ------------------
 3366|       |
 3367|  2.61k|	if (rit->expl_it != NULL) {
  ------------------
  |  Branch (3367:6): [True: 896, False: 1.71k]
  ------------------
 3368|    896|		if (rit->flags == UCL_ITERATE_FLAG_INSIDE_OBJECT) {
  ------------------
  |  Branch (3368:7): [True: 17, False: 879]
  ------------------
 3369|     17|			ucl_hash_iterate_free(rit->expl_it);
 3370|     17|		}
 3371|    896|	}
 3372|       |
 3373|  2.61k|	UCL_FREE(sizeof(*rit), it);
  ------------------
  |  |   74|  2.61k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 3374|  2.61k|}
ucl_object_new:
 3439|  1.61k|{
 3440|  1.61k|	return ucl_object_typed_new(UCL_NULL);
 3441|  1.61k|}
ucl_object_typed_new:
 3445|  1.73k|{
 3446|  1.73k|	return ucl_object_new_full(type, 0);
 3447|  1.73k|}
ucl_object_new_full:
 3451|  1.02M|{
 3452|  1.02M|	ucl_object_t *new;
 3453|       |
 3454|  1.02M|	if (type != UCL_USERDATA) {
  ------------------
  |  Branch (3454:6): [True: 1.02M, False: 0]
  ------------------
 3455|  1.02M|		new = UCL_ALLOC(sizeof(ucl_object_t));
  ------------------
  |  |   71|  1.02M|#define UCL_ALLOC(size) malloc(size)
  ------------------
 3456|  1.02M|		if (new != NULL) {
  ------------------
  |  Branch (3456:7): [True: 1.02M, False: 0]
  ------------------
 3457|  1.02M|			memset(new, 0, sizeof(ucl_object_t));
 3458|  1.02M|			new->ref = 1;
 3459|  1.02M|			new->type = (type <= UCL_NULL ? type : UCL_NULL);
  ------------------
  |  Branch (3459:17): [True: 1.02M, False: 0]
  ------------------
 3460|  1.02M|			new->next = NULL;
 3461|  1.02M|			new->prev = new;
 3462|  1.02M|			ucl_object_set_priority(new, priority);
 3463|       |
 3464|  1.02M|			if (type == UCL_ARRAY) {
  ------------------
  |  Branch (3464:8): [True: 5.24k, False: 1.02M]
  ------------------
 3465|  5.24k|				new->value.av = UCL_ALLOC(sizeof(ucl_array_t));
  ------------------
  |  |   71|  5.24k|#define UCL_ALLOC(size) malloc(size)
  ------------------
 3466|  5.24k|				if (new->value.av) {
  ------------------
  |  Branch (3466:9): [True: 5.24k, False: 0]
  ------------------
 3467|  5.24k|					memset(new->value.av, 0, sizeof(ucl_array_t));
 3468|  5.24k|					UCL_ARRAY_GET(vec, new);
  ------------------
  |  |   51|  5.24k|#define UCL_ARRAY_GET(ar, obj) ucl_array_t *ar = \
  |  |   52|  5.24k|								   (ucl_array_t *) ((obj) != NULL ? (obj)->value.av : NULL)
  |  |  ------------------
  |  |  |  Branch (52:29): [True: 5.24k, False: 0]
  |  |  ------------------
  ------------------
 3469|       |
 3470|       |					/* Preallocate some space for arrays */
 3471|  5.24k|					kv_resize_safe(ucl_object_t *, *vec, 8, enomem);
  ------------------
  |  |   71|  5.24k|#define kv_resize_safe(type, v, s, el)  do { \
  |  |   72|  5.24k|		size_t _tsz; \
  |  |   73|  5.24k|		type *_tp; \
  |  |   74|  5.24k|		if (!ucl_size_mul(sizeof(type), (s), &_tsz)) { \
  |  |  ------------------
  |  |  |  Branch (74:7): [True: 0, False: 5.24k]
  |  |  ------------------
  |  |   75|      0|			goto el; \
  |  |   76|      0|		} \
  |  |   77|  5.24k|		_tp = (type*)realloc((v).a, _tsz); \
  |  |   78|  5.24k|		if (_tp == NULL) { \
  |  |  ------------------
  |  |  |  Branch (78:7): [True: 0, False: 5.24k]
  |  |  ------------------
  |  |   79|      0|			goto el; \
  |  |   80|  5.24k|		} else { \
  |  |   81|  5.24k|			(v).a = _tp; \
  |  |   82|  5.24k|			(v).m = (s); \
  |  |   83|  5.24k|		} \
  |  |   84|  5.24k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (84:11): [Folded, False: 5.24k]
  |  |  ------------------
  ------------------
 3472|  5.24k|				}
 3473|  5.24k|			}
 3474|  1.02M|		}
 3475|  1.02M|	}
 3476|      0|	else {
 3477|      0|		new = ucl_object_new_userdata(NULL, NULL, NULL);
 3478|      0|		ucl_object_set_priority(new, priority);
 3479|      0|	}
 3480|  1.02M|enomem:
 3481|  1.02M|	return new;
 3482|  1.02M|}
ucl_object_type:
 3543|  79.3k|{
 3544|  79.3k|	if (obj == NULL) {
  ------------------
  |  Branch (3544:6): [True: 0, False: 79.3k]
  ------------------
 3545|      0|		return UCL_NULL;
 3546|      0|	}
 3547|       |
 3548|  79.3k|	return obj->type;
 3549|  79.3k|}
ucl_object_fromint:
 3565|    112|{
 3566|    112|	ucl_object_t *obj;
 3567|       |
 3568|    112|	obj = ucl_object_new();
 3569|    112|	if (obj != NULL) {
  ------------------
  |  Branch (3569:6): [True: 112, False: 0]
  ------------------
 3570|    112|		obj->type = UCL_INT;
 3571|    112|		obj->value.iv = iv;
 3572|    112|	}
 3573|       |
 3574|    112|	return obj;
 3575|    112|}
ucl_array_append:
 3606|   750k|{
 3607|   750k|	if (top->type != UCL_ARRAY) {
  ------------------
  |  Branch (3607:6): [True: 0, False: 750k]
  ------------------
 3608|      0|		return false;
 3609|      0|	}
 3610|       |
 3611|   750k|	UCL_ARRAY_GET(vec, top);
  ------------------
  |  |   51|   750k|#define UCL_ARRAY_GET(ar, obj) ucl_array_t *ar = \
  |  |   52|   750k|								   (ucl_array_t *) ((obj) != NULL ? (obj)->value.av : NULL)
  |  |  ------------------
  |  |  |  Branch (52:29): [True: 750k, False: 0]
  |  |  ------------------
  ------------------
 3612|       |
 3613|   750k|	if (elt == NULL || top == NULL) {
  ------------------
  |  Branch (3613:6): [True: 0, False: 750k]
  |  Branch (3613:21): [True: 0, False: 750k]
  ------------------
 3614|      0|		return false;
 3615|      0|	}
 3616|       |
 3617|   750k|	if (vec == NULL) {
  ------------------
  |  Branch (3617:6): [True: 127k, False: 623k]
  ------------------
 3618|   127k|		vec = UCL_ALLOC(sizeof(*vec));
  ------------------
  |  |   71|   127k|#define UCL_ALLOC(size) malloc(size)
  ------------------
 3619|       |
 3620|   127k|		if (vec == NULL) {
  ------------------
  |  Branch (3620:7): [True: 0, False: 127k]
  ------------------
 3621|      0|			return false;
 3622|      0|		}
 3623|       |
 3624|   127k|		kv_init(*vec);
  ------------------
  |  |   58|   127k|#define kv_init(v) ((v).n = (v).m = 0, (v).a = 0)
  ------------------
 3625|   127k|		top->value.av = (void *) vec;
 3626|   127k|	}
 3627|       |
 3628|   750k|	kv_push_safe(ucl_object_t *, *vec, elt, e0);
  ------------------
  |  |  112|   750k|#define kv_push_safe(type, v, x, el) do { \
  |  |  113|   750k|		if ((v).n == (v).m) { \
  |  |  ------------------
  |  |  |  Branch (113:7): [True: 253k, False: 497k]
  |  |  ------------------
  |  |  114|   253k|			kv_grow_safe(type, v, el); \
  |  |  ------------------
  |  |  |  |   88|   253k|#define kv_grow_safe(type, v, el)  do { \
  |  |  |  |   89|   253k|		size_t _ts = 2, _tsz; \
  |  |  |  |   90|   253k|		type *_tp; \
  |  |  |  |   91|   253k|		if ((v).m > 1 && !ucl_size_add((v).m, (v).m / 2, &_ts)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (91:7): [True: 126k, False: 127k]
  |  |  |  |  |  Branch (91:20): [True: 0, False: 126k]
  |  |  |  |  ------------------
  |  |  |  |   92|      0|			goto el; \
  |  |  |  |   93|      0|		} \
  |  |  |  |   94|   253k|		if (!ucl_size_mul(sizeof(type), _ts, &_tsz)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (94:7): [True: 0, False: 253k]
  |  |  |  |  ------------------
  |  |  |  |   95|      0|			goto el; \
  |  |  |  |   96|      0|		} \
  |  |  |  |   97|   253k|		_tp = (type*)realloc((v).a, _tsz); \
  |  |  |  |   98|   253k|		if (_tp == NULL) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (98:7): [True: 0, False: 253k]
  |  |  |  |  ------------------
  |  |  |  |   99|      0|			goto el; \
  |  |  |  |  100|   253k|		} else { \
  |  |  |  |  101|   253k|			(v).a = _tp; \
  |  |  |  |  102|   253k|			(v).m = _ts; \
  |  |  |  |  103|   253k|		} \
  |  |  |  |  104|   253k|	} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (104:11): [Folded, False: 253k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  115|   253k|		} \
  |  |  116|   750k|		(v).a[(v).n++] = (x); \
  |  |  117|   750k|	} while (0)
  |  |  ------------------
  |  |  |  Branch (117:11): [Folded, False: 750k]
  |  |  ------------------
  ------------------
 3629|       |
 3630|   750k|	top->len++;
 3631|       |
 3632|   750k|	return true;
 3633|      0|e0:
 3634|       |	return false;
 3635|   750k|}
ucl_object_toint_safe:
 3943|    790|{
 3944|    790|	if (obj == NULL || target == NULL) {
  ------------------
  |  Branch (3944:6): [True: 0, False: 790]
  |  Branch (3944:21): [True: 0, False: 790]
  ------------------
 3945|      0|		return false;
 3946|      0|	}
 3947|    790|	switch (obj->type) {
 3948|    790|	case UCL_INT:
  ------------------
  |  Branch (3948:2): [True: 790, False: 0]
  ------------------
 3949|    790|		*target = obj->value.iv;
 3950|    790|		break;
 3951|      0|	case UCL_FLOAT:
  ------------------
  |  Branch (3951:2): [True: 0, False: 790]
  ------------------
 3952|      0|	case UCL_TIME:
  ------------------
  |  Branch (3952:2): [True: 0, False: 790]
  ------------------
 3953|       |		/* The cast is undefined for NaN and out of range values */
 3954|      0|		if (isnan(obj->value.dv)) {
  ------------------
  |  Branch (3954:7): [True: 0, False: 0]
  ------------------
 3955|      0|			return false;
 3956|      0|		}
 3957|      0|		else if (obj->value.dv >= 9223372036854775808.0) {
  ------------------
  |  Branch (3957:12): [True: 0, False: 0]
  ------------------
 3958|      0|			*target = INT64_MAX;
 3959|      0|		}
 3960|      0|		else if (obj->value.dv < -9223372036854775808.0) {
  ------------------
  |  Branch (3960:12): [True: 0, False: 0]
  ------------------
 3961|      0|			*target = INT64_MIN;
 3962|      0|		}
 3963|      0|		else {
 3964|      0|			*target = obj->value.dv; /* Losing of decimal points */
 3965|      0|		}
 3966|      0|		break;
 3967|      0|	default:
  ------------------
  |  Branch (3967:2): [True: 0, False: 790]
  ------------------
 3968|      0|		return false;
 3969|    790|	}
 3970|       |
 3971|    790|	return true;
 3972|    790|}
ucl_object_toint:
 3976|    790|{
 3977|    790|	int64_t result = 0;
 3978|       |
 3979|    790|	ucl_object_toint_safe(obj, &result);
 3980|    790|	return result;
 3981|    790|}
ucl_object_toboolean_safe:
 3984|  8.90k|{
 3985|  8.90k|	if (obj == NULL || target == NULL) {
  ------------------
  |  Branch (3985:6): [True: 0, False: 8.90k]
  |  Branch (3985:21): [True: 0, False: 8.90k]
  ------------------
 3986|      0|		return false;
 3987|      0|	}
 3988|  8.90k|	switch (obj->type) {
 3989|  8.90k|	case UCL_BOOLEAN:
  ------------------
  |  Branch (3989:2): [True: 8.90k, False: 0]
  ------------------
 3990|  8.90k|		*target = (obj->value.iv == true);
 3991|  8.90k|		break;
 3992|      0|	default:
  ------------------
  |  Branch (3992:2): [True: 0, False: 8.90k]
  ------------------
 3993|      0|		return false;
 3994|  8.90k|	}
 3995|       |
 3996|  8.90k|	return true;
 3997|  8.90k|}
ucl_object_toboolean:
 4000|  8.90k|{
 4001|  8.90k|	bool result = false;
 4002|       |
 4003|  8.90k|	ucl_object_toboolean_safe(obj, &result);
 4004|  8.90k|	return result;
 4005|  8.90k|}
ucl_object_tostring_safe:
 4008|  87.8k|{
 4009|  87.8k|	if (obj == NULL || target == NULL) {
  ------------------
  |  Branch (4009:6): [True: 0, False: 87.8k]
  |  Branch (4009:21): [True: 0, False: 87.8k]
  ------------------
 4010|      0|		return false;
 4011|      0|	}
 4012|       |
 4013|  87.8k|	switch (obj->type) {
 4014|  87.8k|	case UCL_STRING:
  ------------------
  |  Branch (4014:2): [True: 87.8k, False: 0]
  ------------------
 4015|  87.8k|		if (!(obj->flags & UCL_OBJECT_BINARY)) {
  ------------------
  |  Branch (4015:7): [True: 87.8k, False: 0]
  ------------------
 4016|  87.8k|			*target = ucl_copy_value_trash(obj);
 4017|  87.8k|		}
 4018|  87.8k|		break;
 4019|      0|	default:
  ------------------
  |  Branch (4019:2): [True: 0, False: 87.8k]
  ------------------
 4020|      0|		return false;
 4021|  87.8k|	}
 4022|       |
 4023|  87.8k|	return true;
 4024|  87.8k|}
ucl_object_tostring:
 4028|  87.8k|{
 4029|  87.8k|	const char *result = NULL;
 4030|       |
 4031|  87.8k|	ucl_object_tostring_safe(obj, &result);
 4032|  87.8k|	return result;
 4033|  87.8k|}
ucl_object_key:
 4076|  5.26k|{
 4077|  5.26k|	return ucl_copy_key_trash(obj);
 4078|  5.26k|}
ucl_object_ref:
 4092|  38.9k|{
 4093|  38.9k|	ucl_object_t *res = NULL;
 4094|       |
 4095|  38.9k|	if (obj != NULL) {
  ------------------
  |  Branch (4095:6): [True: 38.9k, False: 0]
  ------------------
 4096|  38.9k|		if (obj->flags & UCL_OBJECT_EPHEMERAL) {
  ------------------
  |  Branch (4096:7): [True: 0, False: 38.9k]
  ------------------
 4097|       |			/*
 4098|       |			 * Use deep copy for ephemeral objects, note that its refcount
 4099|       |			 * is NOT increased, since ephemeral objects does not need refcount
 4100|       |			 * at all
 4101|       |			 */
 4102|      0|			res = ucl_object_copy(obj);
 4103|      0|		}
 4104|  38.9k|		else {
 4105|  38.9k|			res = __DECONST(ucl_object_t *, obj);
  ------------------
  |  |  135|  38.9k|#define __DECONST(type, var) ((type) (uintptr_t) (const void *) (var))
  ------------------
 4106|       |#ifdef HAVE_ATOMIC_BUILTINS
 4107|       |			(void) __sync_add_and_fetch(&res->ref, 1);
 4108|       |#else
 4109|  38.9k|			res->ref++;
 4110|  38.9k|#endif
 4111|  38.9k|		}
 4112|  38.9k|	}
 4113|  38.9k|	return res;
 4114|  38.9k|}
ucl_object_copy:
 4238|  1.14k|{
 4239|       |	return ucl_object_copy_internal(other, true);
 4240|  1.14k|}
ucl_object_unref:
 4243|   136k|{
 4244|   136k|	if (obj != NULL) {
  ------------------
  |  Branch (4244:6): [True: 136k, False: 0]
  ------------------
 4245|       |#ifdef HAVE_ATOMIC_BUILTINS
 4246|       |		unsigned int rc = __sync_sub_and_fetch(&obj->ref, 1);
 4247|       |		if (rc == 0) {
 4248|       |#else
 4249|   136k|		if (--obj->ref == 0) {
  ------------------
  |  Branch (4249:7): [True: 97.8k, False: 38.9k]
  ------------------
 4250|  97.8k|#endif
 4251|       |			ucl_object_free_internal(obj, true);
 4252|  97.8k|		}
 4253|   136k|	}
 4254|   136k|}
ucl_object_get_priority:
 4391|   288k|{
 4392|   288k|	if (obj == NULL) {
  ------------------
  |  Branch (4392:6): [True: 0, False: 288k]
  ------------------
 4393|      0|		return 0;
 4394|      0|	}
 4395|       |
 4396|   288k|	return (obj->flags >> ((sizeof(obj->flags) * NBBY) - PRIOBITS));
  ------------------
  |  | 4387|   288k|#define PRIOBITS 4
  ------------------
 4397|   288k|}
ucl_object_set_priority:
 4401|  1.03M|{
 4402|  1.03M|	if (obj != NULL) {
  ------------------
  |  Branch (4402:6): [True: 1.03M, False: 0]
  ------------------
 4403|  1.03M|		priority &= (0x1 << PRIOBITS) - 1;
  ------------------
  |  | 4387|  1.03M|#define PRIOBITS 4
  ------------------
 4404|  1.03M|		priority <<= ((sizeof(obj->flags) * NBBY) - PRIOBITS);
  ------------------
  |  | 4387|  1.03M|#define PRIOBITS 4
  ------------------
 4405|  1.03M|		priority |= obj->flags & ((1 << ((sizeof(obj->flags) * NBBY) -
 4406|  1.03M|										 PRIOBITS)) -
  ------------------
  |  | 4387|  1.03M|#define PRIOBITS 4
  ------------------
 4407|  1.03M|								  1);
 4408|  1.03M|		obj->flags = priority;
 4409|  1.03M|	}
 4410|  1.03M|}
ucl_object_type_to_string:
 4447|    109|{
 4448|    109|	const char *res = "unknown";
 4449|       |
 4450|    109|	switch (type) {
  ------------------
  |  Branch (4450:10): [True: 109, False: 0]
  ------------------
 4451|      0|	case UCL_OBJECT:
  ------------------
  |  Branch (4451:2): [True: 0, False: 109]
  ------------------
 4452|      0|		res = "object";
 4453|      0|		break;
 4454|     91|	case UCL_ARRAY:
  ------------------
  |  Branch (4454:2): [True: 91, False: 18]
  ------------------
 4455|     91|		res = "array";
 4456|     91|		break;
 4457|      0|	case UCL_INT:
  ------------------
  |  Branch (4457:2): [True: 0, False: 109]
  ------------------
 4458|      0|		res = "integer";
 4459|      0|		break;
 4460|      0|	case UCL_FLOAT:
  ------------------
  |  Branch (4460:2): [True: 0, False: 109]
  ------------------
 4461|      0|	case UCL_TIME:
  ------------------
  |  Branch (4461:2): [True: 0, False: 109]
  ------------------
 4462|      0|		res = "number";
 4463|      0|		break;
 4464|     17|	case UCL_STRING:
  ------------------
  |  Branch (4464:2): [True: 17, False: 92]
  ------------------
 4465|     17|		res = "string";
 4466|     17|		break;
 4467|      1|	case UCL_BOOLEAN:
  ------------------
  |  Branch (4467:2): [True: 1, False: 108]
  ------------------
 4468|      1|		res = "boolean";
 4469|      1|		break;
 4470|      0|	case UCL_USERDATA:
  ------------------
  |  Branch (4470:2): [True: 0, False: 109]
  ------------------
 4471|      0|		res = "userdata";
 4472|      0|		break;
 4473|      0|	case UCL_NULL:
  ------------------
  |  Branch (4473:2): [True: 0, False: 109]
  ------------------
 4474|      0|		res = "null";
 4475|      0|		break;
 4476|    109|	}
 4477|       |
 4478|    109|	return res;
 4479|    109|}
ucl_util.c:ucl_object_free_internal:
  298|  97.8k|{
  299|  97.8k|	struct ucl_dtor_worklist wl = {NULL};
  300|  97.8k|	ucl_object_t *cur, *sub, *tmp;
  301|       |
  302|  97.8k|	if (obj == NULL) {
  ------------------
  |  Branch (302:6): [True: 0, False: 97.8k]
  ------------------
  303|      0|		return;
  304|      0|	}
  305|       |
  306|       |	/*
  307|       |	 * The head is dead already, so it goes straight onto the worklist; its
  308|       |	 * siblings still hold a reference each and have to be unreffed properly.
  309|       |	 * Save the link first, pushing overwrites it.
  310|       |	 */
  311|  97.8k|	tmp = obj->next;
  312|  97.8k|	ucl_dtor_worklist_push(&wl, obj);
  313|       |
  314|  97.8k|	if (allow_rec) {
  ------------------
  |  Branch (314:6): [True: 97.8k, False: 0]
  ------------------
  315|  97.8k|		ucl_dtor_worklist_unref_chain(&wl, tmp);
  316|  97.8k|	}
  317|       |
  318|  1.25M|	while ((cur = ucl_dtor_worklist_pop(&wl)) != NULL) {
  ------------------
  |  Branch (318:9): [True: 1.15M, False: 97.8k]
  ------------------
  319|  1.15M|		if (cur->type == UCL_ARRAY) {
  ------------------
  |  Branch (319:7): [True: 140k, False: 1.01M]
  ------------------
  320|   140k|			UCL_ARRAY_GET(vec, cur);
  ------------------
  |  |   51|   140k|#define UCL_ARRAY_GET(ar, obj) ucl_array_t *ar = \
  |  |   52|   140k|								   (ucl_array_t *) ((obj) != NULL ? (obj)->value.av : NULL)
  |  |  ------------------
  |  |  |  Branch (52:29): [True: 140k, False: 0]
  |  |  ------------------
  ------------------
  321|       |
  322|   140k|			if (vec != NULL) {
  ------------------
  |  Branch (322:8): [True: 132k, False: 8.26k]
  ------------------
  323|   132k|				unsigned int i;
  324|       |
  325|   882k|				for (i = 0; i < vec->n; i++) {
  ------------------
  |  Branch (325:17): [True: 750k, False: 132k]
  ------------------
  326|   750k|					sub = kv_A(*vec, i);
  ------------------
  |  |   60|   750k|#define kv_A(v, i) ((v).a[(i)])
  ------------------
  327|   750k|					ucl_dtor_worklist_unref_chain(&wl, sub);
  328|   750k|				}
  329|       |
  330|   132k|				kv_destroy(*vec);
  ------------------
  |  |   59|   132k|#define kv_destroy(v) free((v).a)
  ------------------
  331|   132k|				UCL_FREE(sizeof(*vec), vec);
  ------------------
  |  |   74|   132k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  332|   132k|			}
  333|       |
  334|   140k|			cur->value.av = NULL;
  335|   140k|		}
  336|  1.01M|		else if (cur->type == UCL_OBJECT) {
  ------------------
  |  Branch (336:12): [True: 118k, False: 897k]
  ------------------
  337|   118k|			if (cur->value.ov != NULL) {
  ------------------
  |  Branch (337:8): [True: 117k, False: 853]
  ------------------
  338|   117k|				ucl_hash_destroy(cur->value.ov, ucl_dtor_worklist_unref, &wl);
  339|   117k|			}
  340|       |
  341|   118k|			cur->value.ov = NULL;
  342|   118k|		}
  343|       |
  344|  1.15M|		ucl_object_dtor_free(cur);
  345|  1.15M|	}
  346|  97.8k|}
ucl_util.c:ucl_dtor_worklist_push:
  234|  1.15M|{
  235|  1.15M|	obj->next = wl->head;
  236|  1.15M|	wl->head = obj;
  237|  1.15M|}
ucl_util.c:ucl_dtor_worklist_unref_chain:
  282|   848k|{
  283|   848k|	ucl_object_t *tmp;
  284|       |
  285|  1.60M|	while (obj != NULL) {
  ------------------
  |  Branch (285:9): [True: 757k, False: 848k]
  ------------------
  286|   757k|		tmp = obj->next;
  287|   757k|		ucl_dtor_worklist_unref(obj, wl);
  288|   757k|		obj = tmp;
  289|   757k|	}
  290|   848k|}
ucl_util.c:ucl_dtor_worklist_pop:
  241|  1.25M|{
  242|  1.25M|	ucl_object_t *obj = wl->head;
  243|       |
  244|  1.25M|	if (obj != NULL) {
  ------------------
  |  Branch (244:6): [True: 1.15M, False: 97.8k]
  ------------------
  245|  1.15M|		wl->head = obj->next;
  246|  1.15M|		obj->next = NULL;
  247|  1.15M|	}
  248|       |
  249|  1.25M|	return obj;
  250|  1.25M|}
ucl_util.c:ucl_dtor_worklist_unref:
  258|  1.05M|{
  259|  1.05M|	ucl_object_t *obj = (ucl_object_t *) ptr;
  260|  1.05M|	struct ucl_dtor_worklist *wl = (struct ucl_dtor_worklist *) ud;
  261|       |
  262|  1.05M|	if (obj == NULL) {
  ------------------
  |  Branch (262:6): [True: 0, False: 1.05M]
  ------------------
  263|      0|		return;
  264|      0|	}
  265|       |
  266|       |#ifdef HAVE_ATOMIC_BUILTINS
  267|       |	if (__sync_sub_and_fetch(&obj->ref, 1) == 0) {
  268|       |#else
  269|  1.05M|	if (--obj->ref == 0) {
  ------------------
  |  Branch (269:6): [True: 1.05M, False: 0]
  ------------------
  270|  1.05M|#endif
  271|  1.05M|		ucl_dtor_worklist_push(wl, obj);
  272|  1.05M|	}
  273|  1.05M|}
ucl_util.c:ucl_object_dtor_free:
  193|  1.15M|{
  194|  1.15M|	if (obj->trash_stack[UCL_TRASH_KEY] != NULL) {
  ------------------
  |  |  153|  1.15M|#define UCL_TRASH_KEY 0
  ------------------
  |  Branch (194:6): [True: 325k, False: 830k]
  ------------------
  195|   325k|		UCL_FREE(obj->hh.keylen, obj->trash_stack[UCL_TRASH_KEY]);
  ------------------
  |  |   74|   325k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  196|   325k|	}
  197|  1.15M|	if (obj->trash_stack[UCL_TRASH_VALUE] != NULL) {
  ------------------
  |  |  154|  1.15M|#define UCL_TRASH_VALUE 1
  ------------------
  |  Branch (197:6): [True: 854k, False: 302k]
  ------------------
  198|   854k|		UCL_FREE(obj->len, obj->trash_stack[UCL_TRASH_VALUE]);
  ------------------
  |  |   74|   854k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  199|   854k|	}
  200|       |	/* Do not free ephemeral objects */
  201|  1.15M|	if ((obj->flags & UCL_OBJECT_EPHEMERAL) == 0) {
  ------------------
  |  Branch (201:6): [True: 1.15M, False: 0]
  ------------------
  202|  1.15M|		if (obj->type != UCL_USERDATA) {
  ------------------
  |  Branch (202:7): [True: 1.15M, False: 0]
  ------------------
  203|  1.15M|			UCL_FREE(sizeof(ucl_object_t), obj);
  ------------------
  |  |   74|  1.15M|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  204|  1.15M|		}
  205|      0|		else {
  206|      0|			struct ucl_object_userdata *ud = (struct ucl_object_userdata *) obj;
  207|      0|			if (ud->dtor) {
  ------------------
  |  Branch (207:8): [True: 0, False: 0]
  ------------------
  208|      0|				ud->dtor(obj->value.ud);
  209|      0|			}
  210|      0|			UCL_FREE(sizeof(*ud), obj);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
  211|      0|		}
  212|  1.15M|	}
  213|  1.15M|}
ucl_util.c:ucl_include_common:
 1798|  16.5k|{
 1799|  16.5k|	bool allow_url = false, search = false;
 1800|  16.5k|	const char *duplicate;
 1801|  16.5k|	const ucl_object_t *param;
 1802|  16.5k|	ucl_object_iter_t it = NULL, ip = NULL;
 1803|  16.5k|	int args_err = 0;
 1804|  16.5k|	char ipath[PATH_MAX];
 1805|  16.5k|	struct ucl_include_params params;
 1806|       |
 1807|       |	/* Default values */
 1808|  16.5k|	params.soft_fail = default_try;
 1809|  16.5k|	params.allow_glob = false;
 1810|  16.5k|	params.parse_failed = false;
 1811|  16.5k|	params.check_signature = default_sign;
 1812|  16.5k|	params.use_prefix = false;
 1813|  16.5k|	params.target = "object";
 1814|  16.5k|	params.prefix = NULL;
 1815|  16.5k|	params.priority = 0;
 1816|  16.5k|	params.parse_type = UCL_PARSE_UCL;
 1817|  16.5k|	params.strat = UCL_DUPLICATE_APPEND;
 1818|  16.5k|	params.must_exist = !default_try;
 1819|       |
 1820|  16.5k|	if (parser->include_trace_func) {
  ------------------
  |  Branch (1820:6): [True: 0, False: 16.5k]
  ------------------
 1821|      0|		const ucl_object_t *parent = NULL;
 1822|       |
 1823|      0|		if (parser->stack) {
  ------------------
  |  Branch (1823:7): [True: 0, False: 0]
  ------------------
 1824|      0|			parent = parser->stack->obj;
 1825|      0|		}
 1826|       |
 1827|      0|		parser->include_trace_func(parser, parent, args,
 1828|      0|								   data, len, parser->include_trace_ud);
 1829|      0|	}
 1830|       |
 1831|       |	/* Process arguments */
 1832|  16.5k|	if (args != NULL && args->type == UCL_OBJECT) {
  ------------------
  |  Branch (1832:6): [True: 9.57k, False: 6.93k]
  |  Branch (1832:22): [True: 9.50k, False: 72]
  ------------------
 1833|  41.0k|		while ((param = ucl_object_iterate_with_error(args, &it, true,
  ------------------
  |  Branch (1833:10): [True: 31.5k, False: 9.50k]
  ------------------
 1834|  41.0k|														  &args_err)) != NULL) {
 1835|  31.5k|			if (param->type == UCL_BOOLEAN) {
  ------------------
  |  Branch (1835:8): [True: 8.23k, False: 23.3k]
  ------------------
 1836|  8.23k|				if (strncmp(param->key, "try", param->keylen) == 0) {
  ------------------
  |  Branch (1836:9): [True: 2.46k, False: 5.77k]
  ------------------
 1837|  2.46k|					params.must_exist = !ucl_object_toboolean(param);
 1838|  2.46k|				}
 1839|  5.77k|				else if (strncmp(param->key, "sign", param->keylen) == 0) {
  ------------------
  |  Branch (1839:14): [True: 247, False: 5.52k]
  ------------------
 1840|    247|					params.check_signature = ucl_object_toboolean(param);
 1841|    247|				}
 1842|  5.52k|				else if (strncmp(param->key, "glob", param->keylen) == 0) {
  ------------------
  |  Branch (1842:14): [True: 1.03k, False: 4.49k]
  ------------------
 1843|  1.03k|					params.allow_glob = ucl_object_toboolean(param);
 1844|  1.03k|				}
 1845|  4.49k|				else if (strncmp(param->key, "url", param->keylen) == 0) {
  ------------------
  |  Branch (1845:14): [True: 1.66k, False: 2.82k]
  ------------------
 1846|  1.66k|					allow_url = ucl_object_toboolean(param);
 1847|  1.66k|				}
 1848|  2.82k|				else if (strncmp(param->key, "prefix", param->keylen) == 0) {
  ------------------
  |  Branch (1848:14): [True: 664, False: 2.16k]
  ------------------
 1849|    664|					params.use_prefix = ucl_object_toboolean(param);
 1850|    664|				}
 1851|  8.23k|			}
 1852|  23.3k|			else if (param->type == UCL_STRING) {
  ------------------
  |  Branch (1852:13): [True: 16.9k, False: 6.42k]
  ------------------
 1853|  16.9k|				if (strncmp(param->key, "key", param->keylen) == 0) {
  ------------------
  |  Branch (1853:9): [True: 2.24k, False: 14.6k]
  ------------------
 1854|  2.24k|					params.prefix = ucl_object_tostring(param);
 1855|  2.24k|				}
 1856|  14.6k|				else if (strncmp(param->key, "target", param->keylen) == 0) {
  ------------------
  |  Branch (1856:14): [True: 1.07k, False: 13.6k]
  ------------------
 1857|  1.07k|					params.target = ucl_object_tostring(param);
 1858|  1.07k|				}
 1859|  13.6k|				else if (strncmp(param->key, "duplicate", param->keylen) == 0) {
  ------------------
  |  Branch (1859:14): [True: 3.19k, False: 10.4k]
  ------------------
 1860|  3.19k|					duplicate = ucl_object_tostring(param);
 1861|       |
 1862|  3.19k|					if (strcmp(duplicate, "append") == 0) {
  ------------------
  |  Branch (1862:10): [True: 310, False: 2.88k]
  ------------------
 1863|    310|						params.strat = UCL_DUPLICATE_APPEND;
 1864|    310|					}
 1865|  2.88k|					else if (strcmp(duplicate, "merge") == 0) {
  ------------------
  |  Branch (1865:15): [True: 334, False: 2.54k]
  ------------------
 1866|    334|						params.strat = UCL_DUPLICATE_MERGE;
 1867|    334|					}
 1868|  2.54k|					else if (strcmp(duplicate, "rewrite") == 0) {
  ------------------
  |  Branch (1868:15): [True: 716, False: 1.83k]
  ------------------
 1869|    716|						params.strat = UCL_DUPLICATE_REWRITE;
 1870|    716|					}
 1871|  1.83k|					else if (strcmp(duplicate, "error") == 0) {
  ------------------
  |  Branch (1871:15): [True: 455, False: 1.37k]
  ------------------
 1872|    455|						params.strat = UCL_DUPLICATE_ERROR;
 1873|    455|					}
 1874|  3.19k|				}
 1875|  16.9k|			}
 1876|  6.42k|			else if (param->type == UCL_ARRAY) {
  ------------------
  |  Branch (1876:13): [True: 4.49k, False: 1.93k]
  ------------------
 1877|  4.49k|				if (strncmp(param->key, "path", param->keylen) == 0) {
  ------------------
  |  Branch (1877:9): [True: 1.14k, False: 3.34k]
  ------------------
 1878|  1.14k|					ucl_set_include_path(parser, __DECONST(ucl_object_t *, param));
  ------------------
  |  |  135|  1.14k|#define __DECONST(type, var) ((type) (uintptr_t) (const void *) (var))
  ------------------
 1879|  1.14k|				}
 1880|  4.49k|			}
 1881|  1.93k|			else if (param->type == UCL_INT) {
  ------------------
  |  Branch (1881:13): [True: 1.37k, False: 559]
  ------------------
 1882|  1.37k|				if (strncmp(param->key, "priority", param->keylen) == 0) {
  ------------------
  |  Branch (1882:9): [True: 230, False: 1.14k]
  ------------------
 1883|    230|					params.priority = ucl_object_toint(param);
 1884|    230|				}
 1885|  1.37k|			}
 1886|  31.5k|		}
 1887|       |
 1888|  9.50k|		if (args_err == ENOMEM) {
  ------------------
  |  Branch (1888:7): [True: 0, False: 9.50k]
  ------------------
 1889|       |			/* The arguments must not be dropped silently */
 1890|      0|			ucl_create_err(&parser->err, "cannot allocate memory for macro arguments");
 1891|      0|			return false;
 1892|      0|		}
 1893|  9.50k|	}
 1894|       |
 1895|  16.5k|	if (parser->includepaths == NULL) {
  ------------------
  |  Branch (1895:6): [True: 14.6k, False: 1.88k]
  ------------------
 1896|  14.6k|		if (allow_url && ucl_strnstr(data, "://", len) != NULL) {
  ------------------
  |  Branch (1896:7): [True: 1.19k, False: 13.4k]
  |  Branch (1896:20): [True: 723, False: 468]
  ------------------
 1897|       |			/* Globbing is not used for URL's */
 1898|    723|			return ucl_include_url(data, len, parser, &params);
 1899|    723|		}
 1900|  13.9k|		else if (data != NULL) {
  ------------------
  |  Branch (1900:12): [True: 13.9k, False: 0]
  ------------------
 1901|       |			/* Try to load a file */
 1902|  13.9k|			if (ucl_include_file(data, len, parser, &params, args)) {
  ------------------
  |  Branch (1902:8): [True: 10.3k, False: 3.57k]
  ------------------
 1903|  10.3k|				return true;
 1904|  10.3k|			}
 1905|       |
 1906|       |			/*
 1907|       |			 * .try_include of a file that cannot be included goes on with
 1908|       |			 * the parse: only a file that has been read and does not parse
 1909|       |			 * stops it
 1910|       |			 */
 1911|  3.57k|			return params.soft_fail && !params.parse_failed &&
  ------------------
  |  Branch (1911:11): [True: 434, False: 3.13k]
  |  Branch (1911:31): [True: 432, False: 2]
  ------------------
 1912|    432|				   parser->err == NULL;
  ------------------
  |  Branch (1912:8): [True: 431, False: 1]
  ------------------
 1913|  13.9k|		}
 1914|  14.6k|	}
 1915|  1.88k|	else {
 1916|  1.88k|		if (allow_url && ucl_strnstr(data, "://", len) != NULL) {
  ------------------
  |  Branch (1916:7): [True: 462, False: 1.42k]
  |  Branch (1916:20): [True: 239, False: 223]
  ------------------
 1917|       |			/* Globbing is not used for URL's */
 1918|    239|			return ucl_include_url(data, len, parser, &params);
 1919|    239|		}
 1920|       |
 1921|  1.64k|		ip = ucl_object_iterate_new(parser->includepaths);
 1922|  77.5k|		while ((param = ucl_object_iterate_safe(ip, true)) != NULL) {
  ------------------
  |  Branch (1922:10): [True: 76.8k, False: 764]
  ------------------
 1923|  76.8k|			if (ucl_object_type(param) == UCL_STRING) {
  ------------------
  |  Branch (1923:8): [True: 75.3k, False: 1.41k]
  ------------------
 1924|  75.3k|				snprintf(ipath, sizeof(ipath), "%s/%.*s", ucl_object_tostring(param),
 1925|  75.3k|						 (int) len, data);
 1926|  75.3k|				if ((search = ucl_include_file(ipath, strlen(ipath),
  ------------------
  |  Branch (1926:9): [True: 42.8k, False: 32.5k]
  ------------------
 1927|  75.3k|											   parser, &params, args))) {
 1928|  42.8k|					if (!params.allow_glob) {
  ------------------
  |  Branch (1928:10): [True: 803, False: 42.0k]
  ------------------
 1929|    803|						break;
 1930|    803|					}
 1931|  42.8k|				}
 1932|  32.5k|				else if (params.parse_failed) {
  ------------------
  |  Branch (1932:14): [True: 76, False: 32.4k]
  ------------------
 1933|       |					/* The file is found, so the search ends with its error */
 1934|     76|					break;
 1935|     76|				}
 1936|  75.3k|			}
 1937|  76.8k|		}
 1938|  1.64k|		ucl_object_iterate_free(ip);
 1939|  1.64k|		if (search == true) {
  ------------------
  |  Branch (1939:7): [True: 984, False: 659]
  ------------------
 1940|    984|			return true;
 1941|    984|		}
 1942|    659|		else {
 1943|    659|			ucl_create_err(&parser->err,
 1944|    659|						   "cannot find file: %.*s in search path",
 1945|    659|						   (int) len, data);
 1946|    659|			return false;
 1947|    659|		}
 1948|  1.64k|	}
 1949|       |
 1950|      0|	return false;
 1951|  16.5k|}
ucl_util.c:ucl_include_url:
 1136|    962|{
 1137|       |
 1138|    962|	bool res;
 1139|    962|	unsigned char *buf = NULL;
 1140|    962|	size_t buflen = 0;
 1141|    962|	struct ucl_chunk *chunk;
 1142|    962|	char urlbuf[PATH_MAX];
 1143|    962|	int prev_state;
 1144|       |
 1145|    962|	snprintf(urlbuf, sizeof(urlbuf), "%.*s", (int) len, data);
 1146|       |
 1147|    962|	if (!ucl_fetch_url(urlbuf, &buf, &buflen, &parser->err, params->must_exist)) {
  ------------------
  |  Branch (1147:6): [True: 962, False: 0]
  ------------------
 1148|    962|		if (!params->must_exist) {
  ------------------
  |  Branch (1148:7): [True: 445, False: 517]
  ------------------
 1149|    445|			ucl_parser_clear_error(parser);
 1150|    445|		}
 1151|    962|		return !params->must_exist;
 1152|    962|	}
 1153|       |
 1154|      0|	if (params->check_signature) {
  ------------------
  |  Branch (1154:6): [True: 0, False: 0]
  ------------------
 1155|       |#if (defined(HAVE_OPENSSL) && OPENSSL_VERSION_NUMBER >= 0x10000000L)
 1156|       |		unsigned char *sigbuf = NULL;
 1157|       |		size_t siglen = 0;
 1158|       |		/* We need to check signature first */
 1159|       |		snprintf(urlbuf, sizeof(urlbuf), "%.*s.sig", (int) len, data);
 1160|       |		if (!ucl_fetch_url(urlbuf, &sigbuf, &siglen, &parser->err, true)) {
 1161|       |			UCL_FREE(buflen, buf);
 1162|       |			return false;
 1163|       |		}
 1164|       |		if (!ucl_sig_check(buf, buflen, sigbuf, siglen, parser)) {
 1165|       |			ucl_create_err(&parser->err, "cannot verify url %s: %s",
 1166|       |						   urlbuf,
 1167|       |						   ERR_error_string(ERR_get_error(), NULL));
 1168|       |			if (siglen > 0) {
 1169|       |				UCL_FREE(siglen, sigbuf);
 1170|       |			}
 1171|       |			UCL_FREE(buflen, buf);
 1172|       |			return false;
 1173|       |		}
 1174|       |		if (siglen > 0) {
 1175|       |			UCL_FREE(siglen, sigbuf);
 1176|       |		}
 1177|       |#else
 1178|      0|		ucl_create_err(&parser->err, "cannot verify url %.*s: "
 1179|      0|									 "libucl is built without signatures support",
 1180|      0|					   (int) len, data);
 1181|      0|		UCL_FREE(buflen, buf);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 1182|      0|		return false;
 1183|      0|#endif
 1184|      0|	}
 1185|       |
 1186|      0|	prev_state = parser->state;
 1187|      0|	parser->state = UCL_STATE_INIT;
 1188|       |
 1189|      0|	res = ucl_parser_add_chunk_full(parser, buf, buflen, params->priority,
 1190|      0|									params->strat, params->parse_type);
 1191|      0|	if (res == true) {
  ------------------
  |  Branch (1191:6): [True: 0, False: 0]
  ------------------
 1192|       |		/* Remove chunk from the stack */
 1193|      0|		chunk = parser->chunks;
 1194|      0|		if (chunk != NULL) {
  ------------------
  |  Branch (1194:7): [True: 0, False: 0]
  ------------------
 1195|      0|			parser->chunks = chunk->next;
 1196|      0|			ucl_chunk_free(chunk);
 1197|      0|			parser->recursion--;
 1198|      0|		}
 1199|      0|	}
 1200|       |
 1201|      0|	parser->state = prev_state;
 1202|      0|	UCL_FREE(buflen, buf);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 1203|       |
 1204|      0|	return res;
 1205|      0|}
ucl_util.c:ucl_include_file:
 1703|  89.2k|{
 1704|  89.2k|	const unsigned char *p = data, *end = data + len;
 1705|  89.2k|	bool need_glob = false;
 1706|  89.2k|	int cnt = 0;
 1707|  89.2k|	char glob_pattern[PATH_MAX];
 1708|  89.2k|	size_t i;
 1709|       |
 1710|  89.2k|#ifndef _WIN32
 1711|  89.2k|	if (!params->allow_glob) {
  ------------------
  |  Branch (1711:6): [True: 29.2k, False: 60.0k]
  ------------------
 1712|  29.2k|		return ucl_include_file_single(data, len, parser, params);
 1713|  29.2k|	}
 1714|  60.0k|	else {
 1715|       |		/* Check for special symbols in a filename */
 1716|   680k|		while (p != end) {
  ------------------
  |  Branch (1716:10): [True: 677k, False: 2.58k]
  ------------------
 1717|   677k|			if (*p == '*' || *p == '?') {
  ------------------
  |  Branch (1717:8): [True: 55.2k, False: 622k]
  |  Branch (1717:21): [True: 2.16k, False: 620k]
  ------------------
 1718|  57.4k|				need_glob = true;
 1719|  57.4k|				break;
 1720|  57.4k|			}
 1721|   620k|			p++;
 1722|   620k|		}
 1723|  60.0k|		if (need_glob) {
  ------------------
  |  Branch (1723:7): [True: 57.4k, False: 2.58k]
  ------------------
 1724|  57.4k|			glob_t globbuf;
 1725|  57.4k|			memset(&globbuf, 0, sizeof(globbuf));
 1726|  57.4k|			ucl_strlcpy(glob_pattern, (const char *) data,
 1727|  57.4k|						(len + 1 < sizeof(glob_pattern) ? len + 1 : sizeof(glob_pattern)));
  ------------------
  |  Branch (1727:8): [True: 57.1k, False: 300]
  ------------------
 1728|  57.4k|			if (glob(glob_pattern, 0, NULL, &globbuf) != 0) {
  ------------------
  |  Branch (1728:8): [True: 51.3k, False: 6.07k]
  ------------------
 1729|  51.3k|				return (!params->must_exist || false);
  ------------------
  |  Branch (1729:13): [True: 39.6k, False: 11.7k]
  |  Branch (1729:36): [Folded, False: 11.7k]
  ------------------
 1730|  51.3k|			}
 1731|  16.8k|			for (i = 0; i < globbuf.gl_pathc; i++) {
  ------------------
  |  Branch (1731:16): [True: 16.4k, False: 379]
  ------------------
 1732|       |
 1733|  16.4k|				if (parser->include_trace_func) {
  ------------------
  |  Branch (1733:9): [True: 0, False: 16.4k]
  ------------------
 1734|      0|					const ucl_object_t *parent = NULL;
 1735|       |
 1736|      0|					if (parser->stack) {
  ------------------
  |  Branch (1736:10): [True: 0, False: 0]
  ------------------
 1737|      0|						parent = parser->stack->obj;
 1738|      0|					}
 1739|       |
 1740|      0|					parser->include_trace_func(parser, parent, NULL,
 1741|      0|											   globbuf.gl_pathv[i],
 1742|      0|											   strlen(globbuf.gl_pathv[i]),
 1743|      0|											   parser->include_trace_ud);
 1744|      0|				}
 1745|       |
 1746|  16.4k|				if (!ucl_include_file_single((unsigned char *) globbuf.gl_pathv[i],
  ------------------
  |  Branch (1746:9): [True: 5.73k, False: 10.6k]
  ------------------
 1747|  16.4k|											 strlen(globbuf.gl_pathv[i]), parser, params)) {
 1748|  5.73k|					if (params->soft_fail && !params->parse_failed) {
  ------------------
  |  Branch (1748:10): [True: 43, False: 5.68k]
  |  Branch (1748:31): [True: 33, False: 10]
  ------------------
 1749|       |						/*
 1750|       |						 * Skip a file that cannot be included, but not one
 1751|       |						 * that fails to parse, as for .try_include of that
 1752|       |						 * file alone: the parse cannot go on from where the
 1753|       |						 * file has left it
 1754|       |						 */
 1755|     33|						continue;
 1756|     33|					}
 1757|  5.69k|					globfree(&globbuf);
 1758|  5.69k|					return false;
 1759|  5.73k|				}
 1760|  10.6k|				cnt++;
 1761|  10.6k|			}
 1762|    379|			globfree(&globbuf);
 1763|       |
 1764|    379|			if (cnt == 0 && params->must_exist) {
  ------------------
  |  Branch (1764:8): [True: 9, False: 370]
  |  Branch (1764:20): [True: 0, False: 9]
  ------------------
 1765|      0|				ucl_create_err(&parser->err, "cannot match any files for pattern %s",
 1766|      0|							   glob_pattern);
 1767|      0|				return false;
 1768|      0|			}
 1769|    379|		}
 1770|  2.58k|		else {
 1771|  2.58k|			return ucl_include_file_single(data, len, parser, params);
 1772|  2.58k|		}
 1773|  60.0k|	}
 1774|       |#else
 1775|       |	/* Win32 compilers do not support globbing. Therefore, for Win32,
 1776|       |	   treat allow_glob/need_glob as a NOOP and just return */
 1777|       |	return ucl_include_file_single(data, len, parser, params);
 1778|       |#endif
 1779|       |
 1780|    379|	return true;
 1781|  89.2k|}
ucl_util.c:ucl_include_file_single:
 1280|  48.2k|{
 1281|  48.2k|	bool res;
 1282|  48.2k|	struct ucl_chunk *chunk, *outer;
 1283|  48.2k|	unsigned char *buf = NULL;
 1284|  48.2k|	char *old_curfile, *ext;
 1285|  48.2k|	size_t buflen = 0;
 1286|  48.2k|	char filebuf[PATH_MAX], realbuf[PATH_MAX];
 1287|  48.2k|	int prev_state;
 1288|  48.2k|	struct ucl_variable *cur_var, *tmp_var, *old_curdir = NULL,
 1289|  48.2k|											*old_filename = NULL;
 1290|  48.2k|	ucl_object_t *nest_obj = NULL, *old_obj = NULL, *new_obj = NULL;
 1291|  48.2k|	ucl_hash_t *container = NULL, *nhash;
 1292|  48.2k|	struct ucl_stack *st = NULL, *cur_st;
 1293|       |
 1294|  48.2k|	if (parser->state == UCL_STATE_ERROR) {
  ------------------
  |  Branch (1294:6): [True: 0, False: 48.2k]
  ------------------
 1295|       |		/* Return immediately if we are in the error state... */
 1296|      0|		return false;
 1297|      0|	}
 1298|       |
 1299|  48.2k|	snprintf(filebuf, sizeof(filebuf), "%.*s", (int) len, data);
 1300|  48.2k|	if (ucl_realpath(filebuf, realbuf) == NULL) {
  ------------------
  |  |  186|  48.2k|#define ucl_realpath realpath
  ------------------
  |  Branch (1300:6): [True: 21.8k, False: 26.3k]
  ------------------
 1301|  21.8k|		if (params->soft_fail) {
  ------------------
  |  Branch (1301:7): [True: 914, False: 20.9k]
  ------------------
 1302|    914|			return false;
 1303|    914|		}
 1304|  20.9k|		if (!params->must_exist && errno != EPERM) {
  ------------------
  |  Branch (1304:7): [True: 3.71k, False: 17.2k]
  |  Branch (1304:30): [True: 3.71k, False: 0]
  ------------------
 1305|  3.71k|			return true;
 1306|  3.71k|		}
 1307|       |
 1308|  17.2k|		ucl_create_err(&parser->err, "cannot open file %s: %s",
 1309|  17.2k|					   filebuf,
 1310|  17.2k|					   strerror(errno));
 1311|  17.2k|		return false;
 1312|  20.9k|	}
 1313|       |
 1314|  26.3k|	if (parser->cur_file && strcmp(realbuf, parser->cur_file) == 0) {
  ------------------
  |  Branch (1314:6): [True: 0, False: 26.3k]
  |  Branch (1314:26): [True: 0, False: 0]
  ------------------
 1315|       |		/* We are likely including the file itself */
 1316|      0|		if (params->soft_fail) {
  ------------------
  |  Branch (1316:7): [True: 0, False: 0]
  ------------------
 1317|      0|			return false;
 1318|      0|		}
 1319|       |
 1320|      0|		ucl_create_err(&parser->err, "trying to include the file %s from itself",
 1321|      0|					   realbuf);
 1322|      0|		return false;
 1323|      0|	}
 1324|       |
 1325|  26.3k|	if (!ucl_fetch_file(realbuf, &buf, &buflen, &parser->err, params->must_exist)) {
  ------------------
  |  Branch (1325:6): [True: 11.3k, False: 15.0k]
  ------------------
 1326|  11.3k|		if (params->soft_fail) {
  ------------------
  |  Branch (1326:7): [True: 239, False: 11.0k]
  ------------------
 1327|    239|			return false;
 1328|    239|		}
 1329|       |
 1330|  11.0k|		if (params->must_exist || parser->err != NULL) {
  ------------------
  |  Branch (1330:7): [True: 5.22k, False: 5.84k]
  |  Branch (1330:29): [True: 2, False: 5.84k]
  ------------------
 1331|       |			/* The case of fatal errors */
 1332|  5.22k|			return false;
 1333|  5.22k|		}
 1334|       |
 1335|  5.84k|		ucl_parser_clear_error(parser);
 1336|       |
 1337|  5.84k|		return true;
 1338|  11.0k|	}
 1339|       |
 1340|  15.0k|	if (params->check_signature) {
  ------------------
  |  Branch (1340:6): [True: 372, False: 14.7k]
  ------------------
 1341|       |#if (defined(HAVE_OPENSSL) && OPENSSL_VERSION_NUMBER >= 0x10000000L)
 1342|       |		unsigned char *sigbuf = NULL;
 1343|       |		size_t siglen = 0;
 1344|       |		/* We need to check signature first */
 1345|       |		snprintf(filebuf, sizeof(filebuf), "%s.sig", realbuf);
 1346|       |		if (!ucl_fetch_file(filebuf, &sigbuf, &siglen, &parser->err, true)) {
 1347|       |			if (buf) {
 1348|       |				ucl_munmap(buf, buflen);
 1349|       |			}
 1350|       |
 1351|       |			return false;
 1352|       |		}
 1353|       |		if (!ucl_sig_check(buf, buflen, sigbuf, siglen, parser)) {
 1354|       |			ucl_create_err(&parser->err, "cannot verify file %s: %s",
 1355|       |						   filebuf,
 1356|       |						   ERR_error_string(ERR_get_error(), NULL));
 1357|       |			if (sigbuf) {
 1358|       |				ucl_munmap(sigbuf, siglen);
 1359|       |			}
 1360|       |			if (buf) {
 1361|       |				ucl_munmap(buf, buflen);
 1362|       |			}
 1363|       |
 1364|       |			return false;
 1365|       |		}
 1366|       |
 1367|       |		if (sigbuf) {
 1368|       |			ucl_munmap(sigbuf, siglen);
 1369|       |		}
 1370|       |#else
 1371|    372|		ucl_create_err(&parser->err, "cannot verify file %s: "
 1372|    372|									 "libucl is built without signatures support",
 1373|    372|					   realbuf);
 1374|    372|		if (buf) {
  ------------------
  |  Branch (1374:7): [True: 166, False: 206]
  ------------------
 1375|    166|			ucl_munmap(buf, buflen);
  ------------------
  |  |  185|    166|#define ucl_munmap munmap
  ------------------
 1376|    166|		}
 1377|       |
 1378|    372|		return false;
 1379|    372|#endif
 1380|    372|	}
 1381|       |
 1382|  14.7k|	old_curfile = parser->cur_file;
 1383|  14.7k|	parser->cur_file = NULL;
 1384|       |
 1385|       |	/* Store old file vars */
 1386|  14.7k|	DL_FOREACH_SAFE(parser->variables, cur_var, tmp_var)
  ------------------
  |  |  745|  14.7k|    DL_FOREACH_SAFE2(head,el,tmp,next)
  |  |  ------------------
  |  |  |  |  748|  39.6k|  for ((el) = (head); (el) && ((tmp) = (el)->next, 1); (el) = (tmp))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (748:23): [True: 24.9k, False: 14.7k]
  |  |  |  |  |  Branch (748:31): [True: 24.9k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1387|  24.9k|	{
 1388|  24.9k|		if (strcmp(cur_var->var, "CURDIR") == 0) {
  ------------------
  |  Branch (1388:7): [True: 12.4k, False: 12.4k]
  ------------------
 1389|  12.4k|			old_curdir = cur_var;
 1390|  12.4k|			DL_DELETE(parser->variables, cur_var);
  ------------------
  |  |  706|  12.4k|    DL_DELETE2(head,del,prev,next)
  |  |  ------------------
  |  |  |  |  708|  12.4k|#define DL_DELETE2(head,del,prev,next)                                                         \
  |  |  |  |  709|  12.4k|do {                                                                                           \
  |  |  |  |  710|  12.4k|  assert((head) != NULL);                                                                      \
  |  |  |  |  711|  12.4k|  assert((del)->prev != NULL);                                                                 \
  |  |  |  |  712|  12.4k|  if ((del)->prev == (del)) {                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (712:7): [True: 12.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  713|  12.4k|      (head)=NULL;                                                                             \
  |  |  |  |  714|  12.4k|  } else if ((del) == (head)) {                                                                \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (714:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  715|      0|      assert((del)->next != NULL);                                                             \
  |  |  |  |  716|      0|      (del)->next->prev = (del)->prev;                                                         \
  |  |  |  |  717|      0|      (head) = (del)->next;                                                                    \
  |  |  |  |  718|      0|  } else {                                                                                     \
  |  |  |  |  719|      0|      (del)->prev->next = (del)->next;                                                         \
  |  |  |  |  720|      0|      if ((del)->next) {                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (720:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  721|      0|          (del)->next->prev = (del)->prev;                                                     \
  |  |  |  |  722|      0|      } else {                                                                                 \
  |  |  |  |  723|      0|          (head)->prev = (del)->prev;                                                          \
  |  |  |  |  724|      0|      }                                                                                        \
  |  |  |  |  725|      0|  }                                                                                            \
  |  |  |  |  726|  12.4k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (726:10): [Folded, False: 12.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1390:4): [True: 12.4k, False: 0]
  |  Branch (1390:4): [True: 12.4k, False: 0]
  |  Branch (1390:4): [True: 0, False: 0]
  ------------------
 1391|  12.4k|		}
 1392|  12.4k|		else if (strcmp(cur_var->var, "FILENAME") == 0) {
  ------------------
  |  Branch (1392:12): [True: 12.4k, False: 0]
  ------------------
 1393|  12.4k|			old_filename = cur_var;
 1394|  12.4k|			DL_DELETE(parser->variables, cur_var);
  ------------------
  |  |  706|  12.4k|    DL_DELETE2(head,del,prev,next)
  |  |  ------------------
  |  |  |  |  708|  12.4k|#define DL_DELETE2(head,del,prev,next)                                                         \
  |  |  |  |  709|  12.4k|do {                                                                                           \
  |  |  |  |  710|  12.4k|  assert((head) != NULL);                                                                      \
  |  |  |  |  711|  12.4k|  assert((del)->prev != NULL);                                                                 \
  |  |  |  |  712|  12.4k|  if ((del)->prev == (del)) {                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (712:7): [True: 0, False: 12.4k]
  |  |  |  |  ------------------
  |  |  |  |  713|      0|      (head)=NULL;                                                                             \
  |  |  |  |  714|  12.4k|  } else if ((del) == (head)) {                                                                \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (714:14): [True: 12.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  715|  12.4k|      assert((del)->next != NULL);                                                             \
  |  |  |  |  716|  12.4k|      (del)->next->prev = (del)->prev;                                                         \
  |  |  |  |  717|  12.4k|      (head) = (del)->next;                                                                    \
  |  |  |  |  718|  12.4k|  } else {                                                                                     \
  |  |  |  |  719|      0|      (del)->prev->next = (del)->next;                                                         \
  |  |  |  |  720|      0|      if ((del)->next) {                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (720:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  721|      0|          (del)->next->prev = (del)->prev;                                                     \
  |  |  |  |  722|      0|      } else {                                                                                 \
  |  |  |  |  723|      0|          (head)->prev = (del)->prev;                                                          \
  |  |  |  |  724|      0|      }                                                                                        \
  |  |  |  |  725|      0|  }                                                                                            \
  |  |  |  |  726|  12.4k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (726:10): [Folded, False: 12.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1394:4): [True: 12.4k, False: 0]
  |  Branch (1394:4): [True: 12.4k, False: 0]
  |  Branch (1394:4): [True: 12.4k, False: 0]
  ------------------
 1395|  12.4k|		}
 1396|  24.9k|	}
 1397|       |
 1398|  14.7k|	ucl_parser_set_filevars(parser, realbuf, false);
 1399|       |
 1400|  14.7k|	prev_state = parser->state;
 1401|  14.7k|	parser->state = UCL_STATE_INIT;
 1402|       |
 1403|  14.7k|	if (params->use_prefix && params->prefix == NULL) {
  ------------------
  |  Branch (1403:6): [True: 473, False: 14.2k]
  |  Branch (1403:28): [True: 324, False: 149]
  ------------------
 1404|       |		/* Auto generate a key name based on the included filename */
 1405|    324|		char *prefix = basename(realbuf);
 1406|    324|		params->prefix = prefix;
 1407|    324|		ext = strrchr(prefix, '.');
 1408|    324|		if (ext != NULL && (strcmp(ext, ".conf") == 0 || strcmp(ext, ".ucl") == 0)) {
  ------------------
  |  Branch (1408:7): [True: 6, False: 318]
  |  Branch (1408:23): [True: 0, False: 6]
  |  Branch (1408:52): [True: 0, False: 6]
  ------------------
 1409|       |			/* Strip off .conf or .ucl */
 1410|      0|			*ext = '\0';
 1411|      0|		}
 1412|    324|	}
 1413|  14.7k|	if (params->prefix != NULL) {
  ------------------
  |  Branch (1413:6): [True: 2.53k, False: 12.1k]
  ------------------
 1414|       |		/* This is a prefixed include */
 1415|  2.53k|		container = parser->stack->obj->value.ov;
 1416|       |
 1417|  2.53k|		old_obj = __DECONST(ucl_object_t *, ucl_hash_search(container,
  ------------------
  |  |  135|  2.53k|#define __DECONST(type, var) ((type) (uintptr_t) (const void *) (var))
  ------------------
 1418|  2.53k|															params->prefix, strlen(params->prefix)));
 1419|       |
 1420|  2.53k|		if (strcasecmp(params->target, "array") == 0) {
  ------------------
  |  Branch (1420:7): [True: 553, False: 1.98k]
  ------------------
 1421|    553|			if (old_obj == NULL) {
  ------------------
  |  Branch (1421:8): [True: 300, False: 253]
  ------------------
 1422|       |				/* Create an array with key: prefix */
 1423|    300|				old_obj = ucl_object_new_full(UCL_ARRAY, params->priority);
 1424|    300|				nest_obj = ucl_object_new_full(UCL_OBJECT, params->priority);
 1425|    300|				if (old_obj != NULL) {
  ------------------
  |  Branch (1425:9): [True: 300, False: 0]
  ------------------
 1426|    300|					old_obj->key = params->prefix;
 1427|    300|					old_obj->keylen = strlen(params->prefix);
 1428|    300|				}
 1429|       |
 1430|    300|				if (old_obj == NULL || nest_obj == NULL ||
  ------------------
  |  Branch (1430:9): [True: 0, False: 300]
  |  Branch (1430:28): [True: 0, False: 300]
  ------------------
 1431|    300|					ucl_copy_key_trash(old_obj) == NULL) {
  ------------------
  |  Branch (1431:6): [True: 0, False: 300]
  ------------------
 1432|      0|					ucl_create_err(&parser->err,
 1433|      0|								   "cannot allocate memory for an object");
 1434|      0|					if (buf) {
  ------------------
  |  Branch (1434:10): [True: 0, False: 0]
  ------------------
 1435|      0|						ucl_munmap(buf, buflen);
  ------------------
  |  |  185|      0|#define ucl_munmap munmap
  ------------------
 1436|      0|					}
 1437|       |
 1438|      0|					ucl_object_unref(old_obj);
 1439|      0|					ucl_object_unref(nest_obj);
 1440|      0|					ucl_include_restore_filevars(parser, old_curfile, old_curdir, old_filename);
 1441|       |
 1442|      0|					return false;
 1443|      0|				}
 1444|       |
 1445|    300|				old_obj->prev = old_obj;
 1446|    300|				old_obj->next = NULL;
 1447|    300|				nest_obj->prev = nest_obj;
 1448|    300|				nest_obj->next = NULL;
 1449|       |
 1450|    300|				if (!ucl_array_append(old_obj, nest_obj)) {
  ------------------
  |  Branch (1450:9): [True: 0, False: 300]
  ------------------
 1451|      0|					ucl_object_unref(nest_obj);
 1452|      0|					ucl_object_unref(old_obj);
 1453|       |
 1454|      0|					return ucl_include_enomem(parser, buf, buflen, old_curfile,
 1455|      0|											  old_curdir, old_filename);
 1456|      0|				}
 1457|       |
 1458|    300|				nhash = ucl_hash_insert_object(container, old_obj,
 1459|    300|											   parser->flags & UCL_PARSER_KEY_LOWERCASE);
 1460|    300|				if (nhash == NULL) {
  ------------------
  |  Branch (1460:9): [True: 0, False: 300]
  ------------------
 1461|       |					/* nest_obj goes along with it */
 1462|      0|					ucl_object_unref(old_obj);
 1463|       |
 1464|      0|					return ucl_include_enomem(parser, buf, buflen, old_curfile,
 1465|      0|											  old_curdir, old_filename);
 1466|      0|				}
 1467|       |
 1468|    300|				container = nhash;
 1469|    300|				parser->stack->obj->len++;
 1470|    300|			}
 1471|    253|			else {
 1472|    253|				if (ucl_object_type(old_obj) == UCL_ARRAY) {
  ------------------
  |  Branch (1472:9): [True: 137, False: 116]
  ------------------
 1473|       |					/* Append to the existing array */
 1474|    137|					nest_obj = ucl_object_new_full(UCL_OBJECT,
 1475|    137|												   params->priority);
 1476|    137|					if (nest_obj == NULL) {
  ------------------
  |  Branch (1476:10): [True: 0, False: 137]
  ------------------
 1477|      0|						ucl_create_err(&parser->err,
 1478|      0|									   "cannot allocate memory for an object");
 1479|      0|						if (buf) {
  ------------------
  |  Branch (1479:11): [True: 0, False: 0]
  ------------------
 1480|      0|							ucl_munmap(buf, buflen);
  ------------------
  |  |  185|      0|#define ucl_munmap munmap
  ------------------
 1481|      0|						}
 1482|       |
 1483|      0|						ucl_include_restore_filevars(parser, old_curfile, old_curdir, old_filename);
 1484|       |
 1485|      0|						return false;
 1486|      0|					}
 1487|    137|					nest_obj->prev = nest_obj;
 1488|    137|					nest_obj->next = NULL;
 1489|       |
 1490|    137|					if (!ucl_array_append(old_obj, nest_obj)) {
  ------------------
  |  Branch (1490:10): [True: 0, False: 137]
  ------------------
 1491|      0|						ucl_object_unref(nest_obj);
 1492|       |
 1493|      0|						return ucl_include_enomem(parser, buf, buflen, old_curfile,
 1494|      0|												  old_curdir, old_filename);
 1495|      0|					}
 1496|    137|				}
 1497|    116|				else {
 1498|       |					/* Convert the object to an array */
 1499|    116|					new_obj = ucl_object_typed_new(UCL_ARRAY);
 1500|    116|					if (new_obj == NULL) {
  ------------------
  |  Branch (1500:10): [True: 0, False: 116]
  ------------------
 1501|      0|						ucl_create_err(&parser->err,
 1502|      0|									   "cannot allocate memory for an object");
 1503|      0|						if (buf) {
  ------------------
  |  Branch (1503:11): [True: 0, False: 0]
  ------------------
 1504|      0|							ucl_munmap(buf, buflen);
  ------------------
  |  |  185|      0|#define ucl_munmap munmap
  ------------------
 1505|      0|						}
 1506|       |
 1507|      0|						ucl_include_restore_filevars(parser, old_curfile, old_curdir, old_filename);
 1508|       |
 1509|      0|						return false;
 1510|      0|					}
 1511|    116|					new_obj->key = old_obj->key;
 1512|    116|					new_obj->keylen = old_obj->keylen;
 1513|    116|					new_obj->flags |= UCL_OBJECT_MULTIVALUE;
 1514|    116|					new_obj->prev = new_obj;
 1515|    116|					new_obj->next = NULL;
 1516|       |
 1517|    116|					nest_obj = ucl_object_new_full(UCL_OBJECT,
 1518|    116|												   params->priority);
 1519|    116|					if (nest_obj == NULL) {
  ------------------
  |  Branch (1519:10): [True: 0, False: 116]
  ------------------
 1520|      0|						ucl_create_err(&parser->err,
 1521|      0|									   "cannot allocate memory for an object");
 1522|      0|						if (buf) {
  ------------------
  |  Branch (1522:11): [True: 0, False: 0]
  ------------------
 1523|      0|							ucl_munmap(buf, buflen);
  ------------------
  |  |  185|      0|#define ucl_munmap munmap
  ------------------
 1524|      0|						}
 1525|       |
 1526|      0|						ucl_object_unref(new_obj);
 1527|       |
 1528|      0|						ucl_include_restore_filevars(parser, old_curfile, old_curdir, old_filename);
 1529|       |
 1530|      0|						return false;
 1531|      0|					}
 1532|    116|					nest_obj->prev = nest_obj;
 1533|    116|					nest_obj->next = NULL;
 1534|       |
 1535|    116|					if (!ucl_array_append(new_obj, old_obj) ||
  ------------------
  |  Branch (1535:10): [True: 0, False: 116]
  ------------------
 1536|    116|						!ucl_array_append(new_obj, nest_obj)) {
  ------------------
  |  Branch (1536:7): [True: 0, False: 116]
  ------------------
 1537|       |						/* old_obj stays in the container */
 1538|      0|						ucl_array_detach_elements(new_obj);
 1539|      0|						ucl_object_unref(new_obj);
 1540|      0|						ucl_object_unref(nest_obj);
 1541|       |
 1542|      0|						return ucl_include_enomem(parser, buf, buflen, old_curfile,
 1543|      0|												  old_curdir, old_filename);
 1544|      0|					}
 1545|       |
 1546|    116|					ucl_hash_replace(container, old_obj, new_obj);
 1547|    116|				}
 1548|    253|			}
 1549|    553|		}
 1550|  1.98k|		else {
 1551|       |			/* Case of object */
 1552|  1.98k|			if (old_obj == NULL) {
  ------------------
  |  Branch (1552:8): [True: 871, False: 1.11k]
  ------------------
 1553|       |				/* Create an object with key: prefix */
 1554|    871|				nest_obj = ucl_object_new_full(UCL_OBJECT, params->priority);
 1555|    871|				if (nest_obj != NULL) {
  ------------------
  |  Branch (1555:9): [True: 871, False: 0]
  ------------------
 1556|    871|					nest_obj->key = params->prefix;
 1557|    871|					nest_obj->keylen = strlen(params->prefix);
 1558|    871|				}
 1559|       |
 1560|    871|				if (nest_obj == NULL || ucl_copy_key_trash(nest_obj) == NULL) {
  ------------------
  |  Branch (1560:9): [True: 0, False: 871]
  |  Branch (1560:29): [True: 0, False: 871]
  ------------------
 1561|      0|					ucl_create_err(&parser->err, "cannot allocate memory for an object");
 1562|      0|					if (buf) {
  ------------------
  |  Branch (1562:10): [True: 0, False: 0]
  ------------------
 1563|      0|						ucl_munmap(buf, buflen);
  ------------------
  |  |  185|      0|#define ucl_munmap munmap
  ------------------
 1564|      0|					}
 1565|       |
 1566|      0|					ucl_object_unref(nest_obj);
 1567|      0|					ucl_include_restore_filevars(parser, old_curfile, old_curdir, old_filename);
 1568|       |
 1569|      0|					return false;
 1570|      0|				}
 1571|       |
 1572|    871|				nest_obj->prev = nest_obj;
 1573|    871|				nest_obj->next = NULL;
 1574|       |
 1575|    871|				nhash = ucl_hash_insert_object(container, nest_obj,
 1576|    871|											   parser->flags & UCL_PARSER_KEY_LOWERCASE);
 1577|    871|				if (nhash == NULL) {
  ------------------
  |  Branch (1577:9): [True: 0, False: 871]
  ------------------
 1578|      0|					ucl_object_unref(nest_obj);
 1579|       |
 1580|      0|					return ucl_include_enomem(parser, buf, buflen, old_curfile,
 1581|      0|											  old_curdir, old_filename);
 1582|      0|				}
 1583|       |
 1584|    871|				container = nhash;
 1585|    871|				parser->stack->obj->len++;
 1586|    871|			}
 1587|  1.11k|			else {
 1588|  1.11k|				if (ucl_object_type(old_obj) == UCL_OBJECT) {
  ------------------
  |  Branch (1588:9): [True: 1.00k, False: 109]
  ------------------
 1589|       |					/* Append to existing Object*/
 1590|  1.00k|					nest_obj = old_obj;
 1591|  1.00k|				}
 1592|    109|				else {
 1593|       |					/* The key is not an object */
 1594|    109|					ucl_create_err(&parser->err,
 1595|    109|								   "Conflicting type for key: %s, asked %s, has %s",
 1596|    109|								   params->prefix, params->target,
 1597|    109|								   ucl_object_type_to_string(ucl_object_type(old_obj)));
 1598|    109|					if (buf) {
  ------------------
  |  Branch (1598:10): [True: 109, False: 0]
  ------------------
 1599|    109|						ucl_munmap(buf, buflen);
  ------------------
  |  |  185|    109|#define ucl_munmap munmap
  ------------------
 1600|    109|					}
 1601|       |
 1602|    109|					ucl_include_restore_filevars(parser, old_curfile, old_curdir, old_filename);
 1603|       |
 1604|    109|					return false;
 1605|    109|				}
 1606|  1.11k|			}
 1607|  1.98k|		}
 1608|       |
 1609|       |
 1610|       |		/* Put all of the content of the include inside that object */
 1611|  2.42k|		parser->stack->obj->value.ov = container;
 1612|       |
 1613|  2.42k|		st = UCL_ALLOC(sizeof(struct ucl_stack));
  ------------------
  |  |   71|  2.42k|#define UCL_ALLOC(size) malloc(size)
  ------------------
 1614|  2.42k|		if (st == NULL) {
  ------------------
  |  Branch (1614:7): [True: 0, False: 2.42k]
  ------------------
 1615|       |			/* nest_obj is in the tree already, which owns it */
 1616|      0|			ucl_create_err(&parser->err, "cannot allocate memory for an object");
 1617|       |
 1618|      0|			if (buf) {
  ------------------
  |  Branch (1618:8): [True: 0, False: 0]
  ------------------
 1619|      0|				ucl_munmap(buf, buflen);
  ------------------
  |  |  185|      0|#define ucl_munmap munmap
  ------------------
 1620|      0|			}
 1621|       |
 1622|      0|			ucl_include_restore_filevars(parser, old_curfile, old_curdir, old_filename);
 1623|       |
 1624|      0|			return false;
 1625|      0|		}
 1626|  2.42k|		st->obj = nest_obj;
 1627|  2.42k|		st->e.params.level = parser->stack->e.params.level;
 1628|       |		/*
 1629|       |		 * No brace opens this frame, so none may close it: with the flags of
 1630|       |		 * the enclosing frame, a } in the included file popped and freed it,
 1631|       |		 * and the pop below then used it after free.
 1632|       |		 */
 1633|  2.42k|		st->e.params.flags = 0;
 1634|  2.42k|		st->e.params.line = parser->stack->e.params.line;
 1635|  2.42k|		st->chunk = parser->chunks;
 1636|  2.42k|		LL_PREPEND(parser->stack, st);
  ------------------
  |  |  317|  2.42k|    LL_PREPEND2(head,add,next)
  |  |  ------------------
  |  |  |  |  319|  2.42k|#define LL_PREPEND2(head,add,next)                                                             \
  |  |  |  |  320|  2.42k|do {                                                                                           \
  |  |  |  |  321|  2.42k|  (add)->next = (head);                                                                        \
  |  |  |  |  322|  2.42k|  (head) = (add);                                                                              \
  |  |  |  |  323|  2.42k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (323:10): [Folded, False: 2.42k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1637|  2.42k|		parser->cur_depth++;
 1638|  2.42k|		parser->cur_obj = nest_obj;
 1639|  2.42k|	}
 1640|       |
 1641|  14.5k|	outer = parser->chunks;
 1642|  14.5k|	res = ucl_parser_add_chunk_full(parser, buf, buflen, params->priority,
 1643|  14.5k|									params->strat, params->parse_type);
 1644|       |
 1645|  14.5k|	if (res) {
  ------------------
  |  Branch (1645:6): [True: 14.2k, False: 337]
  ------------------
 1646|       |		/* Stop nesting the include, take 1 level off the stack */
 1647|  14.2k|		if (params->prefix != NULL && nest_obj != NULL) {
  ------------------
  |  Branch (1647:7): [True: 2.38k, False: 11.8k]
  |  Branch (1647:33): [True: 2.38k, False: 0]
  ------------------
 1648|  2.38k|			ucl_parser_pop_container(parser, st);
 1649|  2.38k|		}
 1650|       |
 1651|  14.2k|		parser->state = prev_state;
 1652|  14.2k|	}
 1653|    337|	else if (parser->chunks != outer) {
  ------------------
  |  Branch (1653:11): [True: 337, False: 0]
  ------------------
 1654|       |		/* Its chunk is there: the file has been read, but does not parse */
 1655|    337|		params->parse_failed = true;
 1656|    337|	}
 1657|       |
 1658|       |	/*
 1659|       |	 * Remove the chunk of the included file, which points to the buffer
 1660|       |	 * unmapped below, whether the file has parsed or not. A failed parse
 1661|       |	 * leaves it on top, along with the chunks of includes that failed in it:
 1662|       |	 * the including file read the unmapped buffer of the failed one when a
 1663|       |	 * .try_include glob went on with the parse, and a successful include
 1664|       |	 * after it removed that chunk instead of its own. Frames left open by a
 1665|       |	 * removed chunk now belong to the including one, as for an inserted chunk.
 1666|       |	 */
 1667|  29.1k|	while (parser->chunks != NULL && parser->chunks != outer) {
  ------------------
  |  Branch (1667:9): [True: 29.1k, False: 0]
  |  Branch (1667:35): [True: 14.5k, False: 14.5k]
  ------------------
 1668|  14.5k|		chunk = parser->chunks;
 1669|  14.5k|		parser->chunks = chunk->next;
 1670|  14.5k|		LL_FOREACH(parser->stack, cur_st)
  ------------------
  |  |  416|  14.5k|    LL_FOREACH2(head,el,next)
  |  |  ------------------
  |  |  |  |  419|  39.3k|    for ((el) = (head); el; (el) = (el)->next)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (419:25): [True: 24.7k, False: 14.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1671|  24.7k|		{
 1672|  24.7k|			if (cur_st->chunk == chunk) {
  ------------------
  |  Branch (1672:8): [True: 236, False: 24.4k]
  ------------------
 1673|    236|				cur_st->chunk = outer;
 1674|    236|			}
 1675|  24.7k|		}
 1676|  14.5k|		ucl_chunk_free(chunk);
 1677|  14.5k|		parser->recursion--;
 1678|  14.5k|	}
 1679|       |
 1680|       |	/* Restore old file vars */
 1681|  14.5k|	ucl_include_restore_filevars(parser, old_curfile, old_curdir, old_filename);
 1682|       |
 1683|  14.5k|	if (buflen > 0) {
  ------------------
  |  Branch (1683:6): [True: 14.3k, False: 244]
  ------------------
 1684|  14.3k|		ucl_munmap(buf, buflen);
  ------------------
  |  |  185|  14.3k|#define ucl_munmap munmap
  ------------------
 1685|  14.3k|	}
 1686|       |
 1687|  14.5k|	return res;
 1688|  14.7k|}
ucl_util.c:ucl_include_restore_filevars:
 1215|  14.7k|{
 1216|  14.7k|	struct ucl_variable *cur_var, *tmp_var;
 1217|       |
 1218|  14.7k|	if (parser->cur_file) {
  ------------------
  |  Branch (1218:6): [True: 14.7k, False: 0]
  ------------------
 1219|  14.7k|		UCL_FREE(strlen(parser->cur_file) + 1, parser->cur_file);
  ------------------
  |  |   74|  14.7k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 1220|  14.7k|	}
 1221|       |
 1222|  14.7k|	parser->cur_file = old_curfile;
 1223|  14.7k|	DL_FOREACH_SAFE(parser->variables, cur_var, tmp_var)
  ------------------
  |  |  745|  14.7k|    DL_FOREACH_SAFE2(head,el,tmp,next)
  |  |  ------------------
  |  |  |  |  748|  44.1k|  for ((el) = (head); (el) && ((tmp) = (el)->next, 1); (el) = (tmp))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (748:23): [True: 29.4k, False: 14.7k]
  |  |  |  |  |  Branch (748:31): [True: 29.4k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1224|  29.4k|	{
 1225|  29.4k|		if (strcmp(cur_var->var, "CURDIR") == 0 && old_curdir) {
  ------------------
  |  Branch (1225:7): [True: 14.7k, False: 14.7k]
  |  Branch (1225:46): [True: 12.4k, False: 2.24k]
  ------------------
 1226|  12.4k|			DL_DELETE(parser->variables, cur_var);
  ------------------
  |  |  706|  12.4k|    DL_DELETE2(head,del,prev,next)
  |  |  ------------------
  |  |  |  |  708|  12.4k|#define DL_DELETE2(head,del,prev,next)                                                         \
  |  |  |  |  709|  12.4k|do {                                                                                           \
  |  |  |  |  710|  12.4k|  assert((head) != NULL);                                                                      \
  |  |  |  |  711|  12.4k|  assert((del)->prev != NULL);                                                                 \
  |  |  |  |  712|  12.4k|  if ((del)->prev == (del)) {                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (712:7): [True: 12.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  713|  12.4k|      (head)=NULL;                                                                             \
  |  |  |  |  714|  12.4k|  } else if ((del) == (head)) {                                                                \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (714:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  715|      0|      assert((del)->next != NULL);                                                             \
  |  |  |  |  716|      0|      (del)->next->prev = (del)->prev;                                                         \
  |  |  |  |  717|      0|      (head) = (del)->next;                                                                    \
  |  |  |  |  718|      0|  } else {                                                                                     \
  |  |  |  |  719|      0|      (del)->prev->next = (del)->next;                                                         \
  |  |  |  |  720|      0|      if ((del)->next) {                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (720:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  721|      0|          (del)->next->prev = (del)->prev;                                                     \
  |  |  |  |  722|      0|      } else {                                                                                 \
  |  |  |  |  723|      0|          (head)->prev = (del)->prev;                                                          \
  |  |  |  |  724|      0|      }                                                                                        \
  |  |  |  |  725|      0|  }                                                                                            \
  |  |  |  |  726|  12.4k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (726:10): [Folded, False: 12.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1226:4): [True: 12.4k, False: 0]
  |  Branch (1226:4): [True: 12.4k, False: 0]
  |  Branch (1226:4): [True: 0, False: 0]
  ------------------
 1227|  12.4k|			UCL_FREE(cur_var->var_len + 1, cur_var->var);
  ------------------
  |  |   74|  12.4k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 1228|  12.4k|			UCL_FREE(cur_var->value_len + 1, cur_var->value);
  ------------------
  |  |   74|  12.4k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 1229|  12.4k|			UCL_FREE(sizeof(struct ucl_variable), cur_var);
  ------------------
  |  |   74|  12.4k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 1230|  12.4k|		}
 1231|  16.9k|		else if (strcmp(cur_var->var, "FILENAME") == 0 && old_filename) {
  ------------------
  |  Branch (1231:12): [True: 14.7k, False: 2.24k]
  |  Branch (1231:53): [True: 12.4k, False: 2.24k]
  ------------------
 1232|  12.4k|			DL_DELETE(parser->variables, cur_var);
  ------------------
  |  |  706|  12.4k|    DL_DELETE2(head,del,prev,next)
  |  |  ------------------
  |  |  |  |  708|  12.4k|#define DL_DELETE2(head,del,prev,next)                                                         \
  |  |  |  |  709|  12.4k|do {                                                                                           \
  |  |  |  |  710|  12.4k|  assert((head) != NULL);                                                                      \
  |  |  |  |  711|  12.4k|  assert((del)->prev != NULL);                                                                 \
  |  |  |  |  712|  12.4k|  if ((del)->prev == (del)) {                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (712:7): [True: 0, False: 12.4k]
  |  |  |  |  ------------------
  |  |  |  |  713|      0|      (head)=NULL;                                                                             \
  |  |  |  |  714|  12.4k|  } else if ((del) == (head)) {                                                                \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (714:14): [True: 12.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  715|  12.4k|      assert((del)->next != NULL);                                                             \
  |  |  |  |  716|  12.4k|      (del)->next->prev = (del)->prev;                                                         \
  |  |  |  |  717|  12.4k|      (head) = (del)->next;                                                                    \
  |  |  |  |  718|  12.4k|  } else {                                                                                     \
  |  |  |  |  719|      0|      (del)->prev->next = (del)->next;                                                         \
  |  |  |  |  720|      0|      if ((del)->next) {                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (720:11): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  721|      0|          (del)->next->prev = (del)->prev;                                                     \
  |  |  |  |  722|      0|      } else {                                                                                 \
  |  |  |  |  723|      0|          (head)->prev = (del)->prev;                                                          \
  |  |  |  |  724|      0|      }                                                                                        \
  |  |  |  |  725|      0|  }                                                                                            \
  |  |  |  |  726|  12.4k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (726:10): [Folded, False: 12.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1232:4): [True: 12.4k, False: 0]
  |  Branch (1232:4): [True: 12.4k, False: 0]
  |  Branch (1232:4): [True: 12.4k, False: 0]
  ------------------
 1233|  12.4k|			UCL_FREE(cur_var->var_len + 1, cur_var->var);
  ------------------
  |  |   74|  12.4k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 1234|  12.4k|			UCL_FREE(cur_var->value_len + 1, cur_var->value);
  ------------------
  |  |   74|  12.4k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 1235|  12.4k|			UCL_FREE(sizeof(struct ucl_variable), cur_var);
  ------------------
  |  |   74|  12.4k|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 1236|  12.4k|		}
 1237|  29.4k|	}
 1238|  14.7k|	if (old_filename) {
  ------------------
  |  Branch (1238:6): [True: 12.4k, False: 2.24k]
  ------------------
 1239|  12.4k|		DL_APPEND(parser->variables, old_filename);
  ------------------
  |  |  639|  12.4k|    DL_APPEND2(head,add,prev,next)
  |  |  ------------------
  |  |  |  |  641|  12.4k|#define DL_APPEND2(head,add,prev,next)                                                         \
  |  |  |  |  642|  12.4k|do {                                                                                           \
  |  |  |  |  643|  12.4k|  if (head) {                                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (643:7): [True: 0, False: 12.4k]
  |  |  |  |  ------------------
  |  |  |  |  644|      0|      (add)->prev = (head)->prev;                                                              \
  |  |  |  |  645|      0|      (head)->prev->next = (add);                                                              \
  |  |  |  |  646|      0|      (head)->prev = (add);                                                                    \
  |  |  |  |  647|      0|      (add)->next = NULL;                                                                      \
  |  |  |  |  648|  12.4k|  } else {                                                                                     \
  |  |  |  |  649|  12.4k|      (head)=(add);                                                                            \
  |  |  |  |  650|  12.4k|      (head)->prev = (head);                                                                   \
  |  |  |  |  651|  12.4k|      (head)->next = NULL;                                                                     \
  |  |  |  |  652|  12.4k|  }                                                                                            \
  |  |  |  |  653|  12.4k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (653:10): [Folded, False: 12.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1240|  12.4k|	}
 1241|  14.7k|	if (old_curdir) {
  ------------------
  |  Branch (1241:6): [True: 12.4k, False: 2.24k]
  ------------------
 1242|       |		DL_APPEND(parser->variables, old_curdir);
  ------------------
  |  |  639|  12.4k|    DL_APPEND2(head,add,prev,next)
  |  |  ------------------
  |  |  |  |  641|  12.4k|#define DL_APPEND2(head,add,prev,next)                                                         \
  |  |  |  |  642|  12.4k|do {                                                                                           \
  |  |  |  |  643|  12.4k|  if (head) {                                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (643:7): [True: 12.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  644|  12.4k|      (add)->prev = (head)->prev;                                                              \
  |  |  |  |  645|  12.4k|      (head)->prev->next = (add);                                                              \
  |  |  |  |  646|  12.4k|      (head)->prev = (add);                                                                    \
  |  |  |  |  647|  12.4k|      (add)->next = NULL;                                                                      \
  |  |  |  |  648|  12.4k|  } else {                                                                                     \
  |  |  |  |  649|      0|      (head)=(add);                                                                            \
  |  |  |  |  650|      0|      (head)->prev = (head);                                                                   \
  |  |  |  |  651|      0|      (head)->next = NULL;                                                                     \
  |  |  |  |  652|      0|  }                                                                                            \
  |  |  |  |  653|  12.4k|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (653:10): [Folded, False: 12.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1243|  12.4k|	}
 1244|  14.7k|}
ucl_util.c:ucl_parser_add_mapped_chunk:
 2354|  7.62k|{
 2355|  7.62k|	struct ucl_chunk *chunk;
 2356|  7.62k|	int zerocopy = parser->flags & UCL_PARSER_ZEROCOPY;
 2357|  7.62k|	bool ret;
 2358|       |
 2359|  7.62k|	parser->flags &= ~UCL_PARSER_ZEROCOPY;
 2360|  7.62k|	ret = ucl_parser_add_chunk_full(parser, buf, len, priority, strat,
 2361|  7.62k|									parse_type);
 2362|  7.62k|	parser->flags |= zerocopy;
 2363|       |
 2364|  7.62k|	if (len > 0) {
  ------------------
  |  Branch (2364:6): [True: 7.62k, False: 0]
  ------------------
 2365|  7.62k|		ucl_munmap(buf, len);
  ------------------
  |  |  185|  7.62k|#define ucl_munmap munmap
  ------------------
 2366|       |
 2367|  7.62k|		LL_FOREACH(parser->chunks, chunk)
  ------------------
  |  |  416|  7.62k|    LL_FOREACH2(head,el,next)
  |  |  ------------------
  |  |  |  |  419|  15.2k|    for ((el) = (head); el; (el) = (el)->next)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (419:25): [True: 7.62k, False: 7.62k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2368|  7.62k|		{
 2369|  7.62k|			if (chunk->begin == buf) {
  ------------------
  |  Branch (2369:8): [True: 7.62k, False: 0]
  ------------------
 2370|  7.62k|				chunk->begin = NULL;
 2371|  7.62k|				chunk->pos = NULL;
 2372|  7.62k|				chunk->end = NULL;
 2373|  7.62k|				chunk->remain = 0;
 2374|  7.62k|			}
 2375|  7.62k|		}
 2376|  7.62k|	}
 2377|       |
 2378|  7.62k|	return ret;
 2379|  7.62k|}
ucl_util.c:ucl_escaped_len_add:
 2604|  5.90M|{
 2605|  5.90M|	size_t increment = 1;
 2606|       |
 2607|  5.90M|	if (ucl_test_character(c, UCL_CHARACTER_JSON_UNSAFE | UCL_CHARACTER_WHITESPACE_UNSAFE)) {
  ------------------
  |  Branch (2607:6): [True: 2.56M, False: 3.33M]
  ------------------
 2608|  2.56M|		if (c == '\v' || c == '\0') {
  ------------------
  |  Branch (2608:7): [True: 5.69k, False: 2.55M]
  |  Branch (2608:20): [True: 2.39M, False: 160k]
  ------------------
 2609|  2.40M|			increment = 6;
 2610|  2.40M|		}
 2611|   160k|		else if (c != ' ') {
  ------------------
  |  Branch (2611:12): [True: 85.8k, False: 74.9k]
  ------------------
 2612|  85.8k|			increment = 2;
 2613|  85.8k|		}
 2614|  2.56M|	}
 2615|       |
 2616|  5.90M|	return ucl_size_add(*len, increment, len);
 2617|  5.90M|}
ucl_util.c:ucl_object_insert_key_common:
 2770|  11.3k|{
 2771|  11.3k|	ucl_object_t *found, *tmp;
 2772|  11.3k|	const ucl_object_t *cur;
 2773|  11.3k|	ucl_object_iter_t it = NULL;
 2774|  11.3k|	ucl_hash_t *nhash;
 2775|  11.3k|	const char *p;
 2776|  11.3k|	int ret = true;
 2777|       |
 2778|  11.3k|	if (elt == NULL || key == NULL) {
  ------------------
  |  Branch (2778:6): [True: 0, False: 11.3k]
  |  Branch (2778:21): [True: 0, False: 11.3k]
  ------------------
 2779|      0|		return false;
 2780|      0|	}
 2781|       |
 2782|  11.3k|	if (top == NULL) {
  ------------------
  |  Branch (2782:6): [True: 0, False: 11.3k]
  ------------------
 2783|      0|		return false;
 2784|      0|	}
 2785|       |
 2786|  11.3k|	if (top->type != UCL_OBJECT) {
  ------------------
  |  Branch (2786:6): [True: 0, False: 11.3k]
  ------------------
 2787|       |		/* It is possible to convert NULL type to an object */
 2788|      0|		if (top->type == UCL_NULL) {
  ------------------
  |  Branch (2788:7): [True: 0, False: 0]
  ------------------
 2789|      0|			top->type = UCL_OBJECT;
 2790|      0|		}
 2791|      0|		else {
 2792|       |			/* Refuse converting of other object types */
 2793|      0|			return false;
 2794|      0|		}
 2795|      0|	}
 2796|       |
 2797|  11.3k|	if (top->value.ov == NULL) {
  ------------------
  |  Branch (2797:6): [True: 9.34k, False: 2.02k]
  ------------------
 2798|  9.34k|		top->value.ov = ucl_hash_create(false);
 2799|  9.34k|		if (top->value.ov == NULL) {
  ------------------
  |  Branch (2799:7): [True: 0, False: 9.34k]
  ------------------
 2800|      0|			return false;
 2801|      0|		}
 2802|  9.34k|	}
 2803|       |
 2804|  11.3k|	if (keylen == 0) {
  ------------------
  |  Branch (2804:6): [True: 0, False: 11.3k]
  ------------------
 2805|      0|		keylen = strlen(key);
 2806|      0|	}
 2807|       |
 2808|  52.5k|	for (p = key; p < key + keylen; p++) {
  ------------------
  |  Branch (2808:16): [True: 42.1k, False: 10.3k]
  ------------------
 2809|  42.1k|		if (ucl_test_character(*p, UCL_CHARACTER_UCL_UNSAFE)) {
  ------------------
  |  Branch (2809:7): [True: 982, False: 41.1k]
  ------------------
 2810|    982|			elt->flags |= UCL_OBJECT_NEED_KEY_ESCAPE;
 2811|    982|			break;
 2812|    982|		}
 2813|  42.1k|	}
 2814|       |
 2815|       |	/* workaround for some use cases */
 2816|  11.3k|	if (elt->trash_stack[UCL_TRASH_KEY] != NULL &&
  ------------------
  |  |  153|  11.3k|#define UCL_TRASH_KEY 0
  ------------------
  |  Branch (2816:6): [True: 11.3k, False: 0]
  ------------------
 2817|  11.3k|		key != (const char *) elt->trash_stack[UCL_TRASH_KEY]) {
  ------------------
  |  |  153|  11.3k|#define UCL_TRASH_KEY 0
  ------------------
  |  Branch (2817:3): [True: 0, False: 11.3k]
  ------------------
 2818|       |		/* Remove copied key */
 2819|      0|		UCL_FREE(elt->keylen + 1, elt->trash_stack[UCL_TRASH_KEY]);
  ------------------
  |  |   74|      0|#define UCL_FREE(size, ptr) free(ptr)
  ------------------
 2820|      0|		elt->trash_stack[UCL_TRASH_KEY] = NULL;
  ------------------
  |  |  153|      0|#define UCL_TRASH_KEY 0
  ------------------
 2821|      0|		elt->flags &= ~UCL_OBJECT_ALLOCATED_KEY;
 2822|      0|	}
 2823|       |
 2824|  11.3k|	elt->key = key;
 2825|  11.3k|	elt->keylen = keylen;
 2826|       |
 2827|  11.3k|	if (copy_key && ucl_copy_key_trash(elt) == NULL) {
  ------------------
  |  Branch (2827:6): [True: 0, False: 11.3k]
  |  Branch (2827:18): [True: 0, False: 0]
  ------------------
 2828|      0|		return false;
 2829|      0|	}
 2830|       |
 2831|  11.3k|	found = __DECONST(ucl_object_t *, ucl_hash_search_obj(top->value.ov, elt));
  ------------------
  |  |  135|  11.3k|#define __DECONST(type, var) ((type) (uintptr_t) (const void *) (var))
  ------------------
 2832|       |
 2833|  11.3k|	if (found == NULL) {
  ------------------
  |  Branch (2833:6): [True: 11.3k, False: 0]
  ------------------
 2834|  11.3k|		nhash = ucl_hash_insert_object(top->value.ov, elt, false);
 2835|  11.3k|		if (nhash == NULL) {
  ------------------
  |  Branch (2835:7): [True: 0, False: 11.3k]
  ------------------
 2836|      0|			return false;
 2837|      0|		}
 2838|  11.3k|		top->value.ov = nhash;
 2839|  11.3k|		top->len++;
 2840|       |		/* Key was inserted - return true regardless of replace flag */
 2841|  11.3k|	}
 2842|      0|	else {
 2843|      0|		if (replace) {
  ------------------
  |  Branch (2843:7): [True: 0, False: 0]
  ------------------
 2844|      0|			ucl_hash_replace(top->value.ov, found, elt);
 2845|      0|			ucl_object_unref(found);
 2846|      0|		}
 2847|      0|		else if (merge) {
  ------------------
  |  Branch (2847:12): [True: 0, False: 0]
  ------------------
 2848|      0|			if (found->type != UCL_OBJECT && elt->type == UCL_OBJECT) {
  ------------------
  |  Branch (2848:8): [True: 0, False: 0]
  |  Branch (2848:37): [True: 0, False: 0]
  ------------------
 2849|       |				/* Insert old elt to new one */
 2850|      0|				if (!ucl_object_insert_key_common(elt, found, found->key,
  ------------------
  |  Branch (2850:9): [True: 0, False: 0]
  ------------------
 2851|      0|												  found->keylen, copy_key, false, false)) {
 2852|      0|					return false;
 2853|      0|				}
 2854|      0|				ucl_hash_replace(top->value.ov, found, elt);
 2855|      0|			}
 2856|      0|			else if (found->type == UCL_OBJECT && elt->type != UCL_OBJECT) {
  ------------------
  |  Branch (2856:13): [True: 0, False: 0]
  |  Branch (2856:42): [True: 0, False: 0]
  ------------------
 2857|       |				/* Insert new to old */
 2858|      0|				ret = ucl_object_insert_key_common(found, elt, elt->key,
 2859|      0|												   elt->keylen, copy_key, false, false);
 2860|      0|			}
 2861|      0|			else if (found->type == UCL_OBJECT && elt->type == UCL_OBJECT) {
  ------------------
  |  Branch (2861:13): [True: 0, False: 0]
  |  Branch (2861:42): [True: 0, False: 0]
  ------------------
 2862|       |				/* Mix two hashes */
 2863|      0|				while ((cur = ucl_object_iterate(elt, &it, true)) != NULL) {
  ------------------
  |  |  881|      0|#define ucl_object_iterate(ob, it, ev) ucl_object_iterate_with_error((ob), (it), (ev), NULL)
  ------------------
  |  Branch (2863:12): [True: 0, False: 0]
  ------------------
 2864|      0|					tmp = ucl_object_ref(cur);
 2865|      0|					if (!ucl_object_insert_key_common(found, tmp, cur->key,
  ------------------
  |  Branch (2865:10): [True: 0, False: 0]
  ------------------
 2866|      0|													  cur->keylen, copy_key, true, false)) {
 2867|      0|						ucl_object_unref(tmp);
 2868|      0|					}
 2869|      0|				}
 2870|      0|				ucl_object_unref(elt);
 2871|      0|			}
 2872|      0|			else {
 2873|       |				/* Just make a list of scalars */
 2874|      0|				DL_CONCAT(found, elt);
  ------------------
  |  |  688|      0|    DL_CONCAT2(head1,head2,prev,next)
  |  |  ------------------
  |  |  |  |  690|      0|#define DL_CONCAT2(head1,head2,prev,next)                                                      \
  |  |  |  |  691|      0|do {                                                                                           \
  |  |  |  |  692|      0|  LDECLTYPE(head1) _tmp;                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|#define LDECLTYPE(x) __typeof(x)
  |  |  |  |  ------------------
  |  |  |  |  693|      0|  if (head2) {                                                                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (693:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  694|      0|    if (head1) {                                                                               \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (694:9): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  695|      0|        UTLIST_CASTASGN(_tmp, (head2)->prev);                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  103|      0|#define UTLIST_CASTASGN(a,b) (a)=(b)
  |  |  |  |  ------------------
  |  |  |  |  696|      0|        (head2)->prev = (head1)->prev;                                                         \
  |  |  |  |  697|      0|        (head1)->prev->next = (head2);                                                         \
  |  |  |  |  698|      0|        UTLIST_CASTASGN((head1)->prev, _tmp);                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  103|      0|#define UTLIST_CASTASGN(a,b) (a)=(b)
  |  |  |  |  ------------------
  |  |  |  |  699|      0|    } else {                                                                                   \
  |  |  |  |  700|      0|        (head1)=(head2);                                                                       \
  |  |  |  |  701|      0|    }                                                                                          \
  |  |  |  |  702|      0|  }                                                                                            \
  |  |  |  |  703|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (703:10): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2875|      0|			}
 2876|      0|		}
 2877|      0|		else {
 2878|      0|			DL_CONCAT(found, elt);
  ------------------
  |  |  688|      0|    DL_CONCAT2(head1,head2,prev,next)
  |  |  ------------------
  |  |  |  |  690|      0|#define DL_CONCAT2(head1,head2,prev,next)                                                      \
  |  |  |  |  691|      0|do {                                                                                           \
  |  |  |  |  692|      0|  LDECLTYPE(head1) _tmp;                                                                       \
  |  |  |  |  ------------------
  |  |  |  |  |  |   78|      0|#define LDECLTYPE(x) __typeof(x)
  |  |  |  |  ------------------
  |  |  |  |  693|      0|  if (head2) {                                                                                 \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (693:7): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  694|      0|    if (head1) {                                                                               \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (694:9): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  695|      0|        UTLIST_CASTASGN(_tmp, (head2)->prev);                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  103|      0|#define UTLIST_CASTASGN(a,b) (a)=(b)
  |  |  |  |  ------------------
  |  |  |  |  696|      0|        (head2)->prev = (head1)->prev;                                                         \
  |  |  |  |  697|      0|        (head1)->prev->next = (head2);                                                         \
  |  |  |  |  698|      0|        UTLIST_CASTASGN((head1)->prev, _tmp);                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  |  103|      0|#define UTLIST_CASTASGN(a,b) (a)=(b)
  |  |  |  |  ------------------
  |  |  |  |  699|      0|    } else {                                                                                   \
  |  |  |  |  700|      0|        (head1)=(head2);                                                                       \
  |  |  |  |  701|      0|    }                                                                                          \
  |  |  |  |  702|      0|  }                                                                                            \
  |  |  |  |  703|      0|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (703:10): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2879|      0|		}
 2880|      0|	}
 2881|       |
 2882|  11.3k|	return ret;
 2883|  11.3k|}
ucl_util.c:ucl_object_copy_internal:
 4118|   127k|{
 4119|       |
 4120|   127k|	ucl_object_t *new;
 4121|   127k|	ucl_object_iter_t it = NULL;
 4122|   127k|	const ucl_object_t *cur;
 4123|   127k|	int iter_error = 0;
 4124|   127k|	size_t sz = sizeof(*new), alloc_len;
 4125|       |
 4126|   127k|	if (other->type == UCL_USERDATA) {
  ------------------
  |  Branch (4126:6): [True: 0, False: 127k]
  ------------------
 4127|      0|		sz = sizeof(struct ucl_object_userdata);
 4128|      0|	}
 4129|   127k|	new = UCL_ALLOC(sz);
  ------------------
  |  |   71|   127k|#define UCL_ALLOC(size) malloc(size)
  ------------------
 4130|       |
 4131|   127k|	if (new != NULL) {
  ------------------
  |  Branch (4131:6): [True: 127k, False: 0]
  ------------------
 4132|   127k|		memcpy(new, other, sz);
 4133|   127k|		if (other->flags & UCL_OBJECT_EPHEMERAL) {
  ------------------
  |  Branch (4133:7): [True: 0, False: 127k]
  ------------------
 4134|       |			/* Copied object is always non ephemeral */
 4135|      0|			new->flags &= ~UCL_OBJECT_EPHEMERAL;
 4136|      0|		}
 4137|   127k|		new->ref = 1;
 4138|       |		/* Unlink from others */
 4139|   127k|		new->next = NULL;
 4140|   127k|		new->prev = new;
 4141|   127k|		new->trash_stack[UCL_TRASH_KEY] = NULL;
  ------------------
  |  |  153|   127k|#define UCL_TRASH_KEY 0
  ------------------
 4142|   127k|		new->trash_stack[UCL_TRASH_VALUE] = NULL;
  ------------------
  |  |  154|   127k|#define UCL_TRASH_VALUE 1
  ------------------
 4143|   127k|		if (other->type == UCL_ARRAY || other->type == UCL_OBJECT) {
  ------------------
  |  Branch (4143:7): [True: 2.51k, False: 124k]
  |  Branch (4143:35): [True: 9.59k, False: 115k]
  ------------------
 4144|  12.1k|			memset(&new->value, 0, sizeof(new->value));
 4145|  12.1k|			new->len = 0;
 4146|  12.1k|		}
 4147|       |
 4148|       |		/* deep copy of values stored */
 4149|   127k|		if (other->trash_stack[UCL_TRASH_KEY] != NULL) {
  ------------------
  |  |  153|   127k|#define UCL_TRASH_KEY 0
  ------------------
  |  Branch (4149:7): [True: 11.4k, False: 115k]
  ------------------
 4150|  11.4k|			if (other->key == (const char *) other->trash_stack[UCL_TRASH_KEY]) {
  ------------------
  |  |  153|  11.4k|#define UCL_TRASH_KEY 0
  ------------------
  |  Branch (4150:8): [True: 11.4k, False: 0]
  ------------------
 4151|  11.4k|				if (ucl_size_add(other->keylen, 1, &alloc_len)) {
  ------------------
  |  Branch (4151:9): [True: 11.4k, False: 0]
  ------------------
 4152|  11.4k|					new->trash_stack[UCL_TRASH_KEY] = UCL_ALLOC(alloc_len);
  ------------------
  |  |  153|  11.4k|#define UCL_TRASH_KEY 0
  ------------------
              					new->trash_stack[UCL_TRASH_KEY] = UCL_ALLOC(alloc_len);
  ------------------
  |  |   71|  11.4k|#define UCL_ALLOC(size) malloc(size)
  ------------------
 4153|  11.4k|				}
 4154|  11.4k|				if (new->trash_stack[UCL_TRASH_KEY] == NULL) {
  ------------------
  |  |  153|  11.4k|#define UCL_TRASH_KEY 0
  ------------------
  |  Branch (4154:9): [True: 0, False: 11.4k]
  ------------------
 4155|      0|					goto fail;
 4156|      0|				}
 4157|  11.4k|				memcpy(new->trash_stack[UCL_TRASH_KEY], other->trash_stack[UCL_TRASH_KEY], other->keylen);
  ------------------
  |  |  153|  11.4k|#define UCL_TRASH_KEY 0
  ------------------
              				memcpy(new->trash_stack[UCL_TRASH_KEY], other->trash_stack[UCL_TRASH_KEY], other->keylen);
  ------------------
  |  |  153|  11.4k|#define UCL_TRASH_KEY 0
  ------------------
 4158|  11.4k|				new->trash_stack[UCL_TRASH_KEY][other->keylen] = '\0';
  ------------------
  |  |  153|  11.4k|#define UCL_TRASH_KEY 0
  ------------------
 4159|  11.4k|				new->key = new->trash_stack[UCL_TRASH_KEY];
  ------------------
  |  |  153|  11.4k|#define UCL_TRASH_KEY 0
  ------------------
 4160|  11.4k|			}
 4161|  11.4k|		}
 4162|   127k|		if (other->trash_stack[UCL_TRASH_VALUE] != NULL) {
  ------------------
  |  |  154|   127k|#define UCL_TRASH_VALUE 1
  ------------------
  |  Branch (4162:7): [True: 113k, False: 13.5k]
  ------------------
 4163|   113k|			if (new->type == UCL_STRING) {
  ------------------
  |  Branch (4163:8): [True: 113k, False: 0]
  ------------------
 4164|       |				/*
 4165|       |				 * A string value can carry embedded NUL bytes when it was
 4166|       |				 * built with ucl_object_fromlstring(); its real extent is
 4167|       |				 * tracked by new->len (copied above from other->len), not
 4168|       |				 * by a terminating NUL. UCL_STRDUP stops at the first NUL
 4169|       |				 * it sees, so on such a value it can hand back a shorter
 4170|       |				 * allocation than the length ucl_object_emit() will later
 4171|       |				 * read against. Duplicate the exact byte range instead,
 4172|       |				 * the same way the key is duplicated a few lines up.
 4173|       |				 */
 4174|   113k|				if (ucl_size_add(new->len, 1, &alloc_len)) {
  ------------------
  |  Branch (4174:9): [True: 113k, False: 0]
  ------------------
 4175|   113k|					new->trash_stack[UCL_TRASH_VALUE] = UCL_ALLOC(alloc_len);
  ------------------
  |  |  154|   113k|#define UCL_TRASH_VALUE 1
  ------------------
              					new->trash_stack[UCL_TRASH_VALUE] = UCL_ALLOC(alloc_len);
  ------------------
  |  |   71|   113k|#define UCL_ALLOC(size) malloc(size)
  ------------------
 4176|   113k|				}
 4177|   113k|				if (new->trash_stack[UCL_TRASH_VALUE] == NULL) {
  ------------------
  |  |  154|   113k|#define UCL_TRASH_VALUE 1
  ------------------
  |  Branch (4177:9): [True: 0, False: 113k]
  ------------------
 4178|      0|					goto fail;
 4179|      0|				}
 4180|   113k|				memcpy(new->trash_stack[UCL_TRASH_VALUE],
  ------------------
  |  |  154|   113k|#define UCL_TRASH_VALUE 1
  ------------------
 4181|   113k|					   other->trash_stack[UCL_TRASH_VALUE], new->len);
  ------------------
  |  |  154|   113k|#define UCL_TRASH_VALUE 1
  ------------------
 4182|   113k|				new->trash_stack[UCL_TRASH_VALUE][new->len] = '\0';
  ------------------
  |  |  154|   113k|#define UCL_TRASH_VALUE 1
  ------------------
 4183|   113k|				new->value.sv = new->trash_stack[UCL_TRASH_VALUE];
  ------------------
  |  |  154|   113k|#define UCL_TRASH_VALUE 1
  ------------------
 4184|   113k|			}
 4185|      0|			else {
 4186|      0|				new->trash_stack[UCL_TRASH_VALUE] =
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
 4187|      0|					UCL_STRDUP(other->trash_stack[UCL_TRASH_VALUE]);
  ------------------
  |  |   87|      0|#define UCL_STRDUP(str) ucl_strdup_impl(str)
  ------------------
 4188|      0|				if (new->trash_stack[UCL_TRASH_VALUE] == NULL) {
  ------------------
  |  |  154|      0|#define UCL_TRASH_VALUE 1
  ------------------
  |  Branch (4188:9): [True: 0, False: 0]
  ------------------
 4189|      0|					goto fail;
 4190|      0|				}
 4191|      0|			}
 4192|   113k|		}
 4193|       |
 4194|   127k|		if (other->type == UCL_ARRAY || other->type == UCL_OBJECT) {
  ------------------
  |  Branch (4194:7): [True: 2.51k, False: 124k]
  |  Branch (4194:35): [True: 9.59k, False: 115k]
  ------------------
 4195|   137k|			while ((other->type != UCL_OBJECT || other->value.ov != NULL) &&
  ------------------
  |  Branch (4195:12): [True: 118k, False: 19.3k]
  |  Branch (4195:41): [True: 19.3k, False: 0]
  ------------------
 4196|   137k|				   (cur = ucl_object_iterate_with_error(other, &it, true, &iter_error)) != NULL) {
  ------------------
  |  Branch (4196:8): [True: 125k, False: 12.1k]
  ------------------
 4197|   125k|				ucl_object_t *cp = ucl_object_copy_internal(cur, other->type == UCL_OBJECT);
 4198|       |
 4199|   125k|				if (cp == NULL) {
  ------------------
  |  Branch (4199:9): [True: 0, False: 125k]
  ------------------
 4200|      0|					goto fail;
 4201|      0|				}
 4202|   125k|				if (!(other->type == UCL_ARRAY ? ucl_array_append(new, cp) :
  ------------------
  |  Branch (4202:9): [True: 0, False: 125k]
  |  Branch (4202:11): [True: 115k, False: 9.75k]
  ------------------
 4203|   125k|					  ucl_object_insert_key(new, cp, cp->key, cp->keylen, false))) {
 4204|      0|					ucl_object_unref(cp);
 4205|      0|					goto fail;
 4206|      0|				}
 4207|   125k|			}
 4208|  12.1k|			if (iter_error != 0) {
  ------------------
  |  Branch (4208:8): [True: 0, False: 12.1k]
  ------------------
 4209|      0|				goto fail;
 4210|      0|			}
 4211|  12.1k|		}
 4212|   115k|		else if (allow_array && other->next != NULL) {
  ------------------
  |  Branch (4212:12): [True: 439, False: 114k]
  |  Branch (4212:27): [True: 162, False: 277]
  ------------------
 4213|    162|			LL_FOREACH(other->next, cur)
  ------------------
  |  |  416|    162|    LL_FOREACH2(head,el,next)
  |  |  ------------------
  |  |  |  |  419|    671|    for ((el) = (head); el; (el) = (el)->next)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (419:25): [True: 509, False: 162]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4214|    509|			{
 4215|    509|				ucl_object_t *cp = ucl_object_copy_internal(cur, false);
 4216|    509|				if (cp == NULL) {
  ------------------
  |  Branch (4216:9): [True: 0, False: 509]
  ------------------
 4217|      0|					goto fail;
 4218|      0|				}
 4219|    509|				DL_APPEND(new, cp);
  ------------------
  |  |  639|    509|    DL_APPEND2(head,add,prev,next)
  |  |  ------------------
  |  |  |  |  641|    509|#define DL_APPEND2(head,add,prev,next)                                                         \
  |  |  |  |  642|    509|do {                                                                                           \
  |  |  |  |  643|    509|  if (head) {                                                                                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (643:7): [True: 509, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  644|    509|      (add)->prev = (head)->prev;                                                              \
  |  |  |  |  645|    509|      (head)->prev->next = (add);                                                              \
  |  |  |  |  646|    509|      (head)->prev = (add);                                                                    \
  |  |  |  |  647|    509|      (add)->next = NULL;                                                                      \
  |  |  |  |  648|    509|  } else {                                                                                     \
  |  |  |  |  649|      0|      (head)=(add);                                                                            \
  |  |  |  |  650|      0|      (head)->prev = (head);                                                                   \
  |  |  |  |  651|      0|      (head)->next = NULL;                                                                     \
  |  |  |  |  652|      0|  }                                                                                            \
  |  |  |  |  653|    509|} while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (653:10): [Folded, False: 509]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4220|    509|			}
 4221|    162|		}
 4222|   127k|	}
 4223|       |
 4224|   127k|	return new;
 4225|       |
 4226|      0|fail:
 4227|      0|	ucl_object_iterate_end(other, &it);
 4228|       |	/* A failed userdata copy must not run the source's destructor. */
 4229|      0|	if (new->type == UCL_USERDATA) {
  ------------------
  |  Branch (4229:6): [True: 0, False: 0]
  ------------------
 4230|      0|		((struct ucl_object_userdata *) new)->dtor = NULL;
 4231|      0|	}
 4232|      0|	ucl_object_unref(new);
 4233|       |	return NULL;
 4234|   127k|}

ucl_parser.c:utstring_printf_va:
  148|  14.4k|_UNUSED_ static void utstring_printf_va(UT_string *s, const char *fmt, va_list ap) {
  149|  14.4k|   int n;
  150|  14.4k|   va_list cp;
  151|  20.1k|   while (1) {
  ------------------
  |  Branch (151:11): [True: 20.1k, Folded]
  ------------------
  152|       |#ifdef _WIN32
  153|       |      cp = ap;
  154|       |#else
  155|  20.1k|      va_copy(cp, ap);
  156|  20.1k|#endif
  157|  20.1k|      n = vsnprintf (&s->d[s->i], s->n-s->i, fmt, cp);
  158|  20.1k|      va_end(cp);
  159|       |
  160|  20.1k|      if ((n > -1) && (n < (int)(s->n-s->i))) {
  ------------------
  |  Branch (160:11): [True: 20.1k, False: 0]
  |  Branch (160:23): [True: 14.4k, False: 5.61k]
  ------------------
  161|  14.4k|        s->i += n;
  162|  14.4k|        return;
  163|  14.4k|      }
  164|       |
  165|       |      /* Else try again with more space. */
  166|  5.61k|      if (n > -1) utstring_reserve(s,n+1); /* exact */
  ------------------
  |  |   52|  5.61k|#define utstring_reserve(s,amt)                            \
  |  |   53|  5.61k|do {                                                       \
  |  |   54|  5.61k|  if (((s)->n - (s)->i) < (size_t)(amt)) {                 \
  |  |  ------------------
  |  |  |  Branch (54:7): [True: 5.61k, False: 0]
  |  |  ------------------
  |  |   55|  5.61k|     (s)->d = (char*)realloc((s)->d, (s)->n + amt);        \
  |  |   56|  5.61k|     if ((s)->d == NULL) oom();                            \
  |  |  ------------------
  |  |  |  |   42|      0|#define oom abort
  |  |  ------------------
  |  |  |  Branch (56:10): [True: 0, False: 5.61k]
  |  |  ------------------
  |  |   57|  5.61k|     else {(s)->n += amt;                                  \
  |  |   58|  5.61k|     if ((s)->pd) *((s)->pd) = (s)->d;}                    \
  |  |  ------------------
  |  |  |  Branch (58:10): [True: 0, False: 5.61k]
  |  |  ------------------
  |  |   59|  5.61k|  }                                                        \
  |  |   60|  5.61k|} while(0)
  |  |  ------------------
  |  |  |  Branch (60:9): [Folded, False: 5.61k]
  |  |  ------------------
  ------------------
  |  Branch (166:11): [True: 5.61k, False: 0]
  ------------------
  167|       |      else utstring_reserve(s,(s->n)*2);   /* 2x */
  ------------------
  |  |   52|      0|#define utstring_reserve(s,amt)                            \
  |  |   53|      0|do {                                                       \
  |  |   54|      0|  if (((s)->n - (s)->i) < (size_t)(amt)) {                 \
  |  |  ------------------
  |  |  |  Branch (54:7): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|     (s)->d = (char*)realloc((s)->d, (s)->n + amt);        \
  |  |   56|      0|     if ((s)->d == NULL) oom();                            \
  |  |  ------------------
  |  |  |  |   42|      0|#define oom abort
  |  |  ------------------
  |  |  |  Branch (56:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|     else {(s)->n += amt;                                  \
  |  |   58|      0|     if ((s)->pd) *((s)->pd) = (s)->d;}                    \
  |  |  ------------------
  |  |  |  Branch (58:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|  }                                                        \
  |  |   60|      0|} while(0)
  |  |  ------------------
  |  |  |  Branch (60:9): [Folded, False: 0]
  |  |  ------------------
  ------------------
  168|  5.61k|   }
  169|  14.4k|}
ucl_parser.c:utstring_printf:
  175|  10.7k|_UNUSED_ static void utstring_printf(UT_string *s, const char *fmt, ...) {
  176|  10.7k|   va_list ap;
  177|  10.7k|   va_start(ap,fmt);
  178|  10.7k|   utstring_printf_va(s,fmt,ap);
  179|       |   va_end(ap);
  180|  10.7k|}
ucl_util.c:utstring_printf_va:
  148|  5.65k|_UNUSED_ static void utstring_printf_va(UT_string *s, const char *fmt, va_list ap) {
  149|  5.65k|   int n;
  150|  5.65k|   va_list cp;
  151|  6.01k|   while (1) {
  ------------------
  |  Branch (151:11): [True: 6.01k, Folded]
  ------------------
  152|       |#ifdef _WIN32
  153|       |      cp = ap;
  154|       |#else
  155|  6.01k|      va_copy(cp, ap);
  156|  6.01k|#endif
  157|  6.01k|      n = vsnprintf (&s->d[s->i], s->n-s->i, fmt, cp);
  158|  6.01k|      va_end(cp);
  159|       |
  160|  6.01k|      if ((n > -1) && (n < (int)(s->n-s->i))) {
  ------------------
  |  Branch (160:11): [True: 6.01k, False: 0]
  |  Branch (160:23): [True: 5.65k, False: 356]
  ------------------
  161|  5.65k|        s->i += n;
  162|  5.65k|        return;
  163|  5.65k|      }
  164|       |
  165|       |      /* Else try again with more space. */
  166|    356|      if (n > -1) utstring_reserve(s,n+1); /* exact */
  ------------------
  |  |   52|    356|#define utstring_reserve(s,amt)                            \
  |  |   53|    356|do {                                                       \
  |  |   54|    356|  if (((s)->n - (s)->i) < (size_t)(amt)) {                 \
  |  |  ------------------
  |  |  |  Branch (54:7): [True: 356, False: 0]
  |  |  ------------------
  |  |   55|    356|     (s)->d = (char*)realloc((s)->d, (s)->n + amt);        \
  |  |   56|    356|     if ((s)->d == NULL) oom();                            \
  |  |  ------------------
  |  |  |  |   42|      0|#define oom abort
  |  |  ------------------
  |  |  |  Branch (56:10): [True: 0, False: 356]
  |  |  ------------------
  |  |   57|    356|     else {(s)->n += amt;                                  \
  |  |   58|    356|     if ((s)->pd) *((s)->pd) = (s)->d;}                    \
  |  |  ------------------
  |  |  |  Branch (58:10): [True: 0, False: 356]
  |  |  ------------------
  |  |   59|    356|  }                                                        \
  |  |   60|    356|} while(0)
  |  |  ------------------
  |  |  |  Branch (60:9): [Folded, False: 356]
  |  |  ------------------
  ------------------
  |  Branch (166:11): [True: 356, False: 0]
  ------------------
  167|       |      else utstring_reserve(s,(s->n)*2);   /* 2x */
  ------------------
  |  |   52|      0|#define utstring_reserve(s,amt)                            \
  |  |   53|      0|do {                                                       \
  |  |   54|      0|  if (((s)->n - (s)->i) < (size_t)(amt)) {                 \
  |  |  ------------------
  |  |  |  Branch (54:7): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|     (s)->d = (char*)realloc((s)->d, (s)->n + amt);        \
  |  |   56|      0|     if ((s)->d == NULL) oom();                            \
  |  |  ------------------
  |  |  |  |   42|      0|#define oom abort
  |  |  ------------------
  |  |  |  Branch (56:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   57|      0|     else {(s)->n += amt;                                  \
  |  |   58|      0|     if ((s)->pd) *((s)->pd) = (s)->d;}                    \
  |  |  ------------------
  |  |  |  Branch (58:10): [True: 0, False: 0]
  |  |  ------------------
  |  |   59|      0|  }                                                        \
  |  |   60|      0|} while(0)
  |  |  ------------------
  |  |  |  Branch (60:9): [Folded, False: 0]
  |  |  ------------------
  ------------------
  168|    356|   }
  169|  5.65k|}

rtpp_acct_csv.c:rtpp_acct_csv_open:
  227|      2|{
  228|      2|    int pos;
  229|      2|    int r = 0;
  230|       |
  231|      2|    if (pvt->fd != -1) {
  ------------------
  |  Branch (231:9): [True: 0, False: 2]
  ------------------
  232|      0|        close(pvt->fd);
  233|      0|    }
  234|      2|    pvt->fd = open(pvt->fname, O_WRONLY | O_APPEND | O_CREAT, DEFFILEMODE);
  235|      2|    if (pvt->fd == -1) {
  ------------------
  |  Branch (235:9): [True: 0, False: 2]
  ------------------
  236|      0|        RTPP_ELOG(pvt->mself->log, RTPP_LOG_ERR, "can't open '%s' for writing",
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  236|      0|        RTPP_ELOG(pvt->mself->log, RTPP_LOG_ERR, "can't open '%s' for writing",
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  237|      0|          pvt->fname);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
  237|      0|          pvt->fname);
  238|      0|        goto e0;
  239|      0|    }
  240|      2|    pos = rtpp_acct_csv_lockf(pvt->fd);
  241|      2|    if (pos < 0) {
  ------------------
  |  Branch (241:9): [True: 0, False: 2]
  ------------------
  242|      0|        RTPP_ELOG(pvt->mself->log, RTPP_LOG_ERR, "can't lock '%s'", pvt->fname);
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  242|      0|        RTPP_ELOG(pvt->mself->log, RTPP_LOG_ERR, "can't lock '%s'", pvt->fname);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
  243|      0|        goto e1;
  244|      0|    }
  245|      2|    if (fstat(pvt->fd, &pvt->stt) < 0) {
  ------------------
  |  Branch (245:9): [True: 0, False: 2]
  ------------------
  246|      0|        RTPP_ELOG(pvt->mself->log, RTPP_LOG_ERR, "can't get stats for '%s'",
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  246|      0|        RTPP_ELOG(pvt->mself->log, RTPP_LOG_ERR, "can't get stats for '%s'",
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  247|      0|          pvt->fname);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
  247|      0|          pvt->fname);
  248|      0|        goto e2;
  249|      0|    }
  250|      2|    if (pvt->stt.st_size == 0) {
  ------------------
  |  Branch (250:9): [True: 0, False: 2]
  ------------------
  251|      0|        do {
  252|      0|            r = write(pvt->fd, head.s, head.len);
  253|      0|        } while (r < 0 && errno == EINTR);
  ------------------
  |  Branch (253:18): [True: 0, False: 0]
  |  Branch (253:27): [True: 0, False: 0]
  ------------------
  254|      0|        if (r > 0 && r < head.len)
  ------------------
  |  Branch (254:13): [True: 0, False: 0]
  |  Branch (254:22): [True: 0, False: 0]
  ------------------
  255|      0|            r = -1;
  256|      0|    }
  257|      2|    rtpp_acct_csv_unlockf(pvt->fd, pos);
  258|      2|    return (r);
  259|       |
  260|      0|e2:
  261|      0|    rtpp_acct_csv_unlockf(pvt->fd, pos);
  262|      0|e1:
  263|      0|    close(pvt->fd);
  264|      0|e0:
  265|      0|    return (-1);
  266|      0|}
rtpp_acct_csv.c:rtpp_acct_csv_lockf:
  489|      2|{
  490|      2|    struct flock l;
  491|      2|    int rval;
  492|       |
  493|      2|    memset(&l, '\0', sizeof(l));
  494|      2|    l.l_whence = SEEK_CUR;
  495|      2|    l.l_type = F_WRLCK;
  496|      2|    do {
  497|      2|        rval = fcntl(fd, F_SETLKW, &l);
  498|      2|    } while (rval == -1 && errno == EINTR);
  ------------------
  |  Branch (498:14): [True: 0, False: 2]
  |  Branch (498:28): [True: 0, False: 0]
  ------------------
  499|      2|    if (rval == -1) {
  ------------------
  |  Branch (499:9): [True: 0, False: 2]
  ------------------
  500|      0|        return (-1);
  501|      0|    }
  502|      2|    return lseek(fd, 0, SEEK_CUR);
  503|      2|}
rtpp_acct_csv.c:rtpp_acct_csv_unlockf:
  507|      2|{
  508|      2|    struct flock l;
  509|      2|    int rval;
  510|       |
  511|      2|    memset(&l, '\0', sizeof(l));
  512|      2|    l.l_whence = SEEK_SET;
  513|      2|    l.l_start = offset;
  514|      2|    l.l_type = F_UNLCK;
  515|      2|    do {
  516|      2|        rval = fcntl(fd, F_SETLKW, &l);
  517|      2|    } while (rval == -1 && errno == EINTR);
  ------------------
  |  Branch (517:14): [True: 0, False: 2]
  |  Branch (517:28): [True: 0, False: 0]
  ------------------
  518|      2|}
rtpp_acct_csv.c:rtpp_acct_csv_ctor:
  270|      2|{
  271|      2|    struct rtpp_module_priv *pvt;
  272|       |
  273|      2|    pvt = mod_zmalloc(sizeof(struct rtpp_module_priv));
  ------------------
  |  |  115|      2|#define mod_zmalloc(n) _MMFN._zmalloc((n))
  |  |  ------------------
  |  |  |  |   91|      2|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      2|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      2|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      2|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  274|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (274:9): [True: 0, False: 2]
  ------------------
  275|      0|        goto e0;
  276|      0|    }
  277|      2|    pvt->sbuf = rtpp_sbuf_ctor(head.len * 2);
  278|      2|    if (pvt->sbuf == NULL) {
  ------------------
  |  Branch (278:9): [True: 0, False: 2]
  ------------------
  279|      0|        goto e1;
  280|      0|    }
  281|      2|    pvt->pid = getpid();
  282|      2|    pvt->cwd_orig = cfsp->cwd_orig;
  283|      2|    if (gethostname(pvt->node_id, sizeof(pvt->node_id)) != 0) {
  ------------------
  |  Branch (283:9): [True: 0, False: 2]
  ------------------
  284|      0|        strcpy(pvt->node_id, "UNKNOWN");
  285|      0|    }
  286|      2|    pvt->fd = -1;
  287|      2|    pvt->mself = mself;
  288|      2|    return (pvt);
  289|       |
  290|      0|e1:
  291|      0|    mod_free(pvt);
  ------------------
  |  |  117|      0|#define mod_free(p) _MMFN._free((p))
  |  |  ------------------
  |  |  |  |   91|      0|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      0|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      0|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      0|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  292|      0|e0:
  293|       |    return (NULL);
  294|      0|}
rtpp_acct_csv.c:rtpp_acct_csv_config:
  299|      2|{
  300|      2|    const char *fname = DEFAULT_FNAME;
  ------------------
  |  |   97|      2|#define DEFAULT_FNAME		"rtpproxy_acct.csv"
  ------------------
  301|      2|    int len;
  302|       |
  303|      2|    if (mcpub != NULL) {
  ------------------
  |  Branch (303:9): [True: 2, False: 0]
  ------------------
  304|      2|        struct rtpp_module_conf_pvt *mcpvt;
  305|       |
  306|      2|        PUB2PVT(mcpub, mcpvt);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  307|      2|        if (mcpvt->conf.logfile != NULL)
  ------------------
  |  Branch (307:13): [True: 0, False: 2]
  ------------------
  308|      0|            fname = mcpvt->conf.logfile;
  309|      2|    }
  310|       |    /* Relative names are relative to the directory we have been started in */
  311|      2|    if (fname[0] == '/' || pvt->cwd_orig == NULL) {
  ------------------
  |  Branch (311:9): [True: 0, False: 2]
  |  Branch (311:28): [True: 2, False: 0]
  ------------------
  312|      2|        len = snprintf(pvt->fname, sizeof(pvt->fname), "%s", fname);
  313|      2|    } else {
  314|      0|        len = snprintf(pvt->fname, sizeof(pvt->fname), "%s/%s",
  315|      0|          pvt->cwd_orig, fname);
  316|      0|    }
  317|      2|    if (len < 0 || len >= (int)sizeof(pvt->fname)) {
  ------------------
  |  Branch (317:9): [True: 0, False: 2]
  |  Branch (317:20): [True: 0, False: 2]
  ------------------
  318|      0|        RTPP_LOG(pvt->mself->log, RTPP_LOG_ERR, "logfile name is too long: %s",
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  318|      0|        RTPP_LOG(pvt->mself->log, RTPP_LOG_ERR, "logfile name is too long: %s",
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  319|      0|          fname);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  319|      0|          fname);
  320|      0|        return (-1);
  321|      0|    }
  322|      2|    if (rtpp_acct_csv_open(pvt) == -1) {
  ------------------
  |  Branch (322:9): [True: 0, False: 2]
  ------------------
  323|      0|        return (-1);
  324|      0|    }
  325|      2|    return (0);
  326|      2|}
rtpp_acct_csv.c:rtpp_acct_csv_get_mconf:
  365|      2|{
  366|      2|    struct rtpp_module_conf_pvt *cp;
  367|       |
  368|      2|    cp = mod_rzmalloc(sizeof(*cp), PVT_RCOFFS(cp));
  ------------------
  |  |  116|      2|#define mod_rzmalloc(n, m) _MMFN._rzmalloc((n), m)
  |  |  ------------------
  |  |  |  |   91|      2|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      2|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      2|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      2|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  369|      2|    if (cp == NULL)
  ------------------
  |  Branch (369:9): [True: 0, False: 2]
  ------------------
  370|      0|        return (NULL);
  371|      2|    cp->pub.conf_data = &cp->conf;
  372|      2|    cp->pub.conf_map = acct_csv_conf_map;
  373|      2|    cp->pub.allow_noconf = 1;
  374|      2|    RTPP_OBJ_DTOR_ATTACH_s(&(cp->pub), mconf_dtor, &cp->conf);
  ------------------
  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
  375|      2|    return (&cp->pub);
  376|      2|}
rtpp_acct_csv.c:mconf_dtor:
  357|      2|{
  358|       |
  359|      2|    if (confp->logfile != NULL)
  ------------------
  |  Branch (359:9): [True: 0, False: 2]
  ------------------
  360|      2|        mod_free(confp->logfile);
  ------------------
  |  |  117|      0|#define mod_free(p) _MMFN._free((p))
  |  |  ------------------
  |  |  |  |   91|      0|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      0|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      0|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      0|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  361|      2|}
rtpp_acct_csv.c:rtpp_acct_csv_dtor:
  380|      2|{
  381|       |
  382|      2|    if (pvt->fd != -1)
  ------------------
  |  Branch (382:9): [True: 2, False: 0]
  ------------------
  383|      2|        close(pvt->fd);
  384|      2|    rtpp_sbuf_dtor(pvt->sbuf);
  385|      2|    mod_free(pvt);
  ------------------
  |  |  117|      2|#define mod_free(p) _MMFN._free((p))
  |  |  ------------------
  |  |  |  |   91|      2|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      2|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      2|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      2|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  386|      2|    return;
  387|      2|}

rtpp_catch_dtmf.c:rtpp_catch_dtmf_worker:
  180|      2|{
  181|      2|    struct rtpp_module_priv *pvt;
  182|      2|    struct rtpp_wi *wi;
  183|      2|    struct wipkt *wip;
  184|      2|    char buf[RTPP_MAX_NOTIFY_BUF];
  185|      2|    const char dtmf_events[] = "0123456789*#ABCD ";
  186|      2|    struct catch_dtmf_einfo *eip, ei;
  187|      2|    int i;
  188|       |
  189|      2|    pvt = wp->mpvt;
  190|      2|    for (;;) {
  191|      2|        wi = rtpp_queue_get_item(wp->mod_q, 0);
  192|      2|        if (wi == wp->sigterm) {
  ------------------
  |  Branch (192:13): [True: 2, False: 0]
  ------------------
  193|      2|            RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  194|      2|            break;
  195|      2|        }
  196|      0|        wip = rtpp_wi_data_get_ptr(wi, sizeof(*wip), sizeof(*wip));
  197|       |
  198|      0|        struct rtp_dtmf_event *dtmf =
  199|      0|            (struct rtp_dtmf_event *)(wip->pkt->data.buf + sizeof(rtp_hdr_t));
  200|      0|        if (dtmf->event >= sizeof(dtmf_events) - 1) {
  ------------------
  |  Branch (200:13): [True: 0, False: 0]
  ------------------
  201|      0|            RTPP_LOG(pvt->mself->log, RTPP_LOG_DBUG, "Unhandled DTMF event %u", dtmf->event);
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  201|      0|            RTPP_LOG(pvt->mself->log, RTPP_LOG_DBUG, "Unhandled DTMF event %u", dtmf->event);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   44|      0|#define	RTPP_LOG_DBUG	LOG_DEBUG
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  202|      0|            goto skip;
  203|      0|        }
  204|      0|        ei.digit = dtmf_events[dtmf->event];
  205|      0|        ei.ts = ntohl(wip->pkt->data.header.ts);
  206|      0|        ei.duration = ntohs(dtmf->duration);
  207|      0|        eip = NULL;
  208|      0|        for (i = 1; i <= EINFO_HST_DPTH; i++) {
  ------------------
  |  |   83|      0|#define EINFO_HST_DPTH 4
  ------------------
  |  Branch (208:21): [True: 0, False: 0]
  ------------------
  209|      0|            int j = wip->edata->hst_next - i;
  210|      0|            if (j < 0)
  ------------------
  |  Branch (210:17): [True: 0, False: 0]
  ------------------
  211|      0|                j = EINFO_HST_DPTH + j;
  ------------------
  |  |   83|      0|#define EINFO_HST_DPTH 4
  ------------------
  212|      0|            if (wip->edata->hst[j].ts == ei.ts && wip->edata->hst[j].digit != -1) {
  ------------------
  |  Branch (212:17): [True: 0, False: 0]
  |  Branch (212:51): [True: 0, False: 0]
  ------------------
  213|      0|                eip = &wip->edata->hst[j];
  214|      0|                break;
  215|      0|            }
  216|      0|        }
  217|       |
  218|      0|        if (eip == NULL) {
  ------------------
  |  Branch (218:13): [True: 0, False: 0]
  ------------------
  219|       |            /* this is a new event */
  220|      0|            eip = &wip->edata->hst[wip->edata->hst_next];
  221|      0|            eip->ts = ei.ts;
  222|      0|            eip->pending = 1;
  223|      0|            eip->digit = ei.digit;
  224|      0|            eip->duration = ei.duration;
  225|      0|            wip->edata->hst_next += 1;
  226|      0|            if (wip->edata->hst_next == EINFO_HST_DPTH)
  ------------------
  |  |   83|      0|#define EINFO_HST_DPTH 4
  ------------------
  |  Branch (226:17): [True: 0, False: 0]
  ------------------
  227|      0|                wip->edata->hst_next = 0;
  228|      0|            goto skip;
  229|      0|        }
  230|      0|        if (!eip->pending) {
  ------------------
  |  Branch (230:13): [True: 0, False: 0]
  ------------------
  231|      0|            if (!dtmf->end && eip->duration <= ei.duration)
  ------------------
  |  Branch (231:17): [True: 0, False: 0]
  |  Branch (231:31): [True: 0, False: 0]
  ------------------
  232|      0|                RTPP_LOG(pvt->mself->log, RTPP_LOG_WARN, "Received DTMF for %c without "
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  232|      0|                RTPP_LOG(pvt->mself->log, RTPP_LOG_WARN, "Received DTMF for %c without "
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   46|      0|#define	RTPP_LOG_WARN	LOG_WARNING
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  233|      0|                        "start %d", ei.digit, eip->pending);
  234|      0|            goto skip;
  235|      0|        }
  236|       |
  237|      0|        if (ei.digit != eip->digit) {
  ------------------
  |  Branch (237:13): [True: 0, False: 0]
  ------------------
  238|      0|            RTPP_LOG(pvt->mself->log, RTPP_LOG_WARN, "Received DTMF for %c "
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  238|      0|            RTPP_LOG(pvt->mself->log, RTPP_LOG_WARN, "Received DTMF for %c "
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   46|      0|#define	RTPP_LOG_WARN	LOG_WARNING
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  239|      0|                    "while processing %c", ei.digit, eip->digit);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  239|      0|                    "while processing %c", ei.digit, eip->digit);
  240|      0|            goto skip;
  241|      0|        }
  242|      0|        if (eip->duration < ei.duration)
  ------------------
  |  Branch (242:13): [True: 0, False: 0]
  ------------------
  243|      0|            eip->duration = ei.duration;
  244|       |
  245|      0|        if (!dtmf->end)
  ------------------
  |  Branch (245:13): [True: 0, False: 0]
  ------------------
  246|      0|            goto skip;
  247|       |        /* we received the end of the DTMF */
  248|       |        /* all good - send the notification */
  249|      0|        eip->pending = 0;
  250|      0|        rtpp_str_const_t notify_tag = {.s = buf};
  251|      0|        notify_tag.len = snprintf(buf, RTPP_MAX_NOTIFY_BUF, "%.*s %c %u %u %d",
  ------------------
  |  |  175|      0|#define RTPP_MAX_NOTIFY_BUF 512
  ------------------
  252|      0|          FMTSTR(wip->rtdp->notify_tag), ei.digit, dtmf->volume, eip->duration,
  ------------------
  |  |   68|      0|#define FMTSTR(sp) (int)(sp)->len, (sp)->s
  ------------------
  253|      0|          (wip->edata->side == RTPP_SSIDE_CALLER) ? 0 : 1);
  ------------------
  |  Branch (253:11): [True: 0, False: 0]
  ------------------
  254|      0|        CALL_METHOD(pvt->notifier, schedule, wip->rtdp->notify_target,
  ------------------
  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  ------------------
  |  |  |  |  254|      0|        CALL_METHOD(pvt->notifier, schedule, wip->rtdp->notify_target,
  |  |  |  |  255|      0|          rtpp_str_fix(&notify_tag), notyfy_type);
  |  |  |  |  ------------------
  |  |  |  |  |  |   57|      0|#define rtpp_str_fix(src) ((const rtpp_str_t *)(src))
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  255|      0|          rtpp_str_fix(&notify_tag), notyfy_type);
  256|       |
  257|      0|skip:
  258|      0|        RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  259|      0|    }
  260|      2|}
rtpp_catch_dtmf.c:rtpp_catch_dtmf_ctor:
  437|      2|{
  438|      2|    struct rtpp_module_priv *pvt;
  439|       |
  440|      2|    pvt = mod_zmalloc(sizeof(struct rtpp_module_priv));
  ------------------
  |  |  115|      2|#define mod_zmalloc(n) _MMFN._zmalloc((n))
  |  |  ------------------
  |  |  |  |   91|      2|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      2|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      2|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      2|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  441|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (441:9): [True: 0, False: 2]
  ------------------
  442|      0|        goto e0;
  443|      0|    }
  444|      2|    pvt->notifier = cfsp->rtpp_notify_cf;
  445|      2|    pvt->mself = mself;
  446|      2|    return (pvt);
  447|       |
  448|      0|e0:
  449|       |    return (NULL);
  450|      2|}
rtpp_catch_dtmf.c:rtpp_catch_dtmf_dtor:
  454|      2|{
  455|       |
  456|      2|    mod_free(pvt);
  ------------------
  |  |  117|      2|#define mod_free(p) _MMFN._free((p))
  |  |  ------------------
  |  |  |  |   91|      2|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      2|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      2|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      2|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  457|      2|    return;
  458|      2|}

rtpp_dtls_ctor:
   84|      2|{
   85|      2|    struct rtpp_dtls_priv *pvt;
   86|       |
   87|      2|    pvt = mod_rzmalloc(sizeof(*pvt), PVT_RCOFFS(pvt));
  ------------------
  |  |  116|      2|#define mod_rzmalloc(n, m) _MMFN._rzmalloc((n), m)
  |  |  ------------------
  |  |  |  |   91|      2|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      2|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      2|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      2|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   88|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (88:9): [True: 0, False: 2]
  ------------------
   89|      0|        goto e0;
   90|      0|    }
   91|      2|    pvt->ctx = SSL_CTX_new(DTLS_method());
   92|      2|    if (pvt->ctx == NULL) {
  ------------------
  |  Branch (92:9): [True: 0, False: 2]
  ------------------
   93|      0|        ERR_clear_error();
   94|      0|        goto e1;
   95|      0|    }
   96|      2|    pvt->cert = tls_set_selfsigned_ec(pvt->ctx, cn, ecname);
   97|      2|    if (pvt->cert == NULL) {
  ------------------
  |  Branch (97:9): [True: 0, False: 2]
  ------------------
   98|      0|        ERR_clear_error();
   99|      0|        goto e2;
  100|      0|    }
  101|      2|    tls_set_verify_client(pvt->ctx);
  102|      2|    if (SSL_CTX_set_tlsext_use_srtp(pvt->ctx, srtp_profiles) != 0) {
  ------------------
  |  Branch (102:9): [True: 0, False: 2]
  ------------------
  103|      0|        ERR_clear_error();
  104|      0|        goto e3;
  105|      0|    }
  106|      2|    if (rtpp_dtls_fp_gen(pvt->cert, pvt->fingerprint,
  ------------------
  |  Branch (106:9): [True: 0, False: 2]
  ------------------
  107|      2|      sizeof(pvt->fingerprint)) != 0) {
  108|      0|        goto e3;
  109|      0|    }
  110|      2|    pvt->pub.fingerprint = pvt->fingerprint;
  111|      2|    pvt->pub.newconn = &rtpp_dtls_newconn;
  112|      2|    pvt->cfsp = cfsp;
  113|      2|    pvt->mself = mself;
  114|      2|    RTPP_OBJ_DTOR_ATTACH_s(&pvt->pub, (rtpp_refcnt_dtor_t)rtpp_dtls_dtor, pvt);
  ------------------
  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
  115|      2|    return (&(pvt->pub));
  116|      0|e3:
  117|      0|    X509_free(pvt->cert);
  118|      0|e2:
  119|      0|    SSL_CTX_free(pvt->ctx);
  120|      0|e1:
  121|      0|    mod_free(pvt);
  ------------------
  |  |  117|      0|#define mod_free(p) _MMFN._free((p))
  |  |  ------------------
  |  |  |  |   91|      0|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      0|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      0|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      0|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  122|      0|e0:
  123|       |    return (NULL);
  124|      0|}
rtpp_dtls.c:rtpp_dtls_dtor:
   76|      2|{
   77|       |
   78|      2|    X509_free(pvt->cert);
   79|      2|    SSL_CTX_free(pvt->ctx);
   80|      2|}
rtpp_dtls.c:tls_set_verify_client:
  163|      2|{
  164|       |
  165|      2|    SSL_CTX_set_verify_depth(ctx, 0);
  166|      2|    SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE,
  167|      2|      verify_trust_all);
  168|      2|}
rtpp_dtls.c:tls_set_selfsigned_ec:
  220|      2|{
  221|       |#if OPENSSL_VERSION_MAJOR < 3
  222|       |    EC_KEY *eckey;
  223|       |    int eccgrp;
  224|       |#endif
  225|      2|    EVP_PKEY *key;
  226|      2|    X509 *cert;
  227|      2|    int r;
  228|       |
  229|      2|#if OPENSSL_VERSION_MAJOR >= 3
  230|      2|    key = EVP_EC_gen(curve_n);
  231|      2|    if (!key) {
  ------------------
  |  Branch (231:9): [True: 0, False: 2]
  ------------------
  232|      0|        goto e0;
  233|      0|    }
  234|       |#else
  235|       |    key = EVP_PKEY_new();
  236|       |    if (!key)
  237|       |        goto e0;
  238|       |
  239|       |    eccgrp = OBJ_txt2nid(curve_n);
  240|       |    if (eccgrp == NID_undef)
  241|       |        goto e1;
  242|       |
  243|       |    eckey = EC_KEY_new_by_curve_name(eccgrp);
  244|       |    if (!eckey)
  245|       |        goto e1;
  246|       |
  247|       |    if (!EC_KEY_generate_key(eckey))
  248|       |        goto e2;
  249|       |
  250|       |#if OPENSSL_VERSION_NUMBER >= 0x10100000L
  251|       |    EC_KEY_set_asn1_flag(eckey, OPENSSL_EC_NAMED_CURVE);
  252|       |#else
  253|       |    EC_KEY_set_asn1_flag(eckey, 0);
  254|       |#endif
  255|       |
  256|       |    if (!EVP_PKEY_set1_EC_KEY(key, eckey))
  257|       |        goto e2;
  258|       |#endif /* OPENSSL_VERSION_MAJOR */
  259|       |
  260|      2|    cert = tls_generate_cert(cn);
  261|      2|    if (cert == NULL)
  ------------------
  |  Branch (261:9): [True: 0, False: 2]
  ------------------
  262|      0|        goto e2;
  263|       |
  264|      2|    if (!X509_set_pubkey(cert, key))
  ------------------
  |  Branch (264:9): [True: 0, False: 2]
  ------------------
  265|      0|        goto e3;
  266|       |
  267|      2|    if (!X509_sign(cert, key, EVP_sha256()))
  ------------------
  |  Branch (267:9): [True: 0, False: 2]
  ------------------
  268|      0|        goto e3;
  269|       |
  270|      2|    r = SSL_CTX_use_certificate(ctx, cert);
  271|      2|    if (r != 1)
  ------------------
  |  Branch (271:9): [True: 0, False: 2]
  ------------------
  272|      0|        goto e3;
  273|       |
  274|      2|    r = SSL_CTX_use_PrivateKey(ctx, key);
  275|      2|    if (r != 1)
  ------------------
  |  Branch (275:9): [True: 0, False: 2]
  ------------------
  276|      0|        goto e3;
  277|       |
  278|       |#if OPENSSL_VERSION_MAJOR < 3
  279|       |    EC_KEY_free(eckey);
  280|       |#endif
  281|      2|    EVP_PKEY_free(key);
  282|      2|    return cert;
  283|      0|e3:
  284|      0|    X509_free(cert);
  285|      0|e2:
  286|       |#if OPENSSL_VERSION_MAJOR < 3
  287|       |    EC_KEY_free(eckey);
  288|       |e1:
  289|       |#endif
  290|      0|    EVP_PKEY_free(key);
  291|      0|e0:
  292|       |    return (NULL);
  293|      0|}
rtpp_dtls.c:tls_generate_cert:
  172|      2|{
  173|      2|    X509 *cert;
  174|      2|    X509_NAME *subj;
  175|       |
  176|      2|    cert = X509_new();
  177|      2|    if (!cert)
  ------------------
  |  Branch (177:9): [True: 0, False: 2]
  ------------------
  178|      0|        goto e0;
  179|       |
  180|      2|    if (!X509_set_version(cert, 2))
  ------------------
  |  Branch (180:9): [True: 0, False: 2]
  ------------------
  181|      0|        goto e1;
  182|       |
  183|      2|    if (!ASN1_INTEGER_set(X509_get_serialNumber(cert), dtls_rand_u32()))
  ------------------
  |  Branch (183:9): [True: 0, False: 2]
  ------------------
  184|      0|        goto e1;
  185|       |
  186|      2|    subj = X509_NAME_new();
  187|      2|    if (!subj)
  ------------------
  |  Branch (187:9): [True: 0, False: 2]
  ------------------
  188|      0|        goto e1;
  189|       |
  190|      2|    if (!X509_NAME_add_entry_by_txt(subj, "CN", MBSTRING_ASC,
  ------------------
  |  Branch (190:9): [True: 0, False: 2]
  ------------------
  191|      2|        (unsigned char *)cn, (int)strlen(cn), -1, 0))
  192|      0|        goto e2;
  193|       |
  194|      2|    if (!X509_set_issuer_name(cert, subj) ||
  ------------------
  |  Branch (194:9): [True: 0, False: 2]
  ------------------
  195|      2|      !X509_set_subject_name(cert, subj))
  ------------------
  |  Branch (195:7): [True: 0, False: 2]
  ------------------
  196|      0|        goto e2;
  197|       |
  198|      2|#if OPENSSL_VERSION_NUMBER >= 0x10100000L
  199|      2|    if (!X509_gmtime_adj(X509_getm_notBefore(cert), -3600*24*365) ||
  ------------------
  |  Branch (199:9): [True: 0, False: 2]
  ------------------
  200|      2|      !X509_gmtime_adj(X509_getm_notAfter(cert),   3600*24*365*10))
  ------------------
  |  Branch (200:7): [True: 0, False: 2]
  ------------------
  201|      0|        goto e2;
  202|       |#else
  203|       |    if (!X509_gmtime_adj(X509_get_notBefore(cert), -3600*24*365) ||
  204|       |      !X509_gmtime_adj(X509_get_notAfter(cert),   3600*24*365*10))
  205|       |        goto e2;
  206|       |#endif
  207|       |
  208|      2|    X509_NAME_free(subj);
  209|      2|    return (cert);
  210|      0|e2:
  211|      0|    X509_NAME_free(subj);
  212|      0|e1:
  213|      0|    X509_free(cert);
  214|      0|e0:
  215|       |    return (NULL);
  216|      0|}
rtpp_dtls.c:dtls_rand_u32:
  144|      2|{
  145|      2|    uint32_t v;
  146|       |
  147|      2|    v = 0;
  148|      2|    assert(RAND_bytes((unsigned char *)&v, sizeof(v)) == 1);
  ------------------
  |  Branch (148:5): [True: 2, False: 0]
  ------------------
  149|      2|    return v;
  150|      2|}

rtpp_dtls_gw.c:rtpp_dtls_gw_worker:
  150|      2|{
  151|      2|    struct rtpp_wi *wi;
  152|      2|    struct wipkt *wip;
  153|      2|    struct res_loc res;
  154|       |
  155|      2|    for (;;) {
  156|      2|        wi = rtpp_queue_get_item(wp->mod_q, 0);
  157|      2|        if (wi == wp->sigterm) {
  ------------------
  |  Branch (157:13): [True: 2, False: 0]
  ------------------
  158|      2|            RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  159|      2|            break;
  160|      2|        }
  161|      0|        wip = rtpp_wi_data_get_ptr(wi, sizeof(*wip), sizeof(*wip));
  162|      0|        struct rtpp_dtls_gw_aux *edp = &wip->edata;
  163|      0|        switch (edp->direction) {
  164|      0|        case DTLS_IN:
  ------------------
  |  Branch (164:9): [True: 0, False: 0]
  ------------------
  165|       |#if 0
  166|       |            RTPP_LOG(edp->mself->log, RTPP_LOG_DBUG, "Packet from DTLS");
  167|       |#endif
  168|      0|            CALL_SMETHOD(edp->dtls_conn, dtls_recv, wip->pktx.pktp);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  169|      0|            res = RES_HERE(1);
  ------------------
  |  |   52|      0|#define RES_HERE(res) (struct res_loc){(res), HEREVAL}
  |  |  ------------------
  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  ------------------
  ------------------
  170|      0|            break;
  171|      0|        case SRTP_IN:
  ------------------
  |  Branch (171:9): [True: 0, False: 0]
  ------------------
  172|       |#if 0
  173|       |            RTPP_LOG(RTPP_MOD_SELF.log, RTPP_LOG_DBUG, "DTLS: packet SRTP->RTP");
  174|       |#endif
  175|      0|            res = CALL_SMETHOD(edp->dtls_conn, srtp_recv, &wip->pktx);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  176|      0|            break;
  177|      0|        case RTP_OUT:
  ------------------
  |  Branch (177:9): [True: 0, False: 0]
  ------------------
  178|       |#if 0
  179|       |            RTPP_LOG(RTPP_MOD_SELF.log, RTPP_LOG_DBUG, "DTLS: packet RTP->SRTP");
  180|       |#endif
  181|      0|            res = CALL_SMETHOD(edp->dtls_conn, rtp_send, &wip->pktx);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  182|      0|            break;
  183|      0|        default:
  ------------------
  |  Branch (183:9): [True: 0, False: 0]
  ------------------
  184|      0|            abort();
  185|      0|        }
  186|      0|        if (res.v != 0) {
  ------------------
  |  Branch (186:13): [True: 0, False: 0]
  ------------------
  187|      0|            switch (edp->direction) {
  ------------------
  |  Branch (187:21): [True: 0, False: 0]
  ------------------
  188|      0|            case DTLS_IN:
  ------------------
  |  Branch (188:13): [True: 0, False: 0]
  ------------------
  189|      0|                break;
  190|      0|            case SRTP_IN:
  ------------------
  |  Branch (190:13): [True: 0, False: 0]
  ------------------
  191|      0|                CALL_SMETHOD(wip->pktx.strmp_in->pcnt_strm, reg_pktin, wip->pktx.pktp);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  192|       |                /* Fallthrouth */
  193|      0|            case RTP_OUT:
  ------------------
  |  Branch (193:13): [True: 0, False: 0]
  ------------------
  194|      0|                CALL_SMETHOD(wip->pktx.strmp_in->pcount, reg_drop, res.loc);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  195|      0|                CALL_SMETHOD(wip->pktx.strmp_in->pproc_manager, reg_drop);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  196|      0|                break;
  197|      0|            }
  198|      0|            RTPP_OBJ_DECREF(wip->pktx.pktp);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  199|      0|        }
  200|      0|        RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  201|      0|    }
  202|      2|}
rtpp_dtls_gw.c:rtpp_dtls_gw_ctor:
  546|      2|{
  547|      2|    struct rtpp_module_priv *pvt;
  548|      2|    static int srtp_inited = 0;
  549|       |
  550|      2|    pvt = mod_zmalloc(sizeof(struct rtpp_module_priv));
  ------------------
  |  |  115|      2|#define mod_zmalloc(n) _MMFN._zmalloc((n))
  |  |  ------------------
  |  |  |  |   91|      2|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      2|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      2|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      2|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  551|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (551:9): [True: 0, False: 2]
  ------------------
  552|      0|        goto e0;
  553|      0|    }
  554|      2|    pvt->dtls_ctx = rtpp_dtls_ctor(cfsp, mself);
  555|      2|    if (pvt->dtls_ctx == NULL) {
  ------------------
  |  Branch (555:9): [True: 0, False: 2]
  ------------------
  556|      0|        goto e1;
  557|      0|    }
  558|      2|    if (!srtp_inited && srtp_init() != 0) {
  ------------------
  |  Branch (558:9): [True: 2, False: 0]
  |  Branch (558:25): [True: 0, False: 2]
  ------------------
  559|      0|        goto e2;
  560|      0|    }
  561|      2|    srtp_inited = 1;
  562|      2|    pvt->cfsp = cfsp;
  563|      2|    pvt->mself = mself;
  564|      2|    return (pvt);
  565|      0|e2:
  566|      0|    RTPP_OBJ_DECREF(pvt->dtls_ctx);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  567|      0|e1:
  568|      0|    mod_free(pvt);
  ------------------
  |  |  117|      0|#define mod_free(p) _MMFN._free((p))
  |  |  ------------------
  |  |  |  |   91|      0|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      0|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      0|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      0|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  569|      0|e0:
  570|       |    return (NULL);
  571|      0|}
rtpp_dtls_gw.c:rtpp_dtls_gw_dtor:
  575|      2|{
  576|       |
  577|      2|    srtp_shutdown();
  578|      2|    RTPP_OBJ_DECREF(pvt->dtls_ctx);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  579|      2|    mod_free(pvt);
  ------------------
  |  |  117|      2|#define mod_free(p) _MMFN._free((p))
  |  |  ------------------
  |  |  |  |   91|      2|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      2|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      2|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      2|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  580|      2|    return;
  581|      2|}

rtpp_dtls_fp_gen:
   36|      2|{
   37|      2|    uint8_t fp[FP_DIGEST_LEN] = {0};
   38|      2|    unsigned int fp_len, i;
   39|       |
   40|      2|    if (len < FP_DIGEST_STRBUF_LEN)
  ------------------
  |  |   35|      2|#define FP_DIGEST_STRBUF_LEN (FP_DIGEST_STR_LEN + 1)
  |  |  ------------------
  |  |  |  |   33|      2|#define FP_DIGEST_STR_LEN ((sizeof(FP_DIGEST_ALG) - 1) + 1 + \
  |  |  |  |  ------------------
  |  |  |  |  |  |   29|      2|#define FP_DIGEST_ALG "SHA-256"
  |  |  |  |  ------------------
  |  |  |  |   34|      2|  FP_FINGERPRINT_STR_LEN)
  |  |  |  |  ------------------
  |  |  |  |  |  |   32|      2|#define FP_FINGERPRINT_STR_LEN ((FP_DIGEST_LEN * 2) + (FP_DIGEST_LEN - 1))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   31|      2|#define FP_DIGEST_LEN 32
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |               #define FP_FINGERPRINT_STR_LEN ((FP_DIGEST_LEN * 2) + (FP_DIGEST_LEN - 1))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   31|      2|#define FP_DIGEST_LEN 32
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (40:9): [True: 0, False: 2]
  ------------------
   41|      0|        return (-1);
   42|      2|    fp_len = sizeof(fp);
   43|      2|    if (X509_digest(cert, EVP_sha256(), fp, &fp_len) != 1) {
  ------------------
  |  Branch (43:9): [True: 0, False: 2]
  ------------------
   44|      0|        ERR_clear_error();
   45|      0|        return (-1);
   46|      0|    }
   47|      2|    memcpy(buf, FP_DIGEST_ALG, sizeof(FP_DIGEST_ALG) - 1);
  ------------------
  |  |   29|      2|#define FP_DIGEST_ALG "SHA-256"
  ------------------
                  memcpy(buf, FP_DIGEST_ALG, sizeof(FP_DIGEST_ALG) - 1);
  ------------------
  |  |   29|      2|#define FP_DIGEST_ALG "SHA-256"
  ------------------
   48|      2|    buf += sizeof(FP_DIGEST_ALG) - 1;
  ------------------
  |  |   29|      2|#define FP_DIGEST_ALG "SHA-256"
  ------------------
   49|      2|    buf[0] = ' ';
   50|      2|    buf++;
   51|     66|    for (i = 0; i < FP_DIGEST_LEN; i++) {
  ------------------
  |  |   31|     66|#define FP_DIGEST_LEN 32
  ------------------
  |  Branch (51:17): [True: 64, False: 2]
  ------------------
   52|     64|        sprintf(buf, "%.2X", fp[i]);
   53|     64|        buf += 2;
   54|     64|        if (i != (FP_DIGEST_LEN - 1)) {
  ------------------
  |  |   31|     64|#define FP_DIGEST_LEN 32
  ------------------
  |  Branch (54:13): [True: 62, False: 2]
  ------------------
   55|     62|            buf[0] = ':';
   56|     62|            buf++;
   57|     62|        }
   58|     64|    }
   59|      2|    return (0);
   60|      2|}

rtpp_ice_lite.c:rtpp_ice_lite_worker:
  234|      2|{
  235|      2|    struct rtpp_wi *wi;
  236|      2|    struct wipkt *wip;
  237|      2|    struct rtp_packet *pkt;
  238|      2|    struct mbuf *mb;
  239|      2|    struct ice_lite_agent_cfg *ila_c;
  240|       |
  241|      2|    for (;;) {
  242|      2|        wi = rtpp_queue_get_item(wp->mod_q, 0);
  243|      2|        if (wi == wp->sigterm) {
  ------------------
  |  Branch (243:13): [True: 2, False: 0]
  ------------------
  244|      2|            RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  245|      2|            break;
  246|      2|        }
  247|      0|        wip = rtpp_wi_data_get_ptr(wi, sizeof(*wip), sizeof(*wip));
  248|      0|        pkt = wip->pkt;
  249|      0|        ila_c = wip->ila_c;
  250|      0|        pthread_mutex_lock(&ila_c->state_lock);
  251|      0|        mb = ila_c->mb;
  252|      0|        assert(pkt->size <= mb->size);
  ------------------
  |  Branch (252:9): [True: 0, False: 0]
  ------------------
  253|      0|        memcpy(mb->buf, pkt->data.buf, pkt->size);
  254|      0|        mb->end = pkt->size;
  255|      0|        struct sa raddr = {0};
  256|      0|        rtpp2re_sa(&raddr, sstosa(&pkt->raddr));
  ------------------
  |  |   85|      0|#define	sstosa(ss)	((struct sockaddr *)(ss))
  ------------------
  257|      0|        ila_c->sock->strmp_in = wip->strmp_in;
  258|      0|        if (ila_c->sock->rh == NULL)
  ------------------
  |  Branch (258:13): [True: 0, False: 0]
  ------------------
  259|      0|            goto out;
  260|      0|        ila_c->sock->rh(&raddr, mb, ila_c->sock->rh_arg);
  261|      0|        bool completed = iscompleted(ila_c->icem);
  ------------------
  |  |   88|      0|# define bool _Bool
  |  |  ------------------
  |  |  |  |   85|      0|#   define _Bool signed char
  |  |  ------------------
  ------------------
  262|      0|        if (!ila_iscompleted(ila_c) && completed) {
  ------------------
  |  Branch (262:13): [True: 0, False: 0]
  |  Branch (262:40): [True: 0, False: 0]
  ------------------
  263|      0|            RTPP_LOG(ila_c->sock->strmp_in->log, RTPP_LOG_INFO, "ICE completed");
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  263|      0|            RTPP_LOG(ila_c->sock->strmp_in->log, RTPP_LOG_INFO, "ICE completed");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   45|      0|#define	RTPP_LOG_INFO	LOG_INFO
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  264|      0|            CALL_SMETHOD(ila_c->sock->strmp_in, latch_setmode, RTPLM_FORCE_ON);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  265|      0|            CALL_SMETHOD(ila_c->sock->strmp_in, latch, pkt);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  266|      0|            atomic_store_explicit(&ila_c->completed, true, memory_order_relaxed);
  ------------------
  |  |   90|      0|# define true 1
  ------------------
  267|      0|        }
  268|      0|out:
  269|      0|        pthread_mutex_unlock(&ila_c->state_lock);
  270|      0|        RTPP_OBJ_DECREF(pkt);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  271|      0|        RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  272|      0|    }
  273|      2|}
rtpp_ice_lite.c:rtpp_ice_lite_ctor:
  753|      2|{
  754|      2|    struct rtpp_module_priv *pvt;
  755|       |
  756|      2|    pvt = mod_zmalloc(sizeof(struct rtpp_module_priv));
  ------------------
  |  |  115|      2|#define mod_zmalloc(n) _MMFN._zmalloc((n))
  |  |  ------------------
  |  |  |  |   91|      2|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      2|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      2|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      2|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  757|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (757:9): [True: 0, False: 2]
  ------------------
  758|      0|        goto e0;
  759|      0|    }
  760|       |#ifdef RTPP_CHECK_LEAKS
  761|       |    _libre_memdeb = *mself->memdeb_p;
  762|       |#endif
  763|      2|    pvt->mself = mself;
  764|      2|    return (pvt);
  765|       |
  766|      0|e0:
  767|       |    return (NULL);
  768|      2|}
rtpp_ice_lite.c:rtpp_ice_lite_dtor:
  772|      2|{
  773|       |
  774|      2|    mod_free(pvt);
  ------------------
  |  |  117|      2|#define mod_free(p) _MMFN._free((p))
  |  |  ------------------
  |  |  |  |   91|      2|#define _MMFN (*(RTPP_MOD_SELF.fn))
  |  |  |  |  ------------------
  |  |  |  |  |  |   85|      2|#define RTPP_MOD_SELF CONCAT(rtpp_module_, RTPP_MOD_NAME)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   84|      2|#define CONCAT(a, b) EXPAND_AND_CONCAT(a, b)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   83|      2|#define EXPAND_AND_CONCAT(a, b) a##b
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  775|      2|    return;
  776|      2|}

LLVMFuzzerInitialize:
   56|      2|{
   57|       |
   58|      2|    if (RTPPInitialize() != 0)
  ------------------
  |  Branch (58:9): [True: 0, False: 2]
  ------------------
   59|      0|        return (-1);
   60|       |    /*
   61|       |     * Work in $OUT (falling back to /tmp) so that seed corpora using
   62|       |     * relative "load" paths resolve next to the fuzzer binaries, where
   63|       |     * the build ships the module DSOs.
   64|       |     */
   65|      2|    const char *outp = getenv("OUT");
   66|      2|    if (outp != NULL && chdir(outp) != 0)
  ------------------
  |  Branch (66:9): [True: 2, False: 0]
  |  Branch (66:25): [True: 0, False: 2]
  ------------------
   67|      0|        chdir("/tmp");
   68|      2|    return (0);
   69|      2|}
LLVMFuzzerTestOneInput:
   73|  7.63k|{
   74|  7.63k|    const char *saved_cfile;
   75|  7.63k|    FILE *fp;
   76|       |
   77|  7.63k|    if (size < 2 || size > 65536)
  ------------------
  |  Branch (77:9): [True: 1, False: 7.63k]
  |  Branch (77:21): [True: 10, False: 7.62k]
  ------------------
   78|     11|        return (0);
   79|       |
   80|  7.62k|    snprintf(cfgpath, sizeof(cfgpath), "/tmp/rfz_cfg_%ld.ucl", (long)getpid());
   81|  7.62k|    fp = fopen(cfgpath, "wb");
   82|  7.62k|    assert(fp != NULL);
  ------------------
  |  Branch (82:5): [True: 0, False: 7.62k]
  |  Branch (82:5): [True: 7.62k, False: 0]
  ------------------
   83|  7.62k|    assert(fwrite(data, 1, size, fp) == size);
  ------------------
  |  Branch (83:5): [True: 0, False: 7.62k]
  |  Branch (83:5): [True: 7.62k, False: 0]
  ------------------
   84|  7.62k|    fclose(fp);
   85|       |
   86|  7.62k|    saved_cfile = gconf.cfsp->cfile;
   87|  7.62k|    gconf.cfsp->cfile = cfgpath;
   88|  7.62k|    rtpp_cfile_process(gconf.cfsp);
   89|  7.62k|    gconf.cfsp->cfile = saved_cfile;
   90|       |
   91|  7.62k|    unlink(cfgpath);
   92|  7.62k|    return (0);
   93|  7.62k|}

SeedRNGs:
   98|      2|{
   99|      2|    offset = 0;
  100|      2|    seedrandom();
  101|      2|}
RTPPInitialize:
  118|      2|{
  119|      2|    const struct RTPPInitializeParams *rp = &RTPPInitializeParams;
  120|      2|    const char *argv[] = {
  121|      2|       "rtpproxy",
  122|      2|       "-f",
  123|      2|       "-T", rp->ttl,
  124|      2|       "-W", rp->setup_ttl,
  125|      2|       "-s", (rp->socket != NULL) ? rp->socket : tmpnam(NULL),
  ------------------
  |  Branch (125:14): [True: 0, False: 2]
  ------------------
  126|      2|       "-d", rp->debug_level,
  127|      2|       "-n", rp->notify_socket,
  128|      2|       "-S", rp->rec_spool_dir,
  129|      2|       "-r", rp->rec_final_dir,
  130|      2|       "--dso", rp->modules[0],
  131|      2|       "--dso", rp->modules[1],
  132|      2|       "--dso", rp->modules[2],
  133|      2|       "--dso", rp->modules[3],
  134|      2|    };
  135|      2|    int argc = howmany(argv, *argv);
  ------------------
  |  |   33|      2|#define howmany(x, y) (sizeof(x) / sizeof(y))
  ------------------
  136|      2|    struct rtpp_cfg *cfsp;
  137|       |
  138|      2|    if (__afl_manual_init != NULL)
  ------------------
  |  Branch (138:9): [True: 0, False: 2]
  ------------------
  139|      0|        __afl_manual_init();
  140|       |
  141|      2|    OPT_SAVE();
  ------------------
  |  |   49|      2|#define OPT_SAVE() (opt_save = (struct opt_save){optarg, optind, optopt, opterr, optreset})
  ------------------
  142|      2|    assert(RAND_set_rand_method(&dummy) == 1);
  ------------------
  |  Branch (142:5): [True: 0, False: 2]
  |  Branch (142:5): [True: 2, False: 0]
  ------------------
  143|      2|    SeedRNGs();
  144|      2|    cfsp = rtpp_main(argc, argv);
  145|      2|    OPT_RESTORE();
  ------------------
  |  |   50|      2|#define OPT_RESTORE() ({ \
  |  |   51|      2|    optarg = opt_save.optarg; \
  |  |   52|      2|    optind = opt_save.optind; \
  |  |   53|      2|    optopt = opt_save.optopt; \
  |  |   54|      2|    opterr = opt_save.opterr; \
  |  |   55|      2|    optreset = opt_save.optreset; \
  |  |   56|      2|})
  ------------------
  146|      2|    if (cfsp == NULL)
  ------------------
  |  Branch (146:9): [True: 0, False: 2]
  ------------------
  147|      0|        goto e0;
  148|      2|    cfsp->no_resolve = 1;
  149|      2|    gconf.tfd = open("/dev/null", O_WRONLY, 0);
  150|      2|    if (gconf.tfd < 0)
  ------------------
  |  Branch (150:9): [True: 0, False: 2]
  ------------------
  151|      0|        goto e1;
  152|      2|    gconf.cfsp = cfsp;
  153|      2|    atexit(cleanupHandler);
  154|      2|    return (0);
  155|      0|e1:
  156|      0|    cleanupHandler();
  157|      0|e0:
  158|      0|    return (-1);
  159|      0|}
rfz_utils.c:dRAND_bytes:
   75|     14|dRAND_bytes(unsigned char *buf, int num) {
   76|    438|    for (int i = 0; i < num; i++) {
  ------------------
  |  Branch (76:21): [True: 424, False: 14]
  ------------------
   77|    424|        buf[i] = deterministic_data[offset];
   78|    424|        offset = (offset + 1) % sizeof(deterministic_data);
   79|    424|    }
   80|     14|    return 1; // Return 1 to indicate success
   81|     14|}
rfz_utils.c:cleanupHandler:
   60|      2|{
   61|      2|    printf("Cleaning up before exit...\n");
   62|      2|    rtpp_shutdown(gconf.cfsp);
   63|      2|    close(gconf.tfd);
   64|      2|}

pproc_manager_ctor:
  137|      2|{
  138|      2|    struct pproc_manager_pvt *pvt;
  139|      2|    struct pproc_handlers **next;
  140|       |
  141|      2|    pvt = rtpp_rzmalloc(sizeof(*pvt), PVT_RCOFFS(pvt));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
  142|      2|    if (pvt == NULL)
  ------------------
  |  Branch (142:9): [True: 0, False: 2]
  ------------------
  143|      0|        goto e0;
  144|      2|    pvt->npkts_discard_idx = CALL_SMETHOD(rtpp_stats, getidxbyname, "npkts_discard");
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  145|      2|    if (pvt->npkts_discard_idx < 0)
  ------------------
  |  Branch (145:9): [True: 0, False: 2]
  ------------------
  146|      0|        goto e1;
  147|      2|    if (pthread_mutex_init(&pvt->lock, NULL) != 0)
  ------------------
  |  Branch (147:9): [True: 0, False: 2]
  ------------------
  148|      0|        goto e1;
  149|      2|    RTPP_OBJ_DTOR_ATTACH_s(&(pvt->pub), pthread_mutex_destroy, &pvt->lock);
  ------------------
  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
  150|       |    /* Clones need a reserve for every handler they inherit as well. */
  151|      2|    next = &pvt->handlers;
  152|      4|    for (int n = nprocs; n >= 0; n--) {
  ------------------
  |  Branch (152:26): [True: 2, False: 2]
  ------------------
  153|      2|        *next = pproc_handlers_alloc(n);
  154|      2|        if (*next == NULL) {
  ------------------
  |  Branch (154:13): [True: 0, False: 2]
  ------------------
  155|      0|            if (pvt->handlers != NULL)
  ------------------
  |  Branch (155:17): [True: 0, False: 0]
  ------------------
  156|      0|                RTPP_OBJ_DECREF(pvt->handlers);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  157|      0|            goto e1;
  158|      0|        }
  159|      2|        next = &(*next)->spare;
  160|      2|    }
  161|      2|    RTPP_OBJ_BORROW_s(&(pvt->pub), rtpp_stats);
  ------------------
  |  |  199|      2|    do { /* Attach first, then increase, the "lob: counter might have */ \
  |  |  200|      2|         /* certain optimizations for the count == 1 case             */ \
  |  |  201|      2|        RTPP_OBJ_DTOR_ATTACH_RC_s((bob), (lob)->rcnt); \
  |  |  ------------------
  |  |  |  |  181|      2|#define RTPP_OBJ_DTOR_ATTACH_RC_s(obj, rc) CALL_SMETHOD((obj)->rcnt, attach_rc_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  182|      2|  (rc))
  |  |  ------------------
  |  |  202|      2|        RTPP_OBJ_INCREF(lob); \
  |  |  ------------------
  |  |  |  |  173|      2|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  |  |  ------------------
  |  |  |  |  |  |   82|      2|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  203|      2|    } while (0)
  |  |  ------------------
  |  |  |  Branch (203:14): [Folded, False: 2]
  |  |  ------------------
  ------------------
  162|      2|    pvt->rtpp_stats = rtpp_stats;
  163|      2|    PUBINST_FININIT(&pvt->pub, pvt, rtpp_pproc_mgr_dtor);
  ------------------
  |  |   76|      2|    RTPP_OBJ_DTOR_ATTACH_s((pub_inst), (rtpp_refcnt_dtor_t)(dtor), \
  |  |  ------------------
  |  |  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |   77|      2|      pvt_inst);
  ------------------
  164|      2|    return (&(pvt->pub));
  165|      0|e1:
  166|      0|    RTPP_OBJ_DECREF(&(pvt->pub));
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  167|      0|e0:
  168|       |    return (NULL);
  169|      0|}
pproc_manager.c:rtpp_pproc_mgr_register:
  174|      4|{
  175|      4|    int i;
  176|      4|    struct pproc_manager_pvt *pvt;
  177|      4|    struct pproc_handlers *newh, *spare, *oldh;
  178|       |
  179|      4|    PUB2PVT(pub, pvt);
  ------------------
  |  |  169|      4|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  180|      4|    pthread_mutex_lock(&pvt->lock);
  181|       |
  182|      4|    newh = pproc_handlers_alloc(pvt->handlers->nprocs + 1);
  183|      4|    if (newh == NULL) {
  ------------------
  |  Branch (183:9): [True: 0, False: 4]
  ------------------
  184|      0|        pthread_mutex_unlock(&pvt->lock);
  185|      0|        return (-1);
  186|      0|    }
  187|      4|    spare = pproc_handlers_alloc(pvt->handlers->nprocs);
  188|      4|    if (spare == NULL) {
  ------------------
  |  Branch (188:9): [True: 0, False: 4]
  ------------------
  189|      0|        pthread_mutex_unlock(&pvt->lock);
  190|      0|        RTPP_OBJ_DECREF(newh);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  191|      0|        return (-1);
  192|      0|    }
  193|      4|    for (i = 0; i < pvt->handlers->nprocs; i++)
  ------------------
  |  Branch (193:17): [True: 2, False: 2]
  ------------------
  194|      2|        if (pvt->handlers->pproc[i].order > pproc_order)
  ------------------
  |  Branch (194:13): [True: 2, False: 0]
  ------------------
  195|      2|            break;
  196|      4|    if (i > 0)
  ------------------
  |  Branch (196:9): [True: 0, False: 4]
  ------------------
  197|      0|        memcpy(&newh->pproc[0], &pvt->handlers->pproc[0],
  198|      0|          sizeof(pvt->handlers->pproc[0]) * i);
  199|      4|    if (i < pvt->handlers->nprocs)
  ------------------
  |  Branch (199:9): [True: 2, False: 2]
  ------------------
  200|      2|        memcpy(&newh->pproc[i + 1], &pvt->handlers->pproc[i],
  201|      2|          sizeof(pvt->handlers->pproc[0]) * (pvt->handlers->nprocs - i));
  202|      4|    newh->pproc[i].order = pproc_order;
  203|      4|    newh->pproc[i].ppif = *ip;
  204|     10|    for (int j = 0; j < newh->nprocs; j++) {
  ------------------
  |  Branch (204:21): [True: 6, False: 4]
  ------------------
  205|      6|        ip = &newh->pproc[j].ppif;
  206|      6|        if (ip->rcnt != NULL)
  ------------------
  |  Branch (206:13): [True: 0, False: 6]
  ------------------
  207|      6|            RTPP_OBJ_INCREF(ip);
  ------------------
  |  |  173|      6|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   82|      6|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      6|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      6|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|      6|    }
  209|      4|    oldh = pvt->handlers;
  210|      4|    spare->spare = oldh->spare;
  211|      4|    oldh->spare = NULL;
  212|      4|    newh->spare = spare;
  213|      4|    pvt->handlers = newh;
  214|      4|    pthread_mutex_unlock(&pvt->lock);
  215|       |    /* Handler destructors may call back into a manager. */
  216|      4|    RTPP_OBJ_DECREF(oldh);
  ------------------
  |  |  174|      4|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      4|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      4|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      4|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      4|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      4|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      4|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  217|      4|    return (0);
  218|      4|}
pproc_manager.c:rtpp_pproc_mgr_unregister:
  308|      4|{
  309|      4|    int i;
  310|      4|    struct pproc_manager_pvt *pvt;
  311|      4|    struct pproc_handlers *newh, *oldh;
  312|       |
  313|      4|    PUB2PVT(pub, pvt);
  ------------------
  |  |  169|      4|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  314|      4|    pthread_mutex_lock(&pvt->lock);
  315|      4|    for (i = 0; i < pvt->handlers->nprocs; i++) {
  ------------------
  |  Branch (315:17): [True: 4, False: 0]
  ------------------
  316|      4|        const struct packet_processor_if *ip = &pvt->handlers->pproc[i].ppif;
  317|      4|        RTPP_DBG_ASSERT(pvt->handlers->pproc[i].order != _PPROC_ORD_EMPTY);
  318|      4|        if (ip->key != key)
  ------------------
  |  Branch (318:13): [True: 0, False: 4]
  ------------------
  319|      0|            continue;
  320|      4|        oldh = pvt->handlers;
  321|      4|        newh = oldh->spare;
  322|      4|        assert(newh != NULL);
  ------------------
  |  Branch (322:9): [True: 0, False: 4]
  |  Branch (322:9): [True: 4, False: 0]
  ------------------
  323|      4|        assert(newh->nprocs == oldh->nprocs - 1);
  ------------------
  |  Branch (323:9): [True: 0, False: 4]
  |  Branch (323:9): [True: 4, False: 0]
  ------------------
  324|      4|        oldh->spare = NULL;
  325|      4|        if (i > 0)
  ------------------
  |  Branch (325:13): [True: 0, False: 4]
  ------------------
  326|      0|            memcpy(&newh->pproc[0], &pvt->handlers->pproc[0],
  327|      0|              sizeof(pvt->handlers->pproc[0]) * i);
  328|      4|        if (i < pvt->handlers->nprocs - 1)
  ------------------
  |  Branch (328:13): [True: 2, False: 2]
  ------------------
  329|      2|            memcpy(&newh->pproc[i], &pvt->handlers->pproc[i + 1],
  330|      2|              sizeof(pvt->handlers->pproc[0]) * (pvt->handlers->nprocs - i - 1));
  331|      6|        for (int j = 0; j < newh->nprocs; j++) {
  ------------------
  |  Branch (331:25): [True: 2, False: 4]
  ------------------
  332|      2|            ip = &newh->pproc[j].ppif;
  333|      2|            if (ip->rcnt != NULL)
  ------------------
  |  Branch (333:17): [True: 0, False: 2]
  ------------------
  334|      2|                RTPP_OBJ_INCREF(ip);
  ------------------
  |  |  173|      2|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   82|      2|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  335|      2|        }
  336|      4|        pvt->handlers = newh;
  337|      4|        pthread_mutex_unlock(&pvt->lock);
  338|       |        /* DECREF might call a destructor chain, so it should be done out */
  339|       |        /* of the locked area! */
  340|      4|        RTPP_OBJ_DECREF(oldh);
  ------------------
  |  |  174|      4|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      4|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      4|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      4|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      4|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      4|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      4|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  341|      4|        return;
  342|      4|    }
  343|      0|    abort();
  344|      4|}
pproc_manager.c:pproc_handlers_alloc:
  116|     10|{
  117|     10|    struct pproc_handlers *hndlrs;
  118|       |
  119|     10|    hndlrs = rtpp_rzmalloc(sizeof(*hndlrs) + sizeof(struct pproc_handler) * nprocs,
  120|     10|      offsetof(struct pproc_handlers, rcnt));
  121|     10|    if (hndlrs == NULL)
  ------------------
  |  Branch (121:9): [True: 0, False: 10]
  ------------------
  122|      0|        return (NULL);
  123|     10|    hndlrs->nprocs = nprocs;
  124|     10|    RTPP_OBJ_DTOR_ATTACH_s(hndlrs, pproc_handlers_dtor, hndlrs);
  ------------------
  |  |  177|     10|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|     10|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|     10|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|     10|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|     10|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|     10|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|     10|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|     10|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|     10|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|     10|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|     10|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|     10|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|     10|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|     10|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|     10|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|     10|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|     10|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|     10|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|     10|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|     10|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|     10|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|     10|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|     10|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|     10|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|     10|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|     10|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|     10|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|     10|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|     10|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|     10|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|     10|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|     10|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|     10|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|     10|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|     10|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|     10|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
  125|     10|    return (hndlrs);
  126|     10|}
pproc_manager.c:pproc_handlers_dtor:
   95|     10|{
   96|     10|    struct pproc_handlers *spare, *next;
   97|       |
   98|       |    /* Detach before DECREF to release long spare chains without recursion. */
   99|     10|    spare = handlers->spare;
  100|     10|    handlers->spare = NULL;
  101|     10|    while (spare != NULL) {
  ------------------
  |  Branch (101:12): [True: 0, False: 10]
  ------------------
  102|      0|        next = spare->spare;
  103|      0|        spare->spare = NULL;
  104|      0|        RTPP_OBJ_DECREF(spare);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  105|      0|        spare = next;
  106|      0|    }
  107|     18|    for (int i = 0; i < handlers->nprocs; i++) {
  ------------------
  |  Branch (107:21): [True: 8, False: 10]
  ------------------
  108|      8|        const struct packet_processor_if *ip = &handlers->pproc[i].ppif;
  109|      8|        if (ip->rcnt != NULL)
  ------------------
  |  Branch (109:13): [True: 0, False: 8]
  ------------------
  110|      8|            RTPP_OBJ_DECREF(ip);
  ------------------
  |  |  174|      8|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      8|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      8|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      8|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  111|      8|    }
  112|     10|}
pproc_manager.c:rtpp_pproc_mgr_dtor:
  130|      2|{
  131|       |
  132|      2|    RTPP_OBJ_DECREF(pvt->handlers);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  133|      2|}

rtpp_main:
   58|      2|{
   59|      2|    struct rtpp_cfg *r;
   60|      2|    const struct opt_save opt_zero = {.optind = 1};
   61|      2|    struct opt_save opt_saved;
   62|       |
   63|      2|    OPT_SAVE(&opt_saved);
  ------------------
  |  |   47|      2|#define OPT_SAVE(sp) (*(sp) = (struct opt_save){optarg, optind, optopt, opterr, optreset})
  ------------------
   64|      2|    OPT_RESTORE(&opt_zero);
  ------------------
  |  |   48|      2|#define OPT_RESTORE(sp) ({ \
  |  |   49|      2|    optarg = (sp)->optarg; \
  |  |   50|      2|    optind = (sp)->optind; \
  |  |   51|      2|    optopt = (sp)->optopt; \
  |  |   52|      2|    opterr = (sp)->opterr; \
  |  |   53|      2|    optreset = (sp)->optreset; \
  |  |   54|      2|})
  ------------------
   65|      2|    r = _rtpp_main(argc, argv);
   66|      2|    OPT_RESTORE(&opt_saved);
  ------------------
  |  |   48|      2|#define OPT_RESTORE(sp) ({ \
  |  |   49|      2|    optarg = (sp)->optarg; \
  |  |   50|      2|    optind = (sp)->optind; \
  |  |   51|      2|    optopt = (sp)->optopt; \
  |  |   52|      2|    opterr = (sp)->opterr; \
  |  |   53|      2|    optreset = (sp)->optreset; \
  |  |   54|      2|})
  ------------------
   67|      2|    return r;
   68|      2|}

rtpp_shutdown:
  921|      2|{
  922|       |
  923|      2|    RTPP_OBJ_DECREF(cfsp);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  924|      2|}
_rtpp_main:
  976|      2|{
  977|      2|    int i, len, pid_fd;
  978|      2|    struct rtpp_cfg *cfsp;
  979|      2|    char buf[256];
  980|      2|    struct sched_param sparam;
  981|      2|    void *elp = NULL;
  982|      2|    struct rtpp_timed_task *tp;
  983|      2|    struct rtpp_daemon_rope drop;
  984|       |
  985|      2|    cfsp = rtpp_sys_malloc(sizeof(*cfsp));
  986|      2|    if (cfsp == NULL)
  ------------------
  |  Branch (986:9): [True: 0, False: 2]
  ------------------
  987|      0|        MAIN_ERR(1, "allocating struct rtpp_cfg failed");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  988|      2|    memset(cfsp, '\0', sizeof(*cfsp));
  989|       |
  990|      2|#if defined(LIBRTPPROXY)
  991|      2|    cfsp->ropts = (struct rtpp_run_options){
  992|      2|        .no_pid = 1, .no_chdir = 1, .no_daemon = 1, .no_sigtrap = 1
  993|      2|    };
  994|      2|#endif
  995|      2|    if (cfsp->ropts.no_sigtrap == 0) {
  ------------------
  |  Branch (995:9): [True: 0, False: 2]
  ------------------
  996|       |        /* Early exits may still write to a stdio: peer that has gone away. */
  997|      0|        signal(SIGPIPE, SIG_IGN);
  998|      0|    }
  999|       |
 1000|       |#ifdef RTPP_CHECK_LEAKS
 1001|       |    RTPP_MEMDEB_APP_INIT();
 1002|       |#endif
 1003|      2|    if (getdtime() == -1) {
  ------------------
  |  Branch (1003:9): [True: 0, False: 2]
  ------------------
 1004|      0|        MAIN_ERR(1, "timer self-test has failed: please check your build configuration");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1005|       |        /* NOTREACHED */
 1006|      0|    }
 1007|       |
 1008|       |#ifdef RTPP_CHECK_LEAKS
 1009|       |    if (rtpp_memdeb_selftest(MEMDEB_SYM) != 0) {
 1010|       |        MAIN_ERRX(1, "MEMDEB self-test has failed");
 1011|       |        /* NOTREACHED */
 1012|       |    }
 1013|       |#endif
 1014|       |
 1015|      2|    cfsp->ctrl_socks = rtpp_zmalloc(sizeof(struct rtpp_list));
 1016|      2|    if (cfsp->ctrl_socks == NULL) {
  ------------------
  |  Branch (1016:9): [True: 0, False: 2]
  ------------------
 1017|      0|         MAIN_ERR(1, "can't allocate memory for the struct ctrl_socks");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1018|       |         /* NOTREACHED */
 1019|      0|    }
 1020|       |
 1021|      2|#if ENABLE_MODULE_IF
 1022|      2|    cfsp->modules_cf = rtpp_modman_ctor();
 1023|      2|    if (cfsp->modules_cf == NULL) {
  ------------------
  |  Branch (1023:9): [True: 0, False: 2]
  ------------------
 1024|      0|         MAIN_ERR(1, "can't allocate memory for the struct modules_cf");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1025|       |         /* NOTREACHED */
 1026|      0|    }
 1027|       |#else
 1028|       |    cfsp->_pad = (void *)0x12345678;
 1029|       |#endif
 1030|       |
 1031|      2|    cfsp->runcreds = rtpp_zmalloc(sizeof(struct rtpp_runcreds));
 1032|      2|    if (cfsp->runcreds == NULL) {
  ------------------
  |  Branch (1032:9): [True: 0, False: 2]
  ------------------
 1033|      0|         MAIN_ERR(1, "can't allocate memory for the struct runcreds");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1034|       |         /* NOTREACHED */
 1035|      0|    }
 1036|       |
 1037|      2|    seedrandom();
 1038|      2|    cfsp->guid = rtpp_genuid_ctor();
 1039|      2|    if (cfsp->guid == NULL) {
  ------------------
  |  Branch (1039:9): [True: 0, False: 2]
  ------------------
 1040|      0|        MAIN_ERR(1, "rtpp_genuid_ctor() failed");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1041|       |        /* NOTREACHED */
 1042|      0|    }
 1043|       |
 1044|      2|    cfsp->glog = rtpp_log_ctor("rtpproxy", NULL, LF_REOPEN);
  ------------------
  |  |   42|      2|#define LF_REOPEN 0
  ------------------
 1045|      2|    if (cfsp->glog == NULL) {
  ------------------
  |  Branch (1045:9): [True: 0, False: 2]
  ------------------
 1046|      0|        MAIN_ERR(1, "can't initialize logging subsystem");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1047|       |        /* NOTREACHED */
 1048|      0|    }
 1049|      2|    CALL_METHOD(cfsp->glog, setlevel, RTPP_LOG_ERR);
  ------------------
  |  |   83|      2|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  ------------------
  |  |  |  | 1049|      2|    CALL_METHOD(cfsp->glog, setlevel, RTPP_LOG_ERR);
  |  |  |  |  ------------------
  |  |  |  |  |  |   47|      2|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1050|       | #ifdef RTPP_CHECK_LEAKS
 1051|       |    rtpp_memdeb_setlog(MEMDEB_SYM, cfsp->glog);
 1052|       |    rtpp_memdeb_approve(MEMDEB_SYM, "_rtpp_log_open", 1, "Referenced by memdeb itself");
 1053|       | #endif
 1054|       |
 1055|       |#if !defined(LIBRTPPROXY)
 1056|       |    _sig_cf = cfsp;
 1057|       |    atexit(rtpp_glog_fin);
 1058|       |#endif
 1059|       |
 1060|      2|    int r = init_config(cfsp, argc, argv);
 1061|      2|    if (r < 0) {
  ------------------
  |  Branch (1061:9): [True: 0, False: 2]
  ------------------
 1062|      0|        MAIN_EXIT(-r);
  ------------------
  |  |  935|      0|#define MAIN_EXIT(code)          do { \
  |  |  936|      0|    return NULL;                      \
  |  |  937|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (937:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1063|      0|    }
 1064|       |
 1065|      2|    cfsp->sessions_ht = rtpp_hash_table_ctor(rtpp_ht_key_str_t, 0);
 1066|      2|    if (cfsp->sessions_ht == NULL) {
  ------------------
  |  Branch (1066:9): [True: 0, False: 2]
  ------------------
 1067|      0|        MAIN_ERR(1, "can't allocate memory for the hash table");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1068|       |         /* NOTREACHED */
 1069|      0|    }
 1070|      2|    cfsp->rtp_streams_wrt = rtpp_weakref_ctor();
 1071|      2|    if (cfsp->rtp_streams_wrt == NULL) {
  ------------------
  |  Branch (1071:9): [True: 0, False: 2]
  ------------------
 1072|      0|        MAIN_ERR(1, "can't allocate memory for the RTP streams weakref table");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1073|       |         /* NOTREACHED */
 1074|      0|    }
 1075|      2|    cfsp->rtcp_streams_wrt = rtpp_weakref_ctor();
 1076|      2|    if (cfsp->rtcp_streams_wrt == NULL) {
  ------------------
  |  Branch (1076:9): [True: 0, False: 2]
  ------------------
 1077|      0|        MAIN_ERR(1, "can't allocate memory for the RTCP streams weakref table");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1078|       |         /* NOTREACHED */
 1079|      0|    }
 1080|      2|    cfsp->sessinfo = rtpp_sessinfo_ctor(cfsp);
 1081|      2|    if (cfsp->sessinfo == NULL) {
  ------------------
  |  Branch (1081:9): [True: 0, False: 2]
  ------------------
 1082|      0|        MAIN_ERRX(1, "cannot construct rtpp_sessinfo structure");
  ------------------
  |  |  931|      0|#define MAIN_ERRX(code, fmt, ...) do {\
  |  |  932|      0|    warnx(fmt, ##__VA_ARGS__);        \
  |  |  933|      0|    return NULL;                      \
  |  |  934|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (934:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1083|      0|    }
 1084|       |
 1085|      2|    cfsp->rtpp_stats = rtpp_stats_ctor();
 1086|      2|    if (cfsp->rtpp_stats == NULL) {
  ------------------
  |  Branch (1086:9): [True: 0, False: 2]
  ------------------
 1087|      0|        MAIN_ERR(1, "can't allocate memory for the stats data");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1088|       |         /* NOTREACHED */
 1089|      0|    }
 1090|       |
 1091|      6|    for (i = 0; i <= RTPP_PT_MAX; i++) {
  ------------------
  |  |   63|      6|#define	RTPP_PT_MAX	RTPP_PT_INET6
  |  |  ------------------
  |  |  |  |   62|      6|#define	RTPP_PT_INET6	1
  |  |  ------------------
  ------------------
  |  Branch (1091:17): [True: 4, False: 2]
  ------------------
 1092|      4|        cfsp->port_table[i] = rtpp_port_table_ctor(cfsp->port_min,
 1093|      4|          cfsp->port_max, cfsp->seq_ports, cfsp->port_ctl);
 1094|      4|        if (cfsp->port_table[i] == NULL) {
  ------------------
  |  Branch (1094:13): [True: 0, False: 4]
  ------------------
 1095|      0|            MAIN_ERR(1, "can't allocate memory for the ports data");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1096|       |            /* NOTREACHED */
 1097|      0|        }
 1098|      4|    }
 1099|       |
 1100|      2|    if (rtpp_controlfd_init(cfsp) != 0) {
  ------------------
  |  Branch (1100:9): [True: 0, False: 2]
  ------------------
 1101|      0|        MAIN_ERR(1, "can't initialize control socket%s",
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  ------------------
  |  |  |  Branch (928:17): [True: 0, False: 0]
  |  |  ------------------
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1102|      0|          cfsp->ctrl_socks->len > 1 ? "s" : "");
 1103|      0|    }
 1104|       |
 1105|      2|    cfsp->rcnt = rtpp_refcnt_ctor(cfsp, (rtpp_refcnt_dtor_t)rtpp_cfg_dtor);
 1106|      2|    if (cfsp->rcnt == NULL) {
  ------------------
  |  Branch (1106:9): [True: 0, False: 2]
  ------------------
 1107|      0|        MAIN_ERR(1, "can't allocate memory for the struct rtpp_cfg refcnt");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1108|      0|    }
 1109|       |
 1110|      2|    if (cfsp->ropts.no_daemon == 0) {
  ------------------
  |  Branch (1110:9): [True: 0, False: 2]
  ------------------
 1111|      0|        if (cfsp->ropts.no_chdir == 0) {
  ------------------
  |  Branch (1111:13): [True: 0, False: 0]
  ------------------
 1112|      0|            cfsp->cwd_orig = getcwd(NULL, 0);
 1113|      0|            if (cfsp->cwd_orig == NULL) {
  ------------------
  |  Branch (1113:17): [True: 0, False: 0]
  ------------------
 1114|      0|                MAIN_ERR(1, "getcwd");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1115|      0|            }
 1116|      0|        }
 1117|      0|	drop = rtpp_daemon(cfsp->ropts.no_chdir, 0, cfsp->no_redirect);
 1118|      0|	if (drop.result == -1)
  ------------------
  |  Branch (1118:6): [True: 0, False: 0]
  ------------------
 1119|      0|	    MAIN_ERR(1, "can't switch into daemon mode");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1120|       |	    /* NOTREACHED */
 1121|      0|    }
 1122|       |
 1123|      2|    if (CALL_METHOD(cfsp->glog, start, cfsp) != 0) {
  ------------------
  |  |   83|      2|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  |  Branch (1123:9): [True: 0, False: 2]
  ------------------
 1124|       |        /* We cannot possibly function with broken logs, bail out */
 1125|      0|        syslog(LOG_CRIT, "rtpproxy pid %d has failed to initialize logging"
 1126|      0|            " facilities: crash", getpid());
 1127|      0|        MAIN_ERR(1, "rtpproxy has failed to initialize logging facilities");
  ------------------
  |  |  927|      0|#define MAIN_ERR(code, fmt, ...) do { \
  |  |  928|      0|    warn(fmt, ##__VA_ARGS__);         \
  |  |  929|      0|    return NULL;                      \
  |  |  930|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (930:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1128|      0|    }
 1129|       |
 1130|       |#if !defined(LIBRTPPROXY)
 1131|       |    atexit(ehandler);
 1132|       |#endif
 1133|      2|    RTPP_LOG(cfsp->glog, RTPP_LOG_INFO, "rtpproxy started, pid %d", getpid());
  ------------------
  |  |   56|      2|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      4|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      2|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1133|      2|    RTPP_LOG(cfsp->glog, RTPP_LOG_INFO, "rtpproxy started, pid %d", getpid());
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   45|      2|#define	RTPP_LOG_INFO	LOG_INFO
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      2|  __LINE__, ## args)
  ------------------
 1134|       |
 1135|      2|    if (cfsp->sched_policy != SCHED_OTHER) {
  ------------------
  |  Branch (1135:9): [True: 0, False: 2]
  ------------------
 1136|      0|        sparam.sched_priority = sched_get_priority_max(cfsp->sched_policy);
 1137|      0|        if (sched_setscheduler(0, cfsp->sched_policy, &sparam) == -1) {
  ------------------
  |  Branch (1137:13): [True: 0, False: 0]
  ------------------
 1138|      0|            RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "sched_setscheduler(SCHED_%s, %d)",
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1138|      0|            RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "sched_setscheduler(SCHED_%s, %d)",
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1139|      0|              (cfsp->sched_policy == SCHED_FIFO) ? "FIFO" : "RR", sparam.sched_priority);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
 1139|      0|              (cfsp->sched_policy == SCHED_FIFO) ? "FIFO" : "RR", sparam.sched_priority);
 1140|      0|        }
 1141|      0|    }
 1142|      2|    if (cfsp->sched_nice != PRIO_UNSET) {
  ------------------
  |  |  137|      2|#define PRIO_UNSET (PRIO_MIN - 1)
  ------------------
  |  Branch (1142:9): [True: 0, False: 2]
  ------------------
 1143|      0|        if (setpriority(PRIO_PROCESS, 0, cfsp->sched_nice) == -1) {
  ------------------
  |  Branch (1143:13): [True: 0, False: 0]
  ------------------
 1144|      0|            RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "can't set scheduling "
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1144|      0|            RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "can't set scheduling "
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1145|      0|              "priority to %d", cfsp->sched_nice);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
 1145|      0|              "priority to %d", cfsp->sched_nice);
 1146|      0|            goto startup_failed;
 1147|      0|        }
 1148|      0|    }
 1149|       |
 1150|      2|    if (cfsp->ropts.no_pid == 0 && strcmp(cfsp->pid_file, "/dev/null") != 0) {
  ------------------
  |  Branch (1150:9): [True: 0, False: 2]
  |  Branch (1150:36): [True: 0, False: 0]
  ------------------
 1151|      0|        pid_fd = open(cfsp->pid_file, O_WRONLY | O_CREAT, DEFFILEMODE);
 1152|      0|        if (pid_fd < 0) {
  ------------------
  |  Branch (1152:13): [True: 0, False: 0]
  ------------------
 1153|      0|            RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "can't open pidfile for writing");
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1153|      0|            RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "can't open pidfile for writing");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
 1154|      0|        }
 1155|      2|    } else {
 1156|      2|        pid_fd = -1;
 1157|      2|    }
 1158|       |
 1159|      2|    if (cfsp->runcreds->uname != NULL || cfsp->runcreds->gname != NULL) {
  ------------------
  |  Branch (1159:9): [True: 0, False: 2]
  |  Branch (1159:42): [True: 0, False: 2]
  ------------------
 1160|      0|	if (drop_privileges(cfsp) != 0) {
  ------------------
  |  Branch (1160:6): [True: 0, False: 0]
  ------------------
 1161|      0|	    RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR,
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1161|      0|	    RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR,
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1162|      0|	      "can't switch to requested user/group");
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
 1162|      0|	      "can't switch to requested user/group");
 1163|      0|	    goto startup_failed;
 1164|      0|	}
 1165|      0|    }
 1166|      2|    set_rlimits(cfsp);
 1167|       |
 1168|      2|    cfsp->pproc_manager = pproc_manager_ctor(cfsp->rtpp_stats, 0);
 1169|      2|    if (cfsp->pproc_manager == NULL) {
  ------------------
  |  Branch (1169:9): [True: 0, False: 2]
  ------------------
 1170|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR,
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1170|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR,
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1171|      0|          "can't init packet prosessing subsystem");
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
 1171|      0|          "can't init packet prosessing subsystem");
 1172|      0|        goto startup_failed;
 1173|      0|    }
 1174|      2|    CFG_ATTACH_OBJ(cfsp->pproc_manager);
  ------------------
  |  |  961|      2|#define CFG_ATTACH_OBJ(obj) do { \
  |  |  962|      2|    if (RTPP_OBJ_DTOR_ATTACH_OBJ(cfsp, (obj)) != 0) { \
  |  |  ------------------
  |  |  |  |  183|      2|#define RTPP_OBJ_DTOR_ATTACH_OBJ(obj, obj1) CALL_SMETHOD((obj)->rcnt, attach_rc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      2|  (obj1)->rcnt)
  |  |  ------------------
  |  |  |  Branch (962:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  963|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s", #obj); \
  |  |  ------------------
  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  963|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s", #obj); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   57|      0|  __LINE__, ## args)
  |  |  ------------------
  |  |  964|      0|        RTPP_OBJ_DECREF(obj); \
  |  |  ------------------
  |  |  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  965|      0|        goto startup_failed; \
  |  |  966|      0|    } \
  |  |  967|      2|} while (0)
  |  |  ------------------
  |  |  |  Branch (967:10): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1175|       |
 1176|      2|    cfsp->rtpp_proc_cf = rtpp_proc_async_ctor(cfsp);
 1177|      2|    if (cfsp->rtpp_proc_cf == NULL) {
  ------------------
  |  Branch (1177:9): [True: 0, False: 2]
  ------------------
 1178|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR,
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1178|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR,
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1179|      0|          "can't init RTP processing subsystem");
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
 1179|      0|          "can't init RTP processing subsystem");
 1180|      0|        goto startup_failed;
 1181|      0|    }
 1182|      2|    CFG_ATTACH_OBJ(cfsp->rtpp_proc_cf);
  ------------------
  |  |  961|      2|#define CFG_ATTACH_OBJ(obj) do { \
  |  |  962|      2|    if (RTPP_OBJ_DTOR_ATTACH_OBJ(cfsp, (obj)) != 0) { \
  |  |  ------------------
  |  |  |  |  183|      2|#define RTPP_OBJ_DTOR_ATTACH_OBJ(obj, obj1) CALL_SMETHOD((obj)->rcnt, attach_rc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      2|  (obj1)->rcnt)
  |  |  ------------------
  |  |  |  Branch (962:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  963|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s", #obj); \
  |  |  ------------------
  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  963|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s", #obj); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   57|      0|  __LINE__, ## args)
  |  |  ------------------
  |  |  964|      0|        RTPP_OBJ_DECREF(obj); \
  |  |  ------------------
  |  |  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  965|      0|        goto startup_failed; \
  |  |  966|      0|    } \
  |  |  967|      2|} while (0)
  |  |  ------------------
  |  |  |  Branch (967:10): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1183|       |
 1184|      2|    cfsp->proc_servers = rtpp_proc_servers_ctor(cfsp, cfsp->rtpp_proc_cf->netio);
 1185|      2|    if (cfsp->proc_servers == NULL) {
  ------------------
  |  Branch (1185:9): [True: 0, False: 2]
  ------------------
 1186|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR,
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1186|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR,
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1187|      0|          "can't init RTP playback subsystem");
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
 1187|      0|          "can't init RTP playback subsystem");
 1188|      0|        goto startup_failed;
 1189|      0|    }
 1190|      2|    CFG_ATTACH_OBJ(cfsp->proc_servers);
  ------------------
  |  |  961|      2|#define CFG_ATTACH_OBJ(obj) do { \
  |  |  962|      2|    if (RTPP_OBJ_DTOR_ATTACH_OBJ(cfsp, (obj)) != 0) { \
  |  |  ------------------
  |  |  |  |  183|      2|#define RTPP_OBJ_DTOR_ATTACH_OBJ(obj, obj1) CALL_SMETHOD((obj)->rcnt, attach_rc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      2|  (obj1)->rcnt)
  |  |  ------------------
  |  |  |  Branch (962:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  963|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s", #obj); \
  |  |  ------------------
  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  963|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s", #obj); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   57|      0|  __LINE__, ## args)
  |  |  ------------------
  |  |  964|      0|        RTPP_OBJ_DECREF(obj); \
  |  |  ------------------
  |  |  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  965|      0|        goto startup_failed; \
  |  |  966|      0|    } \
  |  |  967|      2|} while (0)
  |  |  ------------------
  |  |  |  Branch (967:10): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1191|       |
 1192|      2|    cfsp->rtpp_timed_cf = rtpp_timed_ctor(0.01);
 1193|      2|    if (cfsp->rtpp_timed_cf == NULL) {
  ------------------
  |  Branch (1193:9): [True: 0, False: 2]
  ------------------
 1194|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR,
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1194|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR,
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1195|      0|          "can't init scheduling subsystem");
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
 1195|      0|          "can't init scheduling subsystem");
 1196|      0|        goto startup_failed;
 1197|      0|    }
 1198|      2|    CFG_ATTACH_OBJ(cfsp->rtpp_timed_cf);
  ------------------
  |  |  961|      2|#define CFG_ATTACH_OBJ(obj) do { \
  |  |  962|      2|    if (RTPP_OBJ_DTOR_ATTACH_OBJ(cfsp, (obj)) != 0) { \
  |  |  ------------------
  |  |  |  |  183|      2|#define RTPP_OBJ_DTOR_ATTACH_OBJ(obj, obj1) CALL_SMETHOD((obj)->rcnt, attach_rc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      2|  (obj1)->rcnt)
  |  |  ------------------
  |  |  |  Branch (962:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  963|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s", #obj); \
  |  |  ------------------
  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  963|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s", #obj); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   57|      0|  __LINE__, ## args)
  |  |  ------------------
  |  |  964|      0|        RTPP_OBJ_DECREF(obj); \
  |  |  ------------------
  |  |  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  965|      0|        goto startup_failed; \
  |  |  966|      0|    } \
  |  |  967|      2|} while (0)
  |  |  ------------------
  |  |  |  Branch (967:10): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1199|      2|    CFG_ATTACH(GET_SMETHOD(cfsp->rtpp_timed_cf, shutdown), cfsp->rtpp_timed_cf);
  ------------------
  |  |  954|      2|#define CFG_ATTACH(f, p) do { \
  |  |  955|      2|    if (RTPP_OBJ_DTOR_ATTACH(cfsp, (f), (p)) != 0) { \
  |  |  ------------------
  |  |  |  |  175|      2|#define RTPP_OBJ_DTOR_ATTACH(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  176|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |  |  Branch (955:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  956|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s()", #f); \
  |  |  ------------------
  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  956|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s()", #f); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   57|      0|  __LINE__, ## args)
  |  |  ------------------
  |  |  957|      0|        ((rtpp_refcnt_dtor_t)(f))(p); \
  |  |  958|      0|        goto startup_failed; \
  |  |  959|      0|    } \
  |  |  960|      2|} while (0)
  |  |  ------------------
  |  |  |  Branch (960:10): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1200|       |
 1201|      2|    tp = CALL_SMETHOD(cfsp->rtpp_timed_cf, schedule_rc, 1.0,
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  | 1201|      2|    tp = CALL_SMETHOD(cfsp->rtpp_timed_cf, schedule_rc, 1.0,
  |  |  |  | 1202|      2|      cfsp->rtpp_stats->rcnt, update_derived_stats, NULL,
  |  |  |  | 1203|      2|      cfsp->rtpp_stats);
  |  |  ------------------
  ------------------
 1202|      2|      cfsp->rtpp_stats->rcnt, update_derived_stats, NULL,
 1203|      2|      cfsp->rtpp_stats);
 1204|      2|    if (tp == NULL) {
  ------------------
  |  Branch (1204:9): [True: 0, False: 2]
  ------------------
 1205|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR,
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1205|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR,
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1206|      0|          "can't schedule notification to derive stats");
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
 1206|      0|          "can't schedule notification to derive stats");
 1207|      0|        goto startup_failed;
 1208|      0|    }
 1209|      2|    RTPP_OBJ_DECREF(tp);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1210|       |
 1211|      2|    cfsp->rtpp_notify_cf = rtpp_notify_ctor(cfsp->glog);
 1212|      2|    if (cfsp->rtpp_notify_cf == NULL) {
  ------------------
  |  Branch (1212:9): [True: 0, False: 2]
  ------------------
 1213|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR,
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1213|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR,
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1214|      0|          "can't init timeout notification subsystem");
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
 1214|      0|          "can't init timeout notification subsystem");
 1215|      0|        goto startup_failed;
 1216|      0|    }
 1217|      2|    CFG_ATTACH_OBJ(cfsp->rtpp_notify_cf);
  ------------------
  |  |  961|      2|#define CFG_ATTACH_OBJ(obj) do { \
  |  |  962|      2|    if (RTPP_OBJ_DTOR_ATTACH_OBJ(cfsp, (obj)) != 0) { \
  |  |  ------------------
  |  |  |  |  183|      2|#define RTPP_OBJ_DTOR_ATTACH_OBJ(obj, obj1) CALL_SMETHOD((obj)->rcnt, attach_rc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  184|      2|  (obj1)->rcnt)
  |  |  ------------------
  |  |  |  Branch (962:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  963|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s", #obj); \
  |  |  ------------------
  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  963|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s", #obj); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   57|      0|  __LINE__, ## args)
  |  |  ------------------
  |  |  964|      0|        RTPP_OBJ_DECREF(obj); \
  |  |  ------------------
  |  |  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  965|      0|        goto startup_failed; \
  |  |  966|      0|    } \
  |  |  967|      2|} while (0)
  |  |  ------------------
  |  |  |  Branch (967:10): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1218|       |
 1219|      2|    cfsp->rtpp_proc_ttl_cf = rtpp_proc_ttl_ctor(cfsp);
 1220|      2|    if (cfsp->rtpp_proc_ttl_cf == NULL) {
  ------------------
  |  Branch (1220:9): [True: 0, False: 2]
  ------------------
 1221|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR,
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1221|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR,
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1222|      0|          "can't init TTL processing subsystem");
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
 1222|      0|          "can't init TTL processing subsystem");
 1223|      0|        goto startup_failed;
 1224|      0|    }
 1225|      2|    CFG_ATTACH(cfsp->rtpp_proc_ttl_cf->dtor, cfsp->rtpp_proc_ttl_cf);
  ------------------
  |  |  954|      2|#define CFG_ATTACH(f, p) do { \
  |  |  955|      2|    if (RTPP_OBJ_DTOR_ATTACH(cfsp, (f), (p)) != 0) { \
  |  |  ------------------
  |  |  |  |  175|      2|#define RTPP_OBJ_DTOR_ATTACH(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  176|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |  |  Branch (955:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  956|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s()", #f); \
  |  |  ------------------
  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  956|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s()", #f); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   57|      0|  __LINE__, ## args)
  |  |  ------------------
  |  |  957|      0|        ((rtpp_refcnt_dtor_t)(f))(p); \
  |  |  958|      0|        goto startup_failed; \
  |  |  959|      0|    } \
  |  |  960|      2|} while (0)
  |  |  ------------------
  |  |  |  Branch (960:10): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1226|       |
 1227|      2|#if ENABLE_MODULE_IF
 1228|      2|    const char *failmod;
 1229|      2|    CFG_ATTACH(cfsp->modules_cf->stopall, cfsp->modules_cf);
  ------------------
  |  |  954|      2|#define CFG_ATTACH(f, p) do { \
  |  |  955|      2|    if (RTPP_OBJ_DTOR_ATTACH(cfsp, (f), (p)) != 0) { \
  |  |  ------------------
  |  |  |  |  175|      2|#define RTPP_OBJ_DTOR_ATTACH(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  176|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |  |  Branch (955:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  956|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s()", #f); \
  |  |  ------------------
  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  956|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s()", #f); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   57|      0|  __LINE__, ## args)
  |  |  ------------------
  |  |  957|      0|        ((rtpp_refcnt_dtor_t)(f))(p); \
  |  |  958|      0|        goto startup_failed; \
  |  |  959|      0|    } \
  |  |  960|      2|} while (0)
  |  |  ------------------
  |  |  |  Branch (960:10): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1230|      2|    if (CALL_METHOD(cfsp->modules_cf, startall, cfsp, &failmod) != 0) {
  ------------------
  |  |   83|      2|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  |  Branch (1230:9): [True: 0, False: 2]
  ------------------
 1231|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR,
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1231|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR,
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1232|      0|          "%s: dymanic module start has failed", failmod);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
 1232|      0|          "%s: dymanic module start has failed", failmod);
 1233|      0|        goto startup_failed;
 1234|      0|    }
 1235|      2|#endif
 1236|       |
 1237|      2|    CFG_ATTACH(rtpp_cfg_purge_sessions, cfsp);
  ------------------
  |  |  954|      2|#define CFG_ATTACH(f, p) do { \
  |  |  955|      2|    if (RTPP_OBJ_DTOR_ATTACH(cfsp, (f), (p)) != 0) { \
  |  |  ------------------
  |  |  |  |  175|      2|#define RTPP_OBJ_DTOR_ATTACH(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  176|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |  |  Branch (955:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  956|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s()", #f); \
  |  |  ------------------
  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  956|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s()", #f); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   57|      0|  __LINE__, ## args)
  |  |  ------------------
  |  |  957|      0|        ((rtpp_refcnt_dtor_t)(f))(p); \
  |  |  958|      0|        goto startup_failed; \
  |  |  959|      0|    } \
  |  |  960|      2|} while (0)
  |  |  ------------------
  |  |  |  Branch (960:10): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1238|      2|    cfsp->rtpp_cmd_cf = rtpp_command_async_ctor(cfsp);
 1239|      2|    if (cfsp->rtpp_cmd_cf == NULL) {
  ------------------
  |  Branch (1239:9): [True: 0, False: 2]
  ------------------
 1240|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR,
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1240|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR,
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1241|      0|          "can't init command processing subsystem");
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
 1241|      0|          "can't init command processing subsystem");
 1242|      0|        goto startup_failed;
 1243|      0|    }
 1244|      2|    CFG_ATTACH(cfsp->rtpp_cmd_cf->dtor, cfsp->rtpp_cmd_cf);
  ------------------
  |  |  954|      2|#define CFG_ATTACH(f, p) do { \
  |  |  955|      2|    if (RTPP_OBJ_DTOR_ATTACH(cfsp, (f), (p)) != 0) { \
  |  |  ------------------
  |  |  |  |  175|      2|#define RTPP_OBJ_DTOR_ATTACH(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  176|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |  |  Branch (955:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  956|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s()", #f); \
  |  |  ------------------
  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  ------------------
  |  |  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  956|      0|        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "can't attach %s()", #f); \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   57|      0|  __LINE__, ## args)
  |  |  ------------------
  |  |  957|      0|        ((rtpp_refcnt_dtor_t)(f))(p); \
  |  |  958|      0|        goto startup_failed; \
  |  |  959|      0|    } \
  |  |  960|      2|} while (0)
  |  |  ------------------
  |  |  |  Branch (960:10): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1245|       |
 1246|      2|    if (cfsp->ropts.no_sigtrap == 0) {
  ------------------
  |  Branch (1246:9): [True: 0, False: 2]
  ------------------
 1247|      0|        signal(SIGHUP, sighup);
 1248|      0|        signal(SIGINT, fatsignal);
 1249|      0|        signal(SIGKILL, fatsignal);
 1250|      0|        signal(SIGTERM, fatsignal);
 1251|      0|        signal(SIGXCPU, fatsignal);
 1252|      0|        signal(SIGXFSZ, fatsignal);
 1253|      0|        signal(SIGVTALRM, fatsignal);
 1254|      0|        signal(SIGPROF, fatsignal);
 1255|      0|        signal(SIGUSR1, fatsignal);
 1256|      0|        signal(SIGUSR2, fatsignal);
 1257|      0|        void (*bad_handler)(int) = badsignal;
 1258|      0|        RTPP_DBGCODE(catchtrace) {
  ------------------
  |  |   86|      0|#define RTPP_DBGCODE(x) if (_DCOND_##x)
  |  |  ------------------
  |  |  |  |   82|      0|#define _DCOND_catchtrace RTPP_DEBUG_catchtrace
  |  |  |  |  ------------------
  |  |  |  |  |  |   62|      0|# define RTPP_DEBUG_catchtrace  RTPP_DBG_NO
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   34|      0|#define RTPP_DBG_NO	0
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (34:21): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1259|      0|            bad_handler = rtpp_stacktrace;
 1260|      0|        }
 1261|      0|        signal(SIGQUIT, bad_handler);
 1262|      0|        signal(SIGILL, bad_handler);
 1263|      0|        signal(SIGTRAP, bad_handler);
 1264|      0|        signal(SIGABRT, bad_handler);
 1265|       |#if defined(SIGEMT)
 1266|       |        signal(SIGEMT, bad_handler);
 1267|       |#endif
 1268|      0|        signal(SIGFPE, bad_handler);
 1269|      0|        signal(SIGBUS, bad_handler);
 1270|      0|        signal(SIGSEGV, bad_handler);
 1271|      0|        signal(SIGSYS, bad_handler);
 1272|      0|    }
 1273|       |
 1274|       |#if !defined(LIBRTPPROXY)
 1275|       |    elp = prdic_init(cfsp->target_pfreq / 10.0, 0.0);
 1276|       |    if (elp == NULL) {
 1277|       |        RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "prdic_init() failed");
 1278|       |        goto startup_failed;
 1279|       |    }
 1280|       |#endif
 1281|       |
 1282|      2|    if (pid_fd >= 0) {
  ------------------
  |  Branch (1282:9): [True: 0, False: 2]
  ------------------
 1283|      0|        if (ftruncate(pid_fd, 0) != 0) {
  ------------------
  |  Branch (1283:13): [True: 0, False: 0]
  ------------------
 1284|      0|            RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "can't truncate pidfile");
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1284|      0|            RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "can't truncate pidfile");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
 1285|      0|            goto startup_failed;
 1286|      0|        }
 1287|      0|        len = sprintf(buf, "%u\n", (unsigned int)getpid());
 1288|      0|        if (write(pid_fd, buf, len) != len) {
  ------------------
  |  Branch (1288:13): [True: 0, False: 0]
  ------------------
 1289|      0|            RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "can't write pidfile");
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1289|      0|            RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "can't write pidfile");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
 1290|      0|            goto startup_failed;
 1291|      0|        }
 1292|      0|        close(pid_fd);
 1293|      0|    }
 1294|       |
 1295|       |#ifdef HAVE_SYSTEMD_DAEMON
 1296|       |    sd_notify(0, "READY=1");
 1297|       |#endif
 1298|       |
 1299|      2|    if (cfsp->ropts.no_daemon == 0) {
  ------------------
  |  Branch (1299:9): [True: 0, False: 2]
  ------------------
 1300|      0|        if (rtpp_daemon_rel_parent(&drop) != 0) {
  ------------------
  |  Branch (1300:13): [True: 0, False: 0]
  ------------------
 1301|      0|            RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "parent died prematurely #cry #die");
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1301|      0|            RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "parent died prematurely #cry #die");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
 1302|      0|            goto startup_failed;
 1303|      0|        }
 1304|      0|    }
 1305|       |
 1306|      2|#if defined(LIBRTPPROXY)
 1307|      2|    return (cfsp);
 1308|      0|#endif
 1309|       |
 1310|      0|    for (;;) {
 1311|      0|        if (cfsp->fastshutdown != 0) {
  ------------------
  |  Branch (1311:13): [True: 0, False: 0]
  ------------------
 1312|      0|            break;
 1313|      0|        }
 1314|      0|        if (cfsp->slowshutdown != 0 &&
  ------------------
  |  Branch (1314:13): [True: 0, False: 0]
  ------------------
 1315|      0|          CALL_SMETHOD(cfsp->sessions_wrt, get_length) == 0) {
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1315:11): [True: 0, False: 0]
  ------------------
 1316|      0|            RTPP_LOG(cfsp->glog, RTPP_LOG_INFO,
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  | 1316|      0|            RTPP_LOG(cfsp->glog, RTPP_LOG_INFO,
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   45|      0|#define	RTPP_LOG_INFO	LOG_INFO
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1317|      0|              "deorbiting-burn sequence completed, exiting");
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
 1317|      0|              "deorbiting-burn sequence completed, exiting");
 1318|      0|            break;
 1319|      0|        }
 1320|      0|        prdic_procrastinate(elp);
 1321|      0|    }
 1322|      0|    prdic_free(elp);
 1323|       |
 1324|      0|    rtpp_shutdown(cfsp);
 1325|       |
 1326|       |#ifdef HAVE_SYSTEMD_DAEMON
 1327|       |    sd_notify(0, "STATUS=Exited");
 1328|       |#endif
 1329|       |
 1330|      0|    rtpp_exit(1, 0);
 1331|       |
 1332|      0|startup_failed:
 1333|       |    /* Worker threads may be live at this stage. Join them before exit
 1334|       |     * handlers free the configuration and logging state they reference. */
 1335|       |#if !defined(LIBRTPPROXY)
 1336|       |    if (elp != NULL)
 1337|       |        prdic_free(elp);
 1338|       |#endif
 1339|      0|    rtpp_shutdown(cfsp);
 1340|       |    MAIN_EXIT(1);
  ------------------
  |  |  935|      0|#define MAIN_EXIT(code)          do { \
  |  |  936|      0|    return NULL;                      \
  |  |  937|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (937:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1341|      0|}
main.c:init_config:
  346|      2|{
  347|      2|    int ch, umode, stdio_mode;
  348|      2|    struct bindarg bargs[BINDARG_MAX] = {0};
  349|      2|    int banum = 0;
  350|      2|    char *cp;
  351|      2|    const char *errmsg;
  352|      2|    struct passwd *pp;
  353|      2|    struct group *gp;
  354|      2|    struct rtpp_ctrl_sock *ctrl_sock;
  355|      2|    int option_index, brsym;
  356|      2|    const struct proto_cap *pcp;
  357|      2|#if ENABLE_MODULE_IF
  358|      2|    struct rtpp_module_if *mif;
  359|      2|    char mpath[PATH_MAX + 1];
  360|      2|    struct rtpp_module_conf *mcp;
  361|      2|#endif
  362|       |
  363|      2|    umode = stdio_mode = 0;
  364|       |
  365|      2|    cfsp->pid_file = PID_FILE;
  ------------------
  |  |   55|      2|#define	PID_FILE	"/var/run/rtpproxy.pid"
  ------------------
  366|       |
  367|      2|    cfsp->port_min = PORT_MIN;
  ------------------
  |  |   38|      2|#define	PORT_MIN	35000
  ------------------
  368|      2|    cfsp->port_max = PORT_MAX;
  ------------------
  |  |   39|      2|#define	PORT_MAX	65000
  ------------------
  369|      2|    cfsp->port_ctl = 0;
  370|       |
  371|      2|    cfsp->max_ttl = SESSION_TIMEOUT;
  ------------------
  |  |   41|      2|#define	SESSION_TIMEOUT	60	/* in ticks */
  ------------------
  372|      2|    cfsp->maxpps_rtp = 0;
  373|      2|    cfsp->maxpps_rtcp = 0;
  374|      2|    cfsp->maxpsize_rtp = 0;
  375|      2|    cfsp->maxpsize_rtcp = 0;
  376|      2|    cfsp->tos = TOS;
  ------------------
  |  |   42|      2|#define	TOS		0xb8
  ------------------
  377|      2|    cfsp->rrtcp = 1;
  378|      2|    cfsp->runcreds->sock_mode = 0;
  379|      2|    cfsp->ttl_mode = TTL_UNIFIED;
  380|      2|    cfsp->log_level = -1;
  381|      2|    cfsp->log_facility = -1;
  382|      2|    cfsp->sched_hz = rtpp_get_sched_hz();
  383|      2|    cfsp->sched_policy = SCHED_OTHER;
  384|      2|    cfsp->sched_nice = PRIO_UNSET;
  ------------------
  |  |  137|      2|#define PRIO_UNSET (PRIO_MIN - 1)
  ------------------
  385|      2|    cfsp->target_pfreq = MIN(POLL_RATE, cfsp->sched_hz);
  ------------------
  |  |   40|      2|#define MIN(x, y)       (((x) > (y)) ? (y) : (x))
  |  |  ------------------
  |  |  |  Branch (40:26): [True: 0, False: 2]
  |  |  ------------------
  ------------------
  386|      2|    cfsp->slowshutdown = 0;
  387|      2|    cfsp->fastshutdown = 0;
  388|       |#if defined(RTPP_DEBUG)
  389|       |    cfsp->no_redirect = 1;
  390|       |#endif
  391|       |
  392|      2|    cfsp->rtpp_tnset_cf = rtpp_tnotify_set_ctor();
  393|      2|    if (cfsp->rtpp_tnset_cf == NULL) {
  ------------------
  |  Branch (393:9): [True: 0, False: 2]
  ------------------
  394|      0|        IC_ERR(1, "rtpp_tnotify_set_ctor");
  ------------------
  |  |  289|      0|#define IC_ERR(code, fmt, ...) do { \
  |  |  290|      0|    warn(fmt, ##__VA_ARGS__);       \
  |  |  291|      0|    return -code;                   \
  |  |  292|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (292:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  395|      0|    }
  396|       |
  397|      2|    cfsp->locks = malloc(sizeof(*cfsp->locks));
  398|      2|    if (cfsp->locks == NULL) {
  ------------------
  |  Branch (398:9): [True: 0, False: 2]
  ------------------
  399|      0|        IC_ERR(1, "malloc(rtpp_cfg->locks)");
  ------------------
  |  |  289|      0|#define IC_ERR(code, fmt, ...) do { \
  |  |  290|      0|    warn(fmt, ##__VA_ARGS__);       \
  |  |  291|      0|    return -code;                   \
  |  |  292|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (292:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  400|      0|    }
  401|      2|    if (pthread_mutex_init(&(cfsp->locks->glob), NULL) != 0) {
  ------------------
  |  Branch (401:9): [True: 0, False: 2]
  ------------------
  402|      0|        IC_ERRX(1, "pthread_mutex_init(rtpp_cfg->locks->glob)");
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  403|      0|    }
  404|      2|    cfsp->bindaddrs_cf = rtpp_bindaddrs_ctor();
  405|      2|    if (cfsp->bindaddrs_cf == NULL) {
  ------------------
  |  Branch (405:9): [True: 0, False: 2]
  ------------------
  406|      0|        IC_ERR(1, "malloc(rtpp_cfg->bindaddrs_cf)");
  ------------------
  |  |  289|      0|#define IC_ERR(code, fmt, ...) do { \
  |  |  290|      0|    warn(fmt, ##__VA_ARGS__);       \
  |  |  291|      0|    return -code;                   \
  |  |  292|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (292:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  407|      0|    }
  408|      2|    struct rtpp_bindaddr_params iebparams[2] = {0};
  409|       |
  410|      2|    cfsp->nofile = rtpp_nofile_ctor();
  411|      2|    if (cfsp->nofile == NULL)
  ------------------
  |  Branch (411:9): [True: 0, False: 2]
  ------------------
  412|      0|        IC_ERR(1, "malloc(rtpp_cfg->nofile)");
  ------------------
  |  |  289|      0|#define IC_ERR(code, fmt, ...) do { \
  |  |  290|      0|    warn(fmt, ##__VA_ARGS__);       \
  |  |  291|      0|    return -code;                   \
  |  |  292|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (292:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  413|       |
  414|      2|    cfsp->sessions_wrt = rtpp_weakref_ctor();
  415|      2|    if (cfsp->sessions_wrt == NULL) {
  ------------------
  |  Branch (415:9): [True: 0, False: 2]
  ------------------
  416|      0|        IC_ERR(1, "can't allocate memory for the sessions weakref table");
  ------------------
  |  |  289|      0|#define IC_ERR(code, fmt, ...) do { \
  |  |  290|      0|    warn(fmt, ##__VA_ARGS__);       \
  |  |  291|      0|    return -code;                   \
  |  |  292|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (292:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  417|       |         /* NOTREACHED */
  418|      0|    }
  419|       |
  420|      2|    option_index = -1;
  421|      2|    brsym = 0;
  422|     26|    while ((ch = getopt_long(argc, (char *const *)argv, "vf2Rl:6:s:S:t:r:p:T:L:m:M:u:Fin:Pad:"
  ------------------
  |  Branch (422:12): [True: 24, False: 2]
  ------------------
  423|     26|      "Vc:A:w:bW:DC", longopts, &option_index)) != -1) {
  424|     24|	switch (ch) {
  425|      0|#if ENABLE_MODULE_IF
  426|      8|        case LOPT_DSO:
  ------------------
  |  |  259|      8|#define LOPT_DSO      256
  ------------------
  |  Branch (426:9): [True: 8, False: 16]
  ------------------
  427|      8|            cp = NULL;
  428|      8|            if (rtpp_use_smodules) {
  ------------------
  |  Branch (428:17): [True: 8, False: 0]
  ------------------
  429|      8|                if (rtpp_static_modules_lookup(optarg) != NULL) {
  ------------------
  |  Branch (429:21): [True: 8, False: 0]
  ------------------
  430|      8|                    cp = optarg;
  431|      8|                } else {
  432|      0|                    IC_ERRX(1, "%s: static module is not compiled in", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  433|      0|                }
  434|      8|            }
  435|      8|            if (cp == NULL)
  ------------------
  |  Branch (435:17): [True: 0, False: 8]
  ------------------
  436|      0|                cp = realpath(optarg, mpath);
  437|      8|            if (cp == NULL) {
  ------------------
  |  Branch (437:17): [True: 0, False: 8]
  ------------------
  438|      0|                 IC_ERR(1, "realpath: %s", optarg);
  ------------------
  |  |  289|      0|#define IC_ERR(code, fmt, ...) do { \
  |  |  290|      0|    warn(fmt, ##__VA_ARGS__);       \
  |  |  291|      0|    return -code;                   \
  |  |  292|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (292:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  439|      0|            }
  440|      8|            mif = rtpp_module_if_ctor(cp);
  441|      8|            if (mif == NULL) {
  ------------------
  |  Branch (441:17): [True: 0, False: 8]
  ------------------
  442|      0|                IC_ERR(1, "%s: dymanic module constructor has failed", cp);
  ------------------
  |  |  289|      0|#define IC_ERR(code, fmt, ...) do { \
  |  |  290|      0|    warn(fmt, ##__VA_ARGS__);       \
  |  |  291|      0|    return -code;                   \
  |  |  292|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (292:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  443|      0|            }
  444|      8|            if (CALL_METHOD(mif, load, cfsp, cfsp->glog) != 0) {
  ------------------
  |  |   83|      8|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  |  Branch (444:17): [True: 0, False: 8]
  ------------------
  445|      0|                IC_ERRX(1, "%p: dymanic module load has failed", mif);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  446|      0|            }
  447|      8|            if (CALL_METHOD(mif, get_mconf, &mcp, 1) != 0) {
  ------------------
  |  |   83|      8|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  |  Branch (447:17): [True: 0, False: 8]
  ------------------
  448|      0|                IC_ERRX(1, "%s: dymanic module cannot be loaded via --dso "
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  449|      0|                  "option", cp);
  450|      0|            }
  451|      8|            if (mcp != NULL) {
  ------------------
  |  Branch (451:17): [True: 2, False: 6]
  ------------------
  452|      2|                 RTPP_OBJ_DECREF(mcp);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  453|      2|            }
  454|      8|            CALL_METHOD(cfsp->modules_cf, insert, mif);
  ------------------
  |  |   83|      8|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  455|       |#else
  456|       |            IC_ERRX(1, "%s: dymanic module support is not compiled in", cp);
  457|       |#endif
  458|      8|            break;
  459|       |
  460|      0|        case LOPT_BRSYM:
  ------------------
  |  |  260|      0|#define LOPT_BRSYM    257
  ------------------
  |  Branch (460:9): [True: 0, False: 24]
  ------------------
  461|      0|            brsym = 1;
  462|      0|            break;
  463|       |
  464|      0|        case LOPT_NICE:
  ------------------
  |  |  261|      0|#define LOPT_NICE     258
  ------------------
  |  Branch (464:9): [True: 0, False: 24]
  ------------------
  465|      0|            switch (atoi_saferange(optarg, &cfsp->sched_nice, PRIO_MIN, PRIO_MAX)) {
  466|      0|            case ATOI_OK:
  ------------------
  |  Branch (466:13): [True: 0, False: 0]
  ------------------
  467|      0|                break;
  468|      0|            case ATOI_OUTRANGE:
  ------------------
  |  Branch (468:13): [True: 0, False: 0]
  ------------------
  469|      0|                IC_ERRX(1, "%s: nice level is out of range %d..%d", optarg,
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  ------------------
  |  |  |  |  469|      0|                IC_ERRX(1, "%s: nice level is out of range %d..%d", optarg,
  |  |  |  |  470|      0|                  PRIO_MIN, PRIO_MAX);
  |  |  ------------------
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  470|      0|                  PRIO_MIN, PRIO_MAX);
  471|      0|            default:
  ------------------
  |  Branch (471:13): [True: 0, False: 0]
  ------------------
  472|      0|                IC_ERRX(1, "%s: nice level argument is invalid", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  473|      0|            }
  474|      0|            break;
  475|       |
  476|      0|        case LOPT_OVL_PROT:
  ------------------
  |  |  262|      0|#define LOPT_OVL_PROT 259
  ------------------
  |  Branch (476:9): [True: 0, False: 24]
  ------------------
  477|      0|            cfsp->overload_prot.low_trs = 0.85;
  478|      0|            cfsp->overload_prot.high_trs = 0.90;
  479|      0|            cfsp->overload_prot.ecode = ECODE_OVERLOAD;
  ------------------
  |  |   87|      0|#define ECODE_OVERLOAD    98
  ------------------
  480|      0|            break;
  481|       |
  482|      0|        case LOPT_CONFIG:
  ------------------
  |  |  263|      0|#define LOPT_CONFIG   260
  ------------------
  |  Branch (482:9): [True: 0, False: 24]
  ------------------
  483|      0|            cfsp->cfile = optarg;
  484|      0|            break;
  485|       |
  486|      0|        case LOPT_FORC_ASM:
  ------------------
  |  |  264|      0|#define LOPT_FORC_ASM 261
  ------------------
  |  Branch (486:9): [True: 0, False: 24]
  ------------------
  487|      0|            cfsp->aforce = 1;
  488|      0|            break;
  489|       |
  490|      0|        case LOPT_NO_RESOL:
  ------------------
  |  |  265|      0|#define LOPT_NO_RESOL 262
  ------------------
  |  Branch (490:9): [True: 0, False: 24]
  ------------------
  491|      0|            cfsp->no_resolve = 1;
  492|      0|            break;
  493|       |
  494|      0|        case LOPT_NO_REDIR:
  ------------------
  |  |  266|      0|#define LOPT_NO_REDIR 263
  ------------------
  |  Branch (494:9): [True: 0, False: 24]
  ------------------
  495|      0|            cfsp->no_redirect = 1;
  496|      0|            break;
  497|       |
  498|      0|        case LOPT_MAXPPS:
  ------------------
  |  |  267|      0|#define LOPT_MAXPPS   264
  ------------------
  |  Branch (498:9): [True: 0, False: 24]
  ------------------
  499|      0|            switch (rtpp_parse_rtp_rtcp_val(optarg, &cfsp->maxpps_rtp,
  500|      0|              &cfsp->maxpps_rtcp, 0)) {
  501|      0|            case ATOI_OK:
  ------------------
  |  Branch (501:13): [True: 0, False: 0]
  ------------------
  502|      0|                break;
  503|      0|            case ATOI_OUTRANGE:
  ------------------
  |  Branch (503:13): [True: 0, False: 0]
  ------------------
  504|      0|                IC_ERRX(1, "%s: maxpps argument is out of range", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  505|      0|            default:
  ------------------
  |  Branch (505:13): [True: 0, False: 0]
  ------------------
  506|      0|                IC_ERRX(1, "%s: maxpps argument is invalid", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  507|      0|            }
  508|      0|            break;
  509|       |
  510|      0|        case LOPT_MAXPSIZE:
  ------------------
  |  |  268|      0|#define LOPT_MAXPSIZE 265
  ------------------
  |  Branch (510:9): [True: 0, False: 24]
  ------------------
  511|      0|            switch (rtpp_parse_rtp_rtcp_val(optarg, &cfsp->maxpsize_rtp,
  512|      0|              &cfsp->maxpsize_rtcp, 0)) {
  513|      0|            case ATOI_OK:
  ------------------
  |  Branch (513:13): [True: 0, False: 0]
  ------------------
  514|      0|                break;
  515|      0|            case ATOI_OUTRANGE:
  ------------------
  |  Branch (515:13): [True: 0, False: 0]
  ------------------
  516|      0|                IC_ERRX(1, "%s: maxpsize argument is out of range", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  517|      0|            default:
  ------------------
  |  Branch (517:13): [True: 0, False: 0]
  ------------------
  518|      0|                IC_ERRX(1, "%s: maxpsize argument is invalid", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  519|      0|            }
  520|      0|            break;
  521|       |
  522|      0|        case 'c':
  ------------------
  |  Branch (522:9): [True: 0, False: 24]
  ------------------
  523|      0|            if (strcmp(optarg, "fifo") == 0) {
  ------------------
  |  Branch (523:17): [True: 0, False: 0]
  ------------------
  524|      0|                 cfsp->sched_policy = SCHED_FIFO;
  525|      0|                 break;
  526|      0|            }
  527|      0|            if (strcmp(optarg, "rr") == 0) {
  ------------------
  |  Branch (527:17): [True: 0, False: 0]
  ------------------
  528|      0|                 cfsp->sched_policy = SCHED_RR;
  529|      0|                 break;
  530|      0|            }
  531|      0|            IC_ERRX(1, "%s: unknown scheduling policy", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  532|      0|            break;
  533|       |
  534|      2|	case 'f':
  ------------------
  |  Branch (534:2): [True: 2, False: 22]
  ------------------
  535|      2|	    cfsp->ropts.no_daemon = 1;
  536|      2|	    break;
  537|       |
  538|      0|	case 'l':
  ------------------
  |  Branch (538:2): [True: 0, False: 24]
  ------------------
  539|      0|	    if (banum == BINDARG_MAX)
  ------------------
  |  |   35|      0|#define BINDARG_MAX     16
  ------------------
  |  Branch (539:10): [True: 0, False: 0]
  ------------------
  540|      0|		IC_ERRX(1, "number of listening addresses exceeds BINDARG_MAX");
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  541|      0|	    bindarg_parse(&bargs[banum++], optarg, 0);
  542|      0|	    break;
  543|       |
  544|      0|	case '6':
  ------------------
  |  Branch (544:2): [True: 0, False: 24]
  ------------------
  545|      0|	    if (banum == BINDARG_MAX)
  ------------------
  |  |   35|      0|#define BINDARG_MAX     16
  ------------------
  |  Branch (545:10): [True: 0, False: 0]
  ------------------
  546|      0|		IC_ERRX(1, "number of listening addresses exceeds BINDARG_MAX");
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  547|      0|	    bindarg_parse(&bargs[banum++], optarg, 1);
  548|      0|	    break;
  549|       |
  550|      0|	case 'A':
  ------------------
  |  Branch (550:2): [True: 0, False: 24]
  ------------------
  551|      0|	    if (*optarg == '\0') {
  ------------------
  |  Branch (551:10): [True: 0, False: 0]
  ------------------
  552|      0|		IC_ERRX(1, "first advertised address is invalid");
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  553|      0|	    }
  554|      0|	    cp = strchr(optarg, '/');
  555|      0|	    if (cp != NULL) {
  ------------------
  |  Branch (555:10): [True: 0, False: 0]
  ------------------
  556|      0|		*cp = '\0';
  557|      0|		cp++;
  558|      0|		if (*cp == '\0') {
  ------------------
  |  Branch (558:7): [True: 0, False: 0]
  ------------------
  559|      0|		    IC_ERRX(1, "second advertised address is invalid");
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  560|      0|		}
  561|      0|		iebparams[1].advaddr = rtpp_str_const_i(cp);
  ------------------
  |  |   73|      0|#define rtpp_str_const_i(_s)	((rtpp_str_const_t){.s = _s, .len = strlen(_s)})
  ------------------
  562|      0|	    }
  563|      0|	    iebparams[0].advaddr = rtpp_str_const_i(optarg);
  ------------------
  |  |   73|      0|#define rtpp_str_const_i(_s)	((rtpp_str_const_t){.s = _s, .len = strlen(_s)})
  ------------------
  564|      0|	    break;
  565|       |
  566|      2|	case 's':
  ------------------
  |  Branch (566:2): [True: 2, False: 22]
  ------------------
  567|      2|            ctrl_sock = rtpp_ctrl_sock_parse(optarg);
  568|      2|            if (ctrl_sock == NULL) {
  ------------------
  |  Branch (568:17): [True: 0, False: 2]
  ------------------
  569|      0|                IC_ERRX(1, "can't parse control socket argument");
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  570|      0|            }
  571|      2|            rtpp_list_append(cfsp->ctrl_socks, ctrl_sock);
  572|      2|            if (RTPP_CTRL_ISDG(ctrl_sock)) {
  ------------------
  |  |   48|      2|#define RTPP_CTRL_ISDG(rcsp) ((rcsp)->type == RTPC_UDP4 || (rcsp)->type == RTPC_UDP6)
  |  |  ------------------
  |  |  |  Branch (48:31): [True: 0, False: 2]
  |  |  |  Branch (48:60): [True: 0, False: 2]
  |  |  ------------------
  ------------------
  573|      0|                umode = 1;
  574|      2|            } else if (ctrl_sock->type == RTPC_STDIO) {
  ------------------
  |  Branch (574:24): [True: 0, False: 2]
  ------------------
  575|      0|                stdio_mode = 1;
  576|      0|            }
  577|      2|	    break;
  578|       |
  579|      0|	case 't':
  ------------------
  |  Branch (579:2): [True: 0, False: 24]
  ------------------
  580|      0|            switch (atoi_saferange(optarg, &cfsp->tos, 0, 255)) {
  581|      0|            case ATOI_OK:
  ------------------
  |  Branch (581:13): [True: 0, False: 0]
  ------------------
  582|      0|                break;
  583|      0|            case ATOI_OUTRANGE:
  ------------------
  |  Branch (583:13): [True: 0, False: 0]
  ------------------
  584|      0|                IC_ERRX(1, "%s: TOS is too small/large", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  585|      0|            default:
  ------------------
  |  Branch (585:13): [True: 0, False: 0]
  ------------------
  586|      0|                IC_ERRX(1, "%s: TOS argument is invalid", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  587|      0|	    }
  588|      0|            break;
  589|       |
  590|      0|	case '2':
  ------------------
  |  Branch (590:2): [True: 0, False: 24]
  ------------------
  591|      0|	    cfsp->dmode = 1;
  592|      0|	    break;
  593|       |
  594|      0|	case 'v':
  ------------------
  |  Branch (594:2): [True: 0, False: 24]
  ------------------
  595|      0|	    printf("Basic version: %d\n", CPROTOVER);
  ------------------
  |  |   36|      0|#define	CPROTOVER	20040107
  ------------------
  596|      0|	    for (pcp = iterate_proto_caps(NULL); pcp != NULL; pcp = iterate_proto_caps(pcp)) {
  ------------------
  |  Branch (596:43): [True: 0, False: 0]
  ------------------
  597|      0|		printf("Extension %s: %s\n", pcp->pc_id, pcp->pc_description);
  598|      0|	    }
  599|      0|	    IC_BAIL(cfsp, 0, NULL, 0);
  ------------------
  |  |  285|      0|#define IC_BAIL(c, r, m, mdb) do {  \
  |  |  286|      0|    init_config_bail(c, r, m, mdb); \
  |  |  287|      0|    return (-1);                    \
  |  |  288|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (288:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  600|      0|	    break;
  601|       |
  602|      2|	case 'r':
  ------------------
  |  Branch (602:2): [True: 2, False: 22]
  ------------------
  603|      2|	    cfsp->rdir = optarg;
  604|      2|	    break;
  605|       |
  606|      2|	case 'S':
  ------------------
  |  Branch (606:2): [True: 2, False: 22]
  ------------------
  607|      2|	    cfsp->sdir = optarg;
  608|      2|	    break;
  609|       |
  610|      0|	case 'R':
  ------------------
  |  Branch (610:2): [True: 0, False: 24]
  ------------------
  611|      0|	    cfsp->rrtcp = 0;
  612|      0|	    break;
  613|       |
  614|      0|	case 'p':
  ------------------
  |  Branch (614:2): [True: 0, False: 24]
  ------------------
  615|      0|	    cfsp->pid_file = optarg;
  616|      0|	    break;
  617|       |
  618|      2|	case 'T':
  ------------------
  |  Branch (618:2): [True: 2, False: 22]
  ------------------
  619|      2|	    if (atoi_saferange(optarg, &cfsp->max_ttl, 1, -1))
  ------------------
  |  Branch (619:10): [True: 0, False: 2]
  ------------------
  620|      0|                IC_ERRX(1, "%s: max TTL argument is invalid", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  621|      2|	    break;
  622|       |
  623|      2|	case 'L': {
  ------------------
  |  Branch (623:2): [True: 0, False: 24]
  ------------------
  624|      0|            int rlim_max_opt;
  625|       |
  626|      0|            if (atoi_saferange(optarg, &rlim_max_opt, 0, -1))
  ------------------
  |  Branch (626:17): [True: 0, False: 0]
  ------------------
  627|      0|                IC_ERRX(1, "%s: max file rlimit argument is invalid", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  628|      0|	    cfsp->nofile->limit->rlim_cur = rlim_max_opt;
  629|      0|	    cfsp->nofile->limit->rlim_max = rlim_max_opt;
  630|      0|	    if (setrlimit(RLIMIT_NOFILE, cfsp->nofile->limit) != 0)
  ------------------
  |  Branch (630:10): [True: 0, False: 0]
  ------------------
  631|      0|		IC_ERR(1, "setrlimit");
  ------------------
  |  |  289|      0|#define IC_ERR(code, fmt, ...) do { \
  |  |  290|      0|    warn(fmt, ##__VA_ARGS__);       \
  |  |  291|      0|    return -code;                   \
  |  |  292|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (292:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  632|      0|	    if (getrlimit(RLIMIT_NOFILE, cfsp->nofile->limit) != 0)
  ------------------
  |  Branch (632:10): [True: 0, False: 0]
  ------------------
  633|      0|		IC_ERR(1, "getrlimit");
  ------------------
  |  |  289|      0|#define IC_ERR(code, fmt, ...) do { \
  |  |  290|      0|    warn(fmt, ##__VA_ARGS__);       \
  |  |  291|      0|    return -code;                   \
  |  |  292|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (292:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  634|      0|	    if (cfsp->nofile->limit->rlim_max < rlim_max_opt)
  ------------------
  |  Branch (634:10): [True: 0, False: 0]
  ------------------
  635|      0|		warnx("limit allocated by setrlimit (%d) is less than "
  636|      0|		  "requested (%d)", (int) cfsp->nofile->limit->rlim_max,
  637|      0|		  rlim_max_opt);
  638|      0|	    break;
  639|      0|            }
  640|       |
  641|      0|	case 'm':
  ------------------
  |  Branch (641:2): [True: 0, False: 24]
  ------------------
  642|      0|	    switch (atoi_saferange(optarg, &cfsp->port_min, 1, 65535)) {
  643|      0|            case ATOI_OK:
  ------------------
  |  Branch (643:13): [True: 0, False: 0]
  ------------------
  644|      0|                break;
  645|      0|            case ATOI_OUTRANGE:
  ------------------
  |  Branch (645:13): [True: 0, False: 0]
  ------------------
  646|      0|                IC_ERRX(1, "invalid value of the port_min argument, "
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  647|      0|                  "not in the range 1-65535");
  648|      0|            default:
  ------------------
  |  Branch (648:13): [True: 0, False: 0]
  ------------------
  649|      0|                IC_ERRX(1, "%s: min port argument is invalid", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  650|      0|            }
  651|      0|	    break;
  652|       |
  653|      0|	case 'M':
  ------------------
  |  Branch (653:2): [True: 0, False: 24]
  ------------------
  654|      0|	    switch (atoi_saferange(optarg, &cfsp->port_max, 1, 65535)) {
  655|      0|            case ATOI_OK:
  ------------------
  |  Branch (655:13): [True: 0, False: 0]
  ------------------
  656|      0|                break;
  657|      0|            case ATOI_OUTRANGE:
  ------------------
  |  Branch (657:13): [True: 0, False: 0]
  ------------------
  658|      0|                IC_ERRX(1, "invalid value of the port_max argument, "
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  659|      0|                  "not in the range 1-65535");
  660|      0|            default:
  ------------------
  |  Branch (660:13): [True: 0, False: 0]
  ------------------
  661|      0|                IC_ERRX(1, "%s: max port argument is invalid", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  662|      0|            }
  663|      0|	    break;
  664|       |
  665|      0|	case 'u':
  ------------------
  |  Branch (665:2): [True: 0, False: 24]
  ------------------
  666|      0|	    cfsp->runcreds->uname = optarg;
  667|      0|	    cp = strchr(optarg, ':');
  668|      0|	    if (cp != NULL) {
  ------------------
  |  Branch (668:10): [True: 0, False: 0]
  ------------------
  669|      0|		if (cp == optarg)
  ------------------
  |  Branch (669:7): [True: 0, False: 0]
  ------------------
  670|      0|		    cfsp->runcreds->uname = NULL;
  671|      0|		cp[0] = '\0';
  672|      0|		cp++;
  673|      0|	    }
  674|      0|	    cfsp->runcreds->gname = cp;
  675|      0|	    cfsp->runcreds->uid = -1;
  676|      0|	    cfsp->runcreds->gid = -1;
  677|      0|	    if (cfsp->runcreds->uname != NULL) {
  ------------------
  |  Branch (677:10): [True: 0, False: 0]
  ------------------
  678|      0|		pp = getpwnam(cfsp->runcreds->uname);
  679|      0|		if (pp == NULL)
  ------------------
  |  Branch (679:7): [True: 0, False: 0]
  ------------------
  680|      0|		    IC_ERRX(1, "can't find ID for the user: %s", cfsp->runcreds->uname);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  681|      0|		cfsp->runcreds->uid = pp->pw_uid;
  682|      0|		if (cfsp->runcreds->gname == NULL)
  ------------------
  |  Branch (682:7): [True: 0, False: 0]
  ------------------
  683|      0|		    cfsp->runcreds->gid = pp->pw_gid;
  684|      0|	    }
  685|      0|	    if (cfsp->runcreds->gname != NULL) {
  ------------------
  |  Branch (685:10): [True: 0, False: 0]
  ------------------
  686|      0|		gp = getgrnam(cfsp->runcreds->gname);
  687|      0|		if (gp == NULL)
  ------------------
  |  Branch (687:7): [True: 0, False: 0]
  ------------------
  688|      0|		    IC_ERRX(1, "can't find ID for the group: %s", cfsp->runcreds->gname);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  689|      0|		cfsp->runcreds->gid = gp->gr_gid;
  690|      0|                if (cfsp->runcreds->sock_mode == 0) {
  ------------------
  |  Branch (690:21): [True: 0, False: 0]
  ------------------
  691|      0|                    cfsp->runcreds->sock_mode = 0755;
  692|      0|                }
  693|      0|	    }
  694|      0|	    break;
  695|       |
  696|      0|	case 'w': {
  ------------------
  |  Branch (696:2): [True: 0, False: 24]
  ------------------
  697|      0|            int sock_mode;
  698|       |
  699|      0|	    if (atoi_saferange(optarg, &sock_mode, 0, 4095))
  ------------------
  |  Branch (699:10): [True: 0, False: 0]
  ------------------
  700|      0|                IC_ERRX(1, "%s: socket mode argument is invalid", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  701|      0|            cfsp->runcreds->sock_mode = sock_mode;
  702|      0|	    break;
  703|      0|            }
  704|       |
  705|      0|	case 'F':
  ------------------
  |  Branch (705:2): [True: 0, False: 24]
  ------------------
  706|      0|	    cfsp->no_check = 1;
  707|      0|	    break;
  708|       |
  709|      0|	case 'i':
  ------------------
  |  Branch (709:2): [True: 0, False: 24]
  ------------------
  710|      0|	    cfsp->ttl_mode = TTL_INDEPENDENT;
  711|      0|	    break;
  712|       |
  713|      2|	case 'n':
  ------------------
  |  Branch (713:2): [True: 2, False: 22]
  ------------------
  714|      2|	    if(strlen(optarg) == 0)
  ------------------
  |  Branch (714:9): [True: 0, False: 2]
  ------------------
  715|      0|		IC_ERRX(1, "timeout notification socket name too short");
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  716|      2|            if (CALL_METHOD(cfsp->rtpp_tnset_cf, append, optarg, &errmsg) != 0) {
  ------------------
  |  |   83|      2|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  |  Branch (716:17): [True: 0, False: 2]
  ------------------
  717|      0|                IC_ERRX(1, "error adding timeout notification: %s", errmsg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  718|      0|            }
  719|      2|	    break;
  720|       |
  721|      2|	case 'P':
  ------------------
  |  Branch (721:2): [True: 0, False: 24]
  ------------------
  722|      0|	    cfsp->record_pcap = 1;
  723|      0|	    break;
  724|       |
  725|      0|	case 'a':
  ------------------
  |  Branch (725:2): [True: 0, False: 24]
  ------------------
  726|      0|	    cfsp->record_all = 1;
  727|      0|	    break;
  728|       |
  729|      2|	case 'd':
  ------------------
  |  Branch (729:2): [True: 2, False: 22]
  ------------------
  730|      2|	    cp = strchr(optarg, ':');
  731|      2|	    if (cp != NULL) {
  ------------------
  |  Branch (731:10): [True: 0, False: 2]
  ------------------
  732|      0|		cfsp->log_facility = rtpp_log_str2fac(cp + 1);
  733|      0|		if (cfsp->log_facility == -1)
  ------------------
  |  Branch (733:7): [True: 0, False: 0]
  ------------------
  734|      0|		    IC_ERRX(1, "%s: invalid log facility", cp + 1);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  735|      0|		*cp = '\0';
  736|      0|	    }
  737|      2|	    cfsp->log_level = rtpp_log_str2lvl(optarg);
  738|      2|	    if (cfsp->log_level == -1)
  ------------------
  |  Branch (738:10): [True: 0, False: 2]
  ------------------
  739|      0|		IC_ERRX(1, "%s: invalid log level", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  740|      2|            CALL_METHOD(cfsp->glog, setlevel, cfsp->log_level);
  ------------------
  |  |   83|      2|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  741|      2|	    break;
  742|       |
  743|      0|	case 'V':
  ------------------
  |  Branch (743:2): [True: 0, False: 24]
  ------------------
  744|      0|	    printf("%s\n", RTPP_SW_VERSION);
  ------------------
  |  |   10|      0|#define RTPP_SW_VERSION (PACKAGE_VERSION "." VERSION_GIT)
  |  |  ------------------
  |  |  |  |  217|      0|#define PACKAGE_VERSION "3.2.0"
  |  |  ------------------
  |  |               #define RTPP_SW_VERSION (PACKAGE_VERSION "." VERSION_GIT)
  |  |  ------------------
  |  |  |  |  245|      0|#define VERSION_GIT "52c03a10"
  |  |  ------------------
  ------------------
  745|      0|	    IC_BAIL(cfsp, 0, NULL, 0);
  ------------------
  |  |  285|      0|#define IC_BAIL(c, r, m, mdb) do {  \
  |  |  286|      0|    init_config_bail(c, r, m, mdb); \
  |  |  287|      0|    return (-1);                    \
  |  |  288|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (288:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  746|      0|	    break;
  747|       |
  748|      2|        case 'W':
  ------------------
  |  Branch (748:9): [True: 2, False: 22]
  ------------------
  749|      2|            if (atoi_saferange(optarg, &cfsp->max_setup_ttl, 1, -1))
  ------------------
  |  Branch (749:17): [True: 0, False: 2]
  ------------------
  750|      0|                IC_ERRX(1, "%s: max setup TTL argument is invalid", optarg);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  751|      2|            break;
  752|       |
  753|      2|        case 'b':
  ------------------
  |  Branch (753:9): [True: 0, False: 24]
  ------------------
  754|      0|            cfsp->seq_ports = 1;
  755|      0|            break;
  756|       |
  757|      0|        case 'D':
  ------------------
  |  Branch (757:9): [True: 0, False: 24]
  ------------------
  758|      0|	    cfsp->ropts.no_chdir = 1;
  759|      0|	    break;
  760|       |
  761|      0|        case 'C':
  ------------------
  |  Branch (761:9): [True: 0, False: 24]
  ------------------
  762|      0|	    printf("%s\n", get_mclock_name());
  763|      0|	    IC_BAIL(cfsp, 0, NULL, 0);
  ------------------
  |  |  285|      0|#define IC_BAIL(c, r, m, mdb) do {  \
  |  |  286|      0|    init_config_bail(c, r, m, mdb); \
  |  |  287|      0|    return (-1);                    \
  |  |  288|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (288:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  764|      0|	    break;
  765|       |
  766|      0|	case '?':
  ------------------
  |  Branch (766:2): [True: 0, False: 24]
  ------------------
  767|      0|	default:
  ------------------
  |  Branch (767:2): [True: 0, False: 24]
  ------------------
  768|      0|	    usage();
  769|      0|	    return(-1);
  770|     24|	}
  771|     24|    }
  772|       |
  773|      2|    if (optind != argc) {
  ------------------
  |  Branch (773:9): [True: 0, False: 2]
  ------------------
  774|      0|       warnx("%d extra unhandled argument%s at the end of the command line",
  775|      0|         argc - optind, (argc - optind) > 1 ? "s" : "");
  ------------------
  |  Branch (775:25): [True: 0, False: 0]
  ------------------
  776|      0|       usage();
  777|      0|       return(-1);
  778|      0|    }
  779|       |
  780|      2|    if (cfsp->cfile != NULL) {
  ------------------
  |  Branch (780:9): [True: 0, False: 2]
  ------------------
  781|      0|        if (rtpp_cfile_process(cfsp) < 0) {
  ------------------
  |  Branch (781:13): [True: 0, False: 0]
  ------------------
  782|      0|            IC_BAIL(cfsp, 1, "rtpp_cfile_process() failed", 1);
  ------------------
  |  |  285|      0|#define IC_BAIL(c, r, m, mdb) do {  \
  |  |  286|      0|    init_config_bail(c, r, m, mdb); \
  |  |  287|      0|    return (-1);                    \
  |  |  288|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (288:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  783|      0|        }
  784|      0|    }
  785|       |
  786|      2|    if (cfsp->max_setup_ttl == 0) {
  ------------------
  |  Branch (786:9): [True: 0, False: 2]
  ------------------
  787|      0|        cfsp->max_setup_ttl = cfsp->max_ttl;
  788|      0|    }
  789|       |
  790|       |    /* No control socket has been specified, add a default one */
  791|      2|    if (RTPP_LIST_IS_EMPTY(cfsp->ctrl_socks)) {
  ------------------
  |  |   61|      2|#define RTPP_LIST_IS_EMPTY(slp) ((slp)->len == 0)
  |  |  ------------------
  |  |  |  Branch (61:33): [True: 0, False: 2]
  |  |  ------------------
  ------------------
  792|      0|        ctrl_sock = rtpp_ctrl_sock_parse(CMD_SOCK);
  ------------------
  |  |   54|      0|#define	CMD_SOCK	"/var/run/rtpproxy.sock"
  ------------------
  793|      0|        if (ctrl_sock == NULL) {
  ------------------
  |  Branch (793:13): [True: 0, False: 0]
  ------------------
  794|      0|            IC_ERRX(1, "can't parse control socket: \"%s\"", CMD_SOCK);
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  ------------------
  |  |  |  |  794|      0|            IC_ERRX(1, "can't parse control socket: \"%s\"", CMD_SOCK);
  |  |  |  |  ------------------
  |  |  |  |  |  |   54|      0|#define	CMD_SOCK	"/var/run/rtpproxy.sock"
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  795|      0|        }
  796|      0|        rtpp_list_append(cfsp->ctrl_socks, ctrl_sock);
  797|      0|    }
  798|       |
  799|      2|    if (cfsp->rdir == NULL && cfsp->sdir != NULL)
  ------------------
  |  Branch (799:9): [True: 0, False: 2]
  |  Branch (799:31): [True: 0, False: 0]
  ------------------
  800|      0|	IC_ERRX(1, "-S switch requires -r switch");
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  801|       |
  802|      2|    if (cfsp->ropts.no_daemon == 0 && stdio_mode != 0)
  ------------------
  |  Branch (802:9): [True: 0, False: 2]
  |  Branch (802:39): [True: 0, False: 0]
  ------------------
  803|      0|        IC_ERRX(1, "stdio command mode requires -f switch");
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  804|       |
  805|      2|    if (cfsp->no_check == 0 && getuid() == 0 && cfsp->runcreds->uname == NULL) {
  ------------------
  |  Branch (805:9): [True: 2, False: 0]
  |  Branch (805:32): [True: 2, False: 0]
  |  Branch (805:49): [True: 2, False: 0]
  ------------------
  806|      2|	if (umode != 0) {
  ------------------
  |  Branch (806:6): [True: 0, False: 2]
  ------------------
  807|      0|	    IC_ERRX(1, "running this program as superuser in a remote control "
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  808|      0|	      "mode is strongly not recommended, as it poses serious security "
  809|      0|	      "threat to your system. Use -u option to run as an unprivileged "
  810|      0|	      "user or -F is you want to run as a superuser anyway.");
  811|      2|	} else {
  812|      2|	    warnx("WARNING!!! Running this program as superuser is strongly "
  813|      2|	      "not recommended, as it may pose serious security threat to "
  814|      2|	      "your system. Use -u option to run as an unprivileged user "
  815|      2|	      "or -F to surpress this warning.");
  816|      2|	}
  817|      2|    }
  818|       |
  819|       |    /* make sure that port_min and port_max are even */
  820|      2|    if ((cfsp->port_min % 2) != 0)
  ------------------
  |  Branch (820:9): [True: 0, False: 2]
  ------------------
  821|      0|	cfsp->port_min++;
  822|      2|    if ((cfsp->port_max % 2) != 0) {
  ------------------
  |  Branch (822:9): [True: 0, False: 2]
  ------------------
  823|      0|	cfsp->port_max--;
  824|      2|    } else {
  825|       |	/*
  826|       |	 * If port_max is already even then there is no
  827|       |	 * "room" for the RTCP port, go back by two ports.
  828|       |	 */
  829|      2|	cfsp->port_max -= 2;
  830|      2|    }
  831|       |
  832|      2|    if (cfsp->port_min > cfsp->port_max)
  ------------------
  |  Branch (832:9): [True: 0, False: 2]
  ------------------
  833|      0|	IC_ERRX(1, "port_min should be less than port_max");
  ------------------
  |  |  293|      0|#define IC_ERRX(code, fmt, ...) do {\
  |  |  294|      0|    warnx(fmt, ##__VA_ARGS__);      \
  |  |  295|      0|    return -code;                   \
  |  |  296|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (296:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  834|       |
  835|      2|    if (init_bindaddrs(cfsp, bargs, banum, iebparams) != 0)
  ------------------
  |  Branch (835:9): [True: 0, False: 2]
  ------------------
  836|      0|	IC_BAIL(cfsp, 1, "init_bindaddrs() failed", 1);
  ------------------
  |  |  285|      0|#define IC_BAIL(c, r, m, mdb) do {  \
  |  |  286|      0|    init_config_bail(c, r, m, mdb); \
  |  |  287|      0|    return (-1);                    \
  |  |  288|      0|} while (0)
  |  |  ------------------
  |  |  |  Branch (288:10): [Folded, False: 0]
  |  |  ------------------
  ------------------
  837|       |
  838|      2|    if (cfsp->bmode != 0 && brsym == 0) {
  ------------------
  |  Branch (838:9): [True: 0, False: 2]
  |  Branch (838:29): [True: 0, False: 0]
  ------------------
  839|       |	/*
  840|       |	 * Historically, in bridge mode all clients are assumed to
  841|       |	 * be asymmetric
  842|       |	 */
  843|      0|	cfsp->aforce = 1;
  844|      0|    }
  845|       |
  846|      2|    return 0;
  847|      2|}
main.c:rtpp_cfg_dtor:
  878|      2|{
  879|      2|    struct rtpp_ctrl_sock *ctrl_sock, *ctrl_sock_next;
  880|       |
  881|      2|#if ENABLE_MODULE_IF
  882|      2|    RTPP_OBJ_DECREF(cfsp->modules_cf);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  883|       |#else
  884|       |    assert(cfsp->_pad == (void *)0x12345678);
  885|       |    cfsp->_pad = (void *)((uintptr_t)cfsp->_pad ^ 0x87654321);
  886|       |#endif
  887|      2|    free(cfsp->runcreds);
  888|      2|    RTPP_OBJ_DECREF(cfsp->bindaddrs_cf);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  889|      2|    free(cfsp->locks);
  890|      2|    CALL_METHOD(cfsp->rtpp_tnset_cf, dtor);
  ------------------
  |  |   83|      2|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  891|      2|    RTPP_OBJ_DECREF(cfsp->sessinfo);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  892|      2|    RTPP_OBJ_DECREF(cfsp->rtpp_stats);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  893|      6|    for (int i = 0; i <= RTPP_PT_MAX; i++) {
  ------------------
  |  |   63|      6|#define	RTPP_PT_MAX	RTPP_PT_INET6
  |  |  ------------------
  |  |  |  |   62|      6|#define	RTPP_PT_INET6	1
  |  |  ------------------
  ------------------
  |  Branch (893:21): [True: 4, False: 2]
  ------------------
  894|      4|        RTPP_OBJ_DECREF(cfsp->port_table[i]);
  ------------------
  |  |  174|      4|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      4|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      4|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      4|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      4|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      4|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      4|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  895|      4|    }
  896|      2|    RTPP_OBJ_DECREF(cfsp->sessions_wrt);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  897|      2|    RTPP_OBJ_DECREF(cfsp->sessions_ht);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  898|      2|    RTPP_OBJ_DECREF(cfsp->rtp_streams_wrt);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  899|      2|    RTPP_OBJ_DECREF(cfsp->rtcp_streams_wrt);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  900|      2|    CALL_METHOD(cfsp->nofile, dtor);
  ------------------
  |  |   83|      2|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  901|      2|    rtpp_controlfd_cleanup(cfsp);
  902|      2|    for (ctrl_sock = RTPP_LIST_HEAD(cfsp->ctrl_socks);
  ------------------
  |  |   60|      2|#define RTPP_LIST_HEAD(lst)  (void *)((lst)->head)
  ------------------
  903|      4|      ctrl_sock != NULL; ctrl_sock = ctrl_sock_next) {
  ------------------
  |  Branch (903:7): [True: 2, False: 2]
  ------------------
  904|      2|        ctrl_sock_next = RTPP_ITER_NEXT(ctrl_sock);
  ------------------
  |  |   63|      2|#define RTPP_ITER_NEXT(stlp)     ((void *)((stlp)->t.next))
  ------------------
  905|      2|        free(ctrl_sock);
  906|      2|    }
  907|      2|    free(cfsp->ctrl_socks);
  908|      2|    cfsp->ctrl_socks = NULL;
  909|      2|    RTPP_OBJ_DECREF(cfsp->guid);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  910|      2|#if defined(LIBRTPPROXY)
  911|      2|    RTPP_OBJ_DECREF(cfsp->glog);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  912|      2|#endif
  913|      2|}
main.c:update_derived_stats:
  851|    187|{
  852|    187|    struct rtpp_stats *rtpp_stats;
  853|       |
  854|    187|    rtpp_stats = (struct rtpp_stats *)argp;
  855|    187|    CALL_SMETHOD(rtpp_stats, update_derived, dtime);
  ------------------
  |  |  156|    187|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|    187|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|    187|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|    187|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|    187|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|    187|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|    187|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|    187|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|    187|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|    187|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|    187|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|    187|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|    187|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|    187|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|    187|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|    187|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|    187|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|    187|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|    187|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|    187|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|    187|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|    187|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|    187|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|    187|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|    187|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|    187|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|    187|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|    187|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|    187|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|    187|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|    187|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|    187|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|    187|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|    187|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  856|    187|    return (CB_MORE);
  857|    187|}
main.c:rtpp_cfg_purge_sessions:
  861|      2|{
  862|       |
  863|      2|    CALL_SMETHOD(cfsp->sessions_wrt, purge);
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  864|      2|    CALL_SMETHOD(cfsp->sessions_ht, purge);
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  865|       |
  866|      2|    while ((CALL_SMETHOD(cfsp->rtp_streams_wrt, get_length) > 0) ||
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (866:12): [True: 0, False: 2]
  ------------------
  867|      2|      (CALL_SMETHOD(cfsp->rtcp_streams_wrt, get_length) > 0))
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (867:7): [True: 0, False: 2]
  ------------------
  868|      0|        continue;
  869|      2|}

rtpp_bindaddrs_ctor:
  257|      2|{
  258|      2|    struct rtpp_bindaddrs_pvt *cf;
  259|       |
  260|      2|    cf = rtpp_rzmalloc(sizeof(*cf), PVT_RCOFFS(cf));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
  261|      2|    if (cf == NULL)
  ------------------
  |  Branch (261:9): [True: 0, False: 2]
  ------------------
  262|      0|        goto e0;
  263|      2|    if (pthread_mutex_init(&cf->bindaddr_lock, NULL) != 0)
  ------------------
  |  Branch (263:9): [True: 0, False: 2]
  ------------------
  264|      0|        goto e1;
  265|      2|    PUBINST_FININIT(&cf->pub, cf, rtpp_bindaddrs_dtor);
  ------------------
  |  |   76|      2|    RTPP_OBJ_DTOR_ATTACH_s((pub_inst), (rtpp_refcnt_dtor_t)(dtor), \
  |  |  ------------------
  |  |  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |   77|      2|      pvt_inst);
  ------------------
  266|      2|    return (&(cf->pub));
  267|      0|e1:
  268|      0|    RTPP_OBJ_DECREF(&(cf->pub));
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  269|      0|e0:
  270|       |    return (NULL);
  271|      0|}
rtpp_bindaddrs.c:addr2bindaddr_i:
   70|      2|{
   71|      2|    struct bindaddr_list *bl;
   72|      2|    struct rtpp_bindaddrs_pvt *cf;
   73|      2|    struct sockaddr_storage *ap;
   74|       |
   75|      2|    PUB2PVT(pub, cf);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
   76|      2|    pthread_mutex_lock(&cf->bindaddr_lock);
   77|      2|    for (bl = cf->bindaddr_list; bl != NULL; bl = bl->next) {
  ------------------
  |  Branch (77:34): [True: 0, False: 2]
  ------------------
   78|      0|        const struct rtpp_bindaddr *ba = &bl->bindaddr;
   79|      0|        if (ishostseq(ba->addr, ia) != 0) {
  ------------------
  |  Branch (79:13): [True: 0, False: 0]
  ------------------
   80|      0|            const rtpp_str_const_t *bll = &ba->params.label;
   81|      0|            if (params != NULL && !rtpp_str_match(&params->label, bll))
  ------------------
  |  |   65|      0|#define rtpp_str_match(sp1, sp2) (((sp1)->len == (sp2)->len) && \
  |  |  ------------------
  |  |  |  Branch (65:35): [True: 0, False: 0]
  |  |  ------------------
  |  |   66|      0|  memcmp((sp1)->s, (sp2)->s, (sp1)->len) == 0)
  |  |  ------------------
  |  |  |  Branch (66:3): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (81:17): [True: 0, False: 0]
  ------------------
   82|      0|                continue;
   83|      0|            pthread_mutex_unlock(&cf->bindaddr_lock);
   84|      0|            return (ba);
   85|      0|        }
   86|      0|    }
   87|      2|    bl = rtpp_zmalloc(sizeof(*bl) + sizeof(struct sockaddr_storage));
   88|      2|    if (bl == NULL) {
  ------------------
  |  Branch (88:9): [True: 0, False: 2]
  ------------------
   89|      0|        pthread_mutex_unlock(&cf->bindaddr_lock);
   90|      0|        *ep = strerror(errno);
   91|      0|        return (NULL);
   92|      0|    }
   93|      2|    ap = (struct sockaddr_storage *)((char *)bl + sizeof(*bl));
   94|      2|    memcpy(ap, ia, SA_LEN(ia));
  ------------------
  |  |   65|      2|   (((sa)->sa_family == AF_INET) ? \
  |  |  ------------------
  |  |  |  Branch (65:5): [True: 2, False: 0]
  |  |  ------------------
  |  |   66|      2|   sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6))
  ------------------
   95|      2|    bl->bindaddr.addr = sstosa(ap);
  ------------------
  |  |   85|      2|#define	sstosa(ss)	((struct sockaddr *)(ss))
  ------------------
   96|      2|    if (params != NULL) {
  ------------------
  |  Branch (96:9): [True: 2, False: 0]
  ------------------
   97|      2|        bl->bindaddr.params = *params;
   98|      2|    }
   99|      2|    bl->next = cf->bindaddr_list;
  100|      2|    cf->bindaddr_list = bl;
  101|      2|    pthread_mutex_unlock(&cf->bindaddr_lock);
  102|      2|    return (&bl->bindaddr);
  103|      2|}
rtpp_bindaddrs.c:host2bindaddr:
  133|      2|{
  134|      2|    int n;
  135|      2|    struct sockaddr_storage ia;
  136|      2|    const struct rtpp_bindaddr *rval;
  137|       |
  138|      2|    if (params != NULL && params->label.s != NULL && label2bindaddr(pub, &params->label) != NULL) {
  ------------------
  |  Branch (138:9): [True: 2, False: 0]
  |  Branch (138:27): [True: 0, False: 2]
  |  Branch (138:54): [True: 0, False: 0]
  ------------------
  139|      0|	*ep = "duplicate label";
  140|      0|	return (NULL);
  141|      0|    }
  142|       |
  143|       |    /*
  144|       |     * If user specified * then change it to NULL,
  145|       |     * that will make getaddrinfo to return addr_any socket
  146|       |     */
  147|      2|    if (host != NULL && is_wildcard(host, pf))
  ------------------
  |  Branch (147:9): [True: 2, False: 0]
  |  Branch (147:25): [True: 2, False: 0]
  ------------------
  148|      2|        host = NULL;
  149|       |
  150|      2|    if (host != NULL) {
  ------------------
  |  Branch (150:9): [True: 0, False: 2]
  ------------------
  151|      0|        ai_flags |= is_numhost(host, pf) ? AI_NUMERICHOST : 0;
  ------------------
  |  Branch (151:21): [True: 0, False: 0]
  ------------------
  152|      2|    } else {
  153|      2|        ai_flags &= ~AI_ADDRCONFIG;
  154|      2|    }
  155|       |
  156|      2|    if ((n = resolve(sstosa(&ia), pf, host, SERVICE, ai_flags)) != 0) {
  ------------------
  |  |   85|      2|#define	sstosa(ss)	((struct sockaddr *)(ss))
  ------------------
                  if ((n = resolve(sstosa(&ia), pf, host, SERVICE, ai_flags)) != 0) {
  ------------------
  |  |   52|      2|#define	SERVICE		"34999"
  ------------------
  |  Branch (156:9): [True: 0, False: 2]
  ------------------
  157|      0|        *ep = gai_strerror(n);
  158|      0|        return (NULL);
  159|      0|    }
  160|      2|    rval = addr2bindaddr_i(pub, sstosa(&ia), ep, params);
  ------------------
  |  |   85|      2|#define	sstosa(ss)	((struct sockaddr *)(ss))
  ------------------
  161|      2|    return (rval);
  162|      2|}
rtpp_bindaddrs.c:rtpp_bindaddrs_dtor:
  195|      2|{
  196|      2|    struct bindaddr_list *bl, *bl_next;
  197|       |
  198|      4|    for (bl = cf->bindaddr_list; bl != NULL; bl = bl_next) {
  ------------------
  |  Branch (198:34): [True: 2, False: 2]
  ------------------
  199|      2|        bl_next = bl->next;
  200|      2|        free(bl);
  201|      2|    }
  202|      2|    pthread_mutex_destroy(&cf->bindaddr_lock);
  203|      2|}

init_bindaddrs:
   76|      2|{
   77|      2|    int i;
   78|      2|    char *bh1;
   79|      2|    const char *errmsg;
   80|       |
   81|      2|    if (banum == 0) {
  ------------------
  |  Branch (81:9): [True: 2, False: 0]
  ------------------
   82|      2|        bargs[0].h = "*";
   83|      2|        banum = 1;
   84|      2|    } else {
   85|      0|        struct bindarg iaddr = {0}, eaddr = {0};
   86|      0|        int f_idx[2] = {ba_firstidx(bargs, banum, 0),
   87|      0|                        ba_firstidx(bargs, banum, 1)};
   88|      0|        for (int j = 0; j < 2; j++) {
  ------------------
  |  Branch (88:25): [True: 0, False: 0]
  ------------------
   89|      0|            i = f_idx[j];
   90|      0|            if (i < 0)
  ------------------
  |  Branch (90:17): [True: 0, False: 0]
  ------------------
   91|      0|                continue;
   92|      0|            bh1 = strchr(bargs[i].h, '/');
   93|      0|            if (bh1 != NULL) {
  ------------------
  |  Branch (93:17): [True: 0, False: 0]
  ------------------
   94|      0|                if (eaddr.h != NULL) {
  ------------------
  |  Branch (94:21): [True: 0, False: 0]
  ------------------
   95|      0|                    RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "either IPv4 or IPv6 should be configured for external "
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   95|      0|                    RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "either IPv4 or IPv6 should be configured for external "
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
   96|      0|                      "interface in bridging mode, not both");
   97|      0|                    return (-1);
   98|      0|                }
   99|      0|                cfsp->bmode = 1;
  100|      0|                bh1[0] = '\0';
  101|      0|                eaddr = bargs[i];
  102|      0|                eaddr.h = bh1 + 1;
  103|      0|                if (bargs[i].h == bh1) {
  ------------------
  |  Branch (103:21): [True: 0, False: 0]
  ------------------
  104|      0|                    bargs[i].h = NULL;
  105|      0|                }
  106|      0|            }
  107|      0|        }
  108|      0|        if (cfsp->bmode) {
  ------------------
  |  Branch (108:13): [True: 0, False: 0]
  ------------------
  109|      0|            for (int j = 0; j < 2; j++) {
  ------------------
  |  Branch (109:29): [True: 0, False: 0]
  ------------------
  110|      0|                i = f_idx[j];
  111|      0|                if (i < 0)
  ------------------
  |  Branch (111:21): [True: 0, False: 0]
  ------------------
  112|      0|                    continue;
  113|      0|                if (bargs[i].h == NULL)
  ------------------
  |  Branch (113:21): [True: 0, False: 0]
  ------------------
  114|      0|                    continue;
  115|      0|                if (iaddr.h != NULL) {
  ------------------
  |  Branch (115:21): [True: 0, False: 0]
  ------------------
  116|      0|                    RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "either IPv4 or IPv6 should be configured for internal "
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  116|      0|                    RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "either IPv4 or IPv6 should be configured for internal "
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  117|      0|                      "interface in bridging mode, not both");
  118|      0|                    return (-1);
  119|      0|                }
  120|      0|                iaddr = bargs[i];
  121|      0|                bargs[i].h = NULL;
  122|      0|            }
  123|      0|            assert(eaddr.h != NULL);
  ------------------
  |  Branch (123:13): [True: 0, False: 0]
  |  Branch (123:13): [True: 0, False: 0]
  ------------------
  124|      0|            if (iaddr.h == NULL) {
  ------------------
  |  Branch (124:17): [True: 0, False: 0]
  ------------------
  125|      0|                RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "incomplete configuration of the bridging mode - exactly "
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|                RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "incomplete configuration of the bridging mode - exactly "
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  126|      0|                  "2 listen addresses required");
  127|      0|                return (-1);
  128|      0|            }
  129|      0|            if (iebparams[0].advaddr.s != NULL && iebparams[1].advaddr.s == NULL) {
  ------------------
  |  Branch (129:17): [True: 0, False: 0]
  |  Branch (129:51): [True: 0, False: 0]
  ------------------
  130|      0|                RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "two advertised addresses are required for internal "
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  130|      0|                RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "two advertised addresses are required for internal "
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  131|      0|                  "and external interfaces in bridging mode");
  132|      0|                return (-1);
  133|      0|            }
  134|      0|            for (i = 0; i < 2; i++) {
  ------------------
  |  Branch (134:25): [True: 0, False: 0]
  ------------------
  135|      0|                const struct bindarg *bap = (i == 0) ? &iaddr : &eaddr;
  ------------------
  |  Branch (135:45): [True: 0, False: 0]
  ------------------
  136|      0|                if (bap->params.label.s != NULL) {
  ------------------
  |  Branch (136:21): [True: 0, False: 0]
  ------------------
  137|      0|                    RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "bridging address(es) cannot have a label");
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  137|      0|                    RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "bridging address(es) cannot have a label");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  138|      0|                    return (-1);
  139|      0|                }
  140|      0|                if (bap->params.advaddr.s != NULL) {
  ------------------
  |  Branch (140:21): [True: 0, False: 0]
  ------------------
  141|      0|                    RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "bridging address(es) cannot have an advertized"
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  141|      0|                    RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "bridging address(es) cannot have an advertized"
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  142|      0|                      "address, use matching -A argument");
  143|      0|                    return (-1);
  144|      0|                }
  145|      0|                int rmode = AI_ADDRCONFIG | AI_PASSIVE;
  146|      0|                rmode |= cfsp->no_resolve ? AI_NUMERICHOST : 0;
  ------------------
  |  Branch (146:26): [True: 0, False: 0]
  ------------------
  147|      0|                cfsp->bindaddr[i] = CALL_SMETHOD(cfsp->bindaddrs_cf,
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  148|      0|                  host2, bap->h, bap->is_v6 ? AF_INET6 : AF_INET, rmode, &errmsg,
  |  |  |  |  149|      0|                  &iebparams[i]);
  |  |  ------------------
  ------------------
  148|      0|                  host2, bap->h, bap->is_v6 ? AF_INET6 : AF_INET, rmode, &errmsg,
  149|      0|                  &iebparams[i]);
  150|      0|                if (cfsp->bindaddr[i] == NULL) {
  ------------------
  |  Branch (150:21): [True: 0, False: 0]
  ------------------
  151|      0|                    RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "host2bindaddr(%s): %s", bap->h, errmsg);
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  151|      0|                    RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "host2bindaddr(%s): %s", bap->h, errmsg);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  152|      0|                    return (-1);
  153|      0|                }
  154|      0|            }
  155|      0|        }
  156|      0|    }
  157|       |
  158|      4|    for (i = 0; i < banum; i++) {
  ------------------
  |  Branch (158:17): [True: 2, False: 2]
  ------------------
  159|      2|        const struct rtpp_bindaddr *baddr;
  160|      2|        if (bargs[i].h == NULL)
  ------------------
  |  Branch (160:13): [True: 0, False: 2]
  ------------------
  161|      0|            continue;
  162|      2|        if (cfsp->bindaddr[0] != NULL && bargs[i].params.label.s == NULL) {
  ------------------
  |  Branch (162:13): [True: 0, False: 2]
  |  Branch (162:42): [True: 0, False: 0]
  ------------------
  163|      0|            RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "address label is missing");
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  163|      0|            RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "address label is missing");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  164|      0|            return (-1);
  165|      0|        }
  166|      2|        if (strchr(bargs[i].h, '/') != NULL) {
  ------------------
  |  Branch (166:13): [True: 0, False: 2]
  ------------------
  167|      0|            RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "only the first %s listening address can have external part",
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  167|      0|            RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "only the first %s listening address can have external part",
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  168|      0|              bargs[i].is_v6 ? "IPv6" : "IPv4");
  169|      0|            return (-1);
  170|      0|        }
  171|      2|        int rmode = AI_ADDRCONFIG | AI_PASSIVE;
  172|      2|        rmode |= cfsp->no_resolve ? AI_NUMERICHOST : 0;
  ------------------
  |  Branch (172:18): [True: 0, False: 2]
  ------------------
  173|      2|        baddr = CALL_SMETHOD(cfsp->bindaddrs_cf,
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  174|      2|          host2, bargs[i].h, bargs[i].is_v6 ? AF_INET6 : AF_INET, rmode,
  |  |  |  |  175|      2|          &errmsg, &bargs[i].params);
  |  |  ------------------
  ------------------
  174|      2|          host2, bargs[i].h, bargs[i].is_v6 ? AF_INET6 : AF_INET, rmode,
  175|      2|          &errmsg, &bargs[i].params);
  176|      2|        if (baddr == NULL) {
  ------------------
  |  Branch (176:13): [True: 0, False: 2]
  ------------------
  177|      0|            RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "host2bindaddr(%s): %s", bargs[i].h, errmsg);
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  177|      0|            RTPP_LOG(cfsp->glog, RTPP_LOG_ERR, "host2bindaddr(%s): %s", bargs[i].h, errmsg);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  178|      0|            return (-1);
  179|      0|        }
  180|      2|        if (cfsp->bindaddr[0] == NULL)
  ------------------
  |  Branch (180:13): [True: 2, False: 0]
  ------------------
  181|      2|            cfsp->bindaddr[0] = baddr;
  182|      2|    }
  183|       |
  184|      2|    assert(cfsp->bindaddr[0] != NULL && cfsp->bindaddr[0]->addr != NULL);
  ------------------
  |  Branch (184:5): [True: 0, False: 2]
  |  Branch (184:5): [True: 0, False: 0]
  |  Branch (184:5): [True: 2, False: 0]
  |  Branch (184:5): [True: 2, False: 0]
  ------------------
  185|      2|    return (0);
  186|      2|}

rtpp_cfile_process:
   70|  7.62k|{
   71|  7.62k|    struct ucl_parser *parser;
   72|  7.62k|    ucl_object_t *conf_root;
   73|  7.62k|    ucl_object_iter_t it_conf;
   74|  7.62k|    const ucl_object_t *obj_file;
   75|  7.62k|    const char *cf_key;
   76|  7.62k|    int fd, ecode;
   77|       |
   78|  7.62k|    ecode = 0;
   79|       |
   80|  7.62k|    fd = open(csp->cfile, O_RDONLY);
   81|  7.62k|    if (fd < 0) {
  ------------------
  |  Branch (81:9): [True: 0, False: 7.62k]
  ------------------
   82|      0|        RTPP_ELOG(csp->glog, RTPP_LOG_ERR, "open failed: %s", csp->cfile);
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   82|      0|        RTPP_ELOG(csp->glog, RTPP_LOG_ERR, "open failed: %s", csp->cfile);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
   83|      0|        ecode = -1;
   84|      0|        goto e0;
   85|      0|    }
   86|       |
   87|  7.62k|    parser = ucl_parser_new(UCL_PARSER_NO_FILEVARS);
   88|  7.62k|    if (parser == NULL) {
  ------------------
  |  Branch (88:9): [True: 0, False: 7.62k]
  ------------------
   89|      0|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "ucl_parser_new() failed");
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   89|      0|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "ucl_parser_new() failed");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
   90|      0|        ecode = -1;
   91|      0|        goto e1;
   92|      0|    }
   93|       |
   94|  7.62k|    ucl_parser_add_fd(parser, fd);
   95|  7.62k|    conf_root = ucl_parser_get_object(parser);
   96|  7.62k|    if (conf_root == NULL) {
  ------------------
  |  Branch (96:9): [True: 2.24k, False: 5.37k]
  ------------------
   97|  2.24k|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "ucl_parser_get_object() failed");
  ------------------
  |  |   56|  2.24k|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|  4.49k|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  2.24k|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   97|  2.24k|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "ucl_parser_get_object() failed");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|  2.24k|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|  2.24k|  __LINE__, ## args)
  ------------------
   98|  2.24k|        ecode = -1;
   99|  2.24k|        goto e2;
  100|  2.24k|    }
  101|  5.37k|    if (ucl_parser_get_error(parser)) {
  ------------------
  |  Branch (101:9): [True: 4.39k, False: 988]
  ------------------
  102|  4.39k|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Parse Error occured: %s", ucl_parser_get_error(parser));
  ------------------
  |  |   56|  4.39k|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|  8.78k|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  4.39k|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  102|  4.39k|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Parse Error occured: %s", ucl_parser_get_error(parser));
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|  4.39k|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|  4.39k|  __LINE__, ## args)
  ------------------
  103|  4.39k|        ecode = -1;
  104|  4.39k|        goto e3;
  105|  4.39k|    }
  106|    988|    if (ucl_object_type(conf_root) != UCL_OBJECT) {
  ------------------
  |  |   70|    988|#define ucl_object_type r_ucl_object_type
  ------------------
  |  Branch (106:9): [True: 38, False: 950]
  ------------------
  107|     38|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Config root must be an object");
  ------------------
  |  |   56|     38|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|     76|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     38|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  107|     38|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Config root must be an object");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|     38|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|     38|  __LINE__, ## args)
  ------------------
  108|     38|        ecode = -1;
  109|     38|        goto e3;
  110|     38|    }
  111|       |
  112|    950|    it_conf = ucl_object_iterate_new(conf_root);
  113|    950|    if (it_conf == NULL) {
  ------------------
  |  Branch (113:9): [True: 0, False: 950]
  ------------------
  114|      0|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "ucl_object_iterate_new() failed");
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  114|      0|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "ucl_object_iterate_new() failed");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  115|      0|        ecode = -1;
  116|      0|        goto e3;
  117|      0|    }
  118|  6.19k|    while ((obj_file = ucl_object_iterate_safe(it_conf, true)) != NULL) {
  ------------------
  |  Branch (118:12): [True: 5.25k, False: 939]
  ------------------
  119|  5.25k|        cf_key = ucl_object_key(obj_file);
  ------------------
  |  |   72|  5.25k|#define ucl_object_key r_ucl_object_key
  ------------------
  120|  5.25k|        if (cf_key == NULL)
  ------------------
  |  Branch (120:13): [True: 0, False: 5.25k]
  ------------------
  121|      0|            continue;
  122|  5.25k|        RTPP_LOG(csp->glog, RTPP_LOG_DBUG, "Entry: %s", cf_key);
  ------------------
  |  |   56|  5.25k|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|  10.5k|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|  5.25k|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.25k|        RTPP_LOG(csp->glog, RTPP_LOG_DBUG, "Entry: %s", cf_key);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   44|  5.25k|#define	RTPP_LOG_DBUG	LOG_DEBUG
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|  5.25k|  __LINE__, ## args)
  ------------------
  123|  5.25k|        if (strcasecmp(cf_key, "modules") == 0) {
  ------------------
  |  Branch (123:13): [True: 24, False: 5.22k]
  ------------------
  124|     24|#if ENABLE_MODULE_IF
  125|     24|            if (parse_modules(csp, obj_file) < 0) {
  ------------------
  |  Branch (125:17): [True: 11, False: 13]
  ------------------
  126|     11|                RTPP_LOG(csp->glog, RTPP_LOG_ERR, "parse_modules() failed");
  ------------------
  |  |   56|     11|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|     22|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  126|     11|                RTPP_LOG(csp->glog, RTPP_LOG_ERR, "parse_modules() failed");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|     11|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|     11|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|     11|  __LINE__, ## args)
  ------------------
  127|     11|                ecode = -1;
  128|     11|                goto e4;
  129|     11|            }
  130|       |#else
  131|       |            RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Modules are disabled, but the configuration file contains a \"modules\" section");
  132|       |            ecode = -1;
  133|       |            goto e4;
  134|       |#endif
  135|     24|        }
  136|  5.25k|    }
  137|    939|    if (ucl_object_iter_chk_excpn(it_conf)) {
  ------------------
  |  Branch (137:9): [True: 0, False: 939]
  ------------------
  138|      0|        ecode = -1;
  139|      0|    }
  140|    950|e4:
  141|    950|    ucl_object_iterate_free(it_conf);
  142|  5.37k|e3:
  143|  5.37k|    ucl_object_unref(conf_root);
  144|  7.62k|e2:
  145|  7.62k|    ucl_parser_free(parser);
  146|  7.62k|e1:
  147|  7.62k|    close(fd);
  148|  7.62k|e0:
  149|  7.62k|    return (ecode);
  150|  7.62k|}
rtpp_cfile.c:parse_modules:
  160|     24|{
  161|     24|    ucl_object_iter_t it_conf;
  162|     24|    const ucl_object_t *obj_file;
  163|     24|    const char *cf_key;
  164|     24|    const ucl_object_t *obj_key;
  165|     24|    int ecode, success;
  166|     24|    void *confp;
  167|     24|    const conf_helper_map *fent, *map;
  168|     24|    struct rtpp_module_conf *mcp;
  169|     24|    char mpath[PATH_MAX + 1];
  170|     24|    const char *cp, *mp;
  171|     24|    struct rtpp_module_if *mif;
  172|       |
  173|     24|    if (ucl_object_type(wop) != UCL_OBJECT) {
  ------------------
  |  |   70|     24|#define ucl_object_type r_ucl_object_type
  ------------------
  |  Branch (173:9): [True: 2, False: 22]
  ------------------
  174|      2|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Error: 'modules' section must be an object");
  ------------------
  |  |   56|      2|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      4|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      2|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  174|      2|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Error: 'modules' section must be an object");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      2|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      2|  __LINE__, ## args)
  ------------------
  175|      2|        return (-1);
  176|      2|    }
  177|     22|    it_conf = ucl_object_iterate_new(wop);
  178|     22|    if (it_conf == NULL)
  ------------------
  |  Branch (178:9): [True: 0, False: 22]
  ------------------
  179|      0|        return (-1);
  180|     22|    ecode = 0;
  181|     22|    while ((obj_file = ucl_object_iterate_safe(it_conf, true)) != NULL) {
  ------------------
  |  Branch (181:12): [True: 9, False: 13]
  ------------------
  182|      9|        cf_key = ucl_object_key(obj_file);
  ------------------
  |  |   72|      9|#define ucl_object_key r_ucl_object_key
  ------------------
  183|      9|        if (cf_key == NULL || ucl_object_type(obj_file) != UCL_OBJECT) {
  ------------------
  |  |   70|      9|#define ucl_object_type r_ucl_object_type
  ------------------
  |  Branch (183:13): [True: 0, False: 9]
  |  Branch (183:31): [True: 4, False: 5]
  ------------------
  184|      4|            RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Error: module '%s' configuration must be an object",
  ------------------
  |  |   56|      4|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|     12|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  184|      4|            RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Error: module '%s' configuration must be an object",
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      4|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  184|      4|            RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Error: module '%s' configuration must be an object",
  |  |  |  |  |  |  185|      4|              cf_key != NULL ? cf_key : "(null)");
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      4|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      4|  __LINE__, ## args)
  ------------------
  185|      4|              cf_key != NULL ? cf_key : "(null)");
  186|      4|            ecode = -1;
  187|      4|            goto e0;
  188|      4|        }
  189|      5|        RTPP_LOG(csp->glog, RTPP_LOG_DBUG, "\tmodule: %s", cf_key);
  ------------------
  |  |   56|      5|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|     10|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      5|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  189|      5|        RTPP_LOG(csp->glog, RTPP_LOG_DBUG, "\tmodule: %s", cf_key);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   44|      5|#define	RTPP_LOG_DBUG	LOG_DEBUG
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      5|  __LINE__, ## args)
  ------------------
  190|      5|        obj_key = ucl_object_find_key(obj_file, "load");
  ------------------
  |  |  718|      5|#define ucl_object_find_key ucl_object_lookup
  ------------------
  191|      5|        if (obj_key == NULL) {
  ------------------
  |  Branch (191:13): [True: 2, False: 3]
  ------------------
  192|      2|            cp = rtpp_module_dsop_canonic(cf_key, mpath, sizeof(mpath));
  193|      2|            if (cp == NULL) {
  ------------------
  |  Branch (193:17): [True: 0, False: 2]
  ------------------
  194|      0|                RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Error: Unable to find 'load' parameter in module '%s'", cf_key);
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  194|      0|                RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Error: Unable to find 'load' parameter in module '%s'", cf_key);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  195|      0|                ecode = -1;
  196|      0|                goto e0;
  197|      0|            }
  198|      3|        } else {
  199|      3|            if (obj_key->type != UCL_STRING) {
  ------------------
  |  Branch (199:17): [True: 1, False: 2]
  ------------------
  200|      1|                RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Error: 'load' parameter in module '%s' has a wrong type, string is expected", cf_key);
  ------------------
  |  |   56|      1|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      2|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      1|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  200|      1|                RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Error: 'load' parameter in module '%s' has a wrong type, string is expected", cf_key);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      1|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      1|  __LINE__, ## args)
  ------------------
  201|      1|                ecode = -1;
  202|      1|                goto e0;
  203|      1|            }
  204|      2|            mp = ucl_object_tostring(obj_key);
  205|      2|            cp = realpath(mp, mpath);
  206|      2|            if (cp == NULL) {
  ------------------
  |  Branch (206:17): [True: 1, False: 1]
  ------------------
  207|      1|                RTPP_ELOG(csp->glog, RTPP_LOG_ERR, "realpath() failed: %s", mp);
  ------------------
  |  |   58|      1|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      2|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      1|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  207|      1|                RTPP_ELOG(csp->glog, RTPP_LOG_ERR, "realpath() failed: %s", mp);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      1|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      1|  __LINE__, ## args)
  ------------------
  208|      1|                ecode = -1;
  209|      1|                goto e0;
  210|      1|            }
  211|      2|        }
  212|      3|        mif = rtpp_module_if_ctor(cp);
  213|      3|        if (mif == NULL) {
  ------------------
  |  Branch (213:13): [True: 0, False: 3]
  ------------------
  214|      0|            RTPP_LOG(csp->glog, RTPP_LOG_ERR, "dymanic module constructor has failed: %s", cp);
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  214|      0|            RTPP_LOG(csp->glog, RTPP_LOG_ERR, "dymanic module constructor has failed: %s", cp);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  215|      0|            ecode = -1;
  216|      0|            goto e0;
  217|      0|        }
  218|      3|        if (CALL_METHOD(mif, load, csp, csp->glog) != 0) {
  ------------------
  |  |   83|      3|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  |  Branch (218:13): [True: 3, False: 0]
  ------------------
  219|      3|            RTPP_LOG(csp->glog, RTPP_LOG_ERR, "%p->load() method has failed: %s", mif, cp);
  ------------------
  |  |   56|      3|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      6|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      3|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  219|      3|            RTPP_LOG(csp->glog, RTPP_LOG_ERR, "%p->load() method has failed: %s", mif, cp);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      3|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      3|  __LINE__, ## args)
  ------------------
  220|       |            /* Nothing to shut down, the load() has cleaned up after itself */
  221|      3|            goto e2;
  222|      3|        }
  223|      0|        if (CALL_METHOD(mif, get_mconf, &mcp, 0) < 0) {
  ------------------
  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  |  Branch (223:13): [True: 0, False: 0]
  ------------------
  224|      0|            RTPP_LOG(csp->glog, RTPP_LOG_ERR, "%p->get_mconf() method has failed: %s", mif, cp);
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  224|      0|            RTPP_LOG(csp->glog, RTPP_LOG_ERR, "%p->get_mconf() method has failed: %s", mif, cp);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  225|      0|            goto e1;
  226|      0|        }
  227|      0|        fent = NULL;
  228|      0|        if (mcp != NULL) {
  ------------------
  |  Branch (228:13): [True: 0, False: 0]
  ------------------
  229|      0|            map = mcp->conf_map;
  230|      0|            confp = mcp->conf_data;
  231|      0|            RTPP_OBJ_DECREF(mcp);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  232|      0|        } else {
  233|      0|            map = default_module_map;
  234|      0|            confp = NULL;
  235|      0|        }
  236|      0|        success = conf_helper_mapper(csp->glog, obj_file, map, confp, &fent);
  237|      0|        if (!success) {
  ------------------
  |  Branch (237:13): [True: 0, False: 0]
  ------------------
  238|      0|            RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Config parsing issue in section '%s'",
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  238|      0|            RTPP_LOG(csp->glog, RTPP_LOG_ERR, "Config parsing issue in section '%s'",
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  239|      0|              cf_key);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  239|      0|              cf_key);
  240|      0|            if (fent != NULL && fent->conf_key != NULL) {
  ------------------
  |  Branch (240:17): [True: 0, False: 0]
  |  Branch (240:33): [True: 0, False: 0]
  ------------------
  241|      0|                RTPP_LOG(csp->glog, RTPP_LOG_ERR, "\tparameter '%s'", fent->conf_key);
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  241|      0|                RTPP_LOG(csp->glog, RTPP_LOG_ERR, "\tparameter '%s'", fent->conf_key);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  242|      0|            }
  243|      0|            goto e1;
  244|      0|        }
  245|      0|        CALL_METHOD(csp->modules_cf, insert, mif);
  ------------------
  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  246|      0|        continue;
  247|      0|e1:
  248|      0|        CALL_METHOD(mif, kaput);
  ------------------
  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  249|      3|e2:
  250|      3|        ecode = -1;
  251|      3|        RTPP_OBJ_DECREF(mif);
  ------------------
  |  |  174|      3|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      3|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      3|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      3|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      3|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      3|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      3|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      3|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      3|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      3|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      3|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      3|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      3|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      3|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      3|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      3|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      3|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      3|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      3|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      3|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      3|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      3|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      3|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      3|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      3|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      3|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      3|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      3|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      3|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      3|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      3|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      3|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      3|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      3|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      3|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      3|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      3|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      3|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      3|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      3|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  252|      3|        goto e0;
  253|      0|    }
  254|     22|e0:
  255|     22|    if (ucl_object_iter_chk_excpn(it_conf)) {
  ------------------
  |  Branch (255:9): [True: 0, False: 22]
  ------------------
  256|      0|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "UCL has failed with an internal error");
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  256|      0|        RTPP_LOG(csp->glog, RTPP_LOG_ERR, "UCL has failed with an internal error");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  257|      0|        ecode = -1;
  258|      0|    }
  259|     22|    ucl_object_iterate_free(it_conf);
  260|     22|    return (ecode);
  261|     22|}
rtpp_cfile.c:rtpp_module_dsop_canonic:
   55|      2|{
   56|      2|     const char *dbug;
   57|       |
   58|       |#if defined(RTPP_DEBUG)
   59|       |     dbug = "_debug";
   60|       |#else
   61|      2|     dbug = "";
   62|      2|#endif
   63|       |
   64|      2|     snprintf(buf, blen, "%s/rtpp_%s%s.so", MDDIR_PATH, mname, dbug);
   65|      2|     return (buf);
   66|      2|}

rtpp_command_async_ctor:
  661|      2|{
  662|      2|    struct rtpp_cmd_async_cf *cmd_cf;
  663|      2|    int need_acptr, i;
  664|       |
  665|      2|    cmd_cf = rtpp_zmalloc(sizeof(*cmd_cf));
  666|      2|    if (cmd_cf == NULL)
  ------------------
  |  Branch (666:9): [True: 0, False: 2]
  ------------------
  667|      0|        goto e0;
  668|       |
  669|      2|    if (socketpair(PF_LOCAL, SOCK_STREAM, 0, cmd_cf->wakefds) != 0)
  ------------------
  |  Branch (669:9): [True: 0, False: 2]
  ------------------
  670|      0|        goto e1;
  671|       |
  672|      2|    if (init_pollset(cfsp, &cmd_cf->pset, cmd_cf->wakefds[1]) == -1) {
  ------------------
  |  Branch (672:9): [True: 0, False: 2]
  ------------------
  673|      0|        goto e2;
  674|      0|    }
  675|      2|    need_acptr = init_accptset(cfsp, &cmd_cf->aset);
  676|      2|    if (need_acptr == -1) {
  ------------------
  |  Branch (676:9): [True: 0, False: 2]
  ------------------
  677|      0|        goto e3;
  678|      0|    }
  679|       |
  680|      2|    init_cstats(cfsp->rtpp_stats, &cmd_cf->cstats);
  681|       |
  682|      2|    if (pthread_mutex_init(&cmd_cf->cmd_mutex, NULL) != 0) {
  ------------------
  |  Branch (682:9): [True: 0, False: 2]
  ------------------
  683|      0|        goto e4;
  684|      0|    }
  685|      2|    assert(cfsp->rtpp_timed_cf != NULL);
  ------------------
  |  Branch (685:5): [True: 0, False: 2]
  |  Branch (685:5): [True: 2, False: 0]
  ------------------
  686|      2|    cmd_cf->rcache = rtpp_cmd_rcache_ctor(cfsp->rtpp_timed_cf,
  687|      2|      32.0 + 3.0);
  688|      2|    if (cmd_cf->rcache == NULL) {
  ------------------
  |  Branch (688:9): [True: 0, False: 2]
  ------------------
  689|      0|        goto e5;
  690|      0|    }
  691|       |
  692|       |#if 0
  693|       |    recfilter_init(&cmd_cf->average_load, 0.999, 0.0, 1);
  694|       |#endif
  695|       |
  696|      2|    cmd_cf->cf_save = cfsp;
  697|      2|    if (need_acptr != 0) {
  ------------------
  |  Branch (697:9): [True: 2, False: 0]
  ------------------
  698|      2|        if (pthread_create(&cmd_cf->acpt_thread_id, NULL,
  ------------------
  |  Branch (698:13): [True: 0, False: 2]
  ------------------
  699|      2|          (void *(*)(void *))&rtpp_cmd_acceptor_run, cmd_cf) != 0) {
  700|      0|            goto e6;
  701|      0|        }
  702|      2|        cmd_cf->acceptor_started = 1;
  703|      2|#if HAVE_PTHREAD_SETNAME_NP
  704|      2|        (void)pthread_setname_np(cmd_cf->acpt_thread_id, "rtpp_cmd_acceptor");
  705|      2|#endif
  706|      2|    }
  707|      2|    if (pthread_create(&cmd_cf->thread_id, NULL,
  ------------------
  |  Branch (707:9): [True: 0, False: 2]
  ------------------
  708|      2|      (void *(*)(void *))&rtpp_cmd_queue_run, cmd_cf) != 0) {
  709|      0|        goto e7;
  710|      0|    }
  711|      2|#if HAVE_PTHREAD_SETNAME_NP
  712|      2|    (void)pthread_setname_np(cmd_cf->thread_id, "rtpp_cmd_queue");
  713|      2|#endif
  714|      2|    cmd_cf->pub.dtor = &rtpp_command_async_dtor;
  715|      2|    cmd_cf->pub.wakeup = &rtpp_command_async_wakeup;
  716|      2|    cmd_cf->pub.get_aload = &rtpp_command_async_get_aload;
  717|      2|    cmd_cf->pub.reg_overload = &rtpp_command_async_reg_overload;
  718|      2|    cmd_cf->pub.chk_overload = &rtpp_command_async_chk_overload;
  719|      2|    return (&cmd_cf->pub);
  720|       |
  721|      0|e7:
  722|      0|    if (cmd_cf->acceptor_started != 0) {
  ------------------
  |  Branch (722:9): [True: 0, False: 0]
  ------------------
  723|      0|        pthread_mutex_lock(&cmd_cf->cmd_mutex);
  724|      0|        cmd_cf->tstate_acceptor = TSTATE_CEASE;
  ------------------
  |  |   32|      0|#define TSTATE_CEASE 0x1
  ------------------
  725|      0|        pthread_mutex_unlock(&cmd_cf->cmd_mutex);
  726|      0|        for (i = 0; i < cmd_cf->aset.pfds_used; i ++) {
  ------------------
  |  Branch (726:21): [True: 0, False: 0]
  ------------------
  727|      0|            close(cmd_cf->aset.pfds[i].fd);
  728|      0|        }
  729|      0|        pthread_join(cmd_cf->acpt_thread_id, NULL);
  730|      0|    }
  731|      0|e6:
  732|      0|    CALL_METHOD(cmd_cf->rcache, shutdown);
  ------------------
  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  733|      0|    RTPP_OBJ_DECREF(cmd_cf->rcache);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  734|      0|e5:
  735|      0|    pthread_mutex_destroy(&cmd_cf->cmd_mutex);
  736|      0|e4:
  737|      0|    free_accptset(&cmd_cf->aset);
  738|      0|e3:
  739|      0|    free_pollset(&cmd_cf->pset);
  740|      0|e2:
  741|      0|    for (int k = 0; k < 2; k++)
  ------------------
  |  Branch (741:21): [True: 0, False: 0]
  ------------------
  742|      0|        close(cmd_cf->wakefds[k]);
  743|      0|e1:
  744|      0|    free(cmd_cf);
  745|      0|e0:
  746|       |    return (NULL);
  747|      0|}
rtpp_command_async.c:init_pollset:
  545|      2|{
  546|      2|    struct rtpp_ctrl_sock *ctrl_sock;
  547|      2|    int pfds_used, i;
  548|       |
  549|      2|    ctrl_sock = RTPP_LIST_HEAD(cfsp->ctrl_socks);
  ------------------
  |  |   60|      2|#define RTPP_LIST_HEAD(lst)  (void *)((lst)->head)
  ------------------
  550|      4|    for (pfds_used = 1; ctrl_sock != NULL; ctrl_sock = RTPP_ITER_NEXT(ctrl_sock)) {
  ------------------
  |  |   63|      2|#define RTPP_ITER_NEXT(stlp)     ((void *)((stlp)->t.next))
  ------------------
  |  Branch (550:25): [True: 2, False: 2]
  ------------------
  551|      2|        if (RTPP_CTRL_ACCEPTABLE(ctrl_sock))
  ------------------
  |  |   53|      2|#define RTPP_CTRL_ACCEPTABLE(rcsp) ((rcsp)->type == RTPC_IFSUN || (rcsp)->type == RTPC_IFSUN_C \
  |  |  ------------------
  |  |  |  Branch (53:37): [True: 2, False: 0]
  |  |  |  Branch (53:67): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      2|  || (rcsp)->type == RTPC_TCP4 || (rcsp)->type == RTPC_TCP6 || (rcsp)->type == RTPC_SYSD)
  |  |  ------------------
  |  |  |  Branch (54:6): [True: 0, False: 0]
  |  |  |  Branch (54:35): [True: 0, False: 0]
  |  |  |  Branch (54:64): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  552|      2|            continue;
  553|      0|        pfds_used++;
  554|      0|    }
  555|      2|    psp->pfds = malloc(sizeof(struct pollfd) * pfds_used);
  556|      2|    if (psp->pfds == NULL) {
  ------------------
  |  Branch (556:9): [True: 0, False: 2]
  ------------------
  557|      0|        return (-1);
  558|      0|    }
  559|      2|    if (pthread_mutex_init(&psp->pfds_mutex, NULL) != 0) {
  ------------------
  |  Branch (559:9): [True: 0, False: 2]
  ------------------
  560|      0|        goto e1;
  561|      0|    }
  562|      2|    psp->pfds_used = pfds_used;
  563|      2|    if (psp->pfds_used == 0) {
  ------------------
  |  Branch (563:9): [True: 0, False: 2]
  ------------------
  564|      0|        return (0);
  565|      0|    }
  566|      2|    psp->pfds[0].fd = wakefd;
  567|      2|    psp->pfds[0].events = POLLIN;
  568|      2|    psp->pfds[0].revents = 0;
  569|      2|    psp->rccs[0] = NULL;
  570|      2|    ctrl_sock = RTPP_LIST_HEAD(cfsp->ctrl_socks);
  ------------------
  |  |   60|      2|#define RTPP_LIST_HEAD(lst)  (void *)((lst)->head)
  ------------------
  571|      4|    for (i = 1; ctrl_sock != NULL; ctrl_sock = RTPP_ITER_NEXT(ctrl_sock)) {
  ------------------
  |  |   63|      2|#define RTPP_ITER_NEXT(stlp)     ((void *)((stlp)->t.next))
  ------------------
  |  Branch (571:17): [True: 2, False: 2]
  ------------------
  572|      2|        if (RTPP_CTRL_ACCEPTABLE(ctrl_sock))
  ------------------
  |  |   53|      2|#define RTPP_CTRL_ACCEPTABLE(rcsp) ((rcsp)->type == RTPC_IFSUN || (rcsp)->type == RTPC_IFSUN_C \
  |  |  ------------------
  |  |  |  Branch (53:37): [True: 2, False: 0]
  |  |  |  Branch (53:67): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      2|  || (rcsp)->type == RTPC_TCP4 || (rcsp)->type == RTPC_TCP6 || (rcsp)->type == RTPC_SYSD)
  |  |  ------------------
  |  |  |  Branch (54:6): [True: 0, False: 0]
  |  |  |  Branch (54:35): [True: 0, False: 0]
  |  |  |  Branch (54:64): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  573|      2|            continue;
  574|      0|        psp->pfds[i].fd = ctrl_sock->controlfd_in;
  575|      0|        psp->pfds[i].events = POLLIN;
  576|      0|        psp->pfds[i].revents = 0;
  577|      0|        psp->rccs[i] = rtpp_cmd_connection_ctor(ctrl_sock->controlfd_in, 
  578|      0|          ctrl_sock->controlfd_out, ctrl_sock, NULL);
  579|      0|        if (psp->rccs[i] == NULL) {
  ------------------
  |  Branch (579:13): [True: 0, False: 0]
  ------------------
  580|      0|            int j;
  581|       |
  582|       |            /* Slot zero is the wakeup descriptor, with no connection. */
  583|      0|            for (j = i - 1; j >= 1; j --)
  ------------------
  |  Branch (583:29): [True: 0, False: 0]
  ------------------
  584|      0|                rtpp_cmd_connection_dtor(psp->rccs[j]);
  585|      0|            pthread_mutex_destroy(&psp->pfds_mutex);
  586|      0|            goto e1;
  587|      0|        }
  588|      0|        i++;
  589|      0|    }
  590|      2|    if (i == 2 && RTPP_CTRL_ISSTREAM(psp->rccs[1]->csock)) {
  ------------------
  |  |   50|      0|#define RTPP_CTRL_ISSTREAM(rcsp) ((rcsp)->type == RTPC_IFSUN_C || (rcsp)->type == RTPC_STDIO \
  |  |  ------------------
  |  |  |  Branch (50:35): [True: 0, False: 0]
  |  |  |  Branch (50:67): [True: 0, False: 0]
  |  |  ------------------
  |  |   51|      0|  || (rcsp)->type == RTPC_TCP4 || (rcsp)->type == RTPC_TCP6 || (rcsp)->type == RTPC_FD \
  |  |  ------------------
  |  |  |  Branch (51:6): [True: 0, False: 0]
  |  |  |  Branch (51:35): [True: 0, False: 0]
  |  |  |  Branch (51:64): [True: 0, False: 0]
  |  |  ------------------
  |  |   52|      0|  || (rcsp)->type == RTPC_SYSD)
  |  |  ------------------
  |  |  |  Branch (52:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (590:9): [True: 0, False: 2]
  ------------------
  591|      0|        psp->rccs[1]->csock->exit_on_close = 1;
  592|      0|    }
  593|      2|    return (0);
  594|      0|e1:
  595|      0|    free(psp->pfds);
  596|      0|    return (-1);
  597|      2|}
rtpp_command_async.c:init_accptset:
  612|      2|{
  613|      2|    int i, pfds_used;
  614|      2|    struct rtpp_ctrl_sock *ctrl_sock;
  615|       |
  616|      2|    pfds_used = 0;
  617|      2|    ctrl_sock = RTPP_LIST_HEAD(cfsp->ctrl_socks);
  ------------------
  |  |   60|      2|#define RTPP_LIST_HEAD(lst)  (void *)((lst)->head)
  ------------------
  618|      4|    for (pfds_used = 0; ctrl_sock != NULL; ctrl_sock = RTPP_ITER_NEXT(ctrl_sock)) {
  ------------------
  |  |   63|      2|#define RTPP_ITER_NEXT(stlp)     ((void *)((stlp)->t.next))
  ------------------
  |  Branch (618:25): [True: 2, False: 2]
  ------------------
  619|      2|        if (RTPP_CTRL_ACCEPTABLE(ctrl_sock) == 0)
  ------------------
  |  |   53|      2|#define RTPP_CTRL_ACCEPTABLE(rcsp) ((rcsp)->type == RTPC_IFSUN || (rcsp)->type == RTPC_IFSUN_C \
  |  |  ------------------
  |  |  |  Branch (53:37): [True: 2, False: 0]
  |  |  |  Branch (53:67): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      2|  || (rcsp)->type == RTPC_TCP4 || (rcsp)->type == RTPC_TCP6 || (rcsp)->type == RTPC_SYSD)
  |  |  ------------------
  |  |  |  Branch (54:6): [True: 0, False: 0]
  |  |  |  Branch (54:35): [True: 0, False: 0]
  |  |  |  Branch (54:64): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (619:13): [True: 0, False: 2]
  ------------------
  620|      0|            continue;
  621|      2|        pfds_used++;
  622|      2|    }
  623|      2|    if (pfds_used == 0) {
  ------------------
  |  Branch (623:9): [True: 0, False: 2]
  ------------------
  624|      0|        return (0);
  625|      0|    }
  626|       |
  627|      2|    asp->pfds = malloc(sizeof(struct pollfd) * pfds_used);
  628|      2|    if (asp->pfds == NULL) {
  ------------------
  |  Branch (628:9): [True: 0, False: 2]
  ------------------
  629|      0|        return (-1);
  630|      0|    }
  631|      2|    asp->pfds_used = pfds_used;
  632|      2|    asp->csocks = malloc(sizeof(struct rtpp_ctrl_sock) * pfds_used);
  633|      2|    if (asp->csocks == NULL) {
  ------------------
  |  Branch (633:9): [True: 0, False: 2]
  ------------------
  634|      0|        free(asp->pfds);
  635|      0|        return (-1);
  636|      0|    }
  637|      2|    ctrl_sock = RTPP_LIST_HEAD(cfsp->ctrl_socks);
  ------------------
  |  |   60|      2|#define RTPP_LIST_HEAD(lst)  (void *)((lst)->head)
  ------------------
  638|      4|    for (i = 0; i < asp->pfds_used; ctrl_sock = RTPP_ITER_NEXT(ctrl_sock)) {
  ------------------
  |  |   63|      2|#define RTPP_ITER_NEXT(stlp)     ((void *)((stlp)->t.next))
  ------------------
  |  Branch (638:17): [True: 2, False: 2]
  ------------------
  639|      2|        if (RTPP_CTRL_ACCEPTABLE(ctrl_sock) == 0)
  ------------------
  |  |   53|      2|#define RTPP_CTRL_ACCEPTABLE(rcsp) ((rcsp)->type == RTPC_IFSUN || (rcsp)->type == RTPC_IFSUN_C \
  |  |  ------------------
  |  |  |  Branch (53:37): [True: 2, False: 0]
  |  |  |  Branch (53:67): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      2|  || (rcsp)->type == RTPC_TCP4 || (rcsp)->type == RTPC_TCP6 || (rcsp)->type == RTPC_SYSD)
  |  |  ------------------
  |  |  |  Branch (54:6): [True: 0, False: 0]
  |  |  |  Branch (54:35): [True: 0, False: 0]
  |  |  |  Branch (54:64): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (639:13): [True: 0, False: 2]
  ------------------
  640|      0|            continue;
  641|      2|        asp->pfds[i].fd = ctrl_sock->controlfd_in;
  642|       |        asp->pfds[i].events = POLLIN;
  643|      2|        asp->pfds[i].revents = 0;
  644|      2|        asp->csocks[i] = ctrl_sock;
  645|      2|        i++;
  646|      2|    }
  647|      2|    return (pfds_used);
  648|      2|}
rtpp_command_async.c:init_cstats:
  118|      2|{
  119|       |
  120|      2|    csp->ncmds_rcvd.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "ncmds_rcvd");
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  121|      2|    csp->ncmds_rcvd_ndups.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "ncmds_rcvd_ndups");
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  122|      2|    csp->ncmds_succd.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "ncmds_succd");
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  123|      2|    csp->ncmds_errs.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "ncmds_errs");
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  124|      2|    csp->ncmds_repld.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "ncmds_repld");
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  125|       |
  126|      2|    csp->nsess_complete.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "nsess_complete");
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  127|      2|    csp->nsess_created.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "nsess_created");
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  128|       |
  129|      2|    csp->nplrs_created.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "nplrs_created");
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  130|      2|    csp->nplrs_destroyed.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "nplrs_destroyed");
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  131|      2|}
rtpp_command_async.c:rtpp_cmd_acceptor_run:
  301|      2|{
  302|      2|    struct rtpp_cmd_async_cf *cmd_cf;
  303|      2|    struct pollfd *tp;
  304|      2|    struct rtpp_cmd_pollset *psp;
  305|      2|    struct rtpp_cmd_accptset *asp;
  306|      2|    struct rtpp_cmd_connection *rcc;
  307|      2|    int nready, controlfd, i, tstate;
  308|      2|    struct sockaddr_storage raddr;
  309|       |
  310|      2|    cmd_cf = (struct rtpp_cmd_async_cf *)arg;
  311|      2|    psp = &cmd_cf->pset;
  312|      2|    asp = &cmd_cf->aset;
  313|       |
  314|  1.85k|    for (;;) {
  315|       |#ifndef LINUX_XXX
  316|       |        /*
  317|       |         * On most decent OSes but Linux close()ing file descriptor in
  318|       |         * parent thread would wake up poll most of the time, however
  319|       |         * once in a while it wouldn't. This is why we don't use INFTIM
  320|       |         * below.
  321|       |         */
  322|       |        nready = poll(asp->pfds, asp->pfds_used, 1000);
  323|       |#else
  324|  1.85k|	nready = poll(asp->pfds, asp->pfds_used, 100);
  325|  1.85k|#endif
  326|  1.85k|        pthread_mutex_lock(&cmd_cf->cmd_mutex);
  327|  1.85k|        tstate = cmd_cf->tstate_acceptor;
  328|  1.85k|        pthread_mutex_unlock(&cmd_cf->cmd_mutex);
  329|  1.85k|        if (tstate == TSTATE_CEASE) {
  ------------------
  |  |   32|  1.85k|#define TSTATE_CEASE 0x1
  ------------------
  |  Branch (329:13): [True: 2, False: 1.85k]
  ------------------
  330|      2|            break;
  331|      2|        }
  332|  1.85k|        if (nready <= 0)
  ------------------
  |  Branch (332:13): [True: 1.85k, False: 0]
  ------------------
  333|  1.85k|            continue;
  334|      0|        for (i = 0; i < asp->pfds_used; i++) {
  ------------------
  |  Branch (334:21): [True: 0, False: 0]
  ------------------
  335|      0|            if ((asp->pfds[i].revents & POLLIN) == 0) {
  ------------------
  |  Branch (335:17): [True: 0, False: 0]
  ------------------
  336|      0|                continue;
  337|      0|            }
  338|      0|            controlfd = accept_connection(CONST(cmd_cf->cf_save), asp->csocks[i],
  ------------------
  |  |  171|      0|#define CONST(p) ((const typeof(*p) *)(p))
  ------------------
  339|      0|              sstosa(&raddr));
  ------------------
  |  |   85|      0|#define	sstosa(ss)	((struct sockaddr *)(ss))
  ------------------
  340|      0|            if (controlfd < 0) {
  ------------------
  |  Branch (340:17): [True: 0, False: 0]
  ------------------
  341|      0|                continue;
  342|      0|            }
  343|      0|            if (rtpp_command_async_wakeup(&cmd_cf->pub, 1) < 0) {
  ------------------
  |  Branch (343:17): [True: 0, False: 0]
  ------------------
  344|       |                /*
  345|       |		 * We cannot proceed if proc cannot be waked,
  346|       |		 * the pfds_mutex might remain locked forever.
  347|       |		 */
  348|      0|                close(controlfd);
  349|      0|                continue;
  350|      0|            }
  351|      0|            pthread_mutex_lock(&psp->pfds_mutex);
  352|      0|            pthread_mutex_unlock(&cmd_cf->cmd_mutex);
  353|      0|            if (psp->pfds_used >= RTPC_MAX_CONNECTIONS) {
  ------------------
  |  |   73|      0|#define RTPC_MAX_CONNECTIONS 100
  ------------------
  |  Branch (353:17): [True: 0, False: 0]
  ------------------
  354|      0|                pthread_mutex_unlock(&psp->pfds_mutex);
  355|      0|                close(controlfd);
  356|      0|                continue;
  357|      0|            }
  358|      0|            tp = realloc(psp->pfds, sizeof(struct pollfd) * (psp->pfds_used + 1));
  359|      0|            if (tp == NULL) {
  ------------------
  |  Branch (359:17): [True: 0, False: 0]
  ------------------
  360|      0|                pthread_mutex_unlock(&psp->pfds_mutex);
  361|      0|                close(controlfd); /* Yeah, sorry, please try later */
  362|      0|                continue;
  363|      0|            }
  364|      0|            psp->pfds = tp;
  365|      0|            rcc = rtpp_cmd_connection_ctor(controlfd, controlfd, asp->csocks[i],
  366|      0|              sstosa(&raddr));
  ------------------
  |  |   85|      0|#define	sstosa(ss)	((struct sockaddr *)(ss))
  ------------------
  367|      0|            if (rcc == NULL) {
  ------------------
  |  Branch (367:17): [True: 0, False: 0]
  ------------------
  368|      0|                pthread_mutex_unlock(&psp->pfds_mutex);
  369|      0|                close(controlfd); /* Yeah, sorry, please try later */
  370|      0|                continue;
  371|      0|            }
  372|      0|            psp->pfds[psp->pfds_used].fd = controlfd;
  373|      0|            psp->pfds[psp->pfds_used].events = POLLIN | POLLERR | POLLHUP;
  374|      0|            psp->pfds[psp->pfds_used].revents = 0;
  375|      0|            psp->rccs[psp->pfds_used] = rcc;
  376|      0|            psp->pfds_used++;
  377|      0|            pthread_mutex_unlock(&psp->pfds_mutex);
  378|      0|            rtpp_command_async_wakeup(&cmd_cf->pub, 0);
  379|      0|        }
  380|      0|    }
  381|      2|}
rtpp_command_async.c:rtpp_cmd_queue_run:
  385|      2|{
  386|      2|    struct rtpp_cmd_async_cf *cmd_cf;
  387|      2|    struct rtpp_cmd_pollset *psp;
  388|      2|    int i, nready, rval;
  389|      2|    struct rtpp_timestamp sptime;
  390|      2|    struct rtpp_command_stats *csp;
  391|      2|    struct rtpp_stats *rtpp_stats_cf;
  392|       |
  393|      2|    cmd_cf = (struct rtpp_cmd_async_cf *)arg;
  394|      2|    rtpp_stats_cf = cmd_cf->cf_save->rtpp_stats;
  395|      2|    csp = &cmd_cf->cstats;
  396|       |
  397|      2|    psp = &cmd_cf->pset;
  398|       |
  399|      4|    for (;;) {
  400|      4|        pthread_mutex_lock(&cmd_cf->cmd_mutex);
  401|      4|        if (cmd_cf->tstate_queue != TSTATE_RUN) {
  ------------------
  |  |   31|      4|#define TSTATE_RUN   0x0
  ------------------
  |  Branch (401:13): [True: 2, False: 2]
  ------------------
  402|      2|            pthread_mutex_unlock(&cmd_cf->cmd_mutex);
  403|      2|            break;
  404|      2|        }
  405|      2|        pthread_mutex_unlock(&cmd_cf->cmd_mutex);
  406|      2|        pthread_mutex_lock(&psp->pfds_mutex);
  407|      2|        nready = poll(psp->pfds, psp->pfds_used, INFTIM);
  ------------------
  |  |   71|      2|#define	INFTIM		(-1)
  ------------------
  408|      2|        if (nready == 0) {
  ------------------
  |  Branch (408:13): [True: 0, False: 2]
  ------------------
  409|      0|            pthread_mutex_unlock(&psp->pfds_mutex);
  410|      0|            continue;
  411|      0|        }
  412|      2|        if (nready < 0 && errno == EINTR) {
  ------------------
  |  Branch (412:13): [True: 0, False: 2]
  |  Branch (412:27): [True: 0, False: 0]
  ------------------
  413|      0|            pthread_mutex_unlock(&psp->pfds_mutex);
  414|      0|            continue;
  415|      0|        }
  416|      2|        if (nready > 0) {
  ------------------
  |  Branch (416:13): [True: 2, False: 0]
  ------------------
  417|      4|            for (i = 0; i < psp->pfds_used; i++) {
  ------------------
  |  Branch (417:25): [True: 2, False: 2]
  ------------------
  418|      2|                if (i == 0) {
  ------------------
  |  Branch (418:21): [True: 2, False: 0]
  ------------------
  419|      2|                    unsigned int dummy;
  420|      2|                    if (psp->pfds[i].revents & POLLIN) {
  ------------------
  |  Branch (420:25): [True: 2, False: 0]
  ------------------
  421|      2|                        read(psp->pfds[i].fd, &dummy, sizeof(dummy));
  422|      2|                    }
  423|      2|                    continue;
  424|      2|                }
  425|      0|again:
  426|      0|                if ((psp->pfds[i].revents & (POLLERR | POLLHUP)) != 0) {
  ------------------
  |  Branch (426:21): [True: 0, False: 0]
  ------------------
  427|      0|                    if (RTPP_CTRL_ACCEPTABLE(psp->rccs[i]->csock)) {
  ------------------
  |  |   53|      0|#define RTPP_CTRL_ACCEPTABLE(rcsp) ((rcsp)->type == RTPC_IFSUN || (rcsp)->type == RTPC_IFSUN_C \
  |  |  ------------------
  |  |  |  Branch (53:37): [True: 0, False: 0]
  |  |  |  Branch (53:67): [True: 0, False: 0]
  |  |  ------------------
  |  |   54|      0|  || (rcsp)->type == RTPC_TCP4 || (rcsp)->type == RTPC_TCP6 || (rcsp)->type == RTPC_SYSD)
  |  |  ------------------
  |  |  |  Branch (54:6): [True: 0, False: 0]
  |  |  |  Branch (54:35): [True: 0, False: 0]
  |  |  |  Branch (54:64): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  428|      0|                        goto closefd;
  429|      0|                    }
  430|      0|                    if (psp->rccs[i]->csock->type == RTPC_STDIO && (psp->pfds[i].revents & POLLIN) == 0) {
  ------------------
  |  Branch (430:25): [True: 0, False: 0]
  |  Branch (430:68): [True: 0, False: 0]
  ------------------
  431|      0|                        goto closefd;
  432|      0|                    }
  433|      0|                }
  434|      0|                if ((psp->pfds[i].revents & POLLIN) == 0) {
  ------------------
  |  Branch (434:21): [True: 0, False: 0]
  ------------------
  435|      0|                    continue;
  436|      0|                }
  437|      0|                rtpp_timestamp_get(&sptime);
  438|      0|                if (RTPP_CTRL_ISSTREAM(psp->rccs[i]->csock)) {
  ------------------
  |  |   50|      0|#define RTPP_CTRL_ISSTREAM(rcsp) ((rcsp)->type == RTPC_IFSUN_C || (rcsp)->type == RTPC_STDIO \
  |  |  ------------------
  |  |  |  Branch (50:35): [True: 0, False: 0]
  |  |  |  Branch (50:67): [True: 0, False: 0]
  |  |  ------------------
  |  |   51|      0|  || (rcsp)->type == RTPC_TCP4 || (rcsp)->type == RTPC_TCP6 || (rcsp)->type == RTPC_FD \
  |  |  ------------------
  |  |  |  Branch (51:6): [True: 0, False: 0]
  |  |  |  Branch (51:35): [True: 0, False: 0]
  |  |  |  Branch (51:64): [True: 0, False: 0]
  |  |  ------------------
  |  |   52|      0|  || (rcsp)->type == RTPC_SYSD)
  |  |  ------------------
  |  |  |  Branch (52:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  439|      0|                    rval = process_commands_stream(CONST(cmd_cf->cf_save), psp->rccs[i], &sptime, csp, rtpp_stats_cf);
  ------------------
  |  |  171|      0|#define CONST(p) ((const typeof(*p) *)(p))
  ------------------
  440|      0|                } else {
  441|      0|                    rval = process_commands(psp->rccs[i]->csock, CONST(cmd_cf->cf_save), psp->pfds[i].fd,
  ------------------
  |  |  171|      0|#define CONST(p) ((const typeof(*p) *)(p))
  ------------------
  442|      0|                      &sptime, csp, rtpp_stats_cf, cmd_cf->rcache);
  443|      0|                }
  444|       |                /*
  445|       |                 * Shut down non-datagram sockets that got I/O error
  446|       |                 * and also all non-continuous UNIX sockets are recycled
  447|       |                 * after each use.
  448|       |                 */
  449|      0|                if (!RTPP_CTRL_ISDG(psp->rccs[i]->csock) && (rval == -1 || !RTPP_CTRL_ISSTREAM(psp->rccs[i]->csock))) {
  ------------------
  |  |   48|      0|#define RTPP_CTRL_ISDG(rcsp) ((rcsp)->type == RTPC_UDP4 || (rcsp)->type == RTPC_UDP6)
  |  |  ------------------
  |  |  |  Branch (48:31): [True: 0, False: 0]
  |  |  |  Branch (48:60): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                              if (!RTPP_CTRL_ISDG(psp->rccs[i]->csock) && (rval == -1 || !RTPP_CTRL_ISSTREAM(psp->rccs[i]->csock))) {
  ------------------
  |  |   50|      0|#define RTPP_CTRL_ISSTREAM(rcsp) ((rcsp)->type == RTPC_IFSUN_C || (rcsp)->type == RTPC_STDIO \
  |  |  ------------------
  |  |  |  Branch (50:35): [True: 0, False: 0]
  |  |  |  Branch (50:67): [True: 0, False: 0]
  |  |  ------------------
  |  |   51|      0|  || (rcsp)->type == RTPC_TCP4 || (rcsp)->type == RTPC_TCP6 || (rcsp)->type == RTPC_FD \
  |  |  ------------------
  |  |  |  Branch (51:6): [True: 0, False: 0]
  |  |  |  Branch (51:35): [True: 0, False: 0]
  |  |  |  Branch (51:64): [True: 0, False: 0]
  |  |  ------------------
  |  |   52|      0|  || (rcsp)->type == RTPC_SYSD)
  |  |  ------------------
  |  |  |  Branch (52:6): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (449:62): [True: 0, False: 0]
  ------------------
  450|      0|closefd:
  451|      0|                    if (psp->rccs[i]->csock->type == RTPC_STDIO && psp->rccs[i]->csock->exit_on_close != 0) {
  ------------------
  |  Branch (451:25): [True: 0, False: 0]
  |  Branch (451:68): [True: 0, False: 0]
  ------------------
  452|      0|                        cmd_cf->cf_save->slowshutdown = 1;
  453|      0|                    }
  454|      0|                    rtpp_cmd_connection_dtor(psp->rccs[i]);
  455|      0|                    psp->pfds_used--;
  456|      0|                    if (psp->pfds_used > 0 && i < psp->pfds_used) {
  ------------------
  |  Branch (456:25): [True: 0, False: 0]
  |  Branch (456:47): [True: 0, False: 0]
  ------------------
  457|      0|                        memmove(&psp->pfds[i], &psp->pfds[i + 1],
  458|      0|                          (psp->pfds_used - i) * sizeof(struct pollfd));
  459|      0|                        memmove(&psp->rccs[i], &psp->rccs[i + 1],
  460|      0|                          (psp->pfds_used - i) * sizeof(struct rtpp_ctrl_connection *));
  461|      0|                        goto again;
  462|      0|                    }
  463|      0|                }
  464|      0|            }
  465|      2|        }
  466|      2|        pthread_mutex_unlock(&psp->pfds_mutex);
  467|      2|        if (nready > 0) {
  ------------------
  |  Branch (467:13): [True: 2, False: 0]
  ------------------
  468|      2|            rtpp_anetio_pump(cmd_cf->cf_save->rtpp_proc_cf->netio);
  469|      2|        }
  470|      2|        flush_cstats(rtpp_stats_cf, csp);
  471|      2|    }
  472|      2|}
rtpp_command_async.c:flush_cstats:
  142|      2|{
  143|       |
  144|      2|    FLUSH_CSTAT(sobj, csp->ncmds_rcvd);
  ------------------
  |  |  133|      2|#define FLUSH_CSTAT(sobj, st)    { \
  |  |  134|      2|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (134:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  135|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  136|      0|        (st).cnt = 0; \
  |  |  137|      0|    } \
  |  |  138|      2|}
  ------------------
  145|      2|    FLUSH_CSTAT(sobj, csp->ncmds_rcvd_ndups);
  ------------------
  |  |  133|      2|#define FLUSH_CSTAT(sobj, st)    { \
  |  |  134|      2|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (134:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  135|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  136|      0|        (st).cnt = 0; \
  |  |  137|      0|    } \
  |  |  138|      2|}
  ------------------
  146|      2|    FLUSH_CSTAT(sobj, csp->ncmds_succd);
  ------------------
  |  |  133|      2|#define FLUSH_CSTAT(sobj, st)    { \
  |  |  134|      2|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (134:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  135|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  136|      0|        (st).cnt = 0; \
  |  |  137|      0|    } \
  |  |  138|      2|}
  ------------------
  147|      2|    FLUSH_CSTAT(sobj, csp->ncmds_errs);
  ------------------
  |  |  133|      2|#define FLUSH_CSTAT(sobj, st)    { \
  |  |  134|      2|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (134:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  135|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  136|      0|        (st).cnt = 0; \
  |  |  137|      0|    } \
  |  |  138|      2|}
  ------------------
  148|      2|    FLUSH_CSTAT(sobj, csp->ncmds_repld);
  ------------------
  |  |  133|      2|#define FLUSH_CSTAT(sobj, st)    { \
  |  |  134|      2|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (134:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  135|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  136|      0|        (st).cnt = 0; \
  |  |  137|      0|    } \
  |  |  138|      2|}
  ------------------
  149|       |
  150|      2|    FLUSH_CSTAT(sobj, csp->nsess_complete);
  ------------------
  |  |  133|      2|#define FLUSH_CSTAT(sobj, st)    { \
  |  |  134|      2|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (134:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  135|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  136|      0|        (st).cnt = 0; \
  |  |  137|      0|    } \
  |  |  138|      2|}
  ------------------
  151|      2|    FLUSH_CSTAT(sobj, csp->nsess_created);
  ------------------
  |  |  133|      2|#define FLUSH_CSTAT(sobj, st)    { \
  |  |  134|      2|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (134:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  135|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  136|      0|        (st).cnt = 0; \
  |  |  137|      0|    } \
  |  |  138|      2|}
  ------------------
  152|       |
  153|      2|    FLUSH_CSTAT(sobj, csp->nplrs_created);
  ------------------
  |  |  133|      2|#define FLUSH_CSTAT(sobj, st)    { \
  |  |  134|      2|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (134:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  135|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  136|      0|        (st).cnt = 0; \
  |  |  137|      0|    } \
  |  |  138|      2|}
  ------------------
  154|      2|    FLUSH_CSTAT(sobj, csp->nplrs_destroyed);
  ------------------
  |  |  133|      2|#define FLUSH_CSTAT(sobj, st)    { \
  |  |  134|      2|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (134:9): [True: 0, False: 2]
  |  |  ------------------
  |  |  135|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  136|      0|        (st).cnt = 0; \
  |  |  137|      0|    } \
  |  |  138|      2|}
  ------------------
  155|      2|}
rtpp_command_async.c:rtpp_command_async_wakeup:
  495|      2|{
  496|      2|    int old_clock;
  497|      2|    struct rtpp_cmd_async_cf *cmd_cf;
  498|       |
  499|      2|    PUB2PVT(pub, cmd_cf);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  500|       |
  501|      2|    pthread_mutex_lock(&cmd_cf->cmd_mutex);
  502|      2|    old_clock = cmd_cf->clock_tick;
  503|      2|    cmd_cf->clock_tick++;
  504|      2|    if (!keep_locked)
  ------------------
  |  Branch (504:9): [True: 2, False: 0]
  ------------------
  505|      2|        pthread_mutex_unlock(&cmd_cf->cmd_mutex);
  506|       |
  507|       |    /* notify worker thread */
  508|      2|    if (write(cmd_cf->wakefds[0], &old_clock, sizeof(old_clock + 1)) <= 0) {
  ------------------
  |  Branch (508:9): [True: 0, False: 2]
  ------------------
  509|      0|	if (keep_locked)
  ------------------
  |  Branch (509:6): [True: 0, False: 0]
  ------------------
  510|      0|            pthread_mutex_unlock(&cmd_cf->cmd_mutex);
  511|      0|        return (-1);
  512|      0|    }
  513|       |
  514|      2|    return (old_clock);
  515|      2|}
rtpp_command_async.c:free_accptset:
  652|      2|{
  653|      2|    if (asp->pfds_used > 0) {
  ------------------
  |  Branch (653:9): [True: 2, False: 0]
  ------------------
  654|      2|        free(asp->csocks);
  655|      2|        free(asp->pfds);
  656|      2|    }
  657|      2|}
rtpp_command_async.c:free_pollset:
  601|      2|{
  602|      2|    int i;
  603|       |
  604|      2|    for (i = 1; i < psp->pfds_used; i ++) {
  ------------------
  |  Branch (604:17): [True: 0, False: 2]
  ------------------
  605|      0|        rtpp_cmd_connection_dtor(psp->rccs[i]);
  606|      0|    }
  607|      2|    free(psp->pfds);
  608|      2|}
rtpp_command_async.c:rtpp_command_async_dtor:
  751|      2|{
  752|      2|    struct rtpp_cmd_async_cf *cmd_cf;
  753|      2|    int i;
  754|       |
  755|      2|    PUB2PVT(pub, cmd_cf);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  756|       |
  757|      2|    pthread_mutex_lock(&cmd_cf->cmd_mutex);
  758|      2|    cmd_cf->tstate_queue = TSTATE_CEASE;
  ------------------
  |  |   32|      2|#define TSTATE_CEASE 0x1
  ------------------
  759|       |    /* nudge acceptor thread */
  760|      2|    if (cmd_cf->acceptor_started != 0) {
  ------------------
  |  Branch (760:9): [True: 2, False: 0]
  ------------------
  761|      2|        cmd_cf->tstate_acceptor = TSTATE_CEASE;
  ------------------
  |  |   32|      2|#define TSTATE_CEASE 0x1
  ------------------
  762|      4|        for (i = 0; i < cmd_cf->aset.pfds_used; i ++) {
  ------------------
  |  Branch (762:21): [True: 2, False: 2]
  ------------------
  763|      2|            close(cmd_cf->aset.pfds[i].fd);
  764|      2|        }
  765|      2|    }
  766|      2|    pthread_mutex_unlock(&cmd_cf->cmd_mutex);
  767|       |    /* notify worker thread */
  768|      2|    if (rtpp_command_async_wakeup(pub, 0) < 0)
  ------------------
  |  Branch (768:9): [True: 0, False: 2]
  ------------------
  769|      0|        pthread_kill(cmd_cf->thread_id, SIGKILL);
  770|      2|    pthread_join(cmd_cf->thread_id, NULL);        
  771|      2|    if (cmd_cf->acceptor_started != 0) {
  ------------------
  |  Branch (771:9): [True: 2, False: 0]
  ------------------
  772|      2|        pthread_join(cmd_cf->acpt_thread_id, NULL);
  773|      2|    }
  774|      2|    CALL_METHOD(cmd_cf->rcache, shutdown);
  ------------------
  |  |   83|      2|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  775|      2|    RTPP_OBJ_DECREF(cmd_cf->rcache);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  776|      2|    pthread_mutex_destroy(&cmd_cf->cmd_mutex);
  777|      2|    free_pollset(&cmd_cf->pset);
  778|      2|    free_accptset(&cmd_cf->aset);
  779|      6|    for (int k = 0; k < 2; k++)
  ------------------
  |  Branch (779:21): [True: 4, False: 2]
  ------------------
  780|      4|        close(cmd_cf->wakefds[k]);
  781|      2|    free(cmd_cf);
  782|      2|}

rtpp_cmd_rcache_ctor:
   74|      2|{
   75|      2|    struct rtpp_cmd_rcache_pvt *pvt;
   76|       |
   77|      2|    pvt = rtpp_rzmalloc(sizeof(struct rtpp_cmd_rcache_pvt), PVT_RCOFFS(pvt));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
   78|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (78:9): [True: 0, False: 2]
  ------------------
   79|      0|        return (NULL);
   80|      0|    }
   81|      2|#if !defined(RTPP_DEBUG)
   82|      2|    pvt->ht = rtpp_hash_table_ctor(rtpp_ht_key_str_t, RTPP_HT_NODUPS);
  ------------------
  |  |   71|      2|#define RTPP_HT_NODUPS    0x1
  ------------------
   83|       |#else
   84|       |    pvt->ht = rtpp_hash_table_ctor(rtpp_ht_key_str_t, RTPP_HT_NODUPS |
   85|       |      RTPP_HT_DUP_ABRT);
   86|       |#endif
   87|      2|    if (pvt->ht == NULL) {
  ------------------
  |  Branch (87:9): [True: 0, False: 2]
  ------------------
   88|      0|        goto e0;
   89|      0|    }
   90|      2|    pvt->timeout = CALL_SMETHOD(rtpp_timed_cf, schedule_rc, RTPP_RCACHE_CPERD,
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |   90|      2|    pvt->timeout = CALL_SMETHOD(rtpp_timed_cf, schedule_rc, RTPP_RCACHE_CPERD,
  |  |  |  |  ------------------
  |  |  |  |  |  |   48|      2|#define	RTPP_RCACHE_CPERD	3.0
  |  |  |  |  ------------------
  |  |  |  |   91|      4|      pvt->pub.rcnt, rtpp_cmd_rcache_cleanup, NULL, pvt);
  |  |  ------------------
  ------------------
   91|      2|      pvt->pub.rcnt, rtpp_cmd_rcache_cleanup, NULL, pvt);
   92|      2|    if (pvt->timeout == NULL) {
  ------------------
  |  Branch (92:9): [True: 0, False: 2]
  ------------------
   93|      0|        goto e2;
   94|      0|    }
   95|      2|    pvt->min_ttl = min_ttl;
   96|      2|    pvt->timeout_rval = CB_MORE;
   97|      2|    pvt->pub.insert = &rtpp_cmd_rcache_insert;
   98|      2|    pvt->pub.lookup = &rtpp_cmd_rcache_lookup;
   99|      2|    pvt->pub.shutdown = &rtpp_cmd_rcache_shutdown;
  100|      2|    RTPP_OBJ_DTOR_ATTACH_s(&pvt->pub, (rtpp_refcnt_dtor_t)&rtpp_cmd_rcache_dtor,
  ------------------
  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
  101|      2|      pvt);
  102|      2|    return (&pvt->pub);
  103|       |
  104|      0|e2:
  105|      0|    RTPP_OBJ_DECREF(pvt->ht);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  106|      0|e0:
  107|      0|    RTPP_OBJ_DECREF(&(pvt->pub));
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  108|       |    return (NULL);
  109|      0|}
rtpp_command_rcache.c:rtpp_cmd_rcache_shutdown:
  170|      2|{
  171|      2|    struct rtpp_cmd_rcache_pvt *pvt;
  172|       |
  173|      2|    PUB2PVT(pub, pvt);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  174|      2|    pvt->timeout_rval = CB_LAST;
  175|      2|    CALL_METHOD(pvt->timeout, cancel);
  ------------------
  |  |   83|      2|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  176|      2|    RTPP_OBJ_DECREF(pvt->timeout);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  177|       |    pvt->timeout = NULL;
  178|      2|}
rtpp_command_rcache.c:rtpp_cmd_rcache_dtor:
  182|      2|{
  183|       |
  184|      2|    rtpp_cmd_rcache_fin(&pvt->pub);
  185|      2|    RTPP_OBJ_DECREF(pvt->ht);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  186|      2|}
rtpp_command_rcache.c:rtpp_cmd_rcache_cleanup:
  208|     61|{
  209|     61|    struct rtpp_cmd_rcache_pvt *pvt;
  210|       |
  211|     61|    pvt = (struct rtpp_cmd_rcache_pvt *)p;
  212|     61|    CALL_SMETHOD(pvt->ht, foreach, rtpp_cmd_rcache_ematch, &ctime, NULL);
  ------------------
  |  |  156|     61|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|     61|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|     61|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|     61|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|     61|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|     61|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|     61|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|     61|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|     61|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|     61|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|     61|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|     61|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|     61|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|     61|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|     61|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|     61|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|     61|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|     61|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|     61|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|     61|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|     61|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|     61|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|     61|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|     61|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|     61|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|     61|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|     61|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|     61|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|     61|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|     61|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|     61|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|     61|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|     61|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|     61|)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  212|     61|    CALL_SMETHOD(pvt->ht, foreach, rtpp_cmd_rcache_ematch, &ctime, NULL);
  |  |  ------------------
  ------------------
  213|     61|    return (pvt->timeout_rval);
  214|     61|}

rtpp_controlfd_init:
  285|      2|{
  286|      2|    int controlfd_in, controlfd_out, flags;
  287|      2|    struct rtpp_ctrl_sock *ctrl_sock;
  288|       |
  289|      2|    for (ctrl_sock = RTPP_LIST_HEAD(cfsp->ctrl_socks);
  ------------------
  |  |   60|      2|#define RTPP_LIST_HEAD(lst)  (void *)((lst)->head)
  ------------------
  290|      4|      ctrl_sock != NULL; ctrl_sock = RTPP_ITER_NEXT(ctrl_sock)) {
  ------------------
  |  |   63|      2|#define RTPP_ITER_NEXT(stlp)     ((void *)((stlp)->t.next))
  ------------------
  |  Branch (290:7): [True: 2, False: 2]
  ------------------
  291|      2|        if (ctrl_sock->inherited) {
  ------------------
  |  Branch (291:13): [True: 0, False: 2]
  ------------------
  292|      0|            controlfd_in = controlfd_out = ctrl_sock->controlfd_in;
  293|      0|            goto have_fd;
  294|      0|        }
  295|      2|        switch (ctrl_sock->type) {
  296|      0|        case RTPC_SYSD:
  ------------------
  |  Branch (296:9): [True: 0, False: 2]
  ------------------
  297|      0|            controlfd_in = controlfd_out = controlfd_init_systemd();
  298|      0|            break;
  299|       |
  300|      2|        case RTPC_IFSUN:
  ------------------
  |  Branch (300:9): [True: 2, False: 0]
  ------------------
  301|      2|        case RTPC_IFSUN_C:
  ------------------
  |  Branch (301:9): [True: 0, False: 2]
  ------------------
  302|      2|            controlfd_in = controlfd_out = controlfd_init_ifsun(cfsp, ctrl_sock);
  303|      2|            break;
  304|       |
  305|      0|        case RTPC_UDP4:
  ------------------
  |  Branch (305:9): [True: 0, False: 2]
  ------------------
  306|      0|        case RTPC_UDP6:
  ------------------
  |  Branch (306:9): [True: 0, False: 2]
  ------------------
  307|      0|            controlfd_in = controlfd_out = controlfd_init_udp(cfsp, ctrl_sock);
  308|      0|            break;
  309|       |
  310|      0|        case RTPC_TCP4:
  ------------------
  |  Branch (310:9): [True: 0, False: 2]
  ------------------
  311|      0|        case RTPC_TCP6:
  ------------------
  |  Branch (311:9): [True: 0, False: 2]
  ------------------
  312|      0|            controlfd_in = controlfd_out = controlfd_init_tcp(cfsp, ctrl_sock);
  313|      0|            break;
  314|       |
  315|      0|        case RTPC_STDIO:
  ------------------
  |  Branch (315:9): [True: 0, False: 2]
  ------------------
  316|      0|            controlfd_in = fileno(stdin);
  317|      0|            controlfd_out = fileno(stdout);
  318|      0|            break;
  319|       |
  320|      0|        case RTPC_FD:
  ------------------
  |  Branch (320:9): [True: 0, False: 2]
  ------------------
  321|      0|            if (atoi_safe(ctrl_sock->cmd_sock, &controlfd_in) != ATOI_OK ||
  ------------------
  |  Branch (321:17): [True: 0, False: 0]
  ------------------
  322|      0|              controlfd_in < 0) {
  ------------------
  |  Branch (322:15): [True: 0, False: 0]
  ------------------
  323|      0|                warnx("invalid fd: %s", ctrl_sock->cmd_sock);
  324|      0|                return (-1);
  325|      0|            }
  326|      0|            controlfd_out = controlfd_in;
  327|      0|            break;
  328|      0|        default:
  ------------------
  |  Branch (328:9): [True: 0, False: 2]
  ------------------
  329|      0|            warnx("unhandled RTPC_XXX type: %d", ctrl_sock->type);
  330|      0|            abort();
  331|      2|        }
  332|      2|have_fd:
  333|      2|        if (controlfd_in < 0 || controlfd_out < 0) {
  ------------------
  |  Branch (333:13): [True: 0, False: 2]
  |  Branch (333:33): [True: 0, False: 2]
  ------------------
  334|      0|            return (-1);
  335|      0|        }
  336|      2|        ctrl_sock->controlfd_in = controlfd_in;
  337|      2|        ctrl_sock->controlfd_out = controlfd_out;
  338|      2|        flags = fcntl(controlfd_in, F_GETFL);
  339|      2|        if (flags < 0 || fcntl(controlfd_in, F_SETFL, flags | O_NONBLOCK) < 0) {
  ------------------
  |  Branch (339:13): [True: 0, False: 2]
  |  Branch (339:26): [True: 0, False: 2]
  ------------------
  340|      0|            warn("can't set O_NONBLOCK on a socket: %d", controlfd_in);
  341|      0|            return (-1);
  342|      0|        }
  343|      2|    }
  344|       |
  345|      2|    return (0);
  346|      2|}
rtpp_controlfd_cleanup:
  377|      2|{
  378|      2|    struct rtpp_ctrl_sock *ctrl_sock;
  379|       |
  380|      2|    for (ctrl_sock = RTPP_LIST_HEAD(cfsp->ctrl_socks);
  ------------------
  |  |   60|      2|#define RTPP_LIST_HEAD(lst)  (void *)((lst)->head)
  ------------------
  381|      4|      ctrl_sock != NULL; ctrl_sock = RTPP_ITER_NEXT(ctrl_sock)) {
  ------------------
  |  |   63|      2|#define RTPP_ITER_NEXT(stlp)     ((void *)((stlp)->t.next))
  ------------------
  |  Branch (381:7): [True: 2, False: 2]
  ------------------
  382|      2|        if (RTPP_CTRL_ISUNIX(ctrl_sock) == 0 || ctrl_sock->inherited)
  ------------------
  |  |   49|      2|#define RTPP_CTRL_ISUNIX(rcsp) ((rcsp)->type == RTPC_IFSUN || (rcsp)->type == RTPC_IFSUN_C)
  |  |  ------------------
  |  |  |  Branch (49:33): [True: 2, False: 0]
  |  |  |  Branch (49:63): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (382:13): [True: 0, False: 2]
  |  Branch (382:49): [True: 0, False: 2]
  ------------------
  383|      0|            continue;
  384|      2|        unlink(ctrl_sock->cmd_sock);
  385|      2|    }
  386|      2|}
rtpp_ctrl_sock_parse:
  390|      2|{
  391|      2|    struct rtpp_ctrl_sock *rcsp;
  392|       |
  393|      2|    rcsp = rtpp_zmalloc(sizeof(struct rtpp_ctrl_sock));
  394|      2|    if (rcsp == NULL) {
  ------------------
  |  Branch (394:9): [True: 0, False: 2]
  ------------------
  395|      0|        return (NULL);
  396|      0|    }
  397|      2|    rcsp->type= RTPC_IFSUN;
  398|      2|    if (strncmp("udp:", optarg, 4) == 0) {
  ------------------
  |  Branch (398:9): [True: 0, False: 2]
  ------------------
  399|      0|        rcsp->type= RTPC_UDP4;
  400|      0|        optarg += 4;
  401|      2|    } else if (strncmp("udp6:", optarg, 5) == 0) {
  ------------------
  |  Branch (401:16): [True: 0, False: 2]
  ------------------
  402|      0|        rcsp->type= RTPC_UDP6;
  403|      0|        optarg += 5;
  404|      2|    } else if (strncmp("unix:", optarg, 5) == 0) {
  ------------------
  |  Branch (404:16): [True: 0, False: 2]
  ------------------
  405|      0|        rcsp->type= RTPC_IFSUN;
  406|      0|        optarg += 5;
  407|      2|    } else if (strncmp("cunix:", optarg, 6) == 0) {
  ------------------
  |  Branch (407:16): [True: 0, False: 2]
  ------------------
  408|      0|        rcsp->type= RTPC_IFSUN_C;
  409|      0|        optarg += 6;
  410|      2|    } else if (strncmp("systemd:", optarg, 8) == 0) {
  ------------------
  |  Branch (410:16): [True: 0, False: 2]
  ------------------
  411|      0|        rcsp->type= RTPC_SYSD;
  412|      0|        optarg += 8;
  413|      2|    } else if (strncmp("stdio:", optarg, 6) == 0) {
  ------------------
  |  Branch (413:16): [True: 0, False: 2]
  ------------------
  414|      0|        rcsp->type= RTPC_STDIO;
  415|      0|        optarg += 6;
  416|      2|    } else if (strncmp("stdioc:", optarg, 7) == 0) {
  ------------------
  |  Branch (416:16): [True: 0, False: 2]
  ------------------
  417|      0|        rcsp->type= RTPC_STDIO;
  418|      0|        rcsp->exit_on_close = 1;
  419|      0|        optarg += 7;
  420|      2|    } else if (strncmp("fd:", optarg, 3) == 0) {
  ------------------
  |  Branch (420:16): [True: 0, False: 2]
  ------------------
  421|      0|        int fd;
  422|       |
  423|      0|        rcsp->type= RTPC_FD;
  424|      0|        optarg += 3;
  425|      0|        if (atoi_safe(optarg, &fd) != ATOI_OK || fd < 0) {
  ------------------
  |  Branch (425:13): [True: 0, False: 0]
  |  Branch (425:50): [True: 0, False: 0]
  ------------------
  426|      0|            warnx("invalid fd: %s", optarg);
  427|      0|            goto e0;
  428|      0|        }
  429|      0|        if (controlfd_probe_inherited(rcsp, fd) != 0)
  ------------------
  |  Branch (429:13): [True: 0, False: 0]
  ------------------
  430|      0|            goto e0;
  431|      0|        if (rcsp->inherited)
  ------------------
  |  Branch (431:13): [True: 0, False: 0]
  ------------------
  432|      0|            rcsp->controlfd_in = fd;
  433|      2|    } else if (strncmp("tcp:", optarg, 4) == 0) {
  ------------------
  |  Branch (433:16): [True: 0, False: 2]
  ------------------
  434|      0|        rcsp->type= RTPC_TCP4;
  435|      0|        optarg += 4;
  436|      2|    } else if (strncmp("tcp6:", optarg, 5) == 0) {
  ------------------
  |  Branch (436:16): [True: 0, False: 2]
  ------------------
  437|      0|        rcsp->type= RTPC_TCP6;
  438|      0|        optarg += 5;
  439|      0|    }
  440|      2|    rcsp->cmd_sock = optarg;
  441|       |
  442|      2|    return (rcsp);
  443|      0|e0:
  444|      0|    free(rcsp);
  445|       |    return (NULL);
  446|      2|}
rtpp_controlfd.c:controlfd_init_ifsun:
  140|      2|{
  141|      2|    int controlfd;
  142|      2|    struct sockaddr_un *ifsun;
  143|       |
  144|      2|    if (strlen(csp->cmd_sock) >= sizeof(ifsun->sun_path)) {
  ------------------
  |  Branch (144:9): [True: 0, False: 2]
  ------------------
  145|      0|        warnx("socket name is too long: %s", csp->cmd_sock);
  146|      0|        errno = ENAMETOOLONG;
  147|      0|        return (-1);
  148|      0|    }
  149|      2|    unlink(csp->cmd_sock);
  150|      2|    ifsun = sstosun(&csp->bindaddr);
  ------------------
  |  |   88|      2|#define sstosun(ss)      ((struct sockaddr_un *)(ss))
  ------------------
  151|      2|    memset(ifsun, '\0', sizeof(struct sockaddr_un));
  152|       |#if defined(HAVE_SOCKADDR_SUN_LEN)
  153|       |    ifsun->sun_len = strlen(csp->cmd_sock);
  154|       |#endif
  155|      2|    ifsun->sun_family = AF_LOCAL;
  156|      2|    strlcpy(ifsun->sun_path, csp->cmd_sock, sizeof(ifsun->sun_path));
  157|      2|    controlfd = socket(AF_LOCAL, SOCK_STREAM, 0);
  158|      2|    if (controlfd == -1) {
  ------------------
  |  Branch (158:9): [True: 0, False: 2]
  ------------------
  159|      0|        warn("can't create socket");
  160|      0|        return (-1);
  161|      0|    }
  162|      2|    if (bind(controlfd, sstosa(ifsun), sizeof(struct sockaddr_un)) < 0) {
  ------------------
  |  |   85|      2|#define	sstosa(ss)	((struct sockaddr *)(ss))
  ------------------
  |  Branch (162:9): [True: 0, False: 2]
  ------------------
  163|      0|        warn("can't bind to a socket: %s", csp->cmd_sock);
  164|      0|        goto e0;
  165|      0|    }
  166|      2|    if ((cfsp->runcreds->uname != NULL || cfsp->runcreds->gname != NULL) &&
  ------------------
  |  Branch (166:10): [True: 0, False: 2]
  |  Branch (166:43): [True: 0, False: 2]
  ------------------
  167|      0|      chown(csp->cmd_sock, cfsp->runcreds->uid, cfsp->runcreds->gid) == -1) {
  ------------------
  |  Branch (167:7): [True: 0, False: 0]
  ------------------
  168|      0|        warn("can't set owner of the socket: %s", csp->cmd_sock);
  169|      0|        goto e0;
  170|      0|    }
  171|      2|    if ((cfsp->runcreds->gname != NULL) && cfsp->runcreds->sock_mode != 0 &&
  ------------------
  |  Branch (171:9): [True: 0, False: 2]
  |  Branch (171:44): [True: 0, False: 0]
  ------------------
  172|      0|      (chmod(csp->cmd_sock, cfsp->runcreds->sock_mode) == -1)) {
  ------------------
  |  Branch (172:7): [True: 0, False: 0]
  ------------------
  173|      0|        warn("can't allow rw acces to group");
  174|      0|        goto e0;
  175|      0|    }
  176|      2|    if (listen(controlfd, 32) != 0) {
  ------------------
  |  Branch (176:9): [True: 0, False: 2]
  ------------------
  177|      0|        warn("can't listen on a socket: %s", csp->cmd_sock);
  178|      0|        goto e0;
  179|      0|    }
  180|       |
  181|      2|    return (controlfd);
  182|      0|e0:
  183|      0|    close(controlfd);
  184|      0|    return (-1);
  185|      2|}

rtpp_epoll_create:
   47|      4|{
   48|       |#if HAVE_KQUEUE
   49|       |    int qid = kqueue();
   50|       |
   51|       |    return (qid);
   52|       |#else
   53|      4|    return (epoll_create(1));
   54|      4|#endif
   55|      4|}
rtpp_epoll_ctl:
   59|      4|{
   60|       |#if HAVE_KQUEUE
   61|       |    struct kevent k_event;
   62|       |    void *udata;
   63|       |
   64|       |    if (op == EPOLL_CTL_DEL) {
   65|       |        EV_SET(&k_event, fd, EVFILT_READ, op, 0, 0, NULL);
   66|       |        int r1 = kevent(epfd, &k_event, 1, NULL, 0, NULL);
   67|       |#if 0
   68|       |        EV_SET(&k_event, fd, EVFILT_WRITE, op, 0, 0, NULL);
   69|       |        int r2 = kevent(epfd, &k_event, 1, NULL, 0, NULL);
   70|       |        return (r1 == 0 || r2 == 0) ? 0 : -1;
   71|       |#endif
   72|       |        return (r1);
   73|       |    }
   74|       |
   75|       |    udata = event->data.ptr;
   76|       |    if (event->events & EPOLLIN) {
   77|       |        EV_SET(&k_event, fd, EVFILT_READ, op, 0, 0, udata);
   78|       |        if (kevent(epfd, &k_event, 1, NULL, 0, NULL) != 0)
   79|       |            return (-1);
   80|       |        return (0);
   81|       |    }
   82|       |#if 0
   83|       |    if (event->events & EPOLLOUT) {
   84|       |        EV_SET(&k_event, fd, EVFILT_WRITE, op, 0, 0, udata);
   85|       |        if (kevent(epfd, &k_event, 1, NULL, 0, NULL) != 0)
   86|       |            return (-1);
   87|       |    }
   88|       |#endif
   89|       |    return (-1);
   90|       |#else
   91|      4|    return (epoll_ctl(epfd, op, fd, event));
   92|      4|#endif
   93|      4|}
rtpp_epoll_wait:
  132|      4|{
  133|       |#if HAVE_KQUEUE
  134|       |    struct kevent *kep;
  135|       |    struct timespec tot, *top;
  136|       |    int ret, kret;
  137|       |
  138|       |    kep = alloca(sizeof(struct kevent) * maxevents);
  139|       |    if (kep == NULL)
  140|       |        return (-1);
  141|       |    if (timeout >= 0) {
  142|       |        tot.tv_sec = timeout / 1000;
  143|       |        tot.tv_nsec = (timeout % 1000) * 1000000;
  144|       |        top = &tot;
  145|       |    } else {
  146|       |        top = NULL;
  147|       |    }
  148|       |    kret = kevent(epfd, NULL, 0, kep, maxevents, top);
  149|       |    if (kret <= 0)
  150|       |        return (kret);
  151|       |    ret = 0;
  152|       |    for (int i = 0; i < kret; i++) {
  153|       |        ret = append_kevent(events, ret, kep, i);
  154|       |    }
  155|       |    return (ret);
  156|       |#else
  157|      4|    return (epoll_wait(epfd, events, maxevents, timeout));
  158|      4|#endif
  159|      4|}

rtpp_genuid_ctor:
   53|      2|{
   54|      2|    struct rtpp_genuid_priv *pvt;
   55|       |
   56|      2|    pvt = rtpp_rzmalloc(sizeof(struct rtpp_genuid_priv), PVT_RCOFFS(pvt));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
   57|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (57:9): [True: 0, False: 2]
  ------------------
   58|      0|        goto e0;
   59|      0|    }
   60|      2|    atomic_init(&pvt->lastuid, 0);
   61|       |#if defined(RTPP_DEBUG)
   62|       |    pvt->pub.smethods = GET_SMETHODS(&pvt->pub);
   63|       |    RTPP_OBJ_DTOR_ATTACH_s(&pvt->pub, (rtpp_refcnt_dtor_t)&rtpp_genuid_fin,
   64|       |      &(pvt->pub));
   65|       |#endif
   66|      2|    return (&pvt->pub);
   67|       |
   68|      0|e0:
   69|       |    return (NULL);
   70|      2|}

rtpp_hash_table_ctor:
  149|     14|{
  150|     14|    struct rtpp_hash_table *pub;
  151|     14|    struct rtpp_hash_table_priv *pvt;
  152|     14|    int ht_len = 256;
  153|       |
  154|     14|    pvt = rtpp_rzmalloc(sizeof(struct rtpp_hash_table_priv), PVT_RCOFFS(pvt));
  ------------------
  |  |  165|     14|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
  155|     14|    if (pvt == NULL) {
  ------------------
  |  Branch (155:9): [True: 0, False: 14]
  ------------------
  156|      0|        goto e0;
  157|      0|    }
  158|     14|    pvt->l1 = rtpp_zmalloc(rtpp_hash_table_l1_sizeof(ht_len));
  159|     14|    if (pvt->l1 == NULL) {
  ------------------
  |  Branch (159:9): [True: 0, False: 14]
  ------------------
  160|      0|        goto e1;
  161|      0|    }
  162|     14|    if (pthread_mutex_init(&pvt->hash_table_lock, NULL) != 0)
  ------------------
  |  Branch (162:9): [True: 0, False: 14]
  ------------------
  163|      0|        goto e2;
  164|     14|    pvt->key_type = key_type;
  165|     14|    pvt->flags = flags;
  166|     14|    pvt->l1->ht_len = ht_len;
  167|     14|    pub = &(pvt->pub);
  168|     14|    pvt->pub.seed = ((uint64_t)random()) << 32 | (uint64_t)random();
  169|     14|    PUBINST_FININIT(&pvt->pub, pvt, hash_table_dtor);
  ------------------
  |  |   76|     14|    RTPP_OBJ_DTOR_ATTACH_s((pub_inst), (rtpp_refcnt_dtor_t)(dtor), \
  |  |  ------------------
  |  |  |  |  177|     14|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|     14|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|     14|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|     14|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|     14|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|     14|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|     14|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|     14|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|     14|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|     14|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|     14|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|     14|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|     14|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|     14|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|     14|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|     14|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|     14|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|     14|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|     14|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|     14|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|     14|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|     14|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|     14|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|     14|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|     14|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|     14|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|     14|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|     14|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|     14|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|     14|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|     14|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|     14|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|     14|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|     14|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|     14|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  178|     14|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |   77|     14|      pvt_inst);
  ------------------
  170|     14|    return (pub);
  171|      0|e2:
  172|      0|    free(pvt->l1);
  173|      0|e1:
  174|      0|    RTPP_OBJ_DECREF(&(pvt->pub));
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  175|      0|e0:
  176|       |    return (NULL);
  177|      0|}
rtpp_hash_table.c:hash_table_foreach:
  680|    250|{
  681|    250|    struct rc2norc_args args = {.hte_ematch = hte_ematch, .marg = marg};
  682|    250|    return hash_table_foreach_rc(self, ematch_rc2norc, &args, hosp);
  683|    250|}
rtpp_hash_table.c:hash_table_foreach_rc:
  631|    254|{
  632|    254|    struct rtpp_hash_table_entry *sp, *sp_next;
  633|    254|    struct rtpp_hash_table_priv *pvt;
  634|    254|    struct rtpp_refcnt *rptr;
  635|    254|    int i, mval;
  636|       |
  637|    254|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|    254|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  638|    254|    pthread_mutex_lock(&pvt->hash_table_lock);
  639|    254|    if (pvt->l1->hte_num == 0) {
  ------------------
  |  Branch (639:9): [True: 254, False: 0]
  ------------------
  640|    254|        pthread_mutex_unlock(&pvt->hash_table_lock);
  641|    254|        return;
  642|    254|    }
  643|      0|    for (i = 0; i < pvt->l1->ht_len; i++) {
  ------------------
  |  Branch (643:17): [True: 0, False: 0]
  ------------------
  644|      0|        for (sp = pvt->l1->hash_table[i]; sp != NULL; sp = sp_next) {
  ------------------
  |  Branch (644:43): [True: 0, False: 0]
  ------------------
  645|      0|            RTPP_DBG_ASSERT(sp->hte_type == rtpp_hte_refcnt_t);
  646|      0|            rptr = (struct rtpp_refcnt *)sp->sptr;
  647|      0|            sp_next = sp->next;
  648|      0|            mval = hte_ematch_rc(rptr, marg);
  649|      0|            RTPP_DBG_ASSERT(VDTE_MVAL(mval));
  650|      0|            if (mval & RTPP_HT_MATCH_DEL) {
  ------------------
  |  |   76|      0|#define RTPP_HT_MATCH_DEL   (1 << 1)
  ------------------
  |  Branch (650:17): [True: 0, False: 0]
  ------------------
  651|      0|                hash_table_remove_locked(pvt, sp, sp->hash, hosp);
  652|      0|                RC_DECREF(rptr);
  ------------------
  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  ------------------
  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  653|      0|                free(sp);
  654|      0|            }
  655|      0|            if (mval & RTPP_HT_MATCH_BRK) {
  ------------------
  |  |   75|      0|#define RTPP_HT_MATCH_BRK   (1 << 0)
  ------------------
  |  Branch (655:17): [True: 0, False: 0]
  ------------------
  656|      0|                goto out;
  657|      0|            }
  658|      0|        }
  659|      0|    }
  660|      0|out:
  661|      0|    pthread_mutex_unlock(&pvt->hash_table_lock);
  662|      0|}
rtpp_hash_table.c:hash_table_get_length:
  747|      6|{
  748|      6|    struct rtpp_hash_table_priv *pvt;
  749|      6|    int rval;
  750|       |
  751|      6|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      6|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  752|      6|    pthread_mutex_lock(&pvt->hash_table_lock);
  753|      6|    rval = pvt->l1->hte_num;
  754|      6|    pthread_mutex_unlock(&pvt->hash_table_lock);
  755|       |
  756|      6|    return (rval);
  757|      6|}
rtpp_hash_table.c:hash_table_purge:
  778|      4|{
  779|      4|    int npurged;
  780|      4|    struct purge_batch pb;
  781|       |
  782|      4|    for (npurged = 0;; npurged++) {
  783|      4|        pb.n = 0;
  784|      4|        hash_table_foreach_rc(self, hash_table_purge_f, &pb, NULL);
  785|      4|        RTPP_DBG_ASSERT(pb.n <= PURGE_BATCH);
  786|      4|        if (pb.n == 0)
  ------------------
  |  Branch (786:13): [True: 4, False: 0]
  ------------------
  787|      4|            break;
  788|      0|        for (int i = 0; i < pb.n; i++)
  ------------------
  |  Branch (788:25): [True: 0, False: 0]
  ------------------
  789|      0|            RC_DECREF(pb.rptrs[i]);
  ------------------
  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  ------------------
  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  790|      0|    }
  791|      4|    return (npurged);
  792|      4|}
rtpp_hash_table.c:rtpp_hash_table_l1_sizeof:
  141|     14|{
  142|       |
  143|     14|    return (sizeof(struct rtpp_hash_table_l1) +
  144|     14|      (sizeof(struct rtpp_hash_table_entry *) * ht_len));
  145|     14|}
rtpp_hash_table.c:hash_table_dtor:
  181|     14|{
  182|     14|    struct rtpp_hash_table_entry *sp, *sp_next;
  183|     14|    int i;
  184|       |
  185|     14|    rtpp_hash_table_fin(&(pvt->pub));
  186|  3.59k|    for (i = 0; i < pvt->l1->ht_len; i++) {
  ------------------
  |  Branch (186:17): [True: 3.58k, False: 14]
  ------------------
  187|  3.58k|        sp = pvt->l1->hash_table[i];
  188|  3.58k|        if (sp == NULL)
  ------------------
  |  Branch (188:13): [True: 3.58k, False: 0]
  ------------------
  189|  3.58k|            continue;
  190|      0|        do {
  191|      0|            sp_next = sp->next;
  192|      0|            if (sp->hte_type == rtpp_hte_refcnt_t) {
  ------------------
  |  Branch (192:17): [True: 0, False: 0]
  ------------------
  193|      0|                RC_DECREF((struct rtpp_refcnt *)sp->sptr);
  ------------------
  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  ------------------
  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  194|      0|            }
  195|      0|            free(sp);
  196|      0|            sp = sp_next;
  197|      0|            pvt->l1->hte_num -= 1;
  198|      0|        } while (sp != NULL);
  ------------------
  |  Branch (198:18): [True: 0, False: 0]
  ------------------
  199|      0|    }
  200|     14|    pthread_mutex_destroy(&pvt->hash_table_lock);
  201|     14|    RTPP_DBG_ASSERT(pvt->l1->hte_num == 0);
  202|       |
  203|     14|    free(pvt->l1);
  204|     14|}

main.c:rtpp_list_append:
   40|      2|{
   41|      2|    struct rtpp_type_linkable *elem;
   42|       |
   43|      2|    elem = (struct rtpp_type_linkable *)p;
   44|       |#ifdef RTPP_DEBUG
   45|       |#if 0
   46|       |    assert(RTPP_TYPE_IS_LINKABLE(elem));
   47|       |#endif
   48|       |    assert(elem->next == NULL);
   49|       |#endif
   50|      2|    if (lst->head == NULL) {
  ------------------
  |  Branch (50:9): [True: 2, False: 0]
  ------------------
   51|      2|        lst->head = lst->tail = elem;
   52|      2|    } else {
   53|      0|        lst->tail->next = elem;
   54|      0|        lst->tail = elem;
   55|      0|    }
   56|      2|    lst->len += 1;
   57|      2|}
rtpp_modman.c:rtpp_list_append:
   40|      8|{
   41|      8|    struct rtpp_type_linkable *elem;
   42|       |
   43|      8|    elem = (struct rtpp_type_linkable *)p;
   44|       |#ifdef RTPP_DEBUG
   45|       |#if 0
   46|       |    assert(RTPP_TYPE_IS_LINKABLE(elem));
   47|       |#endif
   48|       |    assert(elem->next == NULL);
   49|       |#endif
   50|      8|    if (lst->head == NULL) {
  ------------------
  |  Branch (50:9): [True: 2, False: 6]
  ------------------
   51|      2|        lst->head = lst->tail = elem;
   52|      6|    } else {
   53|      6|        lst->tail->next = elem;
   54|      6|        lst->tail = elem;
   55|      6|    }
   56|      8|    lst->len += 1;
   57|      8|}

rtpp_log_ctor:
   73|      2|{
   74|      2|    struct rtpp_log_priv *pvt;
   75|       |
   76|      2|    pvt = rtpp_rzmalloc(sizeof(struct rtpp_log_priv), PVT_RCOFFS(pvt));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
   77|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (77:9): [True: 0, False: 2]
  ------------------
   78|      0|        return (NULL);
   79|      0|    }
   80|      2|    pvt->pub.genwrite = rtpp_log_obj_write_early;
   81|      2|    pvt->pub.errwrite = rtpp_log_obj_ewrite_early;
   82|      2|    pvt->pub.setlevel = rtpp_log_obj_setlevel_early;
   83|      2|    pvt->pub.start = rtpp_log_obj_start;
   84|      2|    pvt->app = app;
   85|      2|    pvt->call_id = call_id;
   86|      2|    pvt->flags = flags;
   87|      2|    pvt->level = -1;
   88|      2|    RTPP_OBJ_DTOR_ATTACH_s(&pvt->pub, (rtpp_refcnt_dtor_t)&rtpp_log_obj_dtor,
  ------------------
  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
   89|      2|      pvt);
   90|      2|    return (&pvt->pub);
   91|      2|}
rtpp_log_obj.c:rtpp_log_obj_dtor:
   95|      2|{
   96|       |
   97|      2|    rtpp_log_fin(&pvt->pub);
   98|      2|    if (pvt->log != NULL)
  ------------------
  |  Branch (98:9): [True: 2, False: 0]
  ------------------
   99|      2|        rtpp_log_close(pvt->log);
  ------------------
  |  |   60|      2|#define	rtpp_log_close(handle) _rtpp_log_close(handle)
  ------------------
  100|      2|}
rtpp_log_obj.c:rtpp_log_obj_setlevel_early:
  117|      4|{
  118|      4|    struct rtpp_log_priv *pvt;
  119|       |
  120|       |    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      4|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  121|      4|    pvt->level = log_level;
  122|      4|}
rtpp_log_obj.c:rtpp_log_obj_start:
  192|      2|{
  193|      2|    struct rtpp_log_priv *pvt;
  194|       |
  195|      2|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  196|       |
  197|      2|    pvt->log = rtpp_log_open(cfs, pvt->app, pvt->call_id, pvt->flags);
  ------------------
  |  |   53|      2|#define	rtpp_log_open(cf, app, call_id, flag) _rtpp_log_open(cf, app, call_id);
  ------------------
  198|      2|    if (pvt->log == NULL)
  ------------------
  |  Branch (198:9): [True: 0, False: 2]
  ------------------
  199|      0|        return (-1);
  200|      2|    pvt->pub.genwrite = rtpp_log_obj_write;
  201|      2|    pvt->pub.errwrite = rtpp_log_obj_ewrite;
  202|      2|    pvt->pub.setlevel = rtpp_log_obj_setlevel;
  203|      2|    if (pvt->level != -1) {
  ------------------
  |  Branch (203:9): [True: 2, False: 0]
  ------------------
  204|      2|        rtpp_log_setlevel(pvt->log, pvt->level);
  205|      2|    }
  206|      2|    return (0);
  207|      2|}
rtpp_log_obj.c:rtpp_log_obj_write:
  127|  11.9k|{
  128|  11.9k|    va_list ap;
  129|  11.9k|    struct rtpp_log_priv *pvt;
  130|       |
  131|  11.9k|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|  11.9k|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  132|  11.9k|    va_start(ap, fmt);
  133|  11.9k|    _rtpp_log_write_va(pvt->log, level, fname, lnum, fmt, ap);
  134|       |    va_end(ap);
  135|  11.9k|    return;
  136|  11.9k|}
rtpp_log_obj.c:rtpp_log_obj_ewrite:
  141|      1|{
  142|      1|    va_list ap;
  143|      1|    struct rtpp_log_priv *pvt;
  144|       |
  145|      1|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      1|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  146|      1|    va_start(ap, fmt);
  147|      1|    _rtpp_log_ewrite_va(pvt->log, level, fname, lnum, fmt, ap);
  148|       |    va_end(ap);
  149|      1|    return;
  150|      1|}

_rtpp_log_open:
   77|      2|{
   78|      2|    const char *stritime;
   79|      2|    const char *tform;
   80|      2|    char *se;
   81|      2|    struct rtpp_log_inst *rli;
   82|      2|#ifdef RTPP_LOG_ADVANCED
   83|      2|    int facility;
   84|       |
   85|      2|    facility = cf->log_facility;
   86|      2|    if (facility == -1)
  ------------------
  |  Branch (86:9): [True: 2, False: 0]
  ------------------
   87|      2|	facility = LOG_DAEMON;
   88|       |
   89|      2|    if (cf->ropts.no_daemon == 0 && atomic_load(&syslog_async_opened) == 0) {
  ------------------
  |  Branch (89:9): [True: 0, False: 2]
  |  Branch (89:37): [True: 0, False: 0]
  ------------------
   90|      0|	if (syslog_async_init(app, facility) == 0) {
  ------------------
  |  Branch (90:6): [True: 0, False: 0]
  ------------------
   91|      0|	    atomic_store(&syslog_async_opened, 1);
   92|      0|        } else {
   93|      0|            return (NULL);
   94|      0|        }
   95|      0|    }
   96|      2|#endif
   97|      2|    rli = rtpp_zmalloc(sizeof(struct rtpp_log_inst));
   98|      2|    if (rli == NULL) {
  ------------------
  |  Branch (98:9): [True: 0, False: 2]
  ------------------
   99|      0|        return (NULL);
  100|      0|    }
  101|      2|    tform = getenv("RTPP_LOG_TFORM");
  102|      2|    if (tform != NULL && strcmp(tform, "rel") == 0) {
  ------------------
  |  Branch (102:9): [True: 0, False: 2]
  |  Branch (102:26): [True: 0, False: 0]
  ------------------
  103|      0|        stritime = getenv("RTPP_LOG_TSTART");
  104|      0|        if (stritime != NULL) {
  ------------------
  |  Branch (104:13): [True: 0, False: 0]
  ------------------
  105|      0|            rli->itime = strtod(stritime, &se);
  106|      0|        } else {
  107|      0|            if (iitime == 0.0) {
  ------------------
  |  Branch (107:17): [True: 0, False: 0]
  ------------------
  108|      0|                iitime = getdtime();
  109|      0|            }
  110|      0|            rli->itime = iitime;
  111|      0|        }
  112|      0|    }
  113|      2|    if (call_id != NULL) {
  ------------------
  |  Branch (113:9): [True: 0, False: 2]
  ------------------
  114|      0|        rli->call_id = strdup(call_id);
  115|      0|    }
  116|      2|    if (cf->log_level == -1) {
  ------------------
  |  Branch (116:9): [True: 0, False: 2]
  ------------------
  117|      0|	rli->level = (cf->ropts.no_daemon != 0) ? RTPP_LOG_DBUG : RTPP_LOG_WARN;
  ------------------
  |  |   44|      0|#define	RTPP_LOG_DBUG	LOG_DEBUG
  ------------------
              	rli->level = (cf->ropts.no_daemon != 0) ? RTPP_LOG_DBUG : RTPP_LOG_WARN;
  ------------------
  |  |   46|      0|#define	RTPP_LOG_WARN	LOG_WARNING
  ------------------
  |  Branch (117:15): [True: 0, False: 0]
  ------------------
  118|      2|    } else {
  119|      2|        rli->level = cf->log_level;
  120|      2|    }
  121|      2|    rli->format_se[0] = "%s%s:%s:%s:%d: ";
  122|      2|    rli->format_se[1] = "\n";
  123|      2|    rli->eformat_se[0] = "%s%s:%s:%s:%d: ";
  124|      2|    rli->eformat_se[1] = ": %s (%d)\n";
  125|      2|    rli->format_sl[0] = "%s:%s:%s:%d: ";
  126|       |    rli->format_sl[1] = NULL;
  127|      2|    rli->eformat_sl[0] = "%s:%s:%s:%d: ";
  128|      2|    rli->eformat_sl[1] = ": %s (%d)";
  129|      2|    rli->log_stderr = cf->no_redirect;
  130|      2|    return (rli);
  131|      2|}
_rtpp_log_close:
  135|      2|{
  136|      2|    if (rli->call_id != NULL) {
  ------------------
  |  Branch (136:9): [True: 0, False: 2]
  ------------------
  137|      0|        free(rli->call_id);
  138|      0|    }
  139|      2|    free(rli);
  140|      2|    return;
  141|      2|}
rtpp_log_str2lvl:
  174|      2|{
  175|       |
  176|      2|    if (strcasecmp(strl, "DBUG") == 0)
  ------------------
  |  Branch (176:9): [True: 0, False: 2]
  ------------------
  177|      0|	return RTPP_LOG_DBUG;
  ------------------
  |  |   44|      0|#define	RTPP_LOG_DBUG	LOG_DEBUG
  ------------------
  178|       |
  179|      2|    if (strcasecmp(strl, "INFO") == 0)
  ------------------
  |  Branch (179:9): [True: 0, False: 2]
  ------------------
  180|      0|	return RTPP_LOG_INFO;
  ------------------
  |  |   45|      0|#define	RTPP_LOG_INFO	LOG_INFO
  ------------------
  181|       |
  182|      2|    if (strcasecmp(strl, "WARN") == 0)
  ------------------
  |  Branch (182:9): [True: 0, False: 2]
  ------------------
  183|      0|	return RTPP_LOG_WARN;
  ------------------
  |  |   46|      0|#define	RTPP_LOG_WARN	LOG_WARNING
  ------------------
  184|       |
  185|      2|    if (strcasecmp(strl, "ERR") == 0)
  ------------------
  |  Branch (185:9): [True: 0, False: 2]
  ------------------
  186|      0|	return RTPP_LOG_ERR;
  ------------------
  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  ------------------
  187|       |
  188|      2|    if (strcasecmp(strl, "CRIT") == 0)
  ------------------
  |  Branch (188:9): [True: 2, False: 0]
  ------------------
  189|      2|	return RTPP_LOG_CRIT;
  ------------------
  |  |   48|      2|#define	RTPP_LOG_CRIT	LOG_CRIT
  ------------------
  190|       |
  191|      0|    return -1;
  192|      2|}
rtpp_log_setlevel:
  203|      2|{
  204|       |
  205|      2|    rli->level = level;
  206|      2|}
_rtpp_log_write_va:
  251|  11.9k|{
  252|  11.9k|    char rtpp_log_buff[2048];
  253|  11.9k|    char rtpp_time_buff[32];
  254|  11.9k|    const char *call_id;
  255|  11.9k|#ifdef RTPP_LOG_ADVANCED
  256|  11.9k|    va_list apc;
  257|  11.9k|#endif
  258|       |
  259|  11.9k|    if (check_level(rli, level) == 0)
  ------------------
  |  Branch (259:9): [True: 11.9k, False: 0]
  ------------------
  260|  11.9k|	return;
  261|       |
  262|      0|    if (rli->call_id != NULL) {
  ------------------
  |  Branch (262:9): [True: 0, False: 0]
  ------------------
  263|      0|        call_id = rli->call_id;
  264|      0|    } else {
  265|      0|        call_id = CALL_ID_NONE;
  ------------------
  |  |   57|      0|#define CALL_ID_NONE "GLOBAL"
  ------------------
  266|      0|    }
  267|       |
  268|      0|#ifdef RTPP_LOG_ADVANCED
  269|      0|    if (atomic_load(&syslog_async_opened) != 0) {
  ------------------
  |  Branch (269:9): [True: 0, False: 0]
  ------------------
  270|      0|        snprintf(rtpp_log_buff, sizeof(rtpp_log_buff), rli->format_sl[0],
  271|      0|          strlvl(level), call_id, function, lnum);
  272|      0|        va_copy(apc, ap);
  273|      0|	vsyslog_async(level, rtpp_log_buff, rli->format_sl[1], format, apc);
  274|      0|        va_end(apc);
  275|      0|        if (!rli->log_stderr)
  ------------------
  |  Branch (275:13): [True: 0, False: 0]
  ------------------
  276|      0|            return;
  277|      0|    }
  278|      0|#endif
  279|       |
  280|      0|    ftime(rli, getdtime(), rtpp_time_buff, sizeof(rtpp_time_buff));
  281|      0|    _rtpp_log_lock();
  282|      0|    fprintf(stderr, rli->format_se[0], rtpp_time_buff, strlvl(level),
  283|      0|      call_id, function, lnum);
  284|      0|    vfprintf(stderr, format, ap);
  285|      0|    fprintf(stderr, "%s", rli->format_se[1]);
  286|       |    fflush(stderr);
  287|      0|    _rtpp_log_unlock();
  288|      0|}
_rtpp_log_ewrite_va:
  293|      1|{
  294|      1|    char rtpp_log_buff[2048];
  295|      1|    char rtpp_time_buff[32];
  296|      1|    const char *call_id;
  297|      1|#ifdef RTPP_LOG_ADVANCED
  298|      1|    va_list apc;
  299|      1|    char *post;
  300|      1|#endif
  301|       |    
  302|      1|    if (check_level(rli, level) == 0)
  ------------------
  |  Branch (302:9): [True: 1, False: 0]
  ------------------
  303|      1|	return;
  304|       |
  305|      0|    if (rli->call_id != NULL) {
  ------------------
  |  Branch (305:9): [True: 0, False: 0]
  ------------------
  306|      0|        call_id = rli->call_id;
  307|      0|    } else {
  308|      0|        call_id = CALL_ID_NONE;
  ------------------
  |  |   57|      0|#define CALL_ID_NONE "GLOBAL"
  ------------------
  309|      0|    }
  310|       |
  311|      0|#ifdef RTPP_LOG_ADVANCED
  312|      0|    if (atomic_load(&syslog_async_opened) != 0) {
  ------------------
  |  Branch (312:9): [True: 0, False: 0]
  ------------------
  313|      0|        int nch, m;
  314|       |
  315|      0|        m = sizeof(rtpp_log_buff);
  316|      0|        nch = snprintf(rtpp_log_buff, m, rli->eformat_sl[0],
  317|      0|          strlvl(level), call_id, function, lnum);
  318|      0|        nch += 1;
  319|      0|        post = " TRUNCATED! ";
  320|      0|        if (nch < m) {
  ------------------
  |  Branch (320:13): [True: 0, False: 0]
  ------------------
  321|      0|            post = rtpp_log_buff + nch;
  322|      0|            snprintf(post, m - nch, rli->eformat_sl[1],
  323|      0|              strerror(errno), errno);
  324|      0|        }
  325|      0|        va_copy(apc, ap);
  326|      0|	vsyslog_async(level, rtpp_log_buff, post, format, apc);
  327|      0|        va_end(apc);
  328|      0|#if !defined(RTPP_DEBUG)
  329|      0|	return;
  330|      0|#endif
  331|      0|    }
  332|      0|#endif
  333|      0|    ftime(rli, getdtime(), rtpp_time_buff, sizeof(rtpp_time_buff));
  334|      0|    _rtpp_log_lock();
  335|      0|    fprintf(stderr, rli->eformat_se[0], rtpp_time_buff, strlvl(level), call_id,
  336|      0|      function, lnum);
  337|      0|    vfprintf(stderr, format, ap);
  338|      0|    fprintf(stderr, rli->eformat_se[1], strerror(errno), errno);
  339|       |    fflush(stderr);
  340|      0|    _rtpp_log_unlock();
  341|      0|}
rtpp_log_stand.c:check_level:
  196|  11.9k|{
  197|       |
  198|  11.9k|    return (level <= rli->level);
  199|  11.9k|}

rtpp_zmalloc:
   63|     80|{
   64|     80|    void *rval;
   65|       |
   66|     80|#if !defined(RTPP_CHECK_LEAKS)
   67|     80|    rval = rtpp_aligned_malloc(msize, rtpp_refcnt_oalign);
   68|       |#else
   69|       |    rval = rtpp_memdeb_malloc(msize, memdeb_p, mlp);
   70|       |#endif
   71|     80|    if (rval != NULL) {
  ------------------
  |  Branch (71:9): [True: 80, False: 0]
  ------------------
   72|     80|        memset(rval, '\0', msize);
   73|     80|    }
   74|     80|    return (rval);
   75|     80|}
rtpp_rzmalloc:
   86|     81|{
   87|     81|    void *rval;
   88|     81|    struct rtpp_refcnt *rcnt;
   89|     81|    size_t pad_size, asize, alignment;
   90|     81|    void *rco;
   91|       |
   92|     81|    RTPP_DBG_ASSERT(msize >= rcntp_offs + sizeof(struct rtpp_refcnt *));
   93|     81|    alignment = rtpp_refcnt_oalign;
   94|     81|    RTPP_DBG_ASSERT((alignment & (alignment - 1)) == 0);
   95|     81|    pad_size = (alignment - (msize & (alignment - 1))) & (alignment - 1);
   96|     81|    asize = msize + pad_size + rtpp_refcnt_osize;
   97|     81|#if !defined(RTPP_CHECK_LEAKS)
   98|     81|    rval = rtpp_aligned_malloc(asize, alignment);
   99|       |#else
  100|       |    rval = rtpp_memdeb_malloc(asize, memdeb_p, mlp);
  101|       |#endif
  102|     81|    if (rval == NULL) {
  ------------------
  |  Branch (102:9): [True: 0, False: 81]
  ------------------
  103|      0|        return (NULL);
  104|      0|    }
  105|     81|    memset(rval, '\0', asize);
  106|     81|    rco = (char *)rval + msize + pad_size;
  107|     81|    rcnt = rtpp_refcnt_ctor_pa(rco, rval);
  108|     81|    *PpP(rval, rcntp_offs, struct rtpp_refcnt **) = rcnt;
  ------------------
  |  |   77|     81|#define PpP(p1, p2, type) (type)(((char *)p1) + ((size_t)p2))
  ------------------
  109|       |
  110|     81|    return (rval);
  111|     81|}
rtpp_rmalloc:
  120|     20|{
  121|     20|    void *rval;
  122|     20|    struct rtpp_refcnt *rcnt;
  123|     20|    size_t pad_size, asize, alignment;
  124|     20|    void *rco;
  125|       |
  126|     20|    RTPP_DBG_ASSERT(msize >= rcntp_offs + sizeof(struct rtpp_refcnt *));
  127|     20|    alignment = rtpp_refcnt_oalign;
  128|     20|    RTPP_DBG_ASSERT((alignment & (alignment - 1)) == 0);
  129|     20|    pad_size = (alignment - (msize & (alignment - 1))) & (alignment - 1);
  130|     20|    asize = msize + pad_size + rtpp_refcnt_osize;
  131|     20|#if !defined(RTPP_CHECK_LEAKS)
  132|     20|    rval = rtpp_aligned_malloc(asize, alignment);
  133|       |#else
  134|       |    rval = rtpp_memdeb_malloc(asize, memdeb_p, mlp);
  135|       |#endif
  136|     20|    if (rval == NULL) {
  ------------------
  |  Branch (136:9): [True: 0, False: 20]
  ------------------
  137|      0|        return (NULL);
  138|      0|    }
  139|     20|    rco = (char *)rval + msize + pad_size;
  140|     20|    memset(rco, '\0', rtpp_refcnt_osize);
  141|     20|    rcnt = rtpp_refcnt_ctor_pa(rco, rval);
  142|     20|    *PpP(rval, rcntp_offs, struct rtpp_refcnt **) = rcnt;
  ------------------
  |  |   77|     20|#define PpP(p1, p2, type) (type)(((char *)p1) + ((size_t)p2))
  ------------------
  143|       |
  144|     20|    return (rval);
  145|     20|}
rtpp_sys_malloc:
  152|      2|{
  153|      2|    return (malloc(size));
  154|      2|}
rtpp_mallocs.c:rtpp_aligned_malloc:
   43|    181|{
   44|    181|    void *rval;
   45|       |
   46|    181|    if (alignment < sizeof(void *)) {
  ------------------
  |  Branch (46:9): [True: 0, False: 181]
  ------------------
   47|      0|        alignment = sizeof(void *);
   48|      0|    }
   49|    181|    RTPP_DBG_ASSERT((alignment & (alignment - 1)) == 0);
   50|    181|    if (posix_memalign(&rval, alignment, msize) != 0) {
  ------------------
  |  Branch (50:9): [True: 0, False: 181]
  ------------------
   51|      0|        return (NULL);
   52|      0|    }
   53|    181|    return (rval);
   54|    181|}

rtpp_modman_ctor:
   62|      2|{
   63|      2|    struct rtpp_modman_priv *pvt;
   64|       |
   65|      2|    pvt = rtpp_rzmalloc(sizeof(struct rtpp_modman_priv), PVT_RCOFFS(pvt));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
   66|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (66:9): [True: 0, False: 2]
  ------------------
   67|      0|        goto e0;
   68|      0|    }
   69|      2|    pvt->pub.insert = rtpp_modman_insert;
   70|      2|    pvt->pub.startall = rtpp_modman_startall;
   71|      2|    pvt->pub.stopall = rtpp_modman_stopall;
   72|      2|    pvt->pub.get_next_id = rtpp_modman_get_next_id;
   73|      2|    pvt->pub.do_acct = rtpp_modman_do_acct;
   74|      2|    pvt->pub.get_ul_subc_h = rtpp_modman_get_ul_subc_h;
   75|      2|    RTPP_OBJ_DTOR_ATTACH_s(&pvt->pub, (rtpp_refcnt_dtor_t)&rtpp_modman_dtor,
  ------------------
  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
   76|      2|      pvt);
   77|      2|    return ((&pvt->pub));
   78|       |
   79|      0|e0:
   80|       |    return (NULL);
   81|      2|}
rtpp_modman.c:rtpp_modman_dtor:
   85|      2|{
   86|       |
   87|      2|    rtpp_modman_fin(&(pvt->pub));
   88|      2|    rtpp_modman_stopall(&(pvt->pub));
   89|      2|}
rtpp_modman.c:rtpp_modman_insert:
   93|      8|{
   94|      8|    struct rtpp_modman_priv *pvt;
   95|       |
   96|      8|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      8|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
   97|      8|    mif->ids->module_idx = self->count.total;
   98|      8|    rtpp_list_append(&pvt->all, mif);
   99|      8|    self->count.total++;
  100|      8|    if (mif->has.do_acct)
  ------------------
  |  Branch (100:9): [True: 2, False: 6]
  ------------------
  101|      2|        self->count.sess_acct++;
  102|      8|}
rtpp_modman.c:rtpp_modman_startall:
  107|      2|{
  108|      2|    struct rtpp_module_if *mif;
  109|      2|    struct rtpp_modman_priv *pvt;
  110|       |
  111|      2|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  112|     10|    for (mif = RTPP_LIST_HEAD(&pvt->all); mif != NULL; mif = RTPP_ITER_NEXT(mif)) {
  ------------------
  |  |   60|      2|#define RTPP_LIST_HEAD(lst)  (void *)((lst)->head)
  ------------------
                  for (mif = RTPP_LIST_HEAD(&pvt->all); mif != NULL; mif = RTPP_ITER_NEXT(mif)) {
  ------------------
  |  |   63|      8|#define RTPP_ITER_NEXT(stlp)     ((void *)((stlp)->t.next))
  ------------------
  |  Branch (112:43): [True: 8, False: 2]
  ------------------
  113|      8|        if (CALL_METHOD(mif, construct, cfp) != 0) {
  ------------------
  |  |   83|      8|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  |  Branch (113:13): [True: 0, False: 8]
  ------------------
  114|      0|            goto failed;
  115|      0|        }
  116|      8|        if (CALL_METHOD(mif, start, cfp) != 0) {
  ------------------
  |  |   83|      8|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  |  Branch (116:13): [True: 0, False: 8]
  ------------------
  117|      0|            goto failed;
  118|      0|        }
  119|      8|    }
  120|      2|    return (0);
  121|      0|failed:
  122|      0|    *failedmod = mif->descr->name;
  123|      0|    return (-1);
  124|      2|}
rtpp_modman.c:rtpp_modman_stopall:
  128|      4|{
  129|      4|    struct rtpp_module_if *mif, *tmp;
  130|      4|    struct rtpp_modman_priv *pvt;
  131|       |
  132|      4|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      4|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  133|     12|    for (mif = RTPP_LIST_HEAD(&pvt->all); mif != NULL; mif = tmp) {
  ------------------
  |  |   60|      4|#define RTPP_LIST_HEAD(lst)  (void *)((lst)->head)
  ------------------
  |  Branch (133:43): [True: 8, False: 4]
  ------------------
  134|      8|        tmp = RTPP_ITER_NEXT(mif);
  ------------------
  |  |   63|      8|#define RTPP_ITER_NEXT(stlp)     ((void *)((stlp)->t.next))
  ------------------
  135|      8|        CALL_METHOD(mif, kaput);
  ------------------
  |  |   83|      8|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  136|      8|        RTPP_OBJ_DECREF(mif);
  ------------------
  |  |  174|      8|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      8|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      8|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      8|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      8|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      8|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      8|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      8|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      8|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      8|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      8|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      8|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      8|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      8|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      8|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      8|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      8|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      8|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      8|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      8|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      8|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      8|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      8|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      8|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      8|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      8|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      8|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      8|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      8|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      8|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      8|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      8|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      8|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      8|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      8|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      8|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      8|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      8|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      8|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      8|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  137|      8|    }
  138|       |    RTPP_LIST_RESET(&pvt->all);
  ------------------
  |  |   59|      4|#define RTPP_LIST_RESET(lst) {(lst)->head = (lst)->tail = NULL; (lst)->len = 0;}
  ------------------
  139|      4|}
rtpp_modman.c:rtpp_modman_get_next_id:
  143|      8|{
  144|      8|    unsigned int ri;
  145|      8|    struct rtpp_modman_priv *pvt;
  146|       |
  147|      8|    ri = 1;
  148|      8|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      8|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  149|      8|    for (struct rtpp_module_if *tmp = RTPP_LIST_HEAD(&pvt->all);
  ------------------
  |  |   60|      8|#define RTPP_LIST_HEAD(lst)  (void *)((lst)->head)
  ------------------
  150|     20|      tmp != NULL; tmp = RTPP_ITER_NEXT(tmp)) {
  ------------------
  |  |   63|     12|#define RTPP_ITER_NEXT(stlp)     ((void *)((stlp)->t.next))
  ------------------
  |  Branch (150:7): [True: 12, False: 8]
  ------------------
  151|     12|        if (tmp->descr->module_id != module_id)
  ------------------
  |  Branch (151:13): [True: 12, False: 0]
  ------------------
  152|     12|            continue;
  153|      0|        ri += 1;
  154|      0|    }
  155|      8|    return (ri);
  156|      8|}

rtpp_module_if_ctor:
  149|     11|{
  150|     11|    struct rtpp_module_if_priv *pvt;
  151|     11|    size_t msize = sizeof(struct rtpp_module_if_priv);
  152|     11|    int plen = strlen(mpath) + 1;
  153|       |
  154|     11|    msize += plen;
  155|     11|    pvt = rtpp_rzmalloc(msize, PVT_RCOFFS(pvt));
  ------------------
  |  |  165|     11|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
  156|     11|    if (pvt == NULL) {
  ------------------
  |  Branch (156:9): [True: 0, False: 11]
  ------------------
  157|      0|        goto e0;
  158|      0|    }
  159|     11|    memcpy(pvt->mpath, mpath, plen);
  160|     11|    pvt->pub.load = &rtpp_mif_load;
  161|     11|    pvt->pub.construct = &rtpp_mif_construct;
  162|     11|    pvt->pub.do_acct = &rtpp_mif_do_acct;
  163|     11|    pvt->pub.do_acct_rtcp = &rtpp_mif_do_acct_rtcp;
  164|     11|    pvt->pub.start = &rtpp_mif_start;
  165|     11|    pvt->pub.get_mconf = &rtpp_mif_get_mconf;
  166|     11|    pvt->pub.ul_subc_handle = &rtpp_mif_ul_subc_handle;
  167|     11|    pvt->pub.kaput = &rtpp_mif_kaput;
  168|     11|    return ((&pvt->pub));
  169|       |
  170|      0|e0:
  171|       |    return (NULL);
  172|     11|}
rtpp_module_if.c:rtpp_mif_load:
  241|     11|{
  242|     11|    struct rtpp_module_if_priv *pvt;
  243|     11|    const struct rtpp_minfo *mip = NULL;
  244|       |
  245|     11|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|     11|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  246|       |
  247|     11|    if (rtpp_use_smodules) {
  ------------------
  |  Branch (247:9): [True: 11, False: 0]
  ------------------
  248|     11|        mip = rtpp_static_modules_lookup(pvt->mpath);
  249|     11|    } else {
  250|      0|        mip = rtpp_modules_lookup(self, pvt->mpath, log);
  251|      0|    }
  252|     11|    if (mip == NULL)
  ------------------
  |  Branch (252:9): [True: 3, False: 8]
  ------------------
  253|      3|        goto e1;
  254|       |
  255|      8|    if (!MI_VER_CHCK(mip) || mip->fn == NULL) {
  ------------------
  |  |  207|     16|#define MI_VER_CHCK(sptr) ( \
  |  |  208|     16|  (sptr)->descr.ver.rev == MODULE_API_REVISION && \
  |  |  ------------------
  |  |  |  |   30|     16|#define MODULE_API_REVISION 13
  |  |  ------------------
  |  |  |  Branch (208:3): [True: 8, False: 0]
  |  |  ------------------
  |  |  209|      8|  (sptr)->descr.ver.mi_size == sizeof(struct rtpp_minfo) && \
  |  |  ------------------
  |  |  |  Branch (209:3): [True: 8, False: 0]
  |  |  ------------------
  |  |  210|     16|  strcmp((sptr)->descr.ver.build, RTPP_SW_VERSION) == 0)
  |  |  ------------------
  |  |  |  |   10|      8|#define RTPP_SW_VERSION (PACKAGE_VERSION "." VERSION_GIT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  217|      8|#define PACKAGE_VERSION "3.2.0"
  |  |  |  |  ------------------
  |  |  |  |               #define RTPP_SW_VERSION (PACKAGE_VERSION "." VERSION_GIT)
  |  |  |  |  ------------------
  |  |  |  |  |  |  245|      8|#define VERSION_GIT "52c03a10"
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (210:3): [True: 8, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (255:30): [True: 0, False: 8]
  ------------------
  256|      0|        RTPP_LOG(log, RTPP_LOG_ERR, "incompatible API version in the %s, "
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  256|      0|        RTPP_LOG(log, RTPP_LOG_ERR, "incompatible API version in the %s, "
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  257|      0|          "consider recompiling the module", pvt->mpath);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  257|      0|          "consider recompiling the module", pvt->mpath);
  258|      0|        goto e1;
  259|      0|    }
  260|       |
  261|      8|    size_t csize = mip->lower - mip->upper;
  262|      8|    memcpy(pvt->mi.upper, mip->upper, csize);
  263|       |
  264|      8|    if (pvt->mi.fn->_malloc == NULL) {
  ------------------
  |  Branch (264:9): [True: 8, False: 0]
  ------------------
  265|       |        /* Don't use sizeof(mip_model) here, it has a variable-size junk
  266|       |         * attached to it! */
  267|      8|        memcpy(pvt->mi.fn, &mip_model, sizeof(struct rtpp_minfo_fset));
  268|      8|    }
  269|       |
  270|      8|    RTPP_OBJ_BORROW_s(&(pvt->pub), log);
  ------------------
  |  |  199|      8|    do { /* Attach first, then increase, the "lob: counter might have */ \
  |  |  200|      8|         /* certain optimizations for the count == 1 case             */ \
  |  |  201|      8|        RTPP_OBJ_DTOR_ATTACH_RC_s((bob), (lob)->rcnt); \
  |  |  ------------------
  |  |  |  |  181|      8|#define RTPP_OBJ_DTOR_ATTACH_RC_s(obj, rc) CALL_SMETHOD((obj)->rcnt, attach_rc_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      8|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      8|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      8|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      8|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      8|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      8|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      8|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      8|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      8|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      8|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      8|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      8|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      8|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      8|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      8|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      8|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      8|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      8|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      8|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      8|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      8|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      8|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      8|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      8|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      8|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      8|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      8|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      8|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      8|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      8|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      8|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      8|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      8|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      8|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  182|      8|  (rc))
  |  |  ------------------
  |  |  202|      8|        RTPP_OBJ_INCREF(lob); \
  |  |  ------------------
  |  |  |  |  173|      8|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  |  |  ------------------
  |  |  |  |  |  |   82|      8|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   79|      8|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      8|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  156|      8|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      8|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      8|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      8|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      8|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      8|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      8|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      8|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      8|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      8|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      8|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      8|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      8|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      8|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      8|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      8|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      8|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      8|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      8|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      8|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      8|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      8|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      8|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      8|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      8|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      8|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      8|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      8|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      8|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      8|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      8|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      8|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      8|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      8|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      8|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      8|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  203|      8|    } while (0)
  |  |  ------------------
  |  |  |  Branch (203:14): [Folded, False: 8]
  |  |  ------------------
  ------------------
  271|      8|    pvt->mi.log = log;
  272|       |
  273|       |#if RTPP_CHECK_LEAKS
  274|       |    if (pvt->mi.memdeb_p == NULL) {
  275|       |        RTPP_LOG(log, RTPP_LOG_ERR, "memdeb pointer is NULL in the %s, "
  276|       |          "trying to load non-debug module?", pvt->mpath);
  277|       |        goto e1;
  278|       |    }
  279|       |    void *memdeb_p = rtpp_memdeb_init(false);
  280|       |    if (memdeb_p == NULL) {
  281|       |        goto e1;
  282|       |    }
  283|       |    rtpp_memdeb_setlog(memdeb_p, log);
  284|       |    rtpp_memdeb_setname(memdeb_p, pvt->mi.descr.name);
  285|       |    *pvt->mi.memdeb_p = pvt->mi.memdeb = memdeb_p;
  286|       |    RTPP_OBJ_DTOR_ATTACH_s(&(pvt->pub), rtpp_mif_memdeb_dtor, &(pvt->mi));
  287|       |#else
  288|      8|    if (pvt->mi.memdeb_p != NULL) {
  ------------------
  |  Branch (288:9): [True: 0, False: 8]
  ------------------
  289|      0|        RTPP_LOG(log, RTPP_LOG_ERR, "memdeb pointer is not NULL in the %s, "
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  289|      0|        RTPP_LOG(log, RTPP_LOG_ERR, "memdeb pointer is not NULL in the %s, "
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  290|      0|          "trying to load debug module?", pvt->mpath);
  291|      0|        goto e1;
  292|      0|    }
  293|      8|#endif
  294|      8|    pvt->mi.wthr.sigterm = rtpp_wi_malloc_sgnl(SIGTERM, NULL, 0);
  295|      8|    if (pvt->mi.wthr.sigterm == NULL) {
  ------------------
  |  Branch (295:9): [True: 0, False: 8]
  ------------------
  296|      0|        goto e1;
  297|      0|    }
  298|      8|    int qsize = RTPQ_SMALL_CB_LEN;
  ------------------
  |  |   74|      8|#define RTPQ_SMALL_CB_LEN 16
  ------------------
  299|      8|    if (pvt->mi.wapi != NULL && pvt->mi.wapi->queue_size > 0)
  ------------------
  |  Branch (299:9): [True: 6, False: 2]
  |  Branch (299:33): [True: 6, False: 0]
  ------------------
  300|      6|        qsize = pvt->mi.wapi->queue_size;
  301|      8|    pvt->mi.wthr.mod_q = rtpp_queue_init(qsize, "rtpp_module_if(%s)",
  302|      8|      pvt->mi.descr.name);
  303|      8|    if (pvt->mi.wthr.mod_q == NULL) {
  ------------------
  |  Branch (303:9): [True: 0, False: 8]
  ------------------
  304|      0|        goto e2;
  305|      0|    }
  306|      8|    rtpp_queue_setmaxlen(pvt->mi.wthr.mod_q, RTPQ_SMALL_CB_LEN * 8);
  ------------------
  |  |   74|      8|#define RTPQ_SMALL_CB_LEN 16
  ------------------
  307|      8|    if (pvt->mi.aapi != NULL) {
  ------------------
  |  Branch (307:9): [True: 2, False: 6]
  ------------------
  308|      2|        if (pvt->mi.aapi->on_session_end.func != NULL &&
  ------------------
  |  Branch (308:13): [True: 2, False: 0]
  ------------------
  309|      2|          pvt->mi.aapi->on_session_end.argsize != rtpp_acct_OSIZE()) {
  ------------------
  |  |   61|      2|#define rtpp_acct_OSIZE() (sizeof(struct rtpp_acct) + sizeof(struct rtpps_pcount) + \
  |  |   62|      2|  sizeof(struct rtpps_pcount) + sizeof(struct rtpp_pcnts_strm) + \
  |  |   63|      2|  sizeof(struct rtpp_pcnts_strm) + sizeof(struct rtpp_pcnts_strm) + \
  |  |   64|      2|  sizeof(struct rtpp_pcnts_strm) + sizeof(struct rtpa_stats) + \
  |  |   65|      2|  sizeof(struct rtpa_stats) + sizeof(struct rtpa_stats_jitter) + \
  |  |   66|      2|  sizeof(struct rtpa_stats_jitter))
  ------------------
  |  Branch (309:11): [True: 0, False: 2]
  ------------------
  310|      0|            RTPP_LOG(log, RTPP_LOG_ERR, "incompatible API version in the %s, "
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  310|      0|            RTPP_LOG(log, RTPP_LOG_ERR, "incompatible API version in the %s, "
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  311|      0|              "consider recompiling the module", pvt->mpath);
  312|      0|            goto e3;
  313|      0|        }
  314|      2|        if (pvt->mi.aapi->on_rtcp_rcvd.func != NULL &&
  ------------------
  |  Branch (314:13): [True: 0, False: 2]
  ------------------
  315|      0|          pvt->mi.aapi->on_rtcp_rcvd.argsize != rtpp_acct_rtcp_OSIZE()) {
  ------------------
  |  |   43|      0|#define rtpp_acct_rtcp_OSIZE() (sizeof(struct rtpp_acct_rtcp) + \
  |  |   44|      0|  sizeof(struct rtpa_stats_jitter))
  ------------------
  |  Branch (315:11): [True: 0, False: 0]
  ------------------
  316|      0|            RTPP_LOG(log, RTPP_LOG_ERR, "incompatible API version in the %s, "
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  316|      0|            RTPP_LOG(log, RTPP_LOG_ERR, "incompatible API version in the %s, "
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  317|      0|              "consider recompiling the module", pvt->mpath);
  318|      0|            goto e3;
  319|      0|        }
  320|      2|        self->has.do_acct = (pvt->mi.aapi->on_session_end.func != NULL);
  321|      2|    }
  322|      8|    self->has.ul_subc_h = (pvt->mi.capi != NULL &&
  ------------------
  |  Branch (322:28): [True: 6, False: 2]
  ------------------
  323|      6|      pvt->mi.capi->ul_subc_handle != NULL);
  ------------------
  |  Branch (323:7): [True: 6, False: 0]
  ------------------
  324|      8|    pvt->ids.instance_id = CALL_METHOD(cfsp->modules_cf, get_next_id,
  ------------------
  |  |   83|      8|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  ------------------
  325|      8|      pvt->mi.descr.module_id);
  326|      8|    pvt->mi.ids = self->ids = &pvt->ids;
  327|      8|    pvt->mi.super_rcnt = self->rcnt;
  328|      8|    self->descr = &(pvt->mi.descr);
  329|      8|    pvt->sessions_wrt = cfsp->sessions_wrt;
  330|      8|    return (0);
  331|      0|e3:
  332|      0|    rtpp_queue_destroy(pvt->mi.wthr.mod_q);
  333|      0|    pvt->mi.wthr.mod_q = NULL;
  334|       |#if RTPP_CHECK_LEAKS
  335|       |    if (rtpp_memdeb_dumpstats(pvt->mi.memdeb, 1) != 0) {
  336|       |        RTPP_LOG(log, RTPP_LOG_ERR, "module '%s' leaked memory in the failed "
  337|       |          "constructor", pvt->mi.descr.name);
  338|       |    }
  339|       |#endif
  340|      0|e2:
  341|      0|    RTPP_OBJ_DECREF(pvt->mi.wthr.sigterm);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  342|      0|    pvt->mi.wthr.sigterm = NULL;
  343|      3|e1:
  344|      3|    return (-1);
  345|      0|}
rtpp_module_if.c:rtpp_mif_kaput:
  364|      8|{
  365|      8|    struct rtpp_module_if_priv *pvt;
  366|       |
  367|      8|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      8|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  368|       |
  369|      8|    RTPP_LOG(pvt->mi.log, RTPP_LOG_DBUG, "Shutting down %s",
  ------------------
  |  |   56|      8|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|     16|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      8|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  369|      8|    RTPP_LOG(pvt->mi.log, RTPP_LOG_DBUG, "Shutting down %s",
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   44|      8|#define	RTPP_LOG_DBUG	LOG_DEBUG
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  370|      8|      pvt->mi.descr.name);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      8|  __LINE__, ## args)
  ------------------
  370|      8|      pvt->mi.descr.name);
  371|      8|    rtpp_module_if_fin(&(pvt->pub));
  372|      8|    if (pvt->started != 0) {
  ------------------
  |  Branch (372:9): [True: 8, False: 0]
  ------------------
  373|       |        /* First, stop the worker thread */
  374|      8|        RTPP_OBJ_INCREF(pvt->mi.wthr.sigterm);
  ------------------
  |  |  173|      8|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   82|      8|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      8|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      8|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      8|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      8|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      8|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      8|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      8|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      8|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      8|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      8|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      8|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      8|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      8|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      8|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      8|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      8|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      8|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      8|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      8|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      8|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      8|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      8|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      8|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      8|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      8|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      8|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      8|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      8|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      8|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      8|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      8|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      8|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      8|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      8|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      8|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      8|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      8|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      8|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  375|     16|        for (int r = -1; r < 0;) {
  ------------------
  |  Branch (375:26): [True: 8, False: 8]
  ------------------
  376|      8|            r = rtpp_queue_put_item(pvt->mi.wthr.sigterm,
  377|      8|              pvt->mi.wthr.mod_q);
  378|      8|        }
  379|       |        /* Then wait for worker thread to terminate */
  380|      8|        pthread_join(pvt->mi.wthr.thread_id, NULL);
  381|      8|    }
  382|      8|    rtpp_queue_destroy(pvt->mi.wthr.mod_q);
  383|       |    /* Then run module destructor (if any) */
  384|      8|    if (pvt->mi.proc.dtor != NULL && pvt->mpvt != NULL) {
  ------------------
  |  Branch (384:9): [True: 8, False: 0]
  |  Branch (384:38): [True: 8, False: 0]
  ------------------
  385|      8|        pvt->mi.proc.dtor(pvt->mpvt);
  386|      8|    }
  387|      8|    RTPP_OBJ_DECREF(pvt->mi.wthr.sigterm);
  ------------------
  |  |  174|      8|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      8|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      8|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      8|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      8|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      8|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      8|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      8|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      8|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      8|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      8|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      8|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      8|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      8|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      8|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      8|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      8|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      8|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      8|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      8|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      8|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      8|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      8|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      8|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      8|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      8|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      8|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      8|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      8|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      8|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      8|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      8|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      8|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      8|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      8|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      8|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      8|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      8|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      8|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      8|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  388|      8|}
rtpp_module_if.c:rtpp_mif_construct:
  480|      8|{
  481|      8|    struct rtpp_module_if_priv *pvt;
  482|       |
  483|      8|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      8|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  484|      8|    if (pvt->mi.proc.ctor != NULL) {
  ------------------
  |  Branch (484:9): [True: 8, False: 0]
  ------------------
  485|      8|        pvt->mpvt = pvt->mi.proc.ctor(cfsp, &pvt->mi);
  486|      8|        if (pvt->mpvt == NULL) {
  ------------------
  |  Branch (486:13): [True: 0, False: 8]
  ------------------
  487|      0|            RTPP_LOG(pvt->mi.log, RTPP_LOG_ERR, "module '%s' failed to initialize",
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  487|      0|            RTPP_LOG(pvt->mi.log, RTPP_LOG_ERR, "module '%s' failed to initialize",
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  488|      0|              pvt->mi.descr.name);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  488|      0|              pvt->mi.descr.name);
  489|      0|            return (-1);
  490|      0|        }
  491|      8|    }
  492|      8|    if (pvt->mi.proc.config != NULL) {
  ------------------
  |  Branch (492:9): [True: 2, False: 6]
  ------------------
  493|      2|        if (pvt->mi.proc.config(pvt->mpvt, pvt->mcp) != 0) {
  ------------------
  |  Branch (493:13): [True: 0, False: 2]
  ------------------
  494|      0|            RTPP_LOG(pvt->mi.log, RTPP_LOG_ERR, "%p->config() method has failed: %s",
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  494|      0|            RTPP_LOG(pvt->mi.log, RTPP_LOG_ERR, "%p->config() method has failed: %s",
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  495|      0|              self, pvt->mi.descr.name);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  495|      0|              self, pvt->mi.descr.name);
  496|      0|            if (pvt->mi.proc.dtor != NULL) {
  ------------------
  |  Branch (496:17): [True: 0, False: 0]
  ------------------
  497|      0|                pvt->mi.proc.dtor(pvt->mpvt);
  498|      0|            }
  499|      0|            pvt->mpvt = NULL;
  500|      0|            return (-1);
  501|      0|        }
  502|      2|    }
  503|      8|    return (0);
  504|      8|}
rtpp_module_if.c:rtpp_mif_start:
  508|      8|{
  509|      8|    struct rtpp_module_if_priv *pvt;
  510|       |
  511|      8|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      8|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  512|      8|    if (pvt->mi.aapi == NULL && pvt->mi.wapi == NULL)
  ------------------
  |  Branch (512:9): [True: 6, False: 2]
  |  Branch (512:33): [True: 0, False: 6]
  ------------------
  513|      0|        return (0);
  514|      8|    if (pvt->mi.aapi != NULL) {
  ------------------
  |  Branch (514:9): [True: 2, False: 6]
  ------------------
  515|      2|        if (pvt->mi.aapi->on_rtcp_rcvd.func != NULL) {
  ------------------
  |  Branch (515:13): [True: 0, False: 2]
  ------------------
  516|      0|            struct packet_processor_if acct_rtcp_poi = {
  517|      0|                .descr = "acct_rtcp",
  518|      0|                .taste = packet_is_rtcp,
  519|      0|                .enqueue = acct_rtcp_enqueue,
  520|      0|                .arg = pvt
  521|      0|            };
  522|      0|            if (CALL_SMETHOD(cfsp->pproc_manager, reg, PPROC_ORD_WITNESS, &acct_rtcp_poi) < 0)
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (522:17): [True: 0, False: 0]
  ------------------
  523|      0|                return (-1);
  524|      0|        }
  525|      2|        if (pthread_create(&pvt->mi.wthr.thread_id, NULL,
  ------------------
  |  Branch (525:13): [True: 0, False: 2]
  ------------------
  526|      2|          PTH_CB(&rtpp_mif_run_acct), pvt) != 0) {
  ------------------
  |  |  476|      2|#define PTH_CB(x) ((void *(*)(void *))(x))
  ------------------
  527|      0|            return (-1);
  528|      0|        }
  529|      6|    } else {
  530|      6|        pvt->mi.wthr.mpvt = pvt->mpvt;
  531|      6|        if (pthread_create(&pvt->mi.wthr.thread_id, NULL,
  ------------------
  |  Branch (531:13): [True: 0, False: 6]
  ------------------
  532|      6|          PTH_CB(pvt->mi.wapi->main_thread), &pvt->mi.wthr) != 0) {
  ------------------
  |  |  476|      6|#define PTH_CB(x) ((void *(*)(void *))(x))
  ------------------
  533|      0|            return (-1);
  534|      0|        }
  535|      6|    }
  536|      8|#if HAVE_PTHREAD_SETNAME_NP
  537|      8|    (void)pthread_setname_np(pvt->mi.wthr.thread_id, pvt->mi.descr.name);
  538|      8|#endif
  539|      8|    pvt->started = 1;
  540|      8|    return (0);
  541|      8|}
rtpp_module_if.c:rtpp_mif_run_acct:
  392|      2|{
  393|      2|    struct rtpp_module_if_priv *pvt;
  394|      2|    struct rtpp_wi *wi;
  395|      2|    int signum;
  396|      2|    const char *aname;
  397|      2|    const struct rtpp_acct_handlers *aap;
  398|       |
  399|      2|    pvt = (struct rtpp_module_if_priv *)argp;
  400|      2|    aap = pvt->mi.aapi;
  401|      2|    for (;;) {
  402|      2|        wi = rtpp_queue_get_item(pvt->mi.wthr.mod_q, 0);
  403|      2|        if (rtpp_wi_get_type(wi) == RTPP_WI_TYPE_SGNL) {
  ------------------
  |  |   36|      2|#define rtpp_wi_get_type(wip) ((wip)->wi_type)
  ------------------
  |  Branch (403:13): [True: 2, False: 0]
  ------------------
  404|      2|            signum = rtpp_wi_sgnl_get_signum(wi);
  405|      2|            RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  406|      2|            if (signum == SIGTERM) {
  ------------------
  |  Branch (406:17): [True: 2, False: 0]
  ------------------
  407|      2|                break;
  408|      2|            }
  409|      0|            continue;
  410|      2|        }
  411|      0|        aname = rtpp_wi_apis_getname(wi);
  412|      0|        if (aname == do_acct_aname) {
  ------------------
  |  Branch (412:13): [True: 0, False: 0]
  ------------------
  413|      0|            struct rtpp_acct *rap;
  414|       |
  415|      0|            rtpp_wi_apis_getnamearg(wi, (void **)&rap, sizeof(rap));
  416|      0|            if (aap->on_session_end.func != NULL)
  ------------------
  |  Branch (416:17): [True: 0, False: 0]
  ------------------
  417|      0|                aap->on_session_end.func(pvt->mpvt, rap);
  418|      0|            RTPP_OBJ_DECREF(rap);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  419|      0|        }
  420|      0|        if (aname == do_acct_rtcp_aname) {
  ------------------
  |  Branch (420:13): [True: 0, False: 0]
  ------------------
  421|      0|            struct rtpp_acct_rtcp *rapr;
  422|       |
  423|      0|            rtpp_wi_apis_getnamearg(wi, (void **)&rapr, sizeof(rapr));
  424|      0|            if (aap->on_rtcp_rcvd.func != NULL)
  ------------------
  |  Branch (424:17): [True: 0, False: 0]
  ------------------
  425|      0|                aap->on_rtcp_rcvd.func(pvt->mpvt, rapr);
  426|      0|            RTPP_OBJ_DECREF(rapr);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  427|      0|        }
  428|      0|        RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  429|      0|    }
  430|      2|}
rtpp_module_if.c:rtpp_mif_get_mconf:
  546|      8|{
  547|      8|    struct rtpp_module_if_priv *pvt;
  548|      8|    struct rtpp_module_conf *rval;
  549|       |
  550|      8|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      8|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  551|      8|    RTPP_DBG_ASSERT(pvt->mcp == NULL);
  552|      8|    if (pvt->mi.proc.get_mconf == NULL) {
  ------------------
  |  Branch (552:9): [True: 6, False: 2]
  ------------------
  553|      6|        *mcpp = NULL;
  554|      6|        return (0);
  555|      6|    }
  556|      2|    rval = pvt->mi.proc.get_mconf();
  557|      2|    if (rval == NULL) {
  ------------------
  |  Branch (557:9): [True: 0, False: 2]
  ------------------
  558|      0|        return (-1);
  559|      0|    }
  560|      2|    if (noconf != 0 && rval->allow_noconf == 0) {
  ------------------
  |  Branch (560:9): [True: 2, False: 0]
  |  Branch (560:24): [True: 0, False: 2]
  ------------------
  561|      0|        RTPP_LOG(pvt->mi.log, RTPP_LOG_ERR, "module %s requires configuration",
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  561|      0|        RTPP_LOG(pvt->mi.log, RTPP_LOG_ERR, "module %s requires configuration",
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  562|      0|          pvt->mi.descr.name);
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  562|      0|          pvt->mi.descr.name);
  563|      0|        RTPP_OBJ_DECREF(rval);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  564|      0|        return (-1);
  565|      0|    }
  566|      2|    RTPP_OBJ_BORROW_s(&(pvt->pub), rval);
  ------------------
  |  |  199|      2|    do { /* Attach first, then increase, the "lob: counter might have */ \
  |  |  200|      2|         /* certain optimizations for the count == 1 case             */ \
  |  |  201|      2|        RTPP_OBJ_DTOR_ATTACH_RC_s((bob), (lob)->rcnt); \
  |  |  ------------------
  |  |  |  |  181|      2|#define RTPP_OBJ_DTOR_ATTACH_RC_s(obj, rc) CALL_SMETHOD((obj)->rcnt, attach_rc_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  182|      2|  (rc))
  |  |  ------------------
  |  |  202|      2|        RTPP_OBJ_INCREF(lob); \
  |  |  ------------------
  |  |  |  |  173|      2|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  |  |  ------------------
  |  |  |  |  |  |   82|      2|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  203|      2|    } while (0)
  |  |  ------------------
  |  |  |  Branch (203:14): [Folded, False: 2]
  |  |  ------------------
  ------------------
  567|      2|    *mcpp = pvt->mcp = rval;
  568|      2|    return (0);
  569|      2|}

rtpp_static_modules_lookup:
   39|     19|{
   40|     19|    const struct rtpp_minfo **tp;
   41|       |
   42|     63|    SET_FOREACH(tp, rtpp_modules) {
  ------------------
  |  |  118|     66|	for (pvar = SET_BEGIN(set); pvar < SET_LIMIT(set); pvar++)
  |  |  ------------------
  |  |  |  |  106|     19|	(&__RTPP_CONCAT(__start_set_,set))
  |  |  |  |  ------------------
  |  |  |  |  |  |   35|     19|#define __RTPP_CONCAT(x,y)   __RTPP_CONCAT1(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   34|     19|#define __RTPP_CONCAT1(x,y)  x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               	for (pvar = SET_BEGIN(set); pvar < SET_LIMIT(set); pvar++)
  |  |  ------------------
  |  |  |  |  108|     66|	(&__RTPP_CONCAT(__stop_set_,set))
  |  |  |  |  ------------------
  |  |  |  |  |  |   35|     66|#define __RTPP_CONCAT(x,y)   __RTPP_CONCAT1(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   34|     66|#define __RTPP_CONCAT1(x,y)  x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (118:30): [True: 63, False: 3]
  |  |  ------------------
  ------------------
   43|     63|        const struct rtpp_minfo *mp = *tp;
   44|     63|        if (strcmp(mp->descr.name, name) == 0) {
  ------------------
  |  Branch (44:13): [True: 16, False: 47]
  ------------------
   45|     16|            return (mp);
   46|     16|        }
   47|     63|    }
   48|      3|    return (NULL);
   49|     19|}

rtpp_anetio_pump:
  220|      2|{
  221|       |
  222|      2|    rtpp_queue_pump(netio_cf->args[0].out_q);
  223|      2|}
rtpp_anetio_pump_q:
  227|      4|{
  228|       |
  229|      4|    rtpp_queue_pump(sender->out_q);
  230|      4|}
rtpp_anetio_pick_sender:
  273|      4|{
  274|      4|    int min_len, i, l;
  275|      4|    struct sthread_args *sender;
  276|       |
  277|      4|    sender = &netio_cf->args[0];
  278|      4|    min_len = rtpp_queue_get_length(sender->out_q);
  279|      4|    if (min_len == 0) {
  ------------------
  |  Branch (279:9): [True: 4, False: 0]
  ------------------
  280|      4|        return (sender);
  281|      4|    }
  282|      0|    for (i = 1; i < SEND_THREADS; i++) {
  ------------------
  |  |   79|      0|#define SEND_THREADS 1
  ------------------
  |  Branch (282:17): [True: 0, False: 0]
  ------------------
  283|      0|        l = rtpp_queue_get_length(netio_cf->args[i].out_q);
  284|      0|        if (l < min_len) {
  ------------------
  |  Branch (284:13): [True: 0, False: 0]
  ------------------
  285|      0|            sender = &netio_cf->args[i];
  286|      0|            min_len = l;
  287|      0|        }
  288|      0|    }
  289|      0|    return (sender);
  290|      4|}
rtpp_netio_async_init:
  294|      2|{
  295|      2|    struct rtpp_anetio_cf *netio_cf;
  296|      2|    int i, ri;
  297|       |
  298|      2|    netio_cf = rtpp_zmalloc(sizeof(*netio_cf));
  299|      2|    if (netio_cf == NULL)
  ------------------
  |  Branch (299:9): [True: 0, False: 2]
  ------------------
  300|      0|        return (NULL);
  301|       |
  302|      4|    for (i = 0; i < SEND_THREADS; i++) {
  ------------------
  |  |   79|      4|#define SEND_THREADS 1
  ------------------
  |  Branch (302:17): [True: 2, False: 2]
  ------------------
  303|      2|        netio_cf->args[i].out_q = rtpp_queue_init(RTPQ_LARGE_CB_LEN, "RTPP->NET%.2d", i);
  ------------------
  |  |   76|      2|#define RTPQ_LARGE_CB_LEN 1024
  ------------------
  304|      2|        if (netio_cf->args[i].out_q == NULL) {
  ------------------
  |  Branch (304:13): [True: 0, False: 2]
  ------------------
  305|      0|            for (ri = i - 1; ri >= 0; ri--) {
  ------------------
  |  Branch (305:30): [True: 0, False: 0]
  ------------------
  306|      0|                rtpp_queue_destroy(netio_cf->args[ri].out_q);
  307|      0|                RTPP_OBJ_DECREF(netio_cf->args[ri].glog);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  308|      0|            }
  309|      0|            goto e0;
  310|      0|        }
  311|      2|        rtpp_queue_setqlen(netio_cf->args[i].out_q, qlen);
  312|      2|        RTPP_OBJ_INCREF(cfsp->glog);
  ------------------
  |  |  173|      2|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   82|      2|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  313|      2|        netio_cf->args[i].glog = cfsp->glog;
  314|      2|        netio_cf->args[i].dmode = cfsp->dmode;
  315|       |#if RTPP_DEBUG_timers
  316|       |        recfilter_init(&netio_cf->args[i].average_load, 0.9, 0.0, 0);
  317|       |#endif
  318|      2|    }
  319|       |
  320|      4|    for (i = 0; i < SEND_THREADS; i++) {
  ------------------
  |  |   79|      4|#define SEND_THREADS 1
  ------------------
  |  Branch (320:17): [True: 2, False: 2]
  ------------------
  321|      2|        netio_cf->args[i].sigterm = rtpp_wi_malloc_sgnl(SIGTERM, NULL, 0);
  322|      2|        if (netio_cf->args[i].sigterm == NULL) {
  ------------------
  |  Branch (322:13): [True: 0, False: 2]
  ------------------
  323|      0|            for (ri = i - 1; ri >= 0; ri--) {
  ------------------
  |  Branch (323:30): [True: 0, False: 0]
  ------------------
  324|      0|                RTPP_OBJ_DECREF(netio_cf->args[ri].sigterm);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  325|      0|            }
  326|      0|            goto e1;
  327|      0|        }
  328|      2|    }
  329|       |
  330|      4|    for (i = 0; i < SEND_THREADS; i++) {
  ------------------
  |  |   79|      4|#define SEND_THREADS 1
  ------------------
  |  Branch (330:17): [True: 2, False: 2]
  ------------------
  331|      2|        if (pthread_create(&(netio_cf->thread_id[i]), NULL, (void *(*)(void *))&rtpp_anetio_sthread, &netio_cf->args[i]) != 0) {
  ------------------
  |  Branch (331:13): [True: 0, False: 2]
  ------------------
  332|      0|             for (ri = i - 1; ri >= 0; ri--) {
  ------------------
  |  Branch (332:31): [True: 0, False: 0]
  ------------------
  333|      0|                 rtpp_queue_put_item(netio_cf->args[ri].sigterm, netio_cf->args[ri].out_q);
  334|      0|                 pthread_join(netio_cf->thread_id[ri], NULL);
  335|      0|             }
  336|      0|             for (ri = i; ri < SEND_THREADS; ri++) {
  ------------------
  |  |   79|      0|#define SEND_THREADS 1
  ------------------
  |  Branch (336:27): [True: 0, False: 0]
  ------------------
  337|      0|                 RTPP_OBJ_DECREF(netio_cf->args[ri].sigterm);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  338|      0|             }
  339|      0|             goto e1;
  340|      0|        }
  341|      2|#if HAVE_PTHREAD_SETNAME_NP
  342|      2|        (void)pthread_setname_np(netio_cf->thread_id[i], "rtpp_anetio_sender");
  343|      2|#endif
  344|      2|    }
  345|       |
  346|      2|    return (netio_cf);
  347|       |
  348|       |#if 0
  349|       |e2:
  350|       |    for (i = 0; i < SEND_THREADS; i++) {
  351|       |        RTPP_OBJ_DECREF(netio_cf->args[i].sigterm);
  352|       |    }
  353|       |#endif
  354|      0|e1:
  355|      0|    for (i = 0; i < SEND_THREADS; i++) {
  ------------------
  |  |   79|      0|#define SEND_THREADS 1
  ------------------
  |  Branch (355:17): [True: 0, False: 0]
  ------------------
  356|      0|        rtpp_queue_destroy(netio_cf->args[i].out_q);
  357|      0|        RTPP_OBJ_DECREF(netio_cf->args[i].glog);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  358|      0|    }
  359|      0|e0:
  360|      0|    free(netio_cf);
  361|       |    return (NULL);
  362|      0|}
rtpp_netio_async_destroy:
  366|      2|{
  367|      2|    int i;
  368|       |
  369|      4|    for (i = 0; i < SEND_THREADS; i++) {
  ------------------
  |  |   79|      4|#define SEND_THREADS 1
  ------------------
  |  Branch (369:17): [True: 2, False: 2]
  ------------------
  370|      2|        rtpp_queue_put_item(netio_cf->args[i].sigterm, netio_cf->args[i].out_q);
  371|      2|    }
  372|      4|    for (i = 0; i < SEND_THREADS; i++) {
  ------------------
  |  |   79|      4|#define SEND_THREADS 1
  ------------------
  |  Branch (372:17): [True: 2, False: 2]
  ------------------
  373|      2|        pthread_join(netio_cf->thread_id[i], NULL);
  374|      2|        rtpp_queue_destroy(netio_cf->args[i].out_q);
  375|      2|        RTPP_OBJ_DECREF(netio_cf->args[i].glog);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  376|      2|    }
  377|      2|    free(netio_cf);
  378|      2|}
rtpp_netio_async.c:rtpp_anetio_sthread:
   91|      2|{
   92|      2|    int n, nsend, i, send_errno, nretry;
   93|      2|    struct rtpp_wi *wi, *wis[RTPQ_LARGE_CB_LEN / 8];
   94|      2|    struct rtpp_wi_pvt *_wipp;
   95|      2|    const struct rtpp_wi_sendargs *wipp;
   96|       |#if RTPP_DEBUG_timers
   97|       |    double tp[3], runtime, sleeptime;
   98|       |    long run_n;
   99|       |
  100|       |    runtime = sleeptime = 0.0;
  101|       |    run_n = 0;
  102|       |    tp[0] = getdtime();
  103|       |#endif
  104|      2|    for (;;) {
  105|      2|        nsend = rtpp_queue_get_items(args->out_q, wis, RTPP_ANETIO_BATCH_LEN, 0);
  ------------------
  |  |   87|      2|#define RTPP_ANETIO_BATCH_LEN (RTPQ_LARGE_CB_LEN / 8)
  |  |  ------------------
  |  |  |  |   76|      2|#define RTPQ_LARGE_CB_LEN 1024
  |  |  ------------------
  ------------------
  106|       |#if RTPP_DEBUG_timers
  107|       |        tp[1] = getdtime();
  108|       |#endif
  109|       |
  110|      2|        for (i = 0; i < nsend; i++) {
  ------------------
  |  Branch (110:21): [True: 2, False: 0]
  ------------------
  111|      2|	    wi = wis[i];
  112|      2|            PUB2PVT(wi, _wipp);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  113|      2|            if (wi->wi_type == RTPP_WI_TYPE_SGNL) {
  ------------------
  |  Branch (113:17): [True: 2, False: 0]
  ------------------
  114|      2|                RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  115|      2|                goto out;
  116|      2|            }
  117|      0|            wipp = &_wipp->sendargs;
  118|      0|            int ncopies = wipp->nsend;
  119|      0|            nretry = 0;
  120|      0|            do {
  121|      0|                n = sendto(wipp->sock, wipp->msg, wipp->msg_len, wipp->flags,
  122|      0|                  wipp->sendto, wipp->tolen);
  123|      0|                send_errno = (n < 0) ? errno : 0;
  ------------------
  |  Branch (123:30): [True: 0, False: 0]
  ------------------
  124|       |#if RTPP_DEBUG_netio >= 1
  125|       |                if (wipp->debug != 0) {
  126|       |                    char daddr[MAX_AP_STRBUF];
  127|       |
  128|       |                    addrport2char_r(wipp->sendto, daddr, sizeof(daddr), ':');
  129|       |                    if (n < 0) {
  130|       |                        RTPP_ELOG(wipp->log, RTPP_LOG_DBUG,
  131|       |                          "sendto(%d, %p, %lld, %d, %p (%s), %d) = %d",
  132|       |                          wipp->sock, wipp->msg, (long long)wipp->msg_len, wipp->flags,
  133|       |                          wipp->sendto, daddr, wipp->tolen, n);
  134|       |                    } else if (n < wipp->msg_len) {
  135|       |                        RTPP_LOG(wipp->log, RTPP_LOG_DBUG,
  136|       |                          "sendto(%d, %p, %lld, %d, %p (%s), %d) = %d: short write",
  137|       |                          wipp->sock, wipp->msg, (long long)wipp->msg_len, wipp->flags,
  138|       |                          wipp->sendto, daddr, wipp->tolen, n);
  139|       |#if RTPP_DEBUG_netio >= 2
  140|       |                    } else {
  141|       |                        RTPP_LOG(wipp->log, RTPP_LOG_DBUG,
  142|       |                          "sendto(%d, %p, %d, %d, %p (%s), %d) = %d",
  143|       |                          wipp->sock, wipp->msg, wipp->msg_len, wipp->flags, wipp->sendto, daddr,
  144|       |                          wipp->tolen, n);
  145|       |#endif
  146|       |                    }
  147|       |                }
  148|       |#endif
  149|      0|                if (n >= 0) {
  ------------------
  |  Branch (149:21): [True: 0, False: 0]
  ------------------
  150|      0|                    ncopies--;
  151|      0|                } else {
  152|       |                    /* "EPERM" is Linux thing, yield and retry */
  153|      0|                    if ((send_errno == EPERM || send_errno == ENOBUFS)
  ------------------
  |  Branch (153:26): [True: 0, False: 0]
  |  Branch (153:49): [True: 0, False: 0]
  ------------------
  154|      0|                      && nretry < RTPP_ANETIO_MAX_RETRY) {
  ------------------
  |  |   86|      0|#define RTPP_ANETIO_MAX_RETRY 3
  ------------------
  |  Branch (154:26): [True: 0, False: 0]
  ------------------
  155|      0|                        sched_yield();
  156|      0|                        nretry++;
  157|      0|                    } else {
  158|      0|                        break;
  159|      0|                    }
  160|      0|                }
  161|      0|            } while (ncopies > 0);
  ------------------
  |  Branch (161:22): [True: 0, False: 0]
  ------------------
  162|      0|            RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  163|      0|        }
  164|       |#if RTPP_DEBUG_timers
  165|       |        sleeptime += tp[1] - tp[0];
  166|       |        tp[0] = getdtime();
  167|       |        runtime += tp[0] - tp[1];
  168|       |        if ((run_n % 10000) == 0) {
  169|       |            RTPP_LOG(args->glog, RTPP_LOG_DBUG, "rtpp_anetio_sthread(%p): run %ld aload = %f filtered = %f", \
  170|       |              args, run_n, runtime / (runtime + sleeptime), args->average_load.lastval);
  171|       |        }
  172|       |        if (runtime + sleeptime > 1.0) {
  173|       |            recfilter_apply(&args->average_load, runtime / (runtime + sleeptime));
  174|       |            runtime = sleeptime = 0.0;
  175|       |        }
  176|       |        run_n += 1;
  177|       |#endif
  178|      2|    }
  179|      2|out:
  180|      2|    return;
  181|      2|}

resolve:
  225|      4|{
  226|      4|    int n;
  227|      4|    struct addrinfo hints, *res;
  228|       |
  229|      4|    memset(&hints, 0, sizeof(hints));
  230|      4|    hints.ai_flags = flags;	     /* We create listening sockets */
  231|      4|    hints.ai_family = pf;	       /* Protocol family */
  232|      4|    hints.ai_socktype = SOCK_DGRAM;     /* UDP */
  233|       |
  234|      4|    n = getaddrinfo(host, servname, &hints, &res);
  235|      4|    if (n == 0) {
  ------------------
  |  Branch (235:9): [True: 4, False: 0]
  ------------------
  236|      4|	RTPP_DBG_ASSERT(res->ai_family == pf);
  237|       |	/* Use the first socket address returned */
  238|      4|	memcpy(ia, res->ai_addr, res->ai_addrlen);
  239|      4|	freeaddrinfo(res);
  240|      4|        return 0;
  241|      4|    }
  242|      0|    if ((flags & AI_NUMERICHOST) == 0)
  ------------------
  |  Branch (242:9): [True: 0, False: 0]
  ------------------
  243|      0|        return n;
  244|      0|    void *dst = (pf == AF_INET) ? (void *)&(satosin(ia)->sin_addr) :
  ------------------
  |  |   79|      0|#define	satosin(sa)	((struct sockaddr_in *)(sa))
  ------------------
  |  Branch (244:17): [True: 0, False: 0]
  ------------------
  245|      0|      (void *)&(satosin6(ia)->sin6_addr);
  ------------------
  |  |   82|      0|#define	satosin6(sa)	((struct sockaddr_in6 *)(sa))
  ------------------
  246|      0|    if (inet_pton(pf, host, dst) != 1)
  ------------------
  |  Branch (246:9): [True: 0, False: 0]
  ------------------
  247|      0|        return n;
  248|      0|    int port = 0;
  249|      0|    if (servname != NULL) {
  ------------------
  |  Branch (249:9): [True: 0, False: 0]
  ------------------
  250|      0|        if (atoi_saferange(servname, &port, 1, 65535) != ATOI_OK)
  ------------------
  |  Branch (250:13): [True: 0, False: 0]
  ------------------
  251|      0|            return n;
  252|      0|    }
  253|      0|    ia->sa_family = pf;
  254|      0|    setport(ia, port);
  255|      0|    return 0;
  256|      0|}
is_wildcard:
  379|      2|{
  380|       |
  381|      2|    if (strcmp(hostnm, "*") == 0)
  ------------------
  |  Branch (381:9): [True: 2, False: 0]
  ------------------
  382|      2|        return 1;
  383|      0|    if ((pf == AF_INET) && (strcmp(hostnm, "0.0.0.0") == 0))
  ------------------
  |  Branch (383:9): [True: 0, False: 0]
  |  Branch (383:28): [True: 0, False: 0]
  ------------------
  384|      0|        return 1;
  385|      0|    if ((pf == AF_INET6) && (strcmp(hostnm, "::") == 0))
  ------------------
  |  Branch (385:9): [True: 0, False: 0]
  |  Branch (385:29): [True: 0, False: 0]
  ------------------
  386|      0|        return 1;
  387|      0|    return 0;
  388|      0|}

rtpp_nofile_ctor:
   64|      2|{
   65|      2|    struct rtpp_nofile_pvt *priv;
   66|       |
   67|      2|    priv = rtpp_zmalloc(sizeof(*priv));
   68|      2|    if (priv == NULL)
  ------------------
  |  Branch (68:9): [True: 0, False: 2]
  ------------------
   69|      0|        return (NULL);
   70|      2|    if (getrlimit(RLIMIT_NOFILE, &(priv->limit_storage)) != 0)
  ------------------
  |  Branch (70:9): [True: 0, False: 2]
  ------------------
   71|      0|        err(1, "getrlimit");
   72|      2|    atomic_init(&(priv->pub.warned), 0);
   73|      2|    priv->pub.dtor = rtpp_nofile_dtor;
   74|      2|    priv->pub.limit = &(priv->limit_storage);
   75|      2|    return (&(priv->pub));
   76|      2|}
rtpp_nofile.c:rtpp_nofile_dtor:
   55|      2|{
   56|      2|    struct rtpp_nofile_pvt *priv;
   57|       |
   58|       |    PUB2PVT(pub, priv);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
   59|      2|    free(priv);
   60|      2|}

rtpp_notify_ctor:
  112|      2|{
  113|      2|    struct rtpp_notify_priv *pvt;
  114|       |
  115|      2|    pvt = rtpp_rzmalloc(sizeof(struct rtpp_notify_priv), PVT_RCOFFS(pvt));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
  116|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (116:9): [True: 0, False: 2]
  ------------------
  117|      0|        goto e0;
  118|      0|    }
  119|      2|    pvt->nqueue = rtpp_queue_init(RTPQ_SMALL_CB_LEN, "rtpp_notify");
  ------------------
  |  |   74|      2|#define RTPQ_SMALL_CB_LEN 16
  ------------------
  120|      2|    if (pvt->nqueue == NULL) {
  ------------------
  |  Branch (120:9): [True: 0, False: 2]
  ------------------
  121|      0|        goto e1;
  122|      0|    }
  123|       |
  124|       |    /* Pre-allocate sigterm, so that we don't have any malloc() in dtor() */
  125|      2|    pvt->sigterm = rtpp_wi_malloc_sgnl(SIGTERM, NULL, 0);
  126|      2|    if (pvt->sigterm == NULL) {
  ------------------
  |  Branch (126:9): [True: 0, False: 2]
  ------------------
  127|      0|        goto e2;
  128|      0|    }
  129|       |
  130|      2|    if (pthread_create(&pvt->thread_id, NULL, (void *(*)(void *))&rtpp_notify_queue_run, pvt) != 0) {
  ------------------
  |  Branch (130:9): [True: 0, False: 2]
  ------------------
  131|      0|        goto e3;
  132|      0|    }
  133|      2|#if HAVE_PTHREAD_SETNAME_NP
  134|      2|    (void)pthread_setname_np(pvt->thread_id, "rtpp_notify_queue");
  135|      2|#endif
  136|       |
  137|      2|    RTPP_OBJ_INCREF(glog);
  ------------------
  |  |  173|      2|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   82|      2|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  138|      2|    pvt->glog = glog;
  139|      2|    pvt->pub.schedule = &rtpp_notify_schedule;
  140|       |
  141|      2|    RTPP_OBJ_DTOR_ATTACH_s(&pvt->pub, (rtpp_refcnt_dtor_t)&rtpp_notify_dtor,
  ------------------
  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
  142|      2|      pvt);
  143|      2|    return (&pvt->pub);
  144|       |
  145|      0|e3:
  146|      0|    RTPP_OBJ_DECREF(pvt->sigterm);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  147|      0|e2:
  148|      0|    rtpp_queue_destroy(pvt->nqueue);
  149|      0|e1:
  150|      0|    RTPP_OBJ_DECREF(&(pvt->pub));
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  151|      0|e0:
  152|       |    return (NULL);
  153|      0|}
rtpp_notify.c:rtpp_notify_queue_run:
   87|      2|{
   88|      2|    struct rtpp_wi *wi;
   89|      2|    struct rtpp_notify_wi *wi_data;
   90|      2|    struct rtpp_notify_priv *pvt;
   91|       |
   92|      2|    pvt = (struct rtpp_notify_priv *)arg;
   93|      2|    for (;;) {
   94|      2|        wi = rtpp_queue_get_item(pvt->nqueue, 0);
   95|      2|        if (rtpp_wi_get_type(wi) == RTPP_WI_TYPE_SGNL) {
  ------------------
  |  |   36|      2|#define rtpp_wi_get_type(wip) ((wip)->wi_type)
  ------------------
  |  Branch (95:13): [True: 2, False: 0]
  ------------------
   96|      2|            RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   97|      2|            break;
   98|      2|        }
   99|      0|        wi_data = rtpp_wi_data_get_ptr(wi, sizeof(struct rtpp_notify_wi), 0);
  100|       |
  101|       |        /* main work here */
  102|      0|        do_notification(wi_data, 3);
  103|       |
  104|       |        /* deallocate wi */
  105|      0|        RTPP_OBJ_DECREF(wi_data->glog);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  106|      0|        RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  107|      0|    }
  108|      2|}
rtpp_notify.c:rtpp_notify_dtor:
  157|      2|{
  158|       |
  159|      2|    rtpp_queue_put_item(pvt->sigterm, pvt->nqueue);
  160|      2|    pthread_join(pvt->thread_id, NULL);
  161|      2|    rtpp_queue_destroy(pvt->nqueue);
  162|      2|    RTPP_OBJ_DECREF(pvt->glog);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  163|      2|}

rtpp_pearson_shuffle:
   37|      2|{
   38|      2|    int i;
   39|      2|    uint8_t rval;
   40|       |
   41|      2|    memset(rpp->rand_table, '\0', sizeof(rpp->rand_table));
   42|    512|    for (i = 1; i < 256; i++) {
  ------------------
  |  Branch (42:17): [True: 510, False: 2]
  ------------------
   43|  1.92k|        do {
   44|  1.92k|            rval = random() & 0xff;
   45|  1.92k|        } while (rpp->rand_table[rval] != 0);
  ------------------
  |  Branch (45:18): [True: 1.41k, False: 510]
  ------------------
   46|    510|        rpp->rand_table[rval] = i;
   47|    510|    }
   48|      2|}
rtpp_pearson_hash8:
   52|    110|{
   53|    110|    uint8_t res;
   54|       |
   55|  1.52k|    for (res = rpp->rand_table[0]; bp[0] != '\0' && bp != ep; bp++) {
  ------------------
  |  Branch (55:36): [True: 1.41k, False: 110]
  |  Branch (55:53): [True: 1.41k, False: 0]
  ------------------
   56|  1.41k|        res = rpp->rand_table[res ^ (uint8_t)(bp[0])];
   57|  1.41k|    }
   58|    110|    return res;
   59|    110|}

rtpp_pearson_perfect_ctor:
   80|      2|{
   81|      2|    struct rtpp_pearson_perfect_priv *rppp;
   82|      2|    struct rtpp_pearson_perfect *pub;
   83|       |
   84|      2|    rppp = rtpp_rzmalloc(sizeof(struct rtpp_pearson_perfect_priv), PVT_RCOFFS(rppp));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
   85|      2|    if (rppp == NULL) {
  ------------------
  |  Branch (85:9): [True: 0, False: 2]
  ------------------
   86|      0|        return (NULL);
   87|      0|    }
   88|      2|    rppp->gv = gv;
   89|      2|    rppp->gv_arg = gv_arg;
   90|      2|    pub = &rppp->pub;
   91|       |
   92|      2|    compute_perfect_hash(rppp);
   93|      2|    PUBINST_FININIT(pub, rppp, rtpp_pearson_perfect_dtor);
  ------------------
  |  |   76|      2|    RTPP_OBJ_DTOR_ATTACH_s((pub_inst), (rtpp_refcnt_dtor_t)(dtor), \
  |  |  ------------------
  |  |  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |   77|      2|      pvt_inst);
  ------------------
   94|      2|    return(pub);
   95|      2|}
rtpp_pearson_perfect.c:rtpp_pearson_perfect_hash:
   99|     52|{
  100|     52|    int rval;
  101|     52|    const char *sval;
  102|     52|    struct rtpp_pearson_perfect_priv *rppp;
  103|       |
  104|     52|    PUB2PVT(self, rppp);
  ------------------
  |  |  169|     52|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  105|     52|    rval = (int)(rppp->omap_table[rtpp_pearson_hash8(&rppp->rp, isval, NULL)]) - 1;
  106|     52|    if (rval == -1) {
  ------------------
  |  Branch (106:9): [True: 0, False: 52]
  ------------------
  107|      0|        return (-1);
  108|      0|    }
  109|     52|    sval = rppp->gv(rppp->gv_arg, rval);
  110|     52|    if (strcmp(isval, sval) != 0) {
  ------------------
  |  Branch (110:9): [True: 0, False: 52]
  ------------------
  111|      0|        return (-1);
  112|      0|    }
  113|     52|    return (rval);
  114|     52|}
rtpp_pearson_perfect.c:compute_perfect_hash:
   59|      2|{
   60|      2|    int i;
   61|      2|    const char *sval;
   62|      2|    uint8_t hval;
   63|       |
   64|      2|again:
   65|      2|    rtpp_pearson_shuffle(&rppp->rp);
   66|      2|    memset(rppp->omap_table, '\0', sizeof(rppp->omap_table));
   67|       |
   68|     60|    for (i = 0; rppp->gv(rppp->gv_arg, i) != NULL; i++) {
  ------------------
  |  Branch (68:17): [True: 58, False: 2]
  ------------------
   69|     58|        sval = rppp->gv(rppp->gv_arg, i);
   70|     58|        hval = rtpp_pearson_hash8(&rppp->rp, sval, NULL);
   71|     58|        if (rppp->omap_table[hval] != 0) {
  ------------------
  |  Branch (71:13): [True: 0, False: 58]
  ------------------
   72|      0|            goto again;
   73|      0|        }
   74|     58|        rppp->omap_table[hval] = i + 1;
   75|     58|    }
   76|      2|}
rtpp_pearson_perfect.c:rtpp_pearson_perfect_dtor:
  118|      2|{
  119|       |
  120|      2|    rtpp_pearson_perfect_fin(&rppp->pub);
  121|      2|}

rtpp_port_table_ctor:
   56|      4|{
   57|      4|    struct rtpp_ptbl_priv *pvt;
   58|      4|    int i, j;
   59|      4|    uint16_t portnum;
   60|       |
   61|      4|    pvt = rtpp_rzmalloc(sizeof(struct rtpp_ptbl_priv), PVT_RCOFFS(pvt));
  ------------------
  |  |  165|      4|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
   62|      4|    if (pvt == NULL) {
  ------------------
  |  Branch (62:9): [True: 0, False: 4]
  ------------------
   63|      0|        goto e0;
   64|      0|    }
   65|      4|    if (pthread_mutex_init(&pvt->lock, NULL) != 0) {
  ------------------
  |  Branch (65:9): [True: 0, False: 4]
  ------------------
   66|      0|        goto e1;
   67|      0|    }
   68|      4|    pvt->port_table_len = ((port_max - port_min) / 2) + 1;
   69|      4|    pvt->port_table = malloc(sizeof(uint16_t) * pvt->port_table_len);
   70|      4|    if (pvt->port_table == NULL) {
  ------------------
  |  Branch (70:9): [True: 0, False: 4]
  ------------------
   71|      0|        goto e2;
   72|      0|    }
   73|      4|    pvt->port_ctl = port_ctl;
   74|       |
   75|       |    /* Generate linear table */
   76|      4|    portnum = port_min;
   77|  60.0k|    for (i = 0; i < pvt->port_table_len; i += 1) {
  ------------------
  |  Branch (77:17): [True: 60.0k, False: 4]
  ------------------
   78|  60.0k|        pvt->port_table[i] = portnum;
   79|  60.0k|        portnum += 2;
   80|  60.0k|    }
   81|      4|    if (seq_ports == 0) {
  ------------------
  |  Branch (81:9): [True: 4, False: 0]
  ------------------
   82|       |        /* Shuffle elements ramdomly */
   83|  60.0k|        for (i = 0; i < pvt->port_table_len; i += 1) {
  ------------------
  |  Branch (83:21): [True: 60.0k, False: 4]
  ------------------
   84|  60.0k|            j = random() % pvt->port_table_len;
   85|  60.0k|            portnum = pvt->port_table[i];
   86|  60.0k|            pvt->port_table[i] = pvt->port_table[j];
   87|  60.0k|            pvt->port_table[j] = portnum;
   88|  60.0k|        }
   89|      4|    }
   90|      4|    pvt->seq_ports = seq_ports;
   91|       |    /* Set the last used element to be the last element */
   92|      4|    pvt->port_table_idx = pvt->port_table_len - 1;
   93|       |
   94|      4|    pvt->pub.get_port = &rtpp_ptbl_get_port;
   95|      4|    RTPP_OBJ_DTOR_ATTACH_s(&pvt->pub, (rtpp_refcnt_dtor_t)&rtpp_ptbl_dtor,
  ------------------
  |  |  177|      4|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      4|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      4|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
   96|      4|      pvt);
   97|      4|    return ((&pvt->pub));
   98|       |
   99|      0|e2:
  100|      0|    pthread_mutex_destroy(&pvt->lock);
  101|      0|e1:
  102|      0|    RTPP_OBJ_DECREF(&(pvt->pub));
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  103|      0|e0:
  104|       |    return (NULL);
  105|      0|}
rtpp_port_table.c:rtpp_ptbl_dtor:
  109|      4|{
  110|       |
  111|      4|    rtpp_port_table_fin(&pvt->pub);
  112|      4|    pthread_mutex_destroy(&pvt->lock);
  113|      4|    free(pvt->port_table);
  114|      4|}

process_rtp_only:
  112|      4|{
  113|      4|    int readyfd, ndrained;
  114|      4|    struct rtpp_session *sp;
  115|      4|    struct rtpp_stream *stp;
  116|      4|    struct rtpp_socket *iskt;
  117|       |
  118|      8|    for (readyfd = 0; readyfd < nready; readyfd++) {
  ------------------
  |  Branch (118:23): [True: 4, False: 4]
  ------------------
  119|      4|        struct epoll_event *ep = &events[readyfd];
  120|      4|        if ((ep->events & EPOLLIN) == 0)
  ------------------
  |  Branch (120:13): [True: 0, False: 4]
  ------------------
  121|      0|            continue;
  122|      4|        if (ep->data.ptr == NULL) {
  ------------------
  |  Branch (122:13): [True: 4, False: 0]
  ------------------
  123|      4|            int nudge_data, rsize;
  124|       |
  125|      4|            do {
  126|      4|                rsize = read(ptbl->wakefd[0], &nudge_data, sizeof(nudge_data));
  127|      4|            } while (rsize == -1 && errno == EINTR);
  ------------------
  |  Branch (127:22): [True: 0, False: 4]
  |  Branch (127:37): [True: 0, False: 0]
  ------------------
  128|      4|            RTPP_DBG_ASSERT(rsize == sizeof(nudge_data) || rsize == 0);
  129|      4|            if (rsize > 0 && rsize == sizeof(nudge_data)) {
  ------------------
  |  Branch (129:17): [True: 0, False: 4]
  |  Branch (129:30): [True: 0, False: 0]
  ------------------
  130|      0|                atomic_store(&ptbl->served_i_wake, nudge_data);
  131|      0|            }
  132|      4|            continue;
  133|      4|        }
  134|      0|        iskt = ep->data.ptr;
  135|      0|        sp = CALL_SMETHOD(iskt, get_session_link);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|      0|        stp = CALL_SMETHOD(iskt, get_stream_link);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  137|      0|        if (stp == NULL) {
  ------------------
  |  Branch (137:13): [True: 0, False: 0]
  ------------------
  138|      0|            uint64_t stuid = CALL_SMETHOD(iskt, get_stuid);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  139|       |
  140|      0|            stp = CALL_SMETHOD(ptbl->streams_wrt, get_by_idx, stuid);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  141|      0|            if (stp == NULL) {
  ------------------
  |  Branch (141:17): [True: 0, False: 0]
  ------------------
  142|      0|                if (sp != NULL)
  ------------------
  |  Branch (142:21): [True: 0, False: 0]
  ------------------
  143|      0|                    RTPP_OBJ_DECREF(sp);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|      0|                continue;
  145|      0|            }
  146|      0|            CALL_SMETHOD(iskt, link_stream, stp);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  147|      0|        }
  148|      0|        if (sp == NULL) {
  ------------------
  |  Branch (148:13): [True: 0, False: 0]
  ------------------
  149|      0|            sp = CALL_SMETHOD(cfsp->sessions_wrt, get_by_idx, stp->seuid);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  150|      0|            if (sp == NULL) {
  ------------------
  |  Branch (150:17): [True: 0, False: 0]
  ------------------
  151|      0|                RTPP_OBJ_DECREF(stp);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  152|      0|                continue;
  153|      0|            }
  154|      0|            CALL_SMETHOD(iskt, link_session, sp);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  155|      0|        }
  156|      0|        if (sp->complete != 0) {
  ------------------
  |  Branch (156:13): [True: 0, False: 0]
  ------------------
  157|      0|            rxmit_packets(cfsp, stp, dtime, drain_repeat, sender, rsp);
  158|      0|            if (stp->resizer != NULL) {
  ------------------
  |  Branch (158:17): [True: 0, False: 0]
  ------------------
  159|      0|                struct pkt_proc_ctx pktx = {
  160|      0|                    .strmp_in = stp,
  161|      0|                    .strmp_out = CALL_SMETHOD(stp, get_sender),
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  162|      0|                    .rsp = rsp,
  163|      0|                    .sender = sender,
  164|      0|                };
  165|       |
  166|      0|                while ((pktx.pktp = rtp_resizer_get(stp->resizer, dtime->mono)) != NULL) {
  ------------------
  |  Branch (166:24): [True: 0, False: 0]
  ------------------
  167|      0|                    if (CALL_SMETHOD(stp->pproc_manager, handleat, &pktx,
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (167:25): [True: 0, False: 0]
  ------------------
  168|      0|                      PPROC_ORD_RESIZE + 1).a & PPROC_ACT_TAKE_v)
  169|      0|                        rsp->npkts_resizer_out.cnt++;
  170|      0|                }
  171|       |
  172|      0|                if (pktx.strmp_out != NULL)
  ------------------
  |  Branch (172:21): [True: 0, False: 0]
  ------------------
  173|      0|                    RTPP_OBJ_DECREF(pktx.strmp_out);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  174|      0|            }
  175|      0|            RTPP_OBJ_DECREF(sp);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  176|      0|        } else {
  177|      0|            const char *proto;
  178|       |
  179|      0|            RTPP_OBJ_DECREF(sp);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  180|      0|            proto = CALL_SMETHOD(stp, get_proto);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  181|      0|            ndrained = CALL_SMETHOD(iskt, drain, proto, stp->log);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  182|      0|            if (ndrained > 0) {
  ------------------
  |  Branch (182:17): [True: 0, False: 0]
  ------------------
  183|      0|                rsp->npkts_discard.cnt += ndrained;
  184|      0|            }
  185|      0|        }
  186|      0|        RTPP_OBJ_DECREF(stp);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  187|      0|    }
  188|      4|}

rtpp_proc_async_ctor:
  317|      2|{
  318|      2|    struct rtpp_proc_async_cf *proc_cf;
  319|       |
  320|      2|    proc_cf = rtpp_rzmalloc(sizeof(*proc_cf), PVT_RCOFFS(proc_cf));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
  321|      2|    if (proc_cf == NULL)
  ------------------
  |  Branch (321:9): [True: 0, False: 2]
  ------------------
  322|      0|        return (NULL);
  323|       |
  324|      2|    proc_cf->npkts_relayed_idx = CALL_SMETHOD(cfsp->rtpp_stats, getidxbyname, "npkts_relayed");
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  325|      2|    if (proc_cf->npkts_relayed_idx < 0)
  ------------------
  |  Branch (325:9): [True: 0, False: 2]
  ------------------
  326|      0|        goto e0;
  327|       |
  328|      2|    proc_cf->pub.netio = rtpp_netio_async_init(cfsp, 1);
  329|      2|    if (proc_cf->pub.netio == NULL) {
  ------------------
  |  Branch (329:9): [True: 0, False: 2]
  ------------------
  330|      0|        goto e0;
  331|      0|    }
  332|      2|    RTPP_OBJ_DTOR_ATTACH_s(&proc_cf->pub, rtpp_netio_async_destroy, proc_cf->pub.netio);
  ------------------
  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
  333|       |
  334|      2|    proc_cf->cf_save = cfsp;
  335|       |
  336|      2|    const struct packet_processor_if relay_packet_poi = {
  337|      2|        .descr = "relay_packet",
  338|      2|        .arg = (void *)proc_cf,
  339|      2|        .key = (void *)&relay_packet,
  340|      2|        .enqueue = &relay_packet
  341|      2|    };
  342|      2|    if (CALL_SMETHOD(cfsp->pproc_manager, reg, PPROC_ORD_RELAY, &relay_packet_poi) < 0)
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (342:9): [True: 0, False: 2]
  ------------------
  343|      0|        goto e0;
  344|       |
  345|      2|    const struct packet_processor_if record_packet_poi = {
  346|      2|        .descr = "record_packet",
  347|      2|        .arg = (void *)proc_cf,
  348|      2|        .key = (void *)&record_packet,
  349|      2|        .enqueue = &record_packet
  350|      2|    };
  351|      2|    if (CALL_SMETHOD(cfsp->pproc_manager, reg, PPROC_ORD_WITNESS, &record_packet_poi) < 0)
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (351:9): [True: 0, False: 2]
  ------------------
  352|      0|        goto e1;
  353|       |
  354|      2|    if (rtpp_proc_async_thread_init(cfsp, proc_cf, &proc_cf->rtp_thread, PIPE_RTP) != 0) {
  ------------------
  |  |   35|      2|#define PIPE_RTP        1
  ------------------
  |  Branch (354:9): [True: 0, False: 2]
  ------------------
  355|      0|        goto e2;
  356|      0|    }
  357|      2|    RTPP_OBJ_DTOR_ATTACH_s(&proc_cf->pub, rtpp_proc_async_thread_destroy, &proc_cf->rtp_thread);
  ------------------
  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
  358|       |
  359|      2|    if (rtpp_proc_async_thread_init(cfsp, proc_cf, &proc_cf->rtcp_thread, PIPE_RTCP) != 0) {
  ------------------
  |  |   36|      2|#define PIPE_RTCP       2
  ------------------
  |  Branch (359:9): [True: 0, False: 2]
  ------------------
  360|      0|        goto e2;
  361|      0|    }
  362|      2|    RTPP_OBJ_DTOR_ATTACH_s(&proc_cf->pub, rtpp_proc_async_thread_destroy, &proc_cf->rtcp_thread);
  ------------------
  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
  363|       |
  364|      2|    proc_cf->wakeup_cf = rtpp_proc_wakeup_ctor(proc_cf->rtp_thread.ptbl.wakefd[1],
  365|      2|      proc_cf->rtcp_thread.ptbl.wakefd[1]);
  366|      2|    if (proc_cf->wakeup_cf == NULL)
  ------------------
  |  Branch (366:9): [True: 0, False: 2]
  ------------------
  367|      0|        goto e2;
  368|      2|    RTPP_OBJ_DTOR_ATTACH_OBJ_s(&proc_cf->pub, proc_cf->wakeup_cf);
  ------------------
  |  |  185|      2|#define RTPP_OBJ_DTOR_ATTACH_OBJ_s(obj, obj1) CALL_SMETHOD((obj)->rcnt, attach_rc_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  186|      2|  (obj1)->rcnt)
  ------------------
  369|       |
  370|      2|    RTPP_OBJ_BORROW_s(&proc_cf->pub, cfsp->rtpp_stats);
  ------------------
  |  |  199|      2|    do { /* Attach first, then increase, the "lob: counter might have */ \
  |  |  200|      2|         /* certain optimizations for the count == 1 case             */ \
  |  |  201|      2|        RTPP_OBJ_DTOR_ATTACH_RC_s((bob), (lob)->rcnt); \
  |  |  ------------------
  |  |  |  |  181|      2|#define RTPP_OBJ_DTOR_ATTACH_RC_s(obj, rc) CALL_SMETHOD((obj)->rcnt, attach_rc_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  182|      2|  (rc))
  |  |  ------------------
  |  |  202|      2|        RTPP_OBJ_INCREF(lob); \
  |  |  ------------------
  |  |  |  |  173|      2|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  |  |  ------------------
  |  |  |  |  |  |   82|      2|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  203|      2|    } while (0)
  |  |  ------------------
  |  |  |  Branch (203:14): [Folded, False: 2]
  |  |  ------------------
  ------------------
  371|      2|    RTPP_OBJ_BORROW_s(&proc_cf->pub, cfsp->pproc_manager);
  ------------------
  |  |  199|      2|    do { /* Attach first, then increase, the "lob: counter might have */ \
  |  |  200|      2|         /* certain optimizations for the count == 1 case             */ \
  |  |  201|      2|        RTPP_OBJ_DTOR_ATTACH_RC_s((bob), (lob)->rcnt); \
  |  |  ------------------
  |  |  |  |  181|      2|#define RTPP_OBJ_DTOR_ATTACH_RC_s(obj, rc) CALL_SMETHOD((obj)->rcnt, attach_rc_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  182|      2|  (rc))
  |  |  ------------------
  |  |  202|      2|        RTPP_OBJ_INCREF(lob); \
  |  |  ------------------
  |  |  |  |  173|      2|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  |  |  ------------------
  |  |  |  |  |  |   82|      2|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  203|      2|    } while (0)
  |  |  ------------------
  |  |  |  Branch (203:14): [Folded, False: 2]
  |  |  ------------------
  ------------------
  372|       |
  373|      2|    RTPP_OBJ_DTOR_ATTACH_s(&proc_cf->pub, rtpp_proc_async_dtor, proc_cf);
  ------------------
  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  ------------------
  374|       |
  375|      2|    proc_cf->pub.nudge = &rtpp_proc_async_nudge;
  376|      2|    return (&proc_cf->pub);
  377|      0|e2:
  378|      0|    CALL_SMETHOD(cfsp->pproc_manager, unreg, record_packet_poi.key);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  379|      0|e1:
  380|      0|    CALL_SMETHOD(cfsp->pproc_manager, unreg, relay_packet_poi.key);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  381|      0|e0:
  382|      0|    RTPP_OBJ_DECREF(&proc_cf->pub);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  383|       |    return (NULL);
  384|      0|}
rtpp_proc_async.c:rtpp_proc_async_thread_init:
  216|      4|{
  217|      4|    struct epoll_event epevent;
  218|       |
  219|      4|    tcp->ptbl.epfd = rtpp_epoll_create();
  220|      4|    if (tcp->ptbl.epfd < 0)
  ------------------
  |  Branch (220:9): [True: 0, False: 4]
  ------------------
  221|      0|        goto e0;
  222|      4|    if (socketpair(PF_LOCAL, SOCK_STREAM, 0, tcp->ptbl.wakefd) != 0)
  ------------------
  |  Branch (222:9): [True: 0, False: 4]
  ------------------
  223|      0|        goto e1;
  224|      4|    epevent.events = EPOLLIN;
  225|      4|    epevent.data.ptr = NULL;
  226|      4|    if (rtpp_epoll_ctl(tcp->ptbl.epfd, EPOLL_CTL_ADD, tcp->ptbl.wakefd[0], &epevent) != 0)
  ------------------
  |  Branch (226:9): [True: 0, False: 4]
  ------------------
  227|      0|        goto e2;
  228|       |
  229|      4|    tcp->proc_cf = proc_cf;
  230|      4|    tcp->pipe_type = pipe_type;
  231|       |
  232|      4|    init_rstats(cfsp->rtpp_stats, &tcp->rstats);
  233|       |
  234|      4|    tcp->events_alloc = 16;
  235|      4|    tcp->events = rtpp_zmalloc(sizeof(tcp->events[0]) * tcp->events_alloc);
  236|      4|    if (tcp->events == NULL)
  ------------------
  |  Branch (236:9): [True: 0, False: 4]
  ------------------
  237|      0|        goto e2;
  238|       |
  239|      4|    if (pthread_create(&tcp->thread_id, NULL, (void *(*)(void *))&rtpp_proc_async_run, tcp) != 0) {
  ------------------
  |  Branch (239:9): [True: 0, False: 4]
  ------------------
  240|      0|        goto e3;
  241|      0|    }
  242|      4|    rtpp_proc_async_setprocname(tcp->thread_id, PP_NAME(pipe_type));
  ------------------
  |  |   38|      4|#define PP_NAME(t)      (((t) == PIPE_RTP) ? "RTP" : "RTCP")
  |  |  ------------------
  |  |  |  |   35|      4|#define PIPE_RTP        1
  |  |  ------------------
  |  |  |  Branch (38:26): [True: 2, False: 2]
  |  |  ------------------
  ------------------
  243|      4|    return (0);
  244|       |
  245|      0|e3:
  246|      0|    free(tcp->events);
  247|      0|e2:
  248|      0|    close(tcp->ptbl.wakefd[0]);
  249|      0|    close(tcp->ptbl.wakefd[1]);
  250|      0|e1:
  251|      0|    close(tcp->ptbl.epfd);
  252|      0|e0:
  253|      0|    return (-1);
  254|      0|}
rtpp_proc_async.c:init_rstats:
  119|      4|{
  120|       |
  121|      4|    rsp->npkts_rcvd.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "npkts_rcvd");
  ------------------
  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      4|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  122|      4|    rsp->npkts_relayed.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "npkts_relayed");
  ------------------
  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      4|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  123|      4|    rsp->npkts_resizer_in.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "npkts_resizer_in");
  ------------------
  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      4|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  124|      4|    rsp->npkts_resizer_out.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "npkts_resizer_out");
  ------------------
  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      4|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  125|      4|    rsp->npkts_resizer_discard.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "npkts_resizer_discard");
  ------------------
  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      4|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|      4|    rsp->npkts_discard.cnt_idx = CALL_SMETHOD(sobj, getidxbyname, "npkts_discard");
  ------------------
  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      4|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  127|      4|}
rtpp_proc_async.c:rtpp_proc_async_run:
  131|      4|{
  132|      4|    const struct rtpp_cfg *cfsp;
  133|      4|    int ndrain;
  134|      4|    int nready;
  135|      4|    struct rtpp_proc_thread_cf *tcp;
  136|      4|    const struct rtpp_proc_async_cf *proc_cf;
  137|      4|    long long last_ctick;
  138|      4|    struct sthread_args *sender;
  139|      4|    struct rtpp_proc_rstats *rstats;
  140|      4|    struct rtpp_stats *stats_cf;
  141|      4|    int tstate;
  142|      4|    struct rtpp_timestamp rtime;
  143|       |
  144|      4|    tcp = (struct rtpp_proc_thread_cf *)arg;
  145|      4|    proc_cf = tcp->proc_cf;
  146|      4|    cfsp = proc_cf->cf_save;
  147|      4|    stats_cf = cfsp->rtpp_stats;
  148|      4|    rstats = &tcp->rstats;
  149|       |
  150|      4|    memset(&rtime, '\0', sizeof(rtime));
  151|       |
  152|      4|    RTPP_DBGCODE(netio) {
  ------------------
  |  |   86|      4|#define RTPP_DBGCODE(x) if (_DCOND_##x)
  |  |  ------------------
  |  |  |  |   80|      4|#define _DCOND_netio      RTPP_DEBUG_netio
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      4|# define RTPP_DEBUG_netio       RTPP_DBG_NO
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   34|      4|#define RTPP_DBG_NO	0
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (34:21): [Folded, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  153|      0|        last_ctick = 0;
  154|      0|    }
  155|       |
  156|      8|    for (;;) {
  157|      8|        tstate = atomic_load(&tcp->tstate);
  158|      8|        CALL_SMETHOD(cfsp->sessinfo, sync_polltbl, &tcp->ptbl, tcp->pipe_type);
  ------------------
  |  |  156|      8|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      8|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      8|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      8|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      8|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      8|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      8|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      8|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      8|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      8|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      8|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      8|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      8|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      8|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      8|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      8|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      8|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      8|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      8|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      8|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      8|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      8|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      8|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      8|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      8|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      8|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      8|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      8|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      8|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      8|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      8|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      8|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      8|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      8|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  159|      8|        if (tstate == TSTATE_CEASE) {
  ------------------
  |  |   32|      8|#define TSTATE_CEASE 0x1
  ------------------
  |  Branch (159:13): [True: 4, False: 4]
  ------------------
  160|      4|            break;
  161|      4|        }
  162|       |
  163|      4|        ndrain = 1;
  164|       |
  165|      4|        nready = 0;
  166|      4|        RTPP_DBGCODE(netio > 1) {
  ------------------
  |  |   86|      4|#define RTPP_DBGCODE(x) if (_DCOND_##x)
  |  |  ------------------
  |  |  |  |   80|      4|#define _DCOND_netio      RTPP_DEBUG_netio
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      4|# define RTPP_DEBUG_netio       RTPP_DBG_NO
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   34|      4|#define RTPP_DBG_NO	0
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (86:29): [Folded, False: 4]
  |  |  ------------------
  ------------------
  167|      0|            RTPP_LOG(cfsp->glog, RTPP_LOG_DBUG, "run %lld " \
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  167|      0|            RTPP_LOG(cfsp->glog, RTPP_LOG_DBUG, "run %lld " \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   44|      0|#define	RTPP_LOG_DBUG	LOG_DEBUG
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  168|      0|              "polling for %d %s file descriptors", \
  |  |  |  |  |  |  169|      0|              last_ctick, tcp->ptbl.curlen, PP_NAME(tcp->pipe_type));
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   38|      0|#define PP_NAME(t)      (((t) == PIPE_RTP) ? "RTP" : "RTCP")
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   35|      0|#define PIPE_RTP        1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (38:26): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  168|      0|              "polling for %d %s file descriptors", \
  169|      0|              last_ctick, tcp->ptbl.curlen, PP_NAME(tcp->pipe_type));
  170|      0|        }
  171|      4|        nready = rtpp_epoll_wait(tcp->ptbl.epfd, tcp->events, tcp->events_alloc, -1);
  172|      4|        RTPP_DBGCODE(netio) {
  ------------------
  |  |   86|      4|#define RTPP_DBGCODE(x) if (_DCOND_##x)
  |  |  ------------------
  |  |  |  |   80|      4|#define _DCOND_netio      RTPP_DEBUG_netio
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      4|# define RTPP_DEBUG_netio       RTPP_DBG_NO
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   34|      4|#define RTPP_DBG_NO	0
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (34:21): [Folded, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  173|      0|            RTPP_DBGCODE(netio > 1 || nready > 0) {
  ------------------
  |  |   86|      0|#define RTPP_DBGCODE(x) if (_DCOND_##x)
  |  |  ------------------
  |  |  |  |   80|      0|#define _DCOND_netio      RTPP_DEBUG_netio
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      0|# define RTPP_DEBUG_netio       RTPP_DBG_NO
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   34|      0|#define RTPP_DBG_NO	0
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (86:29): [Folded, False: 0]
  |  |  |  Branch (86:38): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  174|      0|                RTPP_LOG(cfsp->glog, RTPP_LOG_DBUG, "run %lld " \
  ------------------
  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   56|      0|#define RTPP_LOG(log, args...) CALL_METHOD((log), genwrite, __FUNCTION__, \
  |  |  |  |  |  |   57|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  174|      0|                RTPP_LOG(cfsp->glog, RTPP_LOG_DBUG, "run %lld " \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   44|      0|#define	RTPP_LOG_DBUG	LOG_DEBUG
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  175|      0|                  "polling for %d %s file descriptors: %d descriptors are ready", \
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  175|      0|                  "polling for %d %s file descriptors: %d descriptors are ready", \
  |  |  |  |  |  |  176|      0|                  last_ctick, tcp->ptbl.curlen, PP_NAME(tcp->pipe_type), nready);
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   38|      0|#define PP_NAME(t)      (((t) == PIPE_RTP) ? "RTP" : "RTCP")
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   35|      0|#define PIPE_RTP        1
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (38:26): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   57|      0|  __LINE__, ## args)
  ------------------
  175|      0|                  "polling for %d %s file descriptors: %d descriptors are ready", \
  176|      0|                  last_ctick, tcp->ptbl.curlen, PP_NAME(tcp->pipe_type), nready);
  177|      0|            }
  178|      0|        }
  179|      4|        if (nready < 0 && errno == EINTR) {
  ------------------
  |  Branch (179:13): [True: 0, False: 4]
  |  Branch (179:27): [True: 0, False: 0]
  ------------------
  180|      0|            continue;
  181|      0|        }
  182|      4|        if (nready == 0)
  ------------------
  |  Branch (182:13): [True: 0, False: 4]
  ------------------
  183|      0|            goto next;
  184|       |
  185|      4|        rtpp_timestamp_get(&rtime);
  186|      4|        RTPP_DBG_ASSERT(rtime.wall > 0 && rtime.mono > 0);
  187|       |
  188|      4|        sender = rtpp_anetio_pick_sender(proc_cf->pub.netio);
  189|      4|        process_rtp_only(cfsp, &tcp->ptbl, &rtime, ndrain, sender, rstats,
  190|      4|          tcp->events, nready);
  191|       |
  192|      4|        rtpp_anetio_pump_q(sender);
  193|      4|        flush_rstats(stats_cf, rstats);
  194|       |
  195|      4|        if (nready == tcp->events_alloc) {
  ------------------
  |  Branch (195:13): [True: 0, False: 4]
  ------------------
  196|      0|            struct epoll_event *tep;
  197|       |
  198|      0|            tep = realloc(tcp->events, sizeof(tcp->events[0]) * tcp->events_alloc * 2);
  199|      0|            if (tep != NULL) {
  ------------------
  |  Branch (199:17): [True: 0, False: 0]
  ------------------
  200|      0|                tcp->events = tep;
  201|      0|                tcp->events_alloc *= 2;
  202|      0|            }
  203|      0|        }
  204|       |
  205|      4|next:
  206|      4|        RTPP_DBGCODE(netio) {
  ------------------
  |  |   86|      4|#define RTPP_DBGCODE(x) if (_DCOND_##x)
  |  |  ------------------
  |  |  |  |   80|      4|#define _DCOND_netio      RTPP_DEBUG_netio
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      4|# define RTPP_DEBUG_netio       RTPP_DBG_NO
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   34|      4|#define RTPP_DBG_NO	0
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (34:21): [Folded, False: 4]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  207|      0|            last_ctick++;
  208|      0|        }
  209|      4|    }
  210|      4|    rtpp_polltbl_free(&tcp->ptbl);
  211|      4|}
rtpp_proc_async.c:flush_rstats:
  107|      4|{
  108|       |
  109|      4|    FLUSH_STAT(sobj, rsp->npkts_rcvd);
  ------------------
  |  |   42|      4|#define FLUSH_STAT(sobj, st)    { \
  |  |   43|      4|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (43:9): [True: 0, False: 4]
  |  |  ------------------
  |  |   44|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|      0|        (st).cnt = 0; \
  |  |   46|      0|    } \
  |  |   47|      4|}
  ------------------
  110|      4|    FLUSH_STAT(sobj, rsp->npkts_relayed);
  ------------------
  |  |   42|      4|#define FLUSH_STAT(sobj, st)    { \
  |  |   43|      4|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (43:9): [True: 0, False: 4]
  |  |  ------------------
  |  |   44|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|      0|        (st).cnt = 0; \
  |  |   46|      0|    } \
  |  |   47|      4|}
  ------------------
  111|      4|    FLUSH_STAT(sobj, rsp->npkts_resizer_in);
  ------------------
  |  |   42|      4|#define FLUSH_STAT(sobj, st)    { \
  |  |   43|      4|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (43:9): [True: 0, False: 4]
  |  |  ------------------
  |  |   44|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|      0|        (st).cnt = 0; \
  |  |   46|      0|    } \
  |  |   47|      4|}
  ------------------
  112|      4|    FLUSH_STAT(sobj, rsp->npkts_resizer_out);
  ------------------
  |  |   42|      4|#define FLUSH_STAT(sobj, st)    { \
  |  |   43|      4|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (43:9): [True: 0, False: 4]
  |  |  ------------------
  |  |   44|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|      0|        (st).cnt = 0; \
  |  |   46|      0|    } \
  |  |   47|      4|}
  ------------------
  113|      4|    FLUSH_STAT(sobj, rsp->npkts_resizer_discard);
  ------------------
  |  |   42|      4|#define FLUSH_STAT(sobj, st)    { \
  |  |   43|      4|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (43:9): [True: 0, False: 4]
  |  |  ------------------
  |  |   44|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|      0|        (st).cnt = 0; \
  |  |   46|      0|    } \
  |  |   47|      4|}
  ------------------
  114|      4|    FLUSH_STAT(sobj, rsp->npkts_discard);
  ------------------
  |  |   42|      4|#define FLUSH_STAT(sobj, st)    { \
  |  |   43|      4|    if ((st).cnt > 0) { \
  |  |  ------------------
  |  |  |  Branch (43:9): [True: 0, False: 4]
  |  |  ------------------
  |  |   44|      0|        CALL_SMETHOD(sobj, updatebyidx, (st).cnt_idx, (st).cnt); \
  |  |  ------------------
  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   45|      0|        (st).cnt = 0; \
  |  |   46|      0|    } \
  |  |   47|      4|}
  ------------------
  115|      4|}
rtpp_proc_async.c:rtpp_proc_async_thread_destroy:
  258|      4|{
  259|      4|    int tstate = atomic_load(&tcp->tstate);
  260|       |
  261|      4|    assert(tstate == TSTATE_RUN);
  ------------------
  |  Branch (261:5): [True: 0, False: 4]
  |  Branch (261:5): [True: 4, False: 0]
  ------------------
  262|      4|    close(tcp->ptbl.wakefd[1]);
  263|      4|    atomic_store(&tcp->tstate, TSTATE_CEASE);
  264|       |    pthread_join(tcp->thread_id, NULL);
  265|      4|    free(tcp->events);
  266|      4|}
rtpp_proc_async.c:rtpp_proc_async_dtor:
  388|      2|{
  389|      2|    CALL_SMETHOD(proc_cf->cf_save->pproc_manager, unreg, record_packet);
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  390|      2|    CALL_SMETHOD(proc_cf->cf_save->pproc_manager, unreg, relay_packet);
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  391|      2|}

rtpp_proc_servers_ctor:
  239|      2|{
  240|      2|    struct rtpp_proc_servers_priv *stap;
  241|       |
  242|      2|    stap = rtpp_rzmalloc(sizeof(*stap), PVT_RCOFFS(stap));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
  243|      2|    if (stap == NULL)
  ------------------
  |  Branch (243:9): [True: 0, False: 2]
  ------------------
  244|      0|        goto e0;
  245|      2|    stap->cmd_q = rtpp_queue_init(RTPQ_TINY_CB_LEN, "rtpp_proc_servers(requests)");
  ------------------
  |  |   73|      2|#define RTPQ_TINY_CB_LEN  4
  ------------------
  246|      2|    if (stap->cmd_q == NULL) {
  ------------------
  |  Branch (246:9): [True: 0, False: 2]
  ------------------
  247|      0|        goto e1;
  248|      0|    }
  249|      2|    stap->sigterm = rtpp_wi_malloc_sgnl(SIGTERM, NULL, 0);
  250|      2|    if (stap->sigterm == NULL) {
  ------------------
  |  Branch (250:9): [True: 0, False: 2]
  ------------------
  251|      0|        goto e2;
  252|      0|    }
  253|      2|    stap->act_servers = rtpp_weakref_ctor();
  254|      2|    if (stap->act_servers == NULL) {
  ------------------
  |  Branch (254:9): [True: 0, False: 2]
  ------------------
  255|      0|        goto e3;
  256|      0|    }
  257|      2|    RTPP_OBJ_DTOR_ATTACH_OBJ_s(&stap->pub, stap->act_servers);
  ------------------
  |  |  185|      2|#define RTPP_OBJ_DTOR_ATTACH_OBJ_s(obj, obj1) CALL_SMETHOD((obj)->rcnt, attach_rc_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  186|      2|  (obj1)->rcnt)
  ------------------
  258|      2|    stap->inact_servers = rtpp_weakref_ctor();
  259|      2|    if (stap->inact_servers == NULL) {
  ------------------
  |  Branch (259:9): [True: 0, False: 2]
  ------------------
  260|      0|        goto e3;
  261|      0|    }
  262|      2|    RTPP_OBJ_DTOR_ATTACH_OBJ_s(&stap->pub, stap->inact_servers);
  ------------------
  |  |  185|      2|#define RTPP_OBJ_DTOR_ATTACH_OBJ_s(obj, obj1) CALL_SMETHOD((obj)->rcnt, attach_rc_nc, \
  |  |  ------------------
  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  186|      2|  (obj1)->rcnt)
  ------------------
  263|       |
  264|      2|    stap->inact_servers->ht->seed = stap->act_servers->ht->seed;
  265|      2|    stap->netio = netio;
  266|      2|    stap->cfsp = cfsp;
  267|      2|    stap->npkts_played.cnt_idx = CALL_SMETHOD(cfsp->rtpp_stats, getidxbyname, "npkts_played");
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|       |
  269|      2|    if (pthread_create(&stap->thread_id, NULL,
  ------------------
  |  Branch (269:9): [True: 0, False: 2]
  ------------------
  270|      2|      (void *(*)(void *))&rtpp_proc_servers_run, stap) != 0) {
  271|      0|        goto e3;
  272|      0|    }
  273|      2|#if HAVE_PTHREAD_SETNAME_NP
  274|      2|    (void)pthread_setname_np(stap->thread_id, "rtpp_proc_servers");
  275|      2|#endif
  276|       |
  277|      2|    PUBINST_FININIT(&stap->pub, stap, rtpp_proc_servers_dtor);
  ------------------
  |  |   76|      2|    RTPP_OBJ_DTOR_ATTACH_s((pub_inst), (rtpp_refcnt_dtor_t)(dtor), \
  |  |  ------------------
  |  |  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |   77|      2|      pvt_inst);
  ------------------
  278|      2|    return (&stap->pub);
  279|      0|e3:
  280|      0|    RTPP_OBJ_DECREF(stap->sigterm);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  281|      0|e2:
  282|      0|    rtpp_queue_destroy(stap->cmd_q);
  283|      0|e1:
  284|      0|    RTPP_OBJ_DECREF(&stap->pub);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  285|      0|e0:
  286|       |    return (NULL);
  287|      0|}
rtpp_proc_servers.c:rtpp_proc_servers_run:
  176|      2|{
  177|      2|    struct rtpp_proc_servers_priv *stap;
  178|      2|    struct rtpp_wi *wi;
  179|      2|    int signum, rval;
  180|      2|    double next_dtime = 0;
  181|      2|    struct timespec deadline;
  182|       |
  183|      2|    stap = (struct rtpp_proc_servers_priv *)argp;
  184|      2|    for (;;) {
  185|      2|        if (CALL_SMETHOD(stap->act_servers, get_length) == 0) {
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (185:13): [True: 2, False: 0]
  ------------------
  186|      2|            wi = rtpp_queue_get_item(stap->cmd_q, 1);
  187|      2|            next_dtime = 0;
  188|      2|            if (wi == NULL)
  ------------------
  |  Branch (188:17): [True: 0, False: 2]
  ------------------
  189|      0|                continue;
  190|      2|        } else {
  191|      0|            if (next_dtime != 0) {
  ------------------
  |  Branch (191:17): [True: 0, False: 0]
  ------------------
  192|      0|                dtime2mtimespec(next_dtime, &deadline);
  193|      0|                rval = 0;
  194|      0|                wi = rtpp_queue_get_item_by(stap->cmd_q, &deadline, &rval);
  195|      0|            } else {
  196|      0|                wi = NULL;
  197|      0|                rval = ETIMEDOUT;
  198|      0|                next_dtime = getdtime();
  199|      0|            }
  200|      0|            if (wi == NULL) {
  ------------------
  |  Branch (200:17): [True: 0, False: 0]
  ------------------
  201|      0|                if (rval == ETIMEDOUT) {
  ------------------
  |  Branch (201:21): [True: 0, False: 0]
  ------------------
  202|      0|                    run_servers(stap, next_dtime);
  203|      0|                    next_dtime += 0.01;
  204|      0|                }
  205|      0|                continue;
  206|      0|            }
  207|      0|        }
  208|      2|        switch (wi->wi_type) {
  209|      2|        case RTPP_WI_TYPE_SGNL:
  ------------------
  |  Branch (209:9): [True: 2, False: 0]
  ------------------
  210|      2|            signum = rtpp_wi_sgnl_get_signum(wi);
  211|      2|            RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  212|      2|            if (signum == SIGTERM) {
  ------------------
  |  Branch (212:17): [True: 2, False: 0]
  ------------------
  213|      2|                goto exit;
  214|      2|            }
  215|      0|            abort();
  216|       |
  217|      0|        default:
  ------------------
  |  Branch (217:9): [True: 0, False: 2]
  ------------------
  218|      0|            abort();
  219|      2|        }
  220|      0|        RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  221|      0|    }
  222|      2|exit:
  223|       |    /* We are terminating, get rid of all requests */
  224|      2|    return;
  225|      2|}
rtpp_proc_servers.c:rtpp_proc_servers_dtor:
  229|      2|{
  230|       |
  231|      2|    rtpp_proc_servers_fin(&(stap->pub));
  232|      2|    rtpp_queue_put_item(stap->sigterm, stap->cmd_q);
  233|       |    pthread_join(stap->thread_id, NULL);
  234|      2|    rtpp_queue_destroy(stap->cmd_q);
  235|      2|}

rtpp_proc_ttl_ctor:
  174|      2|{
  175|      2|    struct rtpp_proc_ttl_pvt *proc_cf;
  176|       |
  177|      2|    proc_cf = rtpp_zmalloc(sizeof(*proc_cf));
  178|      2|    if (proc_cf == NULL)
  ------------------
  |  Branch (178:9): [True: 0, False: 2]
  ------------------
  179|      0|        return (NULL);
  180|       |
  181|      2|    proc_cf->elp = prdic_init(1.0, 0.0);
  182|      2|    if (proc_cf->elp == NULL) {
  ------------------
  |  Branch (182:9): [True: 0, False: 2]
  ------------------
  183|      0|        goto e0;
  184|      0|    }
  185|       |
  186|      2|    proc_cf->fa.rtpp_notify_cf = cfsp->rtpp_notify_cf;
  187|      2|    RTPP_OBJ_INCREF(cfsp->rtpp_notify_cf);
  ------------------
  |  |  173|      2|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   82|      2|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  188|      2|    proc_cf->fa.rtpp_stats = cfsp->rtpp_stats;
  189|      2|    RTPP_OBJ_INCREF(cfsp->rtpp_stats);
  ------------------
  |  |  173|      2|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   82|      2|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  190|      2|    proc_cf->fa.sessions_wrt = cfsp->sessions_wrt;
  191|      2|    RTPP_OBJ_INCREF(cfsp->sessions_wrt);
  ------------------
  |  |  173|      2|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   82|      2|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  192|      2|    proc_cf->sessions_ht = cfsp->sessions_ht;
  193|      2|    RTPP_OBJ_INCREF(cfsp->sessions_ht);
  ------------------
  |  |  173|      2|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   82|      2|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  194|       |
  195|      2|    if (pthread_create(&proc_cf->thread_id, NULL, (void *(*)(void *))&rtpp_proc_ttl_run, proc_cf) != 0) {
  ------------------
  |  Branch (195:9): [True: 0, False: 2]
  ------------------
  196|      0|        goto e1;
  197|      0|    }
  198|      2|#if HAVE_PTHREAD_SETNAME_NP
  199|      2|    (void)pthread_setname_np(proc_cf->thread_id, "rtpp_proc_ttl");
  200|      2|#endif
  201|      2|    proc_cf->pub.dtor = &rtpp_proc_ttl_dtor;
  202|      2|    return (&proc_cf->pub);
  203|      0|e1:
  204|      0|    RTPP_OBJ_DECREF(cfsp->rtpp_stats);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  205|      0|    RTPP_OBJ_DECREF(cfsp->sessions_ht);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  206|      0|    RTPP_OBJ_DECREF(cfsp->sessions_wrt);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  207|      0|    RTPP_OBJ_DECREF(cfsp->rtpp_notify_cf);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|      0|    prdic_free(proc_cf->elp);
  209|      0|e0:
  210|      0|    free(proc_cf);
  211|       |    return (NULL);
  212|      0|}
rtpp_proc_ttl.c:rtpp_proc_ttl_run:
  137|      2|{
  138|      2|    struct rtpp_proc_ttl_pvt *proc_cf;
  139|      2|    int tstate;
  140|       |
  141|      2|    proc_cf = (struct rtpp_proc_ttl_pvt *)arg;
  142|       |
  143|    191|    for (;;) {
  144|    191|        tstate = atomic_load(&proc_cf->tstate);
  145|    191|        if (tstate == TSTATE_CEASE) {
  ------------------
  |  |   32|    191|#define TSTATE_CEASE 0x1
  ------------------
  |  Branch (145:13): [True: 2, False: 189]
  ------------------
  146|      2|            break;
  147|      2|        }
  148|    189|        prdic_procrastinate(proc_cf->elp);
  149|    189|        rtpp_proc_ttl(proc_cf->sessions_ht, &proc_cf->fa);
  150|    189|    }
  151|      2|}
rtpp_proc_ttl.c:rtpp_proc_ttl:
  130|    189|{
  131|       |
  132|    189|    CALL_SMETHOD(sessions_ht, foreach, rtpp_proc_ttl_foreach, (void *)fap, NULL);
  ------------------
  |  |  156|    189|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|    189|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|    189|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|    189|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|    189|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|    189|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|    189|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|    189|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|    189|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|    189|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|    189|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|    189|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|    189|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|    189|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|    189|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|    189|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|    189|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|    189|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|    189|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|    189|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|    189|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|    189|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|    189|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|    189|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|    189|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|    189|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|    189|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|    189|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|    189|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|    189|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|    189|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|    189|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|    189|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|    189|)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  132|    189|    CALL_SMETHOD(sessions_ht, foreach, rtpp_proc_ttl_foreach, (void *)fap, NULL);
  |  |  ------------------
  ------------------
  133|    189|}
rtpp_proc_ttl.c:rtpp_proc_ttl_dtor:
  155|      2|{
  156|      2|    struct rtpp_proc_ttl_pvt *proc_cf;
  157|      2|    int tstate;
  158|       |
  159|      2|    PUB2PVT(pub, proc_cf);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  160|      2|    tstate = atomic_load(&proc_cf->tstate);
  161|      2|    assert(tstate == TSTATE_RUN);
  ------------------
  |  Branch (161:5): [True: 0, False: 2]
  |  Branch (161:5): [True: 2, False: 0]
  ------------------
  162|      2|    atomic_store(&proc_cf->tstate, TSTATE_CEASE);
  163|      2|    pthread_join(proc_cf->thread_id, NULL);
  164|      2|    RTPP_OBJ_DECREF(proc_cf->sessions_ht);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  165|      2|    RTPP_OBJ_DECREF(proc_cf->fa.sessions_wrt);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  166|      2|    RTPP_OBJ_DECREF(proc_cf->fa.rtpp_notify_cf);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  167|      2|    RTPP_OBJ_DECREF(proc_cf->fa.rtpp_stats);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  168|      2|    prdic_free(proc_cf->elp);
  169|      2|    free(proc_cf);
  170|      2|}

rtpp_proc_async_setprocname:
   42|      6|{
   43|      6|#if HAVE_PTHREAD_SETNAME_NP
   44|      6|    const char ppr[] = "rtpp_proc: ";
   45|      6|    char *ptrname = alloca(sizeof(ppr) + strlen(pname));
   46|      6|    if (ptrname != NULL) {
  ------------------
  |  Branch (46:9): [True: 6, False: 0]
  ------------------
   47|      6|        sprintf(ptrname, "%s%s", ppr, pname);
   48|      6|        (void)pthread_setname_np(thread_id, ptrname);
   49|      6|    }
   50|      6|#endif
   51|      6|}

rtpp_proc_wakeup_ctor:
  136|      2|{
  137|      2|    pthread_condattr_t cond_attr;
  138|      2|    struct rtpp_proc_wakeup_priv *pvt;
  139|       |
  140|      2|    RTPP_DBG_ASSERT(rtp_wakefd > 0 && rtcp_wakefd > 0);
  141|      2|    pvt = rtpp_rzmalloc(sizeof(struct rtpp_proc_wakeup_priv), PVT_RCOFFS(pvt));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
  142|      2|    if (pvt == NULL)
  ------------------
  |  Branch (142:9): [True: 0, False: 2]
  ------------------
  143|      0|        goto e0;
  144|      2|    if (pthread_mutex_init(&pvt->mutex, NULL) != 0)
  ------------------
  |  Branch (144:9): [True: 0, False: 2]
  ------------------
  145|      0|        goto e1;
  146|      2|    if (pthread_condattr_init(&cond_attr) != 0)
  ------------------
  |  Branch (146:9): [True: 0, False: 2]
  ------------------
  147|      0|        goto e2;
  148|      2|    if (pthread_condattr_setclock(&cond_attr, CLOCK_MONOTONIC) != 0)
  ------------------
  |  Branch (148:9): [True: 0, False: 2]
  ------------------
  149|      0|        goto e3;
  150|      2|    if (pthread_cond_init(&pvt->cond, &cond_attr) != 0)
  ------------------
  |  Branch (150:9): [True: 0, False: 2]
  ------------------
  151|      0|        goto e3;
  152|      2|    atomic_init(&pvt->tstate, TSTATE_CEASE);
  ------------------
  |  |   32|      2|#define TSTATE_CEASE 0x1
  ------------------
  153|      2|    pvt->wakefds.rtp = rtp_wakefd;
  154|      2|    pvt->wakefds.rtcp = rtcp_wakefd;
  155|      2|    if (pthread_create(&pvt->thread_id, NULL, (void *(*)(void *))&rtpp_proc_wakeup_run, pvt) != 0)
  ------------------
  |  Branch (155:9): [True: 0, False: 2]
  ------------------
  156|      0|        goto e4;
  157|      2|    pthread_condattr_destroy(&cond_attr);
  158|      2|    rtpp_proc_async_setprocname(pvt->thread_id, "IO_WKUP");
  159|     80|    while (atomic_load(&pvt->tstate) != TSTATE_RUN)
  ------------------
  |  |   31|     80|#define TSTATE_RUN   0x0
  ------------------
  |  Branch (159:12): [True: 78, False: 2]
  ------------------
  160|       |#if HAVE_PTHREAD_YIELD
  161|       |        pthread_yield();
  162|       |#else
  163|     78|        sched_yield();
  164|      2|#endif
  165|      2|    PUBINST_FININIT(&pvt->pub, pvt, rtpp_proc_wakeup_dtor);
  ------------------
  |  |   76|      2|    RTPP_OBJ_DTOR_ATTACH_s((pub_inst), (rtpp_refcnt_dtor_t)(dtor), \
  |  |  ------------------
  |  |  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |   77|      2|      pvt_inst);
  ------------------
  166|      2|    return (&pvt->pub);
  167|      0|e4:
  168|      0|    pthread_cond_destroy(&pvt->cond);
  169|      0|e3:
  170|      0|    pthread_condattr_destroy(&cond_attr);
  171|      0|e2:
  172|      0|    pthread_mutex_destroy(&pvt->mutex);
  173|      0|e1:
  174|      0|    RTPP_OBJ_DECREF(&(pvt->pub));
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  175|      0|e0:
  176|       |    return (NULL);
  177|      0|}
rtpp_proc_wakeup.c:rtpp_proc_wakeup_nudge:
  194|      2|{
  195|      2|    struct rtpp_proc_wakeup_priv *pvt;
  196|      2|    int requested_i_wake, delivered_i_wake;
  197|       |
  198|      2|    PUB2PVT(self, pvt);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  199|      2|    pthread_mutex_lock(&pvt->mutex);
  200|      2|    pvt->requested_i_wake += 1;
  201|      2|    requested_i_wake = pvt->requested_i_wake;
  202|      2|    delivered_i_wake = pvt->delivered_i_wake;
  203|       |    /* notify worker thread */
  204|      2|    pthread_cond_signal(&pvt->cond);
  205|      2|    pthread_mutex_unlock(&pvt->mutex);
  206|      2|    return (requested_i_wake - delivered_i_wake);
  207|      2|}
rtpp_proc_wakeup.c:rtpp_proc_wakeup_run:
   82|      2|{
   83|      2|    struct rtpp_proc_wakeup_priv *wtcp;
   84|      2|    int requested_i_wake = 0;
   85|      2|    double last_wakeup = 0, wakeup_at = 0;
   86|      2|    const double wakeup_ival = 1.0 / MAX_WAKEUPS_PS;
  ------------------
  |  |   52|      2|#define MAX_WAKEUPS_PS 1000.0
  ------------------
   87|       |
   88|      2|    wtcp = (struct rtpp_proc_wakeup_priv *)arg;
   89|       |
   90|      2|    atomic_store(&wtcp->tstate, TSTATE_RUN);
   91|      2|    for (;;) {
   92|      2|        MAYBE_UNUSED int ret;
  ------------------
  |  |  196|      2|#define MAYBE_UNUSED [[maybe_unused]]
  ------------------
   93|       |
   94|      2|        pthread_mutex_lock(&wtcp->mutex);
   95|      4|        while ((atomic_load(&wtcp->tstate) == TSTATE_RUN) && (requested_i_wake == wtcp->requested_i_wake)) {
  ------------------
  |  |   31|      4|#define TSTATE_RUN   0x0
  ------------------
  |  Branch (95:16): [True: 2, False: 2]
  |  Branch (95:62): [True: 2, False: 0]
  ------------------
   96|      2|            if (wakeup_at == 0) {
  ------------------
  |  Branch (96:17): [True: 2, False: 0]
  ------------------
   97|      2|                pthread_cond_wait(&wtcp->cond, &wtcp->mutex);
   98|      2|            } else {
   99|      0|                struct timespec deadline;
  100|      0|                dtime2mtimespec(wakeup_at, &deadline);
  101|      0|                int rc = pthread_cond_timedwait(&wtcp->cond, &wtcp->mutex, &deadline);
  102|      0|                if (rc == ETIMEDOUT) {
  ------------------
  |  Branch (102:21): [True: 0, False: 0]
  ------------------
  103|      0|                    requested_i_wake = wtcp->requested_i_wake;
  104|      0|                    goto deliver;
  105|      0|                }
  106|      0|            }
  107|      2|        }
  108|      2|        if (atomic_load(&wtcp->tstate) != TSTATE_RUN) {
  ------------------
  |  |   31|      2|#define TSTATE_RUN   0x0
  ------------------
  |  Branch (108:13): [True: 2, False: 0]
  ------------------
  109|      2|            pthread_mutex_unlock(&wtcp->mutex);
  110|      2|            break;
  111|      2|        }
  112|       |
  113|      0|        requested_i_wake = wtcp->requested_i_wake;
  114|      0|        if (last_wakeup > 0 && (getdtime() - last_wakeup) < wakeup_ival) {
  ------------------
  |  Branch (114:13): [True: 0, False: 0]
  |  Branch (114:32): [True: 0, False: 0]
  ------------------
  115|      0|            wakeup_at = last_wakeup + wakeup_ival;
  116|      0|            pthread_mutex_unlock(&wtcp->mutex);
  117|      0|            continue;
  118|      0|        }
  119|      0|deliver:
  120|      0|        wtcp->delivered_i_wake = requested_i_wake;
  121|      0|        pthread_mutex_unlock(&wtcp->mutex);
  122|       |
  123|      0|        ret = write(wtcp->wakefds.rtp, &requested_i_wake,
  124|      0|          sizeof(requested_i_wake));
  125|      0|        RTPP_DBG_ASSERT(ret < 0 || ret == sizeof(requested_i_wake));
  126|      0|        ret = write(wtcp->wakefds.rtcp, &requested_i_wake,
  127|      0|          sizeof(requested_i_wake));
  128|      0|        RTPP_DBG_ASSERT(ret < 0 || ret == sizeof(requested_i_wake));
  129|      0|        last_wakeup = getdtime();
  130|      0|        wakeup_at = 0;
  131|      0|    }
  132|      2|}
rtpp_proc_wakeup.c:rtpp_proc_wakeup_dtor:
  181|      2|{
  182|       |
  183|      2|    rtpp_proc_wakeup_fin(&(pvt->pub));
  184|      2|    atomic_store(&pvt->tstate, TSTATE_CEASE);
  185|       |    /* notify worker thread */
  186|      2|    rtpp_proc_wakeup_nudge(&(pvt->pub));
  187|       |    pthread_join(pvt->thread_id, NULL);
  188|      2|    pthread_cond_destroy(&pvt->cond);
  189|      2|    pthread_mutex_destroy(&pvt->mutex);
  190|      2|}

rtpp_queue_init:
  234|     18|{
  235|     18|    struct rtpp_queue *queue;
  236|     18|    unsigned int cb_buflen;
  237|     18|    va_list ap;
  238|     18|    int eval;
  239|     18|    pthread_condattr_t cond_attr;
  240|       |
  241|     18|    cb_buflen = cb_capacity + 1;
  242|     18|    queue = rtpp_zmalloc(sizeof(*queue) + (sizeof(queue->circb.buffer[0]) * cb_buflen));
  243|     18|    if (queue == NULL)
  ------------------
  |  Branch (243:9): [True: 0, False: 18]
  ------------------
  244|      0|        goto e0;
  245|       |
  246|       |    /* Set the clock type for the condition variable to CLOCK_MONOTONIC */
  247|     18|    if (pthread_condattr_init(&cond_attr) != 0) {
  ------------------
  |  Branch (247:9): [True: 0, False: 18]
  ------------------
  248|      0|        goto e1;
  249|      0|    }
  250|     18|    if (pthread_condattr_setclock(&cond_attr, CLOCK_MONOTONIC) != 0) {
  ------------------
  |  Branch (250:9): [True: 0, False: 18]
  ------------------
  251|      0|        goto e2;
  252|      0|    }
  253|     18|    if ((eval = pthread_cond_init(&queue->cond, &cond_attr)) != 0) {
  ------------------
  |  Branch (253:9): [True: 0, False: 18]
  ------------------
  254|      0|        goto e2;
  255|      0|    }
  256|     18|    if (pthread_mutex_init(&queue->mutex, NULL) != 0) {
  ------------------
  |  Branch (256:9): [True: 0, False: 18]
  ------------------
  257|      0|        goto e3;
  258|      0|    }
  259|     18|    va_start(ap, fmt);
  260|     18|    int r = vsnprintf(queue->name, sizeof(queue->name), fmt, ap);
  261|     18|    va_end(ap);
  262|     18|    if (r >= sizeof(queue->name)) {
  ------------------
  |  Branch (262:9): [True: 0, False: 18]
  ------------------
  263|      0|        goto e4;
  264|      0|    }
  265|     18|    queue->qlen = 1;
  266|     18|    queue->mlen = -1;
  267|     18|    queue->circb.buflen = cb_buflen;
  268|     18|    pthread_condattr_destroy(&cond_attr);
  269|     18|    return (queue);
  270|      0|e4:
  271|      0|    pthread_mutex_destroy(&queue->mutex);
  272|      0|e3:
  273|      0|    pthread_cond_destroy(&queue->cond);
  274|      0|e2:
  275|      0|    pthread_condattr_destroy(&cond_attr);
  276|      0|e1:
  277|      0|    free(queue);
  278|      0|e0:
  279|       |    return (NULL);
  280|      0|}
rtpp_queue_setmaxlen:
  284|      8|{
  285|       |
  286|      8|    pthread_mutex_lock(&queue->mutex);
  287|      8|    int mlen = queue->mlen;
  288|      8|    queue->mlen = new_mlen;
  289|      8|    pthread_mutex_unlock(&queue->mutex);
  290|      8|    return (mlen);
  291|      8|}
rtpp_queue_destroy:
  295|     18|{
  296|     18|    while (rtpp_queue_get_length(queue) > 0) {
  ------------------
  |  Branch (296:12): [True: 0, False: 18]
  ------------------
  297|      0|        struct rtpp_wi *wip;
  298|      0|        wip = rtpp_queue_get_item(queue, 0);
  299|      0|        RTPP_OBJ_DECREF(wip);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  300|      0|    }
  301|     18|    pthread_cond_destroy(&queue->cond);
  302|     18|    pthread_mutex_destroy(&queue->mutex);
  303|     18|    free(queue);
  304|     18|}
rtpp_queue_setqlen:
  347|      4|{
  348|      4|    unsigned int rval;
  349|       |
  350|      4|    pthread_mutex_lock(&queue->mutex);
  351|      4|    rval = queue->qlen;
  352|      4|    queue->qlen = qlen;
  353|      4|    pthread_mutex_unlock(&queue->mutex);
  354|      4|    return (rval);
  355|      4|}
rtpp_queue_put_item:
  359|    268|{
  360|    268|    int rval = 0;
  361|       |
  362|    268|    pthread_mutex_lock(&queue->mutex);
  363|       |    /*
  364|       |     * If queue is not empty, push to the queue so that order of elements
  365|       |     * is preserved while pulling them out.
  366|       |     */
  367|    268|    if (queue->mlen != -1 && rtpp_queue_getclen(queue) >= queue->mlen) {
  ------------------
  |  Branch (367:9): [True: 8, False: 260]
  |  Branch (367:30): [True: 0, False: 8]
  ------------------
  368|      0|        rval = -1;
  369|      0|        goto out;
  370|      0|    }
  371|    268|    if ((queue->length > 0) || (circ_buf_push(&queue->circb, wi) != 0)) {
  ------------------
  |  Branch (371:9): [True: 0, False: 268]
  |  Branch (371:32): [True: 0, False: 268]
  ------------------
  372|      0|        RTPPQ_APPEND(queue, wi);
  ------------------
  |  |   61|      0|#define RTPPQ_APPEND(rqp, wip) {             \
  |  |   62|      0|    (wip)->next = NULL;                      \
  |  |   63|      0|    if ((rqp)->head == NULL) {               \
  |  |  ------------------
  |  |  |  Branch (63:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   64|      0|        (rqp)->head = (wip);                 \
  |  |   65|      0|        (rqp)->tail = (wip);                 \
  |  |   66|      0|    } else {                                 \
  |  |   67|      0|        (rqp)->tail->next = (wip);           \
  |  |   68|      0|        (rqp)->tail = (wip);                 \
  |  |   69|      0|    }                                        \
  |  |   70|      0|    (rqp)->length += 1;                      \
  |  |   71|      0|}
  ------------------
  373|       |#if 0
  374|       |        if (queue->length > 99 && queue->length % 100 == 0)
  375|       |            fprintf(stderr, "queue(%s): length %d\n", queue->name, queue->length);
  376|       |#endif
  377|      0|    }
  378|       |
  379|    268|    if ((queue->qlen == 1) || (queue->qlen > 1 && rtpp_queue_getclen(queue) % queue->qlen == 0) || wi->wi_type == RTPP_WI_TYPE_SGNL) {
  ------------------
  |  Branch (379:9): [True: 16, False: 252]
  |  Branch (379:32): [True: 0, False: 252]
  |  Branch (379:51): [True: 0, False: 0]
  |  Branch (379:100): [True: 0, False: 252]
  ------------------
  380|       |        /* notify worker thread */
  381|     16|        pthread_cond_signal(&queue->cond);
  382|     16|    }
  383|       |
  384|    268|out:
  385|    268|    pthread_mutex_unlock(&queue->mutex);
  386|    268|    return (rval);
  387|    268|}
rtpp_queue_pump:
  391|      6|{
  392|       |
  393|      6|    pthread_mutex_lock(&queue->mutex);
  394|      6|    if (rtpp_queue_getclen(queue) > 0) {
  ------------------
  |  Branch (394:9): [True: 0, False: 6]
  ------------------
  395|       |        /* notify worker thread */
  396|      0|        pthread_cond_signal(&queue->cond);
  397|      0|    }
  398|       |
  399|      6|    pthread_mutex_unlock(&queue->mutex);
  400|      6|}
rtpp_queue_get_item:
  425|     16|{
  426|     16|    struct rtpp_wi *wi;
  427|       |
  428|     16|    if (rtpp_queue_get_items(queue, &wi, 1, return_on_wake) == 0)
  ------------------
  |  Branch (428:9): [True: 0, False: 16]
  ------------------
  429|      0|        return (NULL);
  430|     16|    wi->next = NULL;
  431|     16|    return (wi);
  432|     16|}
rtpp_queue_get_items:
  436|     18|{
  437|     18|    int i;
  438|       |
  439|     18|    pthread_mutex_lock(&queue->mutex);
  440|     32|    while (rtpp_queue_getclen(queue) == 0) {
  ------------------
  |  Branch (440:12): [True: 14, False: 18]
  ------------------
  441|     14|        pthread_cond_wait(&queue->cond, &queue->mutex);
  442|     14|        if (rtpp_queue_getclen(queue) == 0 && return_on_wake != 0) {
  ------------------
  |  Branch (442:13): [True: 0, False: 14]
  |  Branch (442:47): [True: 0, False: 0]
  ------------------
  443|      0|            pthread_mutex_unlock(&queue->mutex);
  444|      0|            return (0);
  445|      0|        }
  446|     14|    }
  447|     18|    i = rtpp_queue_extract_items(queue, items, ilen);
  448|     18|    pthread_mutex_unlock(&queue->mutex);
  449|     18|    return (i);
  450|     18|}
rtpp_queue_get_length:
  475|  18.7k|{
  476|  18.7k|    int length;
  477|       |
  478|  18.7k|    pthread_mutex_lock(&queue->mutex);
  479|  18.7k|    length = rtpp_queue_getclen(queue);
  480|  18.7k|    pthread_mutex_unlock(&queue->mutex);
  481|  18.7k|    return (length);
  482|  18.7k|}
rtpp_queue_get_first_matching:
  505|  18.9k|{
  506|  18.9k|    struct rtpp_wi *wi, *wi_prev;
  507|  18.9k|    int i;
  508|       |
  509|  18.9k|    pthread_mutex_lock(&queue->mutex);
  510|  56.4k|    for (i = 0;; i++) {
  511|  56.4k|        if (circ_buf_peek(&queue->circb, i, &wi) != 0)
  ------------------
  |  Branch (511:13): [True: 18.7k, False: 37.7k]
  ------------------
  512|  18.7k|            break;
  513|  37.7k|        if (match_fn(wi, fn_args) == 0) {
  ------------------
  |  Branch (513:13): [True: 250, False: 37.4k]
  ------------------
  514|    250|            assert(circ_buf_remove(&queue->circb, i) == 0);
  ------------------
  |  Branch (514:13): [True: 0, False: 250]
  |  Branch (514:13): [True: 250, False: 0]
  ------------------
  515|    250|            pthread_mutex_unlock(&queue->mutex);
  516|    250|            return (wi);
  517|    250|        }
  518|  37.7k|    }
  519|  18.7k|    wi_prev = NULL;
  520|  18.7k|    for (wi = queue->head; wi != NULL; wi_prev = wi, wi = wi->next) {
  ------------------
  |  Branch (520:28): [True: 0, False: 18.7k]
  ------------------
  521|      0|        if (match_fn(wi, fn_args) == 0) {
  ------------------
  |  Branch (521:13): [True: 0, False: 0]
  ------------------
  522|      0|            RTPPQ_REMOVE_AFTER(queue, wi_prev);
  ------------------
  |  |   43|      0|#define RTPPQ_REMOVE_AFTER(rqp, wip) {       \
  |  |   44|      0|    struct rtpp_wi *_twip;                   \
  |  |   45|      0|    if ((wip) == NULL) {                     \
  |  |  ------------------
  |  |  |  Branch (45:9): [True: 0, False: 0]
  |  |  ------------------
  |  |   46|      0|        _twip = (rqp)->head;                 \
  |  |   47|      0|        RTPPQ_REMOVE_HEAD(rqp);              \
  |  |  ------------------
  |  |  |  |   35|      0|#define RTPPQ_REMOVE_HEAD(rqp) {             \
  |  |  |  |   36|      0|    if ((rqp)->tail == (rqp)->head) {        \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (36:9): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   37|      0|        (rqp)->tail = NULL;                  \
  |  |  |  |   38|      0|    }                                        \
  |  |  |  |   39|      0|    (rqp)->head = (rqp)->head->next;         \
  |  |  |  |   40|      0|    (rqp)->length -= 1;                      \
  |  |  |  |   41|      0|}
  |  |  ------------------
  |  |   48|      0|    } else if ((rqp)->tail == (wip)->next) { \
  |  |  ------------------
  |  |  |  Branch (48:16): [True: 0, False: 0]
  |  |  ------------------
  |  |   49|      0|        _twip = (wip)->next;                 \
  |  |   50|      0|        (wip)->next = NULL;                  \
  |  |   51|      0|        (rqp)->tail = (wip);                 \
  |  |   52|      0|        (rqp)->length -= 1;                  \
  |  |   53|      0|    } else {                                 \
  |  |   54|      0|        _twip = (wip)->next;                 \
  |  |   55|      0|        (wip)->next = _twip->next;           \
  |  |   56|      0|        (rqp)->length -= 1;                  \
  |  |   57|      0|    }                                        \
  |  |   58|      0|    _twip->next = NULL;                      \
  |  |   59|      0|}
  ------------------
  523|      0|            pthread_mutex_unlock(&queue->mutex);
  524|      0|            return (wi);
  525|      0|        }
  526|      0|    }
  527|  18.7k|    pthread_mutex_unlock(&queue->mutex);
  528|       |    return (NULL);
  529|  18.7k|}
rtpp_queue.c:rtpp_queue_getclen:
  308|  18.8k|{
  309|  18.8k|    int clen;
  310|       |
  311|  18.8k|    clen = queue->length;
  312|  18.8k|    if (queue->circb.head < queue->circb.tail) {
  ------------------
  |  Branch (312:9): [True: 0, False: 18.8k]
  ------------------
  313|      0|       clen += (queue->circb.head + queue->circb.buflen) - queue->circb.tail;
  314|  18.8k|    } else if (queue->circb.head > queue->circb.tail) {
  ------------------
  |  Branch (314:16): [True: 36, False: 18.7k]
  ------------------
  315|     36|       clen += queue->circb.head - queue->circb.tail;
  316|     36|    }
  317|       |
  318|  18.8k|    return (clen);
  319|  18.8k|}
rtpp_queue.c:circ_buf_push:
   67|    268|{
   68|    268|    unsigned int next;
   69|       |
   70|    268|    next = c->head + 1;  /* next is where head will point to after this write. */
   71|    268|    if (next == c->buflen)
  ------------------
  |  Branch (71:9): [True: 14, False: 254]
  ------------------
   72|     14|        next = 0;
   73|       |
   74|    268|    if (next == c->tail)  /* if the head + 1 == tail, circular buffer is full */
  ------------------
  |  Branch (74:9): [True: 0, False: 268]
  ------------------
   75|      0|        return(-1);
   76|       |
   77|       |#if RTPQ_DEBUG
   78|       |    assert(c->buffer[c->head] == NULL);
   79|       |#endif
   80|    268|    c->buffer[c->head] = data;  /* Load data and then move */
   81|    268|    c->head = next;             /* head to next data offset. */
   82|    268|    return(0);  /* return success to indicate successful push. */
   83|    268|}
rtpp_queue.c:rtpp_queue_extract_items:
  323|     18|{
  324|     18|    int i, j;
  325|       |
  326|     18|    i = circ_buf_popmany(&queue->circb, items, ilen);
  327|     18|    if ((i == ilen) || (queue->length == 0))
  ------------------
  |  Branch (327:9): [True: 16, False: 2]
  |  Branch (327:24): [True: 2, False: 0]
  ------------------
  328|     18|        return (i);
  329|      0|    items += i;
  330|      0|    ilen -= i;
  331|      0|    for (j = 0; j < ilen; j++) {
  ------------------
  |  Branch (331:17): [True: 0, False: 0]
  ------------------
  332|      0|        items[j] = queue->head;
  333|      0|        queue->head = items[j]->next;
  334|      0|        if (queue->head == NULL) {
  ------------------
  |  Branch (334:13): [True: 0, False: 0]
  ------------------
  335|       |            queue->tail = NULL;
  336|      0|            j += 1;
  337|      0|            break;
  338|      0|        }
  339|      0|    }
  340|      0|    queue->length -= j;
  341|      0|    i += j;
  342|      0|    return (i);
  343|     18|}
rtpp_queue.c:circ_buf_popmany:
   87|     18|{
   88|     18|    unsigned int next;
   89|     18|    unsigned int last;
   90|     18|    unsigned int copyn;
   91|     18|    unsigned int rval;
   92|       |
   93|     18|    rval = 0;
   94|     18|    RTPP_DBG_ASSERT(howmany > 0);
   95|     20|    while (!circ_buf_isempty(c)) {
  ------------------
  |  Branch (95:12): [True: 18, False: 2]
  ------------------
   96|     18|        next = last = c->tail + howmany - rval;
   97|     18|        if (c->head < c->tail) {
  ------------------
  |  Branch (97:13): [True: 0, False: 18]
  ------------------
   98|      0|            if (last >= c->buflen) {
  ------------------
  |  Branch (98:17): [True: 0, False: 0]
  ------------------
   99|      0|                last = c->buflen;
  100|      0|                next = 0;
  101|      0|            }
  102|     18|        } else {
  103|     18|            if (last > c->head) {
  ------------------
  |  Branch (103:17): [True: 2, False: 16]
  ------------------
  104|      2|                last = c->head;
  105|      2|                next = c->head;
  106|      2|            }
  107|     18|        }
  108|     18|        copyn = last - c->tail;
  109|     18|        memcpy(data, &(c->buffer[c->tail]), copyn * sizeof(data[0]));
  110|       |#if RTPQ_DEBUG
  111|       |        memset(&(c->buffer[c->tail]), '\0', copyn * sizeof(data[0]));
  112|       |#endif
  113|     18|        c->tail = next;
  114|     18|        rval += copyn;
  115|     18|        if (rval == howmany)
  ------------------
  |  Branch (115:13): [True: 16, False: 2]
  ------------------
  116|     16|            break;
  117|      2|        data += copyn;
  118|      2|    }
  119|       |#if RTPQ_DEBUG
  120|       |    assert(rval <= howmany);
  121|       |    assert(c->tail < c->buflen);
  122|       |#endif
  123|       |
  124|     18|    return(rval); /* Return number of objects popped */
  125|     18|}
rtpp_queue.c:circ_buf_isempty:
   60|  56.9k|{
   61|       |
   62|  56.9k|    return (c->head == c->tail); /* if the head == tail, we don't have any data */
   63|  56.9k|}
rtpp_queue.c:circ_buf_peek:
  129|  56.5k|{
  130|  56.5k|    unsigned int itmidx, clen;
  131|       |
  132|  56.5k|    if (circ_buf_isempty(c))
  ------------------
  |  Branch (132:9): [True: 0, False: 56.5k]
  ------------------
  133|      0|        return(-1);
  134|       |
  135|  56.5k|    if (c->head < c->tail) {
  ------------------
  |  Branch (135:9): [True: 6.66k, False: 49.8k]
  ------------------
  136|  6.66k|       clen = (c->head + c->buflen) - c->tail;
  137|  49.8k|    } else {
  138|  49.8k|       clen = c->head - c->tail;
  139|  49.8k|    }
  140|  56.5k|    if (offset >= clen)
  ------------------
  |  Branch (140:9): [True: 18.7k, False: 37.8k]
  ------------------
  141|  18.7k|        return(-1);
  142|       |
  143|  37.8k|    itmidx = c->tail + offset;  /* itmidx points to the item in question */
  144|  37.8k|    if(itmidx >= c->buflen)
  ------------------
  |  Branch (144:8): [True: 1.21k, False: 36.6k]
  ------------------
  145|  1.21k|        itmidx -= c->buflen;
  146|       |#if RTPQ_DEBUG
  147|       |    assert(itmidx < c->buflen);
  148|       |    assert(c->buffer[itmidx] != NULL);
  149|       |#endif
  150|       |
  151|  37.8k|    *data = c->buffer[itmidx];  /* Read data and then move */
  152|  37.8k|    return(0);  /* return success to indicate successful pop. */
  153|  56.5k|}
rtpp_queue.c:circ_buf_remove:
  190|    250|{
  191|    250|    unsigned int clen;
  192|    250|    struct rtpp_wi *data;
  193|       |
  194|    250|    if (circ_buf_isempty(c))
  ------------------
  |  Branch (194:9): [True: 0, False: 250]
  ------------------
  195|      0|        return(-1);
  196|       |
  197|    250|    if (c->head < c->tail) {
  ------------------
  |  Branch (197:9): [True: 28, False: 222]
  ------------------
  198|     28|       clen = (c->head + c->buflen) - c->tail;
  199|    222|    } else {
  200|    222|       clen = c->head - c->tail;
  201|    222|    }
  202|    250|    if (offset >= clen)
  ------------------
  |  Branch (202:9): [True: 0, False: 250]
  ------------------
  203|      0|        return(-1);
  204|       |
  205|    374|    for (; offset > 0; offset--) {
  ------------------
  |  Branch (205:12): [True: 124, False: 250]
  ------------------
  206|    124|        assert(circ_buf_peek(c, offset - 1, &data) == 0);
  ------------------
  |  Branch (206:9): [True: 0, False: 124]
  |  Branch (206:9): [True: 124, False: 0]
  ------------------
  207|    124|        assert(circ_buf_replace(c, offset, &data) == 0);
  ------------------
  |  Branch (207:9): [True: 0, False: 124]
  |  Branch (207:9): [True: 124, False: 0]
  ------------------
  208|    124|    }
  209|       |#if RTPQ_DEBUG
  210|       |    assert(c->buffer[c->tail] != NULL);
  211|       |    c->buffer[c->tail] = NULL;
  212|       |#endif
  213|    250|    c->tail += 1;
  214|    250|    if (c->tail == c->buflen)
  ------------------
  |  Branch (214:9): [True: 14, False: 236]
  ------------------
  215|     14|        c->tail = 0;
  216|    250|    return(0);  /* return success to indicate successful removal. */
  217|    250|}
rtpp_queue.c:circ_buf_replace:
  157|    124|{
  158|    124|    unsigned int itmidx, clen;
  159|    124|    struct rtpp_wi *tdata;
  160|       |
  161|    124|    if (circ_buf_isempty(c))
  ------------------
  |  Branch (161:9): [True: 0, False: 124]
  ------------------
  162|      0|        return(-1);
  163|       |
  164|    124|    if (c->head < c->tail) {
  ------------------
  |  Branch (164:9): [True: 15, False: 109]
  ------------------
  165|     15|       clen = (c->head + c->buflen) - c->tail;
  166|    109|    } else {
  167|    109|       clen = c->head - c->tail;
  168|    109|    }
  169|    124|    if (offset >= clen)
  ------------------
  |  Branch (169:9): [True: 0, False: 124]
  ------------------
  170|      0|        return(-1);
  171|       |
  172|    124|    itmidx = c->tail + offset;  /* itmidx points to the item in question */
  173|    124|    if(itmidx >= c->buflen)
  ------------------
  |  Branch (173:8): [True: 9, False: 115]
  ------------------
  174|      9|        itmidx -= c->buflen;
  175|       |#if RTPQ_DEBUG
  176|       |    assert(itmidx < c->buflen);
  177|       |    assert(c->buffer[itmidx] != NULL);
  178|       |#endif
  179|    124|    tdata = c->buffer[itmidx];
  180|       |#if RTPQ_DEBUG
  181|       |    assert(tdata != NULL);
  182|       |#endif
  183|    124|    c->buffer[itmidx] = *data;  /* Read data and then replace */
  184|    124|    *data = tdata;
  185|    124|    return(0);  /* return success to indicate successful pop. */
  186|    124|}

rtpp_refcnt_ctor:
  134|      2|{
  135|      2|    struct rtpp_refcnt_priv *pvt;
  136|       |
  137|      2|    pvt = rtpp_zmalloc(sizeof(struct rtpp_refcnt_priv));
  138|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (138:9): [True: 0, False: 2]
  ------------------
  139|      0|        return (NULL);
  140|      0|    }
  141|      2|#if !defined(RTPP_CHECK_LEAKS)
  142|      2|    pvt->dtors[0] = DTOR_PAIR_INIT(free, pvt);
  ------------------
  |  |  129|      2|#define DTOR_PAIR_INIT(fn, fd) (struct dtor_pair){.f=(fn), .data=(fd)}
  ------------------
  143|       |#else
  144|       |    pvt->dtors[0] = DTOR_PAIR_INIT(rtpp_refcnt_free, pvt);
  145|       |#endif
  146|      2|    if (dtor_f != NULL) {
  ------------------
  |  Branch (146:9): [True: 2, False: 0]
  ------------------
  147|      2|        pvt->dtors[1] = DTOR_PAIR_INIT(dtor_f, data);
  ------------------
  |  |  129|      2|#define DTOR_PAIR_INIT(fn, fd) (struct dtor_pair){.f=(fn), .data=(fd)}
  ------------------
  148|      2|        atomic_init(&pvt->ulen, 1);
  149|      2|    } else if (data != NULL) {
  ------------------
  |  Branch (149:16): [True: 0, False: 0]
  ------------------
  150|      0|#if !defined(RTPP_CHECK_LEAKS)
  151|      0|        pvt->dtors[1] = DTOR_PAIR_INIT(free, data);
  ------------------
  |  |  129|      0|#define DTOR_PAIR_INIT(fn, fd) (struct dtor_pair){.f=(fn), .data=(fd)}
  ------------------
  152|       |#else
  153|       |        pvt->dtors[1] = DTOR_PAIR_INIT(rtpp_refcnt_free, data);
  154|       |#endif
  155|      0|        atomic_init(&pvt->ulen, 1);
  156|      0|    }
  157|       |#if defined(RTPP_DEBUG)
  158|       |    pvt->pub.smethods = rtpp_refcnt_smethods;
  159|       |#endif
  160|      2|    return (&pvt->pub);
  161|      2|}
rtpp_refcnt_ctor_pa:
  165|    101|{
  166|    101|    struct rtpp_refcnt_priv *pvt;
  167|       |
  168|    101|    pvt = (struct rtpp_refcnt_priv *)pap;
  169|    101|    if (data != NULL) {
  ------------------
  |  Branch (169:9): [True: 101, False: 0]
  ------------------
  170|    101|#if !defined(RTPP_CHECK_LEAKS)
  171|    101|        pvt->dtors[0] = DTOR_PAIR_INIT(free, data);
  ------------------
  |  |  129|    101|#define DTOR_PAIR_INIT(fn, fd) (struct dtor_pair){.f=(fn), .data=(fd)}
  ------------------
  172|       |#else
  173|       |        pvt->dtors[0] = DTOR_PAIR_INIT(rtpp_refcnt_free, data);
  174|       |#endif
  175|    101|    } else {
  176|      0|        atomic_init(&pvt->ulen, -1);
  177|      0|    }
  178|       |#if defined(RTPP_DEBUG)
  179|       |    pvt->pub.smethods = rtpp_refcnt_smethods;
  180|       |#endif
  181|    101|    return (&pvt->pub);
  182|    101|}
rtpp_refcnt.c:rtpp_refcnt_incref:
  233|     48|{
  234|     48|    struct rtpp_refcnt_priv *pvt;
  235|     48|    MAYBE_UNUSED int oldcnt;
  ------------------
  |  |  196|     48|#define MAYBE_UNUSED [[maybe_unused]]
  ------------------
  236|       |
  237|     48|    PUB2PVT(pub, pvt);
  ------------------
  |  |  169|     48|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  238|     48|    RTPP_DBGCODE() {
  ------------------
  |  |   86|     48|#define RTPP_DBGCODE(x) if (_DCOND_##x)
  |  |  ------------------
  |  |  |  |   77|     48|#define _DCOND_ RTPP_DBG_NO
  |  |  |  |  ------------------
  |  |  |  |  |  |   34|     48|#define RTPP_DBG_NO	0
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (34:21): [Folded, False: 48]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  239|      0|        oldcnt = atomic_load_explicit(&pvt->cnt, memory_order_relaxed);
  240|      0|        RTPP_DBG_ASSERT(oldcnt >= 0 && oldcnt < RC_ABS_MAX);
  241|      0|    }
  242|     48|    if (pvt->shared) {
  ------------------
  |  Branch (242:9): [True: 18, False: 30]
  ------------------
  243|     18|        oldcnt = atomic_fetch_add_explicit(&pvt->cnt, 1, memory_order_relaxed);
  244|     30|    } else {
  245|     30|        oldcnt = 0;
  246|     30|        pvt->shared = 1;
  247|     30|        atomic_store_explicit(&pvt->cnt, 1, memory_order_release);
  248|     30|    }
  249|     48|#if RTPP_DEBUG_refcnt
  250|     48|    if (pvt->trace == 1) {
  ------------------
  |  Branch (250:9): [True: 0, False: 48]
  ------------------
  251|       |#ifdef RTPP_DEBUG
  252|       |        char *dbuf;
  253|       |        rtpp_memdeb_asprintf(&dbuf, MEMDEB_SYM, mlp,
  254|       |          CODEPTR_FMT(": rtpp_refcnt(%p, %u).incref()", mlp, pub, oldcnt+1));
  255|       |        if (dbuf != NULL) {
  256|       |            rtpp_stacktrace_print(dbuf);
  257|       |            free(dbuf);
  258|       |        }
  259|       |#else
  260|      0|        fprintf(stderr, CODEPTR_FMT(": rtpp_refcnt(%p, %u).incref()\n", mlp, pub, oldcnt+1));
  ------------------
  |  |   30|      0|#define CODEPTR_FMT(fmt, mlp, args...) ("%s+%d, %s()" fmt), (mlp)->fname, (mlp)->linen, (mlp)->funcn, ## args
  ------------------
  261|      0|#endif
  262|      0|    }
  263|     48|#endif
  264|     48|    RTPP_DBG_ASSERT(oldcnt >= 0);
  265|     48|}
rtpp_refcnt.c:rtpp_refcnt_decref:
  290|    151|{
  291|    151|    struct rtpp_refcnt_priv *pvt;
  292|    151|    int oldcnt;
  293|       |
  294|    151|    PUB2PVT(pub, pvt);
  ------------------
  |  |  169|    151|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  295|    151|    RTPP_DBGCODE() {
  ------------------
  |  |   86|    151|#define RTPP_DBGCODE(x) if (_DCOND_##x)
  |  |  ------------------
  |  |  |  |   77|    151|#define _DCOND_ RTPP_DBG_NO
  |  |  |  |  ------------------
  |  |  |  |  |  |   34|    151|#define RTPP_DBG_NO	0
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (34:21): [Folded, False: 151]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  296|      0|        oldcnt = atomic_load_explicit(&pvt->cnt, memory_order_relaxed);
  297|      0|        RTPP_DBG_ASSERT(oldcnt >= 0 && oldcnt < RC_ABS_MAX);
  298|      0|    }
  299|    151|#if RTPP_DEBUG_refcnt
  300|       |    /*
  301|       |     * Fetch flags before decrement, otherwise we can decrement and then
  302|       |     * somebody decrements it and deallocates. Atomic is not needed since
  303|       |     * this initialized at the init time.
  304|       |     */
  305|    151|    unsigned int trace = pvt->trace;
  306|    151|#endif
  307|    151|    if (pvt->shared) {
  ------------------
  |  Branch (307:9): [True: 78, False: 73]
  ------------------
  308|     78|        oldcnt = atomic_fetch_sub_explicit(&pvt->cnt, 1, memory_order_release);
  309|     78|    } else {
  310|     73|        oldcnt = 0;
  311|     73|    }
  312|    151|#if RTPP_DEBUG_refcnt
  313|    151|    if (trace) {
  ------------------
  |  Branch (313:9): [True: 0, False: 151]
  ------------------
  314|       |#ifdef RTPP_DEBUG
  315|       |        char *dbuf;
  316|       |        rtpp_memdeb_asprintf(&dbuf, MEMDEB_SYM, mlp,
  317|       |          CODEPTR_FMT(": rtpp_refcnt(%p, %u).decref()", mlp, pub, oldcnt+1));
  318|       |        if (dbuf != NULL) {
  319|       |            rtpp_stacktrace_print(dbuf);
  320|       |            free(dbuf);
  321|       |        }
  322|       |#else
  323|      0|        fprintf(stderr, CODEPTR_FMT(": rtpp_refcnt(%p, %u).decref()\n", mlp, pub, oldcnt+1));
  ------------------
  |  |   30|      0|#define CODEPTR_FMT(fmt, mlp, args...) ("%s+%d, %s()" fmt), (mlp)->fname, (mlp)->linen, (mlp)->funcn, ## args
  ------------------
  324|      0|#endif
  325|      0|    }
  326|    151|#endif
  327|    151|    RTPP_DBG_ASSERT(oldcnt >= 0);
  328|    151|    if (oldcnt == 0) {
  ------------------
  |  Branch (328:9): [True: 103, False: 48]
  ------------------
  329|    103|        if (pvt->shared) {
  ------------------
  |  Branch (329:13): [True: 30, False: 73]
  ------------------
  330|     30|            atomic_thread_fence(memory_order_acquire);
  331|     30|        }
  332|    103|        int ulen = atomic_load_explicit(&pvt->ulen, memory_order_relaxed);
  333|    330|        for (int i = ulen; i >= 0; i--) {
  ------------------
  |  Branch (333:28): [True: 227, False: 103]
  ------------------
  334|    227|            struct dtor_pair *dp = &pvt->dtors[i];
  335|    227|#if RTPP_DEBUG_refcnt
  336|    227|            if (trace) {
  ------------------
  |  Branch (336:17): [True: 0, False: 227]
  ------------------
  337|      0|                Dl_info info;
  338|      0|                if (dladdr(dp->f, &info) && info.dli_sname != NULL)
  ------------------
  |  Branch (338:21): [True: 0, False: 0]
  |  Branch (338:45): [True: 0, False: 0]
  ------------------
  339|      0|                    fprintf(stderr, "calling destructor %s@<%p>(%p)\n", info.dli_sname,
  340|      0|                      dp->f, dp->data);
  341|      0|                else
  342|      0|                    fprintf(stderr, "calling destructor @<%p>(%p)\n", dp->f, dp->data);
  343|      0|            }
  344|    227|#endif
  345|    227|            if (i == 0)
  ------------------
  |  Branch (345:17): [True: 103, False: 124]
  ------------------
  346|    103|                rtpp_refcnt_fin(pub);
  347|    227|            if (dp->f != NULL) {
  ------------------
  |  Branch (347:17): [True: 191, False: 36]
  ------------------
  348|    191|                dp->f(dp->data);
  349|    191|            } else {
  350|     36|                struct rtpp_refcnt *other = dp->rcnt;
  351|     36|                rtpp_refcnt_decref(other, mlp);
  352|     36|            }
  353|    227|        }
  354|    103|    }
  355|    151|}
rtpp_refcnt.c:rtpp_refcnt_attach:
  187|     86|{
  188|     86|    struct rtpp_refcnt_priv *pvt;
  189|       |
  190|     86|    PUB2PVT(pub, pvt);
  ------------------
  |  |  169|     86|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  191|     86|    int ulen = atomic_fetch_add_explicit(&pvt->ulen, 1, memory_order_relaxed) + 1;
  192|     86|    if (ulen >= MAX_DTORS) {
  ------------------
  |  |   32|     86|#define MAX_DTORS 24
  ------------------
  |  Branch (192:9): [True: 0, False: 86]
  ------------------
  193|      0|        atomic_fetch_sub_explicit(&pvt->ulen, 1, memory_order_relaxed);
  194|      0|        return -1;
  195|      0|    }
  196|     86|    pvt->dtors[ulen] = DTOR_PAIR_INIT(dtor_f, data);
  ------------------
  |  |  129|     86|#define DTOR_PAIR_INIT(fn, fd) (struct dtor_pair){.f=(fn), .data=(fd)}
  ------------------
  197|     86|    return 0;
  198|     86|}
rtpp_refcnt.c:rtpp_refcnt_attach_nc:
  203|     76|{
  204|     76|    MAYBE_UNUSED int r = rtpp_refcnt_attach(pub, dtor_f, data);
  ------------------
  |  |  196|     76|#define MAYBE_UNUSED [[maybe_unused]]
  ------------------
  205|     76|    RTPP_DBG_ASSERT(r == 0);
  206|     76|}
rtpp_refcnt.c:rtpp_refcnt_attach_rc:
  210|     36|{
  211|     36|    struct rtpp_refcnt_priv *pvt;
  212|       |
  213|     36|    PUB2PVT(pub, pvt);
  ------------------
  |  |  169|     36|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  214|     36|    int ulen = atomic_fetch_add_explicit(&pvt->ulen, 1, memory_order_relaxed) + 1;
  215|     36|    if (ulen >= MAX_DTORS) {
  ------------------
  |  |   32|     36|#define MAX_DTORS 24
  ------------------
  |  Branch (215:9): [True: 0, False: 36]
  ------------------
  216|      0|        atomic_fetch_sub_explicit(&pvt->ulen, 1, memory_order_relaxed);
  217|      0|        return -1;
  218|      0|    }
  219|     36|    pvt->dtors[ulen] = DTOR_RC_INIT(other);
  ------------------
  |  |  130|     36|#define DTOR_RC_INIT(rc) (struct dtor_pair){.rcnt=(rc)}
  ------------------
  220|     36|    return 0;
  221|     36|}
rtpp_refcnt.c:rtpp_refcnt_attach_rc_nc:
  226|     26|{
  227|     26|    MAYBE_UNUSED int r = rtpp_refcnt_attach_rc(pub, other);
  ------------------
  |  |  196|     26|#define MAYBE_UNUSED [[maybe_unused]]
  ------------------
  228|     26|    RTPP_DBG_ASSERT(r == 0);
  229|     26|}

rtpp_sbuf_ctor:
   67|      2|{
   68|      2|    struct rtpp_sbuf *sbp;
   69|       |
   70|      2|#if !defined(RTPP_CHECK_LEAKS)
   71|      2|    sbp = malloc(sizeof(struct rtpp_sbuf));
   72|       |#else
   73|       |    sbp = rtpp_memdeb_malloc(sizeof(struct rtpp_sbuf), memdeb_p, mlp);
   74|       |#endif
   75|      2|    if (sbp == NULL)
  ------------------
  |  Branch (75:9): [True: 0, False: 2]
  ------------------
   76|      0|        return (NULL);
   77|      2|    memset(sbp, '\0', sizeof(struct rtpp_sbuf));
   78|      2|#if !defined(RTPP_CHECK_LEAKS)
   79|      2|    sbp->bp = sbp->cp = malloc(ilen);
   80|       |#else
   81|       |    sbp->bp = sbp->cp = rtpp_memdeb_malloc(ilen, memdeb_p, mlp);
   82|       |#endif
   83|      2|    if (sbp->bp == NULL) {
  ------------------
  |  Branch (83:9): [True: 0, False: 2]
  ------------------
   84|      0|        free(sbp);
   85|      0|        return (NULL);
   86|      0|    }
   87|      2|    sbp->cp[0] = '\0';
   88|      2|    sbp->alen = ilen;
   89|      2|    return(sbp);
   90|      2|}
rtpp_sbuf_dtor:
   98|      2|{
   99|       |
  100|      2|#if !defined(RTPP_CHECK_LEAKS)
  101|      2|    free(sbp->bp);
  102|      2|    free(sbp);
  103|       |#else
  104|       |    rtpp_memdeb_free(sbp->bp, memdeb_p, mlp);
  105|       |    rtpp_memdeb_free(sbp, memdeb_p, mlp);
  106|       |#endif
  107|      2|}

rtpp_sessinfo_ctor:
  177|      2|{
  178|      2|    struct rtpp_sessinfo *sessinfo;
  179|      2|    struct rtpp_sessinfo_priv *pvt;
  180|       |
  181|      2|    pvt = rtpp_rzmalloc(sizeof(struct rtpp_sessinfo_priv), PVT_RCOFFS(pvt));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
  182|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (182:9): [True: 0, False: 2]
  ------------------
  183|      0|        return (NULL);
  184|      0|    }
  185|      2|    sessinfo = &(pvt->pub);
  186|      2|    if (rtpp_polltbl_hst_alloc(&pvt->hst_rtp, 10) != 0) {
  ------------------
  |  Branch (186:9): [True: 0, False: 2]
  ------------------
  187|      0|        goto e6;
  188|      0|    }
  189|      2|    if (rtpp_polltbl_hst_alloc(&pvt->hst_rtcp, 10) != 0) {
  ------------------
  |  Branch (189:9): [True: 0, False: 2]
  ------------------
  190|      0|        goto e7;
  191|      0|    }
  192|      2|    pvt->hst_rtp.streams_wrt = cfsp->rtp_streams_wrt;
  193|      2|    pvt->hst_rtcp.streams_wrt = cfsp->rtcp_streams_wrt;
  194|       |
  195|      2|    PUBINST_FININIT(&pvt->pub, pvt, rtpp_sessinfo_dtor);
  ------------------
  |  |   76|      2|    RTPP_OBJ_DTOR_ATTACH_s((pub_inst), (rtpp_refcnt_dtor_t)(dtor), \
  |  |  ------------------
  |  |  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |   77|      2|      pvt_inst);
  ------------------
  196|      2|    return (sessinfo);
  197|       |
  198|      0|e7:
  199|      0|    rtpp_polltbl_hst_dtor(&pvt->hst_rtp);
  200|      0|e6:
  201|      0|    RTPP_OBJ_DECREF(&(pvt->pub));
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  202|       |    return (NULL);
  203|      0|}
rtpp_polltbl_free:
  375|      4|{
  376|      4|    int i;
  377|       |
  378|      4|    if (ptbl->aloclen != 0) {
  ------------------
  |  Branch (378:9): [True: 0, False: 4]
  ------------------
  379|      0|        for (i = 0; i < ptbl->curlen; i++) {
  ------------------
  |  Branch (379:21): [True: 0, False: 0]
  ------------------
  380|      0|            int fd = CALL_SMETHOD(ptbl->mds[i].skt, getfd);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  381|      0|            rtpp_epoll_ctl(ptbl->epfd, EPOLL_CTL_DEL, fd, NULL);
  382|      0|            RTPP_OBJ_DECREF(ptbl->mds[i].skt);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  383|      0|        }
  384|      0|        free(ptbl->mds);
  385|      0|    }
  386|      4|    close(ptbl->wakefd[0]);
  387|      4|    close(ptbl->epfd);
  388|      4|}
rtpp_sessinfo.c:rtpp_sinfo_sync_polltbl:
  393|      8|{
  394|      8|    struct rtpp_sessinfo_priv *pvt;
  395|      8|    struct rtpp_polltbl_mdata *mds;
  396|      8|    struct rtpp_polltbl_hst *hp;
  397|      8|    struct rtpp_polltbl_hst_ent *clog;
  398|      8|    int i, ulen;
  399|       |
  400|      8|    PUB2PVT(sessinfo, pvt);
  ------------------
  |  |  169|      8|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  401|       |
  402|      8|    hp = (pipe_type == PIPE_RTP) ? &pvt->hst_rtp : &pvt->hst_rtcp;
  ------------------
  |  |   35|      8|#define PIPE_RTP        1
  ------------------
  |  Branch (402:10): [True: 4, False: 4]
  ------------------
  403|       |
  404|      8|    pthread_mutex_lock(&hp->lock);
  405|      8|    if (hp->ulen == 0) {
  ------------------
  |  Branch (405:9): [True: 8, False: 0]
  ------------------
  406|      8|        pthread_mutex_unlock(&hp->lock);
  407|      8|        return (0);
  408|      8|    }
  409|       |
  410|      0|    if (hp->ulen > ptbl->aloclen - ptbl->curlen) {
  ------------------
  |  Branch (410:9): [True: 0, False: 0]
  ------------------
  411|      0|        int alen = hp->ulen + ptbl->curlen;
  412|       |
  413|      0|        mds = realloc(ptbl->mds, (alen * sizeof(struct rtpp_polltbl_mdata)));
  414|      0|        if (mds == NULL) {
  ------------------
  |  Branch (414:13): [True: 0, False: 0]
  ------------------
  415|      0|            goto e0;
  416|      0|        }
  417|      0|        ptbl->mds = mds;
  418|      0|        ptbl->aloclen = alen;
  419|      0|    }
  420|       |
  421|      0|    struct rtpp_polltbl_hst_part hpp = hp->main;
  422|      0|    hp->main = hp->shadow;
  423|      0|    hp->shadow = hpp;
  424|      0|    clog = hpp.clog;
  425|      0|    ulen = hp->ulen;
  426|      0|    hp->ulen = 0;
  427|      0|    ptbl->streams_wrt = hp->streams_wrt;
  428|      0|    pthread_mutex_unlock(&hp->lock);
  429|       |
  430|      0|    for (i = 0; i < ulen; i++) {
  ------------------
  |  Branch (430:17): [True: 0, False: 0]
  ------------------
  431|      0|        struct rtpp_polltbl_hst_ent *hep;
  432|      0|        int session_index, movelen;
  433|      0|        struct epoll_event event;
  434|       |
  435|      0|        hep = clog + i;
  436|      0|        switch (hep->op) {
  ------------------
  |  Branch (436:17): [True: 0, False: 0]
  ------------------
  437|      0|        case HST_ADD:
  ------------------
  |  Branch (437:9): [True: 0, False: 0]
  ------------------
  438|       |#ifdef RTPP_DEBUG
  439|       |            assert(find_polltbl_idx(ptbl, hep->stuid) < 0);
  440|       |#endif
  441|      0|            session_index = ptbl->curlen;
  442|      0|            event.events = EPOLLIN;
  443|      0|            event.data.ptr = hep->skt;
  444|      0|            rtpp_epoll_ctl(ptbl->epfd, EPOLL_CTL_ADD, CALL_SMETHOD(hep->skt, getfd), &event);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  445|      0|            ptbl->mds[session_index].stuid = hep->stuid;
  446|      0|            ptbl->mds[session_index].skt = hep->skt;
  447|      0|            ptbl->curlen++;
  448|      0|            break;
  449|       |
  450|      0|        case HST_DEL:
  ------------------
  |  Branch (450:9): [True: 0, False: 0]
  ------------------
  451|      0|            session_index = find_polltbl_idx(ptbl, hep->stuid);
  452|      0|            assert(session_index > -1);
  ------------------
  |  Branch (452:13): [True: 0, False: 0]
  |  Branch (452:13): [True: 0, False: 0]
  ------------------
  453|      0|            rtpp_epoll_ctl(ptbl->epfd, EPOLL_CTL_DEL, CALL_SMETHOD(ptbl->mds[session_index].skt, getfd), NULL);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  454|      0|            RTPP_OBJ_DECREF(ptbl->mds[session_index].skt);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  455|      0|            movelen = (ptbl->curlen - session_index - 1);
  456|      0|            if (movelen > 0) {
  ------------------
  |  Branch (456:17): [True: 0, False: 0]
  ------------------
  457|      0|                memmove(&ptbl->mds[session_index], &ptbl->mds[session_index + 1],
  458|      0|                  movelen * sizeof(ptbl->mds[0]));
  459|      0|            }
  460|      0|            ptbl->curlen--;
  461|      0|            break;
  462|       |
  463|      0|        case HST_UPD:
  ------------------
  |  Branch (463:9): [True: 0, False: 0]
  ------------------
  464|      0|            session_index = find_polltbl_idx(ptbl, hep->stuid);
  465|      0|            assert(session_index > -1);
  ------------------
  |  Branch (465:13): [True: 0, False: 0]
  |  Branch (465:13): [True: 0, False: 0]
  ------------------
  466|      0|            rtpp_epoll_ctl(ptbl->epfd, EPOLL_CTL_DEL, CALL_SMETHOD(ptbl->mds[session_index].skt, getfd), NULL);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  467|      0|            RTPP_OBJ_DECREF(ptbl->mds[session_index].skt);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  468|      0|            event.events = EPOLLIN;
  469|      0|            event.data.ptr = hep->skt;
  470|      0|            rtpp_epoll_ctl(ptbl->epfd, EPOLL_CTL_ADD, CALL_SMETHOD(hep->skt, getfd), &event);
  ------------------
  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      0|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  471|      0|            ptbl->mds[session_index].skt = hep->skt;
  472|      0|            break;
  473|      0|        }
  474|      0|    }
  475|      0|    ptbl->revision += ulen;
  476|       |
  477|      0|    return (1);
  478|      0|e0:
  479|      0|    for (i = 0; i < hp->ulen; i++) {
  ------------------
  |  Branch (479:17): [True: 0, False: 0]
  ------------------
  480|      0|        struct rtpp_polltbl_hst_ent *hep;
  481|       |
  482|      0|        hep = hp->main.clog + i;
  483|      0|        if (hep->skt != NULL) {
  ------------------
  |  Branch (483:13): [True: 0, False: 0]
  ------------------
  484|      0|            RTPP_OBJ_DECREF(hep->skt);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  485|      0|        }
  486|      0|    }
  487|      0|    hp->ulen = 0;
  488|      0|    pthread_mutex_unlock(&hp->lock);
  489|      0|    return (-1);
  490|      0|}
rtpp_sessinfo.c:rtpp_polltbl_hst_alloc:
  102|      4|{
  103|       |
  104|      4|    hp->main.clog = rtpp_zmalloc(sizeof(struct rtpp_polltbl_hst_ent) * alen);
  105|      4|    if (hp->main.clog == NULL) {
  ------------------
  |  Branch (105:9): [True: 0, False: 4]
  ------------------
  106|      0|        goto e0;
  107|      0|    }
  108|      4|    hp->shadow.clog = rtpp_zmalloc(sizeof(struct rtpp_polltbl_hst_ent) * alen);
  109|      4|    if (hp->shadow.clog == NULL) {
  ------------------
  |  Branch (109:9): [True: 0, False: 4]
  ------------------
  110|      0|        goto e1;
  111|      0|    }
  112|      4|    if (pthread_mutex_init(&hp->lock, NULL) != 0)
  ------------------
  |  Branch (112:9): [True: 0, False: 4]
  ------------------
  113|      0|        goto e2;
  114|      4|    hp->main.alen = hp->shadow.alen = hp->ilen = alen;
  115|      4|    return (0);
  116|      0|e2:
  117|      0|    free(hp->shadow.clog);
  118|      0|e1:
  119|      0|    free(hp->main.clog);
  120|      0|e0:
  121|      0|    return (-1);
  122|      0|}
rtpp_sessinfo.c:rtpp_polltbl_hst_dtor:
  126|      4|{
  127|      4|    int i;
  128|      4|    struct rtpp_polltbl_hst_ent *hep;
  129|       |
  130|      4|    for (i = 0; i < hp->ulen; i++) {
  ------------------
  |  Branch (130:17): [True: 0, False: 4]
  ------------------
  131|      0|        hep = hp->main.clog + i;
  132|      0|        if (hep->skt != NULL) {
  ------------------
  |  Branch (132:13): [True: 0, False: 0]
  ------------------
  133|      0|            RTPP_OBJ_DECREF(hep->skt);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  134|      0|        }
  135|      0|    }
  136|      4|    if (hp->main.alen > 0) {
  ------------------
  |  Branch (136:9): [True: 4, False: 0]
  ------------------
  137|      4|        free(hp->shadow.clog);
  138|      4|        free(hp->main.clog);
  139|      4|        pthread_mutex_destroy(&hp->lock);
  140|      4|    }
  141|      4|}
rtpp_sessinfo.c:rtpp_sessinfo_dtor:
  207|      2|{
  208|       |
  209|      2|    rtpp_sessinfo_fin(&(pvt->pub));
  210|      2|    rtpp_polltbl_hst_dtor(&pvt->hst_rtp);
  211|      2|    rtpp_polltbl_hst_dtor(&pvt->hst_rtcp);
  212|      2|}

rtpp_stats_ctor:
  193|      2|{
  194|      2|    struct rtpp_stats_full *fp;
  195|      2|    struct rtpp_stats *pub;
  196|      2|    struct rtpp_stats_priv *pvt;
  197|      2|    struct rtpp_stat *st;
  198|      2|    struct rtpp_stat_derived *dst;
  199|      2|    int i, idx;
  200|       |
  201|      2|    fp = rtpp_rzmalloc(sizeof(struct rtpp_stats_full), PVT_RCOFFS(fp));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
  202|      2|    if (fp == NULL) {
  ------------------
  |  Branch (202:9): [True: 0, False: 2]
  ------------------
  203|      0|        goto e0;
  204|      0|    }
  205|      2|    pub = &(fp->pub);
  206|      2|    pvt = &(fp->pvt);
  207|      2|    pvt->stats = rtpp_zmalloc(sizeof(struct rtpp_stat) *
  208|      2|      count_rtpp_stats(default_stats));
  209|      2|    if (pvt->stats == NULL) {
  ------------------
  |  Branch (209:9): [True: 0, False: 2]
  ------------------
  210|      0|        goto e1;
  211|      0|    }
  212|      2|    i = count_rtpp_stats_derived(default_stats);
  213|      2|    if (i > 0) {
  ------------------
  |  Branch (213:9): [True: 2, False: 0]
  ------------------
  214|      2|        pvt->dstats = rtpp_zmalloc(sizeof(struct rtpp_stat_derived) * i);
  215|      2|        if (pvt->dstats == NULL)
  ------------------
  |  Branch (215:13): [True: 0, False: 2]
  ------------------
  216|      0|            goto e2;
  217|      2|    }
  218|     60|    for (i = 0; default_stats[i].name != NULL; i++) {
  ------------------
  |  Branch (218:17): [True: 58, False: 2]
  ------------------
  219|     58|        st = &pvt->stats[pvt->nstats];
  220|     58|        st->descr = &default_stats[i];
  221|     58|        if (pthread_mutex_init(&st->mutex, NULL) != 0) {
  ------------------
  |  Branch (221:13): [True: 0, False: 58]
  ------------------
  222|      0|            while ((pvt->nstats - 1) >= 0) {
  ------------------
  |  Branch (222:20): [True: 0, False: 0]
  ------------------
  223|      0|                st = &pvt->stats[pvt->nstats - 1];
  224|      0|                pthread_mutex_destroy(&st->mutex);
  225|      0|                pvt->nstats -= 1;
  226|      0|            }
  227|      0|            goto e2;
  228|      0|        }
  229|     58|        if (default_stats[i].type == RTPP_CNT_U64) {
  ------------------
  |  Branch (229:13): [True: 54, False: 4]
  ------------------
  230|     54|            atomic_init(&st->cnt.u64, 0);
  231|     54|        } else {
  232|      4|            st->cnt.d = 0.0;
  233|      4|        }
  234|     58|        pvt->nstats += 1;
  235|     58|    }
  236|      2|    pvt->rppp = rtpp_pearson_perfect_ctor(getdstat, pvt);
  237|      2|    if (pvt->rppp == NULL) {
  ------------------
  |  Branch (237:9): [True: 0, False: 2]
  ------------------
  238|      0|        goto e2;
  239|      0|    }
  240|      2|    pub->pvt = pvt;
  241|     60|    for (i = 0; default_stats[i].name != NULL; i++) {
  ------------------
  |  Branch (241:17): [True: 58, False: 2]
  ------------------
  242|     58|        if (default_stats[i].derive_from == NULL)
  ------------------
  |  Branch (242:13): [True: 56, False: 2]
  ------------------
  243|     56|            continue;
  244|      2|        dst = &pvt->dstats[pvt->nstats_derived];
  245|      2|        idx = rtpp_stats_getidxbyname(pub, default_stats[i].name);
  246|      2|        dst->derive_to = &pvt->stats[idx];
  247|      2|        idx = rtpp_stats_getidxbyname(pub, default_stats[i].derive_from);
  248|      2|        dst->derive_from = &pvt->stats[idx];
  249|      2|        pvt->nstats_derived += 1;
  250|      2|        dst->last_ts = getdtime();
  251|      2|    }
  252|      2|    PUBINST_FININIT(pub, fp, rtpp_stats_dtor);
  ------------------
  |  |   76|      2|    RTPP_OBJ_DTOR_ATTACH_s((pub_inst), (rtpp_refcnt_dtor_t)(dtor), \
  |  |  ------------------
  |  |  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |   77|      2|      pvt_inst);
  ------------------
  253|      2|    return (pub);
  254|      0|e2:
  255|      0|    if (pvt->dstats != NULL)
  ------------------
  |  Branch (255:9): [True: 0, False: 0]
  ------------------
  256|      0|        free(pvt->dstats);
  257|      0|    free(pvt->stats);
  258|      0|e1:
  259|      0|    RTPP_OBJ_DECREF(pub);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  260|      0|e0:
  261|       |    return (NULL);
  262|      0|}
rtpp_stats.c:rtpp_stats_update_derived:
  393|    187|{
  394|    187|    struct rtpp_stats_priv *pvt;
  395|    187|    int i;
  396|    187|    struct rtpp_stat_derived *dst;
  397|    187|    double ival, dval;
  398|    187|    union rtpp_stat_cnt last_val;
  399|       |
  400|    187|    pvt = self->pvt;
  401|    374|    for (i = 0; i < pvt->nstats_derived; i++) {
  ------------------
  |  Branch (401:17): [True: 187, False: 187]
  ------------------
  402|    187|        dst = &pvt->dstats[i];
  403|    187|        assert(dst->last_ts < dtime);
  ------------------
  |  Branch (403:9): [True: 0, False: 187]
  |  Branch (403:9): [True: 187, False: 0]
  ------------------
  404|    187|        ival = dtime - dst->last_ts;
  405|    187|        if (dst->derive_from->descr->type == RTPP_CNT_U64) {
  ------------------
  |  Branch (405:13): [True: 187, False: 0]
  ------------------
  406|    187|            last_val.u64 = dst->last_val.u64;
  407|    187|            dst->last_val.u64 = atomic_load_explicit(&dst->derive_from->cnt.u64, memory_order_relaxed);
  408|    187|            dval = (dst->last_val.u64 - last_val.u64) / ival;
  409|    187|        } else {
  410|      0|            last_val.d = dst->last_val.d;
  411|      0|            pthread_mutex_lock(&dst->derive_from->mutex);
  412|      0|            dst->last_val.d = dst->derive_from->cnt.d;
  413|      0|            pthread_mutex_unlock(&dst->derive_from->mutex);
  414|      0|            dval = (dst->last_val.d - last_val.d) / ival;
  415|      0|        }
  416|    187|        pthread_mutex_lock(&dst->derive_to->mutex);
  417|    187|        dst->derive_to->cnt.d = dval;
  418|    187|        pthread_mutex_unlock(&dst->derive_to->mutex);
  419|    187|        dst->last_ts = dtime;
  420|    187|    }
  421|    187|}
rtpp_stats.c:count_rtpp_stats:
  167|      2|{
  168|      2|    int nstats, i;
  169|       |
  170|      2|    nstats = 0;
  171|     60|    for (i = 0; sp[i].name != NULL; i++) {
  ------------------
  |  Branch (171:17): [True: 58, False: 2]
  ------------------
  172|     58|        nstats += 1;
  173|     58|    }
  174|      2|    return (nstats);
  175|      2|}
rtpp_stats.c:count_rtpp_stats_derived:
  179|      2|{
  180|      2|    int nstats, i;
  181|       |
  182|      2|    nstats = 0;
  183|     60|    for (i = 0; sp[i].name != NULL; i++) {
  ------------------
  |  Branch (183:17): [True: 58, False: 2]
  ------------------
  184|     58|        if (sp[i].derive_from == NULL)
  ------------------
  |  Branch (184:13): [True: 56, False: 2]
  ------------------
  185|     56|            continue;
  186|      2|        nstats += 1;
  187|      2|    }
  188|      2|    return (nstats);
  189|      2|}
rtpp_stats.c:getdstat:
  154|    170|{
  155|    170|    struct rtpp_stats_priv *pvt;
  156|       |
  157|    170|    pvt = (struct rtpp_stats_priv *)p;
  158|    170|    if (n >= pvt->nstats) {
  ------------------
  |  Branch (158:9): [True: 2, False: 168]
  ------------------
  159|      2|        return (NULL);
  160|      2|    }
  161|       |
  162|    168|    return (pvt->stats[n].descr->name);
  163|    170|}
rtpp_stats.c:rtpp_stats_getidxbyname:
  266|     52|{
  267|     52|    struct rtpp_stats_priv *pvt;
  268|       |
  269|     52|    pvt = self->pvt;
  270|     52|    return (CALL_SMETHOD(pvt->rppp, hash, name));
  ------------------
  |  |  156|     52|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|     52|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|     52|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|     52|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|     52|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|     52|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|     52|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|     52|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|     52|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|     52|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|     52|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|     52|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|     52|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|     52|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|     52|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|     52|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|     52|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|     52|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|     52|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|     52|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|     52|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|     52|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|     52|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|     52|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|     52|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|     52|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|     52|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|     52|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|     52|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|     52|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|     52|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|     52|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|     52|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|     52|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  271|     52|}
rtpp_stats.c:rtpp_stats_dtor:
  366|      2|{
  367|      2|    int i;
  368|      2|    struct rtpp_stats_priv *pvt;
  369|      2|    struct rtpp_stat *st;
  370|       |
  371|      2|    pvt = &fp->pvt;
  372|     60|    for (i = 0; i < pvt->nstats; i++) {
  ------------------
  |  Branch (372:17): [True: 58, False: 2]
  ------------------
  373|     58|        st = &pvt->stats[i];
  374|     58|        pthread_mutex_destroy(&st->mutex);
  375|     58|    }
  376|      2|    RTPP_OBJ_DECREF(pvt->rppp);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  377|      2|    if (pvt->dstats != NULL) {
  ------------------
  |  Branch (377:9): [True: 2, False: 0]
  ------------------
  378|      2|        free(pvt->dstats);
  379|      2|    }
  380|      2|    free(pvt->stats);
  381|      2|    rtpp_stats_fin(&fp->pub);
  382|      2|}

getdtime:
   49|  18.7k|{
   50|       |
   51|       |    return (_getdtime(RTPP_CLOCK_MONO));
  ------------------
  |  |   40|  18.7k|#  define RTPP_CLOCK_MONO CLOCK_BOOTTIME
  ------------------
   52|  18.7k|}
rtpp_timestamp_get:
   56|      4|{
   57|       |
   58|      4|    tp->wall = _getdtime(RTPP_CLOCK_REAL);
  ------------------
  |  |   52|      4|# define RTPP_CLOCK_REAL CLOCK_REALTIME
  ------------------
   59|       |    tp->mono = _getdtime(RTPP_CLOCK_MONO);
  ------------------
  |  |   40|      4|#  define RTPP_CLOCK_MONO CLOCK_BOOTTIME
  ------------------
   60|      4|}
rtpp_time.c:_getdtime:
   38|  18.7k|{
   39|  18.7k|    struct timespec tp;
   40|       |
   41|  18.7k|    if (clock_gettime(clock_id, &tp) == -1)
  ------------------
  |  Branch (41:9): [True: 0, False: 18.7k]
  ------------------
   42|      0|        return (-1);
   43|       |
   44|  18.7k|    return timespec2dtime(&tp);
  ------------------
  |  |   67|  18.7k|#define timespec2dtime(s) ((double)SEC(s) + \
  |  |  ------------------
  |  |  |  |   56|  18.7k|#define SEC(x)   ((x)->tv_sec)
  |  |  ------------------
  |  |   68|  18.7k|  (double)NSEC(s) / 1000000000.0)
  |  |  ------------------
  |  |  |  |   57|  18.7k|#define NSEC(x)  ((x)->tv_nsec)
  |  |  ------------------
  ------------------
   45|  18.7k|}

rtpp_timed_ctor:
  142|      2|{
  143|      2|    struct rtpp_timed_cf *rtcp;
  144|       |
  145|      2|    rtcp = rtpp_rzmalloc(sizeof(struct rtpp_timed_cf), PVT_RCOFFS(rtcp));
  ------------------
  |  |  165|      2|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
  146|      2|    if (rtcp == NULL) {
  ------------------
  |  Branch (146:9): [True: 0, False: 2]
  ------------------
  147|      0|        goto e0;
  148|      0|    }
  149|      2|    rtcp->q = rtpp_queue_init(RTPQ_SMALL_CB_LEN, "rtpp_timed(requests)");
  ------------------
  |  |   74|      2|#define RTPQ_SMALL_CB_LEN 16
  ------------------
  150|      2|    if (rtcp->q == NULL) {
  ------------------
  |  Branch (150:9): [True: 0, False: 2]
  ------------------
  151|      0|        goto e1;
  152|      0|    }
  153|      2|    rtpp_queue_setqlen(rtcp->q, 0);
  154|      2|    rtcp->cmd_q = rtpp_queue_init(RTPQ_TINY_CB_LEN, "rtpp_timed(commands)");
  ------------------
  |  |   73|      2|#define RTPQ_TINY_CB_LEN  4
  ------------------
  155|      2|    if (rtcp->cmd_q == NULL) {
  ------------------
  |  Branch (155:9): [True: 0, False: 2]
  ------------------
  156|      0|        goto e2;
  157|      0|    }
  158|       |    /*
  159|       |     * Pre-allocate sigterm, so that we don't have any malloc() in
  160|       |     * the destructor.
  161|       |     */
  162|      2|    rtcp->sigterm = rtpp_wi_malloc_sgnl(SIGTERM, NULL, 0);
  163|      2|    if (rtcp->sigterm == NULL) {
  ------------------
  |  Branch (163:9): [True: 0, False: 2]
  ------------------
  164|      0|        goto e3;
  165|      0|    }
  166|      2|    rtcp->elp = prdic_init(1.0 / run_period, 0.0);
  167|      2|    if (rtcp->elp == NULL) {
  ------------------
  |  Branch (167:9): [True: 0, False: 2]
  ------------------
  168|      0|        goto e4;
  169|      0|    }
  170|      2|    if (pthread_create(&rtcp->thread_id, NULL,
  ------------------
  |  Branch (170:9): [True: 0, False: 2]
  ------------------
  171|      2|      (void *(*)(void *))&rtpp_timed_queue_run, rtcp) != 0) {
  172|      0|        goto e5;
  173|      0|    }
  174|      2|#if HAVE_PTHREAD_SETNAME_NP
  175|      2|    (void)pthread_setname_np(rtcp->thread_id, "rtpp_timed_queue");
  176|      2|#endif
  177|      2|    rtcp->last_run = getdtime();
  178|      2|    rtcp->period = run_period;
  179|      2|    rtcp->wi_dsize = sizeof(struct rtpp_timed_wi) + rtpp_refcnt_osize;
  180|      2|    PUBINST_FININIT(&rtcp->pub, rtcp, rtpp_timed_destroy);
  ------------------
  |  |   76|      2|    RTPP_OBJ_DTOR_ATTACH_s((pub_inst), (rtpp_refcnt_dtor_t)(dtor), \
  |  |  ------------------
  |  |  |  |  177|      2|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  178|      2|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |   77|      2|      pvt_inst);
  ------------------
  181|      2|    return (&rtcp->pub);
  182|      0|e5:
  183|      0|    prdic_free(rtcp->elp);
  184|      0|e4:
  185|      0|    RTPP_OBJ_DECREF(rtcp->sigterm);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  186|      0|e3:
  187|      0|    rtpp_queue_destroy(rtcp->cmd_q);
  188|      0|e2:
  189|      0|    rtpp_queue_destroy(rtcp->q);
  190|      0|e1:
  191|      0|    RTPP_OBJ_DECREF(&(rtcp->pub));
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  192|      0|e0:
  193|       |    return (NULL);
  194|      0|}
rtpp_timed.c:rtpp_timed_schedule_base:
  225|      4|{
  226|      4|    struct rtpp_wi *wi;
  227|      4|    struct rtpp_timed_wi *wi_data;
  228|      4|    struct rtpp_timed_cf *rtpp_timed_cf;
  229|       |
  230|      4|    rtpp_timed_cf = (struct rtpp_timed_cf *)pub;
  231|       |    
  232|      4|    wi = rtpp_wi_malloc_udata((void **)&wi_data, rtpp_timed_cf->wi_dsize);
  233|      4|    if (wi == NULL) {
  ------------------
  |  Branch (233:9): [True: 0, False: 4]
  ------------------
  234|      0|        return (NULL);
  235|      0|    }
  236|      4|    memset(wi_data, '\0', rtpp_timed_cf->wi_dsize);
  237|      4|    wi_data->pub.rcnt = wi->rcnt;
  238|      4|    wi_data->cb.func = cb_func;
  239|      4|    wi_data->cb.arg = cb_func_arg;
  240|      4|    wi_data->cancel_cb.func = cancel_cb_func;
  241|      4|    wi_data->cancel_cb.arg = cb_func_arg;
  242|      4|    wi_data->when = getdtime() + offset;
  243|      4|    wi_data->offset = offset;
  244|      4|    wi_data->callback_rcnt = callback_rcnt;
  245|      4|    if (callback_rcnt != NULL) {
  ------------------
  |  Branch (245:9): [True: 4, False: 0]
  ------------------
  246|      4|        RC_INCREF(callback_rcnt);
  ------------------
  |  |   82|      4|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   79|      4|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  ------------------
  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   80|      4|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      4|)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      4|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      4|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  247|      4|    }
  248|       |#if defined(RTPP_DEBUG)
  249|       |    RTPP_OBJ_DTOR_ATTACH_s(wi, (rtpp_refcnt_dtor_t)&rtpp_timed_task_fin,
  250|       |      &(wi_data->pub));
  251|       |#endif
  252|      4|    if (support_cancel != 0) {
  ------------------
  |  Branch (252:9): [True: 4, False: 0]
  ------------------
  253|      4|        wi_data->pub.cancel = &rtpp_timed_cancel;
  254|      4|        wi_data->timed_cf = rtpp_timed_cf;
  255|      4|        RTPP_OBJ_BORROW_s(wi, pub);
  ------------------
  |  |  199|      4|    do { /* Attach first, then increase, the "lob: counter might have */ \
  |  |  200|      4|         /* certain optimizations for the count == 1 case             */ \
  |  |  201|      4|        RTPP_OBJ_DTOR_ATTACH_RC_s((bob), (lob)->rcnt); \
  |  |  ------------------
  |  |  |  |  181|      4|#define RTPP_OBJ_DTOR_ATTACH_RC_s(obj, rc) CALL_SMETHOD((obj)->rcnt, attach_rc_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|      4|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  182|      4|  (rc))
  |  |  ------------------
  |  |  202|      4|        RTPP_OBJ_INCREF(lob); \
  |  |  ------------------
  |  |  |  |  173|      4|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  |  |  ------------------
  |  |  |  |  |  |   82|      4|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   79|      4|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      4|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      4|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      4|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      4|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  203|      4|    } while (0)
  |  |  ------------------
  |  |  |  Branch (203:14): [Folded, False: 4]
  |  |  ------------------
  ------------------
  256|      4|    }
  257|      4|    RTPP_OBJ_INCREF(wi);
  ------------------
  |  |  173|      4|#define RTPP_OBJ_INCREF(obj) RC_INCREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   82|      4|#define RC_INCREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, incref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      4|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      4|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      4|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      4|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      4|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      4|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      4|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      4|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      4|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      4|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      4|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      4|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      4|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      4|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      4|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      4|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      4|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      4|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      4|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      4|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      4|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      4|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      4|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      4|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      4|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      4|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      4|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      4|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      4|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      4|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      4|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      4|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      4|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      4|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      4|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      4|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      4|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      4|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  258|      4|    rtpp_queue_put_item(wi, rtpp_timed_cf->q);
  259|      4|    return (&(wi_data->pub));
  260|      4|}
rtpp_timed.c:rtpp_timed_cancel:
  366|      2|{
  367|      2|    struct rtpp_wi *wim;
  368|      2|    struct rtpp_timed_cf *rtcp;
  369|      2|    struct rtpp_timed_match_wi_arg match_arg;
  370|      2|    struct rtpp_timed_wi *wi_data;
  371|       |
  372|      2|    PUB2PVT(taskpub, wi_data);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  373|       |
  374|      2|    rtcp = wi_data->timed_cf;
  375|      2|    match_arg.wi_dsize = rtcp->wi_dsize;
  376|      2|    match_arg.wi_data = wi_data;
  377|      2|    wim = rtpp_queue_get_first_matching(rtcp->q, rtpp_timed_match_wi,
  378|      2|      &match_arg);
  379|      2|    if (wim == NULL) {
  ------------------
  |  Branch (379:9): [True: 0, False: 2]
  ------------------
  380|      0|        return (0);
  381|      0|    }
  382|      2|    if (wi_data->cancel_cb.func != NULL) {
  ------------------
  |  Branch (382:9): [True: 0, False: 2]
  ------------------
  383|      0|        wi_data->cancel_cb.func(wi_data->cancel_cb.arg);
  384|      0|    }
  385|      2|    if (wi_data->callback_rcnt != NULL) {
  ------------------
  |  Branch (385:9): [True: 2, False: 0]
  ------------------
  386|      2|        RC_DECREF(wi_data->callback_rcnt);
  ------------------
  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  ------------------
  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  387|      2|    }
  388|      2|    RTPP_OBJ_DECREF(&(wi_data->pub));
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  389|      2|    return (1);
  390|      2|}
rtpp_timed.c:rtpp_timed_match_wi:
  352|      3|{
  353|      3|    struct rtpp_timed_match_wi_arg *ap;
  354|      3|    struct rtpp_timed_wi *wia_data;
  355|       |
  356|      3|    ap = (struct rtpp_timed_match_wi_arg *)p;
  357|      3|    wia_data = rtpp_wi_data_get_ptr(wia, ap->wi_dsize, ap->wi_dsize);
  358|      3|    if (wia_data == ap->wi_data) {
  ------------------
  |  Branch (358:9): [True: 2, False: 1]
  ------------------
  359|      2|        return (0);
  360|      2|    }
  361|      1|    return (1);
  362|      3|}
rtpp_timed.c:rtpp_timed_schedule_rc:
  266|      4|{
  267|      4|    struct rtpp_timed_task *tpub;
  268|       |
  269|      4|    tpub = rtpp_timed_schedule_base(pub, offset, callback_rcnt, cb_func,
  270|      4|      cancel_cb_func, cb_func_arg, 1);
  271|      4|    if (tpub == NULL) {
  ------------------
  |  Branch (271:9): [True: 0, False: 4]
  ------------------
  272|      0|        return (NULL);
  273|      0|    }
  274|      4|    return (tpub);
  275|      4|}
rtpp_timed.c:rtpp_timed_shutdown:
  198|      2|{
  199|      2|    struct rtpp_timed_cf *rtpp_timed_cf;
  200|       |
  201|      2|    PUB2PVT(self, rtpp_timed_cf);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  202|      2|    assert(rtpp_timed_cf->state == RT_ST_RUNNING);
  ------------------
  |  Branch (202:5): [True: 0, False: 2]
  |  Branch (202:5): [True: 2, False: 0]
  ------------------
  203|      2|    rtpp_queue_put_item(rtpp_timed_cf->sigterm, rtpp_timed_cf->cmd_q);
  204|      2|    pthread_join(rtpp_timed_cf->thread_id, NULL);
  205|      2|    rtpp_timed_cf->state = RT_ST_SHTDOWN;
  ------------------
  |  |   71|      2|#define RT_ST_SHTDOWN 1
  ------------------
  206|      2|}
rtpp_timed.c:rtpp_timed_queue_run:
  104|      2|{
  105|      2|    struct rtpp_timed_cf *rtcp;
  106|      2|    struct rtpp_wi *wi;
  107|      2|    struct rtpp_timed_wi *wi_data;
  108|      2|    int signum;
  109|      2|    double ctime;
  110|       |
  111|      2|    rtcp = (struct rtpp_timed_cf *)argp;
  112|  18.7k|    for (;;) {
  113|  18.7k|        if (rtpp_queue_get_length(rtcp->cmd_q) > 0) {
  ------------------
  |  Branch (113:13): [True: 2, False: 18.7k]
  ------------------
  114|      2|            wi = rtpp_queue_get_item(rtcp->cmd_q, 0);
  115|      2|            signum = rtpp_wi_sgnl_get_signum(wi);
  116|      2|            RTPP_OBJ_DECREF(wi);
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  117|      2|            if (signum == SIGTERM) {
  ------------------
  |  Branch (117:17): [True: 2, False: 0]
  ------------------
  118|      2|                break;
  119|      2|            }
  120|      2|        }
  121|  18.7k|        ctime = getdtime();
  122|  18.7k|        rtpp_timed_process(rtcp, ctime);
  123|  18.7k|        prdic_procrastinate(rtcp->elp);
  124|  18.7k|    }
  125|       |    /* We are terminating, get rid of all requests */
  126|      4|    while (rtpp_queue_get_length(rtcp->q) > 0) {
  ------------------
  |  Branch (126:12): [True: 2, False: 2]
  ------------------
  127|      2|        wi = rtpp_queue_get_item(rtcp->q, 1);
  128|      2|        wi_data = rtpp_wi_data_get_ptr(wi, rtcp->wi_dsize, rtcp->wi_dsize);
  129|      2|        if (wi_data->cancel_cb.func != NULL) {
  ------------------
  |  Branch (129:13): [True: 0, False: 2]
  ------------------
  130|      0|            wi_data->cancel_cb.func(wi_data->cancel_cb.arg);
  131|      0|        }
  132|      2|        if (wi_data->callback_rcnt != NULL) {
  ------------------
  |  Branch (132:13): [True: 2, False: 0]
  ------------------
  133|      2|            RC_DECREF(wi_data->callback_rcnt);
  ------------------
  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  ------------------
  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  134|      2|        }
  135|      2|        RTPP_OBJ_DECREF(&(wi_data->pub));
  ------------------
  |  |  174|      2|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      2|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      2|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      2|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      2|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      2|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|      2|    }
  137|      2|    prdic_free(rtcp->elp);
  138|      2|}
rtpp_timed.c:rtpp_timed_process:
  314|  18.7k|{
  315|  18.7k|    struct rtpp_wi *wi;
  316|  18.7k|    struct rtpp_timed_wi *wi_data;
  317|  18.7k|    struct rtpp_timed_istime_arg istime_arg;
  318|  18.7k|    enum rtpp_timed_cb_rvals cb_rval;
  319|       |
  320|  18.7k|    istime_arg.ctime = ctime;
  321|  18.7k|    istime_arg.wi_dsize = rtcp->wi_dsize;
  322|  18.9k|    for (;;) {
  323|  18.9k|        wi = rtpp_queue_get_first_matching(rtcp->q, rtpp_timed_istime,
  324|  18.9k|          &istime_arg);
  325|  18.9k|        if (wi == NULL) {
  ------------------
  |  Branch (325:13): [True: 18.7k, False: 248]
  ------------------
  326|  18.7k|            return;
  327|  18.7k|        }
  328|    248|        wi_data = rtpp_wi_data_get_ptr(wi, rtcp->wi_dsize, rtcp->wi_dsize);
  329|    248|        cb_rval = wi_data->cb.func(ctime, wi_data->cb.arg);
  330|    248|        if (cb_rval == CB_MORE) {
  ------------------
  |  Branch (330:13): [True: 248, False: 0]
  ------------------
  331|    496|            while (wi_data->when <= ctime) {
  ------------------
  |  Branch (331:20): [True: 248, False: 248]
  ------------------
  332|       |                /* Make sure next run is in the future */
  333|    248|                wi_data->when += wi_data->offset;
  334|    248|            }
  335|    248|            rtpp_queue_put_item(wi, rtcp->q);
  336|    248|            continue;
  337|    248|        }
  338|      0|        if (wi_data->callback_rcnt != NULL) {
  ------------------
  |  Branch (338:13): [True: 0, False: 0]
  ------------------
  339|      0|            RC_DECREF(wi_data->callback_rcnt);
  ------------------
  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  ------------------
  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  ------------------
  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  340|      0|        }
  341|      0|        RTPP_OBJ_DECREF(&(wi_data->pub));
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  342|      0|    }
  343|  18.7k|}
rtpp_timed.c:rtpp_timed_istime:
  300|  37.7k|{
  301|  37.7k|    struct rtpp_timed_istime_arg *ap;
  302|  37.7k|    struct rtpp_timed_wi *wi_data;
  303|       |
  304|  37.7k|    ap = (struct rtpp_timed_istime_arg *)p;
  305|  37.7k|    wi_data = rtpp_wi_data_get_ptr(wi, ap->wi_dsize, ap->wi_dsize);
  306|  37.7k|    if (wi_data->when <= ap->ctime) {
  ------------------
  |  Branch (306:9): [True: 248, False: 37.4k]
  ------------------
  307|    248|       return (0);
  308|    248|    }
  309|  37.4k|    return (1);
  310|  37.7k|}
rtpp_timed.c:rtpp_timed_destroy:
  210|      2|{
  211|       |
  212|      2|    if (rtpp_timed_cf->state == RT_ST_RUNNING) {
  ------------------
  |  |   70|      2|#define RT_ST_RUNNING 0
  ------------------
  |  Branch (212:9): [True: 0, False: 2]
  ------------------
  213|      0|        rtpp_timed_shutdown(&rtpp_timed_cf->pub);
  214|      0|    }
  215|      2|    rtpp_timed_fin(&(rtpp_timed_cf->pub));
  216|      2|    rtpp_queue_destroy(rtpp_timed_cf->cmd_q);
  217|      2|    rtpp_queue_destroy(rtpp_timed_cf->q);
  218|      2|}

rtpp_tnotify_set_ctor:
   92|      2|{
   93|      2|    struct rtpp_tnotify_set_priv *pvt;
   94|       |
   95|      2|    pvt = rtpp_zmalloc(sizeof(struct rtpp_tnotify_set_priv));
   96|      2|    if (pvt == NULL) {
  ------------------
  |  Branch (96:9): [True: 0, False: 2]
  ------------------
   97|      0|        return (NULL);
   98|      0|    }
   99|      2|    pvt->pub.dtor = &rtpp_tnotify_set_dtor;
  100|      2|    pvt->pub.append = &rtpp_tnotify_set_append;
  101|      2|    pvt->pub.lookup = &rtpp_tnotify_set_lookup;
  102|      2|    pvt->pub.isenabled = &rtpp_tnotify_set_isenabled;
  103|       |
  104|      2|    return (&pvt->pub);
  105|      2|}
rtpp_tnotify_set.c:rtpp_tnotify_set_dtor:
  109|      2|{
  110|      2|    struct rtpp_tnotify_set_priv *pvt;
  111|      2|    struct rtpp_tnotify_target *tp;
  112|      2|    int i;
  113|       |
  114|      2|    PUB2PVT(pub, pvt);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  115|      4|    for (i = 0; i < pvt->tp_len; i++) {
  ------------------
  |  Branch (115:17): [True: 2, False: 2]
  ------------------
  116|      2|        tp = pvt->tp[i];
  117|      2|        if (tp->socket_name != NULL)
  ------------------
  |  Branch (117:13): [True: 2, False: 0]
  ------------------
  118|      2|            free(tp->socket_name);
  119|      2|        if (tp->connected) {
  ------------------
  |  Branch (119:13): [True: 0, False: 2]
  ------------------
  120|      0|            assert(tp->fd >= 0);
  ------------------
  |  Branch (120:13): [True: 0, False: 0]
  |  Branch (120:13): [True: 0, False: 0]
  ------------------
  121|      0|            close(tp->fd);
  122|      0|        }
  123|      2|        if (tp->local != NULL)
  ------------------
  |  Branch (123:13): [True: 0, False: 2]
  ------------------
  124|      0|            free(tp->local);
  125|      2|        free(tp);
  126|      2|    }
  127|      2|    for (i = 0; i < pvt->wp_len; i++) {
  ------------------
  |  Branch (127:17): [True: 0, False: 2]
  ------------------
  128|      0|        free(pvt->wp[i]->socket_name);
  129|      0|        free(pvt->wp[i]);
  130|      0|    }
  131|      2|    free(pvt);
  132|      2|}
rtpp_tnotify_set.c:rtpp_tnotify_set_append:
  256|      2|{
  257|      2|    int rval;
  258|      2|    struct rtpp_tnotify_set_priv *pvt;
  259|      2|    struct rtpp_tnotify_target *tntp;
  260|      2|    struct rtpp_tnotify_wildcard *tnwp;
  261|      2|    union rtpp_tnotify_entry rte;
  262|       |
  263|      2|    PUB2PVT(pub, pvt);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  264|      2|    memset(&rte, '\0', sizeof(union rtpp_tnotify_entry));
  265|      2|    rval = parse_timeout_sock(socket_name, &rte, e);
  266|      2|    if (rval < 0) {
  ------------------
  |  Branch (266:9): [True: 0, False: 2]
  ------------------
  267|      0|        goto e0;
  268|      0|    }
  269|      2|    tntp = NULL;
  270|      2|    tnwp = NULL;
  271|      2|    if (rval == 0) {
  ------------------
  |  Branch (271:9): [True: 2, False: 0]
  ------------------
  272|      2|        if (pvt->tp_len == RTPP_TNOTIFY_TARGETS_MAX) {
  ------------------
  |  |   59|      2|#define RTPP_TNOTIFY_TARGETS_MAX 64
  ------------------
  |  Branch (272:13): [True: 0, False: 2]
  ------------------
  273|      0|            *e = "Number of notify targets exceeds RTPP_TNOTIFY_TARGETS_MAX";
  274|      0|            goto e0;
  275|      0|        }
  276|      2|        tntp = malloc(sizeof(struct rtpp_tnotify_target));
  277|      2|        if (tntp == NULL) {
  ------------------
  |  Branch (277:13): [True: 0, False: 2]
  ------------------
  278|      0|             *e = strerror(errno);
  279|      0|             goto e1;
  280|      0|        }
  281|      2|        memcpy(tntp, &rte.rtt, sizeof(struct rtpp_tnotify_target));
  282|      2|        if (tntp->socket_type != RTPP_TNS_FD) {
  ------------------
  |  Branch (282:13): [True: 2, False: 0]
  ------------------
  283|      2|            tntp->connected = 0;
  284|      2|            tntp->fd = -1;
  285|      2|        } else {
  286|      0|            tntp->connected = 1;
  287|      0|        }
  288|      2|        pvt->tp[pvt->tp_len] = tntp;
  289|      2|        pvt->tp_len += 1;
  290|      2|    } else {
  291|      0|        if (pvt->wp_len == RTPP_TNOTIFY_WILDCARDS_MAX) {
  ------------------
  |  |   60|      0|#define RTPP_TNOTIFY_WILDCARDS_MAX 2
  ------------------
  |  Branch (291:13): [True: 0, False: 0]
  ------------------
  292|      0|            *e = "Number of notify wildcards exceeds RTPP_TNOTIFY_WILDCARDS_MAX";
  293|      0|            goto e0;
  294|      0|        }
  295|      0|        tnwp = malloc(sizeof(struct rtpp_tnotify_wildcard));
  296|      0|        if (tnwp == NULL) {
  ------------------
  |  Branch (296:13): [True: 0, False: 0]
  ------------------
  297|      0|             *e = strerror(errno);
  298|      0|             goto e1;
  299|      0|        }
  300|      0|        memcpy(tnwp, &rte.rtw, sizeof(struct rtpp_tnotify_wildcard));
  301|      0|        pvt->wp[pvt->wp_len] = tnwp;
  302|      0|        pvt->wp_len += 1;
  303|      0|    }
  304|       |
  305|      2|    return (0);
  306|       |
  307|      0|e1:
  308|      0|    if (tntp != NULL)
  ------------------
  |  Branch (308:9): [True: 0, False: 0]
  ------------------
  309|      0|        free(tntp);
  310|      0|    if (tnwp != NULL)
  ------------------
  |  Branch (310:9): [True: 0, False: 0]
  ------------------
  311|      0|        free(tnwp);
  312|      0|e0:
  313|      0|    return (-1);
  314|      0|}
rtpp_tnotify_set.c:parse_timeout_sock:
  170|      2|{
  171|      2|    char host[512], port[10];
  172|      2|    char *new_sn, **snp;
  173|      2|    int n, rval;
  174|      2|    const char *sprefix, *usock_name;
  175|      2|    struct sockaddr_un *ifsun;
  176|      2|    struct sockaddr *ifsa;
  177|       |
  178|      2|    snp = &rtep->rtt.socket_name;
  179|      2|    rval = 0;
  180|      2|    sprefix = NULL;
  181|      2|    usock_name = sock_name;
  182|      2|    if (strncmp("unix:", sock_name, 5) == 0) {
  ------------------
  |  Branch (182:9): [True: 0, False: 2]
  ------------------
  183|      0|        usock_name = sock_name + 5;
  184|      0|        rtep->rtt.socket_type = RTPP_TNS_LOCAL;
  185|      2|    } else if (strncmp("tcp:", sock_name, 4) == 0) {
  ------------------
  |  Branch (185:16): [True: 2, False: 0]
  ------------------
  186|      2|        if (parse_hostport(sock_name + 4, host, sizeof(host), port, sizeof(port), 0, e) != 0) {
  ------------------
  |  Branch (186:13): [True: 0, False: 2]
  ------------------
  187|      0|            return (-1);
  188|      0|        }
  189|      2|        rtep->rtt.socket_type = RTPP_TNS_INET;
  190|      2|    } else if (rtpp_is_lib && strncmp("fd:", sock_name, 3) == 0) {
  ------------------
  |  Branch (190:16): [True: 0, False: 0]
  |  Branch (190:31): [True: 0, False: 0]
  ------------------
  191|      0|        int fd;
  192|      0|        if (atoi_safe(sock_name + 3, &fd) != ATOI_OK || fd < 0) {
  ------------------
  |  Branch (192:13): [True: 0, False: 0]
  |  Branch (192:57): [True: 0, False: 0]
  ------------------
  193|      0|            return (-1);
  194|      0|        }
  195|      0|        rtep->rtt.socket_type = RTPP_TNS_FD;
  196|      0|        rtep->rtt.fd = fd;
  197|      0|    } else {
  198|      0|        sprefix = "unix:";
  199|      0|        rtep->rtt.socket_type = RTPP_TNS_LOCAL;
  200|      0|    }
  201|      2|    switch (rtep->rtt.socket_type) {
  202|      0|    case RTPP_TNS_LOCAL:
  ------------------
  |  Branch (202:5): [True: 0, False: 2]
  ------------------
  203|      0|        if (strlen(usock_name) == 0) {
  ------------------
  |  Branch (203:13): [True: 0, False: 0]
  ------------------
  204|      0|            *e = "Timeout notification socket name too short";
  205|      0|            return (-1);
  206|      0|        }
  207|      0|        ifsun = sstosun(&rtep->rtt.remote);
  ------------------
  |  |   88|      0|#define sstosun(ss)      ((struct sockaddr_un *)(ss))
  ------------------
  208|      0|        ifsun->sun_family = AF_LOCAL;
  209|      0|        strncpy(ifsun->sun_path, usock_name, sizeof(ifsun->sun_path) - 1);
  210|       |#if defined(HAVE_SOCKADDR_SUN_LEN)
  211|       |        ifsun->sun_len = strlen(ifsun->sun_path);
  212|       |#endif
  213|      0|        rtep->rtt.remote_len = sizeof(struct sockaddr_un);
  214|      0|        break;
  215|       |
  216|      2|    case RTPP_TNS_INET:
  ------------------
  |  Branch (216:5): [True: 2, False: 0]
  ------------------
  217|      2|        if (strcmp(host, CC_SELF_STR) == 0) {
  ------------------
  |  |   62|      2|#define CC_SELF_STR	"%%CC_SELF%%"
  ------------------
  |  Branch (217:13): [True: 0, False: 2]
  ------------------
  218|      0|            rtep->rtw.socket_type = RTPP_TNS_INET;
  219|      0|            rtep->rtw.port = atoi(port);
  220|      0|            snp = &rtep->rtt.socket_name;
  221|      0|            rval = 1;
  222|      0|            break;
  223|      0|        }
  224|      2|        ifsa = sstosa(&rtep->rtt.remote);
  ------------------
  |  |   85|      2|#define	sstosa(ss)	((struct sockaddr *)(ss))
  ------------------
  225|      2|        n = resolve(ifsa, AF_INET, host, port, 0);
  226|      2|        if (n != 0) {
  ------------------
  |  Branch (226:13): [True: 0, False: 2]
  ------------------
  227|      0|            *e = gai_strerror(n);
  228|      0|            return (-1);
  229|      0|        }
  230|      2|        rtep->rtt.remote_len = SA_LEN(ifsa);
  ------------------
  |  |   65|      2|   (((sa)->sa_family == AF_INET) ? \
  |  |  ------------------
  |  |  |  Branch (65:5): [True: 2, False: 0]
  |  |  ------------------
  |  |   66|      2|   sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6))
  ------------------
  231|      2|        break;
  232|      0|    default:
  ------------------
  |  Branch (232:5): [True: 0, False: 2]
  ------------------
  233|      0|        break;
  234|      2|    }
  235|      2|    int snlen = (sprefix == NULL) ? strlen(sock_name) :
  ------------------
  |  Branch (235:17): [True: 2, False: 0]
  ------------------
  236|      2|                                    strlen(sprefix) + strlen(usock_name);
  237|      2|    snlen += 1;
  238|      2|    new_sn = rtpp_zmalloc(snlen);
  239|      2|    if (new_sn == NULL) {
  ------------------
  |  Branch (239:9): [True: 0, False: 2]
  ------------------
  240|      0|        *e = strerror(errno);
  241|      0|        return (-1);
  242|      0|    }
  243|      2|    if (sprefix == NULL) {
  ------------------
  |  Branch (243:9): [True: 2, False: 0]
  ------------------
  244|      2|        memcpy(new_sn, sock_name, snlen);
  245|      2|    } else {
  246|      0|        snprintf(new_sn, snlen, "%s%s", sprefix, usock_name);
  247|      0|    }
  248|      2|    *snp = new_sn;
  249|       |
  250|      2|    return (rval);
  251|      2|}
rtpp_tnotify_set.c:parse_hostport:
  137|      2|{
  138|      2|    const char *cp;
  139|      2|    int myport;
  140|       |
  141|      2|    cp = strrchr(hostport, ':');
  142|      2|    if (cp == NULL || cp[1] == '\0' || cp == hostport) {
  ------------------
  |  Branch (142:9): [True: 0, False: 2]
  |  Branch (142:23): [True: 0, False: 2]
  |  Branch (142:40): [True: 0, False: 2]
  ------------------
  143|      0|        *e = "Can't parse host:port: invalid address";
  144|      0|        return (-1);
  145|      0|    }
  146|      2|    myport = atoi(cp + 1);
  147|      2|    if (myport <= 0 || myport > 65535) {
  ------------------
  |  Branch (147:9): [True: 0, False: 2]
  |  Branch (147:24): [True: 0, False: 2]
  ------------------
  148|      0|        *e = "Can't parse host:port: invalid port";
  149|      0|        return (-1);
  150|      0|    }
  151|       |
  152|      2|    if (testonly != 0)
  ------------------
  |  Branch (152:9): [True: 0, False: 2]
  ------------------
  153|      0|        return (0);
  154|       |
  155|      2|    if (cp - hostport + 1 > hsize || psize < 6) {
  ------------------
  |  Branch (155:9): [True: 0, False: 2]
  |  Branch (155:38): [True: 0, False: 2]
  ------------------
  156|      0|        *e = "Can't parse host:port: supplied buffers are too small";
  157|      0|        return (-1);
  158|      0|    }
  159|       |
  160|      2|    memcpy(host, hostport, cp - hostport);
  161|      2|    host[cp - hostport] = '\0';
  162|      2|    snprintf(port, psize, "%d", myport);
  163|      2|    return (0);
  164|      2|}

r_ucl_object_type:
   58|  1.02k|{
   59|       |
   60|  1.02k|    return (ucl_object_type(obj));
   61|  1.02k|}
r_ucl_object_key:
   72|  5.26k|{
   73|       |
   74|  5.26k|    return (ucl_object_key(obj));
   75|  5.26k|}

seedrandom:
   60|      4|{
   61|       |#if !defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION)
   62|       |    int fd;
   63|       |    unsigned long junk;
   64|       |    struct timeval tv;
   65|       |
   66|       |    fd = open("/dev/urandom", O_RDONLY, 0);
   67|       |    if (fd >= 0) {
   68|       |	read(fd, &junk, sizeof(junk));
   69|       |	close(fd);
   70|       |    } else {
   71|       |        junk = 0;
   72|       |    }
   73|       |
   74|       |    gettimeofday(&tv, NULL);
   75|       |    srandom((unsigned int)(getpid() << 14) ^ tv.tv_sec ^ tv.tv_usec ^ junk);
   76|       |#else
   77|      4|    srandom(42);
   78|      4|#endif
   79|      4|}
set_rlimits:
   83|      2|{
   84|      2|    struct rlimit rlp;
   85|       |
   86|      2|    if (getrlimit(RLIMIT_CORE, &rlp) < 0) {
  ------------------
  |  Branch (86:9): [True: 0, False: 2]
  ------------------
   87|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "getrlimit(RLIMIT_CORE)");
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   87|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "getrlimit(RLIMIT_CORE)");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
   88|      0|        return (-1);
   89|      0|    }
   90|      2|    rlp.rlim_cur = RLIM_INFINITY;
   91|      2|    rlp.rlim_max = RLIM_INFINITY;
   92|      2|    if (setrlimit(RLIMIT_CORE, &rlp) < 0) {
  ------------------
  |  Branch (92:9): [True: 0, False: 2]
  ------------------
   93|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "setrlimit(RLIMIT_CORE)");
  ------------------
  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  ------------------
  |  |  |  |   83|      0|#define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   58|      0|#define RTPP_ELOG(log, args...) CALL_METHOD((log), errwrite, __FUNCTION__, \
  |  |  |  |  |  |   59|       |  __LINE__, ## args)
  |  |  |  |  ------------------
  |  |  |  |               #define CALL_METHOD(obj, method, args...) (obj)->method(obj, ## args)
  |  |  |  |  ------------------
  |  |  |  |  |  |   93|      0|        RTPP_ELOG(cfsp->glog, RTPP_LOG_ERR, "setrlimit(RLIMIT_CORE)");
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   47|      0|#define	RTPP_LOG_ERR	LOG_ERR
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   59|      0|  __LINE__, ## args)
  ------------------
   94|      0|        return (-1);
   95|      0|    }
   96|      2|    return (0);
   97|      2|}
atoi_safe_sep:
  365|      4|{
  366|      4|    int rval;
  367|      4|    char *cp;
  368|       |
  369|      4|    rval = strtol(s, &cp, 10);
  370|      4|    if (cp == s || *cp != sep) {
  ------------------
  |  Branch (370:9): [True: 0, False: 4]
  |  Branch (370:20): [True: 0, False: 4]
  ------------------
  371|      0|        return (ATOI_NOTINT);
  372|      0|    }
  373|      4|    *res = rval;
  374|      4|    if (next != NULL) {
  ------------------
  |  Branch (374:9): [True: 0, False: 4]
  ------------------
  375|      0|        *next = cp + 1;
  376|      0|    }
  377|      4|    return (ATOI_OK);
  378|      4|}
atoi_safe:
  382|      4|{
  383|       |
  384|       |    return (atoi_safe_sep(s, res, '\0', NULL));
  385|      4|}
atoi_saferange:
  389|      4|{
  390|      4|    int rval;
  391|       |
  392|      4|    if (atoi_safe(s, &rval)) {
  ------------------
  |  Branch (392:9): [True: 0, False: 4]
  ------------------
  393|      0|        return (ATOI_NOTINT);
  394|      0|    }
  395|      4|    if (rval < min || (max >= min && rval > max)) {
  ------------------
  |  Branch (395:9): [True: 0, False: 4]
  |  Branch (395:24): [True: 0, False: 4]
  |  Branch (395:38): [True: 0, False: 0]
  ------------------
  396|      0|        return (ATOI_OUTRANGE);
  397|      0|    }
  398|      4|    *res = rval;
  399|      4|    return (ATOI_OK);
  400|      4|}
rtpp_get_sched_hz:
  481|      2|{
  482|      2|    int sched_hz;
  483|       |
  484|      2|#if defined (LINUX_XXX)
  485|      2|    sched_hz = rtpp_get_sched_hz_linux();
  486|      2|    if (sched_hz > 0) {
  ------------------
  |  Branch (486:9): [True: 2, False: 0]
  ------------------
  487|      2|        return (sched_hz);
  488|      2|    }
  489|      0|#endif
  490|      0|    sched_hz = sysconf(_SC_CLK_TCK);
  491|      0|    return (sched_hz > 0 ? sched_hz : 100);
  ------------------
  |  Branch (491:13): [True: 0, False: 0]
  ------------------
  492|      2|}
rtpp_util.c:rtpp_get_sched_hz_linux:
  453|      2|{
  454|      2|    int fd, rlen;
  455|      2|    char buf[16], *cp;
  456|      2|    int64_t n;
  457|       |
  458|      2|    fd = open("/proc/sys/kernel/sched_min_granularity_ns", O_RDONLY, 0);
  459|      2|    if (fd == -1) {
  ------------------
  |  Branch (459:9): [True: 0, False: 2]
  ------------------
  460|      0|        return (-1);
  461|      0|    }
  462|      2|    rlen = read(fd, buf, sizeof(buf) - 1);
  463|      2|    close(fd);
  464|      2|    if (rlen <= 0) {
  ------------------
  |  Branch (464:9): [True: 0, False: 2]
  ------------------
  465|      0|        return (-1);
  466|      0|    }
  467|      2|    buf[rlen] = '\0'; 
  468|      2|    n = strtol(buf, &cp, 10);
  469|      2|    if (cp == buf) {
  ------------------
  |  Branch (469:9): [True: 0, False: 2]
  ------------------
  470|      0|        return (-1);
  471|      0|    }
  472|      2|    if (n <= 0) {
  ------------------
  |  Branch (472:9): [True: 0, False: 2]
  ------------------
  473|      0|        return (-1);
  474|      0|    }
  475|      2|    return ((int64_t)1000000000 / n);
  476|      2|}

rtpp_weakref_ctor:
   80|     10|{
   81|     10|    struct rtpp_weakref_priv *pvt;
   82|       |
   83|     10|    pvt = rtpp_rzmalloc(sizeof(struct rtpp_weakref_priv), PVT_RCOFFS(pvt));
  ------------------
  |  |  165|     10|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
   84|     10|    if (pvt == NULL) {
  ------------------
  |  Branch (84:9): [True: 0, False: 10]
  ------------------
   85|      0|        return (NULL);
   86|      0|    }
   87|     10|    pvt->pub.ht = rtpp_hash_table_ctor(rtpp_ht_key_u64_t, RTPP_HT_NODUPS |
  ------------------
  |  |   71|     10|#define RTPP_HT_NODUPS    0x1
  ------------------
   88|     10|      RTPP_HT_DUP_ABRT);
  ------------------
  |  |   72|     10|#define RTPP_HT_DUP_ABRT  0x2
  ------------------
   89|     10|    if (pvt->pub.ht == NULL) {
  ------------------
  |  Branch (89:9): [True: 0, False: 10]
  ------------------
   90|      0|        goto e0;
   91|      0|    }
   92|     10|    if (pthread_mutex_init(&pvt->on_lock, NULL) != 0) {
  ------------------
  |  Branch (92:9): [True: 0, False: 10]
  ------------------
   93|      0|        goto e1;
   94|      0|    }
   95|     10|    PUBINST_FININIT(&pvt->pub, pvt, rtpp_weakref_dtor);
  ------------------
  |  |   76|     10|    RTPP_OBJ_DTOR_ATTACH_s((pub_inst), (rtpp_refcnt_dtor_t)(dtor), \
  |  |  ------------------
  |  |  |  |  177|     10|#define RTPP_OBJ_DTOR_ATTACH_s(obj, f, p) CALL_SMETHOD((obj)->rcnt, attach_nc, \
  |  |  |  |  ------------------
  |  |  |  |  |  |  156|     10|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  154|     10|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  118|     10|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  119|     10|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  120|     10|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  121|     10|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  122|     10|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  123|     10|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  124|     10|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  125|     10|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  126|     10|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  127|     10|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  128|     10|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  129|     10|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  130|     10|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  131|     10|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  132|     10|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  133|     10|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  134|     10|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  135|     10|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  136|     10|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  137|     10|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  138|     10|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  139|     10|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  140|     10|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  141|     10|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  142|     10|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  143|     10|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  144|     10|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  145|     10|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  146|     10|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  147|     10|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  148|     10|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  149|     10|)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  178|     10|  (rtpp_refcnt_dtor_t)(f), (p))
  |  |  ------------------
  |  |   77|     10|      pvt_inst);
  ------------------
   96|     10|    return (&pvt->pub);
   97|      0|e1:
   98|      0|    RTPP_OBJ_DECREF(pvt->pub.ht);
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   99|      0|e0:
  100|      0|    RTPP_OBJ_DECREF(&(pvt->pub));
  ------------------
  |  |  174|      0|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|      0|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|      0|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|      0|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|      0|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|      0|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|      0|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|      0|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|      0|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|      0|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|      0|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|      0|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|      0|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|      0|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|      0|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|      0|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|      0|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|      0|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|      0|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|      0|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|      0|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|      0|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|      0|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|      0|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|      0|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|      0|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|      0|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|      0|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|      0|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|      0|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|      0|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|      0|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|      0|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|      0|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|      0|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|      0|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|      0|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|      0|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|      0|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  101|       |    return (NULL);
  102|      0|}
rtpp_weakref.c:rtpp_wrt_get_length:
  251|      6|{
  252|      6|    struct rtpp_weakref_priv *pvt;
  253|       |
  254|      6|    PUB2PVT(pub, pvt);
  ------------------
  |  |  169|      6|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  255|      6|    return (CALL_SMETHOD(pvt->pub.ht, get_length));
  ------------------
  |  |  156|      6|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      6|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      6|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      6|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      6|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      6|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      6|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      6|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      6|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      6|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      6|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      6|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      6|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      6|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      6|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      6|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      6|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      6|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      6|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      6|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      6|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      6|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      6|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      6|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      6|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      6|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      6|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      6|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      6|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      6|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      6|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      6|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      6|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      6|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  256|      6|}
rtpp_weakref.c:rtpp_wrt_purge:
  260|      2|{
  261|      2|    struct rtpp_weakref_priv *pvt;
  262|      2|    int npurged;
  263|       |
  264|      2|    PUB2PVT(pub, pvt);
  ------------------
  |  |  169|      2|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
  265|       |
  266|      2|    if (pvt->on_last.func != NULL) {
  ------------------
  |  Branch (266:9): [True: 0, False: 2]
  ------------------
  267|      0|        pthread_mutex_lock(&pvt->on_lock);
  268|      0|    }
  269|       |
  270|      2|    npurged = CALL_SMETHOD(pvt->pub.ht, purge);
  ------------------
  |  |  156|      2|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  ------------------
  |  |  |  |  154|      2|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  ------------------
  |  |  |  |  |  |  118|      2|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  119|      2|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  120|      2|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  121|      2|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  122|      2|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  123|      2|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  124|      2|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  125|      2|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  126|      2|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  127|      2|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  128|      2|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  129|      2|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  130|      2|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  131|      2|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  132|      2|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  133|      2|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  134|      2|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  135|      2|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  136|      2|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  137|      2|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  138|      2|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  139|      2|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  140|      2|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  141|      2|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  142|      2|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  143|      2|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  144|      2|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  145|      2|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  146|      2|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  147|      2|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  148|      2|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  149|      2|)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  271|       |
  272|      2|    if (pvt->on_last.func != NULL) {
  ------------------
  |  Branch (272:9): [True: 0, False: 2]
  ------------------
  273|      0|        if (npurged > 0)
  ------------------
  |  Branch (273:13): [True: 0, False: 0]
  ------------------
  274|      0|            pvt->on_last.func(pvt->on_last.arg);
  275|      0|        pthread_mutex_unlock(&pvt->on_lock);
  276|      0|    }
  277|      2|    return (npurged);
  278|      2|}
rtpp_weakref.c:rtpp_weakref_dtor:
  201|     10|{
  202|       |
  203|     10|    rtpp_weakref_fin(&(pvt->pub));
  204|     10|    pthread_mutex_destroy(&pvt->on_lock);
  205|     10|    RTPP_OBJ_DECREF(pvt->pub.ht);
  ------------------
  |  |  174|     10|#define RTPP_OBJ_DECREF(obj) RC_DECREF((obj)->rcnt)
  |  |  ------------------
  |  |  |  |   83|     10|#define RC_DECREF(rp, ...) _RC_CHOOSE(_RC_REF, __VA_ARGS__)(rp, decref, ##__VA_ARGS__)
  |  |  |  |  ------------------
  |  |  |  |  |  |   79|     10|#define _RC_CHOOSE(NAME, ...) _GET_ARG_3(__VA_ARGS__, NAME##_2, NAME##_1,)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   78|       |#define _GET_ARG_3(_1, _2, _3, ...) _3
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |   80|     10|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  156|     10|#define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  154|     10|#define GET_SMETHOD(obj, method) (GET_SMETHODS(obj)->method)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  118|     10|#define GET_SMETHODS(obj) _Generic((obj), \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  119|     10|    struct rtpp_refcnt *: rtpp_refcnt_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  120|     10|    struct rtpp_pearson_perfect *: rtpp_pearson_perfect_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  121|     10|    struct rtpp_netaddr *: rtpp_netaddr_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  122|     10|    struct rtpp_server *: rtpp_server_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  123|     10|    struct rtpp_stats *: rtpp_stats_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  124|     10|    struct rtpp_timed *: rtpp_timed_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  125|     10|    struct rtpp_stream *: rtpp_stream_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  126|     10|    struct rtpp_pcount *: rtpp_pcount_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  127|     10|    struct rtpp_record *: rtpp_record_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  128|     10|    struct rtpp_hash_table *: rtpp_hash_table_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  129|     10|    struct rtpp_weakref *: rtpp_weakref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  130|     10|    struct rtpp_analyzer *: rtpp_analyzer_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  131|     10|    struct rtpp_pcnt_strm *: rtpp_pcnt_strm_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  132|     10|    struct rtpp_ttl *: rtpp_ttl_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  133|     10|    struct rtpp_pipe *: rtpp_pipe_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  134|     10|    struct rtpp_ringbuf *: rtpp_ringbuf_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  135|     10|    struct rtpp_sessinfo *: rtpp_sessinfo_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  136|     10|    struct rtpp_rw_lock *: rtpp_rw_lock_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  137|     10|    struct rtpp_proc_servers *: rtpp_proc_servers_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  138|     10|    struct rtpp_proc_wakeup *: rtpp_proc_wakeup_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  139|     10|    struct pproc_manager *: pproc_manager_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  140|     10|    struct rtpp_dtls_conn *: rtpp_dtls_conn_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  141|     10|    struct rtpp_bindaddrs *: rtpp_bindaddrs_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  142|     10|    struct rtpp_socket *: rtpp_socket_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  143|     10|    struct rtpp_session *: rtpp_session_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  144|     10|    struct rtpp_packetport_int *: rtpp_packetport_int_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  145|     10|    struct rtpp_refproxy *: rtpp_refproxy_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  146|     10|    struct rtpp_wref *: rtpp_wref_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  147|     10|    struct rtpc_reply *: rtpc_reply_smethods, \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  148|     10|    struct rtpp_genuid *: rtpp_genuid_smethods \
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  149|     10|)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |               #define CALL_SMETHOD(obj, method, args...) GET_SMETHOD(obj, method)(obj, ## args)
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |   80|     10|#define _RC_REF_1(rp, method) CALL_SMETHOD(rp, method, HEREVAL)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |   40|     10|#define HEREVAL  ({static const struct rtpp_codeptr _here = {.fname = __FILE__, .linen = __LINE__, .funcn = __func__}; &_here;})
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  206|     10|}

rtpp_wi_malloc_udata:
   68|      4|{
   69|      4|    struct rtpp_wi_data *wipp;
   70|       |
   71|      4|    wipp = rtpp_rmalloc(sizeof(struct rtpp_wi_data) + datalen, PVT_RCOFFS(wipp));
  ------------------
  |  |  165|      4|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
   72|      4|    if (wipp == NULL) {
  ------------------
  |  Branch (72:9): [True: 0, False: 4]
  ------------------
   73|      0|        return (NULL);
   74|      0|    }
   75|      4|    *wipp = (const struct rtpp_wi_data) {
   76|      4|        .pub.wi_type = RTPP_WI_TYPE_DATA,
   77|      4|        .pub.rcnt = wipp->pub.rcnt
   78|      4|    };
   79|      4|    if (datalen > 0) {
  ------------------
  |  Branch (79:9): [True: 4, False: 0]
  ------------------
   80|      4|        wipp->data_len = datalen;
   81|      4|        *dataptr = wipp->data;
   82|      4|    }
   83|      4|    return (&(wipp->pub));
   84|      4|}
rtpp_wi_data_get_ptr:
   88|  37.9k|{
   89|  37.9k|    struct rtpp_wi_data *wipp;
   90|       |
   91|  37.9k|    RTPP_DBG_ASSERT(wi->wi_type == RTPP_WI_TYPE_DATA);
   92|  37.9k|    PUB2PVT(wi, wipp);
  ------------------
  |  |  169|  37.9k|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
   93|  37.9k|    RTPP_DBG_ASSERT(wipp->data_len >= min_len);
   94|  37.9k|    RTPP_DBG_ASSERT(max_len == 0 || wipp->data_len <= max_len);
   95|       |
   96|  37.9k|    return(wipp->data);
   97|  37.9k|}

rtpp_wi_malloc_sgnl:
   53|     16|{
   54|     16|    struct rtpp_wi_sgnl *wipp;
   55|     16|#if !defined(RTPP_CHECK_LEAKS)
   56|     16|    wipp = rtpp_rmalloc(sizeof(struct rtpp_wi_sgnl) + datalen, PVT_RCOFFS(wipp));
  ------------------
  |  |  165|     16|#define PVT_RCOFFS(pvtp) (offsetof(typeof(*(pvtp)), pub) + offsetof(typeof((pvtp)->pub), rcnt))
  ------------------
   57|       |#else
   58|       |    wipp = rtpp_rmalloc_memdeb(sizeof(struct rtpp_wi_sgnl) + datalen,
   59|       |      PVT_RCOFFS(wipp), MEMDEB_SYM, mlp);
   60|       |#endif
   61|     16|    if (wipp == NULL) {
  ------------------
  |  Branch (61:9): [True: 0, False: 16]
  ------------------
   62|      0|        return (NULL);
   63|      0|    }
   64|     16|    *wipp = (const struct rtpp_wi_sgnl) {
   65|     16|        .pub.wi_type = RTPP_WI_TYPE_SGNL,
   66|     16|        .pub.rcnt = wipp->pub.rcnt,
   67|     16|        .signum = signum
   68|     16|    };
   69|     16|    if (datalen > 0) {
  ------------------
  |  Branch (69:9): [True: 0, False: 16]
  ------------------
   70|      0|        wipp->data_len = datalen;
   71|      0|        memcpy(wipp->data, data, datalen);
   72|      0|    }
   73|     16|    return (&(wipp->pub));
   74|     16|}
rtpp_wi_sgnl_get_signum:
   91|      6|{
   92|      6|    struct rtpp_wi_sgnl *wipp;
   93|       |
   94|      6|    RTPP_DBG_ASSERT(wi->wi_type == RTPP_WI_TYPE_SGNL);
   95|       |    PUB2PVT(wi, wipp);
  ------------------
  |  |  169|      6|  (pvtp) = (typeof(pvtp))((char *)(pubp) - offsetof(typeof(*(pvtp)), pub))
  ------------------
   96|      6|    return (wipp->signum);
   97|      6|}

