- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/generic_types/evaluation/cfa-bench.c
rff178ee r0d10090 1 1 #include <stdlib> 2 2 #include <stdlib.h> 3 #include <stdio.h> 3 4 #include "pair" 4 5 #include "bench.h" 5 6 #include "cfa-stack.h" 7 #include "cfa-print.h" 6 8 7 9 int main(int argc, char** argv) { … … 45 47 max2 = max( max2, pop( &t2 ) ); 46 48 ) 49 50 FILE* out = fopen("cfa-out.txt", "w"); 51 REPEAT_TIMED( "print_int", 52 print( out, rand(), ":", rand(), "\n" ); 53 ) 54 55 REPEAT_TIMED( "print_pair", 56 print( out, (pair(_Bool, char)){ rand() & 0x1, rand() & 0x7F }, ":", 57 (pair(_Bool, char)){ rand() & 0x1, rand() & 0x7F }, "\n" ); 58 ) 59 fclose(out); 47 60 }
Note: See TracChangeset
for help on using the changeset viewer.