@@ -11,15 +11,16 @@ Author: Diffblue Ltd.
11
11
#include < testing-utils/catch.hpp>
12
12
13
13
#include < algorithm>
14
- #include < util/expr_iterator.h>
15
14
#include < goto-programs/goto_functions.h>
15
+ #include < goto-programs/show_goto_functions.h>
16
+ #include < iostream>
16
17
#include < java_bytecode/java_types.h>
17
- #include < util/suffix .h>
18
+ #include < util/expr_iterator .h>
18
19
#include < util/expr_util.h>
19
- #include < iostream>
20
- #include < goto-programs/show_goto_functions.h>
20
+ #include < util/suffix.h>
21
21
22
- optionalt<symbol_exprt> root_object (exprt lhs_expr, const symbol_tablet &symbol_table)
22
+ optionalt<symbol_exprt>
23
+ root_object (exprt lhs_expr, const symbol_tablet &symbol_table)
23
24
{
24
25
auto expr = skip_typecast (lhs_expr);
25
26
int dereference_balance = 0 ;
@@ -139,7 +140,7 @@ require_goto_statements::find_struct_component_assignments(
139
140
if (
140
141
superclass_expr.get_component_name () == supercomponent_name &&
141
142
root_object (ode.root_object (), symbol_table)->get_identifier () ==
142
- structure_name)
143
+ structure_name)
143
144
{
144
145
if (
145
146
code_assign.rhs () ==
@@ -161,7 +162,8 @@ require_goto_statements::find_struct_component_assignments(
161
162
// - component name: \p component_name
162
163
// - operand (component of): symbol for \p structure_name
163
164
164
- const auto &root_object = ::root_object (member_expr.struct_op (), symbol_table);
165
+ const auto &root_object =
166
+ ::root_object (member_expr.struct_op(), symbol_table);
165
167
if (
166
168
root_object && root_object->get_identifier () == structure_name &&
167
169
member_expr.get_component_name () == component_name)
@@ -352,7 +354,9 @@ const irep_idt &require_goto_statements::require_struct_component_assignment(
352
354
superclass_name,
353
355
component_name,
354
356
symbol_table);
355
- INFO (" looking for " << component_name << " in " << (superclass_name ? *superclass_name : structure_name));
357
+ INFO (
358
+ " looking for " << component_name << " in "
359
+ << (superclass_name ? *superclass_name : structure_name));
356
360
REQUIRE (component_assignments.non_null_assignments .size () == 1 );
357
361
358
362
// We are expecting that the resulting statement can be of two forms:
0 commit comments