Skip to content

Commit 9755ef2

Browse files
waywardmonkeysNikolajBjorner
authored andcommitted
Fix some typos in identifiers. (#7118)
1 parent 88fb1fc commit 9755ef2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/api/z3_api.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ typedef enum {
13631363
- Z3_NO_PARSER: Parser output is not available, that is, user didn't invoke #Z3_parse_smtlib2_string or #Z3_parse_smtlib2_file.
13641364
- Z3_INVALID_PATTERN: Invalid pattern was used to build a quantifier.
13651365
- Z3_MEMOUT_FAIL: A memory allocation failure was encountered.
1366-
- Z3_FILE_ACCESS_ERRROR: A file could not be accessed.
1366+
- Z3_FILE_ACCESS_ERROR: A file could not be accessed.
13671367
- Z3_INVALID_USAGE: API call is invalid in the current state.
13681368
- Z3_INTERNAL_FATAL: An error internal to Z3 occurred.
13691369
- Z3_DEC_REF_ERROR: Trying to decrement the reference counter of an AST that was deleted or the reference counter was not initialized with #Z3_inc_ref.

src/smt/theory_arith_int.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ namespace smt {
9999
theory_var result = null_theory_var;
100100
numeral range;
101101
numeral new_range;
102-
numeral small_range_thresold(1024);
102+
numeral small_range_threshold(1024);
103103
unsigned n = 0;
104104
for (row const& row : m_rows) {
105105
theory_var v = row.get_base_var();
@@ -117,7 +117,7 @@ namespace smt {
117117
numeral const & u = upper_bound(v).get_rational();
118118
new_range = u;
119119
new_range -= l;
120-
if (new_range > small_range_thresold) {
120+
if (new_range > small_range_threshold) {
121121
//
122122
}
123123
else if (result == null_theory_var || new_range < range) {

src/util/sexpr.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ Module Name:
2626
#endif
2727

2828
struct sexpr_composite : public sexpr {
29-
unsigned m_num_chilren;
29+
unsigned m_num_children;
3030
sexpr * m_children[0];
3131
sexpr_composite(unsigned num_children, sexpr * const * children, unsigned line, unsigned pos):
3232
sexpr(kind_t::COMPOSITE, line, pos),
33-
m_num_chilren(num_children) {
33+
m_num_children(num_children) {
3434
for (unsigned i = 0; i < num_children; i++) {
3535
m_children[i] = children[i];
3636
children[i]->inc_ref();
@@ -107,7 +107,7 @@ std::string const & sexpr::get_string() const {
107107

108108
unsigned sexpr::get_num_children() const {
109109
SASSERT(is_composite());
110-
return static_cast<sexpr_composite const *>(this)->m_num_chilren;
110+
return static_cast<sexpr_composite const *>(this)->m_num_children;
111111
}
112112

113113
sexpr * sexpr::get_child(unsigned idx) const {

0 commit comments

Comments
 (0)