Changeset ea3eb06 for translator/examples/huge.c
- Timestamp:
- Nov 22, 2014, 4:51:46 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- d11f789
- Parents:
- 3c70d38
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/examples/huge.c
r3c70d38 rea3eb06 1 int huge (int n, forall (type T) T (*f) (T)) 2 { 3 if (n <= 0) 4 return f(0); 1 int huge( int n, forall( type T ) T (*f)( T ) ) { 2 if ( n <= 0 ) 3 return f( 0 ); 5 4 else 6 return huge (n-1, f(f));5 return huge( n - 1, f( f ) ); 7 6 }
Note: See TracChangeset
for help on using the changeset viewer.