while true
do
    touch out
    ./byscalar 12345.67890 doubles out 131072 131072 &
    ./byscalar 12345.67890 doubles out 393216 131072 &
    wait
    split -b 128k out
    if diff good-ab xab
    then
        echo -n
    else
        echo Difference 1
        break
    fi

    if diff good-ad xad
    then
        echo -n
    else
        echo Difference 2
        break
    fi
    rm -f out
done
