def parse_valid_bb_file(valid_bb_path):
    """
    Parse a file which contains valid basic block addresses.

    The file is expected to contain a hexadecimal address per line.
    """
    with open(valid_bb_path, "r") as f:
        return set(int(l, 16) for l in f.readlines() if l.strip())