use stringtemplate to generate smt2 formulas