Add piplib.h.in file
[candl.git] / tests / redo_scop.sh
blob7308a093ceec60d4934868096c7d5029f43300b5
2 # /**-------------------------------------------------------------------**
3 # ** CAnDL **
4 # **-------------------------------------------------------------------**
5 # ** Makefile.am **
6 # **-------------------------------------------------------------------**
7 # ** First version: june 28th 2012 **
8 # **-------------------------------------------------------------------**/
10 #/*****************************************************************************
11 # * CAnDL : the Chunky Analyser for Dependences in Loops (experimental) *
12 # *****************************************************************************
13 # * *
14 # * Copyright (C) 2003-2008 Cedric Bastoul *
15 # * *
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. *
20 # * *
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. *
25 # * *
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 *
29 # * *
30 # * CAnDL, the Chunky Dependence Analyser *
31 # * Written by Cedric Bastoul, Cedric.Bastoul@inria.fr *
32 # * *
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"
45 struct="$name.struct"
46 clay_scop="$name.clay.scop" # only for transformations tests
48 if [ ! -f "$orig_scop" ] || [ "$1" = "-a" ]; then
50 rm -f "$orig_scop"
51 rm -f "$struct"
52 rm -f "$clay_scop"
54 echo "add $name"
56 # read candl options
57 candloptions=`grep "candl options" "$name" | cut -d'|' -f2`
59 clan -castle 0 "$name" | grep -v "enerated by" >"$orig_scop"
61 # type of test
62 type=`echo "$name" | cut -d/ -f2`
63 case $type in
64 "unitary")
65 candl "$orig_scop" $candloptions -struct | grep -v "enerated by" >"$struct"
68 "transformations")
69 rm -f "$clay_scop"
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"
74 esac
77 done