

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!


program verification is intimate
e.g. SORT(LIST => A, LENGTH => N);
procedure SORT(LIST : LIST_TYPE; LENGTH : INTEGER := 100); ... SORT(LIST => A);
Semantic Models
Conceptual Models of Transfer
Implementation Models
1. Pass-by-value (in mode) - Either by physical move or access path 2. Pass-by-result (out mode)
sub1(x, x);
3. Pass-by-reference (in-out mode) i. Actual parameter collisions e.g. procedure sub1(a: int, b: int); ... sub1(x, x);
ii. Array element collisions e.g. sub1(a[i], a[j]); /* if i = j */
iii. Collision between formals and globals
Root cause of all of these is: The called subprogram is provided wider access to Non-locals than is necessary
- Now considered very important for reliability - FORTRAN 77 and original C: none - Pascal, Modula-2, FORTRAN 90, Java, and Ada: it is always required