Skip to content

Commit 5ff4932

Browse files
committed
CONTRACTS: fix typo in member name
It's "address," not "adress."
1 parent 08d5056 commit 5ff4932

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/goto-instrument/contracts/assigns.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,12 @@ assigns_clauset::conditional_address_ranget::conditional_address_ranget(
115115
generate_new_symbol("__car_valid", bool_typet(), location).symbol_expr()),
116116
lower_bound_address_var(generate_new_symbol(
117117
"__car_lb",
118-
guarded_slice.start_adress.type(),
118+
guarded_slice.start_address.type(),
119119
location)
120120
.symbol_expr()),
121121
upper_bound_address_var(generate_new_symbol(
122122
"__car_ub",
123-
guarded_slice.start_adress.type(),
123+
guarded_slice.start_address.type(),
124124
location)
125125
.symbol_expr())
126126
{
@@ -158,10 +158,10 @@ assigns_clauset::conditional_address_ranget::generate_snapshot_instructions(
158158
auto validity_check_expr =
159159
check_target_validity == check_target_validityt::YES_ALLOW_NULL
160160
? or_exprt{not_exprt{clean_guard},
161-
null_pointer(guarded_slice.start_adress),
162-
w_ok_exprt{guarded_slice.start_adress, guarded_slice.size}}
161+
null_pointer(guarded_slice.start_address),
162+
w_ok_exprt{guarded_slice.start_address, guarded_slice.size}}
163163
: or_exprt{not_exprt{clean_guard},
164-
w_ok_exprt{guarded_slice.start_adress, guarded_slice.size}};
164+
w_ok_exprt{guarded_slice.start_address, guarded_slice.size}};
165165

166166
if(check_target_validity != check_target_validityt::NO)
167167
{
@@ -185,23 +185,23 @@ assigns_clauset::conditional_address_ranget::generate_snapshot_instructions(
185185
validity_condition_var,
186186
simplify_expr(
187187
and_exprt{clean_guard,
188-
not_exprt{null_pointer(guarded_slice.start_adress)}},
188+
not_exprt{null_pointer(guarded_slice.start_address)}},
189189
parent.ns),
190190
location_no_checks));
191191

192192
instructions.add(
193193
goto_programt::make_decl(lower_bound_address_var, location_no_checks));
194194

195195
instructions.add(goto_programt::make_assignment(
196-
lower_bound_address_var, guarded_slice.start_adress, location_no_checks));
196+
lower_bound_address_var, guarded_slice.start_address, location_no_checks));
197197

198198
instructions.add(
199199
goto_programt::make_decl(upper_bound_address_var, location_no_checks));
200200

201201
instructions.add(goto_programt::make_assignment(
202202
upper_bound_address_var,
203203
simplify_expr(
204-
plus_exprt{guarded_slice.start_adress, guarded_slice.size}, parent.ns),
204+
plus_exprt{guarded_slice.start_address, guarded_slice.size}, parent.ns),
205205
location_no_checks));
206206

207207
// The snapshot assignments involve only instrumentation variables
@@ -277,7 +277,7 @@ exprt assigns_clauset::generate_inclusion_check(
277277
if(allow_null_target == check_target_validityt::YES_ALLOW_NULL)
278278
return false_exprt{};
279279
else
280-
return null_pointer(lhs.guarded_slice.start_adress);
280+
return null_pointer(lhs.guarded_slice.start_address);
281281
}
282282

283283
exprt::operandst conditions;
@@ -297,7 +297,7 @@ exprt assigns_clauset::generate_inclusion_check(
297297

298298
if(allow_null_target == check_target_validityt::YES_ALLOW_NULL)
299299
return or_exprt{
300-
null_pointer(lhs.guarded_slice.start_adress),
300+
null_pointer(lhs.guarded_slice.start_address),
301301
and_exprt{lhs.validity_condition_var, disjunction(conditions)}};
302302
else
303303
return and_exprt{lhs.validity_condition_var, disjunction(conditions)};

src/goto-instrument/contracts/assigns.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ typedef std::pair<const exprt, const exprt> slicet;
2626
typedef struct guarded_slicet
2727
{
2828
guarded_slicet(exprt _guard, exprt _expr, exprt _start_address, exprt _size)
29-
: guard(_guard), expr(_expr), start_adress(_start_address), size(_size)
29+
: guard(_guard), expr(_expr), start_address(_start_address), size(_size)
3030
{
3131
}
3232

@@ -37,7 +37,7 @@ typedef struct guarded_slicet
3737
const exprt expr;
3838

3939
/// Start address of the target
40-
const exprt start_adress;
40+
const exprt start_address;
4141

4242
/// Size of the target
4343
const exprt size;

0 commit comments

Comments
 (0)