Finished simple Spark C code generation