Skip to content

Commit a33a68b

Browse files
authored
Merge pull request #4133 from tautschnig/graphml-get_function
GraphML witness: consistently use function_id
2 parents 723b0a2 + 70868da commit a33a68b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/goto-programs/graphml_witness.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
290290

291291
xmlt &val_s=edge.new_element("data");
292292
val_s.set_attribute("key", "assumption.scope");
293-
val_s.data=id2string(it->pc->source_location.get_function());
293+
val_s.data = id2string(it->function_id);
294294
}
295295
else if(it->type==goto_trace_stept::typet::GOTO &&
296296
it->pc->is_goto())
@@ -475,8 +475,7 @@ void graphml_witnesst::operator()(const symex_target_equationt &equation)
475475
graphml[to].has_invariant=true;
476476
code_assignt assign(it->ssa_full_lhs, it->ssa_rhs);
477477
graphml[to].invariant=convert_assign_rec(identifier, assign);
478-
graphml[to].invariant_scope=
479-
id2string(it->source.pc->source_location.get_function());
478+
graphml[to].invariant_scope = id2string(it->source.function_id);
480479
}
481480
else if(it->is_goto() &&
482481
it->source.pc->is_goto())

0 commit comments

Comments
 (0)