Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 9 additions & 16 deletions src/goto-programs/graphml_witness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,24 +278,17 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
}

if(it->type==goto_trace_stept::typet::ASSIGNMENT &&
it->lhs_object_value.is_not_nil() &&
it->full_lhs_value.is_not_nil() &&
it->full_lhs.is_not_nil())
{
if(!it->lhs_object_value.is_constant() ||
!it->lhs_object_value.has_operands() ||
!has_prefix(id2string(it->lhs_object_value.op0().get(ID_value)),
"INVALID-"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sanity check is now missing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but we haven't been generating these INVALID-OBJECTS for quite a while.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I trust this is true, but what change was it that made those go away?

{
xmlt &val=edge.new_element("data");
val.set_attribute("key", "assumption");
code_assignt assign(it->lhs_object, it->lhs_object_value);
irep_idt identifier=it->lhs_object.get_identifier();
val.data=convert_assign_rec(identifier, assign);

xmlt &val_s=edge.new_element("data");
val_s.set_attribute("key", "assumption.scope");
val_s.data=id2string(it->pc->source_location.get_function());
}
xmlt &val=edge.new_element("data");
val.set_attribute("key", "assumption");
val.data=from_expr(ns, it->pc->function, it->full_lhs)+" = "+
from_expr(ns, it->pc->function, it->full_lhs_value)+";";

xmlt &val_s=edge.new_element("data");
val_s.set_attribute("key", "assumption.scope");
val_s.data=id2string(it->pc->source_location.get_function());
}
else if(it->type==goto_trace_stept::typet::GOTO &&
it->pc->is_goto())
Expand Down