Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos in identifiers. #7118

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api/z3_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ typedef enum {
- Z3_NO_PARSER: Parser output is not available, that is, user didn't invoke #Z3_parse_smtlib2_string or #Z3_parse_smtlib2_file.
- Z3_INVALID_PATTERN: Invalid pattern was used to build a quantifier.
- Z3_MEMOUT_FAIL: A memory allocation failure was encountered.
- Z3_FILE_ACCESS_ERRROR: A file could not be accessed.
- Z3_FILE_ACCESS_ERROR: A file could not be accessed.
- Z3_INVALID_USAGE: API call is invalid in the current state.
- Z3_INTERNAL_FATAL: An error internal to Z3 occurred.
- 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.
Expand Down
4 changes: 2 additions & 2 deletions src/smt/theory_arith_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace smt {
theory_var result = null_theory_var;
numeral range;
numeral new_range;
numeral small_range_thresold(1024);
numeral small_range_threshold(1024);
unsigned n = 0;
for (row const& row : m_rows) {
theory_var v = row.get_base_var();
Expand All @@ -117,7 +117,7 @@ namespace smt {
numeral const & u = upper_bound(v).get_rational();
new_range = u;
new_range -= l;
if (new_range > small_range_thresold) {
if (new_range > small_range_threshold) {
//
}
else if (result == null_theory_var || new_range < range) {
Expand Down
6 changes: 3 additions & 3 deletions src/util/sexpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Module Name:
#endif

struct sexpr_composite : public sexpr {
unsigned m_num_chilren;
unsigned m_num_children;
sexpr * m_children[0];
sexpr_composite(unsigned num_children, sexpr * const * children, unsigned line, unsigned pos):
sexpr(kind_t::COMPOSITE, line, pos),
m_num_chilren(num_children) {
m_num_children(num_children) {
for (unsigned i = 0; i < num_children; i++) {
m_children[i] = children[i];
children[i]->inc_ref();
Expand Down Expand Up @@ -107,7 +107,7 @@ std::string const & sexpr::get_string() const {

unsigned sexpr::get_num_children() const {
SASSERT(is_composite());
return static_cast<sexpr_composite const *>(this)->m_num_chilren;
return static_cast<sexpr_composite const *>(this)->m_num_children;
}

sexpr * sexpr::get_child(unsigned idx) const {
Expand Down