#!/bin/sh

doit()
{
    make finddm OPTS="$*" && ./finddm || exit
}


echo "===== Any change, avoiding opposing extremal polarity =================="
doit -DFILTER=FILTER_ANY -DCOND=nonextremal

echo "===== DR=0, monotonous change =========================================="
doit -DFILTER=FILTER_DR0 -DCOND=monotonous

echo "===== DR=1, monotonous change =========================================="
doit -DFILTER=FILTER_DR1 -DCOND=monotonous

echo "===== DR changes, monotonous change ===================================="
doit -DFILTER=FILTER_DRx -DCOND=monotonous

#
# Even if we restrict the direction of the DR change, we don't get a better
# algorithm than with FILTER_DRx, so we skip the two runs below.
#

#echo "===== DR changes from 0 to 1, monotonous change ========================"
#doit -DFILTER=FILTER_DR0_1 -DCOND=monotonous

#echo "===== DR changes from 1 to 0, monotonous change ========================"
#doit -DFILTER=FILTER_DR1_0 -DCOND=monotonous
