How mayoorr24/logicgaurd works
This is a small C source analyzer. Its entry point reads the hardcoded input file test.c, then runs variable-declaration extraction, unreachable-code checks, and loop analysis, which print findings to standard output. The parser also provides brace matching used by loop analysis; variable extraction records declarations in a hash table. The supplied excerpts show these calls, but provide no README or implementation for the empty overflow and report modules.
Main entry points: parser.c Input and parsing · main.c Analyzer entry · loop_analyzer.c Loop analysis · unreachable.c Unreachable check
Components 7
Entry and input
- Analyzer entry
main.c - Input and parsing
parser.c
Source analysis
- Unreachable check
unreachable.c - Loop analysis
loop_analyzer.c
Variable state
- Variable table
hashtable.c
Other components
- C source file
- Standard output
Connections 10
- Analyzer entry → Input and parsing: loads and extracts
main.c - Analyzer entry → Unreachable check: checks reachability
main.c - Analyzer entry → Loop analysis: analyzes loops
main.c - Input and parsing → C source file: reads input
parser.c - Input and parsing → Variable table: inserts declarations
parser.c - Loop analysis → Input and parsing: matches braces
loop_analyzer.c - Input and parsing → Standard output: prints detections
parser.c - Unreachable check → Standard output: prints warnings
unreachable.c - Loop analysis → Standard output: prints verdicts
loop_analyzer.c - Analyzer entry → Standard output: prints run headings
main.c