Logevents v111003 analysis/pr-app-PWR123 s_stats-problems.html C:\IndigoPerl\bin\perl.exe 5.006

Description This report identifies potential problems with the software. There is a stats, problems, and details area. Examine the stats and compare them against previous runs of this report. The problems area identifies potential issues with the software. Use the links in this area to perform further analysis and verification of a potential problem. Use the details area to gauge the level of potential issues with a module. This is the same information as the more compact problems area, but the visualization may be more appropriate when making module decisions.
AnalysisComment
StatsThis analysis shows some key software metrics including LOC and module counts.
ProblemsThis analysis summarizes all the problems detected by the automated software analysis.
DetailsThis analysis shows the details from the original source code that are extracted from the search requests and internal error, warning, and caution settings. It also includes software metrics on a module basis.

Other Analysis Reports . Original Source Code . Instrumented Source Code . Help

12/08/2003 16:11:05


Analysis Group Stats

Previous Stats ft-app-B1.0-entropy.pl
ItemPreviousCurrentNorm
Total Source Lines - c h asm s 96366 11670 0 - - -11670- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 192732     prev:96366 cur:11670-84696
Total Non Blank Lines - c h asm s 52923 6417 0 - - -6417- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 105846     prev:52923 cur:6417-46506
Total Logical - c h asm s 3246 333 0 - - -333- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 6492     prev:3246 cur:333-2913
Total SemiColons - c h asm s 38038 4624 0 - - -4624- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 76076     prev:38038 cur:4624-33414
Total LOC - c h asm s 41284 4957 0 - - -4957- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 82568     prev:41284 cur:4957-36327

All Files - c h asm s (tot/analyzed) 134 16 / 16 0 - - -16- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 268     prev:134 cur:16-118
Files - C (tot/analyzed) 67 8 / 8 0 - - -8- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 134     prev:67 cur:8-59
Files - H (tot/analyzed) 67 8 / 8 0 - - -8- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 134     prev:67 cur:8-59
Files - ASM (tot/analyzed) 0.01 0 / 0
Perfect
Functions - C 537 70 0 - - -70- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 1074     prev:537 cur:70-467

Log Events in Code 1235 154 0 - - -154- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 2470     prev:1235 cur:154-1081
TOC Reqs in Code 1194 147 0 - - -147- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 2388     prev:1194 cur:147-1047
TOC Reqs in SRDB 1194 1174 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -1174- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 2388     prev:1194 cur:1174-20
Debug Events 0.01 0
Perfect
HMI Events 0.01 0
Perfect
LOC Events 0.01 0
Perfect

Code Req per SRDB Req (%) 100 12 0 - - -12- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 200     prev:100 cur:12-88
LOC per File - c h asm s 308 309 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -309- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 616     prev:308 cur:3091
LOC per Function 76 70 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -70- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 152     prev:76 cur:70-6
Functions per File - C 8.01 8.75 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -8.75- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 16.02     prev:8.01 cur:8.750.74

Non Blank Lines Per LOC 1.28 1.29 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -1.29- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 2.56     prev:1.28 cur:1.290.01
LOC Per Logical 12.71 14.88 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -14.88- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 25.42     prev:12.71 cur:14.882.17
C Per H 1.28 1.29 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -1.29- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 2.56     prev:1.28 cur:1.290.01

LOC per Req 34.57 33.72 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -33.72- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 69.14     prev:34.57 cur:33.72-0.85
Functions per Req 0.44 0.47 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -0.47- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.88     prev:0.44 cur:0.470.03
Logevents per Req 1.03 1.04 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -1.04- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 2.06     prev:1.03 cur:1.040.01


Possible Problems

Fatal Errors
C Headers
H Headers
ASM Headers
Must Fix Classification
Possible Class Issues
SV Marking
CV Marking
Fixed Keywords Code
Fixed Keywords Prologue
Conditional Compiles ifdefs
Missing Curly Braces
Switch Default balance
Default SwError balance
Case Break balance
Nested Switches
Stacked Cases
Calling Rules
No Error Exits
Files with 5 or more Functions
Files with 500 or more LOC
Functions with more than 100 LOC
C Functions with less than 5 LOC
Uncalled Functions / Interface
Dead Code
Log Event
Line Length 132
do Loops
goto Statements
?: Operator
++/-- In Decisions
Storage malloc free
Type ReCasting
Missing Function Headers
Analysis Summary


menu . Fatal Errors
These are artifacts of instrumentation that will lead to compile errors most of the time, such as printf's, breaking if-else sequences, splitting declaration areas, and instrumenting previously instrumented code.

1 4-290 . source/pr-app/pr-app-PWR123/pwr-04.c FATAL Compile Error Missing curly brace LE breaks path near: /* LE SV TOC-008 1
2 5-1448 . source/pr-app/pr-app-PWR123/pwr-05.c FATAL Compile Error Missing curly brace LE breaks path near: /* LE SV TOC-008 1
3 5-1563 . FATAL Compile Error Missing curly brace LE breaks path near: /* LE SV TOC-008 1
4 5-1917 . FATAL Compile Error Missing curly brace LE breaks path near: /* LE SV TOC-008 1
5 5-2252 . FATAL Compile Error Missing curly brace LE breaks path near: /* LE SV TOC-008 1
6 6-1208 . source/pr-app/pr-app-PWR123/pwr-06.c FATAL Compile Error Missing curly brace LE breaks path near: /* LE SV TOC-008 1
7 6-683 . FATAL Compile Error Missing curly brace LE breaks path near: /* LE SV TOC-008 1
Summary: 7 out of 4957 LOC = 0.14%       or       3 out of 16 files = 18.75%
- - - 0.14
- - -- - -- - -- - -- - - 18.75


menu . C Header: out of 8 C files
The .c .h and assembly headers are separately checked for the appropriate fields. Missing fields, wrong sequence of the fields, or missing headers are detected. Extra fields are ignored. Valid format:

          BEGIN PROLOGUE CLASSIFICATION FILE NAME ABSTRACT HISTORY CCCQ_VER END PROLOGUE

Looks good no header c findings :)


menu . H Header: 1 out of 8 H files
The .c .h and assembly headers are separately checked for the appropriate fields. Missing fields, wrong sequence of the fields, or missing headers are detected. Extra fields are ignored. Thread ID is optional and will only appear in the extra fields note if there is another header problem. Valid format:

          BEGIN PROLOGUE CLASSIFICATION FILE NAME ABSTRACT HISTORY CCCQ_VER END PROLOGUE

PVL 1 source/pr-app/pr-app-PWR123/pwr-02.h OOPs No Header
Summary: 1 out of 8 files = 12.5%
- - -- - -- - -- - -- - -- - -- - -- - - 12.5


menu . ASM Header: out of 0 ASM files
The .c .h and assembly headers are separately checked for the appropriate fields. Missing fields, wrong sequence of the fields, or missing headers are detected. Extra fields are ignored. Valid format:

          BEGIN PROLOGUE CLASSIFICATION FILE NAME ABSTRACT HISTORY CCCQ_VER END PROLOGUE

Looks good no header a findings :)


menu . Must Fix Classification
The header classification field must be marked PROPRIETARY or UNCLASSIFIED, no other markings are permitted. The file naming convention is checked against the header classification marking. Keywords that may trigger a higher classification are compared against the file naming convention. Missing headers against classified file names are detected.

1 source/pr-app/pr-app-PWR123/pwr-02.h File s_ marking wrong or Header Classification blank PVL
Summary: 1 out of 16 files = 6.25%
- - -- - - 6.25


menu . Possible Class Issues
The header classification field must be marked PROPRIETARY or UNCLASSIFIED, no other markings are permitted. The file naming convention is checked against the header classification marking. Keywords that may trigger a higher classification are compared against the file naming convention. Missing headers against classified file names are detected.

1 1-128 . source/pr-app/pr-app-PWR123/pwr-01.c Classified text in wrong file name: // (P) this is really improtant PVL
2 1-1308 . Classified text in wrong file name: // (P) this is really improtant
3 1-502 . Classified text in wrong file name: halt ;
4 1-871 . Classified text in wrong file name: /* LE SV TOC-2414 this is a pwr-01.7.16 req to halt */
5 2-1062 . source/pr-app/pr-app-PWR123/pwr-02.c Classified text in wrong file name: // (P) this is really improtant PVL
6 2-658 . Classified text in wrong file name: halt ;
7 2-942 . Classified text in wrong file name: halt ;
8 4-1053 . source/pr-app/pr-app-PWR123/pwr-04.c Classified text in wrong file name: // (P) this is really improtant PVL
9 4-1897 . Classified text in wrong file name: halt ;
10 4-827 . Classified text in wrong file name: halt ;
11 5-1333 . source/pr-app/pr-app-PWR123/pwr-05.c Classified text in wrong file name: halt ; PVL
12 5-858 . Classified text in wrong file name: /* LE SV TOC-2505 this is a pwr-05.5.27 req to halt */
13 6-302 . source/pr-app/pr-app-PWR123/pwr-06.c Classified text in wrong file name: // (P) this is really improtant PVL
14 7-426 . source/pr-app/pr-app-PWR123/pwr-07.c Classified text in wrong file name: halt ; PVL
15 7-86 . Classified text in wrong file name: halt ;
16 7-918 . Classified text in wrong file name: halt ;
Summary: 16 out of 4957 LOC = 0.32%       or       6 out of 16 files = 37.5%
- - - 0.32
- - -- - -- - -- - -- - -- - - 37.5


menu . Fixed Keywords Code
Although there is a separate keywords report, there are several keywords that must be explained or removed. The bad fixed keywords form this set.
C - \btbd\b|\btbs\b|\btbsl\b|demo|\?\?     H - \btbd\b|\btbs\b|\btbsl\b|demo|\?\?     A - \btbd\b|\btbs\b|\btbsl\b|demo|\?\?

C files
1 2-92 . source/pr-app/pr-app-PWR123/pwr-02.c // ? ?? go see ws PVL
2 4-1120 . source/pr-app/pr-app-PWR123/pwr-04.c // TBD - what do I do now PVL
3 4-1326 . // ? ?? go see ws
4 4-1910 . // ? ?? go see ws
5 4-2227 . // TBD - what do I do now
6 4-299 . // TBS - I need to figure this out
7 5-1002 . source/pr-app/pr-app-PWR123/pwr-05.c // ? ?? go see ws PVL
8 6-216 . source/pr-app/pr-app-PWR123/pwr-06.c // ? ?? go see ws PVL
9 6-933 . // TBS - I need to figure this out
10 8-146 . source/pr-app/pr-app-PWR123/pwr-08.c // ? ?? go see ws PVL

H files

Assembly files

other files

Summary: 10 out of 4957 LOC = 0.2%       or       5 out of 16 files = 31.25%
- - - 0.2
- - -- - -- - -- - -- - -- - -- - -- - -- - - 31.25


menu . Fixed Keywords Prologue
Although there is a separate keywords report, there are several keywords that must be explained or removed. The bad fixed keywords form this set.
C - \btbd\b|\btbs\b|\btbsl\b|demo|\?\?     H - \btbd\b|\btbs\b|\btbsl\b|demo|\?\?     A - \btbd\b|\btbs\b|\btbsl\b|demo|\?\?

Looks good no bad fixed keyword findings :)
C files

H files

Assembly files

other files

Summary: 0 out of 4957 LOC = 0%       or       0 out of 16 files = 0%
- - - 0
- - - 0


menu . Conditional Compiles ifdefs
Conditional compiles can become a problem if they are not properly managed. #if|#elif|#else|#error|#endif|#if.defined|ifdef

1 1-244 . source/pr-app/pr-app-PWR123/pwr-01.c # ifdef LAZY PVL
2 1-248 . #endif
3 3-782 . source/pr-app/pr-app-PWR123/pwr-03.c # ifdef LAZY PVL
4 3-786 . #endif
5 6-557 . source/pr-app/pr-app-PWR123/pwr-06.c # ifdef LAZY PVL
6 6-561 . #endif
7 7-646 . source/pr-app/pr-app-PWR123/pwr-07.c # ifdef LAZY PVL
8 7-650 . #endif
9 7-809 . # ifdef LAZY
10 7-813 . #endif
Summary: 10 out of 4957 LOC = 0.2%       or       4 out of 16 files = 25%
- - - 0.2
- - -- - -- - - 25


menu . Missing Curly Braces
If and Else statements should enclose their operations with curly braces. Missing curly braces can lead to potential problems as the code changes and if or else blocks are potentially modified to include more than one code statement.

1 2-843 . source/pr-app/pr-app-PWR123/pwr-02.c Missing curly brace if (veg) looked as far as 850 PVL
2 4-1180 . source/pr-app/pr-app-PWR123/pwr-04.c Missing curly brace if (veg) looked as far as 1185 PVL
3 4-389 . Missing curly brace if (veg) looked as far as 394
Summary: 3 out of 4957 LOC = 0.06%       or       2 out of 16 files = 12.5%
- - - 0.06
- - -- - -- - -- - -- - -- - -- - -- - - 12.5


menu . Switch Default balance . ErrorHandlingRpt . green is good red is bad
All switch statements must be paired with a default statement. Missing default statements are detected exclusive of comments.

1 1-1137 . source/pr-app/pr-app-PWR123/pwr-01.c Missing default PVL
2 1-725 . Missing default
3 2-341 . source/pr-app/pr-app-PWR123/pwr-02.c Missing default PVL
4 3-385 . source/pr-app/pr-app-PWR123/pwr-03.c Missing default PVL
5 3-718 . Missing default
6 4-1366 . source/pr-app/pr-app-PWR123/pwr-04.c Missing default PVL
7 4-449 . Missing default
8 5-216 . source/pr-app/pr-app-PWR123/pwr-05.c Missing default PVL
9 7-453 . source/pr-app/pr-app-PWR123/pwr-07.c Missing default PVL
10 7-533 . Missing default
Summary: 10 out of 4957 LOC = 0.2%       or       6 out of 16 files = 37.5%
- - - 0.2
- - -- - -- - -- - -- - -- - - 37.5


menu . Default SwError balance . ErrorHandlingRpt . green is good red is bad
All default statements must call SwError. Missing SwError calls and calls that are commented out are detected.

1 1-540 . source/pr-app/pr-app-PWR123/pwr-01.c Missing SwError PVL
2 1-755 . Missing SwError
3 2-656 . source/pr-app/pr-app-PWR123/pwr-02.c Missing SwError PVL
4 4-1284 . source/pr-app/pr-app-PWR123/pwr-04.c Missing SwError PVL
5 4-1895 . Missing SwError
6 4-2144 . Missing SwError
7 4-825 . Missing SwError
8 4-84 . Missing SwError
9 5-1183 . source/pr-app/pr-app-PWR123/pwr-05.c Missing SwError PVL
10 5-1331 . Missing SwError
11 5-807 . Missing SwError
12 7-424 . source/pr-app/pr-app-PWR123/pwr-07.c Missing SwError PVL
13 7-627 . Missing SwError
Summary: 13 out of 4957 LOC = 0.26%       or       5 out of 16 files = 31.25%
- - - 0.26
- - -- - -- - -- - -- - -- - -- - -- - -- - - 31.25


menu . Case Break balance . ErrorHandlingRpt
All case statements with code should be paired with a break or return statement. Missing break statements are detected exclusive of comments. Without a break the code is less robust and prone to disintegration when modified.

1 1-1698 . source/pr-app/pr-app-PWR123/pwr-01.c Missing break in case PVL
2 2-347 . source/pr-app/pr-app-PWR123/pwr-02.c Missing break in case PVL
3 2-399 . Missing break in case
4 3-391 . source/pr-app/pr-app-PWR123/pwr-03.c Missing break in case PVL
5 4-1372 . source/pr-app/pr-app-PWR123/pwr-04.c Missing break in case PVL
6 4-455 . Missing break in case
7 4-968 . Missing break in case
8 5-1481 . source/pr-app/pr-app-PWR123/pwr-05.c Missing break in case PVL
9 5-2325 . Missing break in case
10 5-703 . Missing break in case
11 7-459 . source/pr-app/pr-app-PWR123/pwr-07.c Missing break in case PVL
Summary: 11 out of 4957 LOC = 0.22%       or       6 out of 16 files = 37.5%
- - - 0.22
- - -- - -- - -- - -- - -- - - 37.5


menu . Nested Switches . ErrorHandlingRpt
Some case statements have a nested switch sequence.

1 2-343 . source/pr-app/pr-app-PWR123/pwr-02.c Nested switch PVL
2 3-387 . source/pr-app/pr-app-PWR123/pwr-03.c Nested switch PVL
3 4-1368 . source/pr-app/pr-app-PWR123/pwr-04.c Nested switch PVL
4 4-451 . Nested switch
5 7-455 . source/pr-app/pr-app-PWR123/pwr-07.c Nested switch PVL
Summary: 5 out of 4957 LOC = 0.1%       or       4 out of 16 files = 25%
- - - 0.1
- - -- - -- - - 25


menu . Stacked Case Statements . ErrorHandlingRpt
Some case statements are stacked.

1 2-645 . source/pr-app/pr-app-PWR123/pwr-02.c Stacked case statements PVL
2 2-646 . Stacked case statements
3 2-649 . Stacked case statements
4 2-650 . Stacked case statements
5 4-1884 . source/pr-app/pr-app-PWR123/pwr-04.c Stacked case statements PVL
6 4-1885 . Stacked case statements
7 4-1888 . Stacked case statements
8 4-1889 . Stacked case statements
9 4-814 . Stacked case statements
10 4-815 . Stacked case statements
11 4-818 . Stacked case statements
12 4-819 . Stacked case statements
13 5-1320 . source/pr-app/pr-app-PWR123/pwr-05.c Stacked case statements PVL
14 5-1321 . Stacked case statements
15 5-1324 . Stacked case statements
16 5-1325 . Stacked case statements
17 7-413 . source/pr-app/pr-app-PWR123/pwr-07.c Stacked case statements PVL
18 7-414 . Stacked case statements
19 7-417 . Stacked case statements
20 7-418 . Stacked case statements
Summary: 20 out of 4957 LOC = 0.4%       or       4 out of 16 files = 25%
- - - 0.4
- - -- - -- - - 25


menu . File with: No Error Exits 1
Most of the software should include an error exit. This is not a hard and fast rule, but may need to be justified.

1 source/pr-app/pr-app-PWR123/pwr-08.c PVL
Summary: 1 out of 16 files = 6.25%
- - -- - - 6.25


menu . Files with: 5 or more Functions
Good practices limit the number of functions to 5 in any given source file.

1 source/pr-app/pr-app-PWR123/pwr-01.c 13 PVL
2 source/pr-app/pr-app-PWR123/pwr-02.c 6 PVL
3 source/pr-app/pr-app-PWR123/pwr-03.c 8 PVL
4 source/pr-app/pr-app-PWR123/pwr-04.c 11 PVL
5 source/pr-app/pr-app-PWR123/pwr-05.c 14 PVL
6 source/pr-app/pr-app-PWR123/pwr-06.c 9 PVL
7 source/pr-app/pr-app-PWR123/pwr-07.c 8 PVL
Summary: 7 out of 16 files = 43.75%
- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 43.75


menu . Files with: 500 or more LOC
Good practices limit the number of LOC to 500 in any given source file.

1 source/pr-app/pr-app-PWR123/pwr-01.c Error: File with 720 LOC detected PVL
2 source/pr-app/pr-app-PWR123/pwr-03.c Error: File with 558 LOC detected PVL
3 source/pr-app/pr-app-PWR123/pwr-04.c Error: File with 1035 LOC detected PVL
4 source/pr-app/pr-app-PWR123/pwr-05.c Error: File with 1010 LOC detected PVL
5 source/pr-app/pr-app-PWR123/pwr-06.c Error: File with 587 LOC detected PVL
Summary: 1 out of 16 files = 6.25%
- - -- - - 6.25


menu . Functions with: more than 100 LOC
For proper analysis there must be a valid header termination before the start of a function. Good practices limit the LOC in any given function.

1 source/pr-app/pr-app-PWR123/pwr-01.c 720 PVL
2 source/pr-app/pr-app-PWR123/pwr-02.c 462 PVL
3 source/pr-app/pr-app-PWR123/pwr-03.c 558 PVL
4 source/pr-app/pr-app-PWR123/pwr-04.c 1035 PVL
5 source/pr-app/pr-app-PWR123/pwr-05.c 1010 PVL
6 source/pr-app/pr-app-PWR123/pwr-06.c 587 PVL
7 source/pr-app/pr-app-PWR123/pwr-07.c 446 PVL
Summary: 7 out of 70 Functions = 10%       or       7 out of 16 files = 43.75%
- - -- - -- - -- - -- - -- - - 10
- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 43.75


menu . C Functions with: less than 5 LOC
For proper analysis there must be a valid header termination before the start of a function. Good practices limit the LOC in any given function.

Looks good no lt LOC per file findings :)
Summary: 0 out of 70 Functions = 0%       or       0 out of 16 files = 0%
- - - 0
- - - 0


menu . Dead Code
This is a very simple detector looking for single line commented out code. Code that is block commented out is not detected. Dead code that is the result of logical errors is not detected.

1 1-1397 . source/pr-app/pr-app-PWR123/pwr-01.c B dead_block = C * D; PVL
2 1-1454 . A /* dead_code = A * B; */
3 2-130 . source/pr-app/pr-app-PWR123/pwr-02.c B dead_block = E * F; */ PVL
4 2-159 . B dead_block = C * D;
5 2-632 . B dead_block = E * F; */
6 2-680 . B dead_block = E * F; */
7 2-954 . B dead_block = C * D;
8 3-1190 . source/pr-app/pr-app-PWR123/pwr-03.c A /* dead_code = A * B; */ PVL
9 3-1226 . B dead_code = B - C;
10 3-1270 . B dead_code = D + E;
11 3-135 . B dead_code = D + E;
12 3-239 . B dead_block = C * D;
13 3-280 . B dead_code = B - C;
14 3-611 . B dead_code = B - C;
15 4-2018 . source/pr-app/pr-app-PWR123/pwr-04.c B dead_block = C * D; PVL
16 4-438 . B dead_code = B - C;
17 4-661 . B dead_code = B - C;
18 5-1281 . source/pr-app/pr-app-PWR123/pwr-05.c B dead_block = E * F; */ PVL
19 5-1440 . B dead_block = C * D;
20 5-1795 . B dead_code = B - C;
21 5-1971 . A /* dead_code = A * B; */
22 5-2282 . B dead_code = D + E;
23 5-2318 . B dead_code = D + E;
24 5-880 . A /* dead_code = A * B; */
25 6-1296 . source/pr-app/pr-app-PWR123/pwr-06.c A /* dead_code = A * B; */ PVL
26 6-548 . A /* dead_code = A * B; */
27 6-864 . B dead_code = B - C;
28 7-232 . source/pr-app/pr-app-PWR123/pwr-07.c B dead_block = E * F; */ PVL
29 7-769 . B dead_block = E * F; */
30 8-110 . source/pr-app/pr-app-PWR123/pwr-08.c B dead_code = B - C; PVL
31 8-92 . B dead_block = C * D;
Summary: 31 out of 4957 LOC = 0.62%       or       8 out of 16 files = 50%
- - - 0.62
- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 50


menu . Log Event
Logevents are subjected to several checks to determine if there may be a potential problem. The checks include redundant text, consecutive events without program code in between events, encoding problems (LE SV not LE, not SV, not TE, etc), potentially placing a logevent at the start of a procedure rather than at the conclusion, potentially placing a logevent within a loop.

Looks good no log event findings :)
Summary: 0 out of 4957 LOC = 0%       or       0 out of 16 files = 0%
- - - 0
- - - 0


menu . Line Length
Report lines greater than 132 characters where 2 characters are CR/LF. Ignore lines generated by clear case, they exceed 132.

Looks good no length sets to consider :)
Summary: 0 out of 4957 LOC = 0%       or       0 out of 16 files = 0%
- - - 0
- - - 0


menu . do Loops

1 1-1107 . source/pr-app/pr-app-PWR123/pwr-01.c do Loop do forever; PVL
2 5-269 . source/pr-app/pr-app-PWR123/pwr-05.c do Loop do forever; PVL
3 6-585 . source/pr-app/pr-app-PWR123/pwr-06.c do Loop do forever; PVL
Summary: 3 out of 4957 LOC = 0.06%       or       3 out of 16 files = 18.75%
- - - 0.06
- - -- - -- - -- - -- - - 18.75


menu . goto Statements

1 2-313 . source/pr-app/pr-app-PWR123/pwr-02.c goto Statement goto error; PVL
2 4-500 . source/pr-app/pr-app-PWR123/pwr-04.c goto Statement goto error; PVL
3 5-346 . source/pr-app/pr-app-PWR123/pwr-05.c goto Statement goto error; PVL
4 6-436 . source/pr-app/pr-app-PWR123/pwr-06.c goto Statement goto error; PVL
5 7-720 . source/pr-app/pr-app-PWR123/pwr-07.c goto Statement goto error; PVL
Summary: 5 out of 4957 LOC = 0.1%       or       5 out of 16 files = 31.25%
- - - 0.1
- - -- - -- - -- - -- - -- - -- - -- - -- - - 31.25


menu . ?: Operator

Looks good no q-operator sets to consider :)
Summary: 0 out of 4957 LOC = 0%       or       0 out of 16 files = 0%
- - - 0
- - - 0


menu . Storage malloc free
Requesting storage using malloc, alloc, calloc should be minimized and include a symetrical free cfree sequence. This can lead to memory leaks if not properly freed. There are also SV related issues.

1 1-1299 . source/pr-app/pr-app-PWR123/pwr-01.c send_buffer = (U16 *) malloc(size+1); PVL
2 1-1445 . free( FreePtr);
3 1-326 . FreePtr = HmiStringPtr;
4 2-280 . source/pr-app/pr-app-PWR123/pwr-02.c FreePtr = HmiStringPtr; PVL
5 2-608 . send_buffer = (U16 *) malloc(size+1);
6 3-682 . source/pr-app/pr-app-PWR123/pwr-03.c free( FreePtr); PVL
7 4-1116 . source/pr-app/pr-app-PWR123/pwr-04.c FreePtr = HmiStringPtr; PVL
8 4-1627 . FreePtr = HmiStringPtr;
9 4-891 . send_buffer = (U16 *) malloc(size+1);
10 5-1228 . source/pr-app/pr-app-PWR123/pwr-05.c send_buffer = (U16 *) malloc(size+1); PVL
11 5-1266 . send_buffer = (U16 *) malloc(size+1);
12 5-1380 . free( FreePtr);
13 6-1298 . source/pr-app/pr-app-PWR123/pwr-06.c free( FreePtr); PVL
14 6-157 . send_buffer = (U16 *) malloc(size+1);
15 6-792 . FreePtr = HmiStringPtr;
16 7-335 . source/pr-app/pr-app-PWR123/pwr-07.c FreePtr = HmiStringPtr; PVL
Summary: 16 out of 4957 LOC = 0.32%       or       7 out of 16 files = 43.75%
- - - 0.32
- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 43.75


menu . Type ReCasting
Recasting variables should not be practiced since it can lead to truncation of data.

1 2-216 . source/pr-app/pr-app-PWR123/pwr-02.c A = (long) B + C; PVL
2 4-1408 . source/pr-app/pr-app-PWR123/pwr-04.c A = (long) B + C; PVL
3 4-1924 . A = (long) B + C;
4 4-2011 . A = (float) B + C;
5 4-348 . A = (float) B + C;
6 4-567 . A = (long) B + C;
7 4-571 . A = (long) B + C;
8 4-961 . A = (long) B + C;
9 5-1407 . source/pr-app/pr-app-PWR123/pwr-05.c A = (long) B + C; PVL
10 5-2261 . A = (float) B + C;
11 5-263 . A = (int) B + C;
12 5-631 . A = (long) B + C;
13 6-160 . source/pr-app/pr-app-PWR123/pwr-06.c A = (int) B + C; PVL
14 6-652 . A = (float) B + C;
15 7-1012 . source/pr-app/pr-app-PWR123/pwr-07.c A = (float) B + C; PVL
16 7-576 . A = (int) B + C;
17 7-91 . A = (int) B + C;
18 7-945 . A = (long) B + C;
19 8-51 . source/pr-app/pr-app-PWR123/pwr-08.c A = (long) B + C; PVL
Summary: 19 out of 4957 LOC = 0.38%       or       6 out of 16 files = 37.5%
- - - 0.38
- - -- - -- - -- - -- - -- - - 37.5


menu . Missing Function Headers
The header does not need to be correct, but there must be a header. Functions should include a header. This function search is based only on void references. Other headers may be missing.

Looks good no missing func hdr sets to consider :)
Summary: 0 out of 4957 LOC = 0%       or       0 out of 16 files = 0%
- - - 0
- - - 0


Analysis Summary

menu Files With Problems:
source/pr-app/pr-app-PWR123/pwr-01.c 22
source/pr-app/pr-app-PWR123/pwr-02.c 27
source/pr-app/pr-app-PWR123/pwr-03.c 16
source/pr-app/pr-app-PWR123/pwr-04.c 56
source/pr-app/pr-app-PWR123/pwr-05.c 43
source/pr-app/pr-app-PWR123/pwr-06.c 26
source/pr-app/pr-app-PWR123/pwr-07.c 36
source/pr-app/pr-app-PWR123/pwr-08.c 4


Metrics - Percents Within Collections This report provides metrics in terms of percent of the code analyzed. This is a great way to compare peer reviews (small collections of code) against a previous baseline release (the whole thing). It is also a great way to compare different projects which follow similar, but not exact, coding standards. For Example, assume version A has 10 items flagged and is 10,000 LOC while version B has 20 items flagged but is 50,000 LOC. Even though version B has more items flagged one could argue that it is better than Version A since as a percentage, the flagged items are lower.

Problem LOC Norm Files Norm LOC Files LOC Files
Fatal Errors 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -0.14- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.28 0 - - -- - -- - -- - -- - -- - -- - -- - -18.75- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 52.22 sameprev:26.11 cur:18.75-7.36 - - - 0.14
- - -- - -- - -- - -- - - 18.75
C Header
Perfect
Perfect
- - - 0
- - - 0
H Header
Perfect
0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -12.5 11.94 prev:5.97 cur:12.56.53 - - - 0
- - -- - -- - -- - -- - -- - -- - -- - - 12.5
ASM Header
Perfect
Perfect
- - - 0
- - - 0
Possible Class Issues 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -0.32- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.86 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -37.5- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 77.6 prev:0.43 cur:0.32-0.1prev:38.8 cur:37.5-1.29 - - - 0.32
- - -- - -- - -- - -- - -- - - 37.5
Must Fix Class
Perfect
0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -6.25- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 14.92 prev:7.46 cur:6.25-1.21 - - - 0
- - -- - - 6.25
SV Marking
Disabled
CV Marking
Disabled
Fixed Keywords Code 0 - - -- - -- - -- - -- - -- - -- - -- - -0.2- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.58 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -31.25- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 74.62 prev:0.29 cur:0.2-0.08prev:37.31 cur:31.25-6.06 - - - 0.2
- - -- - -- - -- - -- - -- - -- - -- - -- - - 31.25
Fixed Keywords Prologues
Perfect
Perfect
- - - 0
- - - 0
Conditional Compiles 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -0.2- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.4 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -25- - -- - -- - -- - -- - -- - -- - -- - -- - - 37.3 sameprev:18.65 cur:256.35 - - - 0.2
- - -- - -- - - 25
Switch Default Balance 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -0.2- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.42 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -37.5- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 68.64 prev:0.21 cur:0.20prev:34.32 cur:37.53.18 - - - 0.2
- - -- - -- - -- - -- - -- - - 37.5
Default SwError Balance 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -0.26- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.48 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -31.25- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 62.68 prev:0.24 cur:0.260.02prev:31.34 cur:31.25-0.08 - - - 0.26
- - -- - -- - -- - -- - -- - -- - -- - -- - - 31.25
Case Break Balance 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -0.22- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.5 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -37.5- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 73.12 prev:0.25 cur:0.22-0.03prev:36.56 cur:37.50.93 - - - 0.22
- - -- - -- - -- - -- - -- - - 37.5
Nested Switches 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -0.1- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.22 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -25- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 44.76 prev:0.11 cur:0.10prev:22.38 cur:252.62 - - - 0.1
- - -- - -- - - 25
Stacked Case Statements 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -0.4- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 1.1 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -25- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 50.74 prev:0.55 cur:0.4-0.15prev:25.37 cur:25-0.37 - - - 0.4
- - -- - -- - - 25
Calling Rules
Disabled
No Error Exits
Perfect
0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -6.25 2.98 prev:1.49 cur:6.254.76 - - - 0
- - -- - - 6.25
Files > 5 Functions
Perfect
0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -43.75- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 70.14 prev:35.07 cur:43.758.68 - - - 0
- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 43.75
Files > 500 LOC
Perfect
0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -6.25 1.48 prev:0.74 cur:6.255.51 - - - 0
- - -- - - 6.25
Func's Norm Files Norm LOC Files Func's Files
C Functions > 100 LOC 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -10- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 23.08 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -43.75- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 92.52 prev:11.54 cur:10-1.53prev:46.26 cur:43.75-2.5 - - -- - -- - -- - -- - -- - - 10
- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 43.75
C Functions < 5 LOC
Perfect
Perfect
- - - 0
- - - 0
LOC Norm Files Norm LOC Files LOC Files
Uncalled Functions
Disabled
Dead Code 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -0.62- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.96 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -50- - -- - -- - -- - -- - -- - -- - -- - -- - - 76.1 prev:0.48 cur:0.620.14prev:38.05 cur:5011.95 - - - 0.62
- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 50
Log Events
Perfect
Perfect
- - - 0
- - - 0
Missing Curly Braces 0 - - -- - -- - -- - -- - -- - -- - -- - -0.06- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.18 0 - - -- - -- - -- - -- - -- - -- - -12.5- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 40.28 prev:0.09 cur:0.06-0.03prev:20.14 cur:12.5-7.64 - - - 0.06
- - -- - -- - -- - -- - -- - -- - -- - - 12.5
Line Length
Perfect
Perfect
- - - 0
- - - 0
do Loops 0 - - -- - -- - -- - -- - -- - -- - -- - -0.06- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.18 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -18.75- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 34.32 prev:0.09 cur:0.06-0.03prev:17.16 cur:18.751.59 - - - 0.06
- - -- - -- - -- - -- - - 18.75
goto Statements 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -0.1- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.22 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -31.25- - -- - -- - -- - -- - -- - -- - -- - -- - - 47.76 prev:0.11 cur:0.10prev:23.88 cur:31.257.37 - - - 0.1
- - -- - -- - -- - -- - -- - -- - -- - -- - - 31.25
?: Operator
Perfect
Perfect
- - - 0
- - - 0
Increment In Decision
Disabled
Storage malloc free 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -0.32- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 0.66 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -43.75- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 76.1 prev:0.33 cur:0.32-0.01prev:38.05 cur:43.755.7 - - - 0.32
- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 43.75
Type ReCasting 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -0.38- - -- - -- - -- - -- - -- - -- - -- - - 0.54 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -37.5- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 74.62 prev:0.27 cur:0.380.1prev:37.31 cur:37.50.18 - - - 0.38
- - -- - -- - -- - -- - -- - - 37.5
Missing Function Headers
menu

Metric ItemFlaggedTotalPercentNormPercent
LOC17949573.61% 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -3.61- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 7.68     prev:3.84 cur:3.61-0.23 - - -- - -- - - 3.61
Functions77010% 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -10- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 23.08     prev:11.54 cur:10-1.54 - - -- - -- - -- - -- - -- - - 10
Files81650% 0 - - -- - -- - -- - -- - -- - -- - -50- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 176.1     prev:88.05 cur:50-38.05 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 50
Total Up Flags16-- 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -16 0.02     prev:0.01 cur:1615.99
Total Down Flags19-- 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -19 0.02     prev:0.01 cur:1918.99
Total Same Flags2-- 0 2- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 76     prev:38 cur:2-36

Final Tally of Flags This version is BETTER up:16 dwn:19 -3 out of 37 or -8% than ft-app-B1.0-entropy.pl
menu


Metrics - Counts Within Collections This report provides metrics in terms of absolute counts. It is used to compare version releases on the same project and to get an assessment of the exact number of problems.

ProblemLOC NormFiles Norm LOC Files     Prev LOC Cur LOC Prev Files Cur Files
Fatal Errors 0 - - -7- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 116 0 - - -3- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 70 prev:58 cur:7-51prev:35 cur:3-32587353
C Header
Perfect
Perfect
0.01060
H Header
Perfect
0 - - -- - -- - -1- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 8 prev:4 cur:1-30.01041
ASM Header
Perfect
Perfect
0.0100.010
Possible Class Issues 0 - - -16- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 360 0 - - -6- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 104 prev:180 cur:16-164prev:52 cur:6-4618016526
Must Fix Class
Perfect
0 - - -1- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 20 prev:10 cur:1-90.010101
SV Marking
Disabled
CV Marking
Disabled
Fixed Keywords Code 0 - - -10- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 242 0 - - -5- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 100 prev:121 cur:10-111prev:50 cur:5-4512110505
Fixed Keywords Prologues
Perfect
Perfect
0.0100.010
Conditional Compiles 0 - - -10- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 172 0 - - -- - -4- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 50 prev:86 cur:10-76prev:25 cur:4-218610254
Switch Default Balance 0 - - -10- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 176 0 - - -6- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 92 prev:88 cur:10-78prev:46 cur:6-408810466
Default SwError Balance 0 - - -13- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 200 0 - - -5- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 84 prev:100 cur:13-87prev:42 cur:5-3710013425
Case Break Balance 0 - - -11- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 212 0 - - -6- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 98 prev:106 cur:11-95prev:49 cur:6-4310611496
Nested Switches 0 - - -5- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 94 0 - - -4- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 60 prev:47 cur:5-42prev:30 cur:4-26475304
Stacked Case Statements 0 - - -20- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 456 0 - - -4- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 68 prev:228 cur:20-208prev:34 cur:4-3022820344
Calling Rules
Disabled
No Error Exits
Perfect
0 - - -- - -- - -- - -- - -- - -1- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 4 prev:2 cur:1-10.01021
Files > 5 Functions
Perfect
0 - - -7- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 94 prev:47 cur:7-400.010477
Files > 500 LOC
Perfect
0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -1- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 2 same0.01011
ProblemFunctions NormFiles Norm LOC Files Prev Func's Cur Func's Prev Files Cur Files
C Functions > 100 LOC 0 - - -7- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 124 0 - - -7- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 124 prev:62 cur:7-55prev:62 cur:7-55627627
C Functions < 5 LOC
Perfect
Perfect
0.0100.010
ProblemLOC NormFiles Norm LOC Files Prev LOC Cur LOC Prev Files Cur Files
Uncalled Functions
Disabled
Dead Code 0 - - -31- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 400 0 - - -8- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 102 prev:200 cur:31-169prev:51 cur:8-4320031518
Log Events
Perfect
Perfect
0.0100.010
Missing Curly Braces 0 3- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 76 0 2- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 54 prev:38 cur:3-35prev:27 cur:2-25383272
Line Length
Perfect
Perfect
0.0100.010
do Loops 0 3- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 76 0 - - -3- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 46 prev:38 cur:3-35prev:23 cur:3-20383233
goto Statements 0 - - -5- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 96 0 - - -5- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 64 prev:48 cur:5-43prev:32 cur:5-27485325
?: Operator
Perfect
Perfect
0.0100.010
Increment In Decision
Disabled
Storage malloc free 0 - - -16- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 274 0 - - -7- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 102 prev:137 cur:16-121prev:51 cur:7-4413716517
Type ReCasting 0 - - -- - -19- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 228 0 - - -6- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 100 prev:114 cur:19-95prev:50 cur:6-4411419506
Missing Function Headers00
menu

Metric Item Flagged Norm Prev Cur
LOC 0 - - -179- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 3178     prev:1589 cur:179-1410 1589 179
Functions 0 - - -7- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 124     prev:62 cur:7-55 62 7
Files 0 8- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 236     prev:118 cur:8-110 118 8
Total Up Flags
Perfect
0.01 0
Total Down Flags 0 - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -36 0.02     prev:0.01 cur:3635.99 0.01 36
Total Same Flags 0 1- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - 76     prev:38 cur:1-37 38 1

Final Tally of Flags This version is BETTER up:0 dwn:36 -36 out of 37 or -97% than ft-app-B1.0-entropy.pl
menu


Details Report

1 1 Source: source/pr-app/pr-app-PWR123/pwr-01.c
Note: OK Classification Marking
Note: Good Header
1-15 pwr.1.1
1-74 pwr.1.2
1-128 // (P) this is really improtant Attention: Classified text in wrong file name: (P)
1-244 #ifdef LAZY Attention: Conditional Compile ifdef 1-248 #endif Attention: Conditional Compile #endif 1-326 FreePtr = HmiStringPtr; Attention: Storage FreePtr = HmiStringPtr; 1-336 pwr.1.3
1-424 pwr.1.4
1-478 pwr.1.5
1-502 halt; Attention: Classified text in wrong file name: halt
1-540 default: { // missing error call } Attention: Missing SwError 1-646 pwr.1.6
1-725 { case one: { run_this; break; } case two: { run_this; break; } // missing default } A = B+C; A = B+C; switch (pwr stuff) Attention: Missing default 1-755 default: { // missing error call } Attention: Missing SwError 1-806 pwr.1.7
1-871 /* LE SV TOC-2414 this is a pwr-01.7.16 req to halt*/ Attention: Classified text in wrong file name: halt
1-896 pwr.1.8
1-1008 pwr.1.9
1-1107 Warning: do Loop do forever; 1-1137 { case one: { run_this; break; } case two: { run_this; break; } // missing default } A = B+C; A = B-C; A = B+C; A = B/C; if (A ne B) { A = B + C; D = E + F; } if (A > B) { A = B + C; D = E + F; } if (A ne B) { A = B + C; D = E + F; } A = B+C; A = B-C; A = B*C; A = B*C; A = B/C; if (A ge B) { A = B + C; D = E + F; } A = B-C; if (A le B) { A = B + C; D = E + F; } A = B+C; switch (pwr stuff) Attention: Missing default 1-1242 pwr.1.10
1-1299 send_buffer = (U16 *) malloc(size+1); Attention: Storage malloc(size+1); 1-1308 // (P) this is really improtant Attention: Classified text in wrong file name: (P)
1-1350 pwr.1.11
1-1397 dead_block = C * D; Attention: Dead Code 1-1445 free(FreePtr); Attention: Storage FreePtr); 1-1454 /* dead_code = A * B; */ Attention: Dead Code 1-1486 pwr.1.12
1-1676 pwr.1.13
1-1698 // missing break { run_this; // missing break } Attention: Missing break in case Source Lines 1761 Logical 57 SemiColons 663 LOC 720 Warning: Functions Exceed 13
Error: File with 720 LOC 1 1 Result: result/source/pr-app/pr-app-PWR123/pwr-01.c


2 2 Source: source/pr-app/pr-app-PWR123/pwr-01.h Note: OK Classification Marking
Note: Good Header
Source Lines 22 Logical 0 SemiColons 1 LOC 1 2 2 Result: result/source/pr-app/pr-app-PWR123/pwr-01.h


3 3 Source: source/pr-app/pr-app-PWR123/pwr-02.c Note: OK Classification Marking
Note: Good Header
2-15 pwr.2.1
2-73 pwr.2.2
2-92 // ??? go see ws Attention: Possible problem Keyword ?? 2-130 dead_block = E * F; */ Attention: Dead Code 2-159 dead_block = C * D; Attention: Dead Code 2-216 A = (long)B + C; Attention: Recasting (long) 2-258 pwr.2.3
2-280 FreePtr = HmiStringPtr; Attention: Storage FreePtr = HmiStringPtr; 2-313 Warning: goto Statement goto error; 2-341 { case one: { switch (nested) Attention: Missing default 2-343 { { switch (nested) Attention: Nested switch 2-347 X = Y + Z; X = Y + Z; case: Attention: Missing break in case 2-399 // missing break { run_this; // missing break } Attention: Missing break in case 2-559 pwr.2.4
2-595 pwr.2.5
2-608 send_buffer = (U16 *) malloc(size+1); Attention: Storage malloc(size+1); 2-632 dead_block = E * F; */ Attention: Dead Code 2-645 case: case: Attention: Stacked case statements 2-646 // stacked case statements but only if there is a new line in between case: Attention: Stacked case statements 2-649 case: case: Attention: Stacked case statements 2-650 case: case: Attention: Stacked case statements 2-656 default: { halt; } Attention: Missing SwError 2-658 halt; Attention: Classified text in wrong file name: halt
2-680 dead_block = E * F; */ Attention: Dead Code 2-805 pwr.2.6
2-843if (veg) Warning: Missing curly brace looked as far as 850 2-942 halt; Attention: Classified text in wrong file name: halt
2-954 dead_block = C * D; Attention: Dead Code 2-1062 // (P) this is really improtant Attention: Classified text in wrong file name: (P)
Source Lines 1130 Logical 33 SemiColons 429 LOC 462 Warning: Functions Exceed 6
3 3 Result: result/source/pr-app/pr-app-PWR123/pwr-02.c


4 4 Source: source/pr-app/pr-app-PWR123/pwr-02.h Attention: File s_ Marking wrong or Header Classification blank
Attention: OOPs No Header
Source Lines 5 Logical 0 SemiColons 1 LOC 1 4 4 Result: result/source/pr-app/pr-app-PWR123/pwr-02.h


5 5 Source: source/pr-app/pr-app-PWR123/pwr-03.c Note: OK Classification Marking
Note: Good Header
3-15 pwr.3.1
3-66 pwr.3.2
3-135 dead_code = D + E; Attention: Dead Code 3-239 dead_block = C * D; Attention: Dead Code 3-266 pwr.3.3
3-280 dead_code = B - C; Attention: Dead Code 3-332 pwr.3.4
3-385 { case one: { switch (nested) Attention: Missing default 3-387 { { switch (nested) Attention: Nested switch 3-391 X = Y + Z; X = Y + Z; case: Attention: Missing break in case 3-512 pwr.3.5
3-611 dead_code = B - C; Attention: Dead Code 3-638 pwr.3.6
3-682 free(FreePtr); Attention: Storage FreePtr); 3-718 { case one: { run_this; break; } case two: { run_this; break; } // missing default } A = B-C; A = B*C; A = B-C; if (A ge B) { A = B + C; D = E + F; } A = B*C; A = B*C; A = B/C; A = B*C; A = B*C; if (A > B) { A = B + C; D = E + F; } if (A le B) { A = B + C; D = E + F; } A = B*C; A = B*C; if (A >= B) { A = B + C; D = E + F; } if (A le B) { A = B + C; D = E + F; } A = B*C; /* LE SV TOC-2449 this is a pwr-03.6.45 req to store*/ A = B/C; #ifdef LAZY // this is not nice A = B + C; A = B + C; #endif A = B*C; switch (pwr stuff) Attention: Missing default 3-782 #ifdef LAZY Attention: Conditional Compile ifdef 3-786 #endif Attention: Conditional Compile #endif 3-842 pwr.3.7
3-1025 pwr.3.8
3-1190 /* dead_code = A * B; */ Attention: Dead Code 3-1226 dead_code = B - C; Attention: Dead Code 3-1270 dead_code = D + E; Attention: Dead Code Source Lines 1306 Logical 55 SemiColons 503 LOC 558 Warning: Functions Exceed 8
Error: File with 558 LOC 5 5 Result: result/source/pr-app/pr-app-PWR123/pwr-03.c


6 6 Source: source/pr-app/pr-app-PWR123/pwr-03.h Note: OK Classification Marking
Note: Good Header
Source Lines 30 Logical 0 SemiColons 9 LOC 9 6 6 Result: result/source/pr-app/pr-app-PWR123/pwr-03.h


7 7 Source: source/pr-app/pr-app-PWR123/pwr-04.c Note: OK Classification Marking
Note: Good Header
4-15 pwr.4.1
4-84 default: { // missing error call } Attention: Missing SwError 4-158 pwr.4.2
4-290 { FATAL Compile Error: Missing curly brace LE breaks path 4-299 // TBS - I need to figure this out Attention: Possible problem Keyword TBS 4-348 A = (float)B + C; Attention: Recasting (float) 4-364 pwr.4.3
4-389if (veg) Warning: Missing curly brace looked as far as 394 4-438 dead_code = B - C; Attention: Dead Code 4-449 { case one: { switch (nested) Attention: Missing default 4-451 { { switch (nested) Attention: Nested switch 4-455 X = Y + Z; X = Y + Z; case: Attention: Missing break in case 4-500 Warning: goto Statement goto error; 4-567 A = (long)B + C; Attention: Recasting (long) 4-571 A = (long)B + C; Attention: Recasting (long) 4-611 pwr.4.4
4-661 dead_code = B - C; Attention: Dead Code 4-742 pwr.4.5
4-814 case: case: Attention: Stacked case statements 4-815 // stacked case statements but only if there is a new line in between case: Attention: Stacked case statements 4-818 case: case: Attention: Stacked case statements 4-819 case: case: Attention: Stacked case statements 4-825 default: { halt; } Attention: Missing SwError 4-827 halt; Attention: Classified text in wrong file name: halt
4-850 pwr.4.6
4-891 send_buffer = (U16 *) malloc(size+1); Attention: Storage malloc(size+1); 4-961 A = (long)B + C; Attention: Recasting (long) 4-968 // missing break { run_this; // missing break } Attention: Missing break in case 4-1053 // (P) this is really improtant Attention: Classified text in wrong file name: (P)
4-1116 FreePtr = HmiStringPtr; Attention: Storage FreePtr = HmiStringPtr; 4-1120 // TBD - what do I do now Attention: Possible problem Keyword TBD 4-1139 pwr.4.7
4-1180if (veg) Warning: Missing curly brace looked as far as 1185 4-1259 pwr.4.8
4-1284 default: { // missing error call } Attention: Missing SwError 4-1326 // ??? go see ws Attention: Possible problem Keyword ?? 4-1366 { case one: { switch (nested) Attention: Missing default 4-1368 { { switch (nested) Attention: Nested switch 4-1372 X = Y + Z; X = Y + Z; case: Attention: Missing break in case 4-1408 A = (long)B + C; Attention: Recasting (long) 4-1526 pwr.4.9
4-1627 FreePtr = HmiStringPtr; Attention: Storage FreePtr = HmiStringPtr; 4-1831 pwr.4.10
4-1884 case: case: Attention: Stacked case statements 4-1885 // stacked case statements but only if there is a new line in between case: Attention: Stacked case statements 4-1888 case: case: Attention: Stacked case statements 4-1889 case: case: Attention: Stacked case statements 4-1895 default: { halt; } Attention: Missing SwError 4-1897 halt; Attention: Classified text in wrong file name: halt
4-1910 // ??? go see ws Attention: Possible problem Keyword ?? 4-1924 A = (long)B + C; Attention: Recasting (long) 4-2011 A = (float)B + C; Attention: Recasting (float) 4-2018 dead_block = C * D; Attention: Dead Code 4-2044 pwr.4.11
4-2144 default: { // missing error call } Attention: Missing SwError 4-2227 // TBD - what do I do now Attention: Possible problem Keyword TBD Source Lines 2311 Logical 80 SemiColons 955 LOC 1035 Warning: Functions Exceed 11
Error: File with 1035 LOC 7 7 Result: result/source/pr-app/pr-app-PWR123/pwr-04.c


8 8 Source: source/pr-app/pr-app-PWR123/pwr-04.h Note: OK Classification Marking
Note: Good Header
Source Lines 29 Logical 0 SemiColons 8 LOC 8 8 8 Result: result/source/pr-app/pr-app-PWR123/pwr-04.h


9 9 Source: source/pr-app/pr-app-PWR123/pwr-05.c Note: OK Classification Marking
Note: Good Header
5-15 pwr.5.1
5-103 pwr.5.2
5-216 { case one: { run_this; break; } case two: { run_this; break; } // missing default } if (A != B) { A = B + C; D = E + F; } A = B-C; if (A gt B) { A = B + C; D = E + F; } A = B/C; if (A <= B) { A = B + C; D = E + F; } A = B/C; if (A == B) { A = B + C; D = E + F; } A = B*C; A = (int)B + C; A = B*C; /* LE SV TOC-2496 this is a pwr-05.2.37 req to inhibit*/ A = B*C; A = B/C; A = 0x0009; do forever; if (A ge B) { A = B + C; D = E + F; } A = B+C; if (A != B) { A = B + C; D = E + F; } switch (pwr stuff) Attention: Missing default 5-263 A = (int)B + C; Attention: Recasting (int) 5-269 Warning: do Loop do forever; 5-346 Warning: goto Statement goto error; 5-440 pwr.5.3
5-617 pwr.5.4
5-631 A = (long)B + C; Attention: Recasting (long) 5-703 // missing break { run_this; // missing break } Attention: Missing break in case 5-751 pwr.5.5
5-807 default: { // missing error call } Attention: Missing SwError 5-858 /* LE SV TOC-2505 this is a pwr-05.5.27 req to halt*/ Attention: Classified text in wrong file name: halt
5-880 /* dead_code = A * B; */ Attention: Dead Code 5-935 pwr.5.6
5-1002 // ??? go see ws Attention: Possible problem Keyword ?? 5-1155 pwr.5.7
5-1183 default: { // missing error call } Attention: Missing SwError 5-1228 send_buffer = (U16 *) malloc(size+1); Attention: Storage malloc(size+1); 5-1266 send_buffer = (U16 *) malloc(size+1); Attention: Storage malloc(size+1); 5-1281 dead_block = E * F; */ Attention: Dead Code 5-1295 pwr.5.8
5-1320 case: case: Attention: Stacked case statements 5-1321 // stacked case statements but only if there is a new line in between case: Attention: Stacked case statements 5-1324 case: case: Attention: Stacked case statements 5-1325 case: case: Attention: Stacked case statements 5-1331 default: { halt; } Attention: Missing SwError 5-1333 halt; Attention: Classified text in wrong file name: halt
5-1380 free(FreePtr); Attention: Storage FreePtr); 5-1407 A = (long)B + C; Attention: Recasting (long) 5-1417 pwr.5.9
5-1440 dead_block = C * D; Attention: Dead Code 5-1448 { FATAL Compile Error: Missing curly brace LE breaks path 5-1481 // missing break { run_this; // missing break } Attention: Missing break in case 5-1548 pwr.5.10
5-1563 { FATAL Compile Error: Missing curly brace LE breaks path 5-1666 pwr.5.11
5-1721 pwr.5.12
5-1795 dead_code = B - C; Attention: Dead Code 5-1917 { FATAL Compile Error: Missing curly brace LE breaks path 5-1971 /* dead_code = A * B; */ Attention: Dead Code 5-2017 pwr.5.13
5-2231 pwr.5.14
5-2252 { FATAL Compile Error: Missing curly brace LE breaks path 5-2261 A = (float)B + C; Attention: Recasting (float) 5-2282 dead_code = D + E; Attention: Dead Code 5-2318 dead_code = D + E; Attention: Dead Code 5-2325 // missing break { run_this; // missing break } Attention: Missing break in case Source Lines 2348 Logical 65 SemiColons 945 LOC 1010 Warning: Functions Exceed 14
Error: File with 1010 LOC 9 9 Result: result/source/pr-app/pr-app-PWR123/pwr-05.c


10 10 Source: source/pr-app/pr-app-PWR123/pwr-05.h Note: OK Classification Marking
Note: Good Header
Source Lines 28 Logical 0 SemiColons 7 LOC 7 10 10 Result: result/source/pr-app/pr-app-PWR123/pwr-05.h


11 11 Source: source/pr-app/pr-app-PWR123/pwr-06.c Note: OK Classification Marking
Note: Good Header
6-15 pwr.6.1
6-135 pwr.6.2
6-157 send_buffer = (U16 *) malloc(size+1); Attention: Storage malloc(size+1); 6-160 A = (int)B + C; Attention: Recasting (int) 6-204 pwr.6.3
6-216 // ??? go see ws Attention: Possible problem Keyword ?? 6-282 pwr.6.4
6-302 // (P) this is really improtant Attention: Classified text in wrong file name: (P)
6-436 Warning: goto Statement goto error; 6-465 pwr.6.5
6-548 /* dead_code = A * B; */ Attention: Dead Code 6-557 #ifdef LAZY Attention: Conditional Compile ifdef 6-561 #endif Attention: Conditional Compile #endif 6-585 Warning: do Loop do forever; 6-652 A = (float)B + C; Attention: Recasting (float) 6-683 { FATAL Compile Error: Missing curly brace LE breaks path 6-712 pwr.6.6
6-792 FreePtr = HmiStringPtr; Attention: Storage FreePtr = HmiStringPtr; 6-864 dead_code = B - C; Attention: Dead Code 6-906 pwr.6.7
6-933 // TBS - I need to figure this out Attention: Possible problem Keyword TBS 6-1065 pwr.6.8
6-1094 pwr.6.9
6-1208 { FATAL Compile Error: Missing curly brace LE breaks path 6-1296 /* dead_code = A * B; */ Attention: Dead Code 6-1298 free(FreePtr); Attention: Storage FreePtr); Source Lines 1311 Logical 18 SemiColons 569 LOC 587 Warning: Functions Exceed 9
Error: File with 587 LOC 11 11 Result: result/source/pr-app/pr-app-PWR123/pwr-06.c


12 12 Source: source/pr-app/pr-app-PWR123/pwr-06.h Note: OK Classification Marking
Note: Good Header
Source Lines 28 Logical 0 SemiColons 7 LOC 7 12 12 Result: result/source/pr-app/pr-app-PWR123/pwr-06.h


13 13 Source: source/pr-app/pr-app-PWR123/pwr-07.c Note: OK Classification Marking
Note: Good Header
7-15 pwr.7.1
7-86 halt; Attention: Classified text in wrong file name: halt
7-91 A = (int)B + C; Attention: Recasting (int) 7-125 pwr.7.2
7-232 dead_block = E * F; */ Attention: Dead Code 7-297 pwr.7.3
7-335 FreePtr = HmiStringPtr; Attention: Storage FreePtr = HmiStringPtr; 7-413 case: case: Attention: Stacked case statements 7-414 // stacked case statements but only if there is a new line in between case: Attention: Stacked case statements 7-417 case: case: Attention: Stacked case statements 7-418 case: case: Attention: Stacked case statements 7-424 default: { halt; } Attention: Missing SwError 7-426 halt; Attention: Classified text in wrong file name: halt
7-439 pwr.7.4
7-453 { case one: { switch (nested) Attention: Missing default 7-455 { { switch (nested) Attention: Nested switch 7-459 X = Y + Z; X = Y + Z; case: Attention: Missing break in case 7-512 pwr.7.5
7-533 { case one: { run_this; break; } case two: { run_this; break; } // missing default } A = B/C; A = 0x0007; A = B+C; if (A lt B) { A = B + C; D = E + F; } if (A gt B) { A = B + C; D = E + F; } if (A ge B) { A = B + C; D = E + F; } A = B/C; A = B-C; A = B/C; A = B-C; A = (int)B + C; A = B+C; /* LE SV TOC-2540 this is a pwr-07.5.13 req to check unix*/ A = B+C; if (A lt B) { A = B + C; D = E + F; } if (A le B) { A = B + C; D = E + F; } if (A != B) { A = B + C; D = E + F; } A = B+C; if (A == B) { A = B + C; D = E + F; } A = B+C; /* LE SV TOC-2541 this is a pwr-07.5.20 req to convert*/ A = B+C; A = B+C; A = B+C; switch (pwr stuff) Attention: Missing default 7-576 A = (int)B + C; Attention: Recasting (int) 7-627 default: { // missing error call } Attention: Missing SwError 7-646 #ifdef LAZY Attention: Conditional Compile ifdef 7-650 #endif Attention: Conditional Compile #endif 7-720 Warning: goto Statement goto error; 7-769 dead_block = E * F; */ Attention: Dead Code 7-795 pwr.7.6
7-809 #ifdef LAZY Attention: Conditional Compile ifdef 7-813 #endif Attention: Conditional Compile #endif 7-842 pwr.7.7
7-918 halt; Attention: Classified text in wrong file name: halt
7-945 A = (long)B + C; Attention: Recasting (long) 7-1000 pwr.7.8
7-1012 A = (float)B + C; Attention: Recasting (float) Source Lines 1092 Logical 25 SemiColons 421 LOC 446 Warning: Functions Exceed 8
13 13 Result: result/source/pr-app/pr-app-PWR123/pwr-07.c


14 14 Source: source/pr-app/pr-app-PWR123/pwr-07.h Note: OK Classification Marking
Note: Good Header
Source Lines 23 Logical 0 SemiColons 2 LOC 2 14 14 Result: result/source/pr-app/pr-app-PWR123/pwr-07.h


15 15 Source: source/pr-app/pr-app-PWR123/pwr-08.c Note: OK Classification Marking
Note: Good Header
8-15 pwr.8.1
8-51 A = (long)B + C; Attention: Recasting (long) 8-92 dead_block = C * D; Attention: Dead Code 8-110 dead_code = B - C; Attention: Dead Code 8-146 // ??? go see ws Attention: Possible problem Keyword ?? Source Lines 217 Logical 0 SemiColons 96 LOC 96 15 15 Result: result/source/pr-app/pr-app-PWR123/pwr-08.c


16 16 Source: source/pr-app/pr-app-PWR123/pwr-08.h Note: OK Classification Marking
Note: Good Header
Source Lines 29 Logical 0 SemiColons 8 LOC 8 16 16 Result: result/source/pr-app/pr-app-PWR123/pwr-08.h



Settings

Description 8

Master Directories
Project Instrumentation Test
Source Result Analysis
Metrics

Report Markings
Report Marking
Highest Code Classification
Lowest Code Classification
Classified Keywords

Headers
C Header
H Header
asm Header

File Controls
Assembly Extensions
Access Files
Ignore Files
Paths
File Path
Src Paths (websever /~iat no websever ../../)
URL (websever /~iat no websever ../../ dos is blank)

Source Dir Path
Result Dir Path
Analysis Dir Path(no websever setting ../ft-red-B1B2D6_Ry)
Analysis Report Name
Files
toc file bfw file hmi file
toc html bfw html

General Settings
CPCs
1 2 3 4 5 6 7 Colors

Log Event Patterns
SV Events case Insensitive
Filter SV Events case Insensitive (e.g. traffic)
Filter Files case Insensitive
DB Events case Sensitive
HMI Events case Sensitive
LOC Events case Sensitive
Filter LOC Events (e.g. traffic)

Table Driven Functions used by uncalled functions detector


Fixed Keywords case insensitive
C
H
Assembly

Keywords case insensitive
find 1
find 2
find 3
find 4
find 5

ignore lines

Keyword Window

Hamming Patterns


Log Events
SV Start DB Start HMI Start LOC Start
Instrument Source LE Summary Auto Trace Fix LE English

Show in Details Report
Abstract SV REQUIRED Full Header All SourceCode Only SVCV src
Comments CV REQUIRED Rquirements Functions Show Only Affected Files Analyze Only LE SV

Reports
Control Menu Keywords Stats Metrics Ham Values Details Problem Summaries Problem Descriptions Compare

Reports - Automatic Detectors Default Problems Locked Files Date (e.g. 01/05/2003)
Fatal Printf C Headers H Headers ASM Headers
Class SV Marking CV Marking Keywords Code Keywords Prologues
No Curly Braces ifdef Switch Default's Default Error Case Break
Nested Switches Stacked Cases Calling Rules No Error Exit ?: operator
Func/File LOC/File Line Length < 5 LOC/Func > 100 LOC/Func
Uncalled Func's Dead Code Fuzzy Log Events ++/-- in if, else, while do Loops
malloc free Re-Casting goto No Func Header

Regression noise reduction for Automatic Detectors - must run regression.pl first
new files
mod files

Metrics Baseline Accessed
Metrics Saved (enable stats)

Hide Controls Show Checked Summary Checked Details Not Checked All

done
12/08/2003 16:11:05 start
12/08/2003 16:11:10 end