JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.0p0 Hot Tips | CONFIDENTIAL | CodeSecure Inc |
The CFG for a function call with parameters and a return value is shown in the example below. The dashed horizontal lines show the inter-procedural CFG edges; the vertical dotted line shows an intra-procedural edge that is omitted from the inter-procedural CFG.
For the example CFG shown, the parameter evaluation order is right-to-left: this is the order used by all supported platforms.
Note that although actual parameters are in the CFG, formal parameters are not.
The function assigns the return value to a generated local variable (f$return); the actual-out vertex represents the assignment of the return value (f$return) to a generated local variable of the caller (f$result0); the subsequent expression vertex uses the result (f$result0) as the value of the function call.
... x = f(1, 2); ... |
|
int f(int a, int b){
return 0;
}
|