scop.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <clan/scop.h>
#include <clan/clan.h>
#include <parser.h>
Include dependency graph for scop.c:

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)

Function Documentation

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.

Parameters:
input The file to parse (already open).
options Options for file parsing.
  • 01/05/2008: First version.

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).

Parameters:
scop The scop to scan to compact matrices.
  • 02/05/2008: first version.

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.

Parameters:
input The file to parse (already open).
options Options for file parsing.
  • 24/05/2008: First version.

References clan_parse().

Referenced by main().


Generated on Mon Jan 11 21:20:40 2010 for Clan by  doxygen 1.6.1