Skip to content

Commit 465e5dc

Browse files
Style: improve documentation in interpreter evaluate
1 parent fe2efa7 commit 465e5dc

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/goto-programs/interpreter_evaluate.cpp

+8-3
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Author: Daniel Kroening, [email protected]
2121
#include <util/pointer_offset_size.h>
2222
#include <string.h>
2323

24-
/// reads a memory address and loads it into the dest variable marks cell as
25-
/// read before written if cell has never been written
24+
/// Reads a memory address and loads it into the `dest` variable.
25+
/// Marks cell as `READ_BEFORE_WRITTEN` if cell has never been written.
2626
void interpretert::read(
2727
const mp_integer &address,
2828
mp_vectort &dest) const
@@ -102,7 +102,9 @@ void interpretert::clear_input_flags()
102102
}
103103
}
104104

105-
/// \return Number of leaf primitive types; returns true on error
105+
/// \param ty: a type
106+
/// \param [out] result: Number of leaf primitive types in `ty`
107+
/// \return returns true on error
106108
bool interpretert::count_type_leaves(const typet &ty, mp_integer &result)
107109
{
108110
if(ty.id()==ID_struct)
@@ -299,6 +301,9 @@ bool interpretert::memory_offset_to_byte_offset(
299301
}
300302
}
301303

304+
/// Evaluate an expression
305+
/// \param expr: expression to evaluate
306+
/// \param [out] dest: vector in which the result of the evaluation is stored
302307
void interpretert::evaluate(
303308
const exprt &expr,
304309
mp_vectort &dest)

0 commit comments

Comments
 (0)