        -:    0:Source:src/helper.c
        -:    0:Graph:src/helper.gcno
        -:    0:Data:src/helper.gcda
        -:    0:Runs:1
        -:    1:#include "spike.h"
        -:    2:
function spike_helper_switch called 3 returned 100% blocks executed 83%
        3:    3:int spike_helper_switch(int n)
        -:    4:{
        3:    5:    switch (n) {
        3:    5-block  0
branch  0 taken 1
branch  1 taken 1
branch  2 taken 1
branch  3 taken 0
        -:    6:    case 0:
        1:    7:        return spike_only_helper(0);
        1:    7-block  0
        -:    8:    case 1:
        1:    9:        return 10;
        1:    9-block  0
        -:   10:    case 2:
    #####:   11:        return 20;
    $$$$$:   11-block  0
        -:   12:    default:
        1:   13:        return spike_square(n);
        1:   13-block  0
        -:   14:    }
        3:   15:}
        3:   15-block  0
        -:    0:Source:include/spike.h
        -:    0:Graph:src/helper.gcno
        -:    0:Data:src/helper.gcda
        -:    0:Runs:1
        -:    1:#ifndef SPIKE_H
        -:    2:#define SPIKE_H
        -:    3:
function spike_square called 1 returned 100% blocks executed 66%
        1:    4:static inline int spike_square(int x)
        -:    5:{
        1:    6:    if (x < 0)
        1:    6-block  0
branch  0 taken 1
branch  1 taken 0
    #####:    7:        x = -x;
    $$$$$:    7-block  0
        1:    8:    return x * x;
        1:    8-block  0
        -:    9:}
        -:   10:
function spike_only_helper called 1 returned 100% blocks executed 100%
        1:   11:static inline int spike_only_helper(int x)
        -:   12:{
        1:   13:    return x + 1;
        1:   13-block  0
        -:   14:}
        -:   15:
        -:   16:int spike_helper_switch(int n);
        -:   17:
        -:   18:#endif
