{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

l11 - CS 243 Lecture 11 Binary Decision Diagrams(BDDs in...

Info icon This preview shows pages 1–13. Sign up to view the full content.

View Full Document Right Arrow Icon
Advanced Compilers CS 243 Lecture 11 Binary Decision Diagrams (BDDs) in Pointer Analysis 1. Datalog BDD 2. BDDs 3. Context-Sensitive Pointer Analysis 4. Performance of BDD Algorithms Readings: Chapter 12 M. Lam & J. Whaley
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Advanced Compilers L11. BDDs Automatic Analysis Generation BDD operations 1000s of lines 1 year tuning Datalog bddbddb ( BDD - b ased d eductive d ata b ase) with Active Machine Learning PQL BDD: 10,000s-lines library Compiler writer: Ptr analysis in 10 lines Programmer: Security analysis in 10 lines
Image of page 2
Advanced Compilers L11. BDDs 1. Datalog BDDs Example B D C A calls(A,B) calls(A,C) calls(A,D) calls(B,D) calls(C,D)
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Advanced Compilers L11. BDDs Call Graph Relation Relation expressed as a binary function. A=00, B=01, C=10, D=11 x 1 x 2 x 3 x 4 f 0 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 1 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 1 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 0 B D C A 00 10 01 11
Image of page 4
Advanced Compilers L11. BDDs Binary Decision Diagrams (Bryant, 1986) Graphical encoding of a truth table.
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Advanced Compilers L11. BDDs Binary Decision Diagrams Collapse redundant nodes.
Image of page 6
Advanced Compilers L11. BDDs Binary Decision Diagrams Collapse redundant nodes.
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Advanced Compilers L11. BDDs Binary Decision Diagrams Collapse redundant nodes.
Image of page 8
Advanced Compilers L11. BDDs Binary Decision Diagrams Collapse redundant nodes.
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Advanced Compilers L11. BDDs Binary Decision Diagrams Eliminate unnecessary nodes.
Image of page 10
Advanced Compilers L11. BDDs Binary Decision Diagrams Eliminate unnecessary nodes.
Image of page 11

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Advanced Compilers L11. BDDs Datalog BDDs Datalog BDDs Relations
Image of page 12
Image of page 13
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern