fixed issue with generating LPs for C code