Assignment 2 - SVF-tools/Software-Analysis-Studio GitHub Wiki
Assignment-2 folder layout
$tree Assignment-2
├── Assignment-2.cpp
├── Assignment-2.h
├── CMakeLists.txt
├── Test2.cpp
└── testcase
├── bc
│ ├── test1.ll
│ └── test2.ll
├── dot
│ ├── icfg_test1.dot
│ └── icfg_test2.dot
└── src
├── test1.c
└── test2.c
1. Get the latest assignment-2 code template
Make sure to switch your program to ass2
before coding.
2. Assignment 2 task
- Implement
DFS
methods of classICFGTraversal
inAssignment-2.cpp
- Pass the test without any assertion by
Test2.cpp
. - Submit
Assignment-2.cpp
to canvas. Your implementation will be evaluated against our 10 internal tests. You will get the full marks if your code can pass them all. Unfortunately, our internal tests are publicly available. Here, we only provided limited test cases inTest2.cpp
. You are encouraged to add more test cases by yourself to validate the correctness of your implementation.
Assignment-2.cpp
only and there is NO need to modify other files under the Assignment-2 folder
*You will be working on SVF APIs to help with your implementation SVF CPP API.
3. Debug and visualize ICFG
Visualize ICFG by following here
We have also provided two test cases testcase/src/test1.c
and testcase/src/test2.c
and their corresponding LLVM bc files. You are encouraged to add more test cases by yourself to validate the correctness of your implementation.