Skip to content

Commit ef87ddd

Browse files
author
Daniel Kroening
committed
remove_function_pointers: more documentation
1 parent 34891a2 commit ef87ddd

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/goto-programs/remove_function_pointers.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,12 @@ class remove_function_pointerst:public messaget
4747
// a set of function symbols
4848
using functionst = remove_const_function_pointerst::functionst;
4949

50-
// replace a call to a dynamic function at location
51-
// target in the given goto-program by a case-split
52-
// over a given set of functions
50+
/// Replace a call to a dynamic function at location
51+
/// target in the given goto-program by a case-split
52+
/// over a given set of functions
53+
/// \param goto_program The goto program that contains target
54+
/// \param target location with function call with function pointer
55+
/// \param functions The set of functions to consider
5356
void remove_function_pointer(
5457
goto_programt &goto_program,
5558
goto_programt::targett target,
@@ -68,6 +71,11 @@ class remove_function_pointerst:public messaget
6871
// --remove-const-function-pointers instead of --remove-function-pointers
6972
bool only_resolve_const_fps;
7073

74+
/// Replace a call to a dynamic function at location
75+
/// target in the given goto-program by determining
76+
/// functions that have a compatible signature
77+
/// \param goto_program The goto program that contains target
78+
/// \param target location with function call with function pointer
7179
void remove_function_pointer(
7280
goto_programt &goto_program,
7381
goto_programt::targett target);

0 commit comments

Comments
 (0)