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).
8 # include <cloog/cloog.h>
14 CloogOptions
* options
;
15 struct clast_stmt
*root
;
17 state
= cloog_state_malloc();
18 options
= cloog_options_malloc(state
);
19 input
= cloog_input_read(stdin
, options
);
21 root
= cloog_clast_create_from_input(input
, options
);
22 clast_pprint(stdout
, root
, 0, options
);
24 cloog_clast_free(root
);
25 cloog_options_free(options
) ;
26 cloog_state_free(state
);