Bitblasting functions into boolean formulas