Skip to content

Commit fbe0625

Browse files
committed
GraphML witness: creationtime is a graph attribute
SV-COMP requires that this is set, which we take care of in your sv-comp wrapper script.
1 parent f85b11d commit fbe0625

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/xmllang/graphml.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,16 @@ bool write_graphml(const graphmlt &src, std::ostream &os)
402402
key.set_attribute("id", "producer");
403403
}
404404

405+
// <key attr.name="creationtime" attr.type="string" for="graph"
406+
// id="creationtime"/>
407+
{
408+
xmlt &key = graphml.new_element("key");
409+
key.set_attribute("attr.name", "creationtime");
410+
key.set_attribute("attr.type", "string");
411+
key.set_attribute("for", "graph");
412+
key.set_attribute("id", "creationtime");
413+
}
414+
405415
// <key attr.name="startline" attr.type="int" for="edge" id="startline"/>
406416
{
407417
xmlt &key=graphml.new_element("key");

0 commit comments

Comments
 (0)