#include <stdlib.h>#include <stdio.h>#include <ctype.h>#include <string.h>#include <clan/scop.h>#include <clan/clan.h>#include <parser.h>
Functions | |
| scoplib_scop_p | clan_parse (FILE *, clan_options_p) |
| scoplib_scop_p | clan_scop_extract (FILE *input, clan_options_p options) |
| void | clan_scop_compact (scoplib_scop_p scop) |
| scoplib_scop_p clan_parse | ( | FILE * | , | |
| clan_options_p | ||||
| ) |
clan_parse function: this function parses a file to extract a SCoP and returns, if successful, a pointer to the scoplib_scop_t structure.
| input | The file to parse (already open). | |
| options | Options for file parsing. |
References clan_parser_free_state(), clan_parser_initialize_state(), clan_scop_compact(), parser_scop, yyin, and yyparse().
Referenced by clan_scop_extract().
| void clan_scop_compact | ( | scoplib_scop_p | scop | ) |
clan_scop_compact function: This function scans the SCoP to put the right number of columns to every matrix (during construction we used CLAN_MAX_DEPTH and CLAN_MAX_PARAMETERS to define matrix and vector sizes).
| scop | The scop to scan to compact matrices. |
References clan_statement_compact().
Referenced by clan_parse().
| scoplib_scop_p clan_scop_extract | ( | FILE * | input, | |
| clan_options_p | options | |||
| ) |
clan_scop_extract function: this function is a wrapper clan_parse function that parses a file to extract a SCoP and returns, if successful, a pointer to the scoplib_scop_t structure.
| input | The file to parse (already open). | |
| options | Options for file parsing. |
References clan_parse().
Referenced by main().
1.6.1