stop gcc -std=gnu99 from complaining
generate IC piecewisely.