void test_self_modifying_code(void)

{

    int (*func)(void);



    func = (void *)code;

    printf("self modifying code:\n");

    printf("func1 = 0x%x\n", func());

    code[1] = 0x2;

    printf("func1 = 0x%x\n", func());

}

void test_self_modifying_code(void)

{

    int (*func)(void);



    func = (void *)code;

    printf("self modifying code:\n");

    printf("func1 = 0x%x\n", func());

    code[1] = 0x2;

    printf("func1 = 0x%x\n", func());

}

void FUNC_0(void)

{

    int (*VAR_0)(void);



    VAR_0 = (void *)code;

    printf("self modifying code:\n");

    printf("func1 = 0x%x\n", VAR_0());

    code[1] = 0x2;

    printf("func1 = 0x%x\n", VAR_0());

}

void FUNC_0(void)
{ int (*VAR_0)(void); VAR_0 = (void *)code; printf("self modifying code:\n"); printf("func1 = 0x%x\n", VAR_0()); code[1] = 0x2; printf("func1 = 0x%x\n", VAR_0()); }