add print before push_var, and deduplicate some code.
Merge branch 'master' of https://github.com/chenkexin/cil-snippet