Technical data
2 
Working with the Target Language
2-52
The output of the listing file includes the number of times each line is 
encountered followed by a colon.
1: %% Abstract: Gain block target file
1: 
1: %implements Gain "C"
1: 
1: %% Function: FcnEliminateUnnecessaryParams ==================
1: %% Abstract:
1: %%   Elimate unecessary multiplications for following gain
1: %%   cases when inlining parameters:
1: %%   Zero: memset in registration routine zeroes output
1: %%   Positive One: assign output equal to input
1: %%   Negative One: assign output equal to unary minus of
1: %%   input
1: %%
1: %function FcnEliminateUnnecessaryParams(y,u,k) Output
0:  %if LibIsEqual(k, 0.0)
0:   %if ShowEliminatedStatements == 1
0:   /* %<y> = %<u> * %<k>; */
0:   %endif
0:  %elseif LibIsEqual(k, 1.0)
0:   %<y> = %<u>;
0:  %elseif LibIsEqual(k, -1.0)
0:   %<y> = -%<u>;
0:  %else
0: %<y> = %<u> * %<k>;
0:  %endif
1: %endfunction
1: 
1: 
1: %% Function: Outputs ========================================
1: %% Abstract:
1: %%   Y = U * K
1: %%
1: %function Outputs(block, system) Output
1: /* %<Type> Block: %<Name> */
1:  %assign rollVars = ["U", "Y", "P"]
1:  %roll sigIdx = RollRegions, lcv = RollThreshold, block, ...
"Roller", rollVars










