diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-06-28 13:53:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 13:53:36 -0500 |
commit | e799ab0164722e8a4f192ee13223d0eeec6ec004 (patch) | |
tree | 5ff7c46d2f0f6ff2a2a4f3655425b49e86bd18a5 /src/expr/uninterpreted_constant.cpp | |
parent | d83f8bebccffdb677652706f4eb3a2fff056587c (diff) |
Do not rename uninterpreted constants (#2098)
Diffstat (limited to 'src/expr/uninterpreted_constant.cpp')
-rw-r--r-- | src/expr/uninterpreted_constant.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/expr/uninterpreted_constant.cpp b/src/expr/uninterpreted_constant.cpp index 2187d9cdf..9898bcb3f 100644 --- a/src/expr/uninterpreted_constant.cpp +++ b/src/expr/uninterpreted_constant.cpp @@ -34,15 +34,7 @@ UninterpretedConstant::UninterpretedConstant(Type type, Integer index) } std::ostream& operator<<(std::ostream& out, const UninterpretedConstant& uc) { - stringstream ss; - ss << uc.getType(); - string t = ss.str(); - size_t i = 0; - // replace everything that isn't in [a-zA-Z0-9_] with an _ - while((i = t.find_first_not_of("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_", i)) != string::npos) { - t.replace(i, 1, 1, '_'); - } - return out << "uc_" << t << '_' << uc.getIndex(); + return out << "uc_" << uc.getType() << '_' << uc.getIndex(); } }/* CVC4 namespace */ |