def get_stable(res_file):
    """Returns whether the matching was found to be stable.

    Args:
      res_file: The file with IP results.

    Returns:
      Whether the matching was found to be stable.
    """

    f = open(res_file, "r")
    for line in f:
        if 'stability_correct' in line:
            return line.split()[1]