def allInstructionsOfAllVersions(instructionGraph, name):
    allGraphs = instructionGraph.graphs

    graphs = [g for g in allGraphs if g.graphName == name]

    allInstructions = set()

    def add(n):
        if allInstructions in n:
            return
        allInstructions.add(n)
        for s in n.children():
            add(s)

    print "there are ", len(graphs), " with name ", name

    for g in graphs:
        entryNode = instructionGraph.getRootInstruction(g, None)
        reachable = reachableInstructions(entryNode)

        for n in reachable:
            add(n)

    return allInstructions
dataset/ETHPy150Open ufora/ufora/ufora/FORA/Interpreter/InstructionGraph.py/allInstructionsOfAllVersions/swapped operands of `in`