@@ -49,20 +49,17 @@ class lazy_goto_functions_mapt final
4949 // NOLINTNEXTLINE(readability/identifiers) - name matches those used in STL
5050 typedef std::size_t size_type;
5151
52- typedef
53- std::function<void (
54- const irep_idt &name,
55- goto_functionst::goto_functiont &function,
56- journalling_symbol_tablet &function_symbols)>
52+ typedef std::function<void (
53+ const irep_idt &name,
54+ goto_functionst::goto_functiont &function,
55+ journalling_symbol_tablet &function_symbols)>
5756 post_process_functiont;
58- typedef std::function<bool (const irep_idt &name)>
59- can_generate_function_bodyt;
60- typedef std::function<
61- bool (
62- const irep_idt &function_name,
63- symbol_table_baset &symbol_table,
64- goto_functiont &function,
65- bool body_available)>
57+ typedef std::function<bool (const irep_idt &name)> can_generate_function_bodyt;
58+ typedef std::function<bool (
59+ const irep_idt &function_name,
60+ symbol_table_baset &symbol_table,
61+ goto_functiont &function,
62+ bool body_available)>
6663 generate_function_bodyt;
6764
6865private:
@@ -90,15 +87,15 @@ class lazy_goto_functions_mapt final
9087 can_generate_function_bodyt driver_program_can_generate_function_body,
9188 generate_function_bodyt driver_program_generate_function_body,
9289 message_handlert &message_handler)
93- : goto_functions(goto_functions),
94- language_files (language_files),
95- symbol_table(symbol_table),
96- post_process_function(post_process_function),
97- driver_program_can_generate_function_body(
98- driver_program_can_generate_function_body),
99- driver_program_generate_function_body(
100- driver_program_generate_function_body),
101- message_handler(message_handler)
90+ : goto_functions(goto_functions),
91+ language_files (language_files),
92+ symbol_table(symbol_table),
93+ post_process_function(post_process_function),
94+ driver_program_can_generate_function_body(
95+ driver_program_can_generate_function_body),
96+ driver_program_generate_function_body(
97+ driver_program_generate_function_body),
98+ message_handler(message_handler)
10299 {
103100 }
104101
@@ -125,12 +122,14 @@ class lazy_goto_functions_mapt final
125122 // / it a bodyless stub.
126123 bool can_produce_function (const key_type &name) const
127124 {
128- return
129- language_files.can_convert_lazy_method (name) ||
130- driver_program_can_generate_function_body (name);
125+ return language_files.can_convert_lazy_method (name) ||
126+ driver_program_can_generate_function_body (name);
131127 }
132128
133- void unload (const key_type &name) const { goto_functions.erase (name); }
129+ void unload (const key_type &name) const
130+ {
131+ goto_functions.erase (name);
132+ }
134133
135134 void ensure_function_loaded (const key_type &name) const
136135 {
@@ -148,9 +147,9 @@ class lazy_goto_functions_mapt final
148147
149148 journalling_symbol_tablet journalling_table =
150149 journalling_symbol_tablet::wrap (symbol_table_builder);
151- reference named_function= ensure_entry_converted (name, journalling_table);
152- mapped_type function= named_function.second ;
153- if (processed_functions.count (name)== 0 )
150+ reference named_function = ensure_entry_converted (name, journalling_table);
151+ mapped_type function = named_function.second ;
152+ if (processed_functions.count (name) == 0 )
154153 {
155154 // Run function-pass conversions
156155 post_process_function (name, function, journalling_table);
@@ -176,19 +175,18 @@ class lazy_goto_functions_mapt final
176175 // Fill in symbol table entry body if not already done
177176 language_files.convert_lazy_method (name, function_symbol_table);
178177
179- underlying_mapt::iterator it= goto_functions.find (name);
180- if (it!= goto_functions.end ())
178+ underlying_mapt::iterator it = goto_functions.find (name);
179+ if (it != goto_functions.end ())
181180 return *it;
182181
183182 goto_functiont function;
184183
185184 // First chance: see if the driver program wants to provide a replacement:
186- bool body_provided =
187- driver_program_generate_function_body (
188- name,
189- function_symbol_table,
190- function,
191- language_files.can_convert_lazy_method (name));
185+ bool body_provided = driver_program_generate_function_body (
186+ name,
187+ function_symbol_table,
188+ function,
189+ language_files.can_convert_lazy_method (name));
192190
193191 // Second chance: see if language_filest can provide a body:
194192 if (!body_provided)
@@ -204,4 +202,4 @@ class lazy_goto_functions_mapt final
204202 }
205203};
206204
207- #endif // CPROVER_GOTO_PROGRAMS_LAZY_GOTO_FUNCTIONS_MAP_H
205+ #endif // CPROVER_GOTO_PROGRAMS_LAZY_GOTO_FUNCTIONS_MAP_H
0 commit comments