{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lecture-18 Optimizing Object Oriented languages

lecture-18 Optimizing Object Oriented languages - in[x ±...

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

View Full Document Right Arrow Icon
1 Quick recap of abstract interpretation Approximation Want to show: Cousot and Cousot 77 Cousot and Cousot show that the following conditions are sufficient for proving (1) and (2): (3) (4) (5) Let’s look at the α condition Let’s look at the γ condition Link between local and global
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
2 Optimizing OO languages Interproc analysis with data-dependent calls How to break the cycle? Better solution Algorithm
Image of page 2
3 Example Example In the context of OO programs Class analysis Intraprocedural class analysis • Domain: Flow functions x := new C in out x := y in out
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
4 Flow functions x := new C in out x := y in out out = in[x ° { C }] out = in[x ° in[y]] Flow functions if (x instance of C) in out[0] out[1] T F Flow functions if (x instance of C) in out[0] out[1] out[0] = in[x ° in[x]
Image of page 4
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
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: in[x] ± subclasses(C)] T F out[1] = in[x & in[x] – subclasses(C) ] Limitations of intraproc analysis Profile-guided class prediction Specialization 5 Flow insensitive interproc class analysis Example CHA algorithm • Compute applies-to-set: for each method, determine the set of classes the method applies to. • At a message send a.m, take the set of classes inferred for a, and check if this set overlaps with the applies-to sets of all methods that implement m. • If only one set overlaps, then the message send should go to that method. Example Example Improvements 6 Flow-sensitive interproc class analysis Algorithm Problem Partial transfer functions...
View Full 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