
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































COMP 524 Programming Language Concepts Aaron Block February 15, 2007 Based on notes by N. Fisher, F. Hernandez-Campos, and D. Stotts
Define Context Thesis Outline:P1, P
Intro P1 & Thesis Outline of P1 Proof (optional) Fact Analysis Repeat as necessary
Summarize Arguments
Impact of Thesis (optional) Intro P2 & Thesis
4
5
7
11 a = 2; a 2036
a 2036
13 int sum(int n){ int val=0; for(int i=0,i<=n;i++){ val+=i; } return val; } int sum(int n){ if (n<=0) then return 0 else return n+sum(n-1) }
14 int sum(int n){ int val=0; for(int i=0,i<=n;i++){ val+=i; } return val; } int sum(int n){ if (n<=0) then return 0 else return n+sum(n-1) }
17 b = 2; a = b; (^) a 2036
mem(1024)= 2; mem(2036)= 2; b 1024
a 2036
b 1024
19 b = 2; a = b; (^) a 2036
mem(1024)= loc(2); mem(2036)= mem(1024); b 1024
a 2036
b 1024
20 b = 2; a = b; (^) a 2036
mem(1024)= loc(2); mem(2036)= mem(1024); b 1024
a 2036
b 1024