Skip to content

Commit 09c7495

Browse files
committed
Apply formating
1 parent 47d013d commit 09c7495

8 files changed

+26
-29
lines changed

src/goto-symex/build_goto_trace.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ exprt build_full_lhs_rec(
9191
else if(id==ID_byte_extract_little_endian ||
9292
id==ID_byte_extract_big_endian)
9393
{
94-
DATA_INVARIANT(
95-
src_original.operands().size() == 2,
96-
"byte extract expressions require two operands");
94+
DATA_INVARIANT(
95+
src_original.operands().size() == 2,
96+
"byte extract expressions require two operands");
9797
exprt tmp=src_original;
9898
tmp.op0()=build_full_lhs_rec(prop_conv, ns, tmp.op0(), src_ssa.op0());
9999

src/goto-symex/goto_symex_state.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ bool goto_symex_statet::constant_propagation_reference(const exprt &expr) const
187187
else if(expr.id()==ID_member)
188188
{
189189
DATA_INVARIANT(
190-
expr.operands().size() == 1,
191-
"member expression expects one operand");
190+
expr.operands().size() == 1, "member expression expects one operand");
192191

193192
return constant_propagation_reference(expr.op0());
194193
}
@@ -496,11 +495,10 @@ void goto_symex_statet::rename(
496495
else if(expr.id()==ID_address_of)
497496
{
498497
DATA_INVARIANT(
499-
expr.type().id() == ID_pointer,
500-
"type of expression required to be pointer");
498+
expr.type().id() == ID_pointer,
499+
"type of expression required to be pointer");
501500
DATA_INVARIANT(
502-
expr.operands().size() == 1,
503-
"address_of should have a single operand");
501+
expr.operands().size() == 1, "address_of should have a single operand");
504502
rename_address(expr.op0(), ns, level);
505503
expr.type().subtype()=expr.op0().type();
506504
}

src/goto-symex/partial_order_concurrency.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ symbol_exprt partial_order_concurrencyt::clock(
142142
event_it event,
143143
axiomt axiom)
144144
{
145-
PRECONDITION(!numbering.empty());
145+
PRECONDITION(!numbering.empty());
146146
irep_idt identifier;
147147

148148
if(event->is_shared_write())

src/goto-symex/slice_by_trace.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,9 @@ void symex_slice_by_tracet::slice_by_trace(
8080
exprt g_copy(*i);
8181

8282
DATA_INVARIANT(
83-
g_copy.id() == ID_symbol ||
84-
g_copy.id() == ID_not ||
85-
g_copy.id() == ID_and ||
86-
g_copy.id() == ID_constant,
87-
"guards should only be and, symbol, constant, or `not'");
83+
g_copy.id() == ID_symbol || g_copy.id() == ID_not ||
84+
g_copy.id() == ID_and || g_copy.id() == ID_constant,
85+
"guards should only be and, symbol, constant, or `not'");
8886

8987
if(g_copy.id()==ID_symbol || g_copy.id() == ID_not)
9088
{

src/goto-symex/symex_assign.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void goto_symext::symex_assign(
5757
symex_allocate(state, lhs, side_effect_expr);
5858
else if(statement==ID_printf)
5959
{
60-
PRECONDITION(lhs.is_nil());
60+
PRECONDITION(lhs.is_nil());
6161
symex_printf(state, side_effect_expr);
6262
}
6363
else if(statement==ID_gcc_builtin_va_arg_next)

src/goto-symex/symex_function_call.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ void goto_symext::parameter_assignments(
5353

5454
const irep_idt &identifier=parameter.get_identifier();
5555

56-
INVARIANT(!identifier.empty(),
57-
"function pointer parameter must have an identifier");
56+
INVARIANT(
57+
!identifier.empty(),
58+
"function pointer parameter must have an identifier");
5859

5960
const symbolt &symbol=ns.lookup(identifier);
6061
symbol_exprt lhs=symbol.symbol_expr();

src/goto-symex/symex_goto.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ void goto_symext::merge_goto(
346346
{
347347
// check atomic section
348348
INVARIANT(
349-
state.atomic_section_id == goto_state.atomic_section_id,
350-
"atomic sections differ across branches");
349+
state.atomic_section_id == goto_state.atomic_section_id,
350+
"atomic sections differ across branches");
351351

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

src/goto-symex/symex_other.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ void goto_symext::symex_other(
137137
// 3. build an assignment where the type on lhs and rhs is:
138138
// - array_copy: the type of the first array (even if the second is smaller)
139139
// - array_replace: the type of the second array (even if it is smaller)
140-
DATA_INVARIANT(
141-
code.operands().size() == 2,
142-
"expected array copy/array replace statement to have two operands");
140+
DATA_INVARIANT(
141+
code.operands().size() == 2,
142+
"expected array copy/array replace statement to have two operands");
143143

144144
// we need to add dereferencing for both operands
145145
dereference_exprt dest_array(code.op0());
@@ -188,8 +188,8 @@ void goto_symext::symex_other(
188188
// 3. use the type of the resulting array to construct an array_of
189189
// expression
190190
DATA_INVARIANT(
191-
code.operands().size() == 2,
192-
"expected array_set statement to have two operands");
191+
code.operands().size() == 2,
192+
"expected array_set statement to have two operands");
193193

194194
// we need to add dereferencing for the first operand
195195
exprt array_expr = dereference_exprt(code.op0());
@@ -235,8 +235,8 @@ void goto_symext::symex_other(
235235
// the right-hand side is an equality over the arrays, if their types match;
236236
// if the types don't match the result trivially is false
237237
DATA_INVARIANT(
238-
code.operands().size() == 3,
239-
"expected array_equal statement to have three operands");
238+
code.operands().size() == 3,
239+
"expected array_equal statement to have three operands");
240240

241241
// we need to add dereferencing for the first two
242242
dereference_exprt array1(code.op0());
@@ -269,8 +269,8 @@ void goto_symext::symex_other(
269269
else if(statement==ID_havoc_object)
270270
{
271271
DATA_INVARIANT(
272-
code.operands().size() == 1,
273-
"expected havoc_object statement to have one operand");
272+
code.operands().size() == 1,
273+
"expected havoc_object statement to have one operand");
274274

275275
// we need to add dereferencing for the first operand
276276
dereference_exprt object(code.op0(), empty_typet());

0 commit comments

Comments
 (0)