Assignment 1 - SVF-tools/Software-Analysis-Studio GitHub Wiki
Assignment-1 folder layout
$tree Assignment-1
├── Assignment-1.cpp
├── Assignment-1.h
├── Test1.cpp
├── CMakeLists.txt
1. Assignment 1 coding task
- Implement methods
printPath
andDFS
of classGraphTraversal
inAssignment-1.cpp
. - Pass the test without any assertion by
Test1.cpp
- Submit
Assignment-1.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 not publicly available. Here, we only provided one test case inTest1.cpp
. You are encouraged to add more test cases by yourself to validate the correctness of your implementation.
Assignment-1.cpp
only and there is NO need to modify other files under the Assignment-1 folder
*You will be working on 2. Configuration && debugging
launch.json
1.You need to set the "program" to be the executable file of Assignment 1, i.e., "${workspaceFolder}/bin/ass1" and arg as "${workspaceFolder}/Assignment-1/test-exes/test1.graph.txt" in launch.json in order to run and debug
3. Debug your code
*If there is an assertion or unexpected output, you will need to debug and find bugs.
Step 1: Set the breakpoint where you want to stop your program and press the 'debug' button
Step 2: 'Step over' /'Step in' / 'Step out'
- 'Step over' to the next step of your program
- 'Step in' to the current line of your program
- 'Step out' to mainstream of your program where you stepped in before