violation.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "../include/candl/candl.h"
Include dependency graph for violation.c:

Functions

void candl_violation_print_structure (file, violation, level)
void candl_violation_print (FILE *file, CandlViolation *violation)
void candl_violation_pprint (FILE *file, CandlViolation *violation)
void candl_violation_view (CandlViolation *violation)
void candl_violation_free (CandlViolation *violation)
CandlViolationcandl_violation_malloc ()
void candl_violation_add (CandlViolation **start, CandlViolation **now, CandlViolation *violation)
CandlViolationcandl_violation (program, dependence, options)

Function Documentation

CandlViolation* candl_violation ( program  ,
dependence  ,
options   
)

candl_violation function : this function will build the list of violated dependences by a program transformation candidate, according to some user options. It returns the linked list of violations.

  • program containt the program and transformation candidate informations,
  • dependence is the dependence graph, if NULL it will be calculated here,
  • options is the user options data structure.
  • 12/12/2005: first version.

References candl_dependence(), candl_matrix_free(), candl_matrix_violation(), CANDL_min, candl_violation_add(), candl_violation_malloc(), candldependence::domain, candlstatement::domain, candloptions::fullcheck, candlstatement::label, candldependence::next, candldependence::source, and candldependence::target.

Referenced by main().

void candl_violation_add ( CandlViolation **  start,
CandlViolation **  now,
CandlViolation violation 
)

Referenced by candl_violation().

void candl_violation_free ( CandlViolation violation  ) 
CandlViolation* candl_violation_malloc (  ) 

candl_violation_malloc function: This function allocates the memory space for a CandlViolation structure and sets its fields with default values. Then it returns a pointer to the allocated space.

  • 07/12/2005: first version.

References CANDL_UNSET, candlviolation::dependence, candlviolation::dimension, candlviolation::domain, and candlviolation::next.

Referenced by candl_violation().

void candl_violation_pprint ( FILE *  file,
CandlViolation violation 
)
void candl_violation_print ( FILE *  file,
CandlViolation violation 
)

References candl_violation_print_structure().

Referenced by main().

void candl_violation_print_structure ( file  ,
violation  ,
level   
)

------ ( ----------------------------------------------------------** )\ CAnDL ** ----- / ) --------------------------------------------------------** ( * ( violation.c ** ---- #/ --------------------------------------------------------** .-"#'-. First version: december 12th 2005 ** --- |"-.-| -------------------------------------------------------** | | | | | | ************************************************************* CAnDL '-._,-' the Chunky Analyzer for Dependences in Loops (experimental) *

* Copyright (C) 2005 Cedric Bastoul * * This is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. * * This software is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. * * You should have received a copy of the GNU General Public License along * with software; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * CAnDL, the Chunky Dependence Analyzer * Written by Cedric Bastoul, Cedric.Bastoul@inria.fr * * candl_violation_print_structure function: Displays a CandlViolation structure (violation) into a file (file, possibly stdout) in a way that trends to be understandable without falling in a deep depression or, for the lucky ones, getting a headache... It includes an indentation level (level) in order to work with others print_structure functions.

  • 18/09/2003: first version.

References candl_dependence_print_structure(), candl_matrix_print_structure(), candlviolation::dependence, candlviolation::dimension, candlviolation::domain, candlviolation::next, and candldependence::next.

Referenced by candl_violation_print().

void candl_violation_view ( CandlViolation violation  ) 

References CANDL_TEMP_OUTPUT, and candl_violation_pprint().

Referenced by main().


Generated on Mon Jan 11 21:20:52 2010 for Candl by  doxygen 1.6.1