File tree 3 files changed +7
-2
lines changed
src/solvers/smt2_incremental
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 40
40
struct decision_procedure_objectt
41
41
{
42
42
// / 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.
44
44
exprt base_expression;
45
45
// / Number which uniquely identifies this particular object.
46
46
std::size_t unique_id = 0 ;
@@ -57,7 +57,7 @@ struct decision_procedure_objectt
57
57
// / assigned.
58
58
exprt find_object_base_expression (const address_of_exprt &address_of);
59
59
60
- // / Arbitary expressions passed to the decision procedure may have multiple
60
+ // / Arbitrary expressions passed to the decision procedure may have multiple
61
61
// / address of operations as its sub expressions. This means the overall
62
62
// / expression may contain multiple base objects which need to be assigned
63
63
// / unique identifiers.
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ static smt_responset get_response_to_command(
40
40
return response;
41
41
}
42
42
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.
43
45
static optionalt<std::string>
44
46
get_problem_messages (const smt_responset &response)
45
47
{
Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ class smt2_incremental_decision_proceduret final
94
94
// / \brief Defines any functions which \p expr depends on, which have not yet
95
95
// / been defined, along with their dependencies in turn.
96
96
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.
97
100
void ensure_handle_for_expr_defined (const exprt &expr);
98
101
// / \brief Add objects in \p expr to object_map if needed and convert to smt.
99
102
// / \note This function is non-const because it mutates the object_map.
You can’t perform that action at this time.
0 commit comments