Changeset 579427b for doc/theses/mike_brooks_MMath/programs
- Timestamp:
- May 7, 2025, 9:48:24 PM (5 months ago)
- Branches:
- master
- Children:
- ed0a7e5
- Parents:
- 2c065ed
- Location:
- doc/theses/mike_brooks_MMath/programs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/programs/bkgd-cfa-arrayinteract.cfa
r2c065ed r579427b 3 3 4 4 struct tm { int x; }; 5 forall (T*) T* alloc();5 forall( T * ) T * alloc(); 6 6 7 7 int main () { -
doc/theses/mike_brooks_MMath/programs/hello-accordion.cfa
r2c065ed r579427b 31 31 int getPref( @School( C, S ) & school@, int is, int pref ) { 32 32 for ( ic; C ) { 33 int curPref = @school.preferences@[ic][is]; $\C{// offset calculation implicit}$ 34 if ( curPref == pref ) return ic; 33 if ( pref == @school.preferences@[ic][is]; ) return ic; $\C{// offset calculation implicit}$ 35 34 } 36 35 assert( false ); 37 36 } 37 38 38 39 39 … … 91 91 sout | school.student_ids[is] | ": " | nonl; 92 92 for ( pref; 1 ~= nc ) { 93 int ic = getPref( school, is, pref);93 int ic = getPref( school, is, pref ); 94 94 sout | school.course_codes[ ic ] | nonl; 95 95 }
Note:
See TracChangeset
for help on using the changeset viewer.