Spread Knowledge

Virtual University of Pakistan Video Lectures, Handouts, PPT, Quizzes, Assignments & Papers

CS605 - Software Engineering II - Lecture Handout 20

User Rating:  / 0

Related Content: CS605 - VU Lectures, Handouts, PPT Slides, Assignments, Quizzes, Papers & Books of Software Engineering II

Assessing Risk Impact

Assessment of risk impact is a non-trivial process. Factors affecting the consequences are the nature, scope, and timing.

For each risk an exposure is calculated as follows:

RE = Probability of the risk x Cost

This risk exposure is then used to identify the top risks and mitigation strategies.

Read more: CS605 - Software Engineering II - Lecture Handout 20

CS606 - Compiler Construction - Lecture Handout 37

User Rating:  / 0

Related Content: CS606 - VU Lectures, Handouts, PPT Slides, Assignments, Quizzes, Papers & Books of Compiler Construction

Here is the bottom-up parse of the assignment statement a = b*-c + b*-c and the syntax-directed translation into three-address code.

Parser action attribute Three- address code
id=id ∗ –id + id ∗ –id    
id=E1 ∗ –id + id ∗ –id E1.place = b  
id=E1 ∗ –E2 + id ∗ –id E2.place = c  
id=E1 ∗ E2 + id ∗ –id E2.place = t1 t1 = – c
id=E1 + id ∗ –id E1.place = t2 t2 = b∗t1
id=E1 + E2 ∗ –id E2.place = b  
id=E1 + E2 ∗ –E3 E3.place = c  
id=E1 + E2 ∗ E3 E3.place = t3 t3 = – c
id=E1 + E2 E2.place = t4 t4 = b∗t3
id=E1 E1.place = t5 t5 = t2+t4
S   a = t5

Read more: CS606 - Compiler Construction - Lecture Handout 37

Page 1 of 464