Implement a simple flow analysis. Tracks control flow of all statements with

the exception of "switch". Outputs warnings for unreachable code. Tracks also
"return" but doesn't currently make use of this information.
This commit is contained in:
Kugel Fuhr
2025-07-16 20:15:32 +02:00
parent 3f3dc3d145
commit 93b94d314a
12 changed files with 575 additions and 139 deletions

View File

@@ -29,7 +29,7 @@ int optopt; /* character checked for validity */
char *optarg; /* argument associated with option */
#define tell(s) fputs(*argv,stderr);fputs(s,stderr); \
fputc(optopt,stderr);fputc('\n',stderr);return(BADCH);
fputc(optopt,stderr);fputc('\n',stderr);return(BADCH)
int __fastcall__ getopt (int argc, char* const* argv, const char* optstring)
/* Get option letter from argument vector */