Course Description
This course covers both foundations and practical aspects of the automated analysis of programs, which is becoming increasingly critical to find software errors and assure program correctness. The theory of abstract interpretation captures the essence of a broad range of program analyses and supports reasoning about their correctness. Building on this foundation, the course will describe program representations, data flow analysis, alias analysis, interprocedural analysis, dynamic analysis, and symbolic execution. Through assignments and projects, students will design and implement practical analysis tools that find bugs and verify properties of software.
This course fulfills the Logic and Languages constrained elective category for the Computer Science major as well as the Theoretical Foundations requirement of the Computer Science master's degree.
Why take this course?
- Explore the meaning of programs. One of the most basic questions that programmers ask is "What does this program do?" Program analysis is all about understanding programs--automatically!
- Learn deep theory. The theory of abstract interpretation stands with type theory as the most important and beautiful foundations of programming languages. Abstract interpretation is the fundamental theory of abstraction: how to precisely relate the concrete execution of a program to an abstraction of that execution. Naturally, this has many applications, which brings us to the third reason to take this course:
- Build awesome tools. Using program analysis, you can build tools that find bugs, prove important security and correctness properties, automatically generate useful tests, and much more--and you'll have a chance to do all of this in course assignments and a project that you can design yourself (if you want).
Logistics and People
(all times below in US Eastern Time; see Canvas for Zoom meeting links)
Class: Tue/Thu 10:40 a.m. — 12:00 noon in PH 100 and via Zoom (in-person + remote)
Recitation: Fri 2:10 p.m. — 3:00 p.m. via Zoom (remote only)
Spring 2021
12 units
Course Syllabus and Policies
The syllabus covers course learning objectives, supplemental textbooks, assessments, late work policy, and policies. Consult Canvas and especially Piazza for up-to-date announcements and discussion (links in header).
Schedule
As of January 2021, we have endeavored to make this schedule, including assignment due dates, as accurate as possible. However, it is subject to change as the semester advances. "Hybrid" modality indicates in-person + remote.
Date | Topic | Reading/Material | Assignments Due | Modality | Optional Reading |
---|---|---|---|---|---|
Feb 2 | Introduction, Program Representation, and Syntactic Analysis | Text ch. 1-2, slides | Remote | PPA ch. 1 | |
Feb 4 | Program Semantics | Text ch. 3, slides | Remote | ||
Feb 5 | recitation CodeQL | notes | Remote | ||
Feb 9 | Dataflow Analysis and Abstract Interpretation | Text ch. 4, slides | Remote | PPA ch. 2 | |
Feb 11 | Dataflow Analysis and Abstract Interpretation (contd.) | Text ch. 4, slides | hw1 hw1 | Remote | PPA ch. 6 |
Feb 12 | recitation Semantics | exercises, notes | Remote | ||
Feb 16 | Dataflow Analysis examples | Text ch. 5, slides | Hybrid | ||
Feb 18 | Dataflow Analysis examples (contd.) | (see previous) | hw2 pdf mathpartir | Hybrid | |
Feb 19 | recitation Specifying/Implementing Dataflow Analysis | Remote | |||
Feb 23 | No class | ||||
Feb 25 | Dataflow Analysis termination and correctness | Hybrid | PPA ch. 4 | ||
Feb 26 | recitation Correctness of Program Analysis | Remote | |||
Mar 2 | Widening Operators and Collecting Semantics | hw3 pdf | Hybrid | ||
Mar 4 | Interprocedural analysis | Hybrid | |||
Mar 5 | recitation Introduction to Soot | Remote | |||
Mar 9 | Interprocedural Analysis / Pointer Analysis | hw4 | Hybrid | ||
Mar 11 | Pointer Analysis | Hybrid | |||
Mar 12 | recitation Midterm review | Remote | |||
Mar 15 | midterm 8am take-home exam released |
||||
Mar 16 | Control-Flow Analysis for Functional Languages | hw5 (checkpoint) | PPA ch. 3 | ||
Mar 18 | Hoare-style Verification | midterm take-home exam due |
|||
Mar 19 | no recitation | ||||
Mar 23 | Hoare-style Verification | ||||
Mar 25 | hw5 | ||||
Mar 26 | recitation | Remote | |||
Mar 30 | |||||
Apr 1 | hw6 | ||||
Apr 2 | recitation | Remote | |||
Apr 6 | |||||
Apr 8 | |||||
Apr 9 | recitation | Remote | |||
Apr 13 | hw7 | ||||
Apr 15 | No class | ||||
Apr 16 | no recitation | ||||
Apr 20 | |||||
Apr 22 | hw8 (incl. project proposal) | ||||
Apr 23 | recitation | ||||
Apr 27 | |||||
Apr 29 | |||||
Apr 30 | recitation | Remote | |||
May 4 | checkpoint for project | ||||
May 6 | |||||
May 7 | recitation | Remote | |||
May 10--14 (Finals Week) | Project presentations | Project presentations | TBD | ||
May 17 | project final report due |