Skip to content

Commit f70bc55

Browse files
tautschnigDaniel Kroening
authored and
Daniel Kroening
committed
Document to_integer
It is widely used, but only had very minimal documentation.
1 parent 54c5ff2 commit f70bc55

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/util/arith_tools.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ Author: Daniel Kroening, [email protected]
2020

2121
class typet;
2222

23-
// returns 'true' on error
23+
/// Convert a constant expression \p expr to an arbitrary-precision integer.
24+
/// \param expr: Source expression
25+
/// \param [out] int_value: Integer value (only modified if conversion succeeds)
26+
/// \return False if, and only if, the conversion was successful.
2427
bool to_integer(const constant_exprt &expr, mp_integer &int_value);
2528

2629
// returns 'true' on error

0 commit comments

Comments
 (0)