Skip to content

Commit 942e797

Browse files
committed
fix typos in goto-synthesizer
1 parent 019952e commit 942e797

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/goto-synthesizer/dump_loop_contracts.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,16 @@ void dump_loop_contracts(
9191
"loop " + std::to_string(invariant_entry.first.loop_number + 1) +
9292
" assigns ";
9393

94-
bool in_fisrt_iter = true;
94+
bool in_first_iter = true;
9595
for(const auto &a : it_assigns->second)
9696
{
97-
if(!in_fisrt_iter)
97+
if(!in_first_iter)
9898
{
9999
assign_string += ",";
100100
}
101101
else
102102
{
103-
in_fisrt_iter = false;
103+
in_first_iter = false;
104104
}
105105
assign_string += expr2c(
106106
simplify_expr(a, ns), ns, expr2c_configurationt::clean_configuration);

src/goto-synthesizer/enumerative_loop_contracts_synthesizer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class enumerative_loop_contracts_synthesizert
5353
/// to their original variables.
5454
void build_tmp_post_map();
5555

56-
/// Compute the depedent symbols for a loop with invariant-not-preserved
56+
/// Compute the dependent symbols for a loop with invariant-not-preserved
5757
/// violation which happen after `new_clause` was added.
5858
std::set<symbol_exprt> compute_dependent_symbols(
5959
const loop_idt &cause_loop_id,

src/goto-synthesizer/expr_enumerator.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ std::vector<std::size_t> get_ones_pos(std::size_t v)
208208
return result;
209209
}
210210

211-
/// Construct parition of `n` elements from a bit vector `v`.
211+
/// Construct partition of `n` elements from a bit vector `v`.
212212
/// For a bit vector with ones at positions (computed by `get_ones_pos`)
213213
/// (ones[0], ones[1], ..., ones[k-2]),
214214
/// the corresponding partition is
@@ -255,7 +255,7 @@ std::list<partitiont> non_leaf_enumeratort::get_partitions(
255255

256256
// Initial `v` is with ones at positions (n-k+1, n-k+2, ..., n-2, n-1).
257257
std::size_t v = 0;
258-
// Initial `end` (the last bit vectorr we enumerate) is with ones at
258+
// Initial `end` (the last bit vector we enumerate) is with ones at
259259
// positions (1, 2, 3, ..., k-1).
260260
std::size_t end = 0;
261261
for(size_t i = 0; i < k - 1; i++)
@@ -412,5 +412,5 @@ void enumerator_factoryt::attach_productions(
412412
{
413413
const auto &ret = productions_map.insert({id, enumerators});
414414
INVARIANT(
415-
ret.second, "Cannnot attach enumerators to a non-existing nonterminal.");
415+
ret.second, "Cannot attach enumerators to a non-existing nonterminal.");
416416
}

src/goto-synthesizer/expr_enumerator.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class non_leaf_enumeratort : public enumerator_baset
158158
/// enumerated by the enumerator e_i.
159159
/// \param partition_check an optional function checking whether a partition
160160
/// can be safely discarded.
161-
/// \param ns namesapce used by `simplify_expr`.
161+
/// \param ns namespace used by `simplify_expr`.
162162
non_leaf_enumeratort(
163163
const enumeratorst &enumerators,
164164
const std::function<bool(const partitiont &)> partition_check,
@@ -337,7 +337,7 @@ class recursive_enumerator_placeholdert : public enumerator_baset
337337
/// \param factory the enumerator factory---a grammar---this enumerator
338338
/// belongs to.
339339
/// \param id the identifier of this placeholder.
340-
/// \param ns namesapce used for `simplify_expr`.
340+
/// \param ns namespace used for `simplify_expr`.
341341
recursive_enumerator_placeholdert(
342342
enumerator_factoryt &factory,
343343
const std::string &id,

0 commit comments

Comments
 (0)