The following code examples demonstrate a few of the possibilities for using the features described in this chapter. Because KAP undergoes constant enhancement, the code that your version of KAP produces may not be identical to that of these examples. The temporary variable names, in particular, can change without significantly altering the transformed code.
Unless otherwise noted, the following examples were run with
/so=0 to show the inlining
more clearly. If nonzero values are specified, the functions are
first inlined or analyzed, and then the concurrent and scalar
transformations are applied.
In some cases, C preprocessor additions or modifications to the code were removed to clarify the example outputs.