Skip to content

Commit 53f89a8

Browse files
Fix some typos. (#7115)
1 parent 937d4aa commit 53f89a8

22 files changed

+33
-33
lines changed

examples/SMT-LIB2/bounded model checking/loop_unrolling.smt2

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
)
5151
)
5252

53-
; Transition funcion
53+
; Transition function
5454
(define-fun body ((f_0 Int) (f Int) (i_0 Int) (i_1 Int)(_A (Array Int Int)) (_x Int)) Bool
5555
(and
5656
(= f (ite (= _x (select _A i_0)) 1 f_0))

examples/SMT-LIB2/bounded model checking/loop_unrolling_bitvec.smt2

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
)
5353
)
5454

55-
; Transition funcion
55+
; Transition function
5656
(define-fun body ((f_0 IntValue) (f IntValue) (i_0 IntValue) (i_1 IntValue)(_A (Array IntValue IntValue)) (_x IntValue)) Bool
5757
(and
5858
(= f (ite (= _x (select _A i_0)) #x00000001 f_0))

examples/python/proofreplay.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
# The pair -inst 2 indicates that two quantifier instantiations were not self-validated
8787
# They were instead validated using a call to SMT solving. A log for an smt invocation
8888
# is exemplified in the next line.
89-
# Note that the pair +inst 6 indicates that 6 quantifier instantations were validated
89+
# Note that the pair +inst 6 indicates that 6 quantifier instantiations were validated
9090
# using a syntactic (cheap) check. Some quantifier instantiations based on quantifier elimination
9191
# are not simple substitutions and therefore a simple syntactic check does not suffice.
9292
set_param("solver.proof.check", True)

src/api/python/z3/z3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8984,7 +8984,7 @@ def substitute_funs(t, *m):
89848984
m = m1
89858985
if z3_debug():
89868986
_z3_assert(is_expr(t), "Z3 expression expected")
8987-
_z3_assert(all([isinstance(p, tuple) and is_func_decl(p[0]) and is_expr(p[1]) for p in m]), "Z3 invalid substitution, funcion pairs expected.")
8987+
_z3_assert(all([isinstance(p, tuple) and is_func_decl(p[0]) and is_expr(p[1]) for p in m]), "Z3 invalid substitution, function pairs expected.")
89888988
num = len(m)
89898989
_from = (FuncDecl * num)()
89908990
_to = (Ast * num)()

src/ast/rewriter/seq_rewriter.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -3478,7 +3478,7 @@ expr_ref seq_rewriter::mk_antimirov_deriv_union(expr* d1, expr* d2) {
34783478
//
34793479
// restrict(d, false) = []
34803480
//
3481-
// it is already assumed that the restriction takes place witin a branch
3481+
// it is already assumed that the restriction takes place within a branch
34823482
// so the condition is not added explicitly but propagated down in order to eliminate
34833483
// infeasible cases
34843484
expr_ref seq_rewriter::mk_antimirov_deriv_restrict(expr* e, expr* d, expr* cond) {
@@ -3717,19 +3717,19 @@ expr_ref seq_rewriter::mk_regex_concat(expr* r, expr* s) {
37173717
result = re().mk_plus(re().mk_full_char(ele_sort));
37183718
else if (re().is_concat(r, r1, r2))
37193719
// create the resulting concatenation in right-associative form except for the following case
3720-
// TODO: maintain the followig invariant for A ++ B{m,n} + C
3720+
// TODO: maintain the following invariant for A ++ B{m,n} + C
37213721
// concat(concat(A, B{m,n}), C) (if A != () and C != ())
37223722
// concat(B{m,n}, C) (if A == () and C != ())
37233723
// where A, B, C are regexes
37243724
// Using & below for Intersection and | for Union
37253725
// In other words, do not make A ++ B{m,n} into right-assoc form, but keep B{m,n} at the top
37263726
// This will help to identify this situation in the merge routine:
37273727
// concat(concat(A, B{0,m}), C) | concat(concat(A, B{0,n}), C)
3728-
// simplies to
3728+
// simplifies to
37293729
// concat(concat(A, B{0,max(m,n)}), C)
37303730
// analogously:
37313731
// concat(concat(A, B{0,m}), C) & concat(concat(A, B{0,n}), C)
3732-
// simplies to
3732+
// simplifies to
37333733
// concat(concat(A, B{0,min(m,n)}), C)
37343734
result = mk_regex_concat(r1, mk_regex_concat(r2, s));
37353735
else {
@@ -3850,12 +3850,12 @@ bool seq_rewriter::pred_implies(expr* a, expr* b) {
38503850
Utility function to decide if two BDDs (nested if-then-else terms)
38513851
have exactly the same structure and conditions.
38523852
*/
3853-
bool seq_rewriter::ite_bdds_compatabile(expr* a, expr* b) {
3853+
bool seq_rewriter::ite_bdds_compatible(expr* a, expr* b) {
38543854
expr* ca = nullptr, *a1 = nullptr, *a2 = nullptr;
38553855
expr* cb = nullptr, *b1 = nullptr, *b2 = nullptr;
38563856
if (m().is_ite(a, ca, a1, a2) && m().is_ite(b, cb, b1, b2)) {
3857-
return (ca == cb) && ite_bdds_compatabile(a1, b1)
3858-
&& ite_bdds_compatabile(a2, b2);
3857+
return (ca == cb) && ite_bdds_compatible(a1, b1)
3858+
&& ite_bdds_compatible(a2, b2);
38593859
}
38603860
else if (m().is_ite(a) || m().is_ite(b)) {
38613861
return false;
@@ -3915,7 +3915,7 @@ expr_ref seq_rewriter::mk_der_op_rec(decl_kind k, expr* a, expr* b) {
39153915
// sophisticated: in an antimirov union of n terms, we really
39163916
// want to check if any pair of them is compatible.
39173917
else if (m().is_ite(a) && m().is_ite(b) &&
3918-
!ite_bdds_compatabile(a, b)) {
3918+
!ite_bdds_compatible(a, b)) {
39193919
k = _OP_RE_ANTIMIROV_UNION;
39203920
}
39213921
#endif
@@ -4269,7 +4269,7 @@ expr_ref seq_rewriter::mk_derivative_rec(expr* ele, expr* r) {
42694269
}
42704270
else if (re().is_reverse(r, r1)) {
42714271
if (re().is_to_re(r1, r2)) {
4272-
// First try to exctract hd and tl such that r = hd ++ tl and |tl|=1
4272+
// First try to extract hd and tl such that r = hd ++ tl and |tl|=1
42734273
expr_ref hd(m()), tl(m());
42744274
if (get_head_tail_reversed(r2, hd, tl)) {
42754275
// Use mk_der_cond to normalize

src/ast/rewriter/seq_rewriter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class seq_rewriter {
201201
expr_ref mk_der_compl(expr* a);
202202
expr_ref mk_der_cond(expr* cond, expr* ele, sort* seq_sort);
203203
expr_ref mk_der_antimirov_union(expr* r1, expr* r2);
204-
bool ite_bdds_compatabile(expr* a, expr* b);
204+
bool ite_bdds_compatible(expr* a, expr* b);
205205
/* if r has the form deriv(en..deriv(e1,to_re(s))..) returns 's = [e1..en]' else returns '() in r'*/
206206
expr_ref is_nullable_symbolic_regex(expr* r, sort* seq_sort);
207207
#ifdef Z3DEBUG

src/ast/rewriter/seq_skolem.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Module Name:
88
Abstract:
99
1010
Skolem function support for sequences.
11-
Skolem functions are auxiliary funcions useful for axiomatizing sequence
11+
Skolem functions are auxiliary functions useful for axiomatizing sequence
1212
operations.
1313
1414
Author:

src/opt/opt_lns.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ namespace opt {
196196
}
197197

198198
unsigned lns::improve_linear(model_ref& mdl) {
199-
scoped_bounding _scoped_bouding(*this);
199+
scoped_bounding _scoped_bounding(*this);
200200
unsigned num_improved = 0;
201201
unsigned max_conflicts = m_max_conflicts;
202202
while (m.inc()) {

src/qe/mbp/mbp_arith.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ namespace mbp {
674674
id = mbo.add_var(r, a.is_int(v));
675675
tids.insert(v, id);
676676
}
677-
CTRACE("qe", kv.m_value.is_zero(), tout << mk_pp(v, m) << " has coefficeint 0\n";);
677+
CTRACE("qe", kv.m_value.is_zero(), tout << mk_pp(v, m) << " has coefficient 0\n";);
678678
if (!kv.m_value.is_zero()) {
679679
coeffs.push_back(var(id, kv.m_value));
680680
}

src/qe/mbp/mbp_solve_plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ namespace mbp {
248248
return false;
249249
}
250250

251-
// returns `true` if a rewritting happened
251+
// returns `true` if a rewriting happened
252252
bool try_int_mul_solve(expr *atom, bool is_pos, expr_ref &res) {
253253

254254
if (!is_pos)

src/qe/qe.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ namespace qe {
157157

158158
//
159159
// Partition variables into buckets.
160-
// The var_paritions buckets covering disjoint subsets of
161-
// the conjuncts. The remaining variables in vars are non-partioned.
160+
// The var_partitions buckets covering disjoint subsets of
161+
// the conjuncts. The remaining variables in vars are non-partitioned.
162162
//
163163
bool partition_vars(
164164
unsigned num_vars,

src/qe/qe_mbp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ class mbproj::impl {
416416
//don't use mbp_qel on some theories where model evaluation is
417417
//incomplete This is not a limitation of qel. Fix this either by
418418
//making mbp choices less dependent on the model evaluation methods
419-
//or fix theory rewriters to make terms evalution complete
419+
//or fix theory rewriters to make terms evaluation complete
420420
if (m_use_qel && !has_unsupported_th(fmls)) {
421421
bool dsub = m_dont_sub;
422422
m_dont_sub = !force_elim;

src/smt/smt_internalizer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1830,7 +1830,7 @@ namespace smt {
18301830
// Case) there is a variable old_v in the var-list of n.
18311831
//
18321832
// Remark: This variable was moved to the var-list of n due to a add_eq.
1833-
SASSERT(th->get_enode(old_v) != n); // this varialbe is not owned by n
1833+
SASSERT(th->get_enode(old_v) != n); // this variable is not owned by n
18341834
SASSERT(n->get_root()->get_th_var(th_id) != null_theory_var); // the root has also a variable in its var-list.
18351835
n->replace_th_var(v, th_id);
18361836
push_trail(replace_th_var_trail( n, th_id, old_v));

src/smt/theory_arith_int.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ namespace smt {
503503
theory_var x_i = r.get_base_var();
504504

505505
SASSERT(is_int(x_i));
506-
// The following assertion is wrong. It may be violated in mixed-real-interger problems.
506+
// The following assertion is wrong. It may be violated in mixed-real-integer problems.
507507
// The check is_gomory_cut_target will discard rows where any variable contains infinitesimals.
508508
// SASSERT(m_value[x_i].is_rational()); // infinitesimals are not used for integer variables
509509
SASSERT(!m_value[x_i].is_int()); // the base variable is not assigned to an integer value.

src/smt/theory_utvpi.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Module Name:
1111
1212
Revision History:
1313
14-
The implementaton is derived from theory_diff_logic.
14+
The implementation is derived from theory_diff_logic.
1515
1616
--*/
1717
#include "smt/theory_utvpi.h"

src/tactic/core/tseitin_cnf_tactic.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -905,10 +905,10 @@ class tseitin_cnf_tactic : public tactic {
905905

906906
void collect_param_descrs(param_descrs & r) override {
907907
insert_max_memory(r);
908-
r.insert("common_patterns", CPK_BOOL, "minimize the number of auxiliary variables during CNF encoding by identifing commonly used patterns", "true");
908+
r.insert("common_patterns", CPK_BOOL, "minimize the number of auxiliary variables during CNF encoding by identifying commonly used patterns", "true");
909909
r.insert("distributivity", CPK_BOOL, "minimize the number of auxiliary variables during CNF encoding by applying distributivity over unshared subformulas", "true");
910910
r.insert("distributivity_blowup", CPK_UINT, "maximum overhead for applying distributivity during CNF encoding", "32");
911-
r.insert("ite_chaing", CPK_BOOL, "minimize the number of auxiliary variables during CNF encoding by identifing if-then-else chains", "true");
911+
r.insert("ite_chaing", CPK_BOOL, "minimize the number of auxiliary variables during CNF encoding by identifying if-then-else chains", "true");
912912
r.insert("ite_extra", CPK_BOOL, "add redundant clauses (that improve unit propagation) when encoding if-then-else formulas", "true");
913913
}
914914

src/tactic/dependent_expr_state_tactic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class dependent_expr_state_tactic : public tactic, public dependent_expr_state {
6464
}
6565

6666
/**
67-
* size(), [](), update() and inconsisent() implement the abstract interface of dependent_expr_state
67+
* size(), [](), update() and inconsistent() implement the abstract interface of dependent_expr_state
6868
*/
6969
unsigned qtail() const override { return m_goal->size(); }
7070

src/tactic/fd_solver/smtfd_solver.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ namespace smtfd {
433433
void populate_model(model_ref& mdl, expr_ref_vector const& terms);
434434

435435
/**
436-
* \brief check consistency properties that can only be achived using a global analysis of terms
436+
* \brief check consistency properties that can only be achieved using a global analysis of terms
437437
*/
438438
void global_check(expr_ref_vector const& core);
439439

src/tactic/goal_proof_converter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class subgoal_proof_converter : public proof_converter {
3737
}
3838

3939
proof_ref operator()(ast_manager & m, unsigned num_source, proof * const * source) override {
40-
// ignore the proofs from the arguments, instead obtain the proofs fromt he subgoals.
40+
// ignore the proofs from the arguments, instead obtain the proofs from the subgoals.
4141
SASSERT(num_source == 0);
4242
proof_converter_ref_buffer pc_buffer;
4343
for (goal_ref g : m_goals) {

src/tactic/ufbv/quasi_macros_tactic.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Tactic Documentation
1818
## Tactic quasi-macro-finder
1919
2020
### Short Description
21-
dentifies and applies quasi-macros.
21+
Identifies and applies quasi-macros.
2222
2323
### Long Description
2424

src/test/lp/smt_reader.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ namespace lp {
343343
solver->add_constraint(&c);
344344
}
345345
346-
void create_equality_contraint_for_var(column* col, bound * b, lar_solver *solver) {
346+
void create_equality_constraint_for_var(column* col, bound * b, lar_solver *solver) {
347347
lar_constraint c(EQ, b->m_fixed_value);
348348
var_index i = solver->add_var(col->m_name);
349349
c.add_variable_to_constraint(i, numeric_traits<T>::one());
@@ -366,7 +366,7 @@ namespace lp {
366366
create_upper_constraint_for_var(col, b, solver);
367367
}
368368
if (b->m_value_is_fixed) {
369-
create_equality_contraint_for_var(col, b, solver);
369+
create_equality_constraint_for_var(col, b, solver);
370370
}
371371
}
372372
}

src/test/mpz.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ void tst_scoped() {
322322
#define NUM_PRIMES 168
323323
unsigned g_primes[NUM_PRIMES] = { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997 };
324324

325-
// Return a big number by multipling powers of the first NUM_PRIMES.
325+
// Return a big number by multiplying powers of the first NUM_PRIMES.
326326
// - ratio: rand() % ratio == 0 is used to decide whether a specific prime will be included or not.
327327
// - max_pw: if condition above is satisfied, then we use (rand() % max_pw) + 1 as the power.
328328
void mk_big_num(unsynch_mpz_manager & m, unsigned ratio, unsigned max_pw, mpz & r) {

0 commit comments

Comments
 (0)