We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d04804 commit 7b7d526Copy full SHA for 7b7d526
src/util/string_expr.h
@@ -173,7 +173,8 @@ inline const refined_string_exprt &to_string_expr(const exprt &expr)
173
template <>
174
inline bool can_cast_expr<refined_string_exprt>(const exprt &base)
175
{
176
- return base.id() == ID_struct && base.operands().size() == 2;
+ return base.id() == ID_struct && base.operands().size() == 2 &&
177
+ is_refined_string_type(base.type());
178
}
179
180
inline void validate_expr(const refined_string_exprt &x)
0 commit comments