Skip to content

Extract CFG graph dot file that you really want (From SVF)

Notifications You must be signed in to change notification settings

mirusu400/CFG-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

When you get bc or ll file, this program extracts a CFG dot file from what you wanted.

Build (SVF)

This version use SVF 3.0 - 2024.04.12 build

git clone https://github.com/SVF-tools/SVF
cd SVF
git reset --hard a7c5c803980e4e05b7ade7361ac08b0a6f0e0754
./build.sh

Build

# source ./env.sh
cmake .
make

Usage

  1. Make ll or bc code
clang -S -emit-llvm example.c -o example.ll
clang -c -emit-llvm example.c -o example.bc
  1. Extract dot CFG, and getting visited_nodes
./src/svf-example example.bc

(Then, you'll got new_icfg.dot.dot) file

  1. Run postprocessing.py
python3 postprocessing.py

About

Extract CFG graph dot file that you really want (From SVF)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published