Open hanqihong opened 5 months ago
Sorry for the delayed response.
Please make sure you have the appropriate version of Joern installed first. Joern frequently updates, and newer versions might have changes in API or configuration parameters, leading to unpredictable outputs. I recommend installing Joern version 1.1.260 with the following commands:
wget https://github.com/joernio/joern/releases/download/v1.1.260/joern-install.sh
chmod +x ./joern-install.sh
printf 'Y\n/bin/joern\ny\n/usr/local/bin\n\n' | sudo ./joern-install.sh --interactive
Additionally, if you encounter issues with generating the code graph, you might find this link helpful: https://drive.google.com/drive/folders/12iUTp4YFRG9qgAtqOV0hXRDpMZmvDp_O?usp=sharing. It contains key data for reproducing the results, including pre-generated code graph data in .pt format.
If you have further questions, please submit an issue in my repo here: https://github.com/Zhaoyang-Chu/counterfactual-vulnerability-detection/issues to ensure I can see it promptly. Thank you!
As written in readme, running commands such as Python code_graph_gen.py 1 will generate before/177736. c, before/177736. nodes.json, and before/177736. edges.json files. Why didn't I generate before/177736. nodes.json, and only. c files for and before/177736. edges.json?