Skip to content

Commit 26a9d70

Browse files
committed
Remove trailing newlines from interpreter messages
1 parent 20f0338 commit 26a9d70

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/goto-programs/interpreter.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ void interpretert::list_non_bodied() {
11741174
}
11751175
}
11761176

1177-
message->result() << "non bodied varibles " << funcs << messaget::endl << messaget::eom;
1177+
message->result() << "non bodied varibles " << funcs << messaget::eom;
11781178
std::map<const irep_idt,const irep_idt>::const_iterator it;
11791179
/*for(it=function_input_vars.begin(); it!=function_input_vars.end(); it++)
11801180
{
@@ -1366,7 +1366,7 @@ void interpretert::print_inputs() {
13661366
for(input_varst::iterator it=input_vars.begin();it!=input_vars.end();
13671367
it++) {
13681368
message->result() << it->first << "=" << from_expr(ns, it->first, it->second)
1369-
<< "[" << it->second.type().id() << "]" << messaget::endl << messaget::eom;
1369+
<< "[" << it->second.type().id() << "]" << messaget::eom;
13701370
}
13711371
message->result() << messaget::eom;
13721372
}
@@ -1388,7 +1388,7 @@ void interpretert::print_memory(bool input_flags) {
13881388
message->debug() << cell.identifier << "[" << cell.offset << "]"
13891389
<< "=" << cell.value << messaget::eom;
13901390
if(input_flags) message->debug() << "(" << (int)cell.initialised << ")" << messaget::eom;
1391-
message->debug() << messaget::endl << messaget::eom;
1391+
message->debug() << messaget::eom;
13921392
}
13931393
}
13941394

@@ -1467,7 +1467,7 @@ void interpretert::prune_inputs(input_varst &inputs,list_input_varst& function_i
14671467
}
14681468
catch (const char *e)
14691469
{
1470-
message->error() << e << messaget::endl << messaget::eom;
1470+
message->error() << e << messaget::eom;
14711471
}
14721472
list_inputs();
14731473
list_inputs(inputs);

src/goto-programs/interpreter_evaluate.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ void interpretert::evaluate(
269269
irep_idt value=to_constant_expr(expr).get_value();
270270
const char *str=value.c_str();
271271
unsigned length=strlen(str)+1;
272-
if (show) message->warning() << "string decoding not fully implemented " << length << messaget::endl << messaget::eom;
272+
if (show) message->warning() << "string decoding not fully implemented " << length << messaget::eom;
273273
mp_integer tmp=value.get_no();
274274
dest.push_back(tmp);
275275
return;
@@ -318,12 +318,12 @@ void interpretert::evaluate(
318318
side_effect_exprt side_effect=to_side_effect_expr(expr);
319319
if(side_effect.get_statement()==ID_nondet)
320320
{
321-
if (show) message->error() << "nondet not implemented" << messaget::endl << messaget::eom;
321+
if (show) message->error() << "nondet not implemented" << messaget::eom;
322322
return;
323323
}
324324
else if(side_effect.get_statement()==ID_malloc)
325325
{
326-
if (show) message->error() << "malloc not fully implemented " << expr.type().subtype().pretty() << messaget::endl << messaget::eom;
326+
if (show) message->error() << "malloc not fully implemented " << expr.type().subtype().pretty() << messaget::eom;
327327
std::stringstream buffer;
328328
num_dynamic_objects++;
329329
buffer <<"interpreter::malloc_object" << num_dynamic_objects;
@@ -332,7 +332,7 @@ void interpretert::evaluate(
332332
dest.push_back(address);
333333
return;
334334
}
335-
if (show) message->error() << "side effect not implemented " << side_effect.get_statement() << messaget::endl << messaget::eom;
335+
if (show) message->error() << "side effect not implemented " << side_effect.get_statement() << messaget::eom;
336336
}
337337
else if(expr.id()==ID_bitor)
338338
{
@@ -852,8 +852,8 @@ void interpretert::evaluate(
852852
// if (!show) return;
853853
message->error() << "!! failed to evaluate expression: "
854854
<< from_expr(ns, function->first, expr)
855-
<< messaget::endl << messaget::eom;
856-
message->error() << expr.id() << "[" << expr.type().id() << "]" << messaget::endl << messaget::eom;
855+
<< messaget::eom;
856+
message->error() << expr.id() << "[" << expr.type().id() << "]" << messaget::eom;
857857
}
858858

859859
/*******************************************************************\

0 commit comments

Comments
 (0)