Skip to content

Commit 8e77809

Browse files
Make pop_frame static
This function is only used within the same cpp file. Making it static simplifies the global interface and is potentially more efficient.
1 parent e3f7deb commit 8e77809

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/goto-symex/goto_symex.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,6 @@ class goto_symext
272272
virtual void loop_bound_exceeded(statet &, const exprt &guard);
273273

274274
// function calls
275-
276-
void pop_frame(statet &);
277275
void return_assignment(statet &);
278276

279277
virtual void no_body(const irep_idt &)

src/goto-symex/symex_function_call.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ void goto_symext::symex_function_call_code(
327327
}
328328

329329
/// pop one call frame
330-
void goto_symext::pop_frame(statet &state)
330+
static void pop_frame(goto_symext::statet &state)
331331
{
332332
PRECONDITION(!state.call_stack().empty());
333333

0 commit comments

Comments
 (0)