def _detect_compiler_version(result, output):
    try:
        compiler, version = _get_default_compiler(output)
    except:
        compiler, version = None, None
    if not compiler or not version:
        output.error("Unable to find a working compiler")
    else:
        result.append(("compiler", compiler))
        result.append(("compiler.version", version))
        if compiler == "Visual Studio":
            result.append(("compiler.runtime", "MD"))
        elif compiler == "apple-clang":
            result.append(("compiler.libcxx", "libc++"))
        elif compiler == "gcc" or compiler in "clang":
            result.append(("compiler.libcxx", "libstdc++"))
dataset/ETHPy150Open conan-io/conan/conans/client/detect.py/_detect_compiler_version/swapped operands of `in`