+/EE379K

programming paradigms

git clone https://git.julia.blue/+/EE379K

Joseph RyanSet up gradle project for CFGffe584c

master
845 B16 linesraw
1Implement a tool (based on ASM) to build a CFG for the given Java
2code.  You can assume that the input will always be a single main
3method; inside the main, there can be any code (except method
4invocations).  The key abstraction that you will need to build is
5BasicBlock (BB), a sequence of statements that is atomic as either no
6instruction in a block is executed or all instructions are executed.
7https://en.wikipedia.org/wiki/Basic_block
8
9The output of your program should be a CFG in a txt file; there is one
10line per BB and for each BB you should print ids of BBs to which the
11control can move.  One line has the following format:
12ID => (ID)*
13
14As always, you should have test cases for your implementation and
15include a bash script that triggers the execution.  If something is
16unclear, make a reasonable assumption, document, and proceed.