Skip to content

Commit aba3fe5

Browse files
committed
Latest review comments addressed.
1 parent 09c7495 commit aba3fe5

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/goto-symex/precondition.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ void preconditiont::compute_rec(exprt &dest)
109109
// only do index!
110110
DATA_INVARIANT(
111111
dest.operands().size() == 1,
112-
"address_of expression expected to have one operand at this point");
112+
"address_of expression expected to have one operand");
113113
compute_address_of(dest.op0());
114114
}
115115
else if(dest.id()==ID_dereference)
116116
{
117117
DATA_INVARIANT(
118118
dest.operands().size() == 1,
119-
"dereference expression expected to have one operand at this point");
119+
"dereference expression expected to have one operand");
120120

121121
const irep_idt &lhs_identifier=SSA_step.ssa_lhs.get_object_name();
122122

src/goto-symex/slice_by_trace.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ void symex_slice_by_tracet::parse_events(std::string read_line)
222222
eis.insert(event);
223223
PRECONDITION(!alphabet.empty());
224224
INVARIANT((alphabet.count(event) != 0) == alphabet_parity,
225-
"trace uses symbol not in alphabet: " + event);
225+
"trace symbol must be in alphabet: " + event);
226226
if(vnext==std::string::npos)
227227
break;
228228
vidx=vnext;

src/goto-symex/symex_dereference.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ exprt goto_symext::address_arithmetic(
156156
else if(expr.id()==ID_dereference)
157157
{
158158
DATA_INVARIANT(
159-
expr.operands().size() == 1,
160-
"dereference expression expected to have one operand");
159+
expr.operands().size() == 1,
160+
"dereference expression expected to have one operand");
161161
// ANSI-C guarantees &*p == p no matter what p is,
162162
// even if it's complete garbage
163163
// just grab the pointer, but be wary of further dereferencing
@@ -237,8 +237,8 @@ void goto_symext::dereference_rec(
237237
if(expr.id()==ID_dereference)
238238
{
239239
DATA_INVARIANT(
240-
expr.operands().size() == 1,
241-
"dereference expression expected to have one operand");
240+
expr.operands().size() == 1,
241+
"dereference expression expected to have one operand");
242242

243243
bool expr_is_not_null = false;
244244

src/goto-symex/symex_function_call.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ void goto_symext::return_assignment(statet &state)
430430
target.location(state.guard.as_expr(), state.source);
431431

432432
PRECONDITION(
433-
code.operands().size() == 1 ||
434-
frame.return_value.is_nil());
433+
code.operands().size() == 1 ||
434+
frame.return_value.is_nil());
435435

436436
exprt value=code.op0();
437437

src/goto-symex/symex_goto.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ void goto_symext::merge_goto(
347347
// check atomic section
348348
INVARIANT(
349349
state.atomic_section_id == goto_state.atomic_section_id,
350-
"atomic sections differ across branches");
350+
"atomic section should be the same across branches");
351351

352352
// do SSA phi functions
353353
phi_function(goto_state, state);

0 commit comments

Comments
 (0)