#!/bin/sh
# Benchmark tests for h1.
#   Copyright (C) 2003 Jean Goubault-Larrecq and LSV, CNRS UMR 8643 & ENS Cachan.
#
#   This file is part of h1.
#
#   h1 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, or (at your option)
#   any later version.
#
#   h1 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 h1; see the file COPYING.  If not, write to
#   the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
FILES="Needham_Schroeder.clauses.p v.p Fabrice/essai1.p Fabrice/essai2.p Fabrice/essai3.p\
	Fabrice/essai4.p Fabrice/essai5.p Fabrice/essai6.p Fabrice/essai7.p Fabrice/essai7bis.p\
	Fabrice/essai8.p Fabrice/essai9.p Fabrice/essai10.p Fabrice/essai11.p Fabrice/essai12.p\
	Fabrice/essai13.p Fabrice/essai14.p Fabrice/essai15.p"

for f in $FILES
do
   echo
   CMD="memtime ./h1 -path-refine $1 -v2 $f 2>gag"
   echo $CMD
   memtime ./h1 -path-refine $1 -v2 $f 2>gag
   ./monitor gag
   grep "\*\*\*" gag
   tail -2 gag
done
