# Static Code Metrics Report

The static code metrics report provides statistics of the generated code. Metrics are estimated from static analysis of the generated code using the C data types specified in the Hardware: char 8, short 16, int 32, long 32, float 32, double 64, pointer 64 bits. If your model contains a Variant block, the Static Code Metrics Report does not contain data for the inactive variant. Actual object code metrics might differ due to target specific compiler and platform settings.

### Table of Contents

1. File Information
2. Global Variables
3. Function Information

### 1. File Information [hide]

[-] Summary
Number of .c files | : | 11 |
Number of .h files | : | 13 |
Lines of code | : | 1,750 |
Lines | : | 2,872 |
[-] File details
File Name | Lines of Code | Lines | Generated On
MLS.c | 509 | 776 | 02/27/2019 7:49 AM
MLS_precompute.c | 294 | 399 | 02/27/2019 7:49 AM
MLS_emxutil.c | 207 | 303 | 02/27/2019 7:49 AM
MLS_emxAPI.c | 174 | 283 | 02/27/2019 7:49 AM
rtwtypes.h | 95 | 162 | 02/27/2019 7:49 AM
rtGetInf.c | 82 | 132 | 02/27/2019 7:49 AM
rtGetNaN.c | 58 | 95 | 02/27/2019 7:49 AM
MLS_types.h | 43 | 75 | 02/27/2019 7:49 AM
rt_nonfinite.c | 43 | 101 | 02/27/2019 7:49 AM
rt_nonfinite.h | 37 | 56 | 02/27/2019 7:49 AM
sum.c | 36 | 65 | 02/27/2019 7:49 AM
MLS_emxAPI.h | 26 | 45 | 02/27/2019 7:49 AM
repmat.c | 22 | 46 | 02/27/2019 7:49 AM
MLS_emxutil.h | 21 | 40 | 02/27/2019 7:49 AM
MLS.h | 14 | 33 | 02/27/2019 7:49 AM
MLS_precompute.h | 13 | 32 | 02/27/2019 7:49 AM
sum.h | 12 | 31 | 02/27/2019 7:49 AM
MLS_initialize.h | 11 | 30 | 02/27/2019 7:49 AM
MLS_terminate.h | 11 | 30 | 02/27/2019 7:49 AM
repmat.h | 11 | 30 | 02/27/2019 7:49 AM
rtGetInf.h | 10 | 26 | 02/27/2019 7:49 AM
rtGetNaN.h | 8 | 24 | 02/27/2019 7:49 AM
MLS_initialize.c | 7 | 29 | 02/27/2019 7:49 AM
MLS_terminate.c | 6 | 29 | 02/27/2019 7:49 AM

### 2. Global Variables [hide]

Global variables defined in the generated code.
Global Variable | Size (bytes) | Reads / Writes | Reads / Writes in a Function
rtInf | 8 | 4 | 2
rtMinusInf | 8 | 2 | 1
rtNaN | 8 | 3 | 2
rtInfF | 4 | 2 | 1
rtMinusInfF | 4 | 2 | 1
rtNaNF | 4 | 1 | 1
Total | 36 | 14 |

### 3. Function Information [hide]

View function metrics in a call tree format or table format. Accumulated stack numbers include the estimated stack size of the function plus the maximum of the accumulated stack size of the subroutines that the function calls.
View:Call Tree | Table
Function Name | Accumulated Stack Size (bytes) | Self Stack Size (bytes) | Lines of Code | Lines | Complexity
[+] MLS | 600 | 328 | 479 | 701 | 83
[+] MLS_precompute | 272 | 244 | 237 | 310 | 40
[+] repmat | 28 | 12 | 15 | 18 | 4
[+] emxEnsureCapacity_real_T | 16 | 16 | 33 | 41 | 9
calloc | Not available | - | - | - | -
memcpy | Not available | - | - | - | -
free | Not available | - | - | - | -
[+] rt_powd_snf | 24 | 24 | 41 | 45 | 13
rtIsNaN | 0 | 0 | 5 | 14 | 2
fabs | Not available | - | - | - | -
rtIsInf | 0 | 0 | 1 | 4 | 2
sqrt | Not available | - | - | - | -
floor | Not available | - | - | - | -
pow | Not available | - | - | - | -
[+] emxEnsureCapacity_real_T | 16 | 16 | 33 | 41 | 9
calloc | Not available | - | - | - | -
memcpy | Not available | - | - | - | -
free | Not available | - | - | - | -
[+] emxEnsureCapacity_real_T1 | 16 | 16 | 33 | 41 | 9
calloc | Not available | - | - | - | -
memcpy | Not available | - | - | - | -
free | Not available | - | - | - | -
[+] emxInit_real_T | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
[+] emxInit_real_T1 | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
sum | 12 | 12 | 11 | 15 | 3
b_sum | 12 | 12 | 16 | 19 | 5
sqrt | Not available | - | - | - | -
[+] emxFree_real_T | 0 | 0 | 8 | 12 | 3
free | Not available | - | - | - | -
[+] repmat | 28 | 12 | 15 | 18 | 4
[+] emxEnsureCapacity_real_T | 16 | 16 | 33 | 41 | 9
calloc | Not available | - | - | - | -
memcpy | Not available | - | - | - | -
free | Not available | - | - | - | -
[+] emxEnsureCapacity_real_T | 16 | 16 | 33 | 41 | 9
calloc | Not available | - | - | - | -
memcpy | Not available | - | - | - | -
free | Not available | - | - | - | -
[+] emxEnsureCapacity_real_T2 | 16 | 16 | 33 | 41 | 9
calloc | Not available | - | - | - | -
memcpy | Not available | - | - | - | -
free | Not available | - | - | - | -
[+] emxEnsureCapacity_real_T1 | 16 | 16 | 33 | 41 | 9
calloc | Not available | - | - | - | -
memcpy | Not available | - | - | - | -
free | Not available | - | - | - | -
[+] emxInit_real_T1 | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
[+] emxInit_real_T2 | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
[+] emxInit_real_T | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
b_sum | 12 | 12 | 16 | 19 | 5
[+] rt_roundd_snf | 8 | 8 | 13 | 17 | 4
fabs | Not available | - | - | - | -
floor | Not available | - | - | - | -
ceil | Not available | - | - | - | -
[+] emxFree_real_T | 0 | 0 | 8 | 12 | 3
free | Not available | - | - | - | -
printf | Not available | - | - | - | -
fflush | Not available | - | - | - | -
memcpy | Not available | - | - | - | -
floor | Not available | - | - | - | -
fabs | Not available | - | - | - | -
ceil | Not available | - | - | - | -
[+] emxCreateWrapper_char_T | 36 | 24 | 17 | 21 | 2
[+] emxInit_char_T | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
[+] emxCreateWrapper_real_T | 36 | 24 | 17 | 21 | 2
[+] emxInit_real_T1 | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
[+] emxCreate_char_T | 36 | 24 | 16 | 20 | 2
[+] emxInit_char_T | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
calloc | Not available | - | - | - | -
[+] emxCreate_real_T | 36 | 24 | 16 | 20 | 2
[+] emxInit_real_T1 | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
calloc | Not available | - | - | - | -
[+] MLS_initialize | 30 | 0 | 1 | 4 | 1
[+] rt_InitInfAndNaN | 30 | 0 | 7 | 10 | 1
rtGetNaN | 30 | 30 | 31 | 38 | 3
rtGetInf | 30 | 30 | 31 | 38 | 3
rtGetMinusInf | 30 | 30 | 31 | 38 | 3
rtGetNaNF | 10 | 10 | 19 | 25 | 3
rtGetInfF | 4 | 4 | 3 | 6 | 1
rtGetMinusInfF | 4 | 4 | 3 | 6 | 1
[+] emxCreateND_char_T | 28 | 16 | 13 | 17 | 2
[+] emxInit_char_T | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
calloc | Not available | - | - | - | -
[+] emxCreateND_real_T | 28 | 16 | 13 | 17 | 2
[+] emxInit_real_T1 | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
calloc | Not available | - | - | - | -
[+] emxCreateWrapperND_char_T | 28 | 16 | 14 | 19 | 2
[+] emxInit_char_T | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
[+] emxCreateWrapperND_real_T | 28 | 16 | 14 | 19 | 2
[+] emxInit_real_T1 | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
[+] emxInitArray_char_T | 12 | 0 | 1 | 4 | 1
[+] emxInit_char_T | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
[+] emxInitArray_real_T | 12 | 0 | 1 | 4 | 1
[+] emxInit_real_T1 | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
[+] emxInit_struct0_T | 12 | 0 | 1 | 4 | 1
[+] emxInitStruct_struct0_T | 12 | 0 | 4 | 7 | 1
[+] emxInit_real_T1 | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
[+] emxInit_real_T | 12 | 12 | 12 | 15 | 2
malloc | Not available | - | - | - | -
MLS_terminate | 0 | 0 | 0 | 4 | 1
[+] emxDestroyArray_char_T | 0 | 0 | 1 | 4 | 1
[+] emxFree_char_T | 0 | 0 | 8 | 12 | 3
free | Not available | - | - | - | -
[+] emxDestroyArray_real_T | 0 | 0 | 1 | 4 | 1
[+] emxFree_real_T | 0 | 0 | 8 | 12 | 3
free | Not available | - | - | - | -
[+] emxDestroy_struct0_T | 0 | 0 | 1 | 4 | 1
[+] emxFreeStruct_struct0_T | 0 | 0 | 4 | 7 | 1
[+] emxFree_real_T | 0 | 0 | 8 | 12 | 3
free | Not available | - | - | - | -
rtIsInfF | 0 | 0 | 1 | 4 | 2
rtIsNaNF | 0 | 0 | 5 | 14 | 2
View: Call Tree | Table
Function Name | Called By (number of call sites) | Accumulated Stack Size (bytes) | Self Stack Size (bytes) | Lines of Code | Lines | Complexity
MLS |  | 600 | 328 | 479 | 701 | 83
rt_roundd_snf |
MLS (6)
| 8 | 8 | 13 | 17 | 4
MLS_initialize |  | 30 | 0 | 1 | 4 | 1
MLS_precompute |
MLS
| 272 | 244 | 237 | 310 | 40
rt_powd_snf |
MLS_precompute
| 24 | 24 | 41 | 45 | 13
MLS_terminate |  | 0 | 0 | 0 | 4 | 1
b_sum |
MLS
MLS_precompute
| 12 | 12 | 16 | 19 | 5
calloc |
emxCreateND_char_T
emxCreateND_real_T
emxCreate_char_T
emxCreate_real_T
emxEnsureCapacity_real_T
emxEnsureCapacity_real_T1
emxEnsureCapacity_real_T2
| Not available | - | - | - | -
ceil |
MLS (2)
rt_roundd_snf
| Not available | - | - | - | -
emxCreateND_char_T |  | 28 | 16 | 13 | 17 | 2
emxCreateND_real_T |  | 28 | 16 | 13 | 17 | 2
emxCreateWrapperND_char_T |  | 28 | 16 | 14 | 19 | 2
emxCreateWrapperND_real_T |  | 28 | 16 | 14 | 19 | 2
emxCreateWrapper_char_T |  | 36 | 24 | 17 | 21 | 2
emxCreateWrapper_real_T |  | 36 | 24 | 17 | 21 | 2
emxCreate_char_T |  | 36 | 24 | 16 | 20 | 2
emxCreate_real_T |  | 36 | 24 | 16 | 20 | 2
emxDestroyArray_char_T |  | 0 | 0 | 1 | 4 | 1
emxDestroyArray_real_T |  | 0 | 0 | 1 | 4 | 1
emxDestroy_struct0_T |  | 0 | 0 | 1 | 4 | 1
emxEnsureCapacity_real_T |
MLS (7)
MLS_precompute (9)
repmat
| 16 | 16 | 33 | 41 | 9
emxEnsureCapacity_real_T1 |
MLS
MLS_precompute (5)
| 16 | 16 | 33 | 41 | 9
emxEnsureCapacity_real_T2 |
MLS (3)
| 16 | 16 | 33 | 41 | 9
emxFreeStruct_struct0_T |
emxDestroy_struct0_T
| 0 | 0 | 4 | 7 | 1
emxFree_char_T |
emxDestroyArray_char_T
| 0 | 0 | 8 | 12 | 3
emxFree_real_T |
emxFreeStruct_struct0_T (4)
MLS (6)
emxDestroyArray_real_T
MLS_precompute (5)
| 0 | 0 | 8 | 12 | 3
emxInitArray_char_T |  | 12 | 0 | 1 | 4 | 1
emxInitArray_real_T |  | 12 | 0 | 1 | 4 | 1
emxInitStruct_struct0_T |
emxInit_struct0_T
| 12 | 0 | 4 | 7 | 1
emxInit_char_T |
emxCreateND_char_T
emxCreateWrapperND_char_T
emxCreateWrapper_char_T
emxCreate_char_T
emxInitArray_char_T
| 12 | 12 | 12 | 15 | 2
emxInit_real_T |
emxInitStruct_struct0_T
MLS
MLS_precompute (2)
| 12 | 12 | 12 | 15 | 2
emxInit_real_T1 |
emxInitStruct_struct0_T (3)
MLS (3)
emxCreateND_real_T
emxCreateWrapperND_real_T
emxCreateWrapper_real_T
emxCreate_real_T
emxInitArray_real_T
MLS_precompute (3)
| 12 | 12 | 12 | 15 | 2
emxInit_real_T2 |
MLS (2)
| 12 | 12 | 12 | 15 | 2
emxInit_struct0_T |  | 12 | 0 | 1 | 4 | 1
fabs |
MLS (4)
rt_roundd_snf
rt_powd_snf (2)
| Not available | - | - | - | -
fflush |
MLS
| Not available | - | - | - | -
floor |
MLS (4)
rt_roundd_snf
rt_powd_snf
| Not available | - | - | - | -
free |
emxEnsureCapacity_real_T
emxEnsureCapacity_real_T1
emxEnsureCapacity_real_T2
emxFree_char_T (3)
emxFree_real_T (3)
| Not available | - | - | - | -
malloc |
emxInit_char_T (2)
emxInit_real_T (2)
emxInit_real_T1 (2)
emxInit_real_T2 (2)
| Not available | - | - | - | -
memcpy |
MLS
emxEnsureCapacity_real_T
emxEnsureCapacity_real_T1
emxEnsureCapacity_real_T2
| Not available | - | - | - | -
pow |
rt_powd_snf
| Not available | - | - | - | -
printf |
MLS
| Not available | - | - | - | -
repmat |
MLS
MLS_precompute (2)
| 28 | 12 | 15 | 18 | 4
rtGetInf |
rt_InitInfAndNaN
| 30 | 30 | 31 | 38 | 3
rtGetInfF |
rt_InitInfAndNaN
| 4 | 4 | 3 | 6 | 1
rtGetMinusInf |
rt_InitInfAndNaN
| 30 | 30 | 31 | 38 | 3
rtGetMinusInfF |
rt_InitInfAndNaN
| 4 | 4 | 3 | 6 | 1
rtGetNaN |
rt_InitInfAndNaN
| 30 | 30 | 31 | 38 | 3
rtGetNaNF |
rt_InitInfAndNaN
| 10 | 10 | 19 | 25 | 3
rtIsInf |
rt_powd_snf
| 0 | 0 | 1 | 4 | 2
rtIsInfF |  | 0 | 0 | 1 | 4 | 2
rtIsNaN |
rt_powd_snf (2)
| 0 | 0 | 5 | 14 | 2
rtIsNaNF |  | 0 | 0 | 5 | 14 | 2
rt_InitInfAndNaN |
MLS_initialize
| 30 | 0 | 7 | 10 | 1
sqrt |
MLS_precompute
rt_powd_snf
| Not available | - | - | - | -
sum |
MLS_precompute
| 12 | 12 | 11 | 15 | 3