2 # /**-------------------------------------------------------------------**
4 # **-------------------------------------------------------------------**
6 # **-------------------------------------------------------------------**
7 # ** First version: june 28th 2012 **
8 # **-------------------------------------------------------------------**/
10 #/*****************************************************************************
11 # * CAnDL : the Chunky Analyser for Dependences in Loops (experimental) *
12 # *****************************************************************************
14 # * Copyright (C) 2003-2008 Cedric Bastoul *
16 # * This is free software; you can redistribute it and/or modify it under the *
17 # * terms of the GNU Lesser General Public License as published by the Free *
18 # * Software Foundation; either version 3 of the License, or (at your option) *
19 # * any later version. *
21 # * This software is distributed in the hope that it will be useful, but *
22 # * WITHOUT ANY WARRANTY; without even the implied warranty of *
23 # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
24 # * Public License for more details. *
26 # * You should have received a copy of the GNU Lesser General Public License *
27 # * along with software; if not, write to the Free Software Foundation, Inc., *
28 # * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
30 # * CAnDL, the Chunky Dependence Analyser *
31 # * Written by Cedric Bastoul, Cedric.Bastoul@inria.fr *
33 # *****************************************************************************/
35 # author Joel Poudroux
37 # Will regenerate all the .scop and .depcandl of each test
38 # If a scop was already generated, the file is unchanged
39 # You can give the -a option to force to regenerate all the files
42 find -name *.c |
grep 'unitary\|transformations' |
while read name
44 orig_scop
="$name.orig.scop"
46 clay_scop
="$name.clay.scop" # only for transformations tests
48 if [ ! -f "$orig_scop" ] ||
[ "$1" = "-a" ]; then
57 candloptions
=`grep "candl options" "$name" | cut -d'|' -f2`
59 clan
-castle 0 "$name" |
grep -v "enerated by" >"$orig_scop"
62 type=`echo "$name" | cut -d/ -f2`
65 candl
"$orig_scop" $candloptions -struct |
grep -v "enerated by" >"$struct"
70 clay
"$orig_scop" |
grep -v "enerated by">"$clay_scop"
71 candl
"$clay_scop" $candloptions -test "$orig_scop" -struct | \
72 grep -v "enerated by" >"$struct"