def get_iphonesimulator_sdk_versions_for_arch(developer_dir, arch):
    sdk_paths = glob.glob(os.path.join(
        developer_dir,
        'Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator*.*.sdk'))
    sdk_paths.sort()
    sdk_names = [os.path.basename(sdk_path) for sdk_path in sdk_paths]
    sdk_versions = [
        re.match(r'iPhoneSimulator(.+?)\.sdk', sdk_name).group(1) for sdk_name
        in sdk_names]

    # Only 7.0+ supports x86_64 builds.
    if arch == 'x86_64':
        sdk_versions = [
            version for version in sdk_versions
            if float(version) >= 7.0]

    if len(sdk_versions) == 0:
        raise Exception(arch % 'No matching SDK for arch %s')

    return sdk_versions
dataset/ETHPy150Open facebook/clang-as-ios-dylib/clang-as-ios-dylib.py/get_iphonesimulator_sdk_versions_for_arch/swapped operands of `%`