












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













CMSC 631 – Program Analysis and Understanding Fall 2007 CMSC 631 2
CMSC 631 3
■ Office: 4131 AVW ■ E-mail: [email protected] ■ Office hours: TWF 10am-11am
CMSC 631 4
■ Ideas we will use in this class:
CMSC 631 7 Expectations: Homework
CMSC 631 9
■ Read 1-2 papers on a topic ■ Present a lecture in class about the material
CMSC 631 13
20 Ideas and Applications in Program Analysis in 40 Minutes CMSC 631 – Program Analysis and Understanding Fall 2007 CMSC 631 16
■ Uh-oh! We can’t do anything. So much for this course...
CMSC 631 19 Control-Flow Graph x = * x = 3 x = 3 x = 3 x = 3 x = 6 x =? x =? x =? CMSC 631 20
CMSC 631 21
CMSC 631 25 Operational Semantics
■ Program states are reduced according to some transition relation →. An example is our lambda calculus rule: ■ →
CMSC 631 26 Denotational Semantics
■ Rather than a sequence of machine states
■ Takes program fragment as its argument and returns its meaning as the result, e.g., as a mathematical object
CMSC 631 27 Denotational Semantics example
■ Are two programs equivalent? Does a program terminate? Does a program implement a particular specification?
■ Hoare, Dijkstra, Gries, others Axiomatic Semantics
CMSC 631 31
CMSC 631 32
CMSC 631 33
CMSC 631 37
CMSC 631 39