eval_Q in Ccoder, and Q_template.c
sync