-
Notifications
You must be signed in to change notification settings - Fork 274
Symex Documentation #4099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symex Documentation #4099
Conversation
src/goto-symex/symex_main.cpp
Outdated
@@ -229,6 +229,12 @@ void goto_symext::symex_threaded_step( | |||
} | |||
} | |||
|
|||
/// Create a default delegate to retrieve function bodies from a | |||
/// goto_functionst | |||
/// \param goto_functions The function map from which to retrieve function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
colon after parameter name
src/goto-symex/goto_symex.h
Outdated
typedef goto_symex_statet statet; | ||
|
||
/// Construct a goto_symext to execute a particular program | ||
/// \param mh The message handler to use for log messages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
colon after parameter (here and everywhere else)
src/goto-symex/goto_symex.h
Outdated
/// \param get_goto_function The delegate to retrieve function bodies (see | ||
/// \ref get_goto_functiont) | ||
/// \param new_symbol_table A symbol table to store the symbols added by | ||
/// SymEx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This camel-casing makes it sound like there were one particular thing of that name. Maybe just say "store the symbols adding during symbolic execution" (applies here and elsewhere)
src/goto-symex/goto_symex.h
Outdated
const symex_configt symex_config; | ||
|
||
/// Initialise the symbolic execution and the given state with <code>pc</code> | ||
/// Initialise the given symbolic execution state with <code>pc</code> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using \p pc
is shorter
src/goto-symex/goto_symex.h
Outdated
/// \ref get_goto_functiont) | ||
/// \param function_identifier: The identifier of the function containing the | ||
/// instructions | ||
/// \param pc: The first instruction to execute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add "(program counter)" as that was a recent source of discussion.
src/goto-symex/goto_symex.h
Outdated
/// \remarks | ||
/// While the name seems to imply that this would be called when SymEx | ||
/// doesn't know what to do, it may actually be derived from a German | ||
/// abbreviation for function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looool. It had never occurred to me that this was not an appropriate English abbreviation at all... (But also I think it's just something in TG blocking us from removing it completely.)
498bdaa
to
77037eb
Compare
The |
77037eb
to
c2f5c9b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Passed Diffblue compatibility checks (cbmc commit: c2f5c9b).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/102907250
More could be done on this but this is an improvement on the current lack of documentation.