res.append('#define SRC_REG %s' % found)
res.append('#define PRED_ARGS %s' % ','.join(predargs))
+ offsargs = []
+ for i in range(4):
+ offsargs.append(predargs[i].replace('pred', 'offs'))
+ res.append('#define OFFS_ARGS %s' % ','.join(offsargs))
return '\n'.join(res)