# Download Joern
1. https://github.com/joernio/joern/releases/download/v2.0.110/joern-install.sh
2. `chmod +x joern-install.sh`
3. `./joern-install.sh`
4. `joern ` version-> 2.0.110


# Run the following script
1. `python program_info_extraction.py` 
2. `python combine.py`
3. `python process_output.py`


# CodeQL for analysis
1. `wget https://github.com/github/codeql-cli-binaries/releases/latest/download/codeql-linux64.zip`
2. `unzip codeql-linux64.zip`
3. `export PATH=$PATH:/path/to/codeql`
4. `codeql database create testdb --language=cpp --command="gcc -c example.cpp"`
5. `codeql database analyze testdb test.ql`

# Link Header Files
To ensure successful compilation, header files need to be properly linked:
1. Create symbolic link: `ln -s /path/to/source/headers /path/to/destination`
2. Or set environment variable: `export CPLUS_INCLUDE_PATH=/path/to/headers:$CPLUS_INCLUDE_PATH`