#!/bin/bash

i=239

while [ true ]; do
  echo "test $i"
  ./gen_rand 10 "$i" > collider.in
  $1
  cp collider.out collider.ans
  $2
  if ! ./check collider.in collider.out collider.ans
  then
    echo test found
    break;
  fi
  let i=i+301703;
done
