Displaying 2 results from an estimated 2 matches for "decoder_f".
Did you mean:
decoder_
2015 May 24
2
[LLVMdev] Callgraph inaccuracy
...I use TDD analysis and here is my test code:
#include <stdlib.h>
typedef void (*tX)(int a, int b);
typedef void (*tY)(int a);
typedef struct {
tX p ;
int n;
} msg;
static void A1(int a) { }
static void B2(int a, int b) { }
static void C2(int a, int b) { }
tY q;
static void decode(tX decoder_f){
decoder_f(1,2);
}
int main(void) {
msg *a = malloc(sizeof(msg));
q = &A1;
a->p = &B2;
decode(&C2);
return 0;
}
The result that I get is:
main: [malloc decode ]
A1: []
B2: []
C2: []
decode: [A1 B2 C2 ]
Why does "decode" function have two extra...
2015 May 28
0
[LLVMdev] Callgraph inaccuracy
...gt; typedef void (*tX)(int a, int b);
> typedef void (*tY)(int a);
>
> typedef struct {
> tX p ;
> int n;
> } msg;
>
> static void A1(int a) { }
> static void B2(int a, int b) { }
> static void C2(int a, int b) { }
>
>
> tY q;
>
> static void decode(tX decoder_f){
> decoder_f(1,2);
> }
>
> int main(void) {
> msg *a = malloc(sizeof(msg));
> q = &A1;
> a->p = &B2;
> decode(&C2);
>
> return 0;
> }
>
> The result that I get is:
>
> main: [malloc decode ]
> A1: []
> B2: []...