parameters: (op)
return_statement: return is_cond_merge
docstring: Return true if `op` is the Merge for a conditional.
docstring_summary: Return true if `op` is the Merge for a conditional.
docstring_tokens: Return true if op is the Merge for a conditional .
function: def IsCondMerge(op):
    """Return true if `op` is the Merge for a conditional."""
    if not IsMerge(op):
      return False
    if not op.inputs:
      return False
    # Merge nodes are not part of the cond control flow context that they
    # represent, so consider the inputs to the merge of to determine if it is
    # cond merge or not: A merge is a cond merge iff all its inputs are in
    # cond contexts.
    is_cond_merge = True
    for i in op.inputs:
      ctxt = GetOutputContext(i.op)
      is_cond_merge = is_cond_merge and ctxt is not None and ctxt.IsCondContext()
    return is_cond_merge
function_tokens: def IsCondMerge ( op ) : if not IsMerge ( op ) : return False if not op . inputs : return False # Merge nodes are not part of the cond control flow context that they # represent, so consider the inputs to the merge of to determine if it is # cond merge or not: A merge is a cond merge iff all its inputs are in # cond contexts. is_cond_merge = True for i in op . inputs : ctxt = GetOutputContext ( i . op ) is_cond_merge = is_cond_merge and ctxt is not None and ctxt . IsCondContext ( ) return is_cond_merge