Skip to content

Assignment 2

guanqin-123 edited this page Feb 24, 2021 · 33 revisions
$tree Assignment-2
β”œβ”€β”€ Assignment-2.cpp
β”œβ”€β”€ Assignment-2.h
β”œβ”€β”€ CMakeLists.txt
β”œβ”€β”€ Test2.h
└── testcase
    β”œβ”€β”€ bc
    β”‚   β”œβ”€β”€ test1.ll
    β”‚   └── test2.ll
    β”œβ”€β”€ dot
    β”‚   β”œβ”€β”€ icfg_test1.dot
    β”‚   └── icfg_test2.dot
    └── src
        β”œβ”€β”€ test1.c
        └── test2.c

0. Assignment-2

  • You are required to finish the code in Assignment-2.cpp

1. ENV setup

  • To make sure you have updated to the latest assignment-2 requirements: please input git pull in container cmd under the SVF-teaching directory

2. Dot file visualisation

2.1 VSCode Graphviz(dot) Interactive Preview extensions

2.2 Call out graph visualisation

  • Open the dot file in /Assignment-2/testcase/dot/icfg_test1.dot which is our ICFG and call out the command palette

  • Enter Graphviz and select `Interactive Preview (beside)

  • You will see the ICFG on the right hand side

Clone this wiki locally