@@ -162,7 +162,7 @@ void string_refinementt::add_symbol_to_symbol_map(
162
162
rhs.id ()==ID_array_of ||
163
163
rhs.id ()==ID_if ||
164
164
(rhs.id ()==ID_struct &&
165
- refined_string_typet:: is_refined_string_type (rhs.type ())));
165
+ is_refined_string_type (rhs.type ())));
166
166
167
167
// We insert the mapped value of the rhs, if it exists.
168
168
auto it=symbol_resolve.find (rhs);
@@ -279,7 +279,7 @@ bool string_refinementt::add_axioms_for_string_assigns(
279
279
return true ;
280
280
}
281
281
}
282
- if (refined_string_typet:: is_refined_string_type (rhs.type ()))
282
+ if (is_refined_string_type (rhs.type ()))
283
283
{
284
284
exprt refined_rhs=generator.add_axioms_for_refined_string (rhs);
285
285
add_symbol_to_symbol_map (lhs, refined_rhs);
@@ -302,7 +302,7 @@ bool string_refinementt::add_axioms_for_string_assigns(
302
302
// / last value that has been initialized.
303
303
void string_refinementt::concretize_string (const exprt &expr)
304
304
{
305
- if (refined_string_typet:: is_refined_string_type (expr.type ()))
305
+ if (is_refined_string_type (expr.type ()))
306
306
{
307
307
string_exprt str=to_string_expr (expr);
308
308
exprt length=get (str.length ());
@@ -392,7 +392,7 @@ void string_refinementt::concretize_lengths()
392
392
{
393
393
for (const auto &it : symbol_resolve)
394
394
{
395
- if (refined_string_typet:: is_refined_string_type (it.second .type ()))
395
+ if (is_refined_string_type (it.second .type ()))
396
396
{
397
397
string_exprt str=to_string_expr (it.second );
398
398
exprt length=get (str.length ());
@@ -403,7 +403,7 @@ void string_refinementt::concretize_lengths()
403
403
}
404
404
for (const auto &it : generator.created_strings )
405
405
{
406
- if (refined_string_typet:: is_refined_string_type (it.type ()))
406
+ if (is_refined_string_type (it.type ()))
407
407
{
408
408
string_exprt str=to_string_expr (it);
409
409
exprt length=get (str.length ());
@@ -429,12 +429,10 @@ void string_refinementt::set_to(const exprt &expr, bool value)
429
429
430
430
// The assignment of a string equality to false is not supported.
431
431
PRECONDITION (value || !is_char_array (rhs.type ()));
432
- PRECONDITION (value ||
433
- !refined_string_typet::is_refined_string_type (rhs.type ()));
432
+ PRECONDITION (value || !is_refined_string_type (rhs.type ()));
434
433
435
434
PRECONDITION (lhs.id ()==ID_symbol || !is_char_array (rhs.type ()));
436
- PRECONDITION (lhs.id ()==ID_symbol ||
437
- !refined_string_typet::is_refined_string_type (rhs.type ()));
435
+ PRECONDITION (lhs.id ()==ID_symbol || !is_refined_string_type (rhs.type ()));
438
436
439
437
// If lhs is not a symbol, let supert::set_to() handle it.
440
438
if (lhs.id ()!=ID_symbol)
@@ -811,7 +809,7 @@ void string_refinementt::debug_model()
811
809
const std::string indent (" " );
812
810
for (auto it : symbol_resolve)
813
811
{
814
- if (refined_string_typet:: is_refined_string_type (it.second .type ()))
812
+ if (is_refined_string_type (it.second .type ()))
815
813
{
816
814
debug () << " - " << from_expr (ns, " " , to_symbol_expr (it.first )) << " :\n " ;
817
815
string_exprt refined=to_string_expr (it.second );
@@ -1684,8 +1682,7 @@ exprt string_refinementt::get(const exprt &expr) const
1684
1682
if (it!=found_length.end ())
1685
1683
return get_array (ecopy, it->second );
1686
1684
}
1687
- else if (refined_string_typet::is_refined_string_type (ecopy.type ()) &&
1688
- ecopy.id ()==ID_struct)
1685
+ else if (is_refined_string_type (ecopy.type ()) && ecopy.id ()==ID_struct)
1689
1686
{
1690
1687
const string_exprt &string=to_string_expr (ecopy);
1691
1688
const exprt &content=string.content ();
0 commit comments