def reachableInstructions(rootInstruction):
    instructions = set()
    hashes = set()
    toCheck = [rootInstruction]

    while toCheck:
        i = toCheck.pop()
        if instructions not in i:
            instructions.add(i)
            hashes.add(i.hash)
            for index in range(i.flowsToCount()):
                toCheck.append(i.flowsTo(index))

    return instructions
dataset/ETHPy150Open ufora/ufora/ufora/FORA/Interpreter/InstructionGraph.py/reachableInstructions/swapped operands of `not in`