From 1a46b652957e7504c6332527b14f2b3ef9558b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Souza?= Date: Sat, 28 Sep 2024 21:10:17 -0300 Subject: [PATCH] new build system --- BUILD.bat | 1 - BUILD.c | 47 ++ BUILD.sh | 4 - LINTERS_CHECK/LINTERS_CHECK.bat | 5 +- LINTERS_CHECK/TODO_CLANG-TIDY.txt | 720 ++++++++++++++--------------- LINTERS_CHECK/TODO_CPPCHECK.txt | 16 +- app.c => src/app.c | 0 app.h => src/app.h | 0 {modules => src/modules}/copy.h | 0 {modules => src/modules}/file.c | 0 {modules => src/modules}/file.h | 0 {modules => src/modules}/finderC.h | 0 {modules => src/modules}/output.c | 0 {modules => src/modules}/output.h | 0 {modules => src/modules}/search.h | 0 15 files changed, 418 insertions(+), 375 deletions(-) delete mode 100644 BUILD.bat create mode 100644 BUILD.c delete mode 100644 BUILD.sh rename app.c => src/app.c (100%) rename app.h => src/app.h (100%) rename {modules => src/modules}/copy.h (100%) rename {modules => src/modules}/file.c (100%) rename {modules => src/modules}/file.h (100%) rename {modules => src/modules}/finderC.h (100%) rename {modules => src/modules}/output.c (100%) rename {modules => src/modules}/output.h (100%) rename {modules => src/modules}/search.h (100%) diff --git a/BUILD.bat b/BUILD.bat deleted file mode 100644 index 46bdd21..0000000 --- a/BUILD.bat +++ /dev/null @@ -1 +0,0 @@ - clang -Wall -Wextra -pedantic -std=c99 -O3 .\app.c -o retriever.exe diff --git a/BUILD.c b/BUILD.c new file mode 100644 index 0000000..a5ccfe3 --- /dev/null +++ b/BUILD.c @@ -0,0 +1,47 @@ +/*********************************************************** +* Name: builder.c +* +* Experimental C only buid system, idea inspired by: +* https://github.com/tsoding +* +* +* Creator: Vinícius Souza +* Site: https://github.com/vinissou +***********************************************************/ + +#include +#include +#include + +//this will become a compiler selector in the future +//might add cl one day +#if defined(_WIN32) || defined(_WIN64) + #define OUT retriever.exe + char *compiler = "clang"; + char *os = "WIN32"; + char *input = ".\\src\\app.c"; + char *output = "retriever.exe"; +#else + #define OUT retriever + char *compiler = "cc"; + char *os = "else"; //for now + char *input = "./src/app.c"; + char *output = "retriever"; +#endif + + +int main(int argc, char **argv) { + char command[200]; + + if (strcmp(os, "WIN32") != 0){ + system("dos2unix *"); //TODO make it portable + system("dos2unix modules/*"); + } + + sprintf(command,"%s -Wall -Wextra -pedantic -std=c99 -O3 %s -o %s", compiler, + input, output); + printf("\n%s\n", command); + system(command); + return 0; +} + diff --git a/BUILD.sh b/BUILD.sh deleted file mode 100644 index 8f288e4..0000000 --- a/BUILD.sh +++ /dev/null @@ -1,4 +0,0 @@ -# tested on Debian, Alpine Linux and OpenBSD(more on that later) for now -dos2unix * -dos2unix modules/* -cc -Wall -Wextra -pedantic -std=c99 -O3 app.c -o retriever diff --git a/LINTERS_CHECK/LINTERS_CHECK.bat b/LINTERS_CHECK/LINTERS_CHECK.bat index 3a11c78..497ab1b 100644 --- a/LINTERS_CHECK/LINTERS_CHECK.bat +++ b/LINTERS_CHECK/LINTERS_CHECK.bat @@ -1,2 +1,3 @@ -Clang-Tidy -extra-arg=-std=c99 ..\app.c >> .\TODO_CLANG-TIDY.txt -cppcheck ..\app.c --output-file=TODO_CPPCHECK.txt +del *.txt +Clang-Tidy -extra-arg=-std=c99 ..\src\app.c >> .\TODO_CLANG-TIDY.txt +cppcheck ..\src\app.c --output-file=TODO_CPPCHECK.txt diff --git a/LINTERS_CHECK/TODO_CLANG-TIDY.txt b/LINTERS_CHECK/TODO_CLANG-TIDY.txt index a4aebb4..c06dc2c 100644 --- a/LINTERS_CHECK/TODO_CLANG-TIDY.txt +++ b/LINTERS_CHECK/TODO_CLANG-TIDY.txt @@ -1,1022 +1,1022 @@ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:115:5: warning: Potential leak of memory pointed to by 'buffer' [clang-analyzer-unix.Malloc] +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:115:5: warning: Potential leak of memory pointed to by 'buffer' [clang-analyzer-unix.Malloc] 115 | CopyRangeResults(SOURCE.PTR, DEST.PTR, TERM.STR, TERM.LENGHT, number); | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:22:3: note: Calling 'ParseCmdLine' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:22:3: note: Calling 'ParseCmdLine' 22 | ParseCmdLine(argc, argv); | ^~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:7: note: Assuming 'argc' is >= 2 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:7: note: Assuming 'argc' is >= 2 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:3: note: Taking false branch 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:37: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:37: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:3: note: Taking false branch 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:21: note: 'tmp' is < 'argc' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:21: note: 'tmp' is < 'argc' 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:3: note: Loop condition is true. Entering loop body +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:3: note: Loop condition is true. Entering loop body 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:58:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:58:9: note: Assuming the condition is false 58 | if (strcmp(argv[tmp], "-db") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:58:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:58:5: note: Taking false branch 58 | if (strcmp(argv[tmp], "-db") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:9: note: Assuming the condition is false 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:41: note: Assuming the condition is false 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:5: note: Taking false branch 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:64:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:64:9: note: Assuming the condition is false 64 | if (strstr(argv[tmp], "--limiters=") != NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:64:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:64:5: note: Taking false branch 64 | if (strstr(argv[tmp], "--limiters=") != NULL) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:9: note: Assuming the condition is false 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:41: note: Assuming the condition is false 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:5: note: Taking false branch 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:9: note: Assuming the condition is false 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:41: note: Assuming the condition is false 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:5: note: Taking false branch 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:9: note: Assuming the condition is false 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:41: note: Assuming the condition is false 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:5: note: Taking false branch 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:76:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:76:9: note: Assuming the condition is false 76 | if (strstr(argv[tmp], "--range=") != NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:76:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:76:5: note: Taking false branch 76 | if (strstr(argv[tmp], "--range=") != NULL) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:79:14: note: Assuming field 'DEBUG' is not equal to 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:79:14: note: Assuming field 'DEBUG' is not equal to 0 79 | else if (OPTIONS.DEBUG == 0 && OPTIONS.COUNT == 0 && | ^~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:79:33: note: Left side of '&&' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:79:33: note: Left side of '&&' is false 79 | else if (OPTIONS.DEBUG == 0 && OPTIONS.COUNT == 0 && | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:21: note: Assuming 'tmp' is >= 'argc' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:21: note: Assuming 'tmp' is >= 'argc' 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:3: note: Loop condition is false. Execution continues on line 88 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:3: note: Loop condition is false. Execution continues on line 88 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:89:7: note: Assuming field 'OUTPUT' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:89:7: note: Assuming field 'OUTPUT' is <= 0 89 | if (OPTIONS.OUTPUT > 0) | ^~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:89:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:89:3: note: Taking false branch 89 | if (OPTIONS.OUTPUT > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:98:7: note: Assuming field 'DEBUG' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:98:7: note: Assuming field 'DEBUG' is <= 0 98 | if (OPTIONS.DEBUG > 0) | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:98:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:98:3: note: Taking false branch 98 | if (OPTIONS.DEBUG > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:100:7: note: Assuming field 'COUNT' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:100:7: note: Assuming field 'COUNT' is <= 0 100 | if (OPTIONS.COUNT > 0) { // TODO add dest file headers | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:100:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:100:3: note: Taking false branch 100 | if (OPTIONS.COUNT > 0) { // TODO add dest file headers | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:105:7: note: Assuming field 'LINES' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:105:7: note: Assuming field 'LINES' is <= 0 105 | if (OPTIONS.LINES > 0) | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:105:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:105:3: note: Taking false branch 105 | if (OPTIONS.LINES > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:108:7: note: Assuming field 'POSITIONS' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:108:7: note: Assuming field 'POSITIONS' is <= 0 108 | if (OPTIONS.POSITIONS > 0) | ^~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:108:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:108:3: note: Taking false branch 108 | if (OPTIONS.POSITIONS > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:111:7: note: Assuming field 'RANGE' is > 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:111:7: note: Assuming field 'RANGE' is > 0 111 | if (OPTIONS.RANGE > 0) { // TODO fix -1? already fixed? | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:111:3: note: Taking true branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:111:3: note: Taking true branch 111 | if (OPTIONS.RANGE > 0) { // TODO fix -1? already fixed? | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:113:20: note: Memory is allocated +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:113:20: note: Memory is allocated 113 | char *buffer = malloc(strlen(argv[OPTIONS.RANGE])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:115:5: note: Potential leak of memory pointed to by 'buffer' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:115:5: note: Potential leak of memory pointed to by 'buffer' 115 | CopyRangeResults(SOURCE.PTR, DEST.PTR, TERM.STR, TERM.LENGHT, number); | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:126:5: warning: Potential leak of memory pointed to by 'buffer1' [clang-analyzer-unix.Malloc] +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:126:5: warning: Potential leak of memory pointed to by 'buffer1' [clang-analyzer-unix.Malloc] 126 | CopyLimitersResults(SOURCE.PTR, DEST.PTR, TERM.STR, buffer0, buffer1); | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:22:3: note: Calling 'ParseCmdLine' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:22:3: note: Calling 'ParseCmdLine' 22 | ParseCmdLine(argc, argv); | ^~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:7: note: Assuming 'argc' is >= 2 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:7: note: Assuming 'argc' is >= 2 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:3: note: Taking false branch 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:37: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:37: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:3: note: Taking false branch 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:21: note: 'tmp' is < 'argc' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:21: note: 'tmp' is < 'argc' 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:3: note: Loop condition is true. Entering loop body +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:3: note: Loop condition is true. Entering loop body 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:58:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:58:9: note: Assuming the condition is false 58 | if (strcmp(argv[tmp], "-db") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:58:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:58:5: note: Taking false branch 58 | if (strcmp(argv[tmp], "-db") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:9: note: Assuming the condition is false 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:41: note: Assuming the condition is false 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:5: note: Taking false branch 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:64:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:64:9: note: Assuming the condition is false 64 | if (strstr(argv[tmp], "--limiters=") != NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:64:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:64:5: note: Taking false branch 64 | if (strstr(argv[tmp], "--limiters=") != NULL) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:9: note: Assuming the condition is false 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:41: note: Assuming the condition is false 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:5: note: Taking false branch 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:9: note: Assuming the condition is false 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:41: note: Assuming the condition is false 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:5: note: Taking false branch 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:9: note: Assuming the condition is false 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:41: note: Assuming the condition is false 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:5: note: Taking false branch 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:76:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:76:9: note: Assuming the condition is false 76 | if (strstr(argv[tmp], "--range=") != NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:76:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:76:5: note: Taking false branch 76 | if (strstr(argv[tmp], "--range=") != NULL) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:79:14: note: Assuming field 'DEBUG' is not equal to 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:79:14: note: Assuming field 'DEBUG' is not equal to 0 79 | else if (OPTIONS.DEBUG == 0 && OPTIONS.COUNT == 0 && | ^~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:79:33: note: Left side of '&&' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:79:33: note: Left side of '&&' is false 79 | else if (OPTIONS.DEBUG == 0 && OPTIONS.COUNT == 0 && | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:21: note: Assuming 'tmp' is >= 'argc' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:21: note: Assuming 'tmp' is >= 'argc' 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:3: note: Loop condition is false. Execution continues on line 88 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:3: note: Loop condition is false. Execution continues on line 88 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:89:7: note: Assuming field 'OUTPUT' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:89:7: note: Assuming field 'OUTPUT' is <= 0 89 | if (OPTIONS.OUTPUT > 0) | ^~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:89:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:89:3: note: Taking false branch 89 | if (OPTIONS.OUTPUT > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:98:7: note: Assuming field 'DEBUG' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:98:7: note: Assuming field 'DEBUG' is <= 0 98 | if (OPTIONS.DEBUG > 0) | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:98:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:98:3: note: Taking false branch 98 | if (OPTIONS.DEBUG > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:100:7: note: Assuming field 'COUNT' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:100:7: note: Assuming field 'COUNT' is <= 0 100 | if (OPTIONS.COUNT > 0) { // TODO add dest file headers | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:100:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:100:3: note: Taking false branch 100 | if (OPTIONS.COUNT > 0) { // TODO add dest file headers | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:105:7: note: Assuming field 'LINES' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:105:7: note: Assuming field 'LINES' is <= 0 105 | if (OPTIONS.LINES > 0) | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:105:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:105:3: note: Taking false branch 105 | if (OPTIONS.LINES > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:108:7: note: Assuming field 'POSITIONS' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:108:7: note: Assuming field 'POSITIONS' is <= 0 108 | if (OPTIONS.POSITIONS > 0) | ^~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:108:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:108:3: note: Taking false branch 108 | if (OPTIONS.POSITIONS > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:111:7: note: Assuming field 'RANGE' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:111:7: note: Assuming field 'RANGE' is <= 0 111 | if (OPTIONS.RANGE > 0) { // TODO fix -1? already fixed? | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:111:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:111:3: note: Taking false branch 111 | if (OPTIONS.RANGE > 0) { // TODO fix -1? already fixed? | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:118:7: note: Assuming field 'LIMITERS' is > 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:118:7: note: Assuming field 'LIMITERS' is > 0 118 | if (OPTIONS.LIMITERS > 0) { | ^~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:118:3: note: Taking true branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:118:3: note: Taking true branch 118 | if (OPTIONS.LIMITERS > 0) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:120:21: note: Memory is allocated +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:120:21: note: Memory is allocated 120 | char *buffer1 = malloc(strlen(argv[OPTIONS.LIMITERS])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:126:5: note: Potential leak of memory pointed to by 'buffer1' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:126:5: note: Potential leak of memory pointed to by 'buffer1' 126 | CopyLimitersResults(SOURCE.PTR, DEST.PTR, TERM.STR, buffer0, buffer1); | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:128:1: warning: Potential leak of memory pointed to by 'buffer0' [clang-analyzer-unix.Malloc] +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:128:1: warning: Potential leak of memory pointed to by 'buffer0' [clang-analyzer-unix.Malloc] 128 | } | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:22:3: note: Calling 'ParseCmdLine' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:22:3: note: Calling 'ParseCmdLine' 22 | ParseCmdLine(argc, argv); | ^~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:7: note: Assuming 'argc' is >= 2 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:7: note: Assuming 'argc' is >= 2 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:3: note: Taking false branch 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:37: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:37: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:3: note: Taking false branch 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:21: note: 'tmp' is < 'argc' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:21: note: 'tmp' is < 'argc' 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:3: note: Loop condition is true. Entering loop body +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:3: note: Loop condition is true. Entering loop body 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:58:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:58:9: note: Assuming the condition is false 58 | if (strcmp(argv[tmp], "-db") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:58:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:58:5: note: Taking false branch 58 | if (strcmp(argv[tmp], "-db") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:9: note: Assuming the condition is false 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:41: note: Assuming the condition is false 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:5: note: Taking false branch 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:64:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:64:9: note: Assuming the condition is false 64 | if (strstr(argv[tmp], "--limiters=") != NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:64:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:64:5: note: Taking false branch 64 | if (strstr(argv[tmp], "--limiters=") != NULL) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:9: note: Assuming the condition is false 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:41: note: Assuming the condition is false 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:5: note: Taking false branch 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:9: note: Assuming the condition is false 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:41: note: Assuming the condition is false 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:5: note: Taking false branch 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:9: note: Assuming the condition is false 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:41: note: Assuming the condition is false 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:5: note: Taking false branch 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:76:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:76:9: note: Assuming the condition is false 76 | if (strstr(argv[tmp], "--range=") != NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:76:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:76:5: note: Taking false branch 76 | if (strstr(argv[tmp], "--range=") != NULL) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:79:14: note: Assuming field 'DEBUG' is not equal to 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:79:14: note: Assuming field 'DEBUG' is not equal to 0 79 | else if (OPTIONS.DEBUG == 0 && OPTIONS.COUNT == 0 && | ^~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:79:33: note: Left side of '&&' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:79:33: note: Left side of '&&' is false 79 | else if (OPTIONS.DEBUG == 0 && OPTIONS.COUNT == 0 && | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:21: note: Assuming 'tmp' is >= 'argc' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:21: note: Assuming 'tmp' is >= 'argc' 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:3: note: Loop condition is false. Execution continues on line 88 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:3: note: Loop condition is false. Execution continues on line 88 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:89:7: note: Assuming field 'OUTPUT' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:89:7: note: Assuming field 'OUTPUT' is <= 0 89 | if (OPTIONS.OUTPUT > 0) | ^~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:89:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:89:3: note: Taking false branch 89 | if (OPTIONS.OUTPUT > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:98:7: note: Assuming field 'DEBUG' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:98:7: note: Assuming field 'DEBUG' is <= 0 98 | if (OPTIONS.DEBUG > 0) | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:98:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:98:3: note: Taking false branch 98 | if (OPTIONS.DEBUG > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:100:7: note: Assuming field 'COUNT' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:100:7: note: Assuming field 'COUNT' is <= 0 100 | if (OPTIONS.COUNT > 0) { // TODO add dest file headers | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:100:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:100:3: note: Taking false branch 100 | if (OPTIONS.COUNT > 0) { // TODO add dest file headers | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:105:7: note: Assuming field 'LINES' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:105:7: note: Assuming field 'LINES' is <= 0 105 | if (OPTIONS.LINES > 0) | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:105:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:105:3: note: Taking false branch 105 | if (OPTIONS.LINES > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:108:7: note: Assuming field 'POSITIONS' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:108:7: note: Assuming field 'POSITIONS' is <= 0 108 | if (OPTIONS.POSITIONS > 0) | ^~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:108:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:108:3: note: Taking false branch 108 | if (OPTIONS.POSITIONS > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:111:7: note: Assuming field 'RANGE' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:111:7: note: Assuming field 'RANGE' is <= 0 111 | if (OPTIONS.RANGE > 0) { // TODO fix -1? already fixed? | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:111:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:111:3: note: Taking false branch 111 | if (OPTIONS.RANGE > 0) { // TODO fix -1? already fixed? | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:118:7: note: Assuming field 'LIMITERS' is > 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:118:7: note: Assuming field 'LIMITERS' is > 0 118 | if (OPTIONS.LIMITERS > 0) { | ^~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:118:3: note: Taking true branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:118:3: note: Taking true branch 118 | if (OPTIONS.LIMITERS > 0) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:119:21: note: Memory is allocated +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:119:21: note: Memory is allocated 119 | char *buffer0 = malloc(strlen(argv[OPTIONS.LIMITERS])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:128:1: note: Potential leak of memory pointed to by 'buffer0' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:128:1: note: Potential leak of memory pointed to by 'buffer0' 128 | } | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:130:55: warning: The right operand of '-' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult] +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:130:55: warning: The right operand of '-' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult] 130 | if (i > g && suffix_table[i + term_lenght - 1 - f] < i - g) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:22:3: note: Calling 'ParseCmdLine' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:22:3: note: Calling 'ParseCmdLine' 22 | ParseCmdLine(argc, argv); | ^~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:7: note: Assuming 'argc' is >= 2 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:7: note: Assuming 'argc' is >= 2 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:3: note: Taking false branch 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:37: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:37: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:3: note: Taking false branch 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:48:3: note: Calling 'InitTerm' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:48:3: note: Calling 'InitTerm' 48 | InitTerm(argv[2]); | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:75:9: note: Assuming 'term' is not equal to NULL +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:75:9: note: Assuming 'term' is not equal to NULL 75 | if (term != NULL){ | ^~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:75:5: note: Taking true branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:75:5: note: Taking true branch 75 | if (term != NULL){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:76:18: note: Field 'STR' is equal to NULL +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:76:18: note: Field 'STR' is equal to NULL 76 | if (TERM.STR == NULL || strcmp(term , TERM.STR) != 0){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:76:30: note: Left side of '||' is true +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:76:30: note: Left side of '||' is true 76 | if (TERM.STR == NULL || strcmp(term , TERM.STR) != 0){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:82:13: note: Calling 'GoodSuffix' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:82:13: note: Calling 'GoodSuffix' 82 | GoodSuffix(TERM.STR, TERM.LENGHT); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:163:5: note: Calling 'Suffixes' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:163:5: note: Calling 'Suffixes' 163 | Suffixes(term, term_lenght, suffix_table); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:125:9: note: 'f' declared without an initial value +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:125:9: note: 'f' declared without an initial value 125 | int f, g, i; | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:129:31: note: Assuming 'i' is >= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:129:31: note: Assuming 'i' is >= 0 129 | for (i = term_lenght - 2; i >= 0; --i) { | ^~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:129:5: note: Loop condition is true. Entering loop body +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:129:5: note: Loop condition is true. Entering loop body 129 | for (i = term_lenght - 2; i >= 0; --i) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:130:13: note: Assuming 'i' is > 'g' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:130:13: note: Assuming 'i' is > 'g' 130 | if (i > g && suffix_table[i + term_lenght - 1 - f] < i - g) | ^~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:130:13: note: Left side of '&&' is true -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:130:55: note: The right operand of '-' is a garbage value +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:130:13: note: Left side of '&&' is true +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:130:55: note: The right operand of '-' is a garbage value 130 | if (i > g && suffix_table[i + term_lenght - 1 - f] < i - g) | ^ ~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:170:39: warning: The left operand of '==' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult] +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:170:39: warning: The left operand of '==' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult] 170 | if (g_suffix_table[j] == term_lenght) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:22:3: note: Calling 'ParseCmdLine' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:22:3: note: Calling 'ParseCmdLine' 22 | ParseCmdLine(argc, argv); | ^~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:7: note: Assuming 'argc' is >= 2 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:7: note: Assuming 'argc' is >= 2 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:3: note: Taking false branch 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:37: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:37: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:3: note: Taking false branch 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:48:3: note: Calling 'InitTerm' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:48:3: note: Calling 'InitTerm' 48 | InitTerm(argv[2]); | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:75:9: note: Assuming 'term' is not equal to NULL +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:75:9: note: Assuming 'term' is not equal to NULL 75 | if (term != NULL){ | ^~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:75:5: note: Taking true branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:75:5: note: Taking true branch 75 | if (term != NULL){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:76:18: note: Field 'STR' is equal to NULL +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:76:18: note: Field 'STR' is equal to NULL 76 | if (TERM.STR == NULL || strcmp(term , TERM.STR) != 0){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:76:30: note: Left side of '||' is true +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:76:30: note: Left side of '||' is true 76 | if (TERM.STR == NULL || strcmp(term , TERM.STR) != 0){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:82:13: note: Calling 'GoodSuffix' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:82:13: note: Calling 'GoodSuffix' 82 | GoodSuffix(TERM.STR, TERM.LENGHT); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:157:5: note: 'j' initialized to 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:157:5: note: 'j' initialized to 0 157 | int j = 0; | ^~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:161:27: note: Storing uninitialized value +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:161:27: note: Storing uninitialized value 161 | int *g_suffix_table = malloc(sizeof(int) * term_lenght); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:165:17: note: Assuming 'i' is >= 'term_lenght' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:165:17: note: Assuming 'i' is >= 'term_lenght' 165 | for (i = 0; i < term_lenght; ++i) | ^~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:165:5: note: Loop condition is false. Execution continues on line 167 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:165:5: note: Loop condition is false. Execution continues on line 167 165 | for (i = 0; i < term_lenght; ++i) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:167:31: note: Assuming 'i' is >= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:167:31: note: Assuming 'i' is >= 0 167 | for (i = term_lenght - 1; i >= 0; --i) | ^~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:167:5: note: Loop condition is true. Entering loop body +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:167:5: note: Loop condition is true. Entering loop body 167 | for (i = term_lenght - 1; i >= 0; --i) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:168:13: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:168:13: note: Assuming the condition is false 168 | if (suffix_table[i] == i + 1) | ^~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:168:9: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:168:9: note: Taking false branch 168 | if (suffix_table[i] == i + 1) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:167:31: note: 'i' is >= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:167:31: note: 'i' is >= 0 167 | for (i = term_lenght - 1; i >= 0; --i) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:167:5: note: Loop condition is true. Entering loop body +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:167:5: note: Loop condition is true. Entering loop body 167 | for (i = term_lenght - 1; i >= 0; --i) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:168:13: note: Assuming the condition is true +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:168:13: note: Assuming the condition is true 168 | if (suffix_table[i] == i + 1) | ^~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:168:9: note: Taking true branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:168:9: note: Taking true branch 168 | if (suffix_table[i] == i + 1) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:169:20: note: Assuming the condition is true +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:169:20: note: Assuming the condition is true 169 | for (; j < term_lenght - 1 - i; ++j) | ^~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:169:13: note: Loop condition is true. Entering loop body +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:169:13: note: Loop condition is true. Entering loop body 169 | for (; j < term_lenght - 1 - i; ++j) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:170:39: note: The left operand of '==' is a garbage value +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:170:39: note: The left operand of '==' is a garbage value 170 | if (g_suffix_table[j] == term_lenght) | ~~~~~~~~~~~~~~~~~ ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:175:23: warning: Potential leak of memory pointed to by 'suffix_table' [clang-analyzer-unix.Malloc] +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:175:23: warning: Potential leak of memory pointed to by 'suffix_table' [clang-analyzer-unix.Malloc] 175 | good_suffix_ptr = realloc(good_suffix_ptr, sizeof(g_suffix_table)); | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:22:3: note: Calling 'ParseCmdLine' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:22:3: note: Calling 'ParseCmdLine' 22 | ParseCmdLine(argc, argv); | ^~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:7: note: Assuming 'argc' is >= 2 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:7: note: Assuming 'argc' is >= 2 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:3: note: Taking false branch 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:37: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:37: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:3: note: Taking false branch 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:48:3: note: Calling 'InitTerm' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:48:3: note: Calling 'InitTerm' 48 | InitTerm(argv[2]); | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:75:9: note: Assuming 'term' is not equal to NULL +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:75:9: note: Assuming 'term' is not equal to NULL 75 | if (term != NULL){ | ^~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:75:5: note: Taking true branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:75:5: note: Taking true branch 75 | if (term != NULL){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:76:18: note: Field 'STR' is equal to NULL +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:76:18: note: Field 'STR' is equal to NULL 76 | if (TERM.STR == NULL || strcmp(term , TERM.STR) != 0){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:76:30: note: Left side of '||' is true +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:76:30: note: Left side of '||' is true 76 | if (TERM.STR == NULL || strcmp(term , TERM.STR) != 0){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:82:13: note: Calling 'GoodSuffix' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:82:13: note: Calling 'GoodSuffix' 82 | GoodSuffix(TERM.STR, TERM.LENGHT); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:160:27: note: Memory is allocated +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:160:27: note: Memory is allocated 160 | int *suffix_table = malloc(sizeof(int) * term_lenght); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:165:17: note: Assuming 'i' is >= 'term_lenght' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:165:17: note: Assuming 'i' is >= 'term_lenght' 165 | for (i = 0; i < term_lenght; ++i) | ^~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:165:5: note: Loop condition is false. Execution continues on line 167 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:165:5: note: Loop condition is false. Execution continues on line 167 165 | for (i = 0; i < term_lenght; ++i) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:167:31: note: 'i' is < 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:167:31: note: 'i' is < 0 167 | for (i = term_lenght - 1; i >= 0; --i) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:167:5: note: Loop condition is false. Execution continues on line 172 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:167:5: note: Loop condition is false. Execution continues on line 172 167 | for (i = term_lenght - 1; i >= 0; --i) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:172:5: note: Loop condition is false. Execution continues on line 175 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:172:5: note: Loop condition is false. Execution continues on line 175 172 | for (i = 0; i <= term_lenght - 2; ++i) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:175:23: note: Potential leak of memory pointed to by 'suffix_table' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:175:23: note: Potential leak of memory pointed to by 'suffix_table' 175 | good_suffix_ptr = realloc(good_suffix_ptr, sizeof(g_suffix_table)); | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:178:1: warning: Potential leak of memory pointed to by 'g_suffix_table' [clang-analyzer-unix.Malloc] +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:178:1: warning: Potential leak of memory pointed to by 'g_suffix_table' [clang-analyzer-unix.Malloc] 178 | } | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:22:3: note: Calling 'ParseCmdLine' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:22:3: note: Calling 'ParseCmdLine' 22 | ParseCmdLine(argc, argv); | ^~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:7: note: Assuming 'argc' is >= 2 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:7: note: Assuming 'argc' is >= 2 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:3: note: Taking false branch 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:37: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:37: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:3: note: Taking false branch 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:48:3: note: Calling 'InitTerm' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:48:3: note: Calling 'InitTerm' 48 | InitTerm(argv[2]); | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:75:9: note: Assuming 'term' is not equal to NULL +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:75:9: note: Assuming 'term' is not equal to NULL 75 | if (term != NULL){ | ^~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:75:5: note: Taking true branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:75:5: note: Taking true branch 75 | if (term != NULL){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:76:18: note: Field 'STR' is equal to NULL +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:76:18: note: Field 'STR' is equal to NULL 76 | if (TERM.STR == NULL || strcmp(term , TERM.STR) != 0){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:76:30: note: Left side of '||' is true +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:76:30: note: Left side of '||' is true 76 | if (TERM.STR == NULL || strcmp(term , TERM.STR) != 0){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:82:13: note: Calling 'GoodSuffix' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:82:13: note: Calling 'GoodSuffix' 82 | GoodSuffix(TERM.STR, TERM.LENGHT); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:161:27: note: Memory is allocated +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:161:27: note: Memory is allocated 161 | int *g_suffix_table = malloc(sizeof(int) * term_lenght); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:165:17: note: Assuming 'i' is >= 'term_lenght' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:165:17: note: Assuming 'i' is >= 'term_lenght' 165 | for (i = 0; i < term_lenght; ++i) | ^~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:165:5: note: Loop condition is false. Execution continues on line 167 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:165:5: note: Loop condition is false. Execution continues on line 167 165 | for (i = 0; i < term_lenght; ++i) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:167:31: note: Assuming 'i' is < 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:167:31: note: Assuming 'i' is < 0 167 | for (i = term_lenght - 1; i >= 0; --i) | ^~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:167:5: note: Loop condition is false. Execution continues on line 172 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:167:5: note: Loop condition is false. Execution continues on line 172 167 | for (i = term_lenght - 1; i >= 0; --i) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:172:17: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:172:17: note: Assuming the condition is false 172 | for (i = 0; i <= term_lenght - 2; ++i) | ^~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:172:5: note: Loop condition is false. Execution continues on line 175 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:172:5: note: Loop condition is false. Execution continues on line 175 172 | for (i = 0; i <= term_lenght - 2; ++i) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:178:1: note: Potential leak of memory pointed to by 'g_suffix_table' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:178:1: note: Potential leak of memory pointed to by 'g_suffix_table' 178 | } | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:394:37: warning: Null pointer passed as 1st argument to string length function [clang-analyzer-unix.cstring.NullArg] +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:394:37: warning: Null pointer passed as 1st argument to string length function [clang-analyzer-unix.cstring.NullArg] 394 | const long long term_size = strlen(term);//TODO CHANGE THIS TO A | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:22:3: note: Calling 'ParseCmdLine' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:22:3: note: Calling 'ParseCmdLine' 22 | ParseCmdLine(argc, argv); | ^~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:7: note: Assuming 'argc' is >= 2 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:7: note: Assuming 'argc' is >= 2 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:3: note: Taking false branch 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:37: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:37: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:3: note: Taking false branch 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:21: note: 'tmp' is < 'argc' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:21: note: 'tmp' is < 'argc' 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:3: note: Loop condition is true. Entering loop body +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:3: note: Loop condition is true. Entering loop body 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:58:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:58:9: note: Assuming the condition is false 58 | if (strcmp(argv[tmp], "-db") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:58:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:58:5: note: Taking false branch 58 | if (strcmp(argv[tmp], "-db") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:9: note: Assuming the condition is false 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:41: note: Assuming the condition is false 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:5: note: Taking false branch 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:64:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:64:9: note: Assuming the condition is false 64 | if (strstr(argv[tmp], "--limiters=") != NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:64:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:64:5: note: Taking false branch 64 | if (strstr(argv[tmp], "--limiters=") != NULL) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:9: note: Assuming the condition is false 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:41: note: Assuming the condition is false 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:5: note: Taking false branch 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:9: note: Assuming the condition is false 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:41: note: Assuming the condition is false 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:5: note: Taking false branch 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:9: note: Assuming the condition is false 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:41: note: Assuming the condition is false 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:5: note: Taking false branch 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:76:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:76:9: note: Assuming the condition is false 76 | if (strstr(argv[tmp], "--range=") != NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:76:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:76:5: note: Taking false branch 76 | if (strstr(argv[tmp], "--range=") != NULL) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:79:14: note: Assuming field 'DEBUG' is not equal to 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:79:14: note: Assuming field 'DEBUG' is not equal to 0 79 | else if (OPTIONS.DEBUG == 0 && OPTIONS.COUNT == 0 && | ^~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:79:33: note: Left side of '&&' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:79:33: note: Left side of '&&' is false 79 | else if (OPTIONS.DEBUG == 0 && OPTIONS.COUNT == 0 && | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:21: note: Assuming 'tmp' is >= 'argc' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:21: note: Assuming 'tmp' is >= 'argc' 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:3: note: Loop condition is false. Execution continues on line 88 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:3: note: Loop condition is false. Execution continues on line 88 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:89:7: note: Assuming field 'OUTPUT' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:89:7: note: Assuming field 'OUTPUT' is <= 0 89 | if (OPTIONS.OUTPUT > 0) | ^~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:89:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:89:3: note: Taking false branch 89 | if (OPTIONS.OUTPUT > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:98:7: note: Assuming field 'DEBUG' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:98:7: note: Assuming field 'DEBUG' is <= 0 98 | if (OPTIONS.DEBUG > 0) | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:98:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:98:3: note: Taking false branch 98 | if (OPTIONS.DEBUG > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:100:7: note: Assuming field 'COUNT' is > 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:100:7: note: Assuming field 'COUNT' is > 0 100 | if (OPTIONS.COUNT > 0) { // TODO add dest file headers | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:100:3: note: Taking true branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:100:3: note: Taking true branch 100 | if (OPTIONS.COUNT > 0) { // TODO add dest file headers | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:102:34: note: Passing null pointer value via 2nd parameter 'term' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:102:34: note: Passing null pointer value via 2nd parameter 'term' 102 | CountOccurrences(SOURCE.PTR, TERM.STR); // TODO todo rename this | ^~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:102:5: note: Calling 'CountOccurrences' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:102:5: note: Calling 'CountOccurrences' 102 | CountOccurrences(SOURCE.PTR, TERM.STR); // TODO todo rename this | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/copy.h:286:5: note: Loop condition is true. Entering loop body +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/copy.h:286:5: note: Loop condition is true. Entering loop body 286 | while (1){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/copy.h:287:40: note: Passing null pointer value via 3rd parameter 'term' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/copy.h:287:40: note: Passing null pointer value via 3rd parameter 'term' 287 | if (MatchChecker(file, stdout, term) <= 0){ | ^~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/copy.h:287:13: note: Calling 'MatchChecker' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/copy.h:287:13: note: Calling 'MatchChecker' 287 | if (MatchChecker(file, stdout, term) <= 0){ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/copy.h:53:41: note: Passing null pointer value via 2nd parameter 'term' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/copy.h:53:41: note: Passing null pointer value via 2nd parameter 'term' 53 | SOURCE.POSITION = FindNext(source, term); | ^~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/copy.h:53:24: note: Calling 'FindNext' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/copy.h:53:24: note: Calling 'FindNext' 53 | SOURCE.POSITION = FindNext(source, term); | ^~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:394:37: note: Null pointer passed as 1st argument to string length function +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:394:37: note: Null pointer passed as 1st argument to string length function 394 | const long long term_size = strlen(term);//TODO CHANGE THIS TO A | ^ ~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:610:14: warning: Call to 'malloc' has an allocation size of 0 bytes [clang-analyzer-optin.portability.UnixAPI] +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:610:14: warning: Call to 'malloc' has an allocation size of 0 bytes [clang-analyzer-optin.portability.UnixAPI] 610 | buffer = malloc(range_size); | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:22:3: note: Calling 'ParseCmdLine' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:22:3: note: Calling 'ParseCmdLine' 22 | ParseCmdLine(argc, argv); | ^~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:7: note: Assuming 'argc' is >= 2 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:7: note: Assuming 'argc' is >= 2 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:38:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:38:3: note: Taking false branch 38 | if (argc < 2) { // TODO move it to helpchecker or something like that? | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:7: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:37: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:7: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:37: note: Assuming the condition is false 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:43:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:43:3: note: Taking false branch 43 | if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:21: note: 'tmp' is < 'argc' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:21: note: 'tmp' is < 'argc' 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:3: note: Loop condition is true. Entering loop body +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:3: note: Loop condition is true. Entering loop body 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:58:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:58:9: note: Assuming the condition is false 58 | if (strcmp(argv[tmp], "-db") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:58:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:58:5: note: Taking false branch 58 | if (strcmp(argv[tmp], "-db") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:9: note: Assuming the condition is false 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:41: note: Assuming the condition is false 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:61:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:61:5: note: Taking false branch 61 | if (strcmp(argv[tmp], "-c") == 0 || strcmp(argv[tmp], "--count") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:64:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:64:9: note: Assuming the condition is false 64 | if (strstr(argv[tmp], "--limiters=") != NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:64:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:64:5: note: Taking false branch 64 | if (strstr(argv[tmp], "--limiters=") != NULL) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:9: note: Assuming the condition is false 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:41: note: Assuming the condition is false 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:67:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:67:5: note: Taking false branch 67 | if (strcmp(argv[tmp], "-l") == 0 || strcmp(argv[tmp], "--lines") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:9: note: Assuming the condition is false 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:41: note: Assuming the condition is false 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:70:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:70:5: note: Taking false branch 70 | if (strcmp(argv[tmp], "-o") == 0 || strcmp(argv[tmp], "--output") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:9: note: Assuming the condition is false 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:9: note: Left side of '||' is false -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:41: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:9: note: Left side of '||' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:41: note: Assuming the condition is false 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:73:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:73:5: note: Taking false branch 73 | if (strcmp(argv[tmp], "-p") == 0 || strcmp(argv[tmp], "--positions") == 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:76:9: note: Assuming the condition is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:76:9: note: Assuming the condition is false 76 | if (strstr(argv[tmp], "--range=") != NULL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:76:5: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:76:5: note: Taking false branch 76 | if (strstr(argv[tmp], "--range=") != NULL) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:79:14: note: Assuming field 'DEBUG' is not equal to 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:79:14: note: Assuming field 'DEBUG' is not equal to 0 79 | else if (OPTIONS.DEBUG == 0 && OPTIONS.COUNT == 0 && | ^~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:79:33: note: Left side of '&&' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:79:33: note: Left side of '&&' is false 79 | else if (OPTIONS.DEBUG == 0 && OPTIONS.COUNT == 0 && | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:21: note: Assuming 'tmp' is >= 'argc' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:21: note: Assuming 'tmp' is >= 'argc' 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:57:3: note: Loop condition is false. Execution continues on line 88 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:57:3: note: Loop condition is false. Execution continues on line 88 57 | for (int tmp = 1; tmp < argc; tmp++) { | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:89:7: note: Assuming field 'OUTPUT' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:89:7: note: Assuming field 'OUTPUT' is <= 0 89 | if (OPTIONS.OUTPUT > 0) | ^~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:89:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:89:3: note: Taking false branch 89 | if (OPTIONS.OUTPUT > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:98:7: note: Assuming field 'DEBUG' is > 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:98:7: note: Assuming field 'DEBUG' is > 0 98 | if (OPTIONS.DEBUG > 0) | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:98:3: note: Taking true branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:98:3: note: Taking true branch 98 | if (OPTIONS.DEBUG > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:100:7: note: Assuming field 'COUNT' is <= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:100:7: note: Assuming field 'COUNT' is <= 0 100 | if (OPTIONS.COUNT > 0) { // TODO add dest file headers | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:100:3: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:100:3: note: Taking false branch 100 | if (OPTIONS.COUNT > 0) { // TODO add dest file headers | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:105:7: note: Assuming field 'LINES' is > 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:105:7: note: Assuming field 'LINES' is > 0 105 | if (OPTIONS.LINES > 0) | ^~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:105:3: note: Taking true branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:105:3: note: Taking true branch 105 | if (OPTIONS.LINES > 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../app.c:106:5: note: Calling 'CopyLineResults' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/app.c:106:5: note: Calling 'CopyLineResults' 106 | CopyLineResults(SOURCE.PTR, DEST.PTR, TERM.STR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/copy.h:198:9: note: 'JUST_COPY' is not equal to 1 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/copy.h:198:9: note: 'JUST_COPY' is not equal to 1 198 | if (JUST_COPY != 1){ | ^~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/copy.h:198:5: note: Taking true branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/copy.h:198:5: note: Taking true branch 198 | if (JUST_COPY != 1){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/copy.h:203:5: note: Loop condition is true. Entering loop body +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/copy.h:203:5: note: Loop condition is true. Entering loop body 203 | while (1){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/copy.h:204:9: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/copy.h:204:9: note: Taking false branch 204 | if (MatchChecker(source, destination, term) <= 0) | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/copy.h:206:31: note: 'end_position' is <= field 'POSITION' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/copy.h:206:31: note: 'end_position' is <= field 'POSITION' 206 | if (SOURCE.POSITION < end_position){ | ^~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/copy.h:206:9: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/copy.h:206:9: note: Taking false branch 206 | if (SOURCE.POSITION < end_position){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/copy.h:213:30: note: Calling 'ReturnLine' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/copy.h:213:30: note: Calling 'ReturnLine' 213 | const char *buffer = ReturnLine(source, SOURCE.POSITION); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:687:8: note: 'begin_position' is >= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:687:8: note: 'begin_position' is >= 0 687 | if(begin_position < 0 && end_position < 0){ | ^~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:687:27: note: Left side of '&&' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:687:27: note: Left side of '&&' is false 687 | if(begin_position < 0 && end_position < 0){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:692:13: note: 'begin_position' is >= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:692:13: note: 'begin_position' is >= 0 692 | else if(begin_position < 0 && end_position > position){ | ^~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:692:32: note: Left side of '&&' is false +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:692:32: note: Left side of '&&' is false 692 | else if(begin_position < 0 && end_position > position){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:697:13: note: 'begin_position' is >= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:697:13: note: 'begin_position' is >= 0 697 | else if(begin_position >= 0 && end_position < 0){ | ^~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:697:13: note: Left side of '&&' is true -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:697:36: note: Assuming 'end_position' is >= 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:697:13: note: Left side of '&&' is true +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:697:36: note: Assuming 'end_position' is >= 0 697 | else if(begin_position >= 0 && end_position < 0){ | ^~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:697:10: note: Taking false branch +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:697:10: note: Taking false branch 697 | else if(begin_position >= 0 && end_position < 0){ | ^ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:707:20: note: Calling 'ReturnPositionRange' +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:707:20: note: Calling 'ReturnPositionRange' 707 | char *buffer = ReturnPositionRange(file, | ^~~~~~~~~~~~~~~~~~~~~~~~~ 708 | begin_position, | ~~~~~~~~~~~~~~~ 709 | end_position); | ~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:607:5: note: 'range_size' initialized to 0 +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:607:5: note: 'range_size' initialized to 0 607 | const long long range_size = ((end_position - begin_position) + 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../modules/search.h:610:14: note: Call to 'malloc' has an allocation size of 0 bytes +C:/Users/vini/Desktop/GIT-GH/OldRetriever/LINTERS_CHECK/../src/modules/search.h:610:14: note: Call to 'malloc' has an allocation size of 0 bytes 610 | buffer = malloc(range_size); | ^ ~~~~~~~~~~ diff --git a/LINTERS_CHECK/TODO_CPPCHECK.txt b/LINTERS_CHECK/TODO_CPPCHECK.txt index 98a7204..c28e7ff 100644 --- a/LINTERS_CHECK/TODO_CPPCHECK.txt +++ b/LINTERS_CHECK/TODO_CPPCHECK.txt @@ -1,24 +1,24 @@ -..\app.c:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches] +..\src\app.c:0:0: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches] ^ -..\modules\output.c:42:5: error: Common realloc mistake: 'output_buffer' nulled but not freed upon failure [memleakOnRealloc] +..\src\modules\output.c:42:5: error: Common realloc mistake: 'output_buffer' nulled but not freed upon failure [memleakOnRealloc] output_buffer = realloc(output_buffer, OUTPUT_MAX); ^ -..\modules\search.h:175:5: error: Common realloc mistake: 'good_suffix_ptr' nulled but not freed upon failure [memleakOnRealloc] +..\src\modules\search.h:175:5: error: Common realloc mistake: 'good_suffix_ptr' nulled but not freed upon failure [memleakOnRealloc] good_suffix_ptr = realloc(good_suffix_ptr, sizeof(g_suffix_table)); ^ -..\modules\search.h:250:15: error: Null pointer dereference: buffer [nullPointer] +..\src\modules\search.h:250:15: error: Null pointer dereference: buffer [nullPointer] fread(buffer, 1, (TERM.LENGHT -1), file); ^ -..\modules\search.h:242:21: note: Assignment 'buffer=NULL', assigned value is 0 +..\src\modules\search.h:242:21: note: Assignment 'buffer=NULL', assigned value is 0 char * buffer = NULL; ^ -..\modules\search.h:250:15: note: Null pointer dereference +..\src\modules\search.h:250:15: note: Null pointer dereference fread(buffer, 1, (TERM.LENGHT -1), file); ^ -..\modules\search.h:250:15: error: Null pointer dereference [nullPointer] +..\src\modules\search.h:250:15: error: Null pointer dereference [nullPointer] fread(buffer, 1, (TERM.LENGHT -1), file); ^ -..\modules\search.h:130:57: warning: Uninitialized variable: f [uninitvar] +..\src\modules\search.h:130:57: warning: Uninitialized variable: f [uninitvar] if (i > g && suffix_table[i + term_lenght - 1 - f] < i - g) ^ diff --git a/app.c b/src/app.c similarity index 100% rename from app.c rename to src/app.c diff --git a/app.h b/src/app.h similarity index 100% rename from app.h rename to src/app.h diff --git a/modules/copy.h b/src/modules/copy.h similarity index 100% rename from modules/copy.h rename to src/modules/copy.h diff --git a/modules/file.c b/src/modules/file.c similarity index 100% rename from modules/file.c rename to src/modules/file.c diff --git a/modules/file.h b/src/modules/file.h similarity index 100% rename from modules/file.h rename to src/modules/file.h diff --git a/modules/finderC.h b/src/modules/finderC.h similarity index 100% rename from modules/finderC.h rename to src/modules/finderC.h diff --git a/modules/output.c b/src/modules/output.c similarity index 100% rename from modules/output.c rename to src/modules/output.c diff --git a/modules/output.h b/src/modules/output.h similarity index 100% rename from modules/output.h rename to src/modules/output.h diff --git a/modules/search.h b/src/modules/search.h similarity index 100% rename from modules/search.h rename to src/modules/search.h