use cog to generate a nodep program