def argument_set_new(arg_i, arg_history):
    """
    If the arguments in arg_i are not contained in arg_history -1 is returned in indicating a new branch,
    otherwise the branch number is returned
    """
    if len(arg_history) == 0:
        return -1
    else:
        for c, arg_set in enumerate(arg_history):
            if arg_i == arg_set:
                return c
        return -1