LLVM Discussion Forums

Creating Clang AST for LSTM Deep Learning Model

I have these CSV files as data set. I have code which train LSTM model on it. I have knowledge of models and working with them in python but don’t know about Clang.

I have attached two sample ASTs created with Clang.

Can someone look at these samples and give me code or something on how they were created.

Sample One: https://drive.google.com/file/d/1Yj0C_yg9kONwTDvNHupXWqcyuKNMtOnS/view?usp=sharing

Sample Two: https://drive.google.com/file/d/1n7JSnN2sSTNhoeLr0kh6apbp3J3Jb3eD/view?usp=sharing

Background Information: Source for creating them was Code4Bench SQL Database. And the ASTs are used to train a Statement Level Defect Prediction Model for C code.