CFG: Function

The CFG for each function consists of an entry point, followed by the body of the function, followed by a vertex representing the assignment to the function's return value, followed by a preexit point and finally an exit point. All return statements branch directly to the preexit vertex.

Example

int ONE (int x){
    int i;
    i = x + 1;
    return i;
}
diagram: CFG for example code

Browse