Skip to content

Commit 5a0343f

Browse files
Doc: Summary for count_type_leaves
1 parent fc363b3 commit 5a0343f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/goto-programs/interpreter_evaluate.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ void interpretert::clear_input_flags()
102102
}
103103
}
104104

105+
/// Count the number of leaf subtypes of `ty`, a leaf type is a type that is
106+
/// not an array or a struct. For instance the count for a type such as
107+
/// `struct { (int[3])[5]; int }` would be 16 = (3 * 5 + 1).
105108
/// \param ty: a type
106109
/// \param [out] result: Number of leaf primitive types in `ty`
107110
/// \return returns true on error

0 commit comments

Comments
 (0)