echo Should you make? Clean?

# example uses:
# ./test-correctness-regenerate-expected
# ./test-correctness-regenerate-expected -overwrite
# ./test-correctness-regenerate-expected cfa-cfa allhead
# ./test-correctness-regenerate-expected -overwrite cfa-cfa allhead

if [[ "$1" == "-overwrite" ]]
then
   suffix=''
   oracle_fx=${2:-cfa-cfa}
   oracle_accessor=${3:-allhead}
else
   suffix='.proposed'
   oracle_fx=${1:-cfa-cfa}
   oracle_accessor=${2:-allhead}
fi

for casegroup in stack-insfirst stack-inslast queue-insfirst queue-inslast
do
  program=perfexp--$oracle_fx--$casegroup-$oracle_accessor
  ./$program | sed 's|^\./perfexp--.*||g' > expect.$casegroup$suffix.txt
done
