Avoid uninterpreted functions in SMT queries