Question: 5. Control Flow Graphs [18 points] For the next three programs, draw the control flow graph. Then, draw a rectangle around the basic blocks with
![5. Control Flow Graphs [18 points] For the next three programs,](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f31521a3ffe_68866f3152061aae.jpg)


5. Control Flow Graphs [18 points] For the next three programs, draw the control flow graph. Then, draw a rectangle around the basic blocks with a dotted line. In the nodes, put the source text. Format your answers like the following example entry Example: int a = 0; void w() int a = 0; int b = 1; if a > b ) int b = 1; if (a>b) print a; print a; print "hello"; print "hello", exit 5a. [6 points] int x(int b) 1 int a = 5; return a; else return b; print a+b; return atb
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
