#!/usr/bin/env bash

# progress length current total
let t=36
let i=0
let l=36
progress () {
	let a=$l*$i/$t
	let b=$l-$a
	printf "\rGenerating test data: ["
	#for j in {1..$a}
	for ((j=1; j<=$a; j++))
	do
		printf "#"
	done
	for ((j=1; j<=$b; j++))
	do
		printf " "
	done
	printf "]"
	let i=i+1
}

rm ../data/secret/*.ans
rm *../data/secret/.in
./full-rand.py > ../data/secret/00--full-rand.in
progress
./full-rand.py > ../data/secret/01--full-rand.in
progress
./full-rand.py > ../data/secret/02--full-rand.in
progress
./full-rand.py > ../data/secret/03--full-rand.in
progress
./full-rand.py > ../data/secret/04--full-rand.in
progress
./full-rand.py > ../data/secret/05--full-rand.in
progress
./full-rand.py > ../data/secret/06--full-rand.in
progress
./full-rand.py > ../data/secret/07--full-rand.in
progress
./full-rand.py > ../data/secret/08--full-rand.in
progress
./full-rand.py > ../data/secret/09--full-rand.in
progress
./big-hull.py > ../data/secret/10--big-hull.in
progress
./big-hull.py > ../data/secret/11--big-hull.in
progress
./big-hull.py > ../data/secret/12--big-hull.in
progress
./big-hull.py > ../data/secret/13--big-hull.in
progress
./big-hull.py > ../data/secret/14--big-hull.in
progress
./big-hull.py > ../data/secret/15--big-hull.in
progress
./big-hull.py > ../data/secret/16--big-hull.in
progress
./big-hull.py > ../data/secret/17--big-hull.in
progress
./big-hull.py > ../data/secret/18--big-hull.in
progress
./big-hull.py > ../data/secret/19--big-hull.in
progress
./bighull.py > ../data/secret/20--per-big-hull.in
progress
./bighull.py > ../data/secret/21--per-big-hull.in
progress
./bighull.py > ../data/secret/22--per-big-hull.in
progress
./bighull.py > ../data/secret/23--per-big-hull.in
progress
./bighull.py > ../data/secret/24--per-big-hull.in
progress
./bighull.py > ../data/secret/25--per-big-hull.in
progress
./bighull.py > ../data/secret/26--per-big-hull.in
progress
./bighull.py > ../data/secret/27--per-big-hull.in
progress
./bighull.py > ../data/secret/28--per-big-hull.in
progress
./bighull.py > ../data/secret/29--per-big-hull.in
progress
./fail-tle2.py 1e8 2 > ../data/secret/30--fail-tle2.in
progress
./fail-tle2.py 1e8 5 > ../data/secret/31--fail-tle2.in
progress
./fail-tle2.py 1e8 10 > ../data/secret/32--fail-tle2.in
progress
./fail-tle2.py 1e8 100 > ../data/secret/33--fail-tle2.in
progress
./fail-tle2.py 1e8 1000 > ../data/secret/34--fail-tle2.in
progress
./fail-tle2.py 1e8 10000 > ../data/secret/35--fail-tle2.in
progress
./fail-tle2.py 1e8 100000 > ../data/secret/36--fail-tle2.in
progress
printf "\n"


./make-ans.sh
