Question: 1. [30pt] Given the following program, (1) construct a control flow graph (CFG) for the program: make sure you understand the semantics of the break
![1. [30pt] Given the following program, (1) construct a control flow](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f5014ce73bb_68466f5014c8900f.jpg)

1. [30pt] Given the following program, (1) construct a control flow graph (CFG) for the program: make sure you understand the semantics of the break and continue statements. Then (2) calculate the DOM (i.e., dominator set) of each basic block. (3) Also, construct the dominator tree for the CFG. procedure sqrt (real x): real real x1,x2, x3, eps, errval; 2. 3. 5 8. begin 1. x3 = 1 errval = 0.0 eps = .001 4. if (x = 2.0*eps ) 16. x3 (x1+x2)/2.0 17. if ( (x3*x3-x) * (x1+x1-x) = 2.0*eps ) 16. x3 (x1+x2)/2.0 17. if ( (x3*x3-x) * (x1+x1-x)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
