-
Notifications
You must be signed in to change notification settings - Fork 140
Assignment 1
Yulei Sui edited this page Feb 22, 2021
·
44 revisions
$tree Assignment-1
├── Assignment-1.cpp
├── Assignment-1.h
├── Test1.h
├── CMakeLists.txt
* Before coding, please type cd $HOME/SVF-Teaching and git pull in your terminal to make sure you always have the latest version of the code template before each assignment.
Finish the code task in Assignment-1.cpp
- Implement
printPathandDFSmethods of classGraphTraversal - Pass the test without any assertion by
Test1.h
1. launch.json
You need to set the "program" to be the executable file of Assignment 1, i.e., "${workspaceFolder}/bin/assign-1" in
launch.json in order to run and debug
*When you finish your code and run, there should not be any assertion triggered by Test1.h. If there is an abortion, you will need to debug your implementation and find any bugs.
Step1: Set the break point to the abortion test function in the beginning and press the 'debug' button

- 'Step over' to the next step of your program
- 'Step in' to the current line of your program
- 'Step out' to main stream of your program where you stepped in before

- Compress the Assignment-1.cpp && Assignment-1.h in the current file
tar -cvf Assignment-1.tar Assignment-1
- Fetch the compressed file from the docker container
docker cp $containerid:/home/SVF-tools/SVF-teaching/Assignment-1.tar $Your_local_dir
- Post the file to canvas