Skip to content

Commit 6a7e03a

Browse files
Merge pull request #7890 from thomasspriggs/tas/more_smt_docs2
Minor documentation improvements for incremental SMT2
2 parents 4b31aee + d93d3a1 commit 6a7e03a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/solvers/smt2_incremental/object_tracking.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
struct decision_procedure_objectt
4141
{
4242
/// The expression for the root of the object. This is expression equivalent
43-
/// to deferencing a pointer to this object with a zero offset.
43+
/// to dereferencing a pointer to this object with a zero offset.
4444
exprt base_expression;
4545
/// Number which uniquely identifies this particular object.
4646
std::size_t unique_id = 0;
@@ -57,7 +57,7 @@ struct decision_procedure_objectt
5757
/// assigned.
5858
exprt find_object_base_expression(const address_of_exprt &address_of);
5959

60-
/// Arbitary expressions passed to the decision procedure may have multiple
60+
/// Arbitrary expressions passed to the decision procedure may have multiple
6161
/// address of operations as its sub expressions. This means the overall
6262
/// expression may contain multiple base objects which need to be assigned
6363
/// unique identifiers.

src/solvers/smt2_incremental/smt2_incremental_decision_procedure.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ static smt_responset get_response_to_command(
4040
return response;
4141
}
4242

43+
/// Returns a message string describing the problem in the case where the
44+
/// response from the solver is an error status. Returns empty otherwise.
4345
static optionalt<std::string>
4446
get_problem_messages(const smt_responset &response)
4547
{

src/solvers/smt2_incremental/smt2_incremental_decision_procedure.h

+3
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ class smt2_incremental_decision_proceduret final
9494
/// \brief Defines any functions which \p expr depends on, which have not yet
9595
/// been defined, along with their dependencies in turn.
9696
void define_dependent_functions(const exprt &expr);
97+
/// If a function has not been defined for handling \p expr, then a new
98+
/// function is defined. If the corresponding function exists already, then
99+
/// no action is taken.
97100
void ensure_handle_for_expr_defined(const exprt &expr);
98101
/// \brief Add objects in \p expr to object_map if needed and convert to smt.
99102
/// \note This function is non-const because it mutates the object_map.

0 commit comments

Comments
 (0)