Top Banner
Synthesis, Analysis, and Verification Lecture 09a Lectures: Viktor Kuncak Abstract Interpretation
13

Synthesis, Analysis, and Verification Lecture 09a

Feb 15, 2016

Download

Documents

karlyn

Synthesis, Analysis, and Verification Lecture 09a. Abstract Interpretation. Lectures: Viktor Kuncak. Abstract Interpretation. Way to infer properties of e.g. computations Consider assignment: z = x+y Interpreter: Abstract interpreter:. Adding and Multiplying Intervals. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Synthesis, Analysis, and Verification Lecture  09a

Synthesis, Analysis, and VerificationLecture 09a

Lectures: Viktor Kuncak

Abstract Interpretation

Page 2: Synthesis, Analysis, and Verification Lecture  09a

Abstract Interpretation

Way to infer properties of e.g. computationsConsider assignment: z = x+yInterpreter:

Abstract interpreter:

Page 3: Synthesis, Analysis, and Verification Lecture  09a

Adding and Multiplying Intervals

Page 4: Synthesis, Analysis, and Verification Lecture  09a

Programs as Control-Flow Graphs

i = 0;while (i < 10) { if (i > 1) i = i + 3; else i = i + 2;}

Page 5: Synthesis, Analysis, and Verification Lecture  09a

• Suppose– program state given only by the value of i– initially, it is possible that i has any value

• Task: for each point, find set S of possible states

Page 6: Synthesis, Analysis, and Verification Lecture  09a

i = 0;while (i < 10) { if (i > 1) i = i + 3; else i = i + 2;}

Page 7: Synthesis, Analysis, and Verification Lecture  09a

Sets are Given by Equations

Page 8: Synthesis, Analysis, and Verification Lecture  09a

Sets are Given by Equations

Page 9: Synthesis, Analysis, and Verification Lecture  09a
Page 10: Synthesis, Analysis, and Verification Lecture  09a
Page 11: Synthesis, Analysis, and Verification Lecture  09a

Approximation of Sets by Supersets

Page 12: Synthesis, Analysis, and Verification Lecture  09a

Partially Ordered Families of Sets

Page 13: Synthesis, Analysis, and Verification Lecture  09a

Does every element in this order have least upper bound?

Dually, does it have greatest lower bound?