A Reconstruction of a Types-and-Effects Analysis by Abstract Interpretation
Letterio Galletta
Dipartimento di Informatica - Università di Pisa
19/09/2012 - ITCTCS 2012
A Reconstruction of a Types-and-Effects Analysis by Abstract - - PowerPoint PPT Presentation
A Reconstruction of a Types-and-Effects Analysis by Abstract Interpretation Letterio Galletta Dipartimento di Informatica - Universit di Pisa 19/09/2012 - ITCTCS 2012 Outline 1 Type and Effect Systems 2 Abstract Interpretation 3
Letterio Galletta
Dipartimento di Informatica - Università di Pisa
19/09/2012 - ITCTCS 2012
1 Type and Effect Systems 2 Abstract Interpretation 3 Call-Tracking Analysis
2/18
3/18
conclusion premise effects
3/18
conclusion premise effects
3/18
conclusion premise effects
3/18
Methodology
1 Typing rules 2 State and prove the soundness theorem 3 Inference algorithm 4 Prove that the algorithm is correct (soundness/completeness)
1 A new analysis requires performing all previous steps 2 No general theory exists to systematically build-up an analysis
usage [Bartoletti and et.] and secure flow [Volpano and et.]?
4/18
5/18
6/18
7/18
8/18
9/18
10/18
11/18
12/18
[ [E1 E2] ]ρ ps = let (v1, ps1) = [ [E1] ]ρ ps let⋆ v′ = v1 in let (v2, ps2) = [ [E2] ]ρ ps1 let⋆ v′′ = v2 in case v′ of Fun(f ) → f
ps2 _ → (⌊ WrongValue() ⌋ , ∅)
12/18
[ [if E1 then E2 else E3] ]ρ ps = let (v1, ps1) = [ [E1] ]ρ ps in let⋆ v′ = v1 in case v′ of Bool(b) → if b then [ [E2] ]ρ ps1 else [ [E3] ]ρ ps1 _ → (⌊ WrongValue() ⌋ , ∅)
12/18
Values
{f , g}
γ
13/18
Values
{f , g}
13/18
1 Definition of some representation functions
2 By using the representation functions and some standard
14/18
15/18
16/18
17/18
18/18