#!/bin/sh # job 2594 (route 98): reproduce the decisive cells with the served instruments kfork.c (#1804) and kstar.c (#1812). # stdout is the artifact; build and timing noise go to stderr. set -e cc -O2 -o kfork kfork.c 1>&2 cc -O2 -o kstar kstar.c -lpthread 1>&2 echo "# kfork: P p A=K*(P,R) B=K*(Pp,R) dstar F nmax R" ./kfork 30 11 7 13 19 23 2>/dev/null ./kfork 30 13 7 11 19 2>/dev/null echo "# kstar: P p R K" printf '30 1 4 7 13 19 23\n330 1 4 7 13 19 23\n30 1 5 7 11 13 19 23\n30 1 3 7 11 19\n390 1 3 7 11 19\n30 1 4 7 11 13 19\n' | ./kstar 2 2>/dev/null