Program: 167102
Project: 167102
Buggy source:
@Test public void testCompileGraphStep(){
  Vertex a1=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex a2=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex a3=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b11=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b12=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b13=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b21=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b22=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b23=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b31=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b32=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b33=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  a1.addEdge("String_Node_Str",b11);
  a1.addEdge("String_Node_Str",b12);
  a1.addEdge("String_Node_Str",b13);
  a2.addEdge("String_Node_Str",b21);
  a2.addEdge("String_Node_Str",b22);
  a2.addEdge("String_Node_Str",b23);
  a3.addEdge("String_Node_Str",b31);
  a3.addEdge("String_Node_Str",b32);
  a3.addEdge("String_Node_Str",b33);
  this.sqlgGraph.tx().commit();
  GraphTraversalSource g=this.sqlgGraph.traversal();
  List<Vertex> vertexes=g.V().hasLabel("String_Node_Str").out("String_Node_Str").toList();
  Assert.assertEquals(9,vertexes.size());
  Assert.assertEquals(9,vertexes.size());
  Assert.assertTrue(vertexes.containsAll(Arrays.asList(b11,b12,b13,b21,b22,b23,b31,b32,b33)));
  GraphTraversal<Vertex,Map<String,Vertex>> gt=g.V().hasLabel("String_Node_Str").as("String_Node_Str").out("String_Node_Str").as("String_Node_Str").select("String_Node_Str","String_Node_Str");
  List<Map<String,Vertex>> list=gt.toList();
  Assert.assertEquals(9,list.size());
  Assert.assertEquals(a1,list.get(0).get("String_Node_Str"));
  Assert.assertEquals(b11,list.get(0).get("String_Node_Str"));
  Assert.assertEquals(a1,list.get(1).get("String_Node_Str"));
  Assert.assertEquals(b12,list.get(1).get("String_Node_Str"));
  Assert.assertEquals(a3,list.get(8).get("String_Node_Str"));
  Assert.assertEquals(b33,list.get(8).get("String_Node_Str"));
}

Fixed version (ground truth):
@Test public void testCompileGraphStep(){
  Vertex a1=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex a2=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex a3=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b11=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b12=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b13=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b21=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b22=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b23=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b31=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b32=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  Vertex b33=this.sqlgGraph.addVertex(T.label,"String_Node_Str");
  a1.addEdge("String_Node_Str",b11);
  a1.addEdge("String_Node_Str",b12);
  a1.addEdge("String_Node_Str",b13);
  a2.addEdge("String_Node_Str",b21);
  a2.addEdge("String_Node_Str",b22);
  a2.addEdge("String_Node_Str",b23);
  a3.addEdge("String_Node_Str",b31);
  a3.addEdge("String_Node_Str",b32);
  a3.addEdge("String_Node_Str",b33);
  this.sqlgGraph.tx().commit();
  GraphTraversalSource g=this.sqlgGraph.traversal();
  List<Vertex> vertexes=g.V().hasLabel("String_Node_Str").out("String_Node_Str").toList();
  Assert.assertEquals(9,vertexes.size());
  Assert.assertEquals(9,vertexes.size());
  Assert.assertTrue(vertexes.containsAll(Arrays.asList(b11,b12,b13,b21,b22,b23,b31,b32,b33)));
  vertexes=g.V().has(T.label,"String_Node_Str").out("String_Node_Str").toList();
  Assert.assertEquals(9,vertexes.size());
  Assert.assertEquals(9,vertexes.size());
  Assert.assertTrue(vertexes.containsAll(Arrays.asList(b11,b12,b13,b21,b22,b23,b31,b32,b33)));
  vertexes=g.V().has(T.label,"String_Node_Str").toList();
  Assert.assertEquals(3,vertexes.size());
  GraphTraversal<Vertex,Map<String,Vertex>> gt=g.V().hasLabel("String_Node_Str").as("String_Node_Str").out("String_Node_Str").as("String_Node_Str").select("String_Node_Str","String_Node_Str");
  List<Map<String,Vertex>> list=gt.toList();
  Assert.assertEquals(9,list.size());
  Assert.assertEquals(a1,list.get(0).get("String_Node_Str"));
  Assert.assertEquals(b11,list.get(0).get("String_Node_Str"));
  Assert.assertEquals(a1,list.get(1).get("String_Node_Str"));
  Assert.assertEquals(b12,list.get(1).get("String_Node_Str"));
  Assert.assertEquals(a3,list.get(8).get("String_Node_Str"));
  Assert.assertEquals(b33,list.get(8).get("String_Node_Str"));
}