Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

524 B
Raw Blame
/* Freestanding, source-owned static-analysis fixture. Never executed by REA. */
volatile unsigned int rea_ppc_global = 7;
const char rea_ppc_marker[] = "rea-ppc-source-owned-fixture";

__attribute__((noinline)) unsigned int rea_ppc_leaf(unsigned int value)
{
    return value * 3u + rea_ppc_global;
}

__attribute__((noinline)) unsigned int rea_ppc_entry(unsigned int selector)
{
    unsigned int adjusted = selector > 10u ? selector : selector + 1u;
    return rea_ppc_leaf(adjusted) + (unsigned char)rea_ppc_marker[0];
}