Changeset 79d4186 for doc/papers/general/evaluation/c-bench.c
- Timestamp:
- Mar 6, 2018, 5:13:48 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 14a3dad2
- Parents:
- 520145b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/papers/general/evaluation/c-bench.c
r520145b r79d4186 4 4 #include "c-pair.h" 5 5 #include "c-stack.h" 6 #include "c-print.h"7 6 8 7 _Bool* new_bool( _Bool b ) { … … 39 38 40 39 int main(int argc, char** argv) { 41 FILE * out = fopen("/dev/null", "w");42 40 int maxi = 0, vali = 42; 43 41 struct stack si = new_stack(), ti; … … 50 48 if ( *xi > maxi ) { maxi = *xi; } 51 49 free(xi); ) 52 REPEAT_TIMED( "print_int", N/2, print( out, "dsds", vali, ":", vali, "\n" ); /***/ )53 50 54 51 struct pair * maxp = new_pair( new_bool(0), new_char('\0') ), … … 67 64 free_pair_bool_char( xp ); /***/ 68 65 } ) 69 REPEAT_TIMED( "print_pair", N/2, print( out, "pbcspbcs", *valp, ":", *valp, "\n" ); /***/ )70 66 free_pair_bool_char( maxp ); /***/ 71 67 free_pair_bool_char( valp ); /***/ 72 fclose(out);73 68 }
Note: See TracChangeset
for help on using the changeset viewer.