Clan  0.8.0
Functions
relation_list.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <osl/macros.h>
#include <osl/relation_list.h>
#include <clan/relation.h>
#include <clan/relation_list.h>
Include dependency graph for relation_list.c:

Go to the source code of this file.

Functions

void clan_relation_list_compact (osl_relation_list_p list, int nb_parameters)
void clan_relation_list_define_type (osl_relation_list_p list, int type)

Function Documentation

void clan_relation_list_compact ( osl_relation_list_p  list,
int  nb_parameters 
)

clan_relation_lit_compact function: This function compacts a relation list such that each relation inside uses the right number of columns (during construction we used CLAN_MAX_DEPTH, CLAN_MAX_LOCAL_DIMS and CLAN_MAX_PARAMETERS to define relation and vector sizes). It modifies directly the relation list provided as parameter.

Parameters:
[in,out]listThe relation list to compact.
[in]nb_parametersThe true number of parameters in the SCoP.

Definition at line 65 of file relation_list.c.

References clan_relation_compact().

Referenced by clan_statement_compact().

void clan_relation_list_define_type ( osl_relation_list_p  list,
int  type 
)

clan_relation_list_define_type function: this function sets the type of each relation in the relation list to the one provided as parameter, only if it is undefined.

Parameters:
[in,out]listThe list of relations to set the type.
[in]typeThe type.

Definition at line 80 of file relation_list.c.

Referenced by yyparse().