GraphML witnesses: clang-format switch/case statement

This commit is contained in:
Michael Tautschnig 2019-03-23 17:11:47 +00:00 committed by Daniel Kroening
parent ac5ae5ca66
commit 700587729f
1 changed files with 97 additions and 97 deletions

View File

@ -421,17 +421,17 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
{});
{
xmlt &data_f=edge.new_element("data");
xmlt &data_f = edge.new_element("data");
data_f.set_attribute("key", "originfile");
data_f.data=id2string(graphml[from].file);
data_f.data = id2string(graphml[from].file);
xmlt &data_l=edge.new_element("data");
xmlt &data_l = edge.new_element("data");
data_l.set_attribute("key", "startline");
data_l.data=id2string(graphml[from].line);
data_l.data = id2string(graphml[from].line);
xmlt &data_t=edge.new_element("data");
xmlt &data_t = edge.new_element("data");
data_t.set_attribute("key", "threadId");
data_t.data=std::to_string(it->thread_nr);
data_t.data = std::to_string(it->thread_nr);
}
const auto lhs_object = it->get_lhs_object();
@ -476,15 +476,15 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
}
}
}
else if(it->type==goto_trace_stept::typet::GOTO &&
it->pc->is_goto())
else if(it->type == goto_trace_stept::typet::GOTO && it->pc->is_goto())
{
}
graphml[to].in[from].xml_node=edge;
graphml[from].out[to].xml_node=edge;
}
graphml[to].in[from].xml_node = edge;
graphml[from].out[to].xml_node = edge;
break;
}
case goto_trace_stept::typet::DECL:
case goto_trace_stept::typet::FUNCTION_CALL:
@ -610,32 +610,32 @@ void graphml_witnesst::operator()(const symex_target_equationt &equation)
{});
{
xmlt &data_f=edge.new_element("data");
xmlt &data_f = edge.new_element("data");
data_f.set_attribute("key", "originfile");
data_f.data=id2string(graphml[from].file);
data_f.data = id2string(graphml[from].file);
xmlt &data_l=edge.new_element("data");
xmlt &data_l = edge.new_element("data");
data_l.set_attribute("key", "startline");
data_l.data=id2string(graphml[from].line);
data_l.data = id2string(graphml[from].line);
}
if((it->is_assignment() ||
it->is_decl()) &&
it->ssa_rhs.is_not_nil() &&
if(
(it->is_assignment() || it->is_decl()) && it->ssa_rhs.is_not_nil() &&
it->ssa_full_lhs.is_not_nil())
{
irep_idt identifier=it->ssa_lhs.get_object_name();
irep_idt identifier = it->ssa_lhs.get_object_name();
graphml[to].has_invariant=true;
graphml[to].has_invariant = true;
code_assignt assign(it->ssa_lhs, it->ssa_rhs);
graphml[to].invariant=convert_assign_rec(identifier, assign);
graphml[to].invariant = convert_assign_rec(identifier, assign);
graphml[to].invariant_scope = id2string(it->source.function_id);
}
graphml[to].in[from].xml_node=edge;
graphml[from].out[to].xml_node=edge;
}
graphml[to].in[from].xml_node = edge;
graphml[from].out[to].xml_node = edge;
break;
}
case goto_trace_stept::typet::DECL:
case goto_trace_stept::typet::FUNCTION_CALL: