{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

points_to_by_type_inference_slides

# points_to_by_type_inference_slides - Points-to Analysis by...

This preview shows pages 1–8. Sign up to view the full content.

Points-to Analysis by Type Inference of Programs with Structures and Unions Bjarne Steensgaard

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

View Full Document
Language S ::= x = S y | x = S &y | x = S *y | x = S allocate(y) | x = S op(y 1 …y n ) | x = S &y->n | x = S fun(f 1 …f n )->(r 1 …r m ) S* | x 1 …x m = S1…Sm p(y 1 …y n )
Types τ ::= | simple ( α , λ ,s,p) | struct struct (m,s,p) | object object object object ( α , λ ,s,p) | blank blank (s,p) Tracking Size s = SIZE | Offset α=τ×ο Struct elements m = [ID τ ] map Inconsistent usage

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

View Full Document
Types object simple struct struct blank 1 ×ο 1 29 2 ×ο 2 29 s a S b Partial ordering tracks information flow between assigned-from location and assigned-to location. Sizes and offsets must be accommodated.
Expressiveness Aggregates Unions Data size

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

View Full Document
int * a; struct { int b, int c } * d; a = &d->c; Algorithm starts off with Input: a = s &d->c; The Initial type of each program variable is “blank” to indicate that there is no access pattern. τ a : blank ( s , {} ) τ d : blank ( s , {} )
int * a; struct { int b, int c } * d; a = &d->c; We Match The Typing Rule x = s &y->n

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern