Reformulation of constraint models into SMT