First commit : 0.14.0 version (with roadmap in doc instead of
[cloog.git] / examples / example / example.c
blob5c28ba6f1ef3e2549e94bafb81ea95a0e8de67bd
1 /* This is a very simple example of how to use the CLooGLib inside your
2 * programs. You should compile it by typing 'make' (after edition of the
3 * makefile), then test it for instance by typing
4 * 'more FILE.cloog | ./example' (or example.exe under Cygwin).
5 */
7 # include <stdio.h>
8 # include <cloog/cloog.h>
10 int main()
11 { CloogProgram * program ;
12 CloogOptions * options ;
14 options = cloog_options_malloc() ;
15 program = cloog_program_read(stdin,options) ;
17 program = cloog_program_generate(program,options) ;
18 cloog_program_pprint(stdout,program,options) ;
20 cloog_options_free(options) ;
21 cloog_program_free(program) ;
23 return 0 ;