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 445d236 commit 723eba1Copy full SHA for 723eba1
src/solvers/refinement/string_constraint_generator.cpp
@@ -108,6 +108,15 @@ string_exprt string_constraint_generatort::add_axioms_for_string_expr(
108
{
109
// We ignore non deterministic symbols and struct
110
}
111
+ else if(unrefined_string.id()==ID_typecast)
112
+ {
113
+ exprt arg=to_typecast_expr(unrefined_string).op();
114
+ assert(refined_string_typet::is_unrefined_string_type(
115
+ unrefined_string.type()));
116
+ exprt res=add_axioms_for_string_expr(arg);
117
+ assert(res.type()==refined_string_typet(get_char_type()));
118
+ s=to_string_expr(res);
119
+ }
120
else
121
122
throw "add_axioms_for_string_expr:\n"+unrefined_string.pretty()+
0 commit comments