gen.sh: the arguments can specify FP and TP