#!/bin/bash
cat ldpc_errors | while read line; do
    p=`echo $line | cut -d" " -f1`
    i=`echo $line | cut -d" " -f2`
    echo $p $i
    ../../utils/createfg --type ldpc --subtype group --seed "$i"00 --prime 31 --j 3 --k 5 --noise 0.0$p > /tmp/test2.fg
    ../test --filename /tmp/test2.fg --aliases ldpc.aliases --methods LDPC[] BP_SEQMAX HAK_MIN
done
