Skip to content

Commit 460619b

Browse files
committed
Document naming scheme used for response validation functions
1 parent 7646cde commit 460619b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/solvers/smt2_incremental/smt_response_validation.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
// Author: Diffblue Ltd.
22

3+
/// \file
4+
///
5+
/// Validation of smt response parse trees to produce either a strongly typed
6+
/// `smt_responset` representation, or a set of error messages.
7+
///
8+
/// \note
9+
///
10+
/// Functions named with the prefix `validate_` require the given parse tree to
11+
/// be a particular kind of sub tree. Functions named with the prefix `valid_`
12+
/// are called in places where the exact kind of sub-tree expected is unknown
13+
/// and so the function must determine if the sub-tree is of that type at all,
14+
/// before performing validation of it. These functions will return a
15+
/// `response_or_errort` in the case where the parse tree is of that type or
16+
/// an empty optional otherwise.
17+
318
#include <solvers/smt2_incremental/smt_response_validation.h>
419

520
template <class smtt>

0 commit comments

Comments
 (0)