mirror of
https://github.com/Z3Prover/z3
synced 2025-11-28 08:19:50 +00:00
Fix some spelling errors (mostly in comments).
This commit is contained in:
parent
880ce12e2d
commit
326bf401b9
121 changed files with 205 additions and 205 deletions
|
|
@ -186,7 +186,7 @@ void lemma_quantifier_generalizer::find_candidates(expr *e,
|
|||
|
||||
std::sort(candidates.c_ptr(), candidates.c_ptr() + candidates.size(),
|
||||
index_lt_proc(m));
|
||||
// keep actual select indecies in the order found at the back of
|
||||
// keep actual select indices in the order found at the back of
|
||||
// candidate list. There is no particular reason for this order
|
||||
candidates.append(extra);
|
||||
}
|
||||
|
|
@ -199,24 +199,24 @@ bool lemma_quantifier_generalizer::match_sk_idx(expr *e, app_ref_vector const &z
|
|||
contains_app has_zk(m, zks.get(0));
|
||||
|
||||
if (!contains_selects(e, m)) return false;
|
||||
app_ref_vector indicies(m);
|
||||
get_select_indices(e, indicies);
|
||||
if (indicies.size() > 2) return false;
|
||||
app_ref_vector indices(m);
|
||||
get_select_indices(e, indices);
|
||||
if (indices.size() > 2) return false;
|
||||
|
||||
unsigned i=0;
|
||||
if (indicies.size() == 1) {
|
||||
if (!has_zk(indicies.get(0))) return false;
|
||||
if (indices.size() == 1) {
|
||||
if (!has_zk(indices.get(0))) return false;
|
||||
}
|
||||
else {
|
||||
if (has_zk(indicies.get(0)) && !has_zk(indicies.get(1)))
|
||||
if (has_zk(indices.get(0)) && !has_zk(indices.get(1)))
|
||||
i = 0;
|
||||
else if (!has_zk(indicies.get(0)) && has_zk(indicies.get(1)))
|
||||
else if (!has_zk(indices.get(0)) && has_zk(indices.get(1)))
|
||||
i = 1;
|
||||
else if (!has_zk(indicies.get(0)) && !has_zk(indicies.get(1)))
|
||||
else if (!has_zk(indices.get(0)) && !has_zk(indices.get(1)))
|
||||
return false;
|
||||
}
|
||||
|
||||
idx = indicies.get(i);
|
||||
idx = indices.get(i);
|
||||
sk = zks.get(0);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue